/* ==========================================================================
   AMINE MARITIME — Design system
   Style: Enterprise Gateway + touches of Glassmorphism
   Typography: Playfair Display (headings) / Inter (body)
   ========================================================================== */

:root {
  /* Couleurs mesurées sur la charte graphique réelle (affiche.jpeg) */
  --color-primary: #1c3462;
  --color-primary-light: #24407a;
  --color-accent: #2565af;
  --color-accent-dark: #184c86;
  --color-red: #e2231a;
  --color-secondary: #334155;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-foreground: #0b1220;
  --color-muted: #64748b;
  --color-muted-bg: #eef2f7;
  --color-border: #e2e8f0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(14, 19, 56, 0.06);
  --shadow-md: 0 8px 28px rgba(14, 19, 56, 0.10);
  --shadow-lg: 0 24px 64px rgba(14, 19, 56, 0.16);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: var(--color-background);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container-xl {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  background: linear-gradient(180deg, rgba(6,11,32,.65) 0%, rgba(6,11,32,.32) 60%, rgba(6,11,32,0) 100%);
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.site-header .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-badge img { height: 32px; width: 32px; object-fit: contain; display: block; }
.site-header .brand span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  transition: color .35s ease;
  letter-spacing: .02em;
}
.site-header.is-scrolled .brand span { color: var(--color-primary); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: .01em;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color .25s ease, background-color .25s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.site-header.is-scrolled .site-nav a { color: var(--color-secondary); text-shadow: none; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.site-header.is-scrolled .site-nav a:hover { color: var(--color-primary); background: var(--color-muted-bg); }
.site-nav a.active { color: #fff; background: var(--color-accent); text-shadow: none; }
.site-header.is-scrolled .site-nav a.active { color: #fff; background: var(--color-accent); }

.navbar-toggler-custom {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #fff;
}
.site-header.is-scrolled .navbar-toggler-custom { border-color: var(--color-border); color: var(--color-primary); }

/* ---------- Buttons ---------- */
.btn-am {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.btn-am-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-am-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-am-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-am-outline:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
.btn-am-outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-am-outline-dark:hover { background: var(--color-muted-bg); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-primary) 0%, #182058 55%, var(--color-accent-dark) 130%);
  overflow: hidden;
}
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-carousel .carousel-item .hero-bg { position: absolute; inset: 0; }
.hero-carousel-dots.carousel-indicators {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3;
  display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0;
}
.hero-carousel-dots.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; flex: none;
  border: 1px solid rgba(255,255,255,.6); background-color: rgba(255,255,255,.25);
  opacity: 1; text-indent: -9999px;
  transition: background-color .25s ease, transform .25s ease;
}
.hero-carousel-dots.carousel-indicators [data-bs-target].active {
  background-color: #fff; transform: scale(1.2);
}
.hero-carousel-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 48px; height: 48px; margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,14,38,.35);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff; font-size: 20px;
  opacity: .85;
  transition: background-color .25s ease, opacity .25s ease, transform .25s ease;
}
.hero-carousel-arrow:hover { background: rgba(8,14,38,.6); opacity: 1; transform: translateY(-1px); }
.hero-carousel-arrow.hero-carousel-prev { left: 24px; }
.hero-carousel-arrow.hero-carousel-next { right: 24px; }
@media (max-width: 767.98px) {
  .hero-carousel-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 16px; }
  .hero-carousel-arrow.hero-carousel-prev { left: 10px; }
  .hero-carousel-arrow.hero-carousel-next { right: 10px; }
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .82;
}
.hero-bg.hero-bg-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #0e1338;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,14,38,.85) 0%, rgba(8,14,38,.6) 32%, rgba(8,14,38,.2) 58%, rgba(8,14,38,.05) 80%),
    linear-gradient(180deg, rgba(14,19,56,.1) 0%, rgba(14,19,56,.15) 55%, rgba(14,19,56,.45) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 760px; padding: 160px 0 100px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: #bcd6f2; margin-bottom: 20px; font-weight: 600;
}
.hero-content h1 { font-size: clamp(34px, 5vw, 58px); color: #fff; margin-bottom: 20px; }
.hero-content p.lead { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-eyebrow, #heroTitle, #heroLead, #heroCta {
  transition: opacity .22s ease, transform .22s ease;
}
.hero-eyebrow.is-fading, #heroTitle.is-fading, #heroLead.is-fading, #heroCta.is-fading {
  opacity: 0; transform: translateY(6px);
}

.hero.hero-sm { min-height: 46vh; }
.hero.hero-sm .hero-content { padding: 150px 0 60px; max-width: 720px; }

/* ---------- Gateway path cards ---------- */
.gateway-section { padding: var(--space-6) 0; background: var(--color-surface); }
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.path-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: #fff;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  box-shadow: var(--shadow-md);
}
.path-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.path-card .path-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.path-card:hover .path-bg { transform: scale(1.06); }
.path-card.path-maritime .path-bg { background-color: var(--color-primary); }
.path-card.path-dev .path-bg {
  background: radial-gradient(circle at 20% 20%, #1c2568 0%, #0e1338 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px);
}
.path-card .path-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,19,56,.15) 0%, rgba(14,19,56,.88) 90%);
}
.path-card .path-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.path-card .path-tag { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: #bcd6f2; font-weight: 600; margin-bottom: 8px; }
.path-card h3 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.path-card p { color: rgba(255,255,255,0.82); margin-bottom: 22px; max-width: 420px; }
.path-card .path-link { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.path-card .path-link i { transition: transform .3s ease; }
.path-card:hover .path-link i { transform: translateX(5px); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-muted-bg); padding: 34px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-bar .trust-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.trust-bar .trust-label { font-size: 13px; color: var(--color-muted); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.trust-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.trust-logos img { height: 26px; width: auto; filter: grayscale(1) opacity(.65); transition: filter .3s ease; }
.trust-logos img:hover { filter: grayscale(0) opacity(1); }
.trust-logos img.partners-strip { height: 34px; filter: none; opacity: 1; }
.trust-logos img.partners-strip:hover { filter: none; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-muted { background: var(--color-muted-bg); }
.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--color-red); font-weight: 700; margin-bottom: 12px; }
.section-eyebrow::before { content: "\2022"; margin-right: 6px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--color-muted); font-size: 16.5px; }
.section-head.text-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Glass cards ---------- */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.glass-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.product-card { padding: 26px 22px; text-align: left; }
a.product-card { display: block; color: inherit; text-decoration: none; }
.product-card .product-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--color-accent);
  margin-top: 12px; opacity: 0; transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
