/* Erylo — modèle « Sérénité » : styles du modèle (copie exacte du <style> de modeles/serenite.html),
   puis, en fin de fichier, les ajouts propres à la version PHP. */
    /* =========================================================
       Modèle « Sérénité » — variables
       ========================================================= */
    :root {
      /* Palette fixe du modèle */
      --mousse: #2F4A3A;        /* texte et titres */
      --sauge: #9DB39A;
      --brume: #E3EBE0;         /* fonds de sections */
      --blanc: #FFFFFF;
      --lin: #F7F6F1;           /* fond de page */
      --texte: var(--mousse);
      --texte-doux: #56695B;    /* texte secondaire (AA sur lin, blanc et brume) */
      --trait: #85A186;         /* dessin de feuille, contours d'arche */
      --ligne: #D8E1D4;         /* filets de séparation */
      --plan-fond: #EAF0E7;

      /* Teintes d'interface qui étaient écrites en dur (mêmes valeurs ;
         reliées aux couleurs du thérapeute plus bas, bloc [data-couleurs]) */
      --entete-fond: rgba(247, 246, 241, .94);      /* en-tête semi-transparent */
      --entete-fond-flou: rgba(247, 246, 241, .82); /* idem, avec flou d'arrière-plan */
      --barre-fond: rgba(247, 246, 241, .96);       /* barre des pages légales */
      --pied-fond: var(--mousse);                   /* pied de page (bloc foncé) */
      --pied-texte: #DCE5D9;
      --pied-lien: #FFFFFF;
      --pied-doux: #B8C7B6;                         /* crédit */
      --pied-filet: rgba(255, 255, 255, .14);
      --portrait-1: #EEF3EB;                        /* portrait sans photo (dégradé) */
      --portrait-2: #D3E0D0;
      --portrait-3: #B7CAB3;
      --carte-haut: #EEF3EB;                        /* bon cadeau dessiné (dégradé) */
      --carte-bas: #D3E0D0;
      --carte-ombre: rgba(47, 74, 58, .6);
      /* Plan d'accès dessiné */
      --plan-ilot: #DCE6D7;
      --plan-vert: #CADCC5;
      --plan-arbre: #B2C9AD;
      --plan-eau: #C3D7D2;
      --plan-rue: #FFFFFF;
      --plan-ombre: #2F4A3A;
      --plan-centre: #FFFFFF;
      /* Agenda (variables --ag-*) */
      --agenda-surface: #EEF3EC;
      --agenda-ligne: #D6E0D2;

      /* Couleur principale (modifiable depuis l'espace client) */
      --accent: #4E7356;
      --accent-ink: #FFFFFF;
      --accent-doux: #E5EDE3;   /* repli si color-mix n'est pas pris en charge */
      --accent-fonce: #3F5E46;
      --accent-texte: var(--accent);       /* accent en premier plan : icônes, focus, puces */
      --lien: var(--accent-fonce);         /* liens, numéros, années */
      --illu-fonce: var(--accent-fonce);   /* accent foncé des illustrations de la galerie */

      /* Typographie */
      --font-titres: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
      --font-texte: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
      --poids-titres: 600;      /* graisse des titres, pensée pour Cormorant */

      /* Mesures */
      --largeur: 1120px;
      --colonne: 38rem;
      --gouttiere: clamp(16px, 4vw, 40px);
      --section-y: clamp(72px, 10vw, 128px);
      --entete-h: 72px;
    }

    /* Teintes dérivées de --accent (suivent la couleur choisie) */
    @supports (color: color-mix(in srgb, red 50%, white)) {
      :root {
        --accent-doux: color-mix(in srgb, var(--accent) 12%, white);
        --accent-fonce: color-mix(in srgb, var(--accent) 82%, black);
      }
    }

    /* =========================================================
       Personnalisation : couleurs, police, taille (theme.js)
       ---------------------------------------------------------
       Quand le thérapeute choisit une ambiance ou ses propres
       couleurs, theme.js pose data-couleurs="clair|sombre" sur
       <html> et les jetons --p-* (contrastes déjà vérifiés).
       Chaque variable du modèle est reliée au jeton de son RÔLE.
       Sans data-couleurs : couleurs d'origine, inchangées.
       ========================================================= */
    :root[data-couleurs] {
      /* Fonds : trois tons de sections, comme à l'origine */
      --lin: var(--p-fond);              /* fond de page, carte du formulaire, pages légales */
      --blanc: var(--p-surface);         /* sections claires, cartes, champs, encoches du bon */
      --brume: var(--p-bande);           /* sections en alternance */
      --plan-fond: var(--p-bande);       /* fond du plan d'accès et des vignettes */

      /* Texte et filets */
      --mousse: var(--p-texte);          /* texte et titres (--texte en découle) */
      --texte-doux: var(--p-texte-doux);
      --ligne: var(--p-ligne);
      --champ-bord: var(--p-texte-doux); /* contour des champs : ≥ 3:1 assuré */
      --danger: var(--p-danger);         /* erreurs : jeton de theme.js, ≥ 4,6:1 sur fond, cartes et bandes */

      /* Accent */
      --accent: var(--p-accent);         /* boutons, bandeau, illustrations */
      --accent-ink: var(--p-accent-ink);
      --accent-doux: var(--p-accent-doux);
      --accent-fonce: var(--p-accent-fonce);   /* survol des boutons */
      --accent-texte: var(--p-accent-texte);   /* icônes, focus, repère du plan */
      --lien: var(--p-accent-texte);           /* liens, numéros, années */
      --illu-fonce: var(--p-accent-fonce);

      /* Décors au trait (feuilles, arches, frise) : accent adouci */
      --trait: var(--p-accent-texte);
      --sauge: var(--p-accent);          /* plus utilisée par le CSS ; gardée cohérente */

      /* Pied de page : bloc foncé */
      --pied-fond: var(--p-fonce);
      --pied-texte: var(--p-sur-fonce);
      --pied-lien: var(--p-sur-fonce);
      --pied-doux: var(--p-sur-fonce-doux);
      --pied-filet: var(--p-sur-fonce-doux);

      /* Fonds semi-transparents : repli opaque (voir @supports plus bas) */
      --entete-fond: var(--p-fond);
      --entete-fond-flou: var(--p-fond);
      --barre-fond: var(--p-fond);

      /* Portrait sans photo et bon cadeau : tons de la palette.
         Le bon porte du texte : son dégradé ne prend que des tons sur lesquels
         theme.js garantit le contraste du texte (surface, bande, fond, et leurs mélanges) */
      --portrait-1: var(--p-surface);
      --portrait-2: var(--p-bande);
      --portrait-3: var(--p-accent-doux);
      --carte-haut: var(--p-surface);
      --carte-bas: var(--p-bande);
      --carte-ombre: rgba(0, 0, 0, .3);

      /* Plan d'accès dessiné : rues stylisées aux tons de la palette */
      --plan-ilot: var(--p-fond);
      --plan-vert: var(--p-accent-doux);
      --plan-arbre: var(--p-accent-doux);
      --plan-eau: var(--p-ligne);
      --plan-rue: var(--p-surface);
      --plan-ombre: var(--p-texte);
      --plan-centre: var(--p-surface);

      /* Agenda (variables --ag-*) */
      --agenda-surface: var(--p-accent-doux);
      --agenda-ligne: var(--p-ligne);
    }

    /* Fonds sombres : ombres noires, rues claires, rouge d'erreur clair,
       contrôles de formulaire du navigateur en version sombre */
    :root[data-couleurs="sombre"] {
      color-scheme: dark;
      --carte-haut: var(--p-fond);       /* bon plus sombre que sa section, bas teinté */
      --carte-bas: var(--p-bande);
      --carte-ombre: rgba(0, 0, 0, .55);
      --plan-ombre: #000000;
      --plan-rue: var(--p-ligne);
    }

    /* Mélanges plus fins quand color-mix est pris en charge */
    @supports (color: color-mix(in srgb, red 50%, white)) {
      :root[data-couleurs] {
        --trait: color-mix(in srgb, var(--p-accent-texte) 68%, var(--p-fond));
        --sauge: color-mix(in srgb, var(--p-accent) 55%, var(--p-bande));
        --illu-fonce: color-mix(in srgb, var(--p-accent) 82%, black);  /* comme à l'origine */
        --pied-texte: color-mix(in srgb, var(--p-sur-fonce) 55%, var(--p-sur-fonce-doux));
        --pied-filet: color-mix(in srgb, var(--p-sur-fonce) 16%, transparent);
        --entete-fond: color-mix(in srgb, var(--p-fond) 94%, transparent);
        --entete-fond-flou: color-mix(in srgb, var(--p-fond) 82%, transparent);
        --barre-fond: color-mix(in srgb, var(--p-fond) 96%, transparent);
        --portrait-1: color-mix(in srgb, var(--p-accent) 4%, var(--p-surface));
        --portrait-2: color-mix(in srgb, var(--p-accent) 16%, var(--p-bande));
        --portrait-3: color-mix(in srgb, var(--p-accent) 30%, var(--p-bande));
        --carte-haut: color-mix(in srgb, var(--p-surface) 55%, var(--p-bande));
        --carte-ombre: color-mix(in srgb, var(--p-texte) 60%, transparent);
        /* plan : îlots tirés du texte ; parcs et rivière gardent un vert et un bleu
           de carte (mêmes teintes qu'à l'origine), fondus dans le fond du plan */
        --plan-ilot: color-mix(in srgb, var(--p-texte) 7%, var(--p-bande));
        --plan-vert: color-mix(in srgb, #7FAD76 30%, var(--p-bande));
        --plan-arbre: color-mix(in srgb, #7FAD76 50%, var(--p-bande));
        --plan-eau: color-mix(in srgb, #549096 26%, var(--p-bande));
      }
      /* Fonds sombres : portrait éclairé par le texte, l'accent seulement en
         touche (un accent chaud sur un fond froid tournerait au kaki) ;
         parcs et rivière un peu plus soutenus pour rester lisibles */
      :root[data-couleurs="sombre"] {
        --carte-ombre: rgba(0, 0, 0, .55);
        --portrait-1: color-mix(in srgb, var(--p-texte) 9%, var(--p-surface));
        --portrait-2: color-mix(in srgb, var(--p-texte) 4%, var(--p-bande));
        --portrait-3: color-mix(in srgb, var(--p-accent) 12%, var(--p-bande));
        --carte-haut: var(--p-fond);
        --plan-vert: color-mix(in srgb, #7FAD76 24%, var(--p-bande));
        --plan-arbre: color-mix(in srgb, #7FAD76 40%, var(--p-bande));
        --plan-eau: color-mix(in srgb, #549096 34%, var(--p-bande));
      }
    }

    /* Police choisie : titres et texte, graisse conseillée pour les titres,
       sans faux gras si la police n'a pas la graisse demandée */
    :root[data-police] {
      --font-titres: var(--p-police-titres);
      --font-texte: var(--p-police-texte);
      --poids-titres: var(--p-poids-titres);
      font-synthesis-weight: none;
    }
    /* Cormorant est très étroite : avec une autre police de titres, les liens
       de contact (colonne étroite à côté du formulaire) sont un peu plus petits
       pour que l'adresse e-mail tienne sur une ligne */
    :root[data-police]:not([data-police="elegante"]) .contact-lien {
      font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    }

    /* Texte agrandi (le modèle est en rem) */
    :root[data-taille="grande"] { font-size: 112.5%; }
    /* Les titres de section, déjà grands, ne grossissent pas sur petit écran
       (un mot long comme « Remboursement » déborderait à 320 px) ;
       un mot trop long pour la ligne est coupé plutôt que de déborder */
    :root[data-taille="grande"] .section-titre { font-size: clamp(1.87rem, 1.33rem + 2.2vw, 2.85rem); }
    :root[data-taille="grande"] :is(h1, h2, h3) { overflow-wrap: break-word; }
    /* En-tête : avec le texte agrandi, la navigation se replie plus tôt
       (sinon le nom passe sur deux lignes entre 880 et 1080 px) */
    @media (max-width: 1080px) {
      :root[data-taille="grande"] .nav { display: none; }
    }

    /* Fonds sombres : surface et bande y sont presque du même ton,
       les cartes posées sur une bande prennent un filet */
    :root[data-couleurs="sombre"] .parcours-faits li { border: 1px solid var(--ligne); }

    /* =========================================================
       Base
       ========================================================= */
    *, *::before, *::after { box-sizing: border-box; }

    html { -webkit-text-size-adjust: 100%; }
    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    body {
      margin: 0;
      background: var(--lin);
      color: var(--texte);
      font-family: var(--font-texte);
      font-size: 1.0625rem;
      line-height: 1.6;
    }

    img, svg { max-width: 100%; }
    [hidden] { display: none !important; }

    h1, h2, h3 {
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      line-height: 1.12;
      color: var(--mousse);
      margin: 0;
    }

    p { margin: 0 0 1em; }

    a { color: var(--accent-texte); text-underline-offset: 3px; }

    :focus-visible {
      outline: 2px solid var(--accent-texte);
      outline-offset: 3px;
      border-radius: 4px;
    }

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

    .saut {
      position: absolute;
      left: 16px;
      top: -100px;
      z-index: 20;
      padding: 10px 16px;
      background: var(--blanc);
      color: var(--mousse);
      border-radius: 8px;
    }
    .saut:focus { top: 12px; }

    /* =========================================================
       Boutons
       ========================================================= */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 12px 28px;
      border: 1px solid var(--accent);
      border-radius: 999px;
      background: var(--accent);
      color: var(--accent-ink);
      font-family: var(--font-texte);
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color .2s ease, border-color .2s ease;
    }
    .btn:hover {
      background: var(--accent-fonce);
      border-color: var(--accent-fonce);
    }
    .btn-petit {
      min-height: 42px;
      padding: 9px 20px;
      font-size: .9375rem;
    }
    .txt-court { display: none; }

    /* =========================================================
       En-tête
       ========================================================= */
    .entete {
      position: sticky;
      top: 0;
      z-index: 10;
      background: var(--entete-fond);
      border-bottom: 1px solid var(--ligne);
    }
    @supports (backdrop-filter: blur(6px)) {
      .entete { background: var(--entete-fond-flou); backdrop-filter: blur(10px); }
    }

    .entete-inner {
      display: flex;
      align-items: center;
      gap: 16px;
      min-height: var(--entete-h);
    }

    .marque {
      display: flex;
      flex-direction: column;
      min-width: 0;
      margin-right: auto;
      color: var(--mousse);
      text-decoration: none;
      line-height: 1.15;
    }
    .marque-nom {
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: 1.5rem;
    }
    .marque-metier {
      font-size: .8125rem;
      color: var(--texte-doux);
    }

    .nav ul {
      display: flex;
      gap: 28px;
      margin: 0 12px 0 0;
      padding: 0;
      list-style: none;
    }
    .nav a {
      color: var(--mousse);
      font-size: .9375rem;
      font-weight: 600;
      text-decoration: none;
    }
    .nav a:hover { color: var(--accent-texte); text-decoration: underline; }

    /* =========================================================
       Arche (idée visuelle du modèle) et feuille au trait
       ========================================================= */
    .arche {
      border-radius: 999px 999px 0 0;   /* haut en demi-cercle parfait */
      overflow: hidden;
    }

    .feuille {
      position: absolute;
      aspect-ratio: 92 / 342;
      width: auto;
      color: var(--trait);
      fill: none;
      stroke: currentColor;
      stroke-width: 1.25;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: none;
    }

    /* =========================================================
       Hero
       ========================================================= */
    .hero {
      padding-block: clamp(48px, 7vw, 88px) clamp(80px, 10vw, 120px);
      overflow-x: clip;   /* filet de sécurité pour le dessin de feuille */
      text-align: center;
      scroll-margin-top: var(--entete-h);
    }

    .hero-visuel {
      position: relative;
      width: clamp(190px, 58vw, 300px);
      margin: 14px auto clamp(40px, 5vw, 52px);
    }
    /* Contour d'arche concentrique, ouvert en bas */
    .hero-visuel::before {
      content: "";
      position: absolute;
      inset: -14px -14px 0 -14px;
      border: 1px solid var(--trait);
      border-bottom: 0;
      border-radius: 999px 999px 0 0;
      pointer-events: none;
    }

    .photo {
      position: relative;
      display: grid;
      place-items: center;
      aspect-ratio: 4 / 5;
      background: linear-gradient(180deg, var(--portrait-1) 0%, var(--portrait-2) 55%, var(--portrait-3) 100%);
    }
    .photo-initiales {
      margin-top: 22%;
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: clamp(3.25rem, 12vw, 4.5rem);
      letter-spacing: .04em;
      color: var(--mousse);
      opacity: .5;
    }
    .photo.has-photo .photo-initiales { display: none; }

    .feuille-hero {
      left: -24%;
      bottom: -2%;
      height: 66%;
      transform: rotate(-12deg);
      transform-origin: 50% 100%;
    }

    .hero-nom {
      font-size: clamp(2.6rem, 1.7rem + 3.8vw, 4.25rem);
    }
    .hero-metier {
      margin: 12px 0 0;
      color: var(--texte-doux);
    }
    .hero-accroche {
      max-width: 24ch;
      margin: 22px auto 36px;
      font-size: clamp(1.2rem, 1rem + .9vw, 1.5rem);
      line-height: 1.45;
    }

    /* =========================================================
       Sections communes
       ========================================================= */
    .section {
      padding-block: var(--section-y);
      scroll-margin-top: calc(var(--entete-h) - 1px);
    }
    .section-titre {
      text-align: center;
      font-size: clamp(2.1rem, 1.5rem + 2.2vw, 2.85rem);
    }
    .section-intro {
      max-width: 34rem;
      margin: 14px auto 0;
      text-align: center;
      color: var(--texte-doux);
    }

    /* =========================================================
       Approche
       ========================================================= */
    .approche { background: var(--blanc); }

    .approche-texte {
      max-width: var(--colonne);
      margin: 40px auto 0;
    }
    .approche-texte p { margin-bottom: 1.15em; }
    .approche-texte p:last-child { margin-bottom: 0; }

    .agrements {
      max-width: var(--colonne);
      margin: 44px auto 0;
      padding-top: 32px;
      border-top: 1px solid var(--ligne);
      text-align: center;
    }
    /* Masque le bloc si aucun agrément n'est affiché */
    .agrements:not(:has(.badge:not([hidden]))) { display: none; }

    .badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 0 0 14px;
      padding: 0;
      list-style: none;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px 8px 12px;
      border-radius: 999px;
      background: var(--accent-doux);
      color: var(--mousse);
      font-size: .9375rem;
      font-weight: 700;
    }
    .badge svg {
      flex: none;
      width: 18px;
      height: 18px;
      color: var(--accent-texte);
    }
    .agrements-note {
      margin: 0;
      font-size: .9375rem;
      color: var(--texte-doux);
    }

    /* =========================================================
       Séances et tarifs
       ========================================================= */
    .seances-liste {
      max-width: 46rem;
      margin: 48px auto 0;
      padding: 0;
      list-style: none;
      border-top: 1px solid var(--ligne);
    }
    .seance {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      column-gap: 24px;
      row-gap: 6px;
      padding: 28px 4px;
      border-bottom: 1px solid var(--ligne);
    }
    .seance > * { min-width: 0; }
    .seance-nom {
      font-size: 1.65rem;
      overflow-wrap: anywhere;
    }
    .seance-infos {
      grid-column: 2;
      grid-row: 1;
      align-self: baseline;
      margin: 0;
      text-align: right;
      white-space: nowrap;
    }
    .seance-duree { color: var(--texte-doux); }
    .seance-prix {
      margin-left: 16px;
      font-weight: 700;
    }
    .seance-desc {
      grid-column: 1 / -1;
      max-width: 36rem;
      margin: 0;
      color: var(--texte-doux);
    }

    /* =========================================================
       Rendez-vous (widget agenda habillé)
       ========================================================= */
    .rdv { background: var(--brume); }

    .rdv .agenda-embed {
      --ag-accent: var(--accent);
      --ag-accent-ink: var(--accent-ink);
      --ag-ink: var(--mousse);
      --ag-muted: var(--texte-doux);
      --ag-bg: var(--blanc);
      --ag-surface: var(--agenda-surface);
      --ag-line: var(--agenda-ligne);
      --ag-radius: 22px;
      --ag-font: var(--font-texte);
      max-width: 660px;
      margin: 44px auto 0;
    }
    /* Contournement : agenda.css laisse la case de consentement se faire écraser par le flex */
    .rdv .agenda-embed .ag-check input {
      flex: none;
      width: 18px;
      height: 18px;
      margin-top: 2px;
      accent-color: var(--accent);
    }

    /* =========================================================
       Cabinet
       ========================================================= */
    .cabinet { overflow-x: clip; }   /* filet de sécurité pour le dessin de feuille */

    .cabinet-grille {
      display: grid;
      justify-items: center;
      gap: 56px;
      margin-top: 52px;
    }
    .cabinet-grille > * { min-width: 0; }

    .plan-cadre {
      position: relative;
      width: min(100% - 56px, 300px);
    }
    .plan {
      aspect-ratio: 4 / 5;
      background: var(--plan-fond);
      outline: 1px solid var(--ligne);
      outline-offset: -1px;
    }
    .plan svg {
      display: block;
      width: 100%;
      height: 100%;
    }
    .plan-point { fill: var(--accent-texte); }
    .plan-halo { fill: var(--accent-texte); opacity: .16; }
    /* Teintes du plan (voir variables --plan-*) */
    .plan .pl-fond { fill: var(--plan-fond); }
    .plan .pl-ilots { fill: var(--plan-ilot); }
    .plan .pl-verts { fill: var(--plan-vert); }
    .plan .pl-arbres { fill: var(--plan-arbre); }
    .plan .pl-eau { stroke: var(--plan-eau); }
    .plan .pl-rues { stroke: var(--plan-rue); }
    .plan .pl-ombre { fill: var(--plan-ombre); }
    .plan .pl-centre { fill: var(--plan-centre); }

    .feuille-plan {
      right: -15%;
      bottom: -1%;
      height: 40%;
      transform: scaleX(-1) rotate(-10deg);
      transform-origin: 50% 100%;
    }

    .infos {
      width: 100%;
      max-width: 26rem;
      margin: 0;
    }
    .infos dt {
      margin-top: 26px;
      font-family: var(--font-titres);
      font-size: 1.4rem;
      font-weight: var(--poids-titres);
      line-height: 1.2;
    }
    .infos dt:first-child { margin-top: 0; }
    .infos dd { margin: 6px 0 0; }
    .infos dd p { margin: 0; }
    .infos .doux { color: var(--texte-doux); }

    /* =========================================================
       Contact
       ========================================================= */
    .contact {
      background: var(--blanc);
      text-align: center;
    }
    .contact-liens {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 18px 48px;
      margin: 36px 0 0;
      padding: 0;
      list-style: none;
    }
    .contact-liens li { min-width: 0; max-width: 100%; }
    .contact-lien {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      max-width: 100%;
      color: var(--mousse);
      font-family: var(--font-titres);
      font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
      font-weight: var(--poids-titres);
      text-decoration: none;
    }
    .contact-lien span { min-width: 0; overflow-wrap: anywhere; }
    .contact-lien:hover span { text-decoration: underline; text-decoration-thickness: 1px; }
    .contact-lien svg {
      flex: none;
      width: 22px;
      height: 22px;
      color: var(--accent-texte);
    }

    /* =========================================================
       Pied de page
       ========================================================= */
    .pied {
      padding-block: 40px;
      background: var(--pied-fond);
      color: var(--pied-texte);
      font-size: .9375rem;
    }
    .pied a { color: var(--pied-lien); }
    .pied :focus-visible { outline-color: var(--pied-lien); }
    .pied-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px 32px;
    }
    .pied p { margin: 0; }
    .pied-liens {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 22px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .pied-credit {
      flex-basis: 100%;
      padding-top: 18px;
      margin-top: 6px;
      border-top: 1px solid var(--pied-filet);
      font-size: .8125rem;
      color: var(--pied-doux);
    }
    .pied-credit a { color: inherit; }

    /* =========================================================
       Responsive
       ========================================================= */
    @media (min-width: 820px) {
      .cabinet-grille {
        grid-template-columns: 300px minmax(0, 26rem);
        justify-content: center;
        justify-items: stretch;
        align-items: center;
        gap: 80px;
      }
      .plan-cadre { width: 100%; }
    }

    @media (max-width: 880px) {
      .nav { display: none; }
    }

    @media (max-width: 819px) {
      .infos { text-align: center; }
    }

    @media (max-width: 560px) {
      /* Feuilles rapprochées des arches pour rester dans l'écran */
      .feuille-hero {
        left: -17%;
        height: 58%;
        transform: rotate(-6deg);
      }
      .plan-cadre { width: min(100% - 96px, 300px); }
      .feuille-plan {
        right: -12%;
        height: 38%;
        transform: scaleX(-1) rotate(-7deg);
      }
      .seance { grid-template-columns: minmax(0, 1fr); }
      .seance-infos {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
      }
    }

    @media (max-width: 420px) {
      .marque-nom { font-size: 1.25rem; }
      .btn-petit { padding: 8px 16px; }
      .txt-long { display: none; }
      .txt-court { display: inline; }
    }

    @media (max-width: 359px) {
      .entete-inner { gap: 10px; }
      .marque-nom { font-size: 1.125rem; }
      .btn-petit { min-height: 40px; padding: 7px 14px; font-size: .875rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      .btn { transition: none; }
    }

    /* =========================================================
       Modules (rubriques en option)
       ---------------------------------------------------------
       Chaque racine porte data-module="…" ; le script d'aperçu
       les affiche ou les masque (attribut hidden). Les fonds
       diffèrent toujours des sections voisines, quelle que soit
       la combinaison de modules affichés.
       ========================================================= */

    /* --- Message important ------------------------------------
       L'en-tête est en position: sticky : le bandeau, placé
       avant lui, défile simplement avec la page. */
    .module-bandeau {
      background: var(--accent);
      color: var(--accent-ink);
      font-size: .9375rem;
      line-height: 1.45;
    }
    .module-bandeau p {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 10px;
      margin: 0;
      padding-block: 10px;
    }
    .module-bandeau svg {
      flex: none;
      width: 18px;
      height: 18px;
      margin-top: 2px;
    }
    .module-bandeau span {
      min-width: 0;
      overflow-wrap: break-word;
    }

    /* --- Mon parcours ----------------------------------------- */
    .parcours { background: var(--brume); }

    .parcours-faits {
      display: grid;
      gap: 12px;
      max-width: 52rem;
      margin: 40px auto 0;
      padding: 0;
      list-style: none;
    }
    .parcours-faits li {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
      padding: 14px 20px 14px 14px;
      border-radius: 18px;
      background: var(--blanc);
      font-weight: 700;
      line-height: 1.35;
    }
    .fait-icone {
      flex: none;
      display: grid;
      place-items: center;
      width: 46px;
      height: 52px;
      padding-top: 5px;
      border-radius: 999px 999px 0 0;   /* petite arche, comme le portrait */
      background: var(--accent-doux);
      color: var(--accent-texte);
    }
    .fait-icone svg { width: 24px; height: 24px; }

    .parcours-liste {
      max-width: 40rem;
      margin: 56px auto 0;
      padding: 0;
      list-style: none;
    }
    .parcours-liste li {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      padding: 0 0 30px 34px;
    }
    .parcours-liste li:last-child { padding-bottom: 0; }
    /* Trait vertical d'un point au suivant */
    .parcours-liste li::before {
      content: "";
      position: absolute;
      left: 6px;
      top: 15px;
      bottom: -15px;
      width: 1px;
      background: var(--trait);
    }
    .parcours-liste li:last-child::before { display: none; }
    .parcours-liste li::after {
      content: "";
      position: absolute;
      left: 0;
      top: 9px;
      width: 13px;
      height: 13px;
      border: 2px solid var(--accent-texte);
      border-radius: 50%;
      background: var(--brume);
    }
    .parcours-liste [data-k="annee"] {
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: 1.5rem;
      line-height: 1.15;
      font-variant-numeric: lining-nums;
      color: var(--lien);
    }
    .parcours-liste [data-k="titre"] {
      margin-top: 2px;
      font-weight: 700;
      line-height: 1.4;
      overflow-wrap: break-word;
    }
    .parcours-liste [data-k="ecole"] {
      font-size: .9375rem;
      color: var(--texte-doux);
    }

    /* --- Remboursement ---------------------------------------- */
    .remboursement { background: var(--blanc); }

    .remb-agrements { margin-top: 32px; }
    .remb-agrements .badges { margin: 0; }
    .remb-agrements:not(:has(.badge:not([hidden]))) { display: none; }

    .remb-etapes {
      display: grid;
      gap: 28px;
      max-width: 30rem;
      margin: 52px auto 0;
      padding: 0;
      list-style: none;
    }
    .remb-etapes li {
      position: relative;
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr);
      column-gap: 18px;
      align-items: start;
    }
    .remb-num {
      grid-row: 1 / span 2;
      display: grid;
      place-items: center;
      width: 46px;
      height: 54px;
      padding-top: 6px;
      border-radius: 999px 999px 0 0;
      background: var(--accent-doux);
      color: var(--lien);
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: 1.75rem;
      line-height: 1;
      font-variant-numeric: lining-nums;
    }
    .remb-titre {
      margin-top: 4px;
      font-size: 1.5rem;
    }
    .remb-etapes p {
      margin: 6px 0 0;
      color: var(--texte-doux);
    }

    .remb-note {
      max-width: 36rem;
      margin: 52px auto 0;
      padding-top: 28px;
      border-top: 1px solid var(--ligne);
      font-size: .9375rem;
      color: var(--texte-doux);
      text-align: center;
    }
    .remb-note svg {
      display: inline-block;
      width: 18px;
      height: 18px;
      margin-right: 8px;
      vertical-align: -4px;
      color: var(--accent-texte);
    }

    /* --- Offrir une séance (bons cadeaux) --------------------- */
    .bons { background: var(--blanc); }

    .bons-grille {
      display: grid;
      justify-items: center;
      gap: 44px;
      margin-top: 52px;
      text-align: center;
    }
    .bons-grille > * { min-width: 0; }
    .bons-texte { max-width: 26rem; }
    .bons-texte p {
      margin-bottom: 28px;
      font-size: 1.125rem;
    }
    /* « Acheter un bon en ligne » (lien de paiement du thérapeute) à côté de la commande par e-mail */
    .bons-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
    .insecable { white-space: nowrap; }

    /* Bon cadeau dessiné (décoratif) */
    .bon-carte {
      position: relative;
      width: 100%;
      max-width: 420px;
      padding: 32px 34px 28px;
      border-radius: 20px;
      background: linear-gradient(160deg, var(--carte-haut) 0%, var(--carte-bas) 100%);
      color: var(--mousse);
      text-align: left;
      box-shadow: 0 26px 44px -30px var(--carte-ombre);
    }
    /* Cadre intérieur */
    .bon-carte::before {
      content: "";
      position: absolute;
      inset: 12px;
      border: 1px solid var(--trait);
      border-radius: 12px;
      opacity: .7;
      pointer-events: none;
    }
    .bon-deco {
      position: absolute;
      inset: 0;
      overflow: hidden;
      border-radius: inherit;
      pointer-events: none;
    }
    /* Encoches de ticket, à la couleur du fond de section */
    .bon-deco::before,
    .bon-deco::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 20px;
      height: 20px;
      margin-top: -10px;
      border-radius: 50%;
      background: var(--blanc);
    }
    .bon-deco::before { left: -10px; }
    .bon-deco::after { right: -10px; }
    /* Feuille au trait en haut à droite, au-dessus du filet pointillé */
    .bon-feuille {
      right: 9%;
      bottom: 30%;
      height: 70%;
      transform: scaleX(-1) rotate(-10deg);
      transform-origin: 50% 100%;
    }
    .bon-contenu { position: relative; }
    .bon-label {
      margin: 0;
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.6rem);
      line-height: 1;
    }
    .bon-seance {
      max-width: 13.5rem;
      margin: 12px 0 0;
      line-height: 1.45;
    }
    .bon-pied {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 2px 16px;
      margin: 24px 0 0;
      padding-top: 12px;
      border-top: 1px dashed var(--trait);
      font-size: .8125rem;
    }
    .bon-nom {
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: 1.2rem;
      line-height: 1.2;
    }
    .bon-validite {
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    /* --- Le cabinet en images --------------------------------- */
    .cabinet-images { background: var(--brume); }

    .galerie {
      display: grid;
      gap: 28px;
      max-width: 54rem;
      margin: 48px auto 0;
      padding: 0;
      list-style: none;
    }
    .galerie > li { min-width: 0; }
    .galerie figure { margin: 0; }
    .galerie-photo {
      display: block;
      aspect-ratio: 4 / 3;
      overflow: hidden;
      border-radius: 20px;
      background: var(--plan-fond) center / cover no-repeat;
    }
    .galerie-photo svg {
      display: block;
      width: 100%;
      height: 100%;
    }
    /* Une vraie photo (image de fond) remplace l'illustration */
    .galerie-photo.has-photo svg,
    .galerie-photo[style*="background-image"] svg { display: none; }
    .galerie-photo .gi-a { fill: var(--accent); }
    .galerie-photo .gi-f { fill: var(--illu-fonce); }
    .galerie figcaption {
      margin-top: 12px;
      font-family: var(--font-titres);
      font-weight: var(--poids-titres);
      font-size: 1.3rem;
      line-height: 1.25;
    }

    /* --- Modules : responsive --------------------------------- */
    @media (min-width: 560px) {
      .galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
      }
    }

    @media (min-width: 600px) {
      .parcours-liste { width: fit-content; }   /* frise centrée sur son contenu */
      .parcours-liste li {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        column-gap: 48px;
        padding-left: 0;
      }
      .parcours-liste li::before { left: calc(4.5rem + 24px); }
      .parcours-liste li::after { left: calc(4.5rem + 18px); }
      .parcours-liste [data-k="annee"] {
        grid-row: 1 / span 2;
        font-size: 1.75rem;
        line-height: 1;
        text-align: right;
      }
      .parcours-liste [data-k="titre"],
      .parcours-liste [data-k="ecole"] { grid-column: 2; }
    }

    @media (min-width: 720px) {
      .parcours-faits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
      }
      .parcours-faits li {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px 22px;
        text-align: center;
      }
    }

    @media (min-width: 760px) {
      .remb-etapes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
        max-width: 62rem;
      }
      .remb-etapes li {
        display: block;
        text-align: center;
      }
      .remb-num { margin: 0 auto 18px; }
      .remb-titre { margin-top: 0; }
      /* Filet reliant les étapes */
      .remb-etapes li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 30px;
        left: calc(50% + 40px);
        width: calc(100% - 40px);
        height: 1px;
        background: var(--ligne);
      }
    }

    @media (min-width: 820px) {
      .bons-grille {
        grid-template-columns: minmax(0, 420px) minmax(0, 24rem);
        justify-content: center;
        justify-items: stretch;
        align-items: center;
        gap: 72px;
        text-align: left;
      }
      .bon-carte { transform: rotate(-2deg); }
    }

    @media (max-width: 380px) {
      .bon-carte { padding: 28px 26px 24px; }
      .bon-pied { justify-content: flex-start; }
    }
      /* Fait « Agréée ASCA et RME » : suit les agréments cochés */
    .fait-agrement [data-show="asca"]:not([hidden]) + [data-show="rme"]:not([hidden])::before { content: " et "; }
    li:has(> .fait-agrement):not(:has([data-show]:not([hidden]))) { display: none; }

    /* =========================================================
       Pages légales, horaires, formulaire
       ========================================================= */
    :root {
      --danger: #A3352B;        /* messages d'erreur (AA sur blanc, lin et brume) */
      --champ-bord: #6E8771;    /* contour des champs (3:1 sur blanc et lin) */
    }

    /* Texte lu par les lecteurs d'écran seulement */
    .vh {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    /* --- Cabinet : plan d'accès ------------------------------- */
    .plan-bloc {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    .plan-lien {
      margin: 14px 0 0;
      font-size: .9375rem;
      font-weight: 700;
    }
    .plan-lien a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 44px;
      color: var(--lien);
    }
    .plan-lien svg { flex: none; width: 16px; height: 16px; }

    /* --- Cabinet : horaires ----------------------------------- */
    .horaires {
      max-width: 21rem;
      margin: 4px 0 0;
      padding: 0;
      list-style: none;
      font-variant-numeric: lining-nums tabular-nums;
    }
    .horaires li {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 6px 0;
      border-bottom: 1px solid var(--ligne);
    }
    .horaires li:last-child { border-bottom: 0; }
    .horaires [data-k="jour"] { font-weight: 600; }
    .horaires [data-k="heures"] { text-align: right; white-space: nowrap; }
    .horaires .ferme { color: var(--texte-doux); }
    .horaires .ferme [data-k="jour"] { font-weight: 400; }

    /* --- Cabinet : accès -------------------------------------- */
    .acces {
      display: grid;
      gap: 14px;
      margin: 10px 0 0;
      padding: 0;
      list-style: none;
    }
    .acces li {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }
    .acces-icone {
      flex: none;
      display: grid;
      place-items: center;
      width: 36px;
      height: 40px;
      padding-top: 4px;
      border-radius: 999px 999px 0 0;   /* petite arche, comme le portrait */
      background: var(--accent-doux);
      color: var(--accent-texte);
    }
    .acces-icone svg { width: 20px; height: 20px; }
    .acces [data-field] {
      min-width: 0;
      padding-top: 6px;
      line-height: 1.5;
    }

    @media (max-width: 819px) {
      .horaires { max-width: 19rem; margin-inline: auto; text-align: left; }
      .acces { justify-items: center; }
      .acces li {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-width: 22rem;
      }
      .acces [data-field] { padding-top: 0; }
    }

    /* --- Contact : coordonnées et formulaire ------------------ */
    .contact-grille {
      display: grid;
      gap: 40px;
      margin-top: 36px;
    }
    .contact-grille > * { min-width: 0; }
    .contact-grille .contact-liens { margin: 0; }
    /* Titre utile à côté du formulaire ; en colonne, l'intro de section suffit */
    .contact-coord-titre {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    .contact-form {
      container-type: inline-size;
      width: 100%;
      max-width: 36rem;
      margin-inline: auto;
      padding: clamp(22px, 5vw, 40px);
      border: 1px solid var(--ligne);
      border-radius: 22px;
      background: var(--lin);
      text-align: left;
    }
    .contact-form-titre {
      margin-bottom: 22px;
      font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem);
      line-height: 1.2;
    }

    .form-contact {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
    }
    .form-contact > * { min-width: 0; margin: 0; }
    .fc-champ label {
      display: block;
      margin-bottom: 6px;
      font-size: .9375rem;
      font-weight: 700;
    }
    .fc-champ label span { font-weight: 400; color: var(--texte-doux); }
    .fc-champ input,
    .fc-champ textarea {
      display: block;
      width: 100%;
      min-height: 48px;
      margin: 0;
      padding: 11px 16px;
      border: 1px solid var(--champ-bord);
      border-radius: 14px;
      background: var(--blanc);
      color: var(--mousse);
      font: inherit;
      font-size: 1rem;
      line-height: 1.5;
    }
    .fc-champ textarea { min-height: 140px; resize: vertical; }
    .fc-champ input:focus-visible,
    .fc-champ textarea:focus-visible {
      border-color: var(--accent-texte);
      border-radius: 14px;
      outline: 2px solid var(--accent-texte);
      outline-offset: 2px;
    }
    .fc-champ [aria-invalid="true"] {
      border-color: var(--danger);
      box-shadow: inset 0 0 0 1px var(--danger);
    }
    .fc-erreur {
      margin: 6px 0 0;
      color: var(--danger);
      font-size: .9375rem;
      font-weight: 600;
      line-height: 1.4;
    }
    .form-contact > .fc-erreur { margin-top: -8px; }   /* sous la case à cocher */

    .fc-case {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: .9375rem;
      line-height: 1.5;
      cursor: pointer;
    }
    .fc-case input {
      flex: none;
      width: 20px;
      height: 20px;
      margin: 1px 0 0;
      accent-color: var(--accent);
      cursor: pointer;
    }
    .fc-case a { color: var(--lien); }

    .form-contact .btn {
      justify-self: start;
      margin-top: 4px;
      cursor: pointer;
    }
    .fc-envoye {
      padding: 14px 18px;
      border-left: 3px solid var(--accent-texte);
      border-radius: 0 14px 14px 0;
      background: var(--accent-doux);
      color: var(--mousse);
      font-weight: 600;
    }

    /* Nom et prénom sur toute la largeur, e-mail et téléphone côte à côte */
    @container (min-width: 460px) {
      .form-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
      }
      .form-contact > * { grid-column: 1 / -1; }
      .form-contact > .fc-champ:has(#fc-email),
      .form-contact > .fc-champ:has(#fc-tel) { grid-column: auto; }
    }

    @media (min-width: 900px) {
      .contact-grille {
        grid-template-columns: minmax(0, 19rem) minmax(0, 36rem);
        justify-content: center;
        align-items: start;
        gap: 72px;
        margin-top: 56px;
        text-align: left;
      }
      /* Aligné sur le titre du formulaire (bordure + marge intérieure de la carte) */
      .contact-coord { padding-top: 41px; }
      .contact-coord-titre {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        margin-bottom: 26px;
        padding-bottom: 22px;
        border-bottom: 1px solid var(--ligne);
        font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem);
        line-height: 1.2;
      }
      .contact-grille .contact-liens {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }
      .contact-form { margin-inline: 0; }
    }

    /* --- Pages légales : surcouche plein écran (:target) ------
       En PHP, pages séparées : ces règles ne servent qu'à la maquette. */
    .page-legale { display: none; }
    .page-legale:target {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 100;
      overflow: auto;
      overscroll-behavior: contain;
      background: var(--lin);
    }
    /* La page du dessous ne défile pas pendant la lecture */
    html:has(.page-legale:target),
    html:has(.page-legale:target) body { overflow: hidden; }

    .page-legale-col {
      max-width: calc(70ch + 2 * var(--gouttiere));
      margin-inline: auto;
      padding-inline: var(--gouttiere);
    }
    .page-legale-barre {
      position: sticky;
      top: 0;
      z-index: 1;
      border-bottom: 1px solid var(--ligne);
      background: var(--barre-fond);
    }
    .page-legale-barre .page-legale-col {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: var(--entete-h);
    }
    .page-legale-retour {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      color: var(--lien);
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }
    .page-legale-retour:hover { text-decoration: underline; }
    .page-legale-retour svg { flex: none; width: 20px; height: 20px; }
    .page-legale-nom {
      min-width: 0;
      overflow: hidden;
      font-family: var(--font-titres);
      font-size: 1.3rem;
      font-weight: var(--poids-titres);
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--mousse);
    }

    .page-legale-texte {
      padding-block: clamp(40px, 7vw, 72px) clamp(64px, 9vw, 112px);
      line-height: 1.65;
    }
    .page-legale-texte h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 2.9rem); }
    .page-legale-texte h3 {
      margin: 2em 0 .45em;
      font-size: 1.55rem;
    }
    .page-legale-texte h2 + h3 { margin-top: 1.3em; }
    .page-legale-texte h4 {
      margin: 1.4em 0 .3em;
      font-family: var(--font-texte);
      font-size: 1.0625rem;
      font-weight: 700;
      line-height: 1.4;
      color: var(--mousse);
    }
    .page-legale-texte h3 + h4 { margin-top: .5em; }
    .page-legale-texte ul { margin: 0 0 1em; padding-left: 1.25em; }
    .page-legale-texte li + li { margin-top: .25em; }
    .page-legale-texte li::marker { color: var(--accent-texte); }
    .page-legale-texte a { color: var(--lien); overflow-wrap: anywhere; }
    .page-legale-chapeau {
      margin-top: 18px;
      font-size: 1.125rem;
      color: var(--texte-doux);
    }
    .page-legale-maj {
      margin: 48px 0 0;
      padding-top: 20px;
      border-top: 1px solid var(--ligne);
      font-size: .9375rem;
      color: var(--texte-doux);
    }
    /* Bloc « Agréments » masqué si aucun agrément n'est affiché */
    .legale-agrements:not(:has(li:not([hidden]))) { display: none; }

    @media (max-width: 420px) {
      .page-legale-nom { display: none; }
    }

