/* ==========================================================================
   New Vision Wise — Design system « corporate »
   Sobre, structuré, éditorial : bleu marine + un accent, typographie fine,
   bordures plutôt qu'ombres, photographie pleine largeur.
   ========================================================================== */
:root {
  /* Couleurs de marque */
  --navy: #0a1f3c;
  --navy-2: #12305a;
  --accent: #1c5da8;
  --accent-600: #164b88;
  --accent-50: #eef4fb;

  /* Neutres */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1b2533;
  --muted: #5c6878;
  --subtle: #8a94a3;
  --line: #e3e7ee;
  --line-strong: #cfd6e0;

  /* Statuts */
  --green: #1f7a45;
  --green-50: #ebf6ef;
  --amber: #9a6a12;
  --amber-50: #fbf3e2;
  --danger: #b4232c;
  --danger-50: #fcefef;

  /* Alias (compatibilité avec l'espace gestionnaire) */
  --ink: var(--navy);
  --blue: var(--accent);
  --blue-600: var(--accent-600);
  --blue-50: var(--accent-50);
  --green-600: var(--green);
  --gold: var(--amber);
  --gold-600: var(--amber);
  --gold-50: var(--amber-50);
  --surface: #fff;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 60, .06);
  --shadow: 0 8px 24px -12px rgba(10, 31, 60, .18);
  --shadow-lg: 0 24px 48px -24px rgba(10, 31, 60, .28);
  --container: 1240px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }

/* --- Éléments typographiques ------------------------------------------- */
.overline { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.overline::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.overline--light { color: #fff; opacity: .85; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 5rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-head--stack { grid-template-columns: 1fr; max-width: 44rem; gap: 1rem; }
.section-head--center { grid-template-columns: 1fr; text-align: center; max-width: 46rem; margin-inline: auto; gap: 1rem; }
.section-head--center h2 { margin-inline: auto; }
.section-head--center .overline { justify-content: center; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  --b-bg: var(--navy); --b-fg: #fff; --b-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 500; font-size: .95rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { --b-bg: var(--navy-2); --b-bd: var(--navy-2); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--gold, .btn--primary { --b-bg: var(--accent); --b-bd: var(--accent); }
.btn--gold:hover, .btn--primary:hover { --b-bg: var(--accent-600); --b-bd: var(--accent-600); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--navy); --b-bd: var(--line-strong); }
.btn--ghost:hover { --b-bg: var(--bg-alt); --b-bd: var(--navy); }
.btn--white { --b-bg: #fff; --b-fg: var(--navy); --b-bd: #fff; }
.btn--white:hover { --b-bg: #e9eef5; --b-bd: #e9eef5; }
.btn--outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --b-bg: rgba(255,255,255,.1); --b-bd: #fff; }
.btn--green { --b-bg: var(--green); --b-bd: var(--green); }
.btn--danger { --b-bg: #fff; --b-fg: var(--danger); --b-bd: #efc6c8; }
.btn--sm { min-height: 38px; padding: .5rem .95rem; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: .95rem; color: var(--accent); }
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-600); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- En-tête -------------------------------------------------------------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.72); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: flex; align-items: center; gap: .45rem; }
.topbar__list .icon { width: 14px; height: 14px; opacity: .8; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px -12px rgba(10,31,60,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; color: var(--navy); }
.brand__name b { font-weight: 600; color: inherit; }
.brand__sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--subtle); font-weight: 500; margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: block; padding: .5rem 0; font-size: .94rem; font-weight: 500; color: #3a4556; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }
.nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav__track { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 500; color: var(--navy); }
.nav__track .icon { width: 17px; height: 17px; }
.nav__track:hover { color: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; }
  .nav__panel { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 1.5rem 1.5rem; display: none; }
  .nav__panel.is-open { display: block; }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__menu li + li { border-top: 1px solid var(--line); }
  .nav__link { padding: 1rem 0; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav__track { display: none; }
  .topbar__list li.hide-sm { display: none; }
}
@media (min-width: 1101px) { .nav__panel { display: block !important; } }
@media (max-width: 560px) {
  .container { width: min(100% - 2.5rem, var(--container)); }
  .brand img { width: 40px; }
  .brand__name { font-size: .98rem; white-space: nowrap; }
  .brand__sub { display: none; }
  .topbar__list li.hide-xs { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 420px) { .nav__actions .btn { display: none; } }

/* Sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: .1rem; }
.lang-switch__btn { border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: .74rem; font-weight: 600; letter-spacing: .08em; padding: .2rem .45rem; cursor: pointer; border-radius: 3px; }
.lang-switch__btn + .lang-switch__btn { border-left: 1px solid rgba(255,255,255,.2); border-radius: 0; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* --- Hero (accueil) ------------------------------------------------------ */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 6rem 0 9rem; background: var(--navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,60,.92) 0%, rgba(10,31,60,.72) 42%, rgba(10,31,60,.18) 100%); }
.hero__content { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 34rem; margin-bottom: 2.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 700px) {
  .hero { min-height: 0; padding: 4.5rem 0 7rem; }
  .hero__media::after { background: linear-gradient(180deg, rgba(10,31,60,.75), rgba(10,31,60,.9)); }
}

/* Barre de suivi (sous le hero) */
.track-bar { position: relative; z-index: 3; margin-top: -4.5rem; }
.track-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.track-panel__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem 3rem; align-items: center; }
.track-panel h2 { font-size: 1.45rem; margin: 0 0 .3rem; }
.track-panel p { margin: 0; color: var(--muted); font-size: .95rem; }
.track-panel__hint { display: flex; align-items: center; gap: .45rem; margin-top: .75rem; font-size: .82rem; color: var(--subtle); }
.track-panel__hint .icon { width: 14px; height: 14px; }
@media (max-width: 860px) { .track-panel__grid { grid-template-columns: 1fr; } }

