/* Polices hébergées sur le site (plus de requête vers Google Fonts) : préchargées dans le <head> par build.py.
   « Inter Fallback » : Arial recalé aux métriques d'Inter pour limiter le décalage au changement de police. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: optional; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }

:root {
  --ink: #111318;
  --ink-soft: #4a4f5c;
  --blue: #1f6feb;
  --blue-dark: #1553b8;
  --teal: #3bb8a8;
  --red: #d9534f;
  --cream: #faf7f0;
  --line: #e6e1d6;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 240, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.header img { height: 44px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: var(--white) !important; padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.btn:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white) !important; }

/* Hero */
.hero { padding: 90px 0 70px; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proof div strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; }
.hero-proof div span { color: var(--ink-soft); font-size: 0.9rem; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-soft); }
.card ul { margin: 14px 0 0 18px; color: var(--ink-soft); }
.card .price { margin-top: 16px; font-weight: 600; color: var(--ink); }
.card .num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }

.dark { background: var(--ink); color: var(--white); }
.dark .lead, .dark p { color: #c9ccd4; }
.dark .card { background: #1b1e25; border-color: #2a2e38; }
.dark .card p { color: #c9ccd4; }

.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 32px; }
.case div { border-left: 3px solid var(--blue); padding-left: 16px; }
.case strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; color: var(--white); }

.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.zones span { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 0.95rem; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 12px; color: var(--ink-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.9rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
textarea { min-height: 110px; resize: vertical; }
.contact-info p { margin-bottom: 10px; }

/* Footer */
.footer { background: var(--ink); color: #9aa0ad; padding: 40px 0; font-size: 0.9rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a { color: #c9ccd4; }

/* Mobile sticky call */
.sticky-call { display: none; }
@media (max-width: 820px) {
  .sticky-call { display: block; position: fixed; bottom: 16px; left: 16px; right: 16px; text-align: center; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  body { padding-bottom: 80px; }
}

/* Placeholder à remplacer avant mise en ligne */
.todo { background: #fff3b0; outline: 1px dashed #c9a400; padding: 0 4px; border-radius: 3px; }

/* Legal page */
.legal { padding: 60px 0; max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal p { color: var(--ink-soft); }

/* Références clients */
.refs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.refs span { border: 1px solid #2a2e38; background: #1b1e25; color: var(--white); border-radius: 10px; padding: 14px 22px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; }
.refs .ref-logo { background: var(--white); border-color: var(--white); padding: 14px 22px; display: flex; align-items: center; justify-content: center; min-width: 150px; height: 76px; }
.refs .ref-logo img { height: 48px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.refs .ref-logo-dark { background: #1b1e25; border-color: #2a2e38; padding: 0; overflow: hidden; }
.refs .ref-logo-dark img { height: 76px; max-width: none; }

/* Images */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(17, 19, 24, 0.12); }
.hero-img.portrait { max-height: 580px; width: auto; margin: 0 auto; }
.section-img { width: 100%; height: auto; border-radius: 18px; margin-top: 36px; }
.card-img { width: calc(100% + 56px); height: auto; max-width: none; margin: -28px -28px 20px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-img.portrait { max-height: 420px; }
}

/* Plateformes */
.platforms { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; margin-top: 16px; }
.logo-strip img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.logo-strip li:hover img { filter: none; opacity: 1; }

/* Captures AdsFlow */
.shot { margin-top: 36px; }
.shot .section-img { margin-top: 0; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(17, 19, 24, 0.10); }
.shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.dark .shot figcaption { color: #9aa0ad; }

/* 4 cartes : 2 x 2 plutôt qu une carte orpheline */
@media (min-width: 821px) { .grid.g4 { grid-template-columns: repeat(2, 1fr); } }

/* Bannière cookies */
.cookie-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(17, 19, 24, 0.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; animation: cookie-fondu 0.25s ease-out; }
.cookie-forme { position: relative; width: min(100%, 660px); animation: cookie-monte 0.35s ease-out; }
.cookie-banner { --pente: polygon(0 78px, 22% 62px, 40% 68px, 64% 34px, 82% 40px, 100% 6px, 100% 100%, 0 100%); position: relative; background: radial-gradient(120% 90% at 100% 0, rgba(31, 111, 235, 0.35), transparent 60%), linear-gradient(160deg, #161b27, #0c0f15); color: #fff; clip-path: var(--pente); border-radius: 0 0 var(--radius) var(--radius); padding: 96px 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); font-size: 0.92rem; }
.cookie-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 75%); pointer-events: none; }
.cookie-banner > * { position: relative; }
.cookie-courbe { position: absolute; left: 0; top: 0; width: 100%; height: 90px; z-index: 2; overflow: visible; filter: drop-shadow(0 0 6px rgba(31, 111, 235, 0.8)); pointer-events: none; }
.cookie-courbe polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cookie-trace 1.1s 0.2s ease-out forwards; }
.cookie-courbe .cookie-comete { stroke-dasharray: 0.06 0.94; stroke-dashoffset: 0.06; opacity: 0; animation: cookie-comete 3.2s 1.4s ease-in-out infinite; }
.cookie-actions .btn { position: relative; overflow: hidden; }
.cookie-actions .btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg); animation: cookie-reflet 4s 1.8s ease-in-out infinite; }
.cookie-fleche { position: absolute; right: -10px; top: -12px; width: 30px; height: 30px; z-index: 3; filter: drop-shadow(0 0 6px rgba(31, 111, 235, 0.9)); opacity: 0; animation: cookie-apparait 0.3s 1.2s ease-out forwards, cookie-pousse 1.6s 1.5s ease-in-out infinite; }
.cookie-point { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 2px; opacity: 0; transform: scale(0); animation: cookie-pop 0.4s cubic-bezier(.3, 1.8, .5, 1) forwards, cookie-flotte 3s 1.4s ease-in-out infinite; }
.cookie-point.p2 { animation-duration: 0.4s, 3.4s; }
.cookie-point.p3 { animation-duration: 0.4s, 2.8s; }
.cookie-point.p1 { left: 56%; top: 62px; background: #3bb8a8; animation-delay: 0.9s; }
.cookie-point.p2 { left: 72%; top: 52px; background: #1f6feb; animation-delay: 1s; }
.cookie-point.p3 { left: 88%; top: 44px; background: #d9534f; animation-delay: 1.1s; }
.cookie-tete { display: flex; gap: 14px; align-items: flex-start; }
.cookie-banner p { color: rgba(255, 255, 255, 0.72); margin-bottom: 14px; }
.cookie-banner a { color: #7fb0ff; }
.cookie-banner .cookie-titre { color: #fff; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.cookie-choix { display: grid; gap: 8px; margin: 4px 0 16px; padding: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; color: rgba(255, 255, 255, 0.85); }
.cookie-choix label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.cookie-choix input { margin-top: 4px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cookie-actions .btn { flex: 1 1 220px; padding: 13px 18px; font-size: 1rem; text-align: center; }
.cookie-liens { display: flex; gap: 16px; }
.cookie-lien { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-lien:hover { color: #fff; }
.cookie-choix[hidden] { display: none; }
html.cookie-ouverte .sticky-cta, html.cookie-ouverte .sticky-call, html.cookie-ouverte .mobile-cta { visibility: hidden; }
@media (min-width: 821px) { .cookie-overlay { align-items: center; } }
@keyframes cookie-fondu { from { opacity: 0; } }
@keyframes cookie-monte { from { transform: translateY(24px); opacity: 0; } }
@keyframes cookie-trace { to { stroke-dashoffset: 0; } }
@keyframes cookie-apparait { to { opacity: 1; } }
@keyframes cookie-comete { 0% { stroke-dashoffset: 0.06; opacity: 0; } 10% { opacity: 1; } 70% { stroke-dashoffset: -0.94; opacity: 1; } 71%, 100% { stroke-dashoffset: -0.94; opacity: 0; } }
@keyframes cookie-pousse { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }
@keyframes cookie-pop { to { opacity: 1; transform: scale(1); } }
@keyframes cookie-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cookie-reflet { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .cookie-overlay, .cookie-forme, .cookie-fleche, .cookie-point, .cookie-courbe polyline, .cookie-actions .btn::after { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; } .cookie-courbe .cookie-comete, .cookie-actions .btn::after { display: none; } }

/* Avis Google */
.avis-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.avis-carte { text-align: center; }
.avis-carte p { margin-top: 8px; color: var(--ink-soft); }
.avis-etoiles { font-size: 2rem; letter-spacing: 6px; color: #d7d2c4; }
@media (max-width: 820px) { .avis-grid { grid-template-columns: minmax(0, 1fr); } }

/* Carte Google Maps chargée au clic */
.carte { position: relative; margin-top: 28px; min-height: 360px; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.carte::before { content: ""; position: absolute; inset: 0; background: rgba(17, 19, 24, 0.55); }
.carte > * { position: relative; }
.carte p { color: #fff; max-width: 520px; font-size: 0.95rem; }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avis-carte .avis-etoiles { color: #d7d2c4; margin-top: 0; }

/* Formulaire */
.hp { position: absolute; left: -9999px; }
.rgpd { font-weight: 400; font-size: 0.85rem; display: flex; gap: 8px; align-items: flex-start; }
.rgpd input { margin-top: 3px; }
.form-msg { font-weight: 600; color: var(--ink); min-height: 1.4em; }

/* ===== 28/09 : CTA, pictos, plateformes, formulaire en étapes ===== */
.btn-lg { padding: 16px 26px; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 8px 20px rgba(31, 111, 235, 0.25); }
.btn-ghost.btn-lg { box-shadow: none; }
.btn-lg span { display: inline-block; transition: transform 0.15s; }
.btn-lg:hover span { transform: translateX(3px); }
.reassure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.reassure li::before { content: "✓ "; color: #16a34a; font-weight: 700; }
.dark .reassure { color: #c9ccd4; }

.picto { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: #e8f0fe; color: var(--blue); align-items: center; justify-content: center; margin-bottom: 16px; }

/* Plateformes en vignettes couleur */
.platforms { padding: 70px 0; }
.platforms h2 { margin-bottom: 0; }
.plat-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.plat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; }
.plat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17, 19, 24, 0.08); }
.plat img { width: 44px; height: 44px; object-fit: contain; }
.plat strong { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; margin-top: 6px; }
.plat span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 1000px) { .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plat { padding: 16px; } .plat span { font-size: 0.85rem; } }

/* Carte CTA de l'accueil */
.contact-cta h3 { font-size: 1.3rem; }
.contact-cta p { margin: 12px 0 20px; }
.etapes-mini { margin: 14px 0 0 20px; color: var(--ink-soft); display: grid; gap: 6px; }

/* Formulaire en étapes : mobile d'abord */
.form-page { padding: 40px 0 80px; }
.form-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.form-intro h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.form-intro h1 span { color: var(--blue); }
.form-intro .lead { margin-top: 12px; }
.stepper { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; box-shadow: 0 20px 50px rgba(17, 19, 24, 0.08); display: grid; gap: 14px; }
.stepper fieldset { border: 0; display: grid; gap: 14px; min-width: 0; }
.stepper legend { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.stepper .q { font-weight: 600; margin-top: 6px; }
.stepper label { font-size: 0.95rem; }
.stepper small { color: var(--ink-soft); font-weight: 400; }
.stepper input:not([type=radio]):not([type=checkbox]), .stepper select, .stepper textarea { font-size: 16px; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); padding: 12px 14px; width: 100%; background: #fff; }
.stepper input:focus, .stepper select:focus, .stepper textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15); }
.stepper .invalide { border-color: var(--red) !important; }
.progress { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--blue); border-radius: 99px; transition: width 0.3s; }
.step-count { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.tuiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tuile { position: relative; }
.tuile input { position: absolute; opacity: 0; inset: 0; }
.tuile span { display: flex; align-items: center; min-height: 54px; padding: 12px 16px 12px 46px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 0.97rem; cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s; }
.tuile span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #c3c8d2; border-radius: 50%; background: #fff; }
.tuile input:checked + span { border-color: var(--blue); background: #eef4ff; }
.tuile input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.tuile input:focus-visible + span { box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2); }
.form-erreur { color: var(--red); font-weight: 600; font-size: 0.92rem; min-height: 1.2em; }
.step-nav { display: flex; gap: 10px; }
.step-nav .btn-lg { flex: 1; text-align: center; }
.step-nav [data-prev] { flex: 0 0 auto; }
.form-aside { display: grid; gap: 16px; align-content: start; }
.form-aside h3 { font-size: 1.1rem; }
.form-aside p { color: var(--ink-soft); }
/* Sans JS : toutes les étapes visibles, navigation masquée */
html:not(.js-stepper) .progress, html:not(.js-stepper) .step-count, html:not(.js-stepper) [data-prev], html:not(.js-stepper) [data-next] { display: none; }
.step[hidden], .step-nav [hidden] { display: none !important; }
@media (min-width: 700px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stepper { padding: 32px; } }
@media (min-width: 1000px) {
  .form-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); grid-template-areas: "intro intro" "form aside"; column-gap: 40px; }
  .form-intro { grid-area: intro; } .stepper { grid-area: form; } .form-aside { grid-area: aside; }
}

/* Ressources : calculateurs et lexique (tools/ressources.py) */
.calc { max-width: 900px; }
.calc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.calc-input { display: flex; align-items: center; gap: 8px; }
.calc-input input { flex: 1; min-width: 0; }
.calc-note { font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0 6px; }
.calc-results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 12px; }
.calc-res { background: var(--ink); color: var(--white); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.calc-res span { font-size: 0.82rem; color: #c9ccd4; }
.calc-res strong { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.terme { scroll-margin-top: 90px; }
.terme .formule { margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 0.88rem; background: #f3f5f9; border-radius: 8px; padding: 8px 10px; color: var(--ink); }
.terme .exemple { margin-top: 10px; font-size: 0.92rem; }
.lexique-sommaire { padding: 24px 0; }
.lexique-sommaire p { line-height: 2; }

/* Barre fixe mobile : appel + audit */
@media (max-width: 820px) {
  div.sticky-call { display: flex; gap: 8px; background: none; padding: 0; box-shadow: none; }
  div.sticky-call .btn { flex: 1; text-align: center; padding: 14px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  div.sticky-call .btn-ghost { flex: 0 0 38%; background: var(--white); }
}
.form-alerte { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 0.92rem; }

/* Outil « Testez votre site » */
.testeur .btn { margin-top: 16px; }
.testeur-resultat { display: grid; gap: 20px; margin-top: 28px; max-width: 900px; }
.score-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.score { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 34px; color: var(--white); flex-shrink: 0; }
.score strong { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; line-height: 1; }
.score.ok { background: #1f8f4e; } .score.moyen { background: #c77700; } .score.faible { background: #c0392b; }
.checks { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 4px; }
.checks .ok { color: #1f8f4e; } .checks .ko { color: #c0392b; }
.priorites { margin: 12px 0 0 20px; display: grid; gap: 12px; }
.dark-card { background: var(--ink); color: var(--white); }
.dark-card p { color: #c9ccd4; margin: 8px 0 18px; }

/* ===== Mobile : menu burger + barre flottante au défilement ===== */
.burger { display: none; }
.menu-appel { display: none; }
@media (max-width: 820px) {
  .header .wrap { position: relative; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; padding: 0 12px; }
  .burger span { display: block; width: 22px; flex-shrink: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .menu-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  .menu-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 20px 40px rgba(17, 19, 24, 0.12); max-height: calc(100vh - 72px); overflow-y: auto; }
  .menu-ouvert .nav { display: flex; }
  .nav a:not(.btn) { display: block !important; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; text-align: center; padding: 15px; }
  .nav .menu-appel { display: block; margin-top: 10px; }
  .menu-ouvert { overflow: hidden; }
  /* barre flottante : glisse depuis le bas une fois le hero dépassé */
  div.sticky-call { transform: translateY(140%); transition: transform 0.25s ease; }
  div.sticky-call.visible { transform: translateY(0); }
}

/* Bloc « Ressources gratuites » (tools/ressources.py : bandeau) */
.ressources .card h3 a { color: var(--ink); text-decoration: none; }
.ressources .card h3 a:hover { color: var(--blue); }
.ressources .ressource-vedette { border: 2px solid var(--blue); box-shadow: 0 12px 30px rgba(59, 99, 230, 0.12); }
.ressources .ressource-vedette h3 a::after { content: " →"; color: var(--blue); }
.score-card .envoye { margin-top: 8px; font-weight: 600; color: #1f8f4e; }
.score-card .envoye.ko { color: #c77700; }
.testeur .rgpd { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin-top: 12px; }

/* Bouton WhatsApp : vert officiel (y compris dans les sections sombres) */
.btn.whatsapp-link { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28); }
.btn.whatsapp-link:hover { background: #1da851 !important; border-color: #1da851 !important; }

/* Bandeau défilant des logos clients (build.py : refs_bandeau) */
.bandeau-refs { padding: 34px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.bandeau-refs .eyebrow { margin-bottom: 16px; }
.defile { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile-piste { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 8px; flex-shrink: 0; animation: defile 32s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile .ref-logo { background: var(--white); border: 1px solid var(--line); border-radius: 10px; height: 76px; min-width: 170px; padding: 14px 22px; display: flex; align-items: center; justify-content: center; }
.defile .ref-logo img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.defile .ref-logo-dark { background: #1b1e25; border-color: #1b1e25; padding: 0; overflow: hidden; }
.defile .ref-logo-dark img { height: 76px; max-width: none; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .defile-piste { animation: none; } .defile { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; } .defile-piste[aria-hidden] { display: none; } }

/* Tuiles interactives : légère élévation au survol, flèche sur les cartes cliquables */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 19, 24, .08); border-color: var(--blue); }
  .dark .card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
  .card h3 a { position: relative; }
  .card:hover h3 a::after { content: " →"; color: var(--blue); }
  .plat { transition: transform .2s ease, box-shadow .2s ease; }
  .plat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 19, 24, .08); }
}
@media (prefers-reduced-motion: reduce) { .card, .plat { transition: none; } .card:hover, .plat:hover { transform: none; } }

/* Testeur mis en avant (03/10/2026) : formulaire dans le haut de page, adresse + e-mail seulement */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-testeur { padding: 56px 0 40px; }
.hero-testeur .lead { margin: 16px 0 24px; max-width: 760px; }
.hero-testeur .testeur { box-shadow: 0 16px 40px rgba(17, 19, 24, 0.08); }
.testeur-champs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testeur-champs input { font-size: 1.05rem; padding: 15px 16px; }
.testeur .btn { width: 100%; }
@media (min-width: 821px) { .testeur .btn { width: auto; } }
.testeur-atouts { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.hero-img.hero-img-plat { box-shadow: none; border-radius: 0; }
.hero-testeur .hero-grid { align-items: start; }
.nav a.nav-testeur { color: var(--blue); font-weight: 700; }
.testeur-court { padding: 0 0 56px; }
.testeur-court-form { display: grid; gap: 22px; align-items: center; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px 32px; }
.testeur-court-form h2 { margin: 4px 0 8px; font-size: 1.6rem; }
.testeur-court-form p { color: #c9ccd4; margin: 0; }
.testeur-court-form .eyebrow { color: var(--teal); }
.testeur-court-champ { display: flex; gap: 10px; }
.testeur-court-champ input { flex: 1; min-width: 0; font-size: 1.05rem; padding: 15px 16px; border: 0; }
@media (max-width: 820px) {
  .hero-testeur { padding: 28px 0 24px; }
  .hero-testeur h1 { font-size: 1.9rem; }
  .hero-img.hero-img-plat { max-width: 420px; margin: 0 auto; display: block; }
  .testeur-court-form { grid-template-columns: 1fr; padding: 24px 20px; }
  .testeur-court-champ { flex-direction: column; }
}
