/* ============================================================
   CABINET NAIMA OUIKHLEF — MÉDECINE TRADITIONNELLE CHINOISE
   Feuille de style unique du site.

   SOMMAIRE
   1. Tokens (couleurs, typo, espacements)
   2. Base & reset
   3. Composants communs (header, footer, boutons, logo)
   4. Sections de page (hero, cartes, étapes, bandeau CTA)
   5. Pages spécifiques (soins, tarifs, contact, formulaire)
   6. Utilitaires & accessibilité

   CONVENTIONS
   - Mobile-first : les media queries élargissent, jamais l'inverse.
   - Nommage : .bloc, .bloc-element (tirets, pas de camelCase).
   - Toute couleur/espacement vient d'un token : ne jamais coder
     une valeur en dur dans une règle.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Couleurs — recalibrées sur le logo officiel du cabinet :
     cercle pinceau terracotta, caractères cinabre, branche olivier. */
  --papier:       #FAF9F5;  /* fond général, papier de riz */
  --papier-2:     #F2F0E9;  /* surface légèrement plus soutenue */
  --encre:        #241C18;  /* texte principal, brun encre chaud */
  --encre-douce:  #3A332E;  /* encre adoucie : fonds sombres (footer, bandeau) */
  --brume:        #7A6F68;  /* texte secondaire, brun-gris doux */
  --terracotta:   #C97A55;  /* accent principal : trait du cercle du logo */
  --terracotta-f: #A85F3E;  /* hover des boutons, plus soutenu */
  --terracotta-p: #F3E4DB;  /* surfaces douces, panneaux */
  --cinabre:      #B3402A;  /* rouge des caractères et du nom "Naïma" */
  --olivier:      #7C7A4E;  /* vert doux de la branche du logo */
  --olivier-pale: #E9E8DC;  /* surfaces douces à base d'olivier */
  --trait:        #E4D9CE;  /* bordures fines, ton chaud */

  /* Alias de compatibilité (ancien nom "jade" -> nouvel accent terracotta).
     Permet de ne pas tout renommer dans le reste de la feuille de style. */
  --jade:        var(--terracotta);
  --jade-fonce:  var(--terracotta-f);
  --jade-pale:   var(--terracotta-p);

  /* Typographie */
  --font-titre:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-texte:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle de taille (mobile ; agrandie en desktop via clamp) */
  --t-hero:   clamp(2.4rem, 6vw, 4.2rem);
  --t-h2:     clamp(1.8rem, 4vw, 2.6rem);
  --t-h3:     1.35rem;
  --t-body:   1.0625rem;   /* 17px : confort de lecture */
  --t-small:  0.875rem;

  /* Espacements */
  --esp-1: 0.5rem;
  --esp-2: 1rem;
  --esp-3: 1.5rem;
  --esp-4: 2.5rem;
  --esp-5: 4rem;
  --esp-6: 6rem;

  /* Divers */
  --rayon: 6px;
  --largeur-max: 1120px;
  --transition: 180ms ease;
}

/* ------------------------------------------------------------
   2. BASE & RESET
   ------------------------------------------------------------ */

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

/* [hidden] doit toujours l'emporter, quel que soit le display du
   composant. Sans le !important, un simple "display: flex" ou
   "display: grid" sur la classe de l'element (meme specificite que
   la regle native [hidden]{display:none}, chargee apres elle) suffit
   a le laisser visible malgre l'attribut hidden — piege rencontre
   deux fois sur la page admin (.formulaire, puis .admin-barre). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-texte);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--esp-2);
}
h1 { font-size: var(--t-hero); letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-family: var(--font-texte); font-weight: 600; }

p { margin: 0 0 var(--esp-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jade-fonce); }

img { max-width: 100%; display: block; }

.conteneur {
  width: min(100% - 2.5rem, var(--largeur-max));
  margin-inline: auto;
}

/* ------------------------------------------------------------
   3. COMPOSANTS COMMUNS
   ------------------------------------------------------------ */