/* Formulaire de suivi */
.track-form { display: flex; gap: .5rem; }
.track-form__field { position: relative; flex: 1; display: flex; align-items: center; }
.track-form__field .icon { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--subtle); pointer-events: none; }
.track-form input {
  width: 100%; min-height: 54px; padding: .8rem 1rem .8rem 2.85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.track-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--subtle); }
.track-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28,93,168,.15); }
.track-form .btn { min-height: 54px; padding-inline: 1.6rem; --b-bg: var(--accent); --b-bd: var(--accent); }
.track-form .btn:hover { --b-bg: var(--accent-600); --b-bd: var(--accent-600); }
@media (max-width: 520px) { .track-form { flex-direction: column; } .track-form .btn { width: 100%; } }

/* Résultat de suivi */
.track-result:empty { display: none; }
.track-result { margin-top: 1.5rem; }
.result-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); background: #fff; animation: fadeIn .4s var(--ease); }
.result-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.result-card__code { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .03em; color: var(--navy); }
.result-card__route { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .95rem; margin-top: .2rem; flex-wrap: wrap; }
.result-card__route .icon { width: 15px; height: 15px; }
.result-card__history { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 1rem; font-family: var(--font-body); }
.result-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.result-meta div { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); }
.result-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); font-weight: 600; }
.result-meta dd { margin: .2rem 0 0; font-weight: 500; color: var(--navy); }
.alert-inline { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid #efc6c8; background: var(--danger-50); color: #8a1c23; font-size: .93rem; }
.alert-inline .icon { margin-top: 2px; width: 18px; height: 18px; }

.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--accent-50); color: var(--accent); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--delivered { background: var(--green-50); color: var(--green); }
.badge--customs, .badge--on_hold { background: var(--amber-50); color: var(--amber); }
.badge--returned, .badge--cancelled { background: var(--danger-50); color: var(--danger); }
.badge--registered { background: #eef1f5; color: #4a5566; }

.stepper { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; margin: 0; }
.stepper li { position: relative; text-align: center; font-size: .75rem; color: var(--subtle); font-weight: 500; padding: 30px 3px 0; line-height: 1.3; overflow-wrap: anywhere; }
.stepper li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); display: grid; place-items: center; z-index: 1; }
.stepper li.done { color: var(--navy); }
.stepper li.done::before { background: var(--accent); }
.stepper li.done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.done span .icon { width: 11px; height: 11px; }
.stepper li.current span { box-shadow: 0 0 0 4px rgba(28,93,168,.15); }
@media (max-width: 560px) { .stepper li { font-size: 0; } .stepper li.current { font-size: .7rem; white-space: nowrap; overflow: visible; } }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.timeline li:first-child::before { border-color: var(--accent); background: var(--accent); }
.timeline__title { font-weight: 600; color: var(--navy); }
.timeline__meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.timeline__note { font-size: .92rem; margin-top: .2rem; }

