/* ==========================================================================
   Camille Benoit, ostéopathe — exemple de réalisation
   Cinquième identité de la série, et la rupture de structure la plus nette :
     - aucune barre de navigation,
     - une section par écran, avec accroche au défilement,
     - un repère de progression vertical à droite,
     - une barre de rendez-vous permanente en bas,
     - aucune photographie : une forme floue tient lieu d'ambiance.
   Le parti pris répond au contexte : quelqu'un qui a mal cherche à être
   rassuré, pas à être sollicité. D'où le rythme lent, une idée par écran.
   Feuille de style autonome.
   ========================================================================== */

:root {
  --papier: #f7f6f3;
  --papier-creux: #eeece7;
  --encre: #1c2422;
  --encre-douce: #55605d;
  --petrole: #0f4c4a;
  --petrole-clair: #1b6b68;

  --titre: "Fraunces", Georgia, serif;
  --corps: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --barre-h: 64px;   /* hauteur de la barre de rendez-vous */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--papier);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol, dl { list-style: none; }
h1, h2, h3 { font-family: var(--titre); font-weight: 300; line-height: 1.08; }

.mention {
  font-family: var(--corps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrole);
  margin-bottom: 20px;
}

.phrase { margin-top: 22px; max-width: 46ch; font-size: 1.08rem; color: var(--encre-douce); }
.apart {
  margin-top: 28px;
  max-width: 52ch;
  padding-left: 16px;
  border-left: 2px solid var(--petrole);
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--petrole);
  color: var(--papier);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.bouton:hover { background: var(--petrole-clair); }

:focus-visible { outline: 3px solid var(--petrole); outline-offset: 4px; }

/* ---- Bandeau de démonstration ---- */
.demo-flag {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--petrole);
  color: var(--papier);
  font-size: 0.82rem;
  text-align: center;
}
.demo-flag a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ==========================================================================
   Ossature : sections plein écran avec accroche au défilement
   ========================================================================== */

/* proximity plutôt que mandatory : l'accroche guide sans jamais bloquer le
   défilement, ce qui reste supportable si une section dépasse l'écran. */
.pistes {
  scroll-snap-type: y proximity;
  overflow-y: auto;
  height: calc(100vh - var(--barre-h));
  height: calc(100svh - var(--barre-h));
  scroll-behavior: smooth;
}

.ecran {
  scroll-snap-align: start;
  min-height: calc(100vh - var(--barre-h));
  min-height: calc(100svh - var(--barre-h));
  display: flex;
  align-items: center;
  padding: 96px clamp(24px, 8vw, 140px) 64px;
}
.dedans { position: relative; z-index: 2; width: 100%; max-width: 760px; }

/* Écran trop court (paysage sur téléphone, petite fenêtre) : l'accroche
   deviendrait pénible, on la retire et les sections reprennent leur
   hauteur naturelle. */
@media (max-height: 620px) {
  .pistes { scroll-snap-type: none; height: auto; overflow: visible; }
  .ecran { min-height: 0; padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .pistes { scroll-behavior: auto; }
}

/* ---- Nom fixe, en haut à gauche ---- */
.nom-fixe {
  position: fixed;
  top: calc(38px + 16px);
  left: clamp(24px, 8vw, 140px);
  z-index: 4;
  font-family: var(--titre);
  font-size: 1.05rem;
  line-height: 1.25;
}
.nom-fixe span {
  display: block;
  font-family: var(--corps);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrole);
}

/* ---- Repères de progression, à droite ---- */
.reperes {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reperes a {
  display: flex;
  /* row-reverse : le point passe en dernier dans l'ordre visuel, donc calé
     sur le bord droit quelle que soit la longueur du libellé. Sans cela, un
     libellé long — même transparent — décale son point vers la gauche. */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;              /* le libellé n'apparaît qu'au survol */
  transition: color 0.25s ease;
}
.reperes a:hover, .reperes a:focus-visible { color: var(--encre-douce); }
.point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--petrole);
  transition: background 0.25s ease, transform 0.25s ease;
}
/* .est-actif est posé par script.js au fil du défilement. */
.reperes a.est-actif .point { background: var(--petrole); transform: scale(1.35); }
.reperes a.est-actif { color: var(--encre); }