/* --- Le logo (image officielle du cabinet) -------------------
   Remplace l'ancien sceau typographique par le vrai logo transmis
   par la praticienne : cercle pinceau terracotta, caractères 中医
   en cinabre, branche olivier. Deux tailles : header (compact) et
   pied de page (identique, mais peut être agrandi si besoin).    */
.logo {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex: none;
}
.logo-grand {
  width: 4.5rem;
  height: 4.5rem;
}

/* --- En-tête ------------------------------------------------ */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.entete-barre {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  padding-block: 0.85rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--encre);
  margin-right: auto;
}
.marque-nom { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.marque-sous {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brume);
}

/* Navigation : cachée en mobile derrière un bouton */
.nav-bouton {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-bouton span {
  width: 22px; height: 2px;
  background: var(--encre);
  transition: transform var(--transition), opacity var(--transition);
}
.nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
  padding: var(--esp-2) 0 var(--esp-3);
}
.nav.ouverte { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
  width: min(100% - 2.5rem, var(--largeur-max));
  margin-inline: auto;
}
.nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
}
.nav a[aria-current="page"] { color: var(--jade); }
.nav a:hover { color: var(--jade); }

@media (min-width: 900px) {
  .nav-bouton { display: none; }
  .nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav ul { flex-direction: row; align-items: center; gap: var(--esp-3); width: auto; }
  .nav a { padding: 0.25rem 0; font-size: 0.95rem; }
}

/* --- Boutons ------------------------------------------------ */
.bouton {
  display: inline-block;
  background: var(--jade);
  color: var(--papier);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--rayon);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.bouton:hover { background: var(--jade-fonce); color: var(--papier); }
.bouton:active { transform: translateY(1px); }
.bouton-secondaire {
  background: transparent;
  color: var(--encre);
  border: 1px solid var(--trait);
}
.bouton-secondaire:hover { background: var(--papier-2); color: var(--encre); }

/* --- Eyebrow (petit sur-titre de section) ------------------- */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: var(--esp-2);
}

/* --- Sections ------------------------------------------------ */
.section { padding-block: var(--esp-5); }
@media (min-width: 900px) { .section { padding-block: var(--esp-6); } }
.section-douce { background: var(--jade-pale); }
.section-tete { max-width: 640px; margin-bottom: var(--esp-4); }

/* --- Pied de page ------------------------------------------- */
.pied {
  background: var(--encre-douce);
  color: var(--papier);
  padding-block: var(--esp-5) var(--esp-3);
  margin-top: var(--esp-5);
}
.pied a { color: var(--papier); }
.pied a:hover { color: var(--jade-pale); }
.pied-suivre {
  margin: 1.75rem 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .7;
}
.pied-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--papier) 35%, transparent);
  border-radius: 50%;
  opacity: .9;
}
.pied-instagram:hover { opacity: 1; border-color: var(--jade-pale); }
.pied-instagram svg { width: 26px; height: 26px; }
.pied-grille {
  display: grid;
  gap: var(--esp-4);
  margin-bottom: var(--esp-4);
}
@media (min-width: 700px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h3 { color: var(--papier); font-size: 1rem; margin-bottom: var(--esp-2); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pied-note {
  border-top: 1px solid color-mix(in srgb, var(--papier) 20%, transparent);
  padding-top: var(--esp-3);
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--papier) 70%, transparent);
}

/* ------------------------------------------------------------
   4. SECTIONS DE PAGE
   ------------------------------------------------------------ */

/* --- Hero (accueil) ------------------------------------------
   Deux colonnes en desktop : le texte, et le "rouleau" — un
   panneau vertical portant un aphorisme classique en colonne,
   comme un rouleau suspendu de calligraphie.                  */
