/* ============================================================
   VITRINE — site public (agencefilariane.fr)
   Chargée après base.css, avant final.css (views/partials/head.html).
   En-tête, menu, héros, ruban, méthode, références, chiffres, offres, FAQ, pied de page, photos,
   sous-menu, retours, bandeau cookies, révélations, blog.
   ============================================================ */

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  border-top: 4px solid; border-image: linear-gradient(90deg, var(--garance), var(--ocre), #6fae9a, #6e93d6, #9a82d8, var(--garance)) 1;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--stitch);
}
.entete__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1.1rem, 4vw, 2.5rem); max-width: var(--maxw); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 700; }
.logo span { color: var(--garance); }

.nav { display: flex; align-items: center; gap: clamp(.55rem, 1.6vw, 1.4rem); }
.nav a { text-decoration: none; color: var(--encre-2); font-weight: 500; font-size: .96rem; position: relative; padding: .25rem 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--garance); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.nav a:hover { color: var(--garance-fonce); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--encre); font-weight: 700; }
.nav__sep { width: 1px; height: 22px; background: rgba(34,37,46,.25); flex: none; }
.nav a.nav__client {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--encre); border-radius: 999px; padding: .42rem 1.1rem;
  font-weight: 600; font-size: .96rem; line-height: 1.65; color: var(--encre); transition: .18s; min-height: 44px;
}
.nav a.nav__client::after, .nav a.btn::after { display: none; }
.nav a.nav__client:hover { background: var(--encre); color: var(--papier); }
.nav .btn.btn--sm { padding: .42rem 1.1rem; font-size: .96rem; line-height: 1.65; border-width: 1.5px; box-shadow: 0 3px 0 var(--garance-fonce); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: .55rem .4rem; z-index: 101; position: relative; min-width: 44px; min-height: 44px; }
.burger span {
  display: block; width: 26px; height: 2.5px; background: var(--encre); margin: 6px 0; border-radius: 3px;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, background .2s;
}
.burger[aria-expanded="true"] span { background: var(--garance-fonce); }
.burger[aria-expanded="true"] { background: var(--papier); border-radius: 50%; }   /* le menu qui défile passe dessous */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 980px) {
  /* IMPORTANT : backdrop-filter sur l'en-tête ferait du panneau fixe un enfant
     positionné DANS l'en-tête (bloc conteneur) → menu invisible. On le retire ici. */
  .entete { backdrop-filter: none; background: var(--papier); }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: calc(70px + 1.6rem) clamp(1.4rem, 6vw, 3rem) 2.2rem; gap: 0; background: var(--papier);
    transform: translateX(100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1), visibility .45s; z-index: 99;
    visibility: hidden; overflow-y: auto; overscroll-behavior: contain;   /* le défilement du menu ne passe pas à la page */
  }
  .nav.ouvert { transform: translateX(0); visibility: visible; }
  .nav {
    counter-reset: lien-menu;
    background:
      radial-gradient(60vw 30vh at 100% 0%, rgba(224,156,51,.14), transparent 65%),
      radial-gradient(50vw 26vh at 0% 100%, rgba(46,107,94,.10), transparent 65%),
      var(--papier);
  }
  .nav a:not(.nav__client):not(.btn) {
    display: flex; align-items: center; gap: .9rem;
    font-size: 1.4rem; padding: .95rem 0; border-bottom: 1px solid rgba(34,37,46,.1);
    font-family: var(--f-titre); font-weight: 700; letter-spacing: -.01em;
  }
  .nav a:not(.nav__client):not(.btn)::before {
    counter-increment: lien-menu;
    content: counter(lien-menu, decimal-leading-zero);
    font-family: var(--f-texte); font-size: .78rem; font-weight: 600;
    color: var(--garance-fonce); letter-spacing: .08em; min-width: 1.6em;
  }
  .nav a:not(.nav__client):not(.btn)::after {
    content: "→"; display: block !important; position: static; height: auto; background: none;
    margin-left: auto; font-size: 1.1rem; color: rgba(34,37,46,.35); transition: none;
  }
  .nav a[aria-current="page"] { color: var(--garance-fonce); }
  .nav a[aria-current="page"]::after { color: var(--garance); }
  .nav__sep { display: none; }
  .nav a, .nav .nav__contact { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
  .nav.ouvert a, .nav.ouvert .nav__contact { opacity: 1; transform: none; }
  .nav.ouvert a:nth-child(2) { transition-delay: .04s; } .nav.ouvert a:nth-child(3) { transition-delay: .08s; }
  .nav.ouvert a:nth-child(4) { transition-delay: .12s; } .nav.ouvert a:nth-child(5) { transition-delay: .16s; }
  .nav.ouvert a:nth-child(6) { transition-delay: .20s; } .nav.ouvert a:nth-child(8) { transition-delay: .24s; }
  .nav.ouvert a:nth-child(9) { transition-delay: .28s; } .nav.ouvert .nav__contact { transition-delay: .32s; }
  .nav a.nav__client {
    margin-top: auto; text-align: center; justify-content: center; display: flex;
    border: 2px solid var(--encre); font-family: var(--f-texte); font-size: 1.02rem;
    padding: .7rem 1rem; border-radius: 999px;
  }
  .nav a.btn { margin-top: .8rem; justify-content: center; font-size: 1.02rem; border-bottom: none; font-family: var(--f-texte); padding: .7rem 1rem; }
  .nav .nav__contact {
    display: flex; flex-direction: column; gap: .2rem; align-items: center;
    margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(34,37,46,.14);
    text-align: center;
  }
  .nav .nav__contact a {
    border: none; padding: .15rem 0; font-family: var(--f-texte);
    display: inline-flex; align-items: center; min-height: 44px;   /* cible tactile (téléphone, e-mail) */
  }
  .nav .nav__contact a:not(.nav__client):not(.btn)::before,
  .nav .nav__contact a:not(.nav__client):not(.btn)::after { display: none !important; content: none !important; counter-increment: none; }
  .nav .nav__contact .nav__tel { font-family: var(--f-titre); font-weight: 800; font-size: 1.5rem; color: var(--encre); }
  .nav .nav__contact a:not(.nav__tel) { font-size: .92rem; color: var(--garance-fonce); }
  .nav .nav__contact span { font-size: .82rem; color: var(--encre-2); }
  /* Menu ouvert : verrou du défilement sur <html> (classe posée par site.js). Sur body, il laissait
     défiler la page et sortir le bouton de fermeture de l'écran. */
  html.nav-bloque { overflow: hidden; }
  html.nav-bloque .entete { background: var(--papier); backdrop-filter: none; box-shadow: 0 1px 0 rgba(34,37,46,.16); }
  /* Appel direct depuis l'en-tête (lien masqué par l'attribut hidden sur grand écran) : cible 44 px,
     à droite, juste avant le burger. Menu ouvert : masqué (le numéro est déjà en pied de menu).
     `[hidden]` + !important : seule exception à la règle globale [hidden] (zone commune). */
  .entete__tel, a.entete__tel[hidden] {
    display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    margin-left: auto; color: var(--encre); border-radius: 999px;
  }
  .entete__tel:hover { color: var(--garance-fonce); }
  html.nav-bloque .entete__tel { visibility: hidden; }
  /* Menu ouvert : le bandeau cookies (z-index 110, rendu inerte par site.js) masquerait le bas du menu
     sans répondre aux clics. Il est retiré le temps du menu et revient à sa fermeture. */
  html.nav-bloque .cookie-banner { display: none; }
}

