/* ==========================================================
   Polices auto-hébergées (perf + RGPD : zéro requête Google)
   ========================================================== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/lora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/lora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-italic.woff2') format('woff2'); }

/* ==========================================================
   MOHNA — Design v4 "Moderne clair & épuré"
   Éditorial contemporain : typo XXL Space Grotesk, blanc dominant,
   un seul accent — bleu électrique #2563EB. Contrastes AA vérifiés.
   ========================================================== */
:root {
  --primary: #141413;          /* titres, surfaces sombres */
  --primary-dark: #0f0f0e;
  --slate: #3f3d38;
  --secondary: #9c4221;        /* liens & accents texte (AA 6.7:1) */
  --accent: #d97757;           /* CTA, détails — l'unique couleur */
  --accent-hover: #c96a4a;
  --accent-soft: #f7e9e1;
  --bg: #faf9f5;
  --surface: #FFFFFF;
  --text: #141413;
  --text-soft: #494640;        /* texte secondaire — contraste renforcé (AA ~8.6:1) */
  --border: #e3e0d5;
  --text-onDark: #e9e7df;      /* texte lisible sur fonds sombres */
  --success: #15803D;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 4px 12px rgba(10,10,10,.04);
  --shadow-md: 0 2px 6px rgba(10,10,10,.05), 0 16px 40px rgba(10,10,10,.08);
  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head); line-height: 1.08; color: var(--primary);
  text-wrap: balance; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.025em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { text-wrap: pretty; margin: 0 0 1em; }
a { color: var(--secondary); }
img { max-width: 100%; height: auto; }
em { font-style: normal; color: var(--accent); }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: clamp(2.6rem, 5vw, 4.6rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 2.2rem; text-align: center; }
.section-head::after {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 1.5rem auto 0;
}
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,245,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; border: 2px solid var(--accent); box-shadow: inset 0 0 0 2px var(--primary);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; flex: 0 0 auto;
}
.logo-name { font-family: var(--font-head); display: inline-flex; flex-direction: column; line-height: 1.02; letter-spacing: -.02em; }
.logo-word { font-weight: 700; font-size: 1.3rem; color: var(--primary); }
.logo-word .logo-dot { color: var(--accent); }
.logo-co { font-size: .58rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--secondary); margin-top: 2px; }
.footer-logo .logo-word { color: #fff; }
.footer-logo .logo-co { color: var(--accent); }
.footer-logo .logo-mark { box-shadow: inset 0 0 0 2px var(--primary); }
.main-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .93rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--secondary); }
.main-nav a[aria-current="page"] { color: var(--secondary); border-bottom-color: var(--accent); }
.main-nav a.btn { padding: .6rem 1.4rem; border-bottom: 2px solid transparent; }
.main-nav a.btn, .main-nav a.btn[aria-current="page"] { color: var(--primary); border-bottom-color: transparent; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .55rem .7rem; cursor: pointer; color: var(--primary);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem; letter-spacing: 0;
  padding: .85rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(217,119,87,.3); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #F1F1F3; color: var(--primary); }
.btn-light:hover { background: var(--accent-soft); color: var(--secondary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--slate); }
.btn-lg { padding: 1rem 2.3rem; font-size: 1.05rem; }

/* ---------- Hero (clair, éditorial) ---------- */
.hero {
  background: var(--surface);
  color: var(--text); padding: clamp(3rem, 6vw, 5.5rem) 0;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10,10,10,.055) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 68% 90% at 82% 12%, #000 25%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  right: -140px; top: -180px; pointer-events: none; filter: blur(60px);
  background: radial-gradient(circle, rgba(217,119,87,.14), transparent 62%);
  animation: hero-float 16s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.12); }
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: var(--primary); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--text-soft); font-size: 1.18rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head);
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); border: 1px solid rgba(217,119,87,.25);
  padding: .4rem 1.1rem; border-radius: 999px; margin-bottom: 1.5rem; color: var(--secondary);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-points { list-style: none; margin: 1.9rem 0 0; padding: 0; display: grid; gap: .55rem; color: var(--text-soft); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .6rem; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md);
}
.hero-card h3 { color: var(--primary); margin-bottom: 1.1rem; }
.hero-card ol { margin: 0; padding-left: 1.2rem; color: var(--text-soft); display: grid; gap: .75rem; font-size: .95rem; }
.hero-card ol strong { color: var(--secondary); }

