/* Polices : chargées depuis partials/tete.php (<link rel="preconnect"> + <link rel="stylesheet">), pas par @import. */

/* =========================================================
   Dépann’R — Site de présentation
   Direction artistique « carnet de croquis d’agence sur papier crème »
   (référence : Say Briefly / Refero) :
   - UNE seule couleur d’encre pour le texte, les boutons pleins, les liens et les bordures ;
   - mots surlignés au marqueur dans les titres display (fond, pas d’italique) ;
   - cartes « post-it » à plat : remplissage papier + bordure 1px, jamais d’ombre portée ;
   - une seule carte pastel par rangée, une carte terracotta (orange de la marque) en contrepoint ;
   - grotesque très grasse à interlettrage POSITIF (0.04em) pour les titres ≥ 40px, Inter pour tout le reste,
     mono 11px pour les micro-étiquettes ;
   - barre de navigation flottante en pilule (rayon 16px) avec halo jaune : seule ombre floue autorisée.
   Adaptation marque : l’encre est le marine Dépann’R (#0d2544) ; l’orange (#ff7a1a) tient le rôle
   terracotta ; le surligneur est ambré (#ffdd7a) pour rester dans la famille chaude.
   Le gris « murmure » n’est pas un gris neutre : c’est l’encre éclaircie (≈ 75 % sur papier).
   ========================================================= */
:root {
    /* Encre + papier */
    --encre: #0d2544;            /* texte, boutons pleins, liens, bordures : l’autorité chromatique unique */
    --encre-rgb: 13, 37, 68;     /* pour les transparences d’encre */
    --encre-douce: #1a3d6d;      /* survols de l’encre */
    --papier: #fcfaf5;           /* toile de page, surfaces des cartes, fond nav */
    --papier-rgb: 252, 250, 245; /* pour les transparences de papier sur l’encre */
    --papier-blanc: #ffffff;     /* champs de formulaire uniquement */
    --crayon: #b6b6b6;           /* filets, bordure nav, dividers */
    --murmure: #4a5b72;          /* texte d’aide : encre éclaircie, 6,7:1 sur papier */
    /* Marqueur et post-it */
    --surligneur: #ffdd7a;       /* lavis derrière les mots-clés des titres, badges (jamais un fond de CTA) */
    --surligneur-rgb: 255, 221, 122;
    --postit-turquoise: #a8e5e5;
    --postit-menthe: #d5f5c2;
    --postit-rose: #f6d0ff;
    --terracotta: #ff7a1a;       /* orange de la marque : contrepoint chaud, carte décorative */
    --terracotta-fonce: #c9560c; /* texte orange lisible sur papier (4,6:1) */
    --orange: var(--terracotta); /* alias hérité (styles inline du header), neutralisé par la nav */
    /* Formes : à plat */
    --rayon-bouton: 6px;
    --rayon-carte: 12px;
    --rayon-nav: 16px;
    --rayon-etiquette: 9999px;
    --ombre-subtile: 0 1px 2px rgba(var(--encre-rgb), 0.06);
    --halo-jaune: 0 18px 60px -20px rgba(var(--surligneur-rgb), 0.9), 0 0 90px -10px rgba(var(--surligneur-rgb), 0.55);
    --transition: 180ms ease-out;
    /* Mise en page */
    --largeur: 1200px;
    /* Typo */
    --display: 'Bricolage Grotesque', 'Archivo Black', 'Arial Black', sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Roboto Mono', 'JetBrains Mono', 'Consolas', monospace;
    --interlettrage-display: 0.04em;
    /* Échelle tierce mineure 1.2, base 15px */
    --t-11: 11px; --t-14: 14px; --t-16: 16px; --t-18: 18px; --t-20: 20px;
    --t-28: 28px; --t-40: 40px; --t-55: 55px; --t-66: 66px; --t-90: 90px;
}