.hero { padding-block: var(--esp-5); }
.hero-grille { display: grid; gap: var(--esp-4); align-items: stretch; }
@media (min-width: 900px) {
  .hero { padding-block: var(--esp-6); }
  .hero-grille { grid-template-columns: 1.5fr 1fr; }
}
.hero-texte p.grande {
  font-size: 1.2rem;
  color: var(--brume);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--esp-2); margin-top: var(--esp-3); }

.rouleau {
  background: var(--jade-pale);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: var(--esp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-3);
  min-height: 320px;
}
.rouleau-calligraphie {
  writing-mode: vertical-rl;
  font-family: var(--font-titre);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.35em;
  color: var(--encre);
}
.rouleau-traduction {
  font-size: var(--t-small);
  color: var(--brume);
  text-align: center;
  font-style: italic;
  max-width: 22ch;
}

/* --- Cartes de soins ----------------------------------------
   Chaque soin porte son caractère chinois en grand glyphe
   discret : structure signifiante, pas décorative.           */
.grille-soins {
  display: grid;
  gap: var(--esp-2);
}
@media (min-width: 640px)  { .grille-soins { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-soins { grid-template-columns: repeat(3, 1fr); } }
/* Variante : la grille des 4 prestations reste en 2x2 en desktop */
@media (min-width: 1000px) { .grille-prestations { grid-template-columns: repeat(2, 1fr); } }

.carte-soin {
  position: relative;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: var(--esp-3);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.carte-soin:hover { border-color: var(--jade); transform: translateY(-2px); }
.carte-soin h3 { margin-bottom: var(--esp-1); }
.carte-soin p { color: var(--brume); font-size: 0.95rem; }
.carte-soin a { font-size: 0.9rem; font-weight: 600; }

/* --- Étapes (l'approche : vraie séquence, numéros justifiés) - */
.etapes {
  display: grid;
  gap: var(--esp-3);
  counter-reset: etape;
}
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etape {
  counter-increment: etape;
  border-top: 2px solid var(--jade);
  padding-top: var(--esp-2);
}
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--jade);
  margin-bottom: var(--esp-1);
}
.etape h3 { margin-bottom: var(--esp-1); }
.etape p { color: var(--brume); font-size: 0.95rem; }
.parcours-frise .etape::before { content: none; }

/* --- Bandeau CTA (rappel) ------------------------------------ */
.bandeau-cta {
  background: var(--encre-douce);
  color: var(--papier);
  border-radius: var(--rayon);
  padding: var(--esp-4);
  display: grid;
  gap: var(--esp-3);
  align-items: center;
}
@media (min-width: 800px) { .bandeau-cta { grid-template-columns: 1.5fr auto; } }
@media (max-width: 799px) { .bandeau-cta > .bouton { justify-self: center; } }
.bandeau-cta h2 { color: var(--papier); margin-bottom: var(--esp-1); }
.bandeau-cta p { color: color-mix(in srgb, var(--papier) 75%, transparent); margin: 0; }

/* --- Avis clients ---------------------------------------------- */
.avis-carte {
    background: var(--papier);
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    padding: var(--esp-4);
    display: grid;
    gap: var(--esp-3);
    text-align: center;
}
@media (min-width: 700px) {
  .avis-carte { grid-template-columns: auto 1fr; align-items: center; text-align: left; }
}

/* --- En-tête : étoiles + note moyenne --- */
.avis-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: var(--esp-3);
    margin-bottom: var(--esp-3);
    border-bottom: 1px solid var(--trait);
    
}
.avis-lien {
    font-size: var(--t-small);
    font-weight: 600;
    margin-top: 0.25rem;
}
@media (min-width: 700px) {
  .avis-header {
    padding-bottom: 0;
    margin-bottom: 0;
    padding-right: var(--esp-4);
    border-bottom: none;
    border-right: 1px solid var(--trait);
    min-width: 200px;
  }
}

.avis-stars {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--terracotta);
}