/* ---------- Grilles cartes ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(217,119,87,.35); }
.card::after {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 0;
  background: var(--accent); border-radius: var(--radius) 0 0 0; transition: width .35s ease;
}
.card:hover::after { width: 52%; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--secondary); font-size: 1.5rem; margin-bottom: 1.2rem;
}
.card p { color: var(--text-soft); font-size: .96rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; font-family: var(--font-head); }
.card ul { color: var(--text-soft); font-size: .93rem; padding-left: 1.1rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.card-pole {
  font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: .5rem;
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
/* Variante à 3 étapes : grille équilibrée et centrée (pas de colonne vide) */
.steps-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-inline: auto; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.step-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--accent); margin-bottom: .5rem; line-height: 1;
}
.step p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.zone { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.zone h3 { display: flex; align-items: center; gap: .6rem; }
.zone p { color: var(--text-soft); font-size: .94rem; margin: 0; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(217,119,87,.14); }
.price-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary); font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  padding: .28rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--primary); font-variant-numeric: tabular-nums; }
.price small { font-size: .95rem; font-weight: 500; color: var(--text-soft); font-family: var(--font-body); letter-spacing: 0; }
.price-note { font-size: .85rem; color: var(--text-soft); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; font-size: .94rem; color: var(--text-soft); }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .55rem; }
.check-list li.off { opacity: .45; }
.check-list li.off::before { content: "—"; color: var(--text-soft); }

/* ---------- Engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.engagement { padding: 1.4rem 1rem; }
.engagement .card-icon { margin-inline: auto; }
.engagement h3 { font-size: 1.05rem; }
.engagement p { font-size: .88rem; color: var(--text-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .9rem; }
details.faq-item {
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 0; overflow: hidden;
  transition: border-color .2s;
}
details.faq-item[open] { border-color: rgba(217,119,87,.4); }
details.faq-item summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--primary);
  padding: 1.15rem 1.4rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; font-weight: 400; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--text-soft); font-size: .96rem; }

/* ---------- Bandeau CTA (contraste éditorial noir) ---------- */
.cta-band {
  background: var(--primary);
  border-radius: calc(var(--radius) + 6px); color: #fff; text-align: center;
  padding: clamp(3rem, 6vw, 4.8rem) 2rem; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: -120px; bottom: -220px; filter: blur(60px); pointer-events: none;
  background: radial-gradient(circle, rgba(217,119,87,.5), transparent 65%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-onDark); max-width: 580px; margin-inline: auto; }
.cta-band .btn { margin-top: 1.3rem; position: relative; z-index: 1; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--primary); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: .8rem .95rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%; min-width: 0;
}
.contact-layout > *, .grid > *, .form-grid > * { min-width: 0; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,87,.15);
}
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; color: var(--text-soft); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success {
  display: none; background: #EFFAF3; border: 1.5px solid var(--success); color: #14532D;
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-top: 1rem; font-weight: 500;
}
.form-success.visible { display: block; }