/* ---------- Animations (discrètes, à plat) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease-out var(--delai, 0ms), transform 520ms ease-out var(--delai, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); transition-delay: 0ms; transition-duration: 220ms; }
@keyframes entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marqueur { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes gribouille { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    h1 em, h2 em, .accent { background-size: 100% 100% !important; }
}

/* ---------- Icônes SVG (partials/icones.php) ---------- */
.icone-svg { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; display: inline-block; }
.carte-avantage .icone .icone-svg { width: 24px; height: 24px; color: var(--encre); }
.carte-sombre .icone .icone-svg { color: var(--papier); }
.etape .numero .icone-svg { width: 22px; height: 22px; }

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
section[id] { scroll-margin-top: 96px; }
body { font-family: var(--sans); color: var(--encre); line-height: 1.5; background: var(--papier); -webkit-font-smoothing: antialiased; font-size: var(--t-18); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 800; color: var(--encre); line-height: 1.0; font-variation-settings: 'opsz' 96; letter-spacing: var(--interlettrage-display); }
h3 { font-family: var(--sans); font-weight: 600; color: var(--encre); letter-spacing: -0.01em; line-height: 1.25; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
/* Focus clavier : anneau d’encre sur papier, anneau surligneur sur les surfaces d’encre */
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.carte-sombre :focus-visible, .bloc-formulaire :focus-visible, footer.site-footer :focus-visible,
.etape:nth-child(4) :focus-visible, .puce-ville-region:focus-visible { outline-color: var(--surligneur); }

/* Le mot surligné au marqueur : la signature du style */
h1 em, h2 em, .accent, .texte-formulaire h2 em, .footer-marque em {
    font-style: normal; color: inherit;
    background-image: linear-gradient(var(--surligneur), var(--surligneur));
    background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 50%;
    padding: 0 0.12em; margin: 0 -0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
    border-radius: 2px;
}
.hero-inner h1 em { animation: marqueur 700ms 350ms ease-out both; }

/* Micro-étiquettes en mono (11px de l’échelle, capitales espacées) */
.surtitre, .surtitre-simple, .chiffre-cle span, .footer-bas, .citation-editoriale small, .hero-image .etiquette small {
    font-family: var(--mono); font-size: var(--t-11); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
}

/* ---------- Header : barre flottante en pilule ---------- */
header.site-header { position: sticky; top: 12px; z-index: 100; padding: 0 16px; pointer-events: none; }
.site-header-inner {
    pointer-events: auto;
    max-width: var(--largeur); margin: 0 auto; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 24px;
    background: var(--papier); border: 1px solid var(--crayon); border-radius: var(--rayon-nav);
    box-shadow: var(--halo-jaune);
}
.site-header-inner > a:first-child { display: flex; align-items: center; gap: 8px; }
.site-header-inner img { height: 40px; width: 40px; object-fit: cover; border-radius: var(--rayon-bouton); }
.marque-carre {
    width: 40px; height: 40px; border-radius: var(--rayon-bouton); background: var(--surligneur); color: var(--encre);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 800; font-size: var(--t-18); letter-spacing: 0; line-height: 1;
}
.site-header-inner .logo-texte { font-family: var(--sans); font-size: var(--t-20); font-weight: 700; color: var(--encre); letter-spacing: -0.01em; }
nav.menu-principal { display: flex; gap: 2px; margin-left: auto; }
nav.menu-principal a {
    font-weight: 500; font-size: var(--t-14); color: var(--encre);
    padding: 8px 12px; border-radius: var(--rayon-bouton); border: 1px solid transparent;
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
    transition: border-color var(--transition), text-decoration-color var(--transition);
}
nav.menu-principal a:hover { border-color: var(--crayon); text-decoration-color: var(--encre); }
nav.menu-principal a[aria-current="page"] { color: var(--encre) !important; background: var(--postit-turquoise); }

/* Lien d’évitement : visible seulement au focus clavier */
.lien-evitement { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--encre); color: var(--papier); padding: 8px 16px; border-radius: var(--rayon-bouton); font-weight: 500; }
.lien-evitement:focus { top: 16px; outline-color: var(--surligneur); }