.avis-note {
    font-family: var(--font-titre);
    font-size: 2rem;
    font-weight: 600;
    color: var(--encre);
}

.avis-legende {
    font-size: var(--t-small);
    color: var(--brume);
    text-align: center;
}

/* --- Zone des avis superposés (carrousel) --- */
.avis-slider {
    display: grid;
    padding-left: 0;
}
@media (min-width: 700px) { .avis-slider { padding-left: var(--esp-4); } }

.avis-item {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: avisFade 50s infinite;
}
@media (min-width: 700px) { .avis-item { align-items: flex-start; } }

/* --- Style du texte --- */
.avis-texte {
    font-size: 1.15rem;
    color: var(--encre);
    margin: 0;
}

.avis-auteur {
    font-size: var(--t-small);
    color: var(--brume);
    white-space: nowrap;
}
.avis-auteur::before { content: "\2013"; margin: 0 0.4em; color: var(--brume); }

/* --- Animation fade --- */
@keyframes avisFade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    20% { opacity: 1; }
    24% { opacity: 0; }
    100% { opacity: 0; }
}

/* --- Décalage des avis dans le temps --- */
.avis-item:nth-child(1) { animation-delay: 0s; }
.avis-item:nth-child(2) { animation-delay: 10s; }
.avis-item:nth-child(3) { animation-delay: 20s; }
.avis-item:nth-child(4) { animation-delay: 30s; }
.avis-item:nth-child(5) { animation-delay: 40s; }

/* ------------------------------------------------------------
   5. PAGES SPÉCIFIQUES
   ------------------------------------------------------------ */

/* --- En-tête de page intérieure ------------------------------ */
.page-tete { padding-block: var(--esp-5) var(--esp-4); }
.page-tete p { max-width: 620px; color: var(--brume); font-size: 1.1rem; }

/* --- Page soins : blocs détaillés ----------------------------- */
.soin-detail {
  display: grid;
  gap: var(--esp-3);
  padding-block: var(--esp-4);
  border-top: 1px solid var(--trait);
}
@media (min-width: 800px) {
  .soin-detail { grid-template-columns: auto 1fr; gap: var(--esp-4); align-items: start; }
  .soin-detail .illustration-soin { position: sticky; top: 6rem; }
}
.soin-detail h2 { font-size: 1.6rem; }
.soin-detail p { color: var(--brume); max-width: 60ch; }
.soin-detail strong { color: var(--olivier); font-weight: 600; }

/* --- Étiquettes de symptômes (soins) --- */
.tags-symptomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--esp-2);
  padding: 0;
  max-width: 60ch;
}
.tags-symptomes li {
  background: var(--terracotta-p);
  color: var(--terracotta-f);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Panneau des techniques utilisées pendant la séance --- */
.panneau-techniques {
  max-width: 60ch;
  margin: var(--esp-2) 0;
  padding: var(--esp-3);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier);
}
.panneau-techniques h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olivier);
  margin-bottom: var(--esp-2);
}
.liste-techniques {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--esp-3);
}
.liste-techniques li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  break-inside: avoid;
  font-weight: 500;
}
/* Pastille discrète, dans le vert olivier du logo. */
.liste-techniques li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--olivier);
}
.panneau-note {
  margin: var(--esp-2) 0 0;
  font-size: var(--t-small);
  font-style: italic;
  color: var(--brume);
}
@media (max-width: 560px) {
  .liste-techniques { columns: 1; }
}

/* --- "En savoir plus" repliable (soins) --- */
.soin-detail details {
  max-width: 60ch;
  margin: var(--esp-2) 0;
}
.soin-detail summary {
  cursor: pointer;
  color: var(--terracotta-f);
  font-weight: 600;
  font-size: 0.95rem;
}
.soin-detail summary:hover { color: var(--terracotta); }
.soin-detail details[open] summary { margin-bottom: var(--esp-2); }
.soin-detail details p { margin-bottom: var(--esp-2); }
.soin-detail details p:last-child { margin-bottom: 0; }
.encart-info {
  max-width: 60ch;
  background: var(--papier-2);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--rayon);
  padding: var(--esp-2);
  margin-top: var(--esp-2);
}
.encart-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brume);
}