/* ---------- Contact infos ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-info-card li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text-soft); font-size: .95rem; }
.contact-info-card li strong { color: var(--primary); display: block; }

/* ---------- Page header (clair, typo XXL) ---------- */
.page-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  color: var(--text); padding: clamp(3.2rem, 7vw, 5.5rem) 0; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10,10,10,.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 20%, transparent 70%);
}
.page-header h1 { color: var(--primary); margin-bottom: .5rem; position: relative; }
.page-header p { color: var(--text-soft); max-width: 640px; margin: 0 auto; font-size: 1.1rem; position: relative; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose .notice {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem;
}

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.compare th, table.compare td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .93rem; }
table.compare th { background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; }
table.compare td { color: var(--text-soft); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #cfccc3; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.1rem 1.8rem; padding: 2rem 0 1.1rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer a { color: #cfccc3; text-decoration: none; font-size: .89rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .86rem; margin: 0; max-width: 42ch; color: #b7b4ab; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: .8rem 0; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-logo { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; }
.footer-logo .logo-mark { background: var(--accent); color: var(--primary); }
.footer-logo .logo-name { color: #fff; }

/* ---------- Reveal + stagger ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .engagements > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .engagements > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4), .engagements > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Détails ---------- */
::selection { background: rgba(217,119,87,.2); color: var(--primary); }
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: #b0aea5 #faf9f5; scrollbar-width: thin; }
}
.logo-mark { transition: transform .25s ease; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 1.1rem; }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .zones, .pricing, .steps, .engagements { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); display: none; padding: 1rem 4%; box-shadow: var(--shadow-md); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .grid-4, .zones, .pricing, .steps, .engagements, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Effets modernes (motion.js) — transform/opacity only
   ========================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
.site-header { transition: box-shadow .25s ease, transform .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(10,10,10,.07); }
.site-header.hidden-up { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }

/* Animation d'entrée du titre héro par ligne (robuste) */
.line-in { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px);
  transition: opacity .6s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1), filter .6s ease; }
.words-go .line-in { opacity: 1; transform: none; filter: blur(0); }

/* Halo curseur sur les cartes */
.card, .zone, .step { --mx: 50%; --my: 50%; }
@media (hover: hover) and (pointer: fine) {
  .card::before, .zone::before, .step::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx) var(--my), rgba(217,119,87,.07), transparent 65%);
    opacity: 0; transition: opacity .3s ease;
  }
  .card:hover::before, .zone:hover::before, .step:hover::before { opacity: 1; }
  .zone, .step { position: relative; }
}

/* Reflet balayant sur les CTA */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 120%; }

/* Parallaxe du halo héro */
.hero::after { translate: var(--px, 0) var(--py, 0); }

/* Marquee démarches */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: .8rem 0; }
.marquee-track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-soft); white-space: nowrap; display: flex; align-items: center; gap: 2.6rem; }
.marquee b { color: var(--secondary); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .word-in { opacity: 1; transform: none; filter: none; }
  .site-header.hidden-up { transform: none; }
}

/* FAQ : accordéon animé géré par js/effects.js */
details.faq-item .faq-body { overflow: hidden; }

/* ---------- Effets v6 : tilt, ripple, transitions ---------- */
.card { will-change: transform; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.45); transform: scale(0);
  animation: ripple .6s ease-out forwards;
}
.btn { position: relative; overflow: hidden; }
@keyframes ripple { to { transform: scale(2.2); opacity: 0; } }

/* Transitions de page natives (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .30s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Entrée de page (fallback universel) */
@keyframes page-in { from { opacity: 0; } }
body { animation: page-in .35s ease both; }

