/* ============================================================
   OPTITAXX — feuille de style (identité du flyer)
   Oiseau facetté, wordmark géométrique, bleu marine / turquoise /
   vert avec une touche de rouge, icônes dans des cercles, cartes
   arrondies à ombre douce, facettes géométriques en décor.
   ============================================================ */

:root {
  /* Couleurs de la charte */
  --navy: #1B2E4A;         /* bleu marine — titres, texte fort, étape 01 */
  --navy-deep: #14253D;
  --teal: #1B7A8A;         /* turquoise — actions, étape 02 */
  --teal-deep: #15616E;
  --green: #2E8B57;        /* vert — gains, étape 03 */
  --green-deep: #236E44;
  --red: #B5323F;          /* rouge — touche d'accent uniquement */
  --text: #26364B;
  --muted: #5F6F82;
  --bg: #FFFFFF;
  --surface: #F3F6F9;
  --surface-2: #E8EEF3;
  --line: #DCE4EC;
  --line-strong: #C2CEDA;
  --navy-tint: #E7ECF3;
  --teal-tint: #E2F1F3;
  --green-tint: #E3F3EA;
  --red-tint: #F8E6E8;
  --gradient: linear-gradient(90deg, var(--navy) 0%, var(--teal) 55%, var(--green) 100%);
  --gradient-btn: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);

  /* Typographie */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Rythme */
  --container: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 14px 34px rgba(20, 37, 61, 0.10);
  --shadow-sm: 0 6px 18px rgba(20, 37, 61, 0.07);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
