/* ==========================================================================
   MCC Inspection — feuille de style principale
   Design system : tokens, base, composants, utilitaires
   ========================================================================== */

/* --- 0. Police (auto-hébergée : aucun appel à un service tiers) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --ink:        #0a1a2b;
  --ink-soft:   #14304b;
  --brand-900:  #0f2c47;
  --brand-800:  #143a5e;
  --brand-700:  #1b5081;
  --brand-600:  #22689f;
  --brand-100:  #dce9f4;
  --brand-50:   #f0f6fb;

  --accent:     #e2a03c;
  --accent-600: #c9862a;
  --accent-50:  #fdf5e7;

  --ok:         #1b7a55;
  --ok-50:      #e9f5f0;
  --alert:      #b3402b;
  --alert-50:   #fbeeea;

  --paper:      #ffffff;
  --surface:    #f6f8fa;
  --surface-2:  #eef2f6;
  --line:       #e0e7ee;
  --line-strong:#cbd6e1;
  --text:       #182a3a;
  --muted:      #55697c;

  /* Typographie */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9063rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h3:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2:   clamp(1.65rem, 1.3rem + 1.6vw, 2.35rem);
  --fs-h1:   clamp(2rem, 1.45rem + 2.6vw, 3.4rem);

  /* Espacement / rythme */
  --gap:     clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  --section: clamp(3.25rem, 2rem + 5vw, 6rem);
  --radius:  14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --wrap:    1180px;
  --wrap-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 43, .05), 0 1px 3px rgba(10, 26, 43, .05);
  --shadow:    0 2px 4px rgba(10, 26, 43, .04), 0 8px 24px rgba(10, 26, 43, .07);
  --shadow-lg: 0 4px 10px rgba(10, 26, 43, .06), 0 24px 56px rgba(10, 26, 43, .13);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* `clip` empêche le menu hors-écran (position: fixed) d'élargir la page */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.022em; color: var(--ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }
p  { text-wrap: pretty; }
a  { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
strong { font-weight: 650; color: var(--ink); }
small { font-size: var(--fs-sm); }
ul, ol { padding-left: 1.15rem; }
button { font: inherit; }

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

::selection { background: var(--brand-100); color: var(--ink); }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Mise en page ----------------------------------------------------- */
.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.2rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand-900); color: #d9e5f0; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }

