/* ==========================================================================
   NS TRANSPORT — Convoyage de véhicules France · Espagne · Maroc
   Palette : blanc dominant, bleu (logo), gris/argent. Titres Archivo Black,
   corps Inter, mentions Inter petit + gris.
   ========================================================================== */

:root {
  --blue: #1466E0;          /* bleu principal (logo) */
  --blue-bright: #2E8CFF;   /* survol / éclat */
  --blue-deep: #0B2A66;     /* profondeur, dégradés */
  --navy: #0A1B3D;          /* fonds sombres, footer */

  --ink: #0E1726;           /* titres foncés */
  --text: #1E2836;          /* texte principal */
  --text-dim: #5A6675;      /* texte secondaire */
  --muted: #8A94A6;         /* mentions, meta (gris) */

  --line: #E5E9F0;
  --line-strong: #D3DAE6;

  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;       /* sections gris très clair */
  --bg-soft-2: #EDF2F9;

  --silver-1: #C9D2DE;
  --silver-2: #8894A6;

  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(14,23,38,0.06);
  --shadow: 0 18px 40px -18px rgba(11,42,102,0.28);
  --shadow-blue: 0 16px 34px -12px rgba(20,102,224,0.45);
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 400; /* Archivo Black est déjà lourd */
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin: 0 0 .4em; }
p { margin: 0 0 1em; color: var(--text-dim); }
strong { color: var(--ink); font-weight: 600; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Utilitaires de section ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: radial-gradient(120% 130% at 80% 0%, #12305f 0%, var(--navy) 55%);
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #B9C4D6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.section--navy .eyebrow { color: var(--blue-bright); }
.section--navy .eyebrow::before { background: var(--blue-bright); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-bright); transform: translateY(-2px); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); color: var(--blue-deep); }
.btn--lg { padding: 17px 32px; font-size: 1.04rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max-w); margin: 0 auto; padding: 12px 24px;
}
.brand img { height: 46px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a {
  font-weight: 500; font-size: 0.95rem; color: var(--text-dim);
  position: relative; padding: 6px 0;
}
.header-nav a:hover, .header-nav a.active { color: var(--ink); }
.header-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transition: width .25s var(--ease);
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 600; font-size: 0.95rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.header-phone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all .25s var(--ease); }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .header-nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 55; background: #fff;
    padding: 96px 26px 40px; display: flex; flex-direction: column; gap: 4px;
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 24px; }
  body.menu-open { overflow: hidden; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 55%; height: 140%;
  background: radial-gradient(circle at 60% 40%, rgba(20,102,224,0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; padding: clamp(48px,7vw,84px) 0; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 1.16rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.hero-trust svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

.hero-media { position: relative; }
.hero-media > img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.hero-badge .hb-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--blue); line-height: 1; }
.hero-badge .hb-txt { font-size: 0.8rem; color: var(--text-dim); line-height: 1.3; }
.hero-badge .hb-txt b { color: var(--ink); display: block; font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media > img { max-height: 340px; }
}

/* ---------- Bandeau logos / réassurance ---------- */
.assure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.assure-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 22px 0; }
.assure-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.assure-item svg { width: 26px; height: 26px; color: var(--blue); flex: none; }