/* Souligné animé sur les liens de nav */
.main-nav a:not(.btn) { position: relative; border-bottom: none !important; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.main-nav a:not(.btn):hover::after, .main-nav a:not(.btn)[aria-current="page"]::after { right: 0; }

/* Liens de cartes : flèche qui glisse */
.card-link { display: inline-block; transition: transform .2s ease; }
.card-link:hover { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .btn .ripple { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================
   v7 — Recherche, fil d'Ariane, filtres, bandeau cookies
   ========================================================== */
/* Bouton recherche nav */
.nav-search-btn { background: none; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 1rem; color: var(--primary); transition: border-color .2s, background-color .2s; }
.nav-search-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Overlay de recherche */
.search-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(20,20,19,.45); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-overlay.open { display: flex; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: 0; } }
.search-box { width: min(600px, 92%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; }
.search-input { width: 100%; border: none; border-bottom: 1px solid var(--border); padding: 1.1rem 1.3rem; font: inherit; font-size: 1.05rem; color: var(--text); }
.search-input:focus { outline: none; }
.search-results { max-height: 52vh; overflow-y: auto; }
.search-result { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1.3rem; text-decoration: none; border-bottom: 1px solid var(--border); }
.search-result:last-child { border-bottom: none; }
.search-result.active, .search-result:hover { background: var(--accent-soft); }
.sr-title { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .96rem; }
.sr-desc { font-size: .84rem; color: var(--text-soft); }
.search-empty { padding: 1.4rem 1.3rem; color: var(--text-soft); font-size: .92rem; }
.search-hint { margin: 0; padding: .6rem 1.3rem; font-size: .76rem; color: var(--text-soft); background: var(--bg); border-top: 1px solid var(--border); }

/* Fil d'Ariane */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb ol { max-width: 1140px; width: 92%; margin-inline: auto; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .8rem 0; margin-block: 0; font-size: .85rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: var(--text-soft); }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--text-soft); }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Filtres démarches */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { font-family: var(--font-head); font-size: .86rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--accent); color: var(--secondary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.demarche-card.hidden { display: none; }

/* Bandeau cookies RGPD */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 260; background: var(--primary); color: #fff;
  padding: 1.1rem 1.3rem; box-shadow: 0 -6px 24px rgba(20,20,19,.2); display: none; }
.cookie-banner.show { display: block; animation: cookie-up .35s ease; }
@keyframes cookie-up { from { transform: translateY(100%); } }
.cookie-inner { max-width: 1140px; width: 92%; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.cookie-inner p { margin: 0; font-size: .9rem; color: #d8d6cf; flex: 1; min-width: 260px; }
.cookie-inner a { color: var(--accent); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .6rem 1.3rem; font-size: .88rem; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Bandeau reprise de commande (wizard) */
.draft-banner { max-width: 820px; margin: 0 auto 1.5rem; background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; font-size: .92rem; }
.draft-actions { display: flex; gap: .5rem; }
.draft-actions .btn { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-ghost-dark { background: transparent; border: 1.5px solid var(--border); color: var(--text-soft); }
.btn-ghost-dark:hover { background: var(--surface); }

/* ==========================================================
   v8 — Navigation premium, responsive tablette/mobile,
   retour-en-haut, barre d'action mobile
   ========================================================== */

/* ---- Hamburger animé ---- */
.nav-toggle { width: 44px; height: 44px; }
.burger { display: inline-grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.is-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .burger i:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Menus déroulants (desktop) ---- */
.main-nav .has-dropdown { position: relative; }
.dropdown-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-soft);
  font-size: 1rem; padding: 0 .2rem; line-height: 1; }
.dropdown { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; display: grid; gap: .1rem; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease; z-index: 120; }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-family: var(--font-body); font-size: .9rem; border: none !important; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--accent-soft); color: var(--secondary); }

/* ---- Backdrop mobile ---- */
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20,20,19,.4); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.nav-lock { overflow: hidden; }

/* ---- Retour en haut ---- */
.to-top { position: fixed; bottom: 94px; right: 24px; left: auto; z-index: 150; width: 52px; height: 52px; border-radius: 50%;
  border: none; background: var(--accent); color: var(--primary); font-size: 1.35rem; cursor: pointer;
  box-shadow: 0 6px 22px rgba(217,119,87,.45); display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.9);
  pointer-events: none; transition: opacity .25s ease, transform .25s ease, background-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }
.to-top .icn { width: 1.4rem; height: 1.4rem; }

/* ---- Barre d'action mobile ---- */
.mobile-actionbar { display: none; }
.mobile-actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 130;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1.4fr; gap: .4rem; box-shadow: 0 -4px 20px rgba(20,20,19,.08);
}
.mobile-actionbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; color: var(--text-soft); padding: .5rem .3rem;
  border-radius: var(--radius-sm); min-height: 48px; justify-content: center; }
.mobile-actionbar a span { font-size: 1.15rem; }
.mobile-actionbar a.primary { background: var(--accent); color: var(--primary); }
.mobile-actionbar a:active { transform: scale(.96); }