/* ---------- Héros ---------- */
.heros { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.heros::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,156,51,.28), transparent 65%); pointer-events: none;
}
.heros::after {
  content: ""; position: absolute; width: 460px; height: 460px; left: -180px; bottom: -160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,68,43,.18), transparent 65%); pointer-events: none;
}
.heros__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .heros__grille { grid-template-columns: 1fr; } }
.heros p.accroche { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--encre-2); max-width: 34rem; }

.heros > .conteneur { position: relative; z-index: 1; }
.heros__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
/* Mobile : deux boutons de même largeur, empilés, plutôt que deux largeurs différentes alignées à gauche. */
@media (max-width: 520px) { .heros__actions .btn { flex: 1 1 100%; justify-content: center; } }
/* 360 px et moins : titre d'accueil un peu plus petit, « mérite d'être connu. » tient sur une ligne. */
@media (max-width: 380px) { .heros h1 { font-size: 2.05rem; } }
/* Surtitre de l'accueil : la région ne tient pas sur une ligne en mobile (reprise plus bas dans la page). */
@media (max-width: 620px) { .surtitre__plus { display: none; } }
/* Accueil : le surtitre fait partie du h1 (mots-clés « agence web, Blois » dans le titre principal) mais
   garde l'aspect d'une pastille posée au-dessus. */
h1 > .surtitre { display: flex; width: fit-content; font-family: var(--f-texte); line-height: 1.5; }
@media (max-width: 380px) { h1 > .surtitre { letter-spacing: .04em; padding-inline: .75rem; gap: .45rem; } }

/* Place l'élément en colonne gauche sur grand écran, mais après le texte sur mobile */
@media (min-width: 621px) { .swap-gauche { order: -1; } }

/* Méthode : un peu d'air au-dessus des étapes une fois les grilles empilées */
@media (max-width: 620px) {
  .etapes { margin-top: 2.6rem; }
}

