/* =============================================================================
   Future Informatique — feuille unique du site.

   Systeme visuel de la maquette « Validation Phase 1 » (claude.ai/design) :
   Lato, base 18 px, formes tres arrondies, cibles tactiles genereuses. Le
   public est largement age : lisibilite et taille des cibles passent avant
   la densite.

   Couches, de la plus faible a la plus forte :
   - socle      : remise a zero et comportements par defaut ;
   - jetons     : couleurs, rayons, espacements, typographie ;
   - composants : blocs reutilises d'une page a l'autre ;
   - pages      : ce qui n'existe que sur une page.

   Regle : aucune declaration forcee, sauf dans le bloc
   prefers-reduced-motion, ou elle doit l'emporter sur tout le reste.
   ========================================================================== */

@layer socle, jetons, composants, pages;

/* Lato servie par le site, sous-ensemble latin (licence : fonts/lato/OFL.txt).
   La charger chez Google enverrait l'adresse IP du visiteur a un tiers avant
   tout consentement. */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lato/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lato/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/lato/lato-900.woff2') format('woff2'); }

/* L'attribut hidden doit toujours masquer. Hors de toute couche : une regle
   sans couche l'emporte sur toutes les regles en couche, quel que soit leur
   ordre ou leur specificite. Dans socle, un composant qui pose display
   (.review-summary, .avis__liste, .form-status...) le rendait visible. */
[hidden] { display: none; }

/* --------------------------------------------------------------- jetons */

@layer jetons {
  :root {
    --texte: #31404a;
    --sombre: #2e3844;
    --attenue: #5a6770;
    --lien: #006b82;
    --cta: #00809c;
    --cta-survol: #006b82;
    --cyan: #00b3da;
    --cyan-clair: #5fd0ea;
    --rose: #f16583;
    --rose-pale: #fde7ec;
    --orange: #f0a53a;
    --gris: #f4f7f8;
    --ciel: #e0f5fa;
    --gris-moyen: #e5e9ec;
    --bordure: #dde5e9;
    --bordure-champ: #7a8891;
    --clair-sur-sombre: #c5ced6;
    --filet-sombre: #4a5663;
    --etoile: #b8860b;
    --erreur: #b3261e;
    --erreur-fond: #fbeaea;
    --succes: #2e7d32;
    --succes-fond: #e3f1e4;

    --r-16: 16px;
    --r-20: 20px;
    --r-24: 24px;
    --r-28: 28px;
    --r-32: 32px;
    --pilule: 999px;

    --gouttiere: clamp(20px, 4vw, 40px);
    --section: clamp(56px, 7vw, 104px);
    --largeur: 1200px;
    --largeur-large: 1280px;

    --police: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t-h1: clamp(34px, calc(22px + 2.4vw), 54px);
    --t-h2: clamp(28px, calc(21px + 1.3vw), 40px);
    --t-h2-petit: clamp(24px, calc(20px + .7vw), 30px);
    --t-lead: clamp(19px, calc(17px + .35vw), 22px);

    --ombre-carte: 0 10px 40px rgba(46, 56, 68, .22);
    --ombre-cta: 0 6px 18px rgba(0, 128, 156, .28);
    --h-entete: 76px;
    --h-barre-appel: 84px;
  }
}

/* ---------------------------------------------------------------- socle */