/* ---------------------------------------------------------
   Logo à côté du nom (facultatif) — posé par apercu.js / assets/js/logo.js
   data-logo : logo présent (+ --logo-ratio, largeur / hauteur de l'image)
   data-logo-seul : le logo contient déjà le nom (le nom reste dans la page
   pour Google et les lecteurs d'écran)
   data-logo-pastille + --logo-pastille : fond derrière un logo qui se verrait mal
   Le logo est placé à gauche du nom sans toucher à la mise en page du nom.
   --------------------------------------------------------- */
:root { --logo-h: 44px; --logo-max: 180px; --logo-gap: .75em; }
:root[data-logo] { --logo-w: min(calc(var(--logo-h) * var(--logo-ratio, 1)), var(--logo-max)); }
.logo-site { display: block; flex: none; width: var(--logo-w, auto); height: var(--logo-h); object-fit: contain; object-position: left center; }
:root[data-logo]:not([data-logo-seul]) [data-marque] { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: var(--logo-h); padding-left: calc(var(--logo-w) + var(--logo-gap)); }
:root[data-logo]:not([data-logo-seul]) [data-marque] > .logo-site { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
:root[data-logo-seul] [data-marque] { display: flex; align-items: center; }
:root[data-logo-seul] [data-marque] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-logo-seul] { --logo-h: 52px; --logo-max: 220px; }
:root[data-logo-pastille] .logo-site { box-sizing: content-box; padding: 5px 9px; border-radius: 10px; background: var(--logo-pastille); }
:root[data-logo-pastille]:not([data-logo-seul]) [data-marque] { min-height: calc(var(--logo-h) + 10px); padding-left: calc(var(--logo-w) + 18px + var(--logo-gap)); }
@media (max-width: 600px) {
  :root { --logo-h: 36px; --logo-max: 30vw; }
  :root[data-logo-seul] { --logo-h: 42px; --logo-max: 52vw; }
}
/* très petit écran : à côté d'un logo, on garde le nom et on retire le métier */
@media (max-width: 420px) {
  :root[data-logo]:not([data-logo-seul]) [data-marque] > span + span { display: none; }
}
/* téléphone : un logo très en largeur (data-logo-large, plus de 2 fois plus large que haut) s'affiche seul */
@media (max-width: 480px) {
  :root[data-logo-large] { --logo-h: 40px; --logo-max: 52vw; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] { display: flex; align-items: center; min-height: 0; padding-left: 0; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] > .logo-site { position: static; transform: none; }
  :root[data-logo-large]:not([data-logo-seul]) [data-marque] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   Version PHP — ajouts (site en ligne : rubriques sans contenu
   retirées, agenda réel, rendez-vous sans agenda en ligne)
   ========================================================= */
/* Nom long ou texte agrandi : un lien du menu ne se coupe pas en deux lignes */
.nav a { white-space: nowrap; }

/* Accueil sans métier ni accroche : le bouton garde son espace sous le nom */
.hero-nom + .btn,
.hero-metier + .btn { margin-top: 32px; }

/* Séance sans durée : le prix ne garde pas son retrait */
.seance-duree:empty + .seance-prix,
.seance-infos > .seance-prix:first-child { margin-left: 0; }

/* Approche sans texte : les agréments viennent juste sous le titre */
.section-titre + .agrements {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}

/* Deux sections claires qui se suivent (rubriques retirées) : un filet les sépare */
.approche + .remboursement,
.bons + .contact { border-top: 1px solid var(--ligne); }

/* Agenda réel : iframe dans la page, ou bouton vers le service */
.rdv-agenda {
  max-width: 660px;
  margin: 44px auto 0;
  text-align: center;
}
.rdv-agenda-page { max-width: 760px; }
.rdv .agenda-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.rdv .agenda-bouton:hover {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
}

/* Sans agenda en ligne : appeler ou écrire.
   En aperçu, ce bloc ne se montre que si la rubrique agenda est masquée. */
.rdv[data-show="agenda"]:not([hidden]) + .rdv-repli { display: none; }
.rdv-repli-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin: 36px 0 0;
}
.btn-second {
  background: transparent;
  border-color: var(--accent-texte);
  color: var(--lien);
}
.btn-second:hover {
  background: var(--accent-doux);
  border-color: var(--accent-texte);
}