/* ---------- Bandeau défilant (villes) ---------- */
.ruban { overflow: hidden; border-top: var(--stitch); border-bottom: var(--stitch); background: linear-gradient(90deg, #22252e, #322c3e 50%, #22252e); color: var(--papier); padding: .7rem 0; }
/* Espace de fin porté par chaque moitié (pas de gap) : translateX(-50%) boucle sans à-coup. */
.ruban__piste { display: flex; width: max-content; font-family: var(--f-titre); font-style: italic; font-size: 1.05rem; white-space: nowrap; }
.ruban__piste span { display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.ruban__piste i { color: var(--garance); font-style: normal; }
@keyframes defile { to { transform: translateX(-50%); } }
/* Défilement seulement sans préférence « moins de mouvement ». */
@media (prefers-reduced-motion: no-preference) {
  .ruban__piste { animation: defile 38s linear infinite; }
}
.ruban:hover .ruban__piste { animation-play-state: paused; }
.ruban-zone { position: relative; }
/* Pulsation d'un point sur une carte SVG (remplace les <animate> SMIL, qui ignoraient le mouvement réduit) :
   <circle class="carte__pulse" …/>, deux pulsations (moins de 5 s), aucune en mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
  .carte__pulse { transform-box: fill-box; transform-origin: center; animation: carte-pulse 2.4s ease-out 2; }
}
@keyframes carte-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Méthode (le fil en 5 étapes) ---------- */
.etapes { position: relative; display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); }
.etape { display: grid; grid-template-columns: 70px 1fr; gap: 1.3rem; align-items: start; position: relative; }
.etape__num {
  width: 54px; height: 54px; border-radius: 14px; flex: none; transform: rotate(-4deg);
  display: grid; place-items: center; font-family: var(--f-titre); font-weight: 800; font-size: 1.45rem;
  background: var(--craie); border: 2px solid var(--encre); position: relative; z-index: 1;
  box-shadow: 3px 3px 0 rgba(34,37,46,.8);
}
.etape:nth-child(odd) .etape__num { background: var(--garance); color: #fff; border-color: var(--garance-fonce); }
.etapes::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(180deg, var(--garance), var(--ocre)); opacity: .5; width: 2px;
}
.etape h3 .annotation { font-size: 1.15rem; margin-left: .5rem; }
.etape p { margin: .2rem 0 0; color: var(--encre-2); }

/* ---------- Portfolio (échantillons tissu) ---------- */
.echantillons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 960px) { .echantillons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .echantillons { grid-template-columns: 1fr; } }
.echantillon { background: var(--craie); border: 1.5px solid var(--encre); border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); transition: transform .25s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.echantillon:hover { transform: translateY(-6px) rotate(-.4deg); }
.echantillon__visuel { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 3rem; position: relative; border-bottom: var(--stitch); }
.echantillon__visuel small { position: absolute; bottom: .6rem; right: .8rem; font-family: var(--f-main); font-size: 1.1rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.echantillon__corps { padding: 1.1rem 1.2rem 1.2rem; }
.echantillon__corps h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.echantillon__corps p { font-size: .92rem; color: var(--encre-2); margin: 0; }
.echantillon__corps .echantillon__credit { margin-top: .5rem; }   /* crédit photo, détaché du résumé */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; border: 1.5px solid currentColor; margin: 0 .3rem .4rem 0; }
.badge--loire { color: var(--loire); background: rgba(46,107,94,.12); border-color: rgba(46,107,94,.45); }
.badge--garance { color: var(--garance-fonce); background: rgba(216,68,43,.10); border-color: rgba(216,68,43,.45); }
.badge--bleu { color: #3a5ea8; background: rgba(86,140,220,.12); border-color: rgba(86,140,220,.5); }
.badge--ocre { color: var(--ocre-texte); background: rgba(224,156,51,.14); border-color: rgba(224,156,51,.55); }

/* ---------- Références (vrais clients) ---------- */
.reference {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0;
  background: var(--craie); border: 2px solid var(--encre); border-radius: var(--radius);
  overflow: hidden; box-shadow: 8px 8px 0 rgba(34,37,46,.85); margin-bottom: clamp(2rem, 4vw, 3rem);
}
.reference:nth-of-type(1) { box-shadow: 8px 8px 0 rgba(216,68,43,.8); }
.reference:nth-of-type(2) { box-shadow: 8px 8px 0 rgba(224,156,51,.85); }
.reference:nth-of-type(3) { box-shadow: 8px 8px 0 rgba(110,147,214,.85); }
.reference:nth-of-type(4) { box-shadow: 8px 8px 0 rgba(46,107,94,.85); }   /* 4e référence (VTC Luxury Car) : vert Loire */
.reference:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.reference:nth-child(even) .reference__visuel { order: 2; }
@media (max-width: 820px) {
  .reference, .reference:nth-child(even) { grid-template-columns: 1fr; }
  .reference:nth-child(even) .reference__visuel { order: 0; }
}
.reference__visuel { position: relative; min-height: 260px; display: grid; place-items: center; font-size: 4rem; }
.reference__visuel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reference__visuel .photo-attente { position: absolute; inset: 0; border: none; border-radius: 0; }
.reference__visuel small { position: absolute; bottom: .8rem; right: 1rem; font-family: var(--f-main); font-size: 1.25rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); z-index: 1;
  background: rgba(20,22,28,.6); padding: .1rem .7rem; border-radius: 999px; }   /* lisible même sur une capture claire */
.reference__corps { padding: clamp(1.4rem, 3vw, 2.2rem); }
.reference__corps h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: .2rem; }   /* titre de chaque référence (h2 : hiérarchie de la page) */
.reference__corps .metier { font-family: var(--f-main); font-size: 1.3rem; color: var(--garance-fonce); margin: 0 0 .9rem; }
.reference__corps ul { list-style: none; padding: 0; margin: .9rem 0; }
.reference__corps li { padding: .34rem 0 .34rem 1.6rem; position: relative; font-size: .96rem; color: var(--encre-2); }
.reference__corps li::before { content: "—"; position: absolute; left: 0; top: .34rem; color: var(--garance); font-weight: 700; }
.reference__resultat {
  display: inline-block; background: linear-gradient(120deg, #23262f, #34304a); color: var(--papier); font-weight: 600;
  font-size: .9rem; padding: .45rem .9rem; border-radius: 10px; margin-top: .4rem;
}
.reference__resultat strong { color: var(--ocre); }

/* ---------- Statistiques (section chiffres redessinée) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat {
  position: relative; background: rgba(255,253,248,.82); border: 1.5px solid var(--encre);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 4px 4px 0 rgba(34,37,46,.85); overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--garance), var(--ocre));
}
.stat__num {
  display: block; font-family: var(--f-titre); font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -.03em;
  /* garance foncé → ocre foncé : ≥ 3:1 sur tout le dégradé */
  color: var(--garance-fonce);
  background: linear-gradient(120deg, var(--garance-fonce), var(--ocre-texte));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label { display: block; font-weight: 700; font-size: .98rem; margin-top: .55rem; line-height: 1.35; }
.stat__note { display: block; font-size: .84rem; color: var(--encre-2); margin-top: .25rem; }

/* ---------- Offres / tarifs ---------- */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); align-items: stretch; }
@media (max-width: 960px) { .offres { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; } .offres.slider-mobile { max-width: none; } }
.offre { background: var(--craie); border: 2px solid var(--encre); border-radius: var(--radius); padding: 1.9rem 1.6rem; display: flex; flex-direction: column; position: relative; }
.offre--star { border-color: var(--garance); box-shadow: 8px 8px 0 var(--garance); }
.offre__pop { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--garance-fonce); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.offre h3 { font-size: 1.5rem; }
.offre .prix { font-family: var(--f-titre); font-size: 2.5rem; font-weight: 700; margin: .4rem 0 .1rem; }
.offre .prix small { font-size: 1rem; font-weight: 400; font-family: var(--f-texte); color: var(--encre-2); }
.offre .pour-qui { font-family: var(--f-main); font-size: 1.25rem; color: var(--loire); margin: 0 0 .6rem; }
/* Fourchette de prix indicative (offres) */
.fourchette { font-family: var(--f-titre); font-weight: 700; color: var(--garance-fonce); font-size: 1.15rem; margin: 0 0 1rem; line-height: 1.2; }
.fourchette small { display: block; font-family: var(--f-texte); font-weight: 400; font-size: .78rem; color: var(--encre-2); margin-top: .15rem; }
.etiquette .fourchette { font-size: 1.05rem; margin: .1rem 0 .6rem; }
.offre ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.offre li { padding: .42rem 0 .42rem 1.7rem; position: relative; font-size: .97rem; border-bottom: 1px dashed rgba(34,37,46,.18); }
.offre li:last-child { border-bottom: none; }
.offre li::before { content: "✓"; position: absolute; left: 0; top: .42rem; color: var(--garance); font-weight: 700; }
.offre li.non { color: var(--at-sourdine); }   /* atténué mais lisible (5,6:1) ; l'ancienne opacité .45 tombait sous 3:1 */
.offre li.non::before { content: "—"; transform: none; color: var(--gris-fil); }

