/* =========================================================
   PALETTE « CARRELAGE », règle 60-30-10 :
   60 % carrelage pâle · 30 % vert bouteille · 10 % laiton (boutons)
   ========================================================= */
:root {
  /* 60 % : neutres */
  --fond: #edf2ed;
  --surface: #ffffff;
  --creux: #dde7df;
  --ligne: #c3d1c6;
  --texte: #14251d;
  --texte-2: #4a5d52;

  /* 30 % : couleur de marque */
  --vert: #123a2c;
  --vert-fonce: #0c291f;
  --vert-clair: #1d4d3c;
  --vert-ligne: #5b8573;
  --clair: #f1f6f1;
  --clair-2: #b9cfc2;

  /* 10 % : accent, réservé aux actions et au miroir */
  --accent: #d9a85b;
  --accent-hover: #e8bf7d;

  /* Les 6 tailles de texte du site */
  --t-sm: 14px;
  --t-base: 17px;
  --t-md: 20px;
  --t-lg: 28px;
  --t-xl: clamp(32px, 4vw, 44px);
  --t-2xl: clamp(38px, 5.2vw, 64px);

  --r-btn: 8px;
  --r-carte: 16px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3, .logo { font-stretch: 120%; font-weight: 600; }
h1, h2 { line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); margin-bottom: 24px; }
h3 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -.02em; }

.container { width: min(1152px, 100% - 48px); margin-inline: auto; }

.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }

a:focus-visible { outline: 2px solid var(--vert); outline-offset: 4px; border-radius: 4px; }
:is(.demo-bar, .header, .hero, .forfait) a:focus-visible { outline-color: #fff; }

/* ===== BANDEAU DÉMO ===== */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 8px 16px; background: var(--vert-fonce); color: var(--clair-2); font-size: var(--t-sm); }
.demo-bar a { display: inline-flex; align-items: center; gap: 4px; color: var(--clair); text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ===== EN-TÊTE ===== */
.header { position: sticky; top: 0; z-index: 15; background: var(--vert); color: var(--clair); border-bottom: 1px solid transparent; transition: border-color .15s; }
.header.scrolle { border-color: var(--vert-ligne); }
.header__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.logo { font-size: var(--t-md); white-space: nowrap; color: inherit; text-decoration: none; }
.nav { display: flex; gap: 32px; }
.nav a { padding-block: 8px; color: var(--clair-2); text-decoration: none; transition: color .15s; }
.nav a:hover { color: #fff; }

/* ===== BOUTONS : normal, survolé, appuyé, focus ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;               /* largeur = 2 x hauteur */
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--r-btn); }
/* Fantôme : uniquement pour l'action secondaire */
.btn--ghost { background: transparent; border-color: var(--vert-ligne); color: var(--clair); }
.btn--ghost:hover { background: var(--vert-clair); }