/* ========== TABLETTE (max 960px) ========== */
@media (max-width: 960px) {
  .nav-wrap { min-height: 66px; }
  /* Drawer latéral : display none quand fermé (un position:fixed hors écran
     échapperait à overflow et créerait un scroll horizontal) */
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(320px, 84vw);
    background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 40px rgba(20,20,19,.18);
    padding: 5rem 1.4rem 2rem; display: none; overflow-y: auto; z-index: 110;
  }
  .main-nav.open { display: block; animation: drawer-in .3s cubic-bezier(.4,0,.2,1); }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: .85rem .6rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .main-nav a.btn { text-align: center; margin-top: .8rem; border-bottom: none; }
  .main-nav a[aria-current="page"] { color: var(--secondary); }
  /* Accordéon mobile */
  .dropdown-toggle { display: inline-flex; position: absolute; right: .3rem; top: .6rem; width: 40px; height: 40px;
    align-items: center; justify-content: center; font-size: 1.3rem; transition: transform .25s ease; }
  .main-nav .has-dropdown { position: relative; }
  .main-nav .has-dropdown.open .dropdown-toggle { transform: rotate(180deg); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none;
    background: var(--bg); border-radius: var(--radius-sm); margin: 0 0 .3rem; padding: .2rem;
    max-height: 0; overflow: hidden; display: block; transition: max-height .3s ease; }
  .main-nav .has-dropdown.open .dropdown { max-height: 520px; }
  .dropdown::before { display: none; }
  .nav-search-btn { width: 100%; border-radius: var(--radius-sm); justify-content: flex-start; gap: .6rem; padding: .85rem .6rem; }
  .nav-search-btn::after { content: "Rechercher sur le site"; font-family: var(--font-body); font-size: 1rem; color: var(--text); }

  /* Grilles : 2 colonnes propres en tablette */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .engagements { grid-template-columns: repeat(2, 1fr); }

  /* Barre d'action visible */
  .mobile-actionbar { display: grid; }
  body.has-actionbar { padding-bottom: 68px; }
  body.has-actionbar .to-top { bottom: 150px; }
  body.has-actionbar .mohna-chat-btn { bottom: 80px; }
  body.has-actionbar .cookie-banner { bottom: 64px; }
}

/* ========== MOBILE (max 600px) ========== */
@media (max-width: 600px) {
  .container { width: 90%; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .grid-4, .grid-3, .grid-2, .steps, .engagements, .zones, .pricing { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2rem; }
  /* Zones tactiles confortables */
  .btn { min-height: 46px; }
  .card-link, .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .dropdown a { min-height: 44px; }
  .to-top { width: 44px; height: 44px; bottom: 90px; }
  /* Tableaux : indication de défilement */
  .table-wrap, .compare-scroll { position: relative; }
}

/* Zones tactiles : viser 44px partout sur écrans tactiles */
@media (pointer: coarse) {
  .btn, .filter-btn, .faq-item summary, .choice { min-height: 44px; }
}

/* Sécurité anti-débordement horizontal (léger) */
html { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) { .main-nav.open { animation: none; } }

/* ==========================================================
   v9 — FAQ animées, parallax, magnétisme, blobs, responsive+
   ========================================================== */

/* FAQ : chevron rotatif fluide + latence différenciée */
details.faq-item summary::after { transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s; }
details.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }
details.faq-item summary:hover::after { color: var(--secondary); }

/* Parallax : le halo et les points du héro suivent le scroll à des vitesses différentes */
.hero::after { translate: var(--px, 0) calc(var(--py, 0px) + var(--sy, 0px)); }
.hero::before { transform: translateY(var(--sd, 0px)); }
.page-header::before { transform: translateY(var(--sd, 0px)); }
.hero .container { will-change: transform, opacity; }

/* Éléments data-par génériques */
[data-par] { transform: translateY(var(--par, 0px)); }
.cta-band[data-par] { transition: none; }

/* Boutons magnétiques */
.btn-primary, .btn-dark { translate: var(--mag-x, 0) var(--mag-y, 0); transition-property: transform, box-shadow, background-color, translate; transition-duration: .15s, .2s, .2s, .25s; }