/* ---------- FAQ ---------- */
.faq details { background: var(--craie); border: 1.5px solid var(--encre); border-radius: 12px; margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.3rem; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-family: var(--f-titre); font-size: 1.6rem; color: var(--garance); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--encre-2); }

/* ---------- Bandeau CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 22ch; margin-inline: auto; }
.cta-final .annotation { font-size: 1.5rem; }

/* ---------- Pied de page ---------- */
.pied { background: linear-gradient(180deg, rgba(255,253,248,.4), rgba(248,232,210,.55)); color: var(--encre); padding: 3.5rem 0 1.5rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--garance), var(--ocre), #6fae9a, #6e93d6, #9a82d8, var(--garance)) 1; }
.pied a { color: var(--encre); text-decoration: none; opacity: .8; }
.pied a:hover { opacity: 1; color: var(--garance-fonce); }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px dashed rgba(34,37,46,.3); }
@media (max-width: 880px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
/* Mobile : les deux listes de liens côte à côte (pied deux fois moins long), présentation et contact en pleine largeur. */
@media (max-width: 560px) {
  .pied__grille { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .pied__grille > :first-child, .pied__grille > :last-child { grid-column: 1 / -1; }
}
.pied h4, .pied__titre { color: var(--garance-fonce); font-size: 1.05rem; margin-bottom: .8rem; }   /* intertitres du pied (h2.pied__titre : hiérarchie des titres) */
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; font-size: .95rem; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .85rem; opacity: .7; }
.pied .logo { color: var(--encre); }

/* Wordmark image (logo fourni, noir sur transparent) */
.logo-img { height: 30px; width: auto; aspect-ratio: 4274 / 736; max-width: 180px; object-fit: contain; display: block; }
.pied .logo-img { height: 40px; max-width: 240px; }
@media (max-width: 560px) { .logo-img { height: 25px; } }

/* Séparateur « fil » entre sections */
.fil-separateur { display: block; width: min(420px, 70%); margin: 0 auto; color: var(--garance); opacity: .7; }
.fil-separateur svg { width: 100%; height: 26px; display: block; }

/* ---------- Photos ---------- */
/* Photo encadrée façon tirage épinglé à l'atelier */
.photo-cadre {
  position: relative; border: 1.5px solid var(--encre); border-radius: var(--radius);
  overflow: hidden; box-shadow: 6px 6px 0 rgba(34,37,46,.85); background: var(--craie);
}
.photo-cadre img, .photo-cadre .photo-attente { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cadre img { transition: transform .5s ease; }
.photo-cadre:hover img { transform: scale(1.04); }
.initiales {
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem);
  color: rgba(255,255,255,.9); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.photo-cadre figcaption {
  position: absolute; bottom: .7rem; left: .8rem; right: .8rem;
  font-family: var(--f-main); font-size: 1.15rem; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.55); pointer-events: none;
}
/* Voile sous les légendes blanches ; aucune légende sur un cadre d'attente (photo absente). */
.photo-cadre:has(> figcaption)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.photo-cadre figcaption { z-index: 1; }
.photo-cadre:has(.photo-attente) figcaption, .photo-cadre:has(.photo-attente)::after { display: none; }
.photo-cadre--penche { transform: rotate(-1.2deg); box-shadow: 6px 6px 0 rgba(216,68,43,.75); }
.photo-cadre--penche2 { transform: rotate(1deg); box-shadow: 6px 6px 0 rgba(224,156,51,.8); }

/* Emplacement en attente de photo (généré par site.js si le fichier manque) */
.photo-attente {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  background: repeating-linear-gradient(-45deg, var(--craie) 0 14px, #f3ecdd 14px 28px);
  border: 2px dashed rgba(34,37,46,.35); border-radius: inherit;
  color: var(--encre-2); text-align: center; padding: 1rem; min-height: 120px;
}
.photo-attente span { font-size: 1.8rem; }
.photo-attente small { font-family: var(--f-main); font-size: 1.15rem; max-width: 26ch; line-height: 1.25; }

/* Visuels des réalisations : la photo recouvre le fond dégradé quand elle existe */
.echantillon__visuel { position: relative; overflow: hidden; }
.echantillon__visuel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.echantillon:hover .echantillon__visuel > img { transform: scale(1.05); }
.echantillon__visuel small { z-index: 1; }
/* Voile sous la petite légende blanche (les fonds clairs descendaient à 3,3:1) */
.echantillon__visuel:has(> small)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}

/* ---------- Numéros fantômes de sections ---------- */
.section[data-num]::after {
  content: attr(data-num);
  position: absolute; top: clamp(1rem, 3vw, 2.2rem); right: clamp(1rem, 4vw, 3rem);
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 1; color: rgba(34,37,46,.055); pointer-events: none; letter-spacing: -.04em;
}

/* ---------- Chips de confiance (héros) ---------- */
.confiance-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 0; }
.confiance-chips li {
  font-size: .85rem; font-weight: 600; color: var(--encre-2);
  background: var(--craie); border: 1.5px solid rgba(34,37,46,.3); border-radius: 999px;
  padding: .32rem .85rem .32rem .7rem; display: inline-flex; align-items: center; gap: .4rem;
}
.confiance-chips li::before { content: "✓"; color: var(--garance); font-weight: 800; }
.confiance-chips li:nth-child(1) { background: rgba(216,68,43,.10); border-color: rgba(216,68,43,.4); }
.confiance-chips li:nth-child(2) { background: rgba(224,156,51,.13); border-color: rgba(224,156,51,.5); }
.confiance-chips li:nth-child(3) { background: rgba(46,107,94,.10); border-color: rgba(46,107,94,.4); }
.confiance-chips li:nth-child(2)::before { color: var(--ocre-texte); }
.confiance-chips li:nth-child(3)::before { color: var(--loire); }