/* Mon parcours avec un ou deux faits seulement : centrés */
@media (min-width: 720px) {
  .parcours-faits.parcours-faits-1 { grid-template-columns: minmax(0, 1fr); max-width: 17rem; }
  .parcours-faits.parcours-faits-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 35rem; }
}

/* Cabinet sans adresse (pas de plan) : les informations seules, centrées */
@media (min-width: 820px) {
  .cabinet-grille.cabinet-grille-infos { grid-template-columns: minmax(0, 26rem); }
}

/* Contact sans téléphone ni e-mail : le formulaire seul, centré */
@media (min-width: 900px) {
  .contact-grille.contact-grille-form { grid-template-columns: minmax(0, 36rem); }
  .contact-grille-form .contact-form { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rdv .agenda-bouton { transition: none; }
}

/* Paiement et annulation, sous les tarifs (contenu « conditions », PHP) */
.seances-conditions { margin: 28px auto 0; max-width: 60ch; text-align: center; font-size: .95rem; color: var(--texte-doux); }

/* =========================================================
   Animations (mécanisme commun : defilement.css et defilement.js ; README, « Animations »)
   Sérénité : tout arrive lentement, en fondu ; la feuille au trait se dessine
   (haut de page, plan du cabinet avec ses rues, bon cadeau). Rien ne bouge avec
   <html data-animations="non"> ni si le visiteur demande moins d'animations.
   ========================================================= */
.defilement [data-reveal] {
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--rang, 0) * 150ms + var(--delai, 0ms));
}
.defilement [data-reveal="monte"] { transform: translateY(18px); }
/* Traits qui se dessinent : lentement */
.defilement [data-reveal="trace"] :is(path, line, polyline, circle, ellipse, rect) {
  transition-duration: 3.2s;
  transition-timing-function: cubic-bezier(.45, .05, .25, 1);
}
/* Feuille : la tige pousse d'abord, puis les feuilles, du bas vers le haut */
.feuille path:nth-child(2), .feuille path:nth-child(3) { --pousse: .35s; }
.feuille path:nth-child(4), .feuille path:nth-child(5) { --pousse: .6s; }
.feuille path:nth-child(6), .feuille path:nth-child(7) { --pousse: .85s; }
.feuille path:nth-child(8), .feuille path:nth-child(9) { --pousse: 1.1s; }
.feuille path:nth-child(10), .feuille path:nth-child(11) { --pousse: 1.35s; }
.feuille path:nth-child(12), .feuille path:nth-child(13) { --pousse: 1.6s; }
.feuille path:nth-child(14), .feuille path:nth-child(15) { --pousse: 1.85s; }
.defilement [data-reveal="trace"].vu .feuille path { transition-delay: calc(var(--delai, 0ms) + .5s + var(--pousse, 0s)); }