/* Blobs décoratifs flottants */
.fx-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(46px); z-index: 0; }
.fx-blob-a { width: 300px; height: 300px; left: -110px; bottom: -140px;
  background: radial-gradient(circle, rgba(217,119,87,.16), transparent 65%);
  animation: blob-a 18s ease-in-out infinite; }
.fx-blob-b { width: 200px; height: 200px; right: 18%; bottom: -60px;
  background: radial-gradient(circle, rgba(20,20,19,.08), transparent 65%);
  animation: blob-b 14s ease-in-out infinite; }
.fx-blob-c { width: 260px; height: 260px; left: -80px; top: -120px;
  background: radial-gradient(circle, rgba(217,119,87,.35), transparent 65%);
  animation: blob-a 16s ease-in-out infinite; }
@keyframes blob-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.15); } }
@keyframes blob-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-34px,22px) scale(.9); } }

/* Reveal directionnel (grilles 2 colonnes) */
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-left.in, .reveal-right.in { transform: none; }

/* Accent titre héro : couleur pleine (lisible même avec le split de mots) */
.hero h1 em, .hero h1 em .word-in { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .fx-blob { animation: none; }
  .reveal-left, .reveal-right { transform: none; }
}

/* ==========================================================
   v9 — Responsive design amélioré
   ========================================================== */
@media (max-width: 960px) {
  .contact-layout, .dash-grid { grid-template-columns: 1fr; }
  .section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
  .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .breadcrumb li { white-space: nowrap; }
  table.compare th, table.compare td, table.statuts th, table.statuts td { padding: .7rem .8rem; font-size: .86rem; }
}
@media (max-width: 680px) {
  .quote-bar { flex-direction: column; align-items: stretch; text-align: center; gap: .6rem; }
  .quote-bar .wizard-nav { justify-content: center; }
  .cta-band { padding: 2.4rem 1.4rem; }
  .marquee span { font-size: .82rem; gap: 1.8rem; }
  .marquee-track { gap: 1.8rem; }
  .hero-card { padding: 1.4rem; }
  .card { padding: 1.5rem; }
  .step { padding: 1.4rem; }
  .prose .notice { font-size: .88rem; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .btn, .price-card .btn { width: 100%; }
  h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .lead { font-size: 1.05rem; }
  .container { width: 92%; }
  .search-overlay { padding-top: 6vh; }
  .mohna-chat { width: calc(100vw - 20px); right: 10px; }
  .form-grid { gap: .9rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .filters { gap: .45rem; }
  .filter-btn { font-size: .8rem; padding: .45rem .85rem; }
  .engagement { padding: 1rem .6rem; }
}
/* ---------- Footer compact & adaptatif selon le support ---------- */
/* Tablette : marque en bandeau + 3 colonnes de liens serrées (reste court) */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; padding: 1.8rem 0 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .footer-grid > div:first-child p { margin: 0; flex: 1 1 260px; }
  .footer-logo { margin-bottom: 0; }
}
/* Mobile : marque compacte + liens sur 2 colonnes (plus court qu'une pile) */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; padding: 1.5rem 0 .8rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer p { font-size: .82rem; }
  .site-footer a { font-size: .85rem; }
  .footer-bottom { justify-content: center; text-align: center; padding: .7rem 0; font-size: .76rem; }
}