/* Hub des régions : deux colonnes sur grand écran */
@media (min-width: 901px) {
    .grille-regions { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
.bloc-region h2 a { text-decoration: none; }
.bloc-region h2 a::after { content: ' →'; transition: margin-left var(--transition); }
.bloc-region h2 a:hover::after { margin-left: 4px; }

/* Ligne honnête pour l’automobiliste arrivé par erreur (pages ville/région) */
.bandeau-panne { display: block; margin-bottom: 20px; padding: 10px 14px; border: 1px dashed var(--encre); border-radius: var(--rayon-bouton); background: var(--papier); font-size: var(--t-14); line-height: 1.5; max-width: 600px; animation: none !important; }

/* Bloc « Où en est Dépann’R » : post-it de preuve honnête sous la citation */
.statut-plateforme { max-width: 640px; margin: 40px auto 0; padding: 24px; background: var(--postit-menthe); border: 1px solid var(--encre); border-radius: var(--rayon-carte); transform: rotate(-0.6deg); }
.statut-plateforme .surtitre-simple { display: inline-block; margin-bottom: 12px; }
.statut-plateforme ul { display: grid; gap: 8px; font-size: var(--t-16); line-height: 1.5; }
.statut-plateforme li { padding-left: 18px; position: relative; }
.statut-plateforme li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.note-section { margin: 24px auto 0; max-width: 640px; text-align: center; font-size: var(--t-16); color: var(--murmure); line-height: 1.5; }

/* Formulaire : liste déroulante, erreur en ligne, note sur les données */
#form-prospect select {
    width: 100%; padding: 12px 14px; border-radius: var(--rayon-bouton); border: 1px solid var(--crayon); font-size: var(--t-16); font-family: var(--sans); line-height: 1.5;
    background: var(--papier-blanc); color: var(--encre);
}
#form-prospect select:focus { outline: none; border-color: var(--surligneur); box-shadow: 0 0 0 3px rgba(var(--surligneur-rgb), 0.6); }
#form-prospect .message-erreur { grid-column: 1 / -1; margin: 0; padding: 12px 14px; background: var(--surligneur); color: var(--encre); border-radius: var(--rayon-bouton); font-size: var(--t-16); line-height: 1.5; }
#form-prospect .note-donnees { grid-column: 1 / -1; margin: 0; font-size: var(--t-14); color: rgba(var(--papier-rgb), 0.7); line-height: 1.5; }

/* Consentement du formulaire */
#form-prospect .consentement label { font-family: var(--sans); font-size: var(--t-14); text-transform: none; letter-spacing: 0; color: rgba(var(--papier-rgb), 0.85); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
#form-prospect .consentement input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--postit-menthe); }
#form-prospect .consentement a { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; }

/* Boutons : 6px, encre pleine, flèche, ombre subtile (≤ 2px) */
.btn-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--encre); color: var(--papier) !important;
    padding: 14px 24px; border-radius: var(--rayon-bouton); font-weight: 500; font-size: var(--t-16); line-height: 1.5; white-space: nowrap;
    box-shadow: none; border: 1px solid var(--encre);
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-cta::after { content: '→'; font-family: var(--sans); transition: transform var(--transition); }
.btn-cta:hover { background: var(--encre-douce); border-color: var(--encre-douce); }
.btn-cta:hover::after { transform: translateX(4px); }
.site-header-inner .btn-cta { padding: 8px 16px; font-size: var(--t-14); }
.lien-telephone-entete {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    color: var(--encre); font-weight: 600; font-size: var(--t-14); white-space: nowrap;
    text-decoration: none; padding: 8px 12px; border-radius: var(--rayon-bouton);
    transition: background-color var(--transition);
}
.lien-telephone-entete .icone-svg { width: 18px; height: 18px; flex-shrink: 0; }
.lien-telephone-entete .lien-telephone-numero { white-space: nowrap; }
.lien-telephone-entete:hover { background: var(--postit-turquoise); }
@media (max-width: 700px) { .lien-telephone-entete .lien-telephone-numero { display: none; } }
.btn-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--encre); color: var(--encre) !important; background: transparent;
    padding: 14px 24px; border-radius: var(--rayon-bouton); font-weight: 500; font-size: var(--t-16); line-height: 1.5; white-space: nowrap;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.btn-cta-outline:hover { background: var(--encre); color: var(--papier) !important; }