/* --- Page a-propos --------------------------------------------- */
.praticienne-intro {
  display: grid;
  gap: var(--esp-4);
  padding-bottom: var(--esp-4);
}
@media (min-width: 700px) { .praticienne-intro { grid-template-columns: 1fr 360px; align-items: center; } }
.photo-praticienne {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 55%;
  border-radius: var(--rayon);
}
@media (min-width: 700px) { .photo-praticienne { order: 2; } }
.praticienne-intro p { color: var(--brume); max-width: 65ch; text-align: justify; }
.formation-texte { color: var(--brume); text-align: justify; margin-bottom: var(--esp-4); }

/* --- Tableau des tarifs --------------------------------------- */
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--esp-3);
}
.tarifs-table th, .tarifs-table td {
  text-align: left;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--trait);
}
.tarifs-table th { font-size: var(--t-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brume); }
.tarifs-table td:last-child, .tarifs-table th:last-child { text-align: right; }
.tarifs-table td:last-child { font-weight: 600; white-space: nowrap; }
.tarifs-table .duree { color: var(--brume); font-size: 0.9rem; }

/* --- Page contact --------------------------------------------- */
.contact-grille { display: grid; gap: var(--esp-4); }
@media (min-width: 900px) { .contact-grille { grid-template-columns: 1fr 1.2fr; } }
.coordonnees dl { margin: 0; display: grid; gap: var(--esp-2); }
.coordonnees dt { font-size: var(--t-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brume); }
.coordonnees dd { margin: 0.2rem 0 0; }

/* --- Formulaire de rappel -------------------------------------- */
.formulaire {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: var(--esp-3);
  display: grid;
  gap: var(--esp-2);
}
.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 600; font-size: 0.95rem; }
.champ input {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier);
  color: var(--encre);
}
.champ input:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
  border-color: var(--jade);
}
.champ .aide { font-size: var(--t-small); color: var(--brume); }
.formulaire .rgpd { font-size: var(--t-small); color: var(--brume); }

/* Champ piège anti-spam : invisible pour l'humain */
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.message-form { font-weight: 600; min-height: 1.4em; }
.message-form.ok { color: var(--jade-fonce); }
.message-form.erreur { color: var(--cinabre); }

/* --- Page admin : barre d'actions --------------------------- */
.admin-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-2);
  margin: var(--esp-3) 0 var(--esp-2);
  padding: var(--esp-2);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier-2);
}
.admin-compteurs {
  display: flex;
  gap: var(--esp-3);
  font-size: var(--t-small);
  color: var(--brume);
}
.admin-compteurs strong {
  font-size: 1.1rem;
  color: var(--encre);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-1);
}
.admin-filtre {
  font-size: var(--t-small);
  color: var(--brume);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-filtre select {
  font: inherit;
  color: var(--encre);
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier);
}
.admin-cellule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.admin-vide {
  padding: var(--esp-3);
  text-align: center;
  color: var(--brume);
  border: 1px dashed var(--trait);
  border-radius: var(--rayon);
}

/* Sur mobile, le tableau des demandes devient une pile de fiches :
   6 colonnes ne tiennent pas sur un téléphone, et c'est justement là
   que la praticienne consultera la liste pour rappeler ses clients. */