/* ---------- Affinages responsive généraux ---------- */
@media (max-width: 760px) {
  .grid-4, .grid-3, .grid-2, .plan-grid, .cpt-plans, .steps, .steps-3, .pricing, .zones { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 2.2rem; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { min-height: 44px; }                                     /* cible tactile */
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .cpt-price { font-size: 1.7rem; }
  .fl-table th, .fl-table td, .cpt-table th, .cpt-table td { padding: .6rem .7rem; font-size: .85rem; }
}

/* Très grands écrans : contenir la largeur de lecture */
@media (min-width: 1600px) {
  .container { width: min(1220px, 88%); }
}

/* ==========================================================
   v9b — Hero modernisé + icônes SVG
   ========================================================== */
/* Icônes SVG */
.icn { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; }
.card-icon .icn { width: 25px; height: 25px; vertical-align: middle; }
.icn-inline { margin-right: .3rem; }
.mobile-actionbar .icn { width: 1.25rem; height: 1.25rem; }
.to-top .icn { width: 1.15rem; height: 1.15rem; }
.dropdown .icn { width: 1rem; height: 1rem; color: var(--secondary); }

/* Badge : point pulsant */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  animation: pulse-ring 2s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes pulse-ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* CTA flèche animée */
.btn-arrow .arrow { display: inline-block; transition: transform .25s cubic-bezier(.4,0,.2,1); margin-left: .2rem; }
.btn-arrow:hover .arrow { transform: translateX(5px); }

/* Points héro -> chips */
.hero-chips { display: flex !important; flex-wrap: wrap; gap: .5rem !important; }
.hero-chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .9rem; font-size: .84rem; box-shadow: var(--shadow-sm); }

/* Carte verre flottante */
.hero-card-glass {
  position: relative; background: rgba(255,255,255,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(217,119,87,.25);
  animation: card-float 7s ease-in-out infinite;
}
.hero-card-glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(217,119,87,.5), transparent 40%, transparent 65%, rgba(217,119,87,.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Chips satellites flottantes */
.hero-sat { position: absolute; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .9rem; font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-md); white-space: nowrap; z-index: 2; }
.hero-sat .icn { color: var(--secondary); }
.sat-a { top: -16px; right: 8%; animation: sat-float 6s ease-in-out infinite; }
.sat-b { bottom: 14%; left: -34px; animation: sat-float 7.5s ease-in-out infinite reverse; }
.sat-c { bottom: -14px; right: 14%; animation: sat-float 5.5s ease-in-out .8s infinite; }
@keyframes sat-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Indicateur de scroll */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 999px;
  display: none; align-items: flex-start; justify-content: center; padding-top: 7px; z-index: 2;
  transition: border-color .2s; }
.scroll-cue:hover { border-color: var(--accent); }
.scroll-cue-wheel { width: 4px; height: 9px; border-radius: 4px; background: var(--accent);
  animation: cue 1.8s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 961px) { .scroll-cue { display: inline-flex; } }