/* ---------- Offre 360° (bannière large) ---------- */
.offre-360 {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(1.4rem, 3vw, 2.5rem); align-items: center;
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(216,68,43,.35), transparent 60%),
    radial-gradient(50% 100% at 10% 100%, rgba(224,156,51,.22), transparent 60%),
    linear-gradient(135deg, #23262f, #2e2a3a);
  color: var(--papier);
  border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem); box-shadow: 8px 8px 0 rgba(216,68,43,.85);
}
@media (max-width: 760px) { .offre-360 { grid-template-columns: 1fr; } }
.offre-360 h3 { color: var(--papier); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .1rem; }
.offre-360 .pour-qui { color: var(--ocre); font-family: var(--f-main); font-size: 1.3rem; margin: 0 0 .7rem; }
.offre-360 p { color: rgba(247,241,230,.85); margin: 0; }
.offre-360__cta { text-align: center; }
.offre-360__cta .prix { font-family: var(--f-titre); font-weight: 800; font-size: 1.9rem; color: var(--papier); margin: 0 0 .8rem; }
.offre-360__cta .prix small { display: block; font-family: var(--f-texte); font-weight: 400; font-size: .95rem; color: rgba(247,241,230,.75); }

/* ---------- Citation éditoriale ---------- */
.citation { position: relative; text-align: center; }
.citation__texte {
  position: relative; font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.25; letter-spacing: -.02em;
  max-width: 30ch; margin: 0 auto .9rem;
  text-wrap: balance;
}
.citation__guillemet {
  font-size: 1.5em; line-height: 0; color: var(--garance); vertical-align: -.12em;
}
.citation__guillemet--ouvre { margin-right: .12em; }
.citation__guillemet--ferme { margin-left: .12em; }
.citation__source { color: var(--encre-2); font-size: .95rem; margin: 0; }

/* ---------- Slider (références, offres, articles) : actif dès que les cartes devraient replier ----------
   Cartes en défilement natif aimanté, qui débordent jusqu'au bord de l'écran (la carte suivante
   dépasse : on comprend qu'il faut glisser). Barre de navigation SOUS les cartes : points,
   compteur, deux boutons. Rien n'est posé sur les cartes. */