.section-head { max-width: 52rem; margin-bottom: calc(var(--gap) * 1.6); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin-top: .85rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.section--brand .eyebrow { color: var(--accent); }
.section-head--center .eyebrow::before { display: none; }

.lead { font-size: var(--fs-lg); color: var(--muted); }

/* --- 4. Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
  font-size: var(--fs-base); font-weight: 620; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .15s var(--ease), background-color .15s, box-shadow .2s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { background: var(--accent); color: #2b1c02; box-shadow: 0 2px 10px rgba(226,160,60,.32); }
.btn--primary:hover { background: var(--accent-600); color: #2b1c02; box-shadow: 0 6px 20px rgba(226,160,60,.4); }

.btn--dark { background: var(--brand-800); color: #fff; }
.btn--dark:hover { background: var(--brand-700); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.btn--outline { border-color: var(--line-strong); color: var(--brand-800); background: var(--paper); }
.btn--outline:hover { border-color: var(--brand-700); background: var(--brand-50); color: var(--brand-800); }

.btn--lg { padding: 1rem 1.9rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; padding-inline: 1.1rem; }
  .btn--lg { padding: .9rem 1.2rem; font-size: var(--fs-base); }
  .btn-row > .btn { flex: 1 1 100%; }
  .mobile-bar .btn { flex: 1 1 auto; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 620;
  text-decoration: none; color: var(--brand-700);
}
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- 5. En-tête ---------------------------------------------------------- */
.topbar {
  background: var(--brand-900); color: #b9cee1; font-size: var(--fs-xs);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #e6eff7; text-decoration: none; font-weight: 550; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__items { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 720px) { .topbar__hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
/* Le flou n'est appliqué qu'en version bureau : `backdrop-filter` crée un bloc
   conteneur qui empêcherait le menu mobile (position: fixed) de couvrir l'écran. */
@media (min-width: 1161px) {
  .site-header {
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
  }
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

/* `flex: none` : le logo garde toujours sa largeur, il ne se fait jamais chevaucher par le menu. */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.16rem; letter-spacing: -.035em; color: var(--ink); }
.brand__name span { color: var(--brand-600); font-weight: 600; letter-spacing: .01em; }
.brand__tag { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .55rem .55rem; border-radius: 8px; text-decoration: none; color: var(--ink-soft);
  font-size: var(--fs-sm); font-weight: 580; transition: background-color .15s, color .15s;
  white-space: nowrap;
}
/* Bureau : « Demander une soumission » et le téléphone forment un seul groupe à droite,
   de même hauteur et séparés par un petit écart. */
@media (min-width: 1161px) {
  .nav .btn { height: 42px; padding: 0 .85rem; margin-left: .4rem; }
  .header-cta { margin-left: -.5rem; }
}
@media (min-width: 1161px) and (max-width: 1240px) {
  .nav a, .has-sub > button { padding-inline: .5rem; font-size: .86rem; }
  .nav .btn { padding-inline: .75rem; }
  .brand__tag { display: none; }
}
.nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }

.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .55rem; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 580; color: var(--ink-soft); white-space: nowrap;
}
.has-sub > button:hover { background: var(--brand-50); color: var(--brand-800); }
.has-sub > button svg { transition: transform .18s var(--ease); }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 286px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s var(--ease), visibility .16s;
}
.has-sub[data-open="true"] .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .6rem .75rem; border-radius: 8px; }
.submenu a strong { display: block; font-size: var(--fs-sm); font-weight: 620; color: var(--ink); }
.submenu a span { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 450; line-height: 1.45; }
.submenu a:hover strong { color: var(--brand-700); }

.header-cta { display: inline-flex; gap: .5rem; align-items: center; }
/* Téléphone de l'en-tête : icône seule, faute de place à côté du menu complet.
   Le numéro reste lu par les lecteurs d'écran et s'affiche en entier dans la barre du haut. */
.header-cta .btn--outline { width: 44px; height: 42px; padding: 0; gap: 0; font-size: 0; }
.nav-toggle, .nav-close {
  display: none; align-items: center; justify-content: center; gap: .5rem;
  width: 44px; height: 42px; border: 1.5px solid var(--line-strong); background: var(--paper);
  border-radius: 9px; cursor: pointer; color: var(--ink);
}
.nav-toggle:hover, .nav-close:hover { border-color: var(--brand-600); color: var(--brand-700); }

@media (max-width: 1160px) {
  .nav-toggle, .nav-close { display: inline-flex; }
  .nav-close { position: absolute; top: 1.05rem; right: 1.1rem; }
  .header-cta .btn--outline { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: .15rem;
    padding: 5.5rem 1.1rem 2rem; overflow-y: auto;
    transform: translateX(102%); transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav { visibility: hidden; }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav a, .has-sub > button { padding: .8rem .8rem; font-size: var(--fs-base); width: 100%; text-align: left; }
  .has-sub { position: static; }
  .has-sub > button { justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .8rem;
    padding: 0 0 0 .4rem; display: none;
  }
  .has-sub[data-open="true"] .submenu { display: block; }
  .nav .btn { margin-top: .8rem; }
}
body.nav-open { overflow: hidden; }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(10,26,43,.45); z-index: 99;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* --- 6. Héros ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #e8f0f7;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(34,104,159,.55), transparent 62%),
    radial-gradient(760px 520px at 8% 106%, rgba(226,160,60,.16), transparent 60%),
    linear-gradient(168deg, #0a1a2b 0%, #0f2c47 52%, #143a5e 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 80% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 25%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; padding-block: 3rem 3.5rem; } }

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.03rem, .98rem + .35vw, 1.24rem); color: #c3d6e7; margin-top: 1.15rem; max-width: 36rem; }
.hero .btn-row { margin-top: 1.9rem; }
.hero__note { margin-top: 1.15rem; font-size: var(--fs-sm); color: #9fb8cd; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .85rem .38rem .5rem;
  border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17);
  font-size: var(--fs-xs); font-weight: 560; color: #dbe8f4; backdrop-filter: blur(4px);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); margin-left: .35rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem .55rem; margin-top: 2.1rem; }
.hero__trust li { list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem;
  border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-xs); font-weight: 560; color: #d6e4f0;
}
.chip svg { color: var(--accent); flex: none; }