@media (max-width: 700px) {
  #table-demandes thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  #table-demandes,
  #table-demandes tbody,
  #table-demandes tr,
  #table-demandes td {
    display: block;
    width: auto;
  }
  #table-demandes tr {
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    padding: var(--esp-2);
    margin-bottom: var(--esp-2);
    background: var(--papier);
  }
  #table-demandes td {
    border: 0;
    padding: 0.2rem 0;
    text-align: left;
    white-space: normal;
  }
  /* Le libellé de colonne, repris de data-label, précède la valeur. */
  #table-demandes td[data-label]::before {
    content: attr(data-label) " : ";
    font-weight: 600;
    color: var(--brume);
  }
  /* Le nom sert de titre de fiche. */
  #table-demandes td[data-label="Nom"] {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  #table-demandes td[data-label="Nom"]::before { content: none; }
  .admin-cellule-actions {
    justify-content: flex-start;
    margin-top: var(--esp-2);
  }
}

/* Bouton compact, pour les barres d'outils et les cellules. */
.bouton-petit {
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}
/* Action destructive : le rouge du logo, réservé à ce cas. */
.bouton-danger {
  background: transparent;
  color: var(--cinabre);
  border: 1px solid color-mix(in srgb, var(--cinabre) 40%, transparent);
}
.bouton-danger:hover {
  background: var(--cinabre);
  color: var(--papier);
}

/* ------------------------------------------------------------
   6. UTILITAIRES & ACCESSIBILITÉ
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--papier);
  padding: 0.6rem 1rem; z-index: 100;
}
.lien-evitement:focus { left: 0; }

/* Apparition douce au scroll.
   Le masquage initial n'est appliqué QUE si le JS est actif
   (classe .js-actif posée par site.js) : sans JS, tout reste visible. */
.js-actif .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.js-actif .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-actif .reveal { opacity: 1; transform: none; } }


/* ------------------------------------------------------------
   INTÉGRATION DES ASSETS DE MARQUE (hero photo, icônes,
   illustrations de prestations)
   ------------------------------------------------------------ */
.hero-photo {
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--trait);
  display: flex;
  flex-direction: column;
}
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; flex: 1; }
.hero-photo-legende {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  background: var(--papier);
}
.hero-photo-legende span[lang="zh"] {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--encre);
}
.hero-photo-traduction {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--brume);
}
.icone-soin {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
}
/* Le titre ne doit jamais passer sous l'icone, meme sur 2 lignes */
.carte-soin:has(.icone-soin) h3 {
  padding-right: 2.4rem;
}
.illustration-soin {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--rayon);
  border: 1px solid var(--trait);
}

/* ------------------------------------------------------------
   CORRECTION — bouton "Être rappelé·e" dans la navigation.
   .nav a (spécificité 0,1,1) écrasait la couleur de .bouton :
   texte encre sur fond terracotta + pavé pleine largeur aligné
   à gauche en mobile. On restaure un vrai bouton.
   ------------------------------------------------------------ */
.nav a.bouton {
  color: var(--papier);
  background: var(--jade);
  text-align: center;
  padding: 0.8rem 1.4rem;
  border-radius: var(--rayon);
  margin-top: var(--esp-2);
}
.nav a.bouton:hover {
  color: var(--papier);
  background: var(--jade-fonce);
}
@media (min-width: 900px) {
  .nav a.bouton { margin-top: 0; padding: 0.55rem 1.2rem; }
}


/* --- Bandeau de consentement cookies --------------------------- */
.bandeau-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--esp-3);
  padding: var(--esp-2) var(--esp-3);
  background: var(--encre-douce);
  color: var(--papier);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.bandeau-cookies p {
  margin: 0;
  max-width: 60ch;
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--papier) 85%, transparent);
}
.bandeau-cookies a { color: var(--papier); text-decoration-thickness: 1px; }
.bandeau-cookies-actions {
  display: flex;
  gap: var(--esp-1);
  flex: none;
}
.bandeau-cookies .bouton-secondaire {
  background: transparent;
  color: var(--papier);
  border-color: color-mix(in srgb, var(--papier) 35%, transparent);
}
.bandeau-cookies .bouton-secondaire:hover {
  background: color-mix(in srgb, var(--papier) 12%, transparent);
  color: var(--papier);
}