.indice-slider { display: none; }
.slider-zone { position: relative; }
.slider-barre { display: none; }
@media (max-width: 960px) {
  .slider-mobile {
    display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    gap: 1rem; padding: .9rem clamp(1.1rem, 4vw, 2.5rem) 1.2rem;
    margin-inline: calc(-1 * clamp(1.1rem, 4vw, 2.5rem));   /* jusqu'au bord de l'écran */
    scroll-padding-inline: clamp(1.1rem, 4vw, 2.5rem);
    scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
  }
  .slider-mobile::-webkit-scrollbar { display: none; }
  .slider-mobile > * { flex: 0 0 calc(50% - 1.6rem); scroll-snap-align: start; width: auto !important; grid-column: auto !important; }
  .slider-barre { display: flex; align-items: center; gap: .9rem; margin-top: .2rem; }
  .slider-points { display: flex; gap: .15rem; flex: 1; }
  .slider-point {
    width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .slider-point::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(34,37,46,.25); transition: width .25s, background .25s; }
  .slider-point.actif::before { width: 24px; background: var(--garance); }
  .slider-compteur { font-weight: 700; font-size: .9rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
  .slider-fleches { display: flex; gap: .5rem; }
  .slider-fleche {
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
    background: var(--craie); border: 1.5px solid var(--encre); color: var(--encre); font-size: 1.1rem; line-height: 1;
    box-shadow: 3px 3px 0 rgba(34,37,46,.85); transition: transform .15s, box-shadow .15s, opacity .2s;
  }
  .slider-fleche:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(34,37,46,.85); }
  .slider-fleche[disabled] { opacity: .3; box-shadow: none; cursor: default; }
}
@media (max-width: 620px) {
  .slider-mobile > * { flex: 0 0 86%; }
}

/* Bloc contact du menu mobile : masqué sur desktop */
.nav__contact { display: none; }