/* Carte « fiche technique » du héros */
.hero__card {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 1.4rem; backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.hero__card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero__card-top strong { color: #fff; font-size: var(--fs-sm); letter-spacing: .02em; }
.hero__card-top span { font-size: var(--fs-xs); color: #9fb8cd; }
.hero__checks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.hero__checks li { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); color: #cfdeeb; }
.hero__checks svg { flex: none; margin-top: .18rem; color: #5fd4a0; }

/* --- 7. Bandeau de preuves ---------------------------------------------- */
.proof { background: var(--paper); border-bottom: 1px solid var(--line); }
.proof__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0; padding-block: 0;
}
.proof__item { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); }
.proof__item:last-child { border-right: 0; }
@media (max-width: 860px) {
  .proof__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.2rem .2rem; }
  .proof__item:last-child { border-bottom: 0; }
}
.proof__num { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); font-weight: 780; color: var(--brand-800); letter-spacing: -.04em; line-height: 1; }
.proof__label { font-size: var(--fs-sm); color: var(--muted); margin-top: .45rem; }

/* --- 8. Cartes ----------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: var(--fs-base); }
.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card--plain { background: var(--surface); border-color: transparent; }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 1.05rem; flex: none;
}
.card__icon--accent { background: var(--accent-50); color: var(--accent-600); }
.card__icon--ok { background: var(--ok-50); color: var(--ok); }

.card__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: .5rem;
}

/* Carte service mise en avant */
.card--featured {
  background: linear-gradient(160deg, var(--brand-900), var(--brand-800));
  border-color: transparent; color: #cddced;
}
.card--featured h3 { color: #fff; }
.card--featured p { color: #b7cbdd; }
.card--featured .card__icon { background: rgba(255,255,255,.12); color: var(--accent); }
.card--featured .link-arrow { color: var(--accent); }

/* --- 9. Étapes ----------------------------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--gap); }
.steps--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 2.9rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: var(--fs-sm); font-weight: 750; color: var(--brand-700);
  background: var(--brand-50); border-radius: 8px; padding: .3rem .6rem; letter-spacing: .02em;
}
.step::after {
  content: ""; position: absolute; top: 1rem; left: 3.2rem; right: -1rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 11px);
}
.step:last-child::after { display: none; }
@media (max-width: 700px) { .step::after { display: none; } }
.step h3 { font-size: var(--fs-lg); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: var(--fs-base); }

.section--brand .step h3 { color: #fff; }
.section--brand .step p { color: #a8c2d8; }
.section--brand .step::before { background: rgba(255,255,255,.12); color: var(--accent); }
.section--brand .step::after {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 5px, transparent 5px 11px);
}
.section--brand .syscard { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--brand .syscard strong { color: #fff; }
.section--brand .syscard span { color: #a8c2d8; }

/* --- 10. Listes de vérification ------------------------------------------ */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; }
.checklist svg { flex: none; margin-top: .3rem; color: var(--ok); }
.checklist--tight li { font-size: var(--fs-base); }

.syscard {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  background: var(--paper); display: flex; gap: .8rem; align-items: flex-start;
}
.syscard svg { flex: none; color: var(--brand-600); margin-top: .15rem; }
.syscard strong { display: block; font-size: var(--fs-base); }
.syscard span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; display: block; margin-top: .15rem; }