/* --- Sections ---------------------------------------------------------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.75); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .overline { color: #8fb6e6; }
.section--navy .section-head p { color: rgba(255,255,255,.7); }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Cartes de service (image + texte) */
.cards { display: grid; gap: 2.5rem 2rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; color: inherit; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--bg-alt); margin-bottom: 1.5rem; }
.card--wide .card__media { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__index { font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-bottom: .6rem; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); margin-bottom: 1.1rem; }
.card .link-arrow { margin-top: auto; }
.card__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .35rem; font-size: .93rem; color: var(--muted); }
.card__list li { display: flex; gap: .6rem; align-items: baseline; }
.card__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--muted); padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 999px; }

/* Cartes texte (sans image) */
.tile { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s; }
.tile:hover { border-color: var(--line-strong); }
.tile__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--accent-50); color: var(--accent); margin-bottom: 1.4rem; }
.tile__icon .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
.section--navy .tile { background: transparent; border-color: rgba(255,255,255,.14); }
.section--navy .tile p { color: rgba(255,255,255,.66); }
.section--navy .tile__icon { background: rgba(255,255,255,.08); color: #fff; }

/* Chiffres clés */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 2.25rem 1.75rem; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure__value { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.figure__label { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; } .figure:nth-child(3) { border-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Mise en page texte + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr .85fr; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--bg-alt); }
.split__media--landscape { aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { max-width: 18ch; }
@media (max-width: 900px) { .split, .split--wide-media { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } .split__media { aspect-ratio: 4 / 3; } }

.checklist { list-style: none; padding: 0; margin: 2rem 0 2.25rem; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.checklist__tick { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.checklist__tick .icon { width: 18px; height: 18px; }
.checklist strong { color: var(--navy); }
.section--navy .checklist, .section--navy .checklist li { border-color: rgba(255,255,255,.14); }
.section--navy .checklist strong { color: #fff; }
.section--navy .checklist__tick { color: #8fb6e6; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step { counter-increment: step; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.step::before { content: "0" counter(step); display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
.section--navy .step { border-color: rgba(255,255,255,.2); }
.section--navy .step::before { color: #8fb6e6; }
.section--navy .step p { color: rgba(255,255,255,.66); }
.steps--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps--2 { grid-template-columns: 1fr; } }

/* Témoignages */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial { margin: 0; display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.testimonial__stars { display: flex; gap: 3px; color: #c4952f; margin-bottom: 1.25rem; }
.testimonial__stars .icon { width: 14px; height: 14px; }
.testimonial blockquote { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.6; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonial figcaption span { font-size: .85rem; color: var(--muted); }
.testimonial__service { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: .75rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 600; font-size: .9rem; color: var(--navy); background: var(--accent-50); flex-shrink: 0; }
@media (max-width: 1000px) { .testimonials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .testimonials { grid-template-columns: 1fr; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 5rem; }
.faq-layout h2 { max-width: 14ch; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--subtle); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 3rem 1.5rem 0; margin: 0; }

/* Bandeau d'appel à l'action */
.cta { background: var(--navy); color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; }
.cta h2 { color: #fff; margin: 0 0 .75rem; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.72); margin: 0; font-size: 1.1rem; max-width: 36rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: flex-end; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* Bandeau photo + citation */
.quote-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); min-height: 460px; display: flex; align-items: flex-end; padding: clamp(2rem, 5vw, 4rem); color: #fff; margin: 0; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,31,60,.9), rgba(10,31,60,.2) 70%); }
.quote-band blockquote { margin: 0; max-width: 44rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -.015em; }
.quote-band cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: .95rem; color: rgba(255,255,255,.75); font-family: var(--font-body); }

/* --- En-tête des pages internes --------------------------------------- */
.page-header { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-header__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem 5rem; align-items: end; }
.page-header h1 { margin: 0; max-width: 16ch; font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
.page-header p { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 34rem; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
@media (max-width: 900px) { .page-header__grid { grid-template-columns: 1fr; } }
.breadcrumb { display: flex; gap: .5rem; align-items: center; list-style: none; padding: 0; margin: 0 0 2rem; font-size: .85rem; color: var(--subtle); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.page-banner { width: min(100% - 3rem, var(--container)); margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--bg-alt); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-banner { aspect-ratio: 4 / 3; width: min(100% - 2.5rem, var(--container)); } }
.page-track { margin-top: 2rem; max-width: 40rem; }
.page-track label { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }

/* Sous-navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: .5rem; padding: 1.1rem 0; font-size: .92rem; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--accent); }
.subnav .icon { width: 16px; height: 16px; }

/* Blocs de services détaillés */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 4rem); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 16ch; }
.service-row > div > p { color: var(--muted); font-size: 1.08rem; }
.service-list { list-style: none; margin: 2rem 0 2.25rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; border-top: 1px solid var(--line); }
.service-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.service-list strong { display: block; color: var(--navy); font-size: .98rem; font-weight: 600; }
.service-list small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: .2rem; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row__media { order: 0; } .service-list { grid-template-columns: 1fr; } }

/* À propos */
.identity { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.25rem 0 0; border-top: 1px solid var(--line); }
.identity div { padding: 1rem 1rem 1rem 0; }
.identity dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); font-weight: 600; }
.identity dd { margin: .3rem 0 0; font-weight: 600; color: var(--navy); }
@media (max-width: 560px) { .identity { grid-template-columns: 1fr; } }
.logo-panel { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); padding: 3rem; }
.logo-panel img { width: min(100%, 380px); }
.mv { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.mv__item { padding: 2.5rem 3rem 0 0; }
.mv__item + .mv__item { padding-left: 3rem; border-left: 1px solid var(--line); }
.mv__item p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } .mv__item + .mv__item { padding-left: 0; border-left: 0; } }

/* --- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--accent); margin-top: 3px; width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--navy); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .2rem; }
.contact-list a:hover { color: var(--accent); }
.form-card { padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.form-card__title { font-size: 1.6rem; margin-bottom: .4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Formulaires -------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .87rem; font-weight: 500; color: var(--navy); margin-bottom: .45rem; }
.field .req { color: var(--danger); }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff;
  transition: border-color .2s, box-shadow .2s; font-size: .97rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28,93,168,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .83rem; margin-top: .35rem; }
.field__help { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { margin: 1.25rem 0; }
.form-feedback:empty { margin: 0; }
.form-card form > .btn { margin-top: 1.5rem; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); font-size: .95rem; border: 1px solid transparent; }
.notice .icon { margin-top: 2px; width: 18px; height: 18px; }
.notice--success { background: var(--green-50); color: var(--green); border-color: #cfe8d8; }
.notice--error { background: var(--danger-50); color: #8a1c23; border-color: #efc6c8; }
.notice--info { background: var(--accent-50); color: var(--accent-600); border-color: #d5e3f4; }
.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.messages-wrap { padding-top: 1.5rem; }

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: #071629; color: rgba(255,255,255,.6); font-size: .93rem; padding: clamp(4rem, 7vw, 5.5rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.footer__brand img { width: 44px; }
.footer__brand span { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.1rem; }
.footer__about { max-width: 22rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.site-footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: 4px; opacity: .7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer__legal-ids { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.fab-whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.fab-whatsapp:hover { transform: translateY(-2px); }
.fab-whatsapp .icon { width: 26px; height: 26px; }

/* --- Animations (discrètes) ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Pages utilitaires */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 6rem 0; }
.center-page__code { font-family: var(--font-display); font-weight: 500; font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: var(--accent); letter-spacing: -.04em; margin-bottom: 1rem; }
.track-page { max-width: 860px; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose p { color: var(--muted); }
.cards--spaced { margin-top: 3.5rem; }

/* ==========================================================================
   Carrousel d'accueil
   ========================================================================== */
.hero-carousel { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.hero-carousel__track { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(560px, 84vh, 780px); padding: 5.5rem 0 11.5rem; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s linear 1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; z-index: 1; }
.slide__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide__media img { transform: scale(1); }
/* Superposition à faible opacité + léger dégradé pour la lisibilité du texte */
.slide__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,31,60,.42) 0%, rgba(10,31,60,.12) 60%, rgba(10,31,60,0) 100%),
  rgba(10,31,60,.32); }
.slide__content { position: relative; }
.slide__content > * { max-width: 40rem; }
.slide__title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.25rem; text-shadow: 0 2px 24px rgba(10,31,60,.35); }
.slide__text { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 34rem; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(10,31,60,.4); }
.slide__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.slide .overline { text-shadow: 0 1px 8px rgba(10,31,60,.4); }
/* Apparition décalée du contenu de la diapositive active */
.slide__content > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .32s; }