/* ---------- Sous-menu d'ancrage (sommaire de page) ---------- */
/* Fond opaque, sans backdrop-filter (invisible sous 94 % d'opacité, coûteux au défilement) */
.sous-menu { position: sticky; top: var(--entete-h); z-index: 40; background: var(--papier); border-bottom: 1px solid rgba(34,37,46,.12); }
.sous-menu__inner {
  display: flex; gap: .35rem; align-items: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  max-width: var(--maxw); margin: 0 auto; padding: .55rem clamp(1.1rem, 4vw, 2.5rem);
}
.sous-menu__inner::-webkit-scrollbar { display: none; }
.sous-menu__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--encre-2); margin-right: .3rem; white-space: nowrap; }
.sous-menu a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--encre-2); padding: .38rem .9rem; border-radius: 999px; border: 1.5px solid transparent; transition: .15s; }
.sous-menu a:hover { color: var(--garance-fonce); background: rgba(216,68,43,.1); border-color: transparent; }
.sous-menu a.actif { background: var(--encre); color: var(--papier); border-color: var(--encre); }
@media (max-width: 620px) { .sous-menu__label { display: none; } }
/* Fondu au bord droit : on voit que la barre d'ancres continue. */
@media (max-width: 760px) { .sous-menu__inner { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
/* Mobile : fine barre de défilement pour signaler la suite du sous-menu. (Décalage des ancres : scroll-padding sur html.) */
@media (max-width: 760px) { .sous-menu__inner { scrollbar-width: thin; } .sous-menu__inner::-webkit-scrollbar { display: block; height: 4px; } }

/* Faibles hauteurs (paysage mobile, zoom 400 %) : en-tête et sous-menu non collants (placé après leurs règles). */
@media (max-height: 500px) {
  .entete, .sous-menu { position: static; }
  html { scroll-padding-top: 1rem; }
}

/* ---------- Retours ---------- */
.lien-retour {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; min-height: 44px;
  font-weight: 600; font-size: .92rem; color: var(--encre-2);
  border: 1.5px solid rgba(34,37,46,.35); border-radius: 999px; padding: .4rem 1rem; transition: .18s;
}
.lien-retour:hover { border-color: var(--encre); color: var(--encre); }

.btn-haut {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--encre); color: var(--papier); border: none; font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(34,37,46,.3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.btn-haut.visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 620px) { .btn-haut { right: .6rem; bottom: .6rem; width: 44px; height: 44px; } }
/* Formulaire en cours de saisie : le bouton ne recouvre pas les champs. */
html:has(#form-contact:focus-within) .btn-haut { opacity: 0; pointer-events: none; }
.btn-haut:hover { background: var(--garance); }

/* ---------- Bandeau de consentement (cookies / mesure d'audience) ---------- */
/* z-index 110 : au-dessus de l'en-tête (100), sous la modale (200) ; hauteur plafonnée en fort zoom. */
.cookie-banner {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 110; width: min(420px, calc(100vw - 2.4rem));
  max-height: calc(100dvh - var(--entete-h, 80px) - 2rem); overflow: auto;
  background: var(--craie); border: 2px solid var(--encre); border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(34,37,46,.16), 0 18px 40px -18px rgba(34,37,46,.35);
  padding: 1rem 1.15rem 1.15rem;
  opacity: 0; transform: translateY(24px); transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
/* Liseré aux couleurs du site, comme les cartes. */
.cookie-banner::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--garance), var(--ocre), #6fae9a, #6e93d6, #9a82d8);
}
.cookie-banner.visible { opacity: 1; transform: none; }
.cookie-banner__haut { display: flex; align-items: center; gap: .55rem; margin: .1rem 0 .55rem; }
.cookie-banner__pico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(216,68,43,.1); color: var(--garance-fonce);
}
.cookie-banner__pico svg { width: 17px; height: 17px; }
.cookie-banner__titre { font-family: var(--f-titre); font-size: 1rem; letter-spacing: -.01em; color: var(--encre); white-space: nowrap; }
/* Lien « Continuer sans accepter » : petit, en haut à droite, mais contrasté et souligné (jamais grisé). */
.cookie-banner__continuer {
  margin-left: auto; min-height: 44px; padding: 0 .1rem; background: none; border: 0; cursor: pointer;
  font: 600 .8rem/1.2 var(--f-texte); color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; white-space: nowrap;
}
.cookie-banner__continuer:hover { color: var(--garance-fonce); }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--encre-2); line-height: 1.55; }
.cookie-banner__actions { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.cookie-banner__accepter { flex: 1 1 auto; justify-content: center; min-height: 46px; }
.cookie-banner__accepter::after { content: none !important; display: none !important; }   /* pas de flèche : c'est un choix, pas un lien */
.cookie-banner__lien { flex: none; font-size: .85rem; font-weight: 600; color: var(--encre); padding: .7rem 0; }
.cookie-banner__lien:hover { color: var(--garance-fonce); }
/* Mobile : panneau ancré en bas, pleine largeur, coins arrondis en haut seulement, encoche respectée. */
@media (max-width: 560px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0; width: auto; border-width: 2px 0 0; border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px -12px rgba(34,37,46,.3);
    padding: .85rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .cookie-banner::before { border-radius: 18px 18px 0 0; }
  .cookie-banner p { font-size: .85rem; }
  .cookie-banner__actions { margin-top: .75rem; }
}
@media (max-width: 400px) { .cookie-banner__pico { display: none; } }
/* Bandeau affiché (site.js pose body.consent-ouvert et mesure --bandeau-h sur <html>) : le focus ne passe
   pas dessous et « retour en haut » remonte au-dessus du bandeau, à toutes les largeurs. */
html:has(body.consent-ouvert), html:has(.cookie-banner.visible) { scroll-padding-bottom: calc(var(--bandeau-h, 12rem) + 1rem); }
/* Bouton « haut de page » remonté seulement en mobile (sur ordinateur, le bandeau est à gauche, le bouton à droite). */
@media (max-width: 560px) { body.consent-ouvert .btn-haut, html:has(.cookie-banner.visible) .btn-haut { bottom: calc(var(--bandeau-h, 12rem) + 1.5rem); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ---------- Révélations au scroll ----------
   Masquage initial seulement si JS tourne (html.js, posée dans le <head>) : sans JS, tout est visible.
   Secours : si site.js ne s'exécute pas, les blocs réapparaissent après 3 s ; dès que site.js tourne
   (il pose --entete-h sur <html>), le secours est neutralisé et l'observateur révèle au défilement. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; animation: reveal-secours 0s linear 3s forwards; }
html[style*="--entete-h"] .reveal { animation: none; }
.js .reveal.visible { opacity: 1; transform: none; }
@keyframes reveal-secours { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }

/* ---------- Page article / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose figure { margin: 2rem 0; }
/* Couverture d'un article (visuel 1200×630, cadre de la charte) */
.prose .article-couverture { margin: 1.6rem 0 2.2rem; aspect-ratio: 1200 / 630; }
.prose .encadre { background: var(--craie); border-left: 4px solid var(--garance); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }

/* ---------- Blog (index magazine + article) ---------- */
.fil-ariane { font-size: .85rem; color: var(--encre-2); margin-bottom: .5rem; }
.fil-ariane a { color: var(--encre-2); text-decoration: none; display: inline-block; padding: .7rem .2rem; }
.fil-ariane a:hover { color: var(--garance-fonce); }
.cat-badge { display: inline-block; align-self: flex-start; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--garance-fonce); background: rgba(216,68,43,.1); border-radius: 999px; padding: .22rem .7rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .85rem; color: var(--encre-2); margin: .55rem 0 0; }
.blog-une { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: stretch; }
@media (max-width: 800px) { .blog-une { grid-template-columns: 1fr; } }
.blog-une .echantillon { height: 100%; }

/* ---------- Divers ---------- */
.tampon {
  display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--garance); color: var(--garance-fonce); font-weight: 800;   /* texte en garance foncé, sans opacité (3,77:1 avant) */
  background: rgba(255,253,248,.7);   /* fond clair : texte lisible sur le décor de la section */
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; text-align: center;
  transform: rotate(-12deg); padding: .6rem; line-height: 1.3;
  /* Grain d'encre léger (masque à 90 % d'opacité au moins) : effet tampon, sans transparence gênante. */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.6'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 .9'/%3E%3C/filter%3E%3Crect width='110' height='110' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Panorama des prestations (services.html) : une carte par prestation sur petit écran, colonnes
   nommées par CSS (le tableau à trois colonnes ne tient pas sur 390 px). */
@media (max-width: 600px) {
  .tableau--cartes, .tableau--cartes tbody, .tableau--cartes tr, .tableau--cartes td { display: block; width: 100%; }
  .tableau--cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau--cartes tr { border-bottom: 1px dashed rgba(34,37,46,.25); padding: .8rem 1rem; }
  .tableau--cartes td { border: 0; padding: .15rem 0; }
  .tableau--cartes td:first-child { font-size: 1.05rem; }
  .tableau--cartes td:nth-child(2)::before, .tableau--cartes td:nth-child(3)::before {
    display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--garance-fonce); margin-top: .35rem;
  }
  .tableau--cartes td:nth-child(2)::before { content: "L'essentiel"; }
  .tableau--cartes td:nth-child(3)::before { content: "Options possibles"; }
}
/* Pied de page : liens plus faciles à toucher au doigt. */
.pied li a { display: inline-block; padding: .25rem 0; }
@media (max-width: 620px) {   /* cibles tactiles de 44 px au doigt */
  .pied li { margin-bottom: 0; }
  .pied li a { padding: .6rem 0; min-height: 44px; }
}

/* Vidéo de présentation (a-propos.html#video) : horizontale sur ordinateur, verticale sur téléphone. */
.video-agence { margin-top: 1.6rem; }
.video-agence video { display: block; width: 100%; height: auto; background: var(--encre); border: 2.5px solid var(--encre); border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(34,37,46,.9); }
.video-agence__h { max-width: 1000px; aspect-ratio: 16 / 9; }
.video-agence__v { display: none !important; max-width: 340px; margin-inline: auto; aspect-ratio: 9 / 16; }
@media (max-width: 640px) {
  .video-agence__h { display: none !important; }
  .video-agence__v { display: block !important; }
}
.video-agence__intro { max-width: 40rem; margin: .2rem 0 0; color: var(--encre-2); }

/* Titres : pas de mot seul sur la dernière ligne. Balance pour les h2 courts ; pretty pour le h1 et les
   titres de cartes (balance les rétrécit et laisse un grand vide à droite). */
h2 { text-wrap: balance; }
h1, h3 { text-wrap: pretty; }
/* Écriture manuscrite (Caveat) : interligne serré et lignes équilibrées quand elle passe sur deux lignes. */
.annotation, .offre .pour-qui, .offre-360 .pour-qui, .reference__corps .metier { line-height: 1.2; text-wrap: balance; }
/* Pastilles d'options (offres) : arrondi qui reste joli si le texte passe sur deux lignes. */
.puces-options { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem auto 0; justify-content: center; max-width: 50rem; }
.puces-options li { border: 1.5px dashed rgba(34,37,46,.35); border-radius: 1.4rem; padding: .45rem 1.1rem; background: var(--craie); font-size: .95rem; }
@media (max-width: 520px) {
  .puces-options { gap: .45rem; }
  .puces-options li { font-size: .86rem; padding: .4rem .85rem; }
  /* Étiquettes des références : plus serrées, deux ou trois par ligne au lieu d'une. */
  .badge { letter-spacing: .03em; font-size: .7rem; }
  /* Bouton d'envoi du formulaire : pleine largeur, comme les champs. */
  #form-contact button[type="submit"] { width: 100%; justify-content: center; }
}
/* Tablette : la dernière carte seule d'une grille de deux occupe toute la ligne. */
@media (min-width: 621px) and (max-width: 960px) {
  .grille-3:not(.slider-mobile) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Formulaire de contact empilé : un seul écart régulier (celui de .champ). */
@media (max-width: 620px) { #form-contact .grille-2 { gap: 0 !important; } }
.zones { columns: 2; column-gap: 2rem; }
.zones li { break-inside: avoid; }
@media (max-width: 560px) { .zones { columns: 1; } }
.nowrap { white-space: nowrap; }
/* Menu mobile qui déborde : margin-top:auto vaut 0, l'écart avant « Espace client » est garanti ici. */
@media (max-width: 980px) { .nav > :has(+ .nav__client) { margin-bottom: 1rem; } }
/* Formulaire de contact : mention RGPD sous le bouton d'envoi, discrète. */
#form-contact .form-rgpd { font-size: .78rem; line-height: 1.5; color: var(--encre-2); margin: .9rem 0 0; }
#form-contact .form-rgpd a { color: inherit; }

/* ---------- Confirmation d'envoi du formulaire de contact (fenêtre modale) ---------- */
.merci-modale {
  width: min(440px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: 2.2rem 1.8rem 1.6rem; border: 2px solid var(--encre); border-radius: var(--radius);
  background: var(--craie); color: var(--encre); text-align: center;
  box-shadow: 8px 8px 0 rgba(34,37,46,.18), 0 30px 60px -20px rgba(34,37,46,.45);
}
/* Liseré aux couleurs du site, comme les cartes. */
.merci-modale::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--garance), var(--ocre), #6fae9a, #6e93d6, #9a82d8);
}
.merci-modale::backdrop { background: rgba(34,37,46,.45); backdrop-filter: blur(3px); }
.merci-modale__pico {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: #e3f0e8; color: var(--loire); border: 2px solid var(--loire); box-shadow: 0 4px 0 var(--loire);
}
.merci-modale__pico svg { width: 32px; height: 32px; }
.merci-modale h2 { font-size: clamp(1.5rem, 5vw, 1.8rem); margin: 0 0 .6rem; }
.merci-modale p { margin: 0 auto .8rem; max-width: 34ch; color: var(--encre-2); line-height: 1.55; text-wrap: pretty; }
.merci-modale strong { color: var(--encre); }
.merci-modale__urgent { font-size: .9rem; }
.merci-modale__urgent a { color: var(--garance-fonce); font-weight: 700; white-space: nowrap; }
.merci-modale .merci-modale__signature { display: block; margin: .3rem auto 1.2rem; color: var(--garance-fonce); }
.merci-modale__actions { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 0; }
.merci-modale__fermer { width: 100%; justify-content: center; }
.merci-modale__fermer::after { content: none !important; display: none !important; }   /* pas de flèche : on ferme */
/* Apparition : léger zoom et fondu (le voile se fond aussi). */
@media (prefers-reduced-motion: no-preference) {
  .merci-modale[open] { animation: merci-entree .35s cubic-bezier(.22, 1, .36, 1); }
  .merci-modale[open]::backdrop { animation: merci-voile .3s ease; }
  .merci-modale[open] .merci-modale__pico { animation: merci-pico .5s .12s cubic-bezier(.34, 1.56, .64, 1) both; }
}
@keyframes merci-entree { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes merci-voile { from { opacity: 0; } }
@keyframes merci-pico { from { transform: scale(.4); opacity: 0; } }
/* Page figée derrière la fenêtre. */
html:has(.merci-modale[open]) { overflow: hidden; }