/* --- 11. Encadrés -------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-50);
  padding: 1.15rem 1.35rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-base);
}
.callout--info { border-left-color: var(--brand-600); background: var(--brand-50); }
.callout--ok { border-left-color: var(--ok); background: var(--ok-50); }
.callout strong { display: block; margin-bottom: .3rem; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); box-shadow: var(--shadow-sm);
}

/* --- 12. Galerie --------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--gap); }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.shot:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.shot__media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.shot__media img, .shot__media svg { width: 100%; height: 100%; object-fit: cover; }
.shot__body { padding: 1rem 1.15rem 1.25rem; }
.shot__body strong { display: block; font-size: var(--fs-base); }
.shot__body p { font-size: var(--fs-sm); color: var(--muted); margin-top: .3rem; }
.badge-flag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: rgba(10,26,43,.82); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  padding: .25rem .6rem; border-radius: 6px; backdrop-filter: blur(4px);
}

/* --- 13. FAQ ------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 620; color: var(--ink); position: relative; font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--brand-700); }
.faq__body { padding: 0 1.25rem 1.3rem; color: var(--muted); font-size: var(--fs-base); }
.faq__body > * + * { margin-top: .7rem; }

/* --- 14. Bandeau d'appel à l'action -------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  color: #d5e3f0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,160,60,.22), transparent 68%);
}
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { margin-top: .6rem; max-width: 34rem; }

/* --- 15. Formulaire ------------------------------------------------------ */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--fs-sm); font-weight: 620; color: var(--ink); }
.field label .req { color: var(--alert); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 9px;
  font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(34,104,159,.15);
}
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field--hp { position: absolute; left: -9999px; }
.form__status { font-size: var(--fs-sm); border-radius: 9px; padding: .85rem 1rem; display: none; }
.form__status.is-ok { display: block; background: var(--ok-50); color: #14563c; border: 1px solid #b7ddcb; }
.form__status.is-err { display: block; background: var(--alert-50); color: #85301f; border: 1px solid #e8c0b6; }

/* --- 16. Zones desservies ------------------------------------------------ */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; list-style: none; padding: 0; }
.zones a {
  display: flex; align-items: center; gap: .55rem; padding: .8rem .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  text-decoration: none; color: var(--ink); font-weight: 580; font-size: var(--fs-base);
  transition: border-color .18s, background-color .18s, transform .18s var(--ease);
}
.zones a:hover { border-color: var(--brand-600); background: var(--brand-50); transform: translateY(-2px); }
.zones svg { color: var(--brand-600); flex: none; }
.zones span { font-size: var(--fs-sm); color: var(--muted); font-weight: 450; }

/* --- 17. Avis ------------------------------------------------------------ */
/* Les blocs remplis par main.js restent masqués tant que les avis ne sont pas chargés. */
[data-avis] [hidden] { display: none; }

/* Étoiles : une rangée grise recouverte d'une rangée dorée coupée à la note (--note). */
.etoiles {
  position: relative; display: inline-block; width: max-content; line-height: 1; white-space: nowrap;
  font-size: .95rem; letter-spacing: .12em; color: var(--line-strong);
}
.etoiles::before { content: "★★★★★"; }
.etoiles::after {
  content: "★★★★★"; position: absolute; top: 0; left: 0; width: var(--note, 100%);
  overflow: hidden; color: #f0a92b;
}

.avis-resume { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: calc(var(--gap) * 1.2); }
.avis-resume__note { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 780; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.avis-resume .etoiles { font-size: 1.4rem; }
.avis-resume__total { color: var(--muted); font-size: var(--fs-base); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); list-style: none; padding: 0; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.review p { margin-top: .75rem; color: var(--text); font-size: var(--fs-base); }
.review__texte { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.review__texte.is-open { display: block; -webkit-line-clamp: unset; }
.review__suite {
  align-self: flex-start; margin-top: .45rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--brand-700); font-size: var(--fs-sm); font-weight: 620;
}
.review__suite:hover { text-decoration: underline; }
.review__who {
  display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.2rem;
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.4;
}
.review__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-2); }
.review__initiale { display: grid; place-items: center; font-weight: 650; color: var(--brand-700); background: var(--brand-50); }
.review__auteur { display: block; font-weight: 620; color: var(--ink); text-decoration: none; }
a.review__auteur:hover { color: var(--brand-700); text-decoration: underline; }
.review__who a:not(.review__auteur) { color: var(--muted); }