/* Haut de page : entrée douce au chargement, une seule fois */
@media (prefers-reduced-motion: no-preference) {
  .hero .photo { animation: s-entree 1.6s cubic-bezier(.22, .61, .36, 1) backwards; }
  .hero .feuille-hero path { animation: s-feuille 3.6s cubic-bezier(.45, .05, .25, 1) backwards; animation-delay: calc(.3s + var(--pousse, 0s)); }
  .hero-nom { animation: s-leve 1.4s cubic-bezier(.22, .61, .36, 1) .2s backwards; }
  .hero-metier { animation: s-leve 1.4s cubic-bezier(.22, .61, .36, 1) .35s backwards; }
  .hero-accroche { animation: s-leve 1.4s cubic-bezier(.22, .61, .36, 1) .5s backwards; }
  .hero .btn { animation: s-leve 1.4s cubic-bezier(.22, .61, .36, 1) .65s backwards; }
}
@keyframes s-entree { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes s-leve { from { opacity: 0; transform: translateY(14px); } }
/* Feuille du haut (tracés à épaisseur fixe : longueurs à l'écran, 420 px suffisent) */
@keyframes s-feuille {
  from { stroke-dasharray: 420px; stroke-dashoffset: 420px; }
  to { stroke-dasharray: 420px; stroke-dashoffset: 0; }
}

/* =========================================================
   Titre du site = l'enseigne du cabinet (1.9.0, <html data-titre-enseigne>) :
   le nom de la personne reste sous le titre du haut de page (.hero-sous-titre,
   data-field="sous-titre", caché quand vide) ; mentions légales : ligne « enseigne »
   ========================================================= */
.hero-sous-titre {
  margin: 14px 0 0;
  font-family: var(--font-titres);
  font-weight: var(--poids-titres);
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  line-height: 1.2;
  color: var(--mousse);
  overflow-wrap: anywhere;
}
.hero-sous-titre + .hero-metier { margin-top: 6px; }
.hero-sous-titre + .btn { margin-top: 32px; }
:root[data-titre-enseigne] .hero-nom { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); overflow-wrap: anywhere; }   /* une enseigne est plus longue qu'un nom */
@media (prefers-reduced-motion: no-preference) {
  .hero-sous-titre { animation: s-leve 1.4s cubic-bezier(.22, .61, .36, 1) .3s backwards; }
}

