/* L’Atelier du souffle, sophrologie à Aurèle-la-Ville (modèle imaginaire VIGNEDEV) : la brume au crépuscule, le lilas pâle, l'encre violette, l'orange.
   Alegreya pour la voix, une lettre tracée à la plume, au rythme du souffle, et Alegreya Sans pour lire, de la même famille. */
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("polices/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: italic; font-display: swap; src: url("polices/alegreya-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("polices/alegreya-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --fond: #f4f1f7;
  --lilas: #e8e2f0;
  --trait: #d6cfe3;
  --encre: #231c3d;
  --encre-douce: #574f70;
  --orange: #b5510a;
  --orange-texte: #9c4508;
  --barre: rgb(255 255 255 / .9);
  /* aucun voile : un contour couleur de brume peint sous la lettre, et un halo léger */
  --contour: #f4f1f7;
  --halo: 0 0 2px rgb(244 241 247 / .95), 0 0 7px rgb(244 241 247 / .8), 0 0 14px rgb(244 241 247 / .55);
  --marge: clamp(16px, 4.4vw, 64px);
  --voix: "Alegreya", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--fond); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--encre); background: var(--fond); font: 400 1.125rem/1.6 "Alegreya Sans", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* L'en-tête : son nom dans la police des titres. */
/* L'en-tête se pose sur la première image, avec ou sans film : le premier écran tient dans l'écran et laisse en bas la place du numéro (décision de Bruno du 17/11/2026). */
.haut { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.entete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem var(--marge) 0; }
.nom { font-family: var(--voix); font-weight: 500; font-size: 1.75rem; letter-spacing: .01em; color: var(--encre); }

/* --- La salle : le film est derrière le texte, l'ascenseur reste libre --- */
.salle { position: relative; }
.fond { display: none; }
.film .fond { display: block; position: absolute; inset: 0; z-index: 0; }
.film #film { display: block; position: sticky; top: 0; width: 100%; height: 100vh; height: 100lvh; opacity: 0; transition: opacity .9s linear; background: var(--fond); touch-action: pan-y; }
.film #film.pret { opacity: 1; }
main { position: relative; z-index: 1; }

.plan { position: relative; }
.affiche { display: block; position: absolute; inset: 0; overflow: hidden; }
.affiche img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film .affiche { display: none; }

h1, h2 { font-family: var(--voix); font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, min(6.4vw + .4rem, 12vh), 6rem); line-height: .95; }
h1 em { display: block; font-style: italic; }
h2 { font-size: clamp(1.9rem, 2.3vw + .8rem, 3rem); line-height: 1.08; font-style: italic; }