/* ===== ACCROCHE ===== */
.hero { padding-block: 40px 64px; background: var(--vert); color: var(--clair); }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 64px; }
.hero__text { max-width: 30rem; margin: 24px 0 32px; font-size: var(--t-md); color: var(--clair-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Badge Ouvert / Fermé (texte et classes ajoutés par script.js) */
.statut { display: flex; align-items: center; gap: 8px; min-height: 28px; font-weight: 500; }
.statut::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #8b9a90; }
.statut--ouvert::before { background: #3fb573; }
.hero .statut { margin-bottom: 16px; }

/* ===== LE MIROIR DE NUQUE : le moment fort ===== */
.nuque { display: grid; justify-items: center; gap: 24px; }
.miroir { display: block; width: min(400px, 100%); height: auto; }

/* Un seul dessin de cheveux visible : celui du bouton coché */
.cheveux { opacity: 0; transition: opacity .3s; }
.nuque:has([value="bas"]:checked) .cheveux--bas,
.nuque:has([value="mi"]:checked) .cheveux--mi,
.nuque:has([value="haut"]:checked) .cheveux--haut { opacity: 1; }

.choix { width: min(400px, 100%); min-width: 0; margin: 0; padding: 0; border: 0; text-align: center; }
.choix legend { width: 100%; padding: 0; margin-bottom: 12px; font-weight: 500; }
.choix__boutons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--vert-fonce); }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choix span { display: block; padding: 8px; border-radius: 8px; color: var(--clair-2); font-weight: 500; transition: background .15s, color .15s; }
.choix label:hover span { color: #fff; }
.choix input:checked + span { background: var(--clair); color: var(--texte); }
.choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choix p { margin-top: 12px; color: var(--clair-2); }

/* Damier du sol : deux rangées de carreaux */
.damier { height: 32px; background: conic-gradient(var(--vert) 25%, var(--surface) 0 50%, var(--vert) 0 75%, var(--surface) 0) 0 0 / 32px 32px; }

/* ===== SECTIONS ===== */
.section { padding-block: 96px; }
.section--alt { background: var(--creux); }

/* ===== TARIFS ===== */
.tarifs { display: grid; grid-template-columns: 1.8fr 1fr; gap: 20px; }
.tableau, .forfait, .two-cols > div { padding: 40px; border-radius: var(--r-carte); }
.tableau { border: 1px solid var(--ligne); background: var(--surface); }

.prix { margin: 0; padding: 0; list-style: none; font-size: var(--t-md); }
.prix li { display: grid; grid-template-columns: 1fr auto 64px; align-items: baseline; gap: 16px; padding-block: 16px; border-top: 1px solid var(--ligne); }
.prix li:last-child { padding-bottom: 0; }
.prix__nom { font-weight: 500; }
.prix__duree { font-size: var(--t-base); color: var(--texte-2); }
.prix__montant { text-align: right; font-weight: 600; }
.prix__duree, .prix__montant { white-space: nowrap; font-variant-numeric: tabular-nums; }

.forfait { display: flex; flex-direction: column; background: var(--vert); color: var(--clair); }
.forfait h3 { margin-bottom: 12px; }
.forfait p { color: var(--clair-2); }
.forfait .forfait__prix { margin: auto 0 24px; padding-top: 32px; font-size: var(--t-2xl); font-stretch: 120%; font-weight: 600; line-height: 1; letter-spacing: -.025em; color: #fff; }

/* ===== HORAIRES & ACCÈS ===== */
.two-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.two-cols > div { background: var(--surface); }
.hours { width: 100%; margin-top: 16px; border-collapse: collapse; }
.hours td { padding: 12px 0; border-top: 1px solid var(--ligne); }
.hours td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours tr.aujourdhui td { font-weight: 600; }
.hours tr.aujourdhui td:first-child::after { content: " · aujourd'hui"; font-size: var(--t-sm); font-weight: 400; color: var(--texte-2); }

.acces__adresse { margin-bottom: 12px; font-size: var(--t-md); }
.acces__note { margin-top: 12px; color: var(--texte-2); }

/* ===== PIED DE PAGE ===== */
.footer { padding: 32px 24px; text-align: center; font-size: var(--t-sm); color: var(--texte-2); }

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

/* ===== BOUTON D'APPEL : téléphone seulement ===== */
.call-fab { display: none; }

/* ===== TABLETTE ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .tarifs, .two-cols { grid-template-columns: 1fr; }
}

/* ===== TÉLÉPHONE ===== */
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  html { scroll-padding-top: 104px; }
  .hero { padding-block: 24px 48px; }
  .hero__grid { gap: 40px; }
  .section { padding-block: 64px; }
  .btn { width: 100%; }
  .miroir { width: min(300px, 100%); }
  .choix span { padding-block: 12px; }

  .header__inner { flex-direction: column; gap: 0; padding-block: 12px 4px; }
  .nav { gap: 24px; }

  .tableau, .forfait, .two-cols > div { padding: 24px 20px; }
  /* La durée passe sous le nom */
  .prix li { grid-template-columns: 1fr auto; gap: 0 16px; font-size: var(--t-base); }
  .prix__duree { grid-row: 2; font-size: var(--t-sm); }

  .call-fab {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    background: var(--accent);
    color: var(--texte);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 40px rgb(12 41 31 / .24);
  }
  .call-fab:active { background: var(--accent-hover); }
  body { padding-bottom: 80px; }   /* pour que le bouton ne cache pas le pied de page */
}

/* ===== ANIMATIONS AU DÉFILEMENT (moteur : animations.js) ===== */
/* Les prix et les horaires arrivent ligne par ligne */
.js .reveal.visible :is(.prix li, .hours tr) { animation: ligne .6s var(--ease) calc(.2s + var(--i) * .1s) backwards; }