a.product-card:hover .product-more { opacity: 1; transform: translateX(0); }
.solution-thumb {
  margin: -26px -22px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-primary);
}
.solution-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform .4s ease;
}
a.product-card:hover .solution-thumb img { transform: scale(1.05); }
.product-marque {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-secondary); background: var(--color-muted-bg);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; margin-left: 6px;
}
.product-card .product-icon-wrap {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: var(--color-muted-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.product-card .product-icon-wrap img { max-width: 40px; max-height: 40px; object-fit: contain; }
.badge-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-accent-dark); background: rgba(47,128,195,.1);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.product-card h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.product-card p { color: var(--color-muted); font-size: 14.5px; margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service-card { padding: 30px 26px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; }
.service-card p { color: var(--color-muted); font-size: 15px; margin: 0; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 28px 12px; }
.stat-card .stat-num { font-family: var(--font-heading); font-size: 38px; color: var(--color-primary); font-weight: 600; }
.stat-card .stat-label { font-size: 13.5px; color: var(--color-muted); margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent-dark));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; font-size: 28px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.75); padding: var(--space-5) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: var(--space-4); }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand .logo-badge img { height: 30px; width: 30px; }
.footer-brand span { font-family: var(--font-heading); color: #fff; font-size: 18px; }
.footer-grid p { font-size: 14.5px; line-height: 1.7; }
.footer-links a { display: block; color: rgba(255,255,255,0.75); font-size: 14.5px; padding: 5px 0; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 12px; color: rgba(255,255,255,0.8); }
.footer-contact i { color: var(--color-accent); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Forms ---------- */
.form-am label { font-size: 14px; font-weight: 600; color: var(--color-primary); margin-bottom: 6px; display: block; }
.form-am .form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
}
.form-am .form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(47,128,195,.15); }
.form-am textarea.form-control { min-height: 140px; resize: vertical; }
.text-danger { font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .path-card, .glass-card, .btn-am { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .gateway-grid { grid-template-columns: 1fr; }
  .trust-bar .trust-inner { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .site-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--color-primary); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 22px; transition: right .35s ease; z-index: 999; }
  .site-nav.is-open { right: 0; box-shadow: -12px 0 40px rgba(0,0,0,.25); }
  .site-nav a { color: #fff !important; font-size: 17px; padding: 10px 18px; width: 100%; text-shadow: none; }
  .site-nav a:hover { background: rgba(255,255,255,.1); }
  .site-nav a.active { background: var(--color-accent); }
  .navbar-toggler-custom { display: inline-flex; }
  .hero-content { padding: 130px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .path-card { padding: 28px; min-height: 340px; }
}