@media (max-width: 960px) {
  .hero-sat { display: none; }
  .hero-card-glass { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card-glass, .hero-sat, .scroll-cue-wheel, .pulse-dot::after { animation: none; }
}

/* Espace membre : incitation création + premium */
.member-cta { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-md); }
.member-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.member-list li { position: relative; padding-left: 1.7rem; color: var(--text-soft); font-size: .95rem; }
.member-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.member-preview { text-align: center; background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; }
.member-preview p { color: #d7d4cb; font-size: .9rem; margin: .6rem 0 1rem; }
.member-lock { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: rgba(217,119,87,.18); border: 1px solid rgba(217,119,87,.4); font-size: 1.8rem; }
@media (max-width: 760px) { .member-cta { grid-template-columns: 1fr; } }

/* Newsletter segmentée */
.newsletter-box { max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.newsletter-box .section-head { text-align: center; }
.nl-profil { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.nl-radio { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border); border-radius: 999px;
  padding: .5rem 1rem; font-size: .9rem; cursor: pointer; background: var(--bg); transition: border-color .15s ease; }
.nl-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--secondary); font-weight: 600; }
.nl-radio input { accent-color: var(--accent); }
.nl-row { display: flex; gap: .6rem; }
.nl-row input { flex: 1; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--bg); color: var(--text); }
.nl-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.nl-consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--text-soft); margin-top: .9rem; }
.nl-consent input { margin-top: .2rem; accent-color: var(--accent); }
.nl-msg { min-height: 1.2em; margin: .7rem 0 0; font-size: .9rem; }
.nl-msg.ok { color: var(--success); } .nl-msg.ko { color: #b91c1c; }
@media (max-width: 520px) { .nl-row { flex-direction: column; } .nl-row .btn { width: 100%; } }

/* Estimation des frais légaux (visiteur + client) */
.legal-est { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1rem 0; box-shadow: var(--shadow-sm); }
.legal-est-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .7rem; font-family: var(--font-head); }
.legal-est-head .legal-ic { font-size: 1.1rem; }
.legal-badge { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--secondary); padding: .2rem .55rem; border-radius: 999px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table td { padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.legal-table td.legal-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.legal-table .legal-total td { border-bottom: none; border-top: 2px solid var(--primary); font-family: var(--font-head); font-weight: 700; padding-top: .6rem; }
.legal-note { font-size: .78rem; color: var(--text-soft); margin: .7rem 0 0; }
.legal-free { display: flex; align-items: center; gap: .7rem; border-left-color: var(--success); }
.legal-free .legal-ic { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: #e7f4ec; color: var(--success); font-weight: 700; }

/* Espace client — finances (devis & factures) */
.fin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.fin-kpi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.fin-kpi span { display: block; font-size: .74rem; color: var(--text-soft); }
.fin-kpi b { font-family: var(--font-head); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fin-kpi b.ok { color: var(--success); } .fin-kpi b.due { color: var(--secondary); }
.fin-sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); margin: 1rem 0 .4rem; }
.fin-table-wrap { overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.fin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.fin-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.fin-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table td.muted { color: var(--text-soft); }
.fin-table .doc-dl { white-space: nowrap; }

/* Espace client — historique complet */
.histo-full { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow-y: auto; }
.hf-item { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.hf-ic { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; background: var(--bg); border-radius: 8px; font-size: .9rem; }
.hf-body { display: flex; flex-direction: column; }
.hf-label { font-size: .9rem; }
.hf-date { font-size: .74rem; color: var(--text-soft); }

/* Espace client — canaux de contact */
.contact-channels { display: grid; gap: .5rem; margin-top: 1rem; }
.cc-btn { display: flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 500; font-size: .9rem;
  background: var(--surface); transition: border-color .15s ease, transform .12s ease; }
.cc-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.cc-wa { background: #e9f8ee; border-color: #b8e6c6; color: #157347; }

/* Bandeau "nouveaux documents disponibles" */
.doc-notice { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(120,140,93,.12), rgba(217,119,87,.10));
  border: 1px solid rgba(120,140,93,.35); border-left: 4px solid var(--success, #788c5d);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm); animation: notice-in .5s ease both; }
.doc-notice > span:first-child { font-size: 1.4rem; line-height: 1; animation: notice-ring 2.5s ease-in-out infinite; transform-origin: 50% 0; }
.doc-notice > span:nth-child(2) { flex: 1 1 220px; font-size: .95rem; color: var(--text-soft); }
.doc-notice > span:nth-child(2) strong { color: var(--text); }
.doc-notice .btn { margin-left: auto; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notice-ring { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(14deg); } 94% { transform: rotate(-12deg); } 97% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .doc-notice, .doc-notice > span:first-child { animation: none; } }
@media (max-width: 560px) { .doc-notice .btn { margin-left: 0; width: 100%; } }

/* Vérification anti-robot (captcha) */
.captcha { margin: 1rem 0; padding: .9rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.captcha.done { border-color: var(--success); background: #EDF7F1; }
.captcha-q { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .92rem; color: var(--primary); font-weight: 500; }
.captcha-input { width: 90px; font: inherit; padding: .5rem .7rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.captcha-input:focus { outline: none; border-color: var(--accent); }
.captcha-state { font-weight: 700; }
.captcha-state.ok { color: var(--success); font-size: 1.1rem; }
.captcha-state.ko { color: #9C3320; font-size: .85rem; }
.captcha.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* --- Mot de passe : afficher/masquer + réinitialisation --- */
.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap input { flex: 1; width: 100%; padding-right: 2.8rem; }
.pwd-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.pwd-toggle:hover { color: var(--accent); }
.pwd-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwd-toggle .icn { width: 20px; height: 20px; }
.pwd-show { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--text-soft); margin-top: .5rem; cursor: pointer; }
.pwd-show input { width: auto; margin: 0; }