[id] { scroll-margin-top: 96px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 90%;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
strong { font-weight: 600; color: var(--navy); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(27, 122, 138, 0.35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Conteneurs ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(52px, 7.5vw, 92px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 44px); }
.section--surface { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }

/* Étiquette de section « | NOTRE EXPERTISE » */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 4px; height: 1.1em; background: var(--teal); border-radius: 2px; flex: none; }
.eyebrow--green::before { background: var(--green); }
.eyebrow--energy::before { background: var(--green); }

/* Barre dégradée sous un titre */
.title-bar { display: block; width: 200px; max-width: 60%; height: 5px; border-radius: 3px; background: var(--gradient); margin: 18px 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--gradient-btn); color: #fff; box-shadow: 0 8px 20px rgba(27, 122, 138, 0.25); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(27, 122, 138, 0.35); transform: translateY(-1px); }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--teal); padding-inline: 6px; }
.btn--ghost:hover { color: var(--teal-deep); }
.btn--lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-stretch: 90%; font-weight: 700; color: var(--teal); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: #fff;
  z-index: 60;
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20,37,61,.07); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__bird { width: 64px; height: auto; flex: none; }
.brand__word { width: 168px; height: auto; display: block; }
.brand__tag {
  display: block;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 5px;
  white-space: nowrap;
}
.brand__tag em { font-style: normal; color: var(--green); }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 11px;
  color: var(--navy);
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 999px;
}
.nav__links a:hover { background: var(--surface); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--teal); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { padding: 12px 20px; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__links .btn { display: inline-flex; padding: 14px 24px; font-size: 1rem; color: #fff; justify-content: center; }
.nav__links .btn--primary:hover { background: var(--gradient-btn); }

@media (max-width: 1040px) {
  .nav__links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(20,37,61,.1);
    padding: 10px var(--gutter-r) 18px var(--gutter-l);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 12px; font-size: 1.08rem; }
  .nav__links .nav__mobile-cta { margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav__cta .btn--primary { display: none; }
}
@media (min-width: 1041px) { .nav__mobile-cta { display: none; } }
@media (max-width: 600px) { .brand__tag { display: none; } }
@media (max-width: 420px) { .brand__bird { width: 52px; } .brand__word { width: 140px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 1.02rem; color: var(--navy); font-weight: 500;
  margin-bottom: 22px;
}
.hero__kicker::before, .hero__kicker::after { content: ""; width: 34px; height: 1px; background: var(--navy); opacity: .5; }
.hero h1 { margin-bottom: 0; max-width: 14ch; }
.hero .lead { max-width: 54ch; color: var(--text); font-size: 1.15rem; margin-bottom: 14px; }
.hero .lead strong { color: var(--navy); }
.hero__actions { margin-top: 28px; }
.hero__visual { min-width: 0; display: flex; justify-content: flex-end; }
.hero__visual img { width: 100%; max-width: 440px; height: auto; display: block; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 26px 0 0; padding: 0; list-style: none;
  font-size: 0.95rem; color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero__trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-content: center; }
  .hero__visual img { max-width: 380px; }
  .hero h1 { max-width: none; }
}

/* ---------- Bandeau d'expertises (icônes en ligne) ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 16px; text-align: center; min-width: 0;
  color: var(--navy); text-decoration: none;
  font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-left: 1px solid var(--line);
  transition: background-color .15s ease;
}
.strip__item:first-child { border-left: 0; }
.strip__item:hover { background: var(--surface); text-decoration: none; }
.strip__item svg { width: 40px; height: 40px; color: var(--navy); }
.strip__item span { line-height: 1.3; }
.strip__item small { display: block; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) {
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cercles d'icônes ---------- */
.icon-box, .circle {
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy) 0%, #2C4A70 100%);
  color: #fff;
  flex: none;
  box-shadow: 0 6px 16px rgba(27, 46, 74, 0.22);
}
.icon-box svg, .circle svg { width: 26px; height: 26px; }
.icon-box--teal, .circle--teal, .icon-box--energy { background: linear-gradient(145deg, var(--teal-deep) 0%, #2A9AAA 100%); box-shadow: 0 6px 16px rgba(27, 122, 138, 0.25); }
.icon-box--green, .circle--green, .icon-box--gain { background: linear-gradient(145deg, var(--green-deep) 0%, #3AA86B 100%); box-shadow: 0 6px 16px rgba(46, 139, 87, 0.25); }
.icon-box--sm { width: 44px; height: 44px; }
.icon-box--sm svg { width: 20px; height: 20px; }
.icon { width: 1em; height: 1em; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0; }
.card p { color: var(--muted); }
.card--surface { background: var(--surface); border-color: transparent; box-shadow: none; }
.card--plain { box-shadow: none; }

/* Cartes « argument » : cercle à gauche, titre coloré (flyer) */
.feature {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; min-width: 0; box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 8px; line-height: 1.25; }
.feature--navy h3 { color: var(--navy); }
.feature--teal h3 { color: var(--teal); }
.feature--green h3 { color: var(--green); }
.feature p { color: var(--text); font-size: 0.98rem; margin: 0; }
@media (max-width: 420px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Méthode 01 / 02 / 03 (pilules) ---------- */
.steps3 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.pill-step {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 24px 12px 12px; min-width: 0; box-shadow: var(--shadow-sm);
}
.pill-step .circle { width: 76px; height: 76px; }
.pill-step .circle svg { width: 34px; height: 34px; }
.pill-step__num { font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 10px; }
.pill-step__num small { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.pill-step--navy .pill-step__num { color: var(--navy); }
.pill-step--teal .pill-step__num { color: var(--teal); }
.pill-step--green .pill-step__num { color: var(--green); }
.pill-step p { margin: 4px 0 0; color: var(--text); font-size: 0.97rem; line-height: 1.35; }
.steps3__chev { color: var(--teal); width: 26px; height: 26px; }
@media (max-width: 1000px) {
  .steps3 { grid-template-columns: 1fr; }
  .steps3__chev { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 420px) { .pill-step { grid-template-columns: 60px 1fr; padding-right: 18px; } .pill-step .circle { width: 60px; height: 60px; } }

/* ---------- Bandeau nouveauté ---------- */
.feature-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(90deg, var(--surface) 0%, #EEF4F7 60%, #E6F1F3 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.feature-band h3 { font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.feature-band p { margin: 0; color: var(--text); }
.feature-band img { width: 200px; height: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 900px) { .feature-band { grid-template-columns: 64px 1fr; } .feature-band img { display: none; } }
@media (max-width: 480px) { .feature-band { grid-template-columns: 1fr; } }

/* ---------- Facettes décoratives ---------- */
.facets { position: absolute; pointer-events: none; z-index: 0; }
.facets--tr { top: -10px; right: -20px; width: min(420px, 50vw); }
.facets--bl { bottom: -20px; left: -30px; width: min(360px, 45vw); transform: scaleX(-1) scaleY(-1); }
.has-facets { position: relative; overflow: hidden; }
.has-facets > .container { position: relative; z-index: 1; }

/* ---------- Document "avis" illustré ---------- */
.avis {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.avis__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.avis__title { font-family: var(--font-display); font-stretch: 90%; font-weight: 700; color: var(--navy); font-size: 1rem; }
.avis__title small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.tag {
  display: inline-block;
  font-family: var(--font-display); font-stretch: 90%;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--navy-tint); color: var(--navy);
}
.tag--muted { background: var(--surface-2); color: var(--muted); }
.tag--gain, .tag--green { background: var(--green-tint); color: var(--green); }
.tag--energy, .tag--teal { background: var(--teal-tint); color: var(--teal); }
.tag--warn { background: var(--red-tint); color: var(--red); }
.avis__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.avis__table th, .avis__table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.avis__table thead th { white-space: nowrap; font-family: var(--font-display); font-stretch: 90%; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #fff; }
.avis__table tbody th { font-weight: 500; color: var(--text); white-space: nowrap; }
.avis__table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.avis__table td.is-fixed { color: var(--green); font-weight: 600; }
.avis__table td.is-fixed small { display: block; color: var(--muted); font-weight: 400; white-space: normal; font-size: 0.82rem; }
.avis__result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--green-tint);
}
.avis__result span { font-family: var(--font-display); font-stretch: 90%; font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.avis__result span small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.avis__result strong { font-family: var(--font-display); font-stretch: 90%; font-size: 1.6rem; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  .avis__table th, .avis__table td { padding: 10px 8px; font-size: 0.86rem; }
  .avis__table tbody th { white-space: normal; }
}

/* ---------- Repères chiffrés ---------- */
.keyfacts { background: #fff; }
.keyfacts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.keyfact { padding: 22px 24px; min-width: 0; background: var(--surface); border-radius: var(--radius-lg); border-left: 5px solid var(--teal); }
.keyfact:nth-child(1) { border-left-color: var(--navy); }
.keyfact:nth-child(3) { border-left-color: var(--green); }
.keyfact:nth-child(4) { border-left-color: var(--red); }
.keyfact__value {
  display: block;
  font-family: var(--font-display); font-stretch: 90%;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.keyfact__label { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 860px) { .keyfacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .keyfacts__grid { grid-template-columns: 1fr; } }

/* ---------- Raisons / arguments ---------- */
.reasons { display: grid; gap: 22px; }
.reason { display: grid; grid-template-columns: 58px 1fr; gap: 18px; min-width: 0; align-items: start; }
.reason h3 { font-size: 1.12rem; margin: 6px 0 6px; }
.reason p { color: var(--muted); font-size: 0.98rem; }
.reason .fact { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--navy); padding: 10px 14px; background: var(--surface); border-radius: 8px; border-left: 3px solid var(--teal); }

/* ---------- Expertises (listes de taxes) ---------- */
.expertise {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
}
.expertise__head { display: flex; align-items: flex-start; gap: 18px; }
.expertise__head h3 { font-size: 1.45rem; margin: 6px 0 4px; }
.expertise__head p { color: var(--muted); margin: 0; }
.tax-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tax-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.tax-list li:last-child { border-bottom: 1px solid var(--line); }
.tax-list .tax-name { font-weight: 600; color: var(--navy); }
.tax-list .tax-note { color: var(--muted); font-size: 0.92rem; text-align: right; }
@media (max-width: 520px) {
  .tax-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tax-list .tax-note { text-align: left; }
  .expertise { padding: 24px; }
}

/* Entrées détaillées (page expertises) */
.tax-entry {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px 48px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.tax-entry:last-child { border-bottom: 1px solid var(--line); }
.tax-entry h3 { font-size: 1.35rem; margin-bottom: 6px; }
.tax-entry .tax-entry__meta { color: var(--muted); font-size: 0.95rem; }
.tax-entry__body { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.tax-entry__body h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.tax-entry__body ul { padding-left: 1.1em; color: var(--text); font-size: 0.98rem; }
.tax-entry__body .deadline { grid-column: 1 / -1; font-size: 0.95rem; color: var(--navy); background: var(--surface); padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--green); }
.tax-entry__body .deadline strong { color: var(--green); }
@media (max-width: 860px) {
  .tax-entry { grid-template-columns: 1fr; gap: 16px; }
  .tax-entry__body { grid-template-columns: 1fr; }
}

/* ---------- Méthode (étapes en grille) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { padding: 26px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.step__num { font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1; color: var(--teal); }
.step:nth-child(1) .step__num { color: var(--navy); }
.step:nth-child(3) .step__num { color: var(--green); }
.step:nth-child(4) .step__num { color: var(--red); }
.step h3 { font-size: 1.12rem; margin: 0; }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.step__when { margin-top: auto; padding-top: 10px; font-size: 0.85rem; font-family: var(--font-display); font-stretch: 90%; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Timeline détaillée (page méthode) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline > li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); margin: 0; }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-family: var(--font-display); font-stretch: 90%; font-weight: 800; color: var(--teal); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 3px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); }
.timeline ul { list-style: disc; color: var(--text); font-size: 0.97rem; margin-top: 8px; }
@media (max-width: 600px) { .timeline > li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Honoraires ---------- */
.fee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fee__visual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.fee__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fee__row:last-of-type { border-bottom: 0; }
.fee__row span { color: var(--muted); }
.fee__row strong { font-family: var(--font-display); font-stretch: 90%; color: var(--navy); font-weight: 700; }
.fee__row--total { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 16px; }
.fee__row--total strong { color: var(--green); font-size: 1.4rem; }
.fee__note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .fee { grid-template-columns: 1fr; } }

/* ---------- Pour qui ---------- */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audience { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; min-width: 0; box-shadow: var(--shadow-sm); }
.audience .icon-box { margin-bottom: 14px; }
.audience h3 { font-size: 1.05rem; margin-bottom: 6px; }
.audience p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 1000px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- Cas / résultats ---------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
}
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case h3 { font-size: 1.15rem; margin: 0; }
.case p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.case__figure { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.case__figure strong { display: block; font-family: var(--font-display); font-stretch: 90%; font-size: 1.7rem; color: var(--green); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.case__figure span { font-size: 0.88rem; color: var(--muted); }
.case__figure--pending strong { color: var(--navy); font-size: 1.1rem; }

/* Erreurs fréquentes */
.errors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.errors li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; min-width: 0; box-shadow: var(--shadow-sm); }
.errors .icon-box { width: 44px; height: 44px; }
.errors .icon-box svg { width: 20px; height: 20px; }
.errors strong { display: block; margin-bottom: 2px; }
.errors span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .errors { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding: 0 0 22px; max-width: 70ch; color: var(--text); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: linear-gradient(90deg, #EEF4F7 0%, #E4F1F3 55%, #E3F3EA 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text); font-size: 1.1rem; max-width: 56ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.cta-band__actions small { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-self: start; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 28px; color: var(--text); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__grid h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin: 0 0 9px; }
.footer__grid a { color: var(--navy); }
.footer__about .brand { background: #fff; border-radius: 16px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); }
.footer__about p { color: var(--muted); font-size: 0.97rem; max-width: 38ch; margin-top: 16px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; color: var(--muted); }
.footer__legal a { color: var(--muted); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(36px, 5.5vw, 64px) clamp(32px, 5vw, 52px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.page-head h1 { font-size: clamp(2rem, 3.9vw, 3rem); max-width: 22ch; margin-bottom: 0; }
.page-head .lead { max-width: 60ch; }
.page-head .title-bar { margin-bottom: 20px; }
.page-head .facets { opacity: .85; }
.page-head > .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span::before { content: "/"; margin-inline: 8px; color: var(--line-strong); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 0.94rem; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field textarea { min-height: 140px; resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--teal); }
.field--check label { font-weight: 400; font-family: var(--font-body); font-size: 0.93rem; color: var(--muted); }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-success { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--green-tint); border: 1px solid #BFE3D0; border-radius: var(--radius); }
.form-success svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.form-error { color: var(--red); font-size: 0.92rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-aside { display: grid; gap: 22px; }
.contact-aside .card { padding: 24px; }
.contact-aside ol { padding-left: 1.2em; color: var(--text); }
.contact-aside .email { font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 1.08rem; color: var(--navy); word-break: break-all; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-form { padding: 24px; } }

/* ---------- Diagnostic express ---------- */
.diag { max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.diag__bar { height: 6px; background: var(--surface-2); }
.diag__bar span { display: block; height: 100%; background: var(--gradient); transition: width .25s ease; }
.diag__inner { padding: clamp(24px, 4vw, 40px); }
.diag__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-stretch: 90%; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.diag__question { font-size: 1.35rem; margin-bottom: 20px; }
.diag__options { display: grid; gap: 10px; }
.diag__option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.diag__option:hover { border-color: var(--teal); background: var(--teal-tint); }
.diag__option .key { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 0.85rem; flex: none; }
.diag__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.diag__result { display: grid; gap: 22px; }
.diag__verdict { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.diag__verdict .icon-box { flex: none; }
.diag__verdict h3 { margin: 0 0 4px; font-size: 1.25rem; }
.diag__verdict p { margin: 0; color: var(--muted); }
.meter { display: grid; gap: 14px; }
.meter__row { display: grid; grid-template-columns: 170px 1fr 90px; gap: 14px; align-items: center; font-size: 0.95rem; }
.meter__row strong { font-weight: 600; color: var(--navy); }
.meter__track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--teal)); width: 0; transition: width .4s ease; }
.meter__fill--energy { background: linear-gradient(90deg, var(--teal), var(--green)); }
.meter__level { text-align: right; font-family: var(--font-display); font-stretch: 90%; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 560px) { .meter__row { grid-template-columns: 1fr; gap: 6px; } .meter__level { text-align: left; } }

/* ---------- Divers ---------- */
.note { font-size: 0.92rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); }
.placeholder { background: var(--red-tint); color: var(--red); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