.avis-source { margin-top: 1.3rem; font-size: var(--fs-sm); color: var(--muted); }
/* Mention exigée par Google : « Google Maps » en Roboto (ou sans-serif), graisse 400, gris #5E5E5E. */
.gmaps { font-family: Roboto, Arial, sans-serif; font-weight: 400; color: #5e5e5e; white-space: nowrap; }

/* --- 18. Fil d'Ariane ---------------------------------------------------- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); padding-top: 1.35rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }

/* --- 19. En-tête de page interne ----------------------------------------- */
.page-hero {
  background: linear-gradient(170deg, #0a1a2b, #10304e 70%, #163f65);
  color: #cfe0ee; padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem) clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .38; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(105deg, transparent 38%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #b7cddf; font-size: var(--fs-lg); margin-top: 1rem; max-width: 46rem; }
.page-hero .crumbs { color: #8fa9c0; padding-top: 0; margin-bottom: 1.4rem; }
.page-hero .crumbs a { color: #a9c1d6; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs [aria-current] { color: #e2ecf5; }
.page-hero .crumbs li::after { color: #4d6a85; }
.page-hero .btn-row { margin-top: 1.8rem; }

/* --- 20. Contenu rédactionnel -------------------------------------------- */
.prose { font-size: var(--fs-md); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; padding-top: .3rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--brand-600); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.prose th, .prose td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose figure { margin: 0; }
.prose blockquote {
  border-left: 3px solid var(--brand-600); padding-left: 1.2rem; color: var(--muted); font-style: italic;
}

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.6rem); align-items: start; }
@media (max-width: 940px) { .with-aside { grid-template-columns: 1fr; } }
.aside-card {
  position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.aside-card h3 { font-size: var(--fs-lg); margin-bottom: .7rem; }
.aside-card p { font-size: var(--fs-sm); color: var(--muted); }
.aside-card .btn { margin-top: 1rem; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.3rem 0; }
.aside-links { list-style: none; padding: 0; display: grid; gap: .3rem; }
.aside-links a { font-size: var(--fs-sm); text-decoration: none; display: block; padding: .35rem 0; }
.aside-links a:hover { text-decoration: underline; }

/* --- 21. Pied de page ---------------------------------------------------- */
.site-footer { background: var(--ink); color: #94aec5; font-size: var(--fs-sm); padding-block: clamp(2.6rem, 2rem + 2.4vw, 4rem) 0; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--fs-base); margin-bottom: .95rem; letter-spacing: 0; }
.site-footer a { color: #b8cde0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: #7fa8cc; }
.footer-brand .brand__tag { color: #7b93a9; }
.footer-brand p { margin-top: 1rem; max-width: 30rem; line-height: 1.7; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: .25rem; color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: #7b93a9;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }

/* --- 22. Barre d'action mobile ------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .55rem; box-shadow: 0 -4px 20px rgba(10,26,43,.08);
}
.mobile-bar .btn { flex: 1; padding: .8rem .6rem; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 68px; }
  html { scroll-padding-top: 76px; }
}

/* --- 23. Animations ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- 24. Impression ------------------------------------------------------ */
@media print {
  .site-header, .topbar, .mobile-bar, .cta-band, .nav-scrim, .site-footer { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