.btn-pastel { background: var(--postit-menthe); border-color: var(--postit-menthe); color: var(--encre) !important; }
.btn-pastel:hover { background: var(--postit-turquoise); border-color: var(--postit-turquoise); color: var(--encre) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--papier); padding: 96px 0 0; overflow: hidden; }
/* Croquis décoratifs : traits à la main, encre à 30 %, sans remplissage */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-deco span { position: absolute; opacity: 0.3; background-repeat: no-repeat; background-size: contain; }
.hero-deco span:nth-child(1) {
    left: 3%; top: 14%; width: 140px; height: 90px; animation: gribouille 9s ease-in-out infinite;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 90' fill='none' stroke='%230d2544' stroke-width='2' stroke-linecap='round'><path d='M6 70c30-40 60-52 122-58'/><path d='M112 4l16 8-12 12'/></svg>");
}
.hero-deco span:nth-child(2) {
    right: 4%; top: 120px; width: 120px; height: 120px; animation: gribouille 11s 1s ease-in-out infinite reverse;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%230d2544' stroke-width='2' stroke-linecap='round'><path d='M60 8c30 2 52 22 52 52s-24 52-54 52S6 88 8 58 30 6 60 8z'/><path d='M62 16c22 3 40 20 40 44'/></svg>");
}
.hero-deco span:nth-child(3) {
    left: 46%; bottom: 8%; width: 90px; height: 60px; animation: clignote 4s ease-in-out infinite;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60' fill='none' stroke='%230d2544' stroke-width='2' stroke-linecap='round'><path d='M4 30l16-12M20 44l12-14M44 8v20M70 14l-12 14M84 30l-16 12'/></svg>");
}
.hero-inner {
    position: relative; max-width: var(--largeur); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.hero-inner > div:first-child > * { animation: entree 600ms ease-out both; }
.hero-inner > div:first-child > *:nth-child(2) { animation-delay: 80ms; }
.hero-inner > div:first-child > *:nth-child(3) { animation-delay: 160ms; }
.hero-inner > div:first-child > *:nth-child(4) { animation-delay: 240ms; }
.hero-inner .surtitre, .section-tete .surtitre, .surtitre-simple {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--encre); background: var(--surligneur); padding: 6px 12px; border-radius: var(--rayon-etiquette);
    margin-bottom: 24px;
}
.hero-inner .surtitre::before { content: '✦'; font-family: var(--sans); }
.hero-inner h1 { font-size: var(--t-66); margin-bottom: 24px; }
.hero-inner p.accroche { font-size: var(--t-20); line-height: 1.5; color: var(--encre); margin-bottom: 32px; max-width: 600px; }
.hero-boutons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-boutons .reassurance { flex-basis: 100%; margin-top: 4px; font-size: var(--t-14); color: var(--murmure); }
.hero-image { position: relative; animation: entree 700ms 200ms ease-out both; }
.hero-image img { width: 100%; height: auto; display: block; border-radius: var(--rayon-carte); border: 1px solid var(--crayon); }
.hero-image .etiquette {
    position: absolute; left: -16px; bottom: 28px;
    background: var(--postit-menthe); border: 1px solid var(--encre); border-radius: var(--rayon-carte); padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    font-size: var(--t-14); font-weight: 600; color: var(--encre); line-height: 1.4;
    transform: rotate(-2deg);
}
.hero-image .etiquette .point { width: 10px; height: 10px; border-radius: 50%; background: var(--encre); animation: clignote 1.8s ease-in-out infinite; }
.hero-image .etiquette small { display: block; font-weight: 400; color: var(--encre); opacity: 0.75; text-transform: none; letter-spacing: 0; }