@layer socle {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--h-entete) + 16px);
  }

  body {
    margin: 0;
    background: #fff;
    color: var(--texte);
    font-family: var(--police);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
  }

  h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
  h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; text-wrap: balance; }
  ul, ol { list-style: none; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  svg { flex-shrink: 0; }

  a { color: var(--lien); text-underline-offset: 3px; }
  a:hover { color: var(--sombre); }

  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }

  :focus-visible { outline: 3px solid var(--sombre); outline-offset: 3px; }
  [data-dark] :focus-visible { outline-color: #fff; }


  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .lien-evitement {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: var(--pilule);
    background: var(--sombre);
    color: #fff;
    font-weight: 900;
    transform: translateY(-200%);
  }
  .lien-evitement:focus { transform: none; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------- composants */

@layer composants {

  /* --- mise en page -------------------------------------------------- */

  .conteneur {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 var(--gouttiere);
  }

  .section { padding: var(--section) 0; }
  .section--gris { background: var(--gris); }
  .section--ciel { background: var(--ciel); }
  .section--sans-haut { padding-top: 0; }
  .section--sans-bas { padding-bottom: 0; }

  .section__corps {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
  }

  .titre-section { font-size: var(--t-h2); }
  .titre-section--petit { font-size: var(--t-h2-petit); line-height: 1.2; }

  .entete-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }

  .intro-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 44em;
  }

  .texte-attenue { color: var(--attenue); }

  .lead {
    font-size: var(--t-lead);
    line-height: 1.55;
    max-width: 32em;
    text-wrap: pretty;
  }

  /* --- boutons et liens ------------------------------------------------ */

  .bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 30px;
    border: 0;
    border-radius: var(--pilule);
    font-weight: 900;
    font-size: 21px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .bouton--appel {
    background: var(--cta);
    color: #fff;
    box-shadow: var(--ombre-cta);
  }
  .bouton--appel:hover { background: var(--cta-survol); color: #fff; }

  .bouton--clair { background: var(--cyan); color: var(--sombre); }
  .bouton--clair:hover { background: var(--cyan-clair); color: var(--sombre); }

  .bouton--contour {
    min-height: 56px;
    border: 2px solid var(--cta);
    background: #fff;
    color: var(--lien);
    font-size: 19px;
  }
  .bouton--contour:hover { background: var(--ciel); color: var(--lien); }

  .bouton--petit { min-height: 52px; padding: 0 22px; font-size: 19px; }

  .lien-fort {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 8px;
    color: var(--lien);
    font-weight: 900;
    font-size: 19px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  .lien-fort:hover { color: var(--sombre); }
  .lien-fort--clair, .lien-fort--clair:hover { color: #fff; }

  .lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    font-weight: 900;
    font-size: 18px;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }

  /* --- en-tete --------------------------------------------------------- */

  .entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--bordure);
  }

  .entete__barre {
    max-width: var(--largeur-large);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
    min-height: var(--h-entete);
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .marque {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    flex-shrink: 0;
    color: var(--texte);
    text-decoration: none;
  }
  .marque:hover { color: var(--texte); }
  .marque__logo { width: 44px; height: 48px; }
  .marque__texte { display: flex; flex-direction: column; line-height: 1.05; }
  .marque__nom { font-weight: 900; font-size: 20px; letter-spacing: -0.2px; }
  .marque__sous { font-size: 14px; font-weight: 700; color: var(--attenue); }

  .nav { margin-left: auto; display: none; }
  .nav__liste { display: flex; gap: 2px; align-items: center; }
  .nav__lien {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--pilule);
    color: var(--texte);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
  }
  .nav__lien:hover { background: var(--ciel); color: var(--sombre); }
  .nav__lien[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 4px;
    border-radius: 4px;
    background: var(--cyan);
  }

  .entete__tel { display: none; white-space: nowrap; flex-shrink: 0; box-shadow: none; }

  .bouton-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    min-width: 52px;
    padding: 0 18px;
    border-radius: var(--pilule);
    border: 2px solid var(--texte);
    background: #fff;
    color: var(--texte);
    font-weight: 900;
    font-size: 18px;
  }
  .bouton-menu:hover { background: var(--ciel); }

  /* Le bouton d'appel prend le relais de la barre d'appel mobile des
     1024 px ; le menu complet n'a la place qu'a partir de 1200 px. */
  @media (min-width: 1024px) {
    .entete__tel { display: flex; }
  }
  /* Sans le menu complet, c'est le bouton d'appel qui pousse le groupe a droite. */
  @media (min-width: 1024px) and (max-width: 1199.98px) {
    .entete__tel { margin-left: auto; }
    .bouton-menu { margin-left: 0; }
  }
  @media (min-width: 1200px) {
    .nav { display: flex; }
    .bouton-menu { display: none; }
  }

  /* Petits telephones : la marque et le bouton « Menu » doivent tenir sur
     une ligne de 360 px sans rogner l'un ou l'autre. */
  @media (max-width: 419.98px) {
    .entete__barre { gap: 10px; }
    .marque { gap: 8px; }
    .marque__logo { width: 38px; height: 42px; }
    .marque__nom { font-size: 18px; }
    .marque__sous { font-size: 13px; }
    .bouton-menu { padding: 0 14px; gap: 6px; }
  }

  /* Tiroir : <dialog> ouvert en modal, qui fournit le piege a focus et
     la touche Echap. */
  .tiroir {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--texte);
    box-shadow: -12px 0 40px rgba(46, 56, 68, .25);
    overflow-y: auto;
  }
  /* Le contenu remplit tout le tiroir : un clic dans un vide du tiroir
     (au-dessus de .tiroir__pied, pousse en bas) touche .tiroir__contenu, et
     seul un clic sur le fond (::backdrop) a pour cible le <dialog> lui-meme,
     ce qui le ferme (js/site.js). */
  .tiroir[open] { display: flex; flex-direction: column; }
  .tiroir__contenu { flex: 1 0 auto; min-height: 100%; display: flex; flex-direction: column; }
  .tiroir::backdrop { background: rgba(46, 56, 68, .55); }

  .tiroir__tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--h-entete);
    padding: 12px 16px 12px 24px;
    border-bottom: 1px solid var(--bordure);
  }
  .tiroir__titre { font-weight: 900; font-size: 20px; }

  .bouton-fermer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: var(--pilule);
    border: 2px solid var(--texte);
    background: #fff;
    color: var(--texte);
    font-weight: 900;
    font-size: 18px;
  }
  .bouton-fermer:hover { background: var(--ciel); }

  .tiroir__nav { padding: 8px 12px; }
  .tiroir__liste { display: flex; flex-direction: column; gap: 4px; }
  .tiroir__lien {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 16px;
    border-radius: var(--r-16);
    color: var(--texte);
    font-weight: 900;
    font-size: 22px;
    text-decoration: none;
  }
  .tiroir__lien svg { margin-left: auto; }
  .tiroir__lien:hover { background: var(--ciel); color: var(--texte); }
  .tiroir__lien[aria-current="page"]::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: var(--pilule);
    background: var(--cyan);
    flex-shrink: 0;
  }

  .tiroir__pied {
    margin-top: auto;
    padding: 20px 24px 28px;
    background: var(--gris);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tiroir__pied .bouton { min-height: 60px; font-size: 20px; box-shadow: none; }
  .tiroir__infos { font-size: 17px; color: var(--attenue); }

  /* --- fil d'Ariane ---------------------------------------------------- */

  .fil {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 17px;
  }
  .fil li { display: flex; align-items: center; gap: 8px; }
  .fil a { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
  .fil [aria-current="page"] { font-weight: 700; }
  .fil svg { color: var(--attenue); }

  /* --- hero ------------------------------------------------------------ */

  .hero { background: var(--gris); overflow: hidden; }
  .hero--ciel { background: var(--ciel); }

  .hero__cadre {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 72px) var(--gouttiere) clamp(48px, 6vw, 88px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 36px);
  }
  .hero__cadre--fil { padding-top: 16px; }
  /* Hero court des pages sans visuel : tarifs, contact, textes longs. */
  .hero__cadre--court { padding-bottom: clamp(36px, 4vw, 56px); }
  .hero__cadre--court .hero__texte { max-width: 46em; }

  .hero__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }

  .hero__texte { display: flex; flex-direction: column; gap: 22px; }

  .hero__titre {
    font-size: var(--t-h1);
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .hero__accroche {
    font-size: var(--t-h1);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-wrap: balance;
  }

  .hero__horaires { font-size: 17px; color: var(--attenue); }
  .hero__horaires--icone { display: flex; gap: 10px; align-items: flex-start; }
  .hero__horaires--icone svg { margin-top: 2px; color: var(--cta); }

  .surtitre {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: var(--pilule);
    background: #fff;
    font-weight: 900;
    font-size: 17px;
    line-height: 1.3;
  }
  .surtitre__point {
    width: 10px;
    height: 10px;
    border-radius: var(--pilule);
    background: var(--rose);
    flex-shrink: 0;
  }
  .surtitre--icone { padding: 6px 16px 6px 6px; }

  .pastille-icone {
    width: 36px;
    height: 36px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  /* Fond de couleur des pastilles d'icone, partage par les cartes. */
  .fond-cyan { background: var(--cyan); color: var(--sombre); }
  .fond-rose { background: var(--rose); color: var(--sombre); }
  .fond-sombre { background: var(--sombre); color: #fff; }
  .fond-orange { background: var(--orange); color: var(--sombre); }

  .encart-prix {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 16px 20px;
    border-radius: var(--r-20);
    background: #fff;
  }
  .encart-prix a { font-weight: 900; font-size: 17px; min-height: 44px; display: flex; align-items: center; }

  /* Visuel du hero : les cercles de la maquette autour d'un cadre. Le cadre
     porte la photo publiee depuis /admin/photos, le logo sinon. */
  .visuel {
    position: relative;
    min-height: clamp(280px, 32vw, 440px);
  }
  .visuel__cercle {
    position: absolute;
    aspect-ratio: 1;
    border-radius: var(--pilule);
  }
  .visuel__cercle--un { width: 58%; right: -10%; bottom: -14%; background: var(--cyan); }
  .visuel__cercle--deux { width: 30%; left: -6%; top: -8%; background: var(--rose-pale); }
  /* Couleur du cercle selon le service : rose a distance, orange en cours,
     sombre a l'atelier. */
  .visuel__cercle--rose { background: var(--rose); }
  .visuel__cercle--orange { background: var(--orange); }
  .visuel__cercle--sombre { background: var(--sombre); }
  .visuel--accueil { min-height: clamp(300px, 34vw, 480px); }
  .visuel--accueil .visuel__cercle--un { width: 62%; right: -8%; top: -10%; bottom: auto; }
  .visuel--accueil .visuel__cercle--deux { width: 22%; left: -4%; bottom: -6%; top: auto; }
  .visuel--accueil .visuel__cadre { inset: 6% 4% 4% 4%; }
  .visuel__cadre {
    position: absolute;
    inset: 4% 4% 6% 4%;
    border-radius: var(--r-32);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(46, 56, 68, .12);
  }
  .visuel__logo { width: min(46%, 200px); height: auto; }
  .visuel__photo { width: 100%; height: 100%; object-fit: cover; }

  /* --- cartes de service ----------------------------------------------- */

  .grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
  }
  /* Quatre cartes : 1, 2 puis 4 colonnes, jamais 3 + 1 orpheline. */
  .grille-cartes--quatre { grid-template-columns: 1fr; }
  @media (min-width: 600px) { .grille-cartes--quatre { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1100px) { .grille-cartes--quatre { grid-template-columns: repeat(4, 1fr); } }
  .grille-cartes--trois { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }

  .carte-service {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 10px rgba(46, 56, 68, .06);
    border: 2px solid var(--bordure);
    border-radius: var(--r-24);
    background: #fff;
  }
  .carte-service__icone {
    width: 64px;
    height: 64px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }
  .carte-service__titre { font-size: 24px; line-height: 1.2; }
  .carte-service__texte { font-size: 18px; flex: 1; }
  .carte-service__prix { font-size: 17px; }
  .carte-service__prix strong { font-weight: 900; }
  .carte-service__lien { font-weight: 900; font-size: 18px; min-height: 48px; display: flex; align-items: center; }

  /* --- comparatif des modes -------------------------------------------- */

  .carte-mode {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-24);
    background: #fff;
    overflow: hidden;
  }
  .carte-mode__tete { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
  .carte-mode__tete--ciel { background: var(--ciel); }
  .carte-mode__tete--rose { background: var(--rose-pale); }
  .carte-mode__tete--gris { background: var(--gris-moyen); }
  .carte-mode__icone {
    width: 48px;
    height: 48px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .carte-mode__titre { font-size: 22px; line-height: 1.2; }
  .carte-mode__liste { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 24px; flex: 1; font-size: 18px; }
  .carte-mode__liste dt { font-weight: 900; }
  .carte-mode__lien { padding: 0 22px 16px; min-height: 56px; }

  /* --- etapes ---------------------------------------------------------- */

  .etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 28px 32px;
  }
  .etape { display: flex; gap: 18px; align-items: flex-start; }
  .etape__numero {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--pilule);
    background: var(--cyan);
    color: var(--sombre);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 26px;
  }
  .etape__corps { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
  .etape__titre { font-size: 22px; line-height: 1.25; }

  /* --- symptomes (page service) ---------------------------------------- */

  .symptomes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 12px 20px;
  }
  .symptome {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 12px 18px;
    border-radius: var(--r-20);
    background: var(--gris);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
  }
  /* Sur une section grise, les pastilles passent en blanc et leur icone
     sur le gris, pour garder le contraste. */
  .symptomes--blanc .symptome { background: #fff; }
  .symptomes--blanc .symptome__icone { background: var(--gris); }
  .symptome__icone {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--pilule);
    background: #fff;
    color: var(--cta);
    display: grid;
    place-items: center;
  }

  /* --- bloc tarif (page service) --------------------------------------- */

  .bloc-tarif {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    border-radius: var(--r-28);
    border: 2px solid var(--bordure);
    overflow: hidden;
  }
  .bloc-tarif__principal,
  .bloc-tarif__conditions {
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .bloc-tarif__principal { background: #fff; }
  .bloc-tarif__conditions { background: var(--gris); gap: 14px; }
  .bloc-tarif__tete { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
  .bloc-tarif__titre { font-size: 24px; line-height: 1.2; }
  .bloc-tarif__sous-titre { font-size: 20px; }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--pilule);
    background: var(--ciel);
    color: var(--sombre);
    font-weight: 900;
    font-size: 16px;
  }
  .badge--neutre { background: var(--gris-moyen); }

  .prix { display: flex; flex-wrap: wrap; gap: 16px 40px; }
  .prix__bloc { display: flex; flex-direction: column; gap: 4px; }
  .prix__libelle { font-size: 17px; font-weight: 700; color: var(--attenue); }
  .prix__montant { font-size: 36px; font-weight: 900; line-height: 1.1; }
  .prix__montant--accent { color: var(--lien); }

  .liste-coches { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
  .liste-coches li { display: flex; gap: 12px; }
  .liste-coches svg { margin-top: 3px; color: var(--cta); }

  /* --- limites (ce qui se fait ailleurs) ------------------------------- */

  .limites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 24px 48px;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--r-28);
    background: var(--gris);
  }
  .limites__intro { display: flex; flex-direction: column; gap: 12px; }
  .limites__liste { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
  .limites__liste li { display: flex; gap: 14px; align-items: flex-start; }
  .limites__icone {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }

  /* --- avis Google ----------------------------------------------------- */

  .avis__liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
  }

  .review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 19px;
  }
  .review-summary__count { color: var(--attenue); }

  .review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--r-24);
    background: #fff;
  }
  .review-card__head { display: flex; gap: 12px; align-items: center; }
  .review-card__avatar { width: 48px; height: 48px; border-radius: var(--pilule); object-fit: cover; }
  .review-card__author { font-weight: 900; font-size: 19px; }
  .review-card__date { display: block; font-size: 16px; color: var(--attenue); }
  .review-card__text {
    font-size: 18px;
    color: var(--attenue);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .review-card__link { font-size: 17px; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

  .review-star { line-height: 1; }
  .review-stars { display: inline-flex; gap: 2px; color: var(--etoile); font-size: 20px; line-height: 1; }
  .review-star--off { color: var(--gris-moyen); }

  /* --- FAQ ------------------------------------------------------------- */

  .faq {
    display: flex;
    flex-wrap: wrap;
    gap: 24px clamp(32px, 5vw, 80px);
    align-items: flex-start;
  }
  .faq__intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
  .faq__liste { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

  .question {
    border-radius: var(--r-20);
    background: var(--gris);
    border: 2px solid transparent;
  }
  .question[open] { background: #fff; border-color: var(--cyan); }

  .question__resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
  }
  .question__resume::-webkit-details-marker { display: none; }
  .question__titre { font-size: inherit; line-height: inherit; }

  .question__icone {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--pilule);
    background: #fff;
    color: var(--sombre);
    display: grid;
    place-items: center;
    transition: transform .2s;
  }
  .question[open] .question__icone { background: var(--cyan); transform: rotate(45deg); }

  .question__reponse { padding: 0 20px 20px; font-size: 18px; max-width: 40em; }
  .question__reponse p + p { margin-top: 10px; }

  /* --- encadre credit d'impot ------------------------------------------ */

  .encadre-credit {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: flex-start;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--r-28);
    border: 2px solid var(--cyan);
  }
  .encadre-credit__icone {
    width: 64px;
    height: 64px;
    border-radius: var(--pilule);
    background: var(--cyan);
    color: var(--sombre);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .encadre-credit__texte { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
  .encadre-credit__texte p { max-width: 44em; }

  /* --- services voisins ------------------------------------------------ */

  .voisins {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
  }
  .voisin {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    height: 100%;
    padding: 18px 20px;
    border-radius: var(--r-24);
    background: #fff;
    border: 2px solid transparent;
    color: var(--texte);
    text-decoration: none;
  }
  .voisin:hover { border-color: var(--cta); color: var(--texte); }
  .voisin__icone {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }
  .voisin__corps { display: flex; flex-direction: column; gap: 2px; }
  .voisin__titre {
    font-weight: 900;
    font-size: 19px;
    color: var(--lien);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .voisin__texte { font-size: 17px; }

  /* --- appel final sombre ---------------------------------------------- */

  .cta-final {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-32);
    background: var(--sombre);
    color: #fff;
    padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .cta-final__halo {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: var(--pilule);
    background: var(--cyan);
    opacity: .18;
    right: -80px;
    top: -120px;
  }
  .cta-final > :not(.cta-final__halo) { position: relative; }
  .cta-final__titre { font-size: var(--t-h2); max-width: 18em; }
  .cta-final__texte { font-size: 19px; color: var(--clair-sur-sombre); max-width: 34em; }

  /* --- adresse et horaires --------------------------------------------- */

  .horaires { display: grid; gap: 14px; }
  .horaires div { display: flex; flex-direction: column; gap: 2px; }
  .horaires dt { font-weight: 900; font-size: 19px; }
  .horaires dd { font-size: 18px; }

  .adresse { font-style: normal; font-size: 20px; font-weight: 700; line-height: 1.4; }
  .adresse--icone {
    display: flex;
    gap: 12px;
    font-size: clamp(21px, calc(19px + .4vw), 24px);
    font-weight: 900;
    line-height: 1.35;
  }
  .adresse--icone svg { margin-top: 2px; color: var(--sombre); }

  .horaires--carte {
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    padding: 20px 22px;
    border-radius: var(--r-20);
    background: #fff;
  }
  .horaires--carte div { display: contents; }

  /* --- presentation : texte et carte d'action cote a cote -------------- */

  .presentation {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  @media (min-width: 960px) {
    .presentation { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  }
  .presentation__texte { display: flex; flex-direction: column; gap: 16px; max-width: 40em; }
  .presentation__texte p { text-wrap: pretty; }

  .carte-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-28);
    background: var(--gris);
  }
  .carte-action__icone {
    width: 56px;
    height: 56px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }
  .carte-action__titre { font-size: 22px; line-height: 1.25; }
  .carte-action .horaires { align-self: stretch; }

  /* --- atouts : icone, titre, phrase ----------------------------------- */

  .atouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
  }
  .atout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: var(--r-24);
    background: #fff;
  }
  /* Sur fond blanc, la carte prend le gris pour rester visible. */
  .section:not(.section--gris, .section--ciel) .atout { background: var(--gris); }
  .atout__icone {
    width: 52px;
    height: 52px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }
  .atout__titre { font-size: 22px; line-height: 1.25; }

  /* --- texte long (pages juridiques, histoire) ------------------------- */

  .texte-long {
    max-width: 46em;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .texte-long h2 { font-size: var(--t-h2-petit); line-height: 1.2; margin-top: 24px; }
  .texte-long h3 { font-size: 21px; line-height: 1.3; margin-top: 12px; }
  .texte-long ul { list-style: disc; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
  .texte-long ol { list-style: decimal; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
  .texte-long h2:first-child { margin-top: 0; }
  .texte-long h2 { scroll-margin-top: calc(var(--h-entete) + 16px); }
  .texte-long__maj { margin-top: 16px; font-size: 16px; color: var(--attenue); }

  /* Tableaux des pages juridiques : defilement horizontal dans leur cadre
     plutot que sur la page, sous 700 px. */
  .tableau {
    overflow-x: auto;
    border: 2px solid var(--bordure);
    border-radius: var(--r-20);
  }
  .tableau table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
  .tableau th, .tableau td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--bordure); }
  .tableau thead th { border-top: 0; background: var(--gris); font-weight: 900; }
  .tableau tbody th { font-weight: 900; }

  /* Gabarit texte long : sommaire a gauche des 1024 px, colle sous
     l'en-tete ; au-dessus du texte en dessous. */
  .page-texte {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px clamp(32px, 5vw, 72px);
    align-items: start;
  }
  @media (min-width: 1024px) {
    .page-texte { grid-template-columns: 280px minmax(0, 1fr); }
    .sommaire { position: sticky; top: calc(var(--h-entete) + 24px); }
  }
  .sommaire {
    padding: 20px 22px;
    border-radius: var(--r-24);
    background: var(--gris);
  }
  .sommaire__titre { font-weight: 900; font-size: 18px; margin-bottom: 8px; }
  .sommaire__liste { display: flex; flex-direction: column; }
  .sommaire__liste a { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; line-height: 1.3; }

  /* --- formulaires ----------------------------------------------------- */

  .formulaire { display: flex; flex-direction: column; gap: 18px; }
  .formulaire__note { font-size: 16px; color: var(--attenue); }
  .formulaire__paire {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
  }
  .formulaire__envoi { align-self: stretch; box-shadow: none; }
  .formulaire__envoi:disabled { opacity: .7; cursor: progress; }

  .champ { display: flex; flex-direction: column; gap: 6px; }
  .champ__libelle { font-weight: 900; font-size: 18px; }
  .champ__saisie {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 2px solid var(--bordure-champ);
    border-radius: var(--r-16);
    background: #fff;
    font-size: 18px;
    line-height: 1.4;
  }
  textarea.champ__saisie { min-height: 160px; resize: vertical; }
  .champ__saisie:focus-visible { border-color: var(--sombre); }
  .champ__saisie[aria-invalid="true"] { border-color: var(--erreur); background: var(--erreur-fond); }
  .obligatoire { color: var(--erreur); }

  /* Champ piege : hors de l'ecran, jamais masque par display, que certains
     robots savent lire. */
  .champ-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  /* Emplacement du widget reCAPTCHA, que enterprise.js remplit d'apres sa
     classe g-recaptcha. */
  .g-recaptcha { max-width: 100%; overflow: hidden; }
  .g-recaptcha:empty { display: none; }

  .form-status {
    padding: 14px 16px;
    border-radius: var(--r-16);
    font-size: 18px;
    font-weight: 700;
    border: 2px solid;
  }
  .form-status ul { list-style: disc; padding-left: 1.2em; }
  .form-status--ok { background: var(--succes-fond); border-color: var(--succes); }
  .form-status--error { background: var(--erreur-fond); border-color: var(--erreur); }

  /* --- pied de page ---------------------------------------------------- */

  .pied { background: var(--sombre); color: #fff; }
  .pied__cadre {
    max-width: var(--largeur-large);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gouttiere) 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  .pied__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 40px 32px;
  }
  .pied__col { display: flex; flex-direction: column; gap: 12px; }
  .pied__col--liens { gap: 4px; }
  .pied__titre { font-size: 20px; }
  .pied__col--liens .pied__titre { margin-bottom: 8px; }
  .pied__texte { font-size: 18px; color: var(--clair-sur-sombre); }
  .pied__texte strong { color: #fff; }
  .pied .marque, .pied .marque:hover { color: #fff; }
  .pied .marque__nom { font-size: 21px; }
  .pied__tel {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .pied__tel:hover { color: #fff; text-decoration: underline; }
  .pied__lien {
    color: #fff;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 18px;
  }
  .pied__lien:hover { color: var(--cyan-clair); }
  .pied__courriel { color: #fff; }
  .pied__courriel:hover { color: var(--cyan-clair); }
  .pied__bas {
    border-top: 1px solid var(--filet-sombre);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pied__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .pied__legal .pied__lien { font-size: 17px; }
  .pied__bouton {
    padding: 0;
    border: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* --- barre d'appel mobile -------------------------------------------- */

  .barre-appel { display: none; }
  .barre-appel__espace { display: none; }

  @media (max-width: 1023.98px) {
    .barre-appel__espace { display: block; height: var(--h-barre-appel); }
    .barre-appel {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 40;
      display: flex;
      gap: 8px;
      align-items: stretch;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
      background: #fff;
      border-top: 1px solid var(--bordure);
      box-shadow: 0 -6px 24px rgba(46, 56, 68, .12);
    }
  }
  .barre-appel__tel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    border-radius: var(--pilule);
    background: var(--cta);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: clamp(16px, 4.4vw, 19px);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }
  .barre-appel__tel:hover { background: var(--cta-survol); color: #fff; }
  .barre-appel__rappel {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    min-width: 96px;
    padding: 0 14px;
    border-radius: var(--pilule);
    border: 2px solid var(--bordure-champ);
    background: #fff;
    color: var(--texte);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }
  .barre-appel__rappel:hover { background: var(--gris); color: var(--texte); }

  /* --- bandeau cookies ------------------------------------------------- */

  .cookies {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 45;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 20px));
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 18px 20px;
    border-radius: var(--r-24);
    border: 1px solid var(--bordure);
    background: #fff;
    box-shadow: var(--ombre-carte);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
  }
  @media (max-width: 1023.98px) {
    .cookies { bottom: calc(var(--h-barre-appel) + 10px); max-height: calc(100vh - var(--h-barre-appel) - 20px); }
  }
  .cookies__corps { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
  .cookies__titre { font-weight: 900; font-size: 18px; }
  .cookies__texte { font-size: 17px; line-height: 1.5; }
  .cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 380px; }
  .cookies__bouton {
    flex: 1 1 0;
    min-width: max-content;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--pilule);
    border: 2px solid var(--texte);
    background: #fff;
    color: var(--texte);
    font-weight: 900;
    font-size: 17px;
  }
  .cookies__bouton:hover { background: var(--ciel); }
  /* Refuser et accepter ont le meme poids : la meme regle, sans variante. */
  .cookies__bouton--choisir { border-color: var(--bordure); }
  .cookies__choix {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--bordure);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
  }
  .cookies__legende { float: left; width: 100%; padding: 0; font-weight: 900; font-size: 17px; }
  .cookies__case {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
  }
  .cookies__coche { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--cta); cursor: pointer; }
  .cookies__bouton--enregistrer { flex: 0 1 auto; margin-left: auto; background: var(--cta); border-color: var(--cta); color: #fff; }
  .cookies__bouton--enregistrer:hover { background: var(--cta-survol); border-color: var(--cta-survol); }
}

/* ---------------------------------------------------------------- pages */

@layer pages {
  /* Accueil : l'equipe en quelques chiffres. */
  .accueil-equipe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
  }
  .accueil-equipe__texte { display: flex; flex-direction: column; gap: 16px; }
  .accueil-equipe__faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
  .fait {
    padding: 20px;
    border-radius: var(--r-24);
    background: var(--gris);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .fait__valeur { font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--lien); }
  .fait__libelle { font-size: 17px; font-weight: 700; }

  /* Accueil et contact : l'atelier, son adresse et un plan stylise. */
  .atelier {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }
  .atelier__texte { display: flex; flex-direction: column; gap: 20px; }
  .atelier__plan {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    border-radius: var(--r-32);
    background: #fff;
    overflow: hidden;
    color: var(--texte);
    text-decoration: none;
    border: 2px solid transparent;
  }
  .atelier__plan:hover { border-color: var(--cta); color: var(--texte); }
  .atelier__plan-grille {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--gris-moyen) 2px, transparent 2px),
      linear-gradient(90deg, var(--gris-moyen) 2px, transparent 2px);
    background-size: 56px 56px;
    opacity: .7;
  }
  .atelier__plan-repere {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: var(--r-24);
    background: #fff;
    box-shadow: var(--ombre-carte);
    font-weight: 900;
    text-align: center;
  }
  .atelier__plan-repere svg { color: var(--rose); }

  /* Cartes Google : le plan stylise reste le contenu par defaut ; js/site.js
     le remplace par .carte__vue une fois l'accord donne. */
  .carte {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .carte-contact .carte { align-self: stretch; }
  /* Place du bouton sous le repere, seulement quand le bouton est la. */
  .carte:has(.carte__bouton:not([hidden])) .atelier__plan { padding-bottom: 80px; }
  .carte__bouton {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--pilule);
    border: 2px solid var(--texte);
    background: #fff;
    color: var(--texte);
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
  }
  .carte__bouton:hover { background: var(--ciel); }
  .carte__vue { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .carte__iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: var(--r-32);
    background: var(--gris-moyen);
  }
  .carte__itineraire { font-weight: 900; font-size: 17px; }

  /* Tarifs : deux publics, une seule grille. js/site.js ne fait que poser
     data-audience sur les conteneurs ; le masquage est ici. Sans
     JavaScript, les particuliers restent affiches. */
  [data-audience='part'] [data-audience-for='pro'],
  [data-audience='pro'] [data-audience-for='part'] { display: none; }

  /* Qui sommes-nous : les dates de l'histoire, reliees par un filet. */
  .chronologie { display: flex; flex-direction: column; gap: 0; }
  .chronologie__etape {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 24px;
  }
  .chronologie__etape:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--bordure);
  }
  .chronologie__annee {
    display: grid;
    place-items: center;
    width: 88px;
    height: 44px;
    border-radius: var(--pilule);
    background: var(--cyan);
    color: var(--sombre);
    font-weight: 900;
    font-size: 19px;
  }
  .chronologie__etape p { padding-top: 8px; }

  /* Contact : trois cartes, Appeler et Venir a gauche, Ecrire a droite. */
  .contact {
    display: grid;
    gap: 24px;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  }
  .contact__colonne { display: flex; flex-direction: column; gap: 24px; }
  .carte-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-28);
    background: var(--gris);
  }
  .carte-contact--formulaire { background: #fff; border: 2px solid var(--bordure); }
  .carte-contact--formulaire .formulaire { align-self: stretch; }
  .carte-contact .horaires { align-self: stretch; }
  .carte-contact .bouton { max-width: 100%; }
  /* Petits telephones : le numero tient sur une ligne dans la carte. */
  @media (max-width: 479.98px) {
    .carte-contact .bouton { padding: 0 16px; gap: 8px; font-size: 17px; }
  }
  .carte-contact__icone {
    width: 56px;
    height: 56px;
    border-radius: var(--pilule);
    display: grid;
    place-items: center;
  }
  .carte-contact__titre { font-size: var(--t-h2-petit); line-height: 1.2; }

  /* Tarifs : une seule colonne de lecture. L'interrupteur est emis par
     backend/src/publish.js dans la zone RATES:, apres les bandeaux fiscaux
     ecrits dans la page ; order le remonte sous l'intro, avant les bandeaux
     qui ne valent que pour un public. Les bandeaux n'ont rien de
     focalisable : l'ordre de tabulation ne change pas. */
  .tarifs {
    max-width: calc(980px + 2 * var(--gouttiere));
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .tarifs__intro { order: 1; font-size: 19px; max-width: 40em; }
  .tarifs .rates-audience { order: 2; }
  .tarifs .rates-flag { order: 3; }
  .tarifs .rates { order: 4; }
  .tarifs .rate-note--page { order: 5; }

  /* Interrupteur Particuliers / Professionnels : deux segments egaux dans
     une pilule, et une pastille qui coulisse derriere le segment actif. La
     pastille est un ::before deplace par transform, lu sur aria-pressed :
     c'est l'etat que le bouton annonce. */
  .rates-audience {
    position: relative;
    align-self: center;
    display: flex;
    width: min(100%, 460px);
    padding: 6px;
    border-radius: var(--pilule);
    background: var(--gris-moyen);
  }
  .rates-audience::before {
    content: '';
    position: absolute;
    inset: 6px auto 6px 6px;
    width: calc(50% - 6px);
    border-radius: var(--pilule);
    background: var(--cta);
    box-shadow: var(--ombre-cta);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .rates-audience:has(.rates-audience__btn:last-child[aria-pressed="true"])::before { transform: translateX(100%); }
  .rates-audience__btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--pilule);
    background: transparent;
    color: var(--texte);
    font-weight: 900;
    font-size: clamp(17px, 4.6vw, 19px);
    transition: color .28s;
  }
  .rates-audience__btn[aria-pressed="true"],
  .rates-audience__btn.is-active { color: #fff; }
  /* Sans :has(), la pastille ne suivrait pas : le fond passe sur le bouton. */
  @supports not selector(:has(*)) {
    .rates-audience::before { display: none; }
    .rates-audience__btn[aria-pressed="true"] { background: var(--cta); }
  }

  .rates-flag {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border-radius: var(--r-20);
    background: var(--ciel);
  }
  .rates-flag--pro { background: var(--rose-pale); }
  .rates-flag__title { font-weight: 900; font-size: 19px; }
  .rates-flag__text { font-size: 17px; }

  .rates { display: grid; gap: 24px; }
  .rate-list { display: flex; flex-direction: column; }

  /* Un bloc de tarifs est une carte ; ses lignes se lisent comme un devis :
     duree, libelle, prix, paiement. */
  .rate-group {
    border: 2px solid var(--bordure);
    border-radius: var(--r-28);
    background: #fff;
    overflow: hidden;
  }
  .rate-group__head { padding: 18px 24px; background: var(--gris); }
  /* publish.js ajoute la classe heading-4 de l'ancien gabarit au titre. */
  .rate-group__title.heading-4 { font-size: 23px; line-height: 1.2; }

  .rate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid var(--bordure);
  }
  .rate-row:first-child { border-top: 0; }
  .rate-row__duration {
    grid-column: 1;
    grid-row: 1;
    color: var(--lien);
    font-weight: 900;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
  }
  .rate-row__duration:empty { display: none; }
  .rate-row__label { grid-column: 1; font-size: 18px; line-height: 1.35; }
  .rate-row__price {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-weight: 900;
    font-size: 21px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  /* Rappel TTC colle au montant HT par publish.js : sur sa propre ligne. */
  .rate-row__price small {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--attenue);
  }
  .rate-row__action { grid-column: 2; justify-self: end; }
  .rate-row__action--none { display: none; }

  @media (min-width: 768px) {
    .rate-row {
      grid-template-columns: 4.5rem minmax(0, 1fr) auto 7.5rem;
      gap: 0 20px;
      min-height: 72px;
    }
    .rate-row__duration:empty { display: block; }
    .rate-row__duration { grid-row: 1; }
    .rate-row__label { grid-column: 2; grid-row: 1; }
    .rate-row__price { grid-column: 3; grid-row: 1; }
    .rate-row__action { grid-column: 4; grid-row: 1; }
  }

  .button-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid var(--cta);
    border-radius: var(--pilule);
    background: #fff;
    color: var(--lien);
    font-weight: 900;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
  }
  .button-pay:hover { background: var(--cta); color: #fff; }

  .rate-note {
    padding: 14px 24px;
    border-top: 1px solid var(--bordure);
    font-size: 16px;
    color: var(--attenue);
  }
  .tarifs .rate-note--page { padding: 0; border: 0; font-size: 17px; }
}