.hero-carousel__controls { position: absolute; left: 0; right: 0; bottom: 6.75rem; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero-carousel__dots { display: flex; gap: 1.25rem; flex: 1; max-width: 46rem; }
.hero-carousel__dot { flex: 1; min-width: 0; padding: .5rem 0; background: none; border: 0; cursor: pointer; text-align: left; color: rgba(255,255,255,.6); }
.hero-carousel__dot-label { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .55rem; transition: color .3s; }
.hero-carousel__dot:hover, .hero-carousel__dot.is-active { color: #fff; }
.hero-carousel__bar { display: block; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-carousel__bar span { display: block; height: 100%; width: 0; background: #fff; }
.hero-carousel__dot.is-done .hero-carousel__bar span { width: 100%; }
.hero-carousel__dot.is-active .hero-carousel__bar span { animation: carouselProgress var(--carousel-interval, 6500ms) linear forwards; }
.hero-carousel.is-paused .hero-carousel__dot.is-active .hero-carousel__bar span { animation-play-state: paused; }
@keyframes carouselProgress { from { width: 0; } to { width: 100%; } }
.hero-carousel__nav { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.hero-carousel__count { font-size: .85rem; color: rgba(255,255,255,.7); margin-right: .75rem; font-variant-numeric: tabular-nums; }
.hero-carousel__count b { color: #fff; font-weight: 600; }
.hero-carousel__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(10,31,60,.15); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; backdrop-filter: blur(4px); }
.hero-carousel__btn:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.hero-carousel__btn .icon { width: 18px; height: 18px; }
.icon-flip { transform: scaleX(-1); }
.icon-pause { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-carousel.is-paused .icon-pause { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

@media (max-width: 900px) {
  .hero-carousel__dot-label { display: none; }
  .hero-carousel__dots { gap: .5rem; max-width: none; }
  .hero-carousel__dot { padding: 1rem 0; }
  .hero-carousel__count { display: none; }
}
@media (max-width: 700px) {
  .slide { min-height: 0; padding: 4rem 0 10.5rem; align-items: flex-end; }
  .slide__media::after { background: linear-gradient(180deg, rgba(10,31,60,.18) 0%, rgba(10,31,60,.55) 100%), rgba(10,31,60,.25); }
  .slide__cta .btn { flex: 1 1 100%; }
  .hero-carousel__controls { bottom: 5.5rem; gap: 1rem; }
  .hero-carousel__btn { width: 40px; height: 40px; }
  .hero-carousel__btn[data-toggle] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide__media img { transform: none !important; transition: none; }
}

/* ==========================================================================
   Responsive : correctifs petits écrans (≤ 560 px) et lisibilité
   ========================================================================== */
/* Les colonnes de grille ne doivent jamais s'élargir au-delà de l'écran */
.hero-carousel__track { grid-template-columns: minmax(0, 1fr); }
.split, .service-row, .contact-grid, .page-header__grid, .faq-layout, .cta__inner, .section-head, .track-panel__grid { min-width: 0; }
.split > *, .service-row > *, .contact-grid > *, .page-header__grid > *, .faq-layout > *, .cta__inner > *, .section-head > *, .track-panel__grid > *, .cards > * { min-width: 0; }
@media (max-width: 900px) {
  .split, .split--wide-media, .service-row, .contact-grid, .page-header__grid, .faq-layout, .cta__inner, .section-head, .track-panel__grid { grid-template-columns: minmax(0, 1fr); }
}
img { height: auto; }

/* Tailles minimales de texte lisibles */
.lang-switch__btn { font-size: .8rem; padding: .3rem .5rem; }
.brand__sub, .testimonial__service, .identity dt, .result-meta dt, .overline, .card__index, .result-card__history { font-size: max(.75rem, 12px); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .section { padding: 3.75rem 0; }
  .section--tight { padding: 2.5rem 0; }
  h2 { font-size: clamp(1.75rem, 7.5vw, 2.2rem); }
  .page-header { padding: 2.5rem 0 2rem; }
  .page-header h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .page-header p, .lead { font-size: 1.05rem; }
  .breadcrumb { margin-bottom: 1.25rem; }
  /* Les boutons peuvent passer à la ligne et occupent toute la largeur */
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .page-header__actions .btn, .cta__actions .btn, .split .btn, .service-row .btn, .contact-grid aside .btn, .center-page .btn { width: 100%; }
  .track-panel { padding: 1.25rem; }
  .track-bar { margin-top: -3.5rem; }
  .figure { padding: 1.5rem 1rem; }
  .figure__value { font-size: 1.85rem; }
  .figure__label { font-size: .88rem; }
  .card__media { margin-bottom: 1.1rem; }
  .cards { gap: 2.25rem; }
  .tile { padding: 1.5rem; }
  .testimonial { padding: 1.5rem; }
  .faq summary { font-size: 1.02rem; padding: 1.15rem 0; }
  .faq details p { padding-right: 0; }
  .quote-band { min-height: 360px; padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .service-list { margin: 1.5rem 0; }
  .mv__item { padding: 1.75rem 0 0; }
  .fab-whatsapp { width: 48px; height: 48px; right: .9rem; bottom: .9rem; }
  .fab-whatsapp .icon { width: 24px; height: 24px; }
  .footer__bottom { flex-direction: column; }
  .result-card { padding: 1.1rem; }
  .result-meta { grid-template-columns: 1fr 1fr; }
  .slide__title { font-size: clamp(1.95rem, 9vw, 2.6rem); }
}
@media (max-width: 380px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .page-banner { width: min(100% - 2rem, var(--container)); }
  .topbar__list { gap: 1rem; }
  .figure__value { font-size: 1.6rem; }
  .result-meta { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
}

/* Écrans larges : contenu un peu plus généreux */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
  body { font-size: 1.1rem; }
}

/* Tablettes en paysage / petits portables : menu complet plus compact */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav__menu { gap: 1.4rem; }
  .nav__track { display: none; }
}

/* Suivi : position actuelle */
.result-position { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; margin: 0 0 1.5rem; border-radius: var(--radius); background: var(--accent-50); border: 1px solid #d5e3f4; }
.result-position .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.result-position span { display: block; font-size: max(.72rem, 12px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.result-position strong { display: block; font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: .1rem 0; }
.result-position small { color: var(--muted); font-size: .85rem; }

/* Scanner de QR code */
.track-form__scan { flex-shrink: 0; --b-bd: var(--line-strong); }
.track-form__scan .icon { width: 20px; height: 20px; }
.track-form__scan[hidden] { display: none; }
@media (max-width: 520px) { .track-form__scan { width: 100%; } }
.scanner { width: min(92vw, 460px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.scanner::backdrop { background: rgba(7, 22, 41, .75); }
.scanner__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.scanner__head h2 { margin: 0; font-size: 1.05rem; color: #fff; font-weight: 600; }
.scanner__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; }
.scanner__view { position: relative; aspect-ratio: 1; background: #000; overflow: hidden; }
.scanner__view video { width: 100%; height: 100%; object-fit: cover; }
.scanner__frame { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner__hint { margin: 0; padding: 1rem 1.25rem 1.25rem; font-size: .95rem; color: rgba(255,255,255,.85); text-align: center; }
.track-form .track-form__scan { --b-bg: #fff; --b-fg: var(--navy); --b-bd: var(--line-strong); }
.track-form .track-form__scan:hover { --b-bg: var(--bg-alt); --b-bd: var(--navy); }