/* ---------- Corridor (carte animée FR-ES-MA) ---------- */
.corridor-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,4vw,60px); align-items: center; }
.corridor-map {
  position: relative; background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.corridor-map svg { width: 100%; height: auto; overflow: visible; }
.route-line { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.route-dash {
  fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 10 12; animation: route-move 1.6s linear infinite;
}
@keyframes route-move { to { stroke-dashoffset: -22; } }
.route-node circle { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.route-node .pulse { fill: var(--blue); opacity: 0.25; transform-origin: center; animation: node-pulse 2.4s var(--ease) infinite; }
@keyframes node-pulse { 0% { transform: scale(1); opacity: .28; } 70%,100% { transform: scale(3); opacity: 0; } }
.route-node text { font-family: var(--font-body); font-weight: 700; font-size: 13px; fill: var(--ink); }
.route-node tspan.sub { font-weight: 500; fill: var(--muted); font-size: 11px; }
.truck-dot { fill: var(--blue); filter: drop-shadow(0 3px 6px rgba(20,102,224,0.5)); }
.corridor-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.corridor-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--text-dim); }
.corridor-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px 26px; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft-2); color: var(--blue);
  font-family: var(--font-display); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step:hover .step-num { background: var(--blue); color: #fff; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services (cards) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; padding: 30px 26px; transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-ico {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: var(--shadow-blue);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.svc-card p { font-size: 0.95rem; margin-bottom: 18px; }
.svc-link { margin-top: auto; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; }
.svc-link .arr { transition: transform .22s var(--ease); }
.svc-card:hover .svc-link .arr { transform: translateX(4px); }

/* ---------- Split image + texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul.checks { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 12px; }
.split ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.split ul.checks svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: -1; } .split-media img { max-height: 320px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 12px; }
.stat .v { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat .v .u { color: var(--blue-bright); }
.stat .k { margin-top: 10px; color: #B9C4D6; font-size: 0.92rem; font-weight: 500; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; gap: 30px 12px; } }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.review-stars { color: #F5A524; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.review p { color: var(--text); font-size: 1rem; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.review-author b { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.review-author span { font-size: 0.82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.06rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.5rem; color: var(--blue); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 22px; }
.faq-body p { margin: 0; }

/* ---------- CTA finale ---------- */
.cta-final { text-align: center; }
.cta-final .container { max-width: 780px; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { font-size: 1.12rem; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg-soft)); padding: clamp(48px,7vw,88px) 0 clamp(30px,4vw,44px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.page-hero p { font-size: 1.14rem; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C4D6; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(1.05); }
.footer-brand p { color: #93A1BA; font-size: 0.95rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a, .footer-list li { color: #93A1BA; font-size: 0.94rem; }
.footer-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #7C8AA6; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-dash, .route-node .pulse, .truck-dot { animation: none !important; }
}

/* ---------- Barre CTA mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; }
  body { padding-bottom: 74px; }
}

/* ==========================================================================
   HERO avec photo en fond + carte de devis (repris de l'inspiration)
   ========================================================================== */
.hero--photo {
  background:
    linear-gradient(100deg, #ffffff 40%, rgba(255,255,255,0.84) 52%, rgba(255,255,255,0.42) 72%, rgba(255,255,255,0.12) 100%),
    url('../assets/img/hero-carrier.jpg') right center / cover no-repeat;
}
@media (max-width: 900px) {
  .hero--photo {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.95) 60%, #fff 100%),
      url('../assets/img/hero-carrier.jpg') center top / cover no-repeat;
  }
}
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; display: grid; gap: 14px;
  width: 100%; max-width: 410px; margin-left: auto;
}
.quote-card .qc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.quote-card .qc-head svg { width: 22px; height: 22px; color: var(--blue); }
.quote-title { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); margin: 0; line-height: 1.1; }
.quote-field { display: grid; gap: 6px; }
.quote-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.01em; }
.ico-input { position: relative; }
.ico-input .fico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--blue); pointer-events: none; }
.quote-field input, .quote-field select {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 13px 14px 13px 40px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none;
}
.quote-field input:focus, .quote-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,102,224,0.12); }
.quote-field input[readonly] { background: var(--bg-soft); cursor: default; color: var(--text); font-weight: 600; }
.quote-card .btn { width: 100%; }
.quote-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0; }
.quote-note b { color: #22C55E; }
@media (max-width: 900px) { .quote-card { max-width: none; margin: 0; } }

/* ---------- Timeline verticale (Comment ça marche) ---------- */
.timeline { max-width: 780px; margin: 0 auto; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 0 0 36px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 0; width: 2px; background: var(--line-strong); }
.tl-num { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-blue); z-index: 1; }
.tl-body { padding-top: 6px; }
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { margin: 0; }