/* Plan 1 : son nom en grand en bas à gauche ; la brume, les pins et le cercle à droite (en haut sur téléphone). */
.plan-bruit { padding: 0 var(--marge); }
.film .plan-bruit { padding-bottom: 120vh; padding-bottom: 120svh; }
.premier { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem 0 clamp(78px, 11vh, 120px); }
.ouverture { position: relative; z-index: 1; width: min(36rem, 100%); }
.surtitre { font-size: 1.1875rem; font-weight: 500; color: var(--encre-douce); margin-bottom: .5rem; }
.chapeau { margin-top: 1rem; max-width: 33rem; font-size: 1.1875rem; text-wrap: pretty; }
.appels { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.5rem; }
.appel { display: inline-flex; align-items: center; min-height: 56px; padding: .7rem 1.4rem; border-radius: 999px; color: #fff; background: var(--orange); text-decoration: none; font-weight: 500; font-size: 1.1875rem; line-height: 1.2; font-variant-numeric: lining-nums; }
.appel:hover { background: #9c4508; }

/* Plans 2 à 5 : le texte en bas à gauche, les tirages à droite et au-dessus ; sur téléphone, les tirages en haut. */
.plan-cabinet, .plan-fleur { min-height: 100vh; min-height: 100svh; }
.film .plan-cabinet { min-height: 200vh; min-height: 200svh; }
.film .plan-fleur { min-height: 230vh; min-height: 230svh; }
.scene { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 6rem var(--marge) 6.5rem; }
.film .scene { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; touch-action: pan-y; }
.texte { position: relative; z-index: 2; width: min(31rem, 100%); }
.film .texte { opacity: var(--o, 0); }
.texte > p { margin-top: .8rem; font-size: 1.125rem; text-wrap: pretty; }
.texte h2 { margin-top: .3rem; }
.signe { font-weight: 500; font-size: 1rem !important; color: var(--orange-texte); }
.source { font-size: .9375rem !important; color: var(--encre-douce); }

/* Le pied de page : le numéro, l'adresse, et d'où vient cette page. */
.pied { position: relative; z-index: 1; padding: 4.5rem var(--marge) 7rem; background: var(--lilas); }
.pied > p { margin-top: .8rem; max-width: 40rem; }
.numero { font-family: var(--voix); font-weight: 500; font-size: clamp(2.2rem, 2.4vw + 1.2rem, 3.2rem); font-variant-numeric: lining-nums; }
.numero a { text-decoration: none; }
.adresse { color: var(--encre-douce); }

/* Le numéro reste à l'écran du début à la fin. */
.telephone { position: fixed; left: var(--marge); bottom: 12px; z-index: 6; margin: 0; padding: .35rem .85rem .45rem; border-radius: 10px; background: var(--barre); border: 1px solid var(--trait); line-height: 1.15; box-shadow: 0 6px 18px rgb(35 28 61 / .12); }
.telephone span { display: block; font-size: .8125rem; color: var(--encre-douce); }
.telephone a { font-family: var(--voix); font-weight: 500; font-size: 1.55rem; text-decoration: none; font-variant-numeric: lining-nums; white-space: nowrap; }
/* la carte s'efface quand un lien ou un bouton passe dessous (commun/carte.js, 16/11/2026) */
.telephone { transition: opacity .2s, visibility .2s; }
.telephone.efface:not(:focus-within) { opacity: 0; visibility: hidden; pointer-events: none; }

/* La régie : la pause et le son. */
.regie { position: fixed; right: var(--marge); bottom: 12px; z-index: 6; display: flex; gap: .5rem; }
.regie[hidden] { display: none; }
.regie button { min-height: 44px; font-size: 1rem; line-height: 1; padding: .55rem .9rem; border-radius: 999px; color: var(--encre); background: var(--barre); border: 1px solid var(--trait); cursor: pointer; box-shadow: 0 6px 18px rgb(35 28 61 / .12); }
.regie button:hover { border-color: var(--encre-douce); }
.regie button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }

/* Plan 4 : la salle et le choix des séances ; plan 5 : pour qui, puis le message. */
.plan-salle, .plan-vous { min-height: 100vh; min-height: 100svh; }
.film .plan-salle { min-height: 260vh; min-height: 260svh; }
.film .plan-vous { min-height: 380vh; min-height: 380svh; }
.film #scene-vous { display: grid; align-items: end; }
.film #scene-vous .texte { grid-area: 1 / 1; }
#scene-vous .texte-message { margin-top: 3rem; }
.film #scene-vous .texte-message { margin-top: 0; }
.seances[hidden] { display: none; }
.choix-nom { margin-top: .9rem; font-size: 1rem !important; font-weight: 500; color: var(--encre-douce); }
.rang { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.rang button { min-height: 44px; padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid var(--trait); background: #fff; color: var(--encre); font-weight: 500; font-size: 1rem; cursor: pointer; text-shadow: none; font-variant-numeric: lining-nums tabular-nums; }
.rang button:hover { border-color: var(--orange); }
.rang button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.rang button:disabled { opacity: .45; cursor: default; }
.etat { min-height: 1.6em; font-weight: 500; color: var(--orange-texte); }

/* Aucun voile sur l'image : le texte se pose sur la brume, un contour couleur de brume peint sous la lettre et un halo léger. */
.entete, .ouverture, .texte { text-shadow: var(--halo); }
@supports (paint-order: stroke fill) {
  .entete, .ouverture h1, .ouverture .surtitre, .ouverture .chapeau, .texte h2, .texte .signe, .texte > p:not(.signe):not(.appels) { -webkit-text-stroke: 3px var(--contour); paint-order: stroke fill; }
}
.appel, .rang button, .etat { text-shadow: none; }

/* Sans film : les images fixes portent le texte, plan après plan. */
.capture main > * > *:not(.affiche), .capture .haut, .capture .regie, .capture .telephone { visibility: hidden !important; }

@media (max-width: 700px) {
  .premier { padding-bottom: 6.2rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .chapeau { font-size: 1.0625rem; margin-top: .7rem; }
  .surtitre { font-size: 1.0625rem; margin-bottom: .4rem; }
  .appels { margin-top: 1.1rem; }
  .appel { width: 100%; justify-content: center; }
  .telephone { left: 10px; bottom: 10px; padding: .3rem .65rem .4rem; }
  .telephone a { font-size: 1.35rem; }
  .regie { right: 10px; bottom: 10px; }
  .regie button { min-height: 40px; font-size: 1rem; padding: .45rem .7rem; }
}
/* Écran en hauteur : les tirages occupent le haut, le texte le bas. */
@media (max-aspect-ratio: 19/20) {
  .film .scene { padding: 0 var(--marge) 74px; }
  .film .texte { width: 100%; }
  .film .texte h2 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .film .texte > p { font-size: 1rem; margin-top: .5rem; }
  .film .texte .source { display: none; }
  .film .rang { gap: .3rem; }
  .film .rang button { min-height: 36px; padding: .15rem .55rem; font-size: 1rem; }
  .film .choix-nom { margin-top: .5rem; font-size: 1rem !important; }
  .film .plan-salle .texte > p:first-of-type + h2 + p { font-size: 1rem; }
}
/* quand « Pause » et « Écouter le film » ne tiennent plus à côté du numéro (petit téléphone) : l'un sur l'autre */
.regie.serree { flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 420px) { .regie { gap: .4rem; } .regie button { padding: .45rem .6rem; } .telephone { padding-left: .5rem; padding-right: .5rem; } }

/* Les surfaces du navigateur aux couleurs du film, et un bouton qui s'enfonce un peu quand on clique (règles de design du 09/11/2026). */
:root { caret-color: var(--orange); scrollbar-color: var(--encre-douce) var(--lilas); }
::selection { background: var(--encre); color: #fff; }
.appel, .rang button, .regie button { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
:is(.appel, .rang button:not(:disabled), .regie button):active { transform: scale(.97); }