@media (max-width: 720px) {
  .reperes { display: none; }       /* trop à l'étroit, et redondant au doigt */
  .nom-fixe { position: static; padding: 24px clamp(24px, 8vw, 140px) 0; }
  .ecran { padding-top: 32px; }
}

/* ---- Halo d'ambiance (remplace la photographie) ---- */
.halo {
  position: fixed;
  z-index: 1;
  width: 62vmax;
  height: 62vmax;
  right: -18vmax;
  top: -14vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 76, 74, 0.16), rgba(15, 76, 74, 0) 68%);
  pointer-events: none;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Chaque section décale le halo : le fond respire sans jamais s'imposer. */
.halo[data-section="1"] { transform: translate(-24vmax, 34vmax); }
.halo[data-section="2"] { transform: translate(-4vmax, 12vmax); }
.halo[data-section="3"] { transform: translate(-30vmax, 40vmax); }
.halo[data-section="4"] { transform: translate(-10vmax, 20vmax); }
.halo[data-section="5"] { transform: translate(-26vmax, 8vmax); }
@media (prefers-reduced-motion: reduce) { .halo { transition: none; } }

/* ==========================================================================
   Contenu des écrans
   ========================================================================== */

#accueil h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.invite {
  margin-top: 56px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.invite span { display: inline-block; margin-right: 8px; animation: descendre 2.4s ease-in-out infinite; }
@keyframes descendre { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .invite span { animation: none; } }

.ecran h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }

.motifs { margin-top: 32px; display: grid; gap: 2px; }
.motifs li {
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--papier-creux);
  position: relative;
  font-size: 1rem;
}
.motifs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 1.5px;
  background: var(--petrole);
}

.temps { margin-top: 32px; display: grid; gap: 22px; }
.temps li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; }
.duree {
  font-family: var(--titre);
  font-size: 1.2rem;
  color: var(--petrole);
  padding-top: 2px;
}
.temps p { color: var(--encre-douce); max-width: 46ch; }
@media (max-width: 560px) {
  .temps li { grid-template-columns: 1fr; gap: 4px; }
}

.tarifs { margin-top: 32px; border-top: 1px solid var(--papier-creux); }
.tarifs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--papier-creux);
}
.tarifs dt { font-size: 1.05rem; }
.tarifs dt span { display: block; font-size: 0.82rem; color: var(--encre-douce); }
.tarifs dd { font-family: var(--titre); font-size: 1.6rem; color: var(--petrole); }

.jalons { margin-top: 30px; display: grid; gap: 12px; }
.jalons li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; font-size: 0.96rem; color: var(--encre-douce); }
.jalons strong { font-family: var(--titre); font-weight: 500; color: var(--petrole); }

.coordonnees { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 560px; }
.coordonnees h3 {
  font-family: var(--corps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrole);
  margin-bottom: 10px;
}
.coordonnees p { color: var(--encre-douce); font-size: 0.96rem; }
@media (max-width: 560px) { .coordonnees { grid-template-columns: 1fr; gap: 22px; } }

.ecran-fin { align-items: flex-start; padding-top: 120px; }
.pied {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--papier-creux);
  font-size: 0.84rem;
  color: var(--encre-douce);
}
.pied a { color: var(--petrole); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Barre de rendez-vous permanente ---- */
.barre-rdv {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: var(--barre-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: var(--papier);
  border-top: 1px solid var(--papier-creux);
}
.barre-texte { font-size: 0.86rem; color: var(--encre-douce); }
@media (max-width: 520px) {
  .barre-texte { display: none; }
  .barre-rdv { justify-content: center; }
  .barre-rdv .bouton { width: 100%; }
}