/* ==================== 1.12.0 : rubrique « Avis de patients » (début) ====================
   Section « Ce qu'en disent mes patients » (vues/sites/serenite.php, données communes vues/sites/_avis.php).
   Couleurs : variables du modèle (reliées aux jetons --p-* : ambiances claires et sombres). */
/* Liste des avis : ul > li[data-item] (data-en-avant) > figure > blockquote > p[data-k="texte"] + figcaption[data-k="auteur"] */
.avis-liste { list-style: none; margin: 0; padding: 0; }
.avis-item { flex: 1 1 var(--avis-base, 17rem); min-width: 0; }
.avis-carte { margin: 0; height: 100%; }
.avis-texte { margin: 0; }
.avis-texte p { margin: 0; overflow-wrap: break-word; }
.avis-auteur { margin: 0; }
.avis-google { margin: 0; }
.avis-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sérénité : cartes en arche, comme le portrait ; citation en Cormorant, auteur en petites capitales */
.avis { background: var(--lin); border-top: 1px solid var(--ligne); }
.avis-liste {
  display: flex; flex-wrap: wrap; gap: 24px; max-width: 62rem; margin: 52px auto 0; --avis-base: 17rem;
}
.avis-carte {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 70px 28px 28px; text-align: center;
  border-radius: 50% 50% 22px 22px / 120px 120px 22px 22px;
  background: var(--blanc);
  box-shadow: 0 18px 40px -30px var(--carte-ombre);
}
.avis-carte::before {
  content: "\201C" / ""; position: absolute; top: 18px; left: 50%; translate: -50% 0;
  font: var(--poids-titres) 4rem/1 var(--font-titres); color: var(--accent-texte); opacity: .55;
}
.avis-texte p { font-family: var(--font-titres); font-weight: var(--poids-titres); font-size: 1.3rem; line-height: 1.35; font-style: italic; }
.avis-auteur { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.avis-auteur::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 12px; background: var(--trait); }
.avis-liste { justify-content: center; }
.avis-item:not([data-en-avant]) { max-width: 23rem; }
.avis-item[data-en-avant] { flex-basis: 100%; }
.avis-item[data-en-avant] .avis-carte { padding-inline: clamp(28px, 8vw, 110px); background: var(--brume); box-shadow: none; border-radius: 50% 50% 22px 22px / 90px 90px 22px 22px; }
.avis-item[data-en-avant] .avis-texte p { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); }
.avis-vide { max-width: 32rem; margin: 40px auto 0; padding: 18px 22px; border: 1.5px dashed var(--ligne); border-radius: 18px; text-align: center; color: var(--texte-doux); }
.avis-google { margin-top: 40px; text-align: center; }
:root[data-couleurs="sombre"] .avis-carte { border: 1px solid var(--ligne); }
/* ==================== 1.12.0 : rubrique « Avis de patients » (fin) ==================== */