/* Bandeau de chiffres : filets crayon, chiffres en grotesque 40px */
.bandeau-chiffres { position: relative; margin-top: 72px; border-top: 1px solid var(--crayon); border-bottom: 1px solid var(--crayon); background: var(--papier); }
.bandeau-chiffres .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.chiffre-cle { padding: 24px; border-right: 1px solid var(--crayon); }
.chiffre-cle:last-child { border-right: none; }
.chiffre-cle strong { display: block; font-family: var(--display); font-size: var(--t-40); font-weight: 800; color: var(--encre); letter-spacing: var(--interlettrage-display); line-height: 1.1; margin-bottom: 8px; }
.chiffre-cle span { color: var(--murmure); text-transform: none; letter-spacing: 0; font-size: var(--t-14); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-tete { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-tete .surtitre, .surtitre-simple { margin-bottom: 16px; }
.section-tete h2 { font-size: var(--t-55); margin-bottom: 16px; }
.section-tete p { color: var(--encre); font-size: var(--t-18); line-height: 1.5; max-width: 640px; margin: 0 auto; text-align: left; }
.section-alt { background: var(--papier); border-top: 1px solid var(--crayon); border-bottom: 1px solid var(--crayon); }

/* ---------- Cartes post-it : à plat, papier + bordure, jamais d’ombre ---------- */
.grille-avantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.carte-avantage {
    position: relative; background: var(--papier); border: 1px solid var(--encre); border-radius: var(--rayon-carte);
    padding: 24px; transition: transform var(--transition), background-color var(--transition);
}
.carte-avantage:hover { transform: translateY(-3px) rotate(-0.4deg); }
.carte-avantage .icone {
    width: 44px; height: 44px; border-radius: var(--rayon-bouton); border: 1px solid var(--encre); background: var(--papier);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.carte-avantage h3 { font-size: var(--t-20); margin-bottom: 8px; }
.carte-avantage p { font-size: var(--t-18); line-height: 1.5; color: var(--encre); }
.carte-avantage a { display: inline-flex; gap: 6px; align-items: center; color: var(--encre) !important; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness var(--transition); }
.carte-avantage a:hover, .faq a:hover, .fil-ariane a:hover, .bloc-region h2 a:hover { text-decoration-thickness: 2px; }
/* Une seule carte pastel par rangée de 3 : la 2e et la 6e */
.grille-avantages .carte-avantage:nth-child(2) { background: var(--postit-turquoise); }
.grille-avantages .carte-avantage:nth-child(6) { background: var(--postit-menthe); }
.grille-avantages .carte-avantage:nth-child(2) .icone, .grille-avantages .carte-avantage:nth-child(6) .icone { background: rgba(var(--papier-rgb), 0.55); }

.carte-avantage.carte-sombre { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.carte-avantage.carte-sombre h3, .carte-avantage.carte-sombre p { color: var(--papier); }
.carte-avantage.carte-sombre h3 em { background-image: linear-gradient(var(--surligneur), var(--surligneur)); color: var(--encre); }
.carte-avantage.carte-sombre .icone { background: rgba(var(--papier-rgb), 0.08); border-color: rgba(var(--papier-rgb), 0.35); }
.carte-avantage.carte-sombre .btn-cta { background: var(--papier); color: var(--encre) !important; border-color: var(--papier); }
.carte-avantage.carte-sombre .btn-cta:hover { background: var(--postit-turquoise); border-color: var(--postit-turquoise); }
.carte-avantage.carte-terracotta { background: var(--terracotta); border-color: var(--terracotta); color: var(--encre); }
.carte-avantage.carte-accent { border-width: 2px; }

/* Grand duo « deux publics » */
.duo-publics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-publics .carte-avantage { padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.duo-publics .carte-avantage h3 { font-size: var(--t-28); line-height: 1.2; margin-top: 4px; }
.duo-publics .carte-avantage p { font-size: var(--t-18); }
.duo-publics .carte-avantage .action { margin-top: auto; padding-top: 24px; }
.duo-publics .carte-avantage:not(.carte-sombre) { background: var(--postit-rose); }

/* ---------- Comment ça marche : 4 post-it ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.etape {
    position: relative; padding: 24px; background: var(--papier); border: 1px solid var(--encre); border-radius: var(--rayon-carte);
    transition: transform var(--transition);
}
.etape:hover { transform: translateY(-3px) rotate(0.4deg); }
.etape .numero {
    font-family: var(--mono); font-size: var(--t-11); letter-spacing: 0.08em; text-transform: uppercase;
    display: inline-block; padding: 4px 10px; border: 1px solid var(--encre); border-radius: var(--rayon-etiquette);
    margin-bottom: 16px; color: var(--encre); background: transparent; width: auto; height: auto; box-shadow: none; line-height: 1.4;
}
.etape .numero::before { content: 'Étape '; }
.etape:nth-child(2) { background: var(--postit-menthe); }
.etape:nth-child(4) { background: var(--encre); border-color: var(--encre); }
.etape:nth-child(4) h3, .etape:nth-child(4) p { color: var(--papier); }
.etape:nth-child(4) .numero { color: var(--papier); border-color: rgba(var(--papier-rgb), 0.5); }
.etape h3 { font-size: var(--t-20); margin-bottom: 8px; }
.etape p { font-size: var(--t-18); line-height: 1.5; color: var(--encre); }

/* ---------- Citation « griffonnée » (display 40px, jamais en dessous) ---------- */
.citation-editoriale { max-width: 900px; margin: 0 auto; text-align: center; position: relative; padding: 8px 24px; }
.citation-editoriale p { font-family: var(--display); font-weight: 800; font-size: var(--t-40); line-height: 1.1; letter-spacing: var(--interlettrage-display); color: var(--encre); }
.citation-editoriale p em {
    font-style: normal; background-image: linear-gradient(var(--surligneur), var(--surligneur));
    background-repeat: no-repeat; background-size: 100% 100%; padding: 0 0.12em; margin: 0 -0.06em; border-radius: 2px;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.citation-editoriale small { display: block; margin-top: 24px; color: var(--murmure); }

/* ---------- Formulaire : grande carte d’encre ---------- */
.bloc-formulaire {
    position: relative; background: var(--encre); color: var(--papier);
    border-radius: var(--rayon-carte); border: 1px solid var(--encre); padding: 40px;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.bloc-formulaire::after {
    content: ''; position: absolute; right: 24px; top: 24px; width: 120px; height: 80px; opacity: 0.35; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23fcfaf5' stroke-width='2' stroke-linecap='round'><path d='M6 60C30 20 60 12 112 10'/><path d='M100 2l14 8-10 12'/></svg>") no-repeat center / contain;
}
.bloc-formulaire > * { position: relative; z-index: 1; }
.bloc-formulaire .texte-formulaire h2 { color: var(--papier); font-size: var(--t-40); margin-bottom: 16px; line-height: 1.05; }
.bloc-formulaire .texte-formulaire h2 em { color: var(--encre); }
.bloc-formulaire .texte-formulaire p { color: rgba(var(--papier-rgb), 0.85); font-size: var(--t-18); line-height: 1.5; }
.choix-profil { display: flex; gap: 8px; margin-bottom: 16px; }
.choix-profil button {
    flex: 1; padding: 10px 14px; border-radius: var(--rayon-bouton); border: 1px solid rgba(var(--papier-rgb), 0.5);
    background: transparent; color: var(--papier); font-weight: 500; cursor: pointer; font-size: var(--t-14); font-family: var(--sans); line-height: 1.5;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.choix-profil button:hover { border-color: var(--papier); background: rgba(var(--papier-rgb), 0.08); }
.choix-profil button.actif { background: var(--postit-turquoise); border-color: var(--postit-turquoise); color: var(--encre); }
#form-prospect { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#form-prospect .champ-large { grid-column: 1 / -1; }
#form-prospect label { display: block; font-family: var(--mono); font-size: var(--t-11); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(var(--papier-rgb), 0.85); margin-bottom: 6px; }
#form-prospect input, #form-prospect textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--rayon-bouton); border: 1px solid var(--crayon); font-size: var(--t-16); font-family: var(--sans); line-height: 1.5;
    background: var(--papier-blanc); color: var(--encre);
    transition: border-color var(--transition), box-shadow var(--transition);
}
/* Focus des champs : anneau net (sans flou) en surligneur, visible sur la carte d’encre */
#form-prospect input:focus, #form-prospect textarea:focus { outline: none; border-color: var(--surligneur); box-shadow: 0 0 0 3px rgba(var(--surligneur-rgb), 0.6); }
#form-prospect textarea { resize: vertical; min-height: 84px; }
#form-prospect button.principal {
    grid-column: 1 / -1; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    background: var(--postit-menthe); color: var(--encre); border: 1px solid var(--postit-menthe); padding: 14px 24px;
    border-radius: var(--rayon-bouton); font-weight: 500; font-size: var(--t-16); cursor: pointer; margin-top: 4px; font-family: var(--sans); line-height: 1.5;
    transition: background-color var(--transition), border-color var(--transition);
}
#form-prospect button.principal::after { content: '→'; }
#form-prospect button.principal:hover { background: var(--postit-turquoise); border-color: var(--postit-turquoise); }
#message-confirmation { color: var(--postit-menthe); font-weight: 600; margin-top: 12px; display: none; }
#form-prospect .tel-drapeau-bouton { border-color: var(--crayon); background: var(--papier); border-radius: var(--rayon-bouton) 0 0 var(--rayon-bouton); }

/* ---------- Pages SEO locales (ville / région / hub) ---------- */
.hero-local { padding-top: 64px; }
.fil-ariane { color: var(--murmure); margin-bottom: 16px; animation: none !important; font-size: var(--t-14); font-family: var(--sans); line-height: 1.5; }
.fil-ariane a { color: var(--encre); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: text-decoration-thickness var(--transition); }
.fil-ariane span { font-weight: 600; color: var(--encre); }
.grille-villes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.puce-ville {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: var(--rayon-etiquette); font-size: var(--t-14); font-weight: 500; line-height: 1.5;
    background: var(--papier); border: 1px solid var(--encre); color: var(--encre);
    transition: background-color var(--transition), transform var(--transition);
}
.puce-ville:hover { background: var(--postit-turquoise); transform: translateY(-2px); }
.puce-ville-region { background: var(--encre); color: var(--papier); }
.puce-ville-region:hover { background: var(--encre-douce); color: var(--papier); }
.carte-lien { display: block; }
.carte-lien h3 { color: var(--encre); }
.bloc-region { padding: 32px 0; border-bottom: 1px solid var(--crayon); }
.bloc-region:last-child { border-bottom: none; }
.bloc-region h2 { font-family: var(--sans); font-weight: 700; font-size: var(--t-28); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 16px; text-align: center; }
.bloc-region h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness var(--transition); }

/* FAQ : accordéon à plat, filet crayon */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: transparent; border-bottom: 1px solid var(--crayon); }
.faq details:first-child { border-top: 1px solid var(--crayon); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: var(--t-18); color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 16px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: var(--t-20); line-height: 1; transition: transform var(--transition); }
.faq summary:hover { color: var(--encre-douce); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; color: var(--encre); font-size: var(--t-18); line-height: 1.5; max-width: 640px; }
.faq a { color: var(--encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: text-decoration-thickness var(--transition); }

/* ---------- Footer : bloc d’encre ---------- */
footer.site-footer { background: var(--encre); color: rgba(var(--papier-rgb), 0.8); padding: 56px 0 32px; font-size: var(--t-16); margin-top: 16px; }
footer.site-footer .footer-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(var(--papier-rgb), 0.25); }
/* Marque du footer en Inter (la display est réservée aux titres ≥ 40px) */
footer.site-footer .footer-marque { font-family: var(--sans); font-weight: 700; font-size: var(--t-28); letter-spacing: -0.01em; line-height: 1.25; color: var(--papier); }
footer.site-footer .footer-marque em { color: var(--encre); }
footer.site-footer .footer-marque + p { margin-top: 8px; max-width: 460px; color: rgba(var(--papier-rgb), 0.75); line-height: 1.5; }
footer.site-footer .footer-haut .btn-cta { background: var(--postit-menthe); color: var(--encre) !important; border-color: var(--postit-menthe); }
footer.site-footer .footer-haut .btn-cta:hover { background: var(--postit-turquoise); border-color: var(--postit-turquoise); }
footer.site-footer strong { color: var(--papier); }
.footer-liens { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; font-size: var(--t-14); line-height: 1.5; }
.footer-liens a { color: rgba(var(--papier-rgb), 0.75); transition: color var(--transition), text-decoration-color var(--transition); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.footer-liens a:hover { color: var(--papier); text-decoration-color: var(--surligneur); }
.footer-bas { margin-top: 24px; color: rgba(var(--papier-rgb), 0.65); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
/* Tablette : deux colonnes conservées mais plus compactes */
@media (min-width: 601px) and (max-width: 900px) {
    .bandeau-chiffres .conteneur { grid-template-columns: repeat(2, 1fr); }
    .chiffre-cle { border-right: none; border-bottom: 1px solid var(--crayon); }
    .chiffre-cle:nth-child(odd) { border-right: 1px solid var(--crayon); }
    .chiffre-cle:nth-last-child(-n+2) { border-bottom: none; }
    .hero-image { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 900px) {
    header.site-header { top: 8px; padding: 0 10px; }
    .site-header-inner { gap: 8px 12px; padding: 8px 10px; flex-wrap: wrap; }
    .site-header-inner .btn-cta { margin-left: auto; }
    /* Menu conservé sur mobile : rangée défilante sous la marque, dans la pilule */
    nav.menu-principal { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; white-space: nowrap; gap: 4px; padding-bottom: 2px; scrollbar-width: none; }
    nav.menu-principal::-webkit-scrollbar { display: none; }
    nav.menu-principal a { flex-shrink: 0; padding: 6px 10px; border-color: var(--crayon); }
    .hero { padding-top: 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-inner h1 { font-size: var(--t-40); }
    .hero-inner p.accroche { font-size: var(--t-18); }
    .hero-image { order: -1; }
    .hero-image .etiquette { left: 8px; bottom: 8px; }
    .hero-deco { display: none; }
    .bandeau-chiffres { margin-top: 48px; }
}
@media (max-width: 600px) {
    .chiffre-cle { border-right: none; border-bottom: 1px solid var(--crayon); }
    .chiffre-cle:last-child { border-bottom: none; }
}
@media (max-width: 900px) {
    section { padding: 48px 0; }
    .section-tete h2 { font-size: var(--t-40); }
    .duo-publics { grid-template-columns: 1fr; }
    .citation-editoriale p { font-size: var(--t-40); }
    .bloc-formulaire { grid-template-columns: 1fr; padding: 24px; }
    .bloc-formulaire::after { display: none; }
    #form-prospect { grid-template-columns: 1fr; }
    footer.site-footer .footer-marque { font-size: var(--t-20); }
}

/* ---------- Bannière cookies (mesure d'audience, RGPD) ---------- */
/* [hidden] doit gagner sur le display:flex ci-dessous (même spécificité, donc sans ceci
   l'attribut hidden posé en JS n'a visuellement aucun effet). */
.bandeau-cookies[hidden], .bouton-cookies-flottant[hidden] { display: none; }
.bandeau-cookies {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
    max-width: 640px; margin: 0 auto;
    background: var(--papier); border: 1px solid var(--encre); border-radius: var(--rayon-carte);
    padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    box-shadow: var(--halo-jaune);
    animation: bandeau-cookies-entree 0.35s ease-out;
}
@keyframes bandeau-cookies-entree {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.bandeau-cookies-icone {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--postit-turquoise); display: flex; align-items: center; justify-content: center;
}
.bandeau-cookies-icone svg { width: 22px; height: 22px; color: var(--encre); }
.bandeau-cookies p { margin: 0; font-size: var(--t-14); line-height: 1.5; color: var(--encre); flex: 1 1 280px; }
.bandeau-cookies a { text-decoration: underline; text-underline-offset: 3px; color: var(--encre); font-weight: 600; }
.bandeau-cookies-boutons { display: flex; gap: 10px; flex-shrink: 0; }
.bandeau-cookies .btn-cta, .bandeau-cookies .btn-cta-outline { padding: 10px 18px; font-size: var(--t-14); }
@media (max-width: 600px) {
    .bandeau-cookies { left: 10px; right: 10px; bottom: 10px; padding: 16px; flex-direction: column; align-items: stretch; }
    .bandeau-cookies-icone { width: 32px; height: 32px; }
    .bandeau-cookies-icone svg { width: 18px; height: 18px; }
    .bandeau-cookies p { flex: 0 1 auto; }
    .bandeau-cookies-boutons { justify-content: stretch; }
    .bandeau-cookies-boutons button { flex: 1; }
}

/* ---------- Icône flottante « Gérer les cookies » (réapparaît une fois un choix fait) ---------- */
.bouton-cookies-flottant {
    position: fixed; right: 16px; bottom: 16px; z-index: 290;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--encre); border: 1px solid var(--encre); color: var(--papier);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--ombre-2, 0 4px 14px rgba(0,0,0,0.18));
    transition: transform var(--transition), background-color var(--transition);
}
.bouton-cookies-flottant svg { width: 22px; height: 22px; }
.bouton-cookies-flottant:hover { transform: scale(1.08); background: var(--encre-douce); }
@media (max-width: 600px) { .bouton-cookies-flottant { right: 10px; bottom: 10px; width: 42px; height: 42px; } }

/* ---------- Sélecteur de drapeau pour le champ téléphone (/assets/tel-drapeau.js) ---------- */
.tel-wrapper { position: relative; display: flex; align-items: stretch; }
.tel-wrapper input[type="tel"] { flex: 1; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-left: none !important; }
.tel-drapeau-bouton {
    display: flex; align-items: center; gap: 4px; padding: 0 10px;
    border: 1px solid var(--crayon); border-right: none;
    border-top-left-radius: var(--rayon-bouton); border-bottom-left-radius: var(--rayon-bouton);
    background: var(--papier); cursor: pointer; font-size: var(--t-16); font-family: var(--sans); color: var(--encre);
    transition: background-color var(--transition);
}
.tel-drapeau-bouton:hover { background: var(--postit-turquoise); }
.tel-drapeau-bouton .tel-chevron { font-size: var(--t-11); color: var(--murmure); }
.drapeau-svg { display: inline-flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--encre-rgb), 0.2); flex-shrink: 0; }
.drapeau-svg svg { width: 100%; height: 100%; display: block; }
.tel-liste li { display: flex; align-items: center; gap: 8px; }
.tel-dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 6px;
    background: var(--papier); border: 1px solid var(--encre); border-radius: var(--rayon-carte);
    width: 250px; max-height: 260px; overflow: hidden; z-index: 50;
}
.tel-dropdown.ouvert { display: block; }
.tel-recherche { width: 100%; border: none; border-bottom: 1px solid var(--crayon); padding: 10px 14px; font-size: var(--t-14); border-radius: 0; color: var(--encre); font-family: var(--sans); background: var(--papier-blanc); line-height: 1.5; }
.tel-recherche:focus { outline: none; border-bottom-color: var(--encre); box-shadow: inset 0 -1px 0 var(--encre); }
.tel-liste { list-style: none; margin: 0; padding: 4px 0; max-height: 210px; overflow-y: auto; }
.tel-liste li { padding: 8px 14px; font-size: var(--t-14); cursor: pointer; color: var(--encre); line-height: 1.5; }
.tel-liste li:hover { background: var(--postit-turquoise); }
.tel-liste li.tel-liste-vide { color: var(--murmure); cursor: default; }
.tel-liste li.tel-liste-vide:hover { background: none; }
