/* Spécimen — cabinet de curiosités en clair-obscur */
:root {
  --ombre: #120C08;
  --ombre-2: #1C130D;
  --ivoire: #EFE4D2;
  --ivoire-2: #CDBFA8;
  --or: #C9A46A;
  --lampe: #E9C07A;
  --sur-lampe: #1E140C;
  --filet: rgba(239, 228, 210, .5);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Lexend, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ombre); color: var(--ivoire); }
body { font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#root { min-height: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.ecran { position: relative; min-height: 100vh; min-height: 100dvh; max-width: 520px; margin: 0 auto; overflow: hidden; background: var(--ombre); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voile { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,12,8,.75) 0%, rgba(18,12,8,0) 15%, rgba(18,12,8,0) 48%, rgba(18,12,8,.94) 64%, var(--ombre) 74%); }
.voile.haut { background: linear-gradient(180deg, rgba(18,12,8,.7) 0%, rgba(18,12,8,0) 14%, rgba(18,12,8,.1) 32%, rgba(18,12,8,.95) 48%, var(--ombre) 56%); }
.calque { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); pointer-events: none; }
.calque > * { pointer-events: auto; }
.bas { margin-top: auto; padding-top: 24px; }

.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.marque { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; }
.rond { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--filet); background: rgba(18,12,8,.35); cursor: pointer; padding: 0; }
.pilule { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--filet); background: rgba(18,12,8,.35); text-decoration: none; cursor: pointer; font-size: 15px; font-weight: 400; }
.points { display: flex; gap: 8px; }
.points span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--lampe); }
.points span.on { background: var(--lampe); }

.kicker { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--or); font-weight: 400; }
.titre { margin: 10px 0 0; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; }
.titre em, .phrase em { font-style: italic; }
.titre.moyen { font-size: 32px; }
.phrase { margin: 12px 0 0; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.2; }
.soustitre { margin: 10px 0 0; color: var(--ivoire-2); font-size: 16px; }
.texte { margin: 14px 0 0; font-size: 17px; }
.petit { font-size: 14px; color: var(--ivoire-2); }

.bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; margin-top: 24px;
  border: 0; border-radius: 999px; background: var(--lampe); color: var(--sur-lampe); text-decoration: none;
  font-size: 16px; font-weight: 400; cursor: pointer; transition: transform .15s ease-out; }
.bouton:active { transform: scale(.98); }
.bouton[disabled] { opacity: .4; cursor: default; }
.lien { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0;
  background: transparent; color: var(--ivoire-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.choix { display: flex; gap: 8px; margin-top: 20px; }
.choix.colonne { flex-direction: column; }
.option { flex: 1; min-height: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filet);
  background: rgba(18,12,8,.4); cursor: pointer; font-size: 15px; font-weight: 400; }
.option[aria-checked="true"], .option[aria-pressed="true"] { background: var(--lampe); border-color: var(--lampe); color: var(--sur-lampe); }

.champ { display: block; margin-top: 18px; font-size: 14px; color: var(--ivoire-2); }
.champ input, .champ textarea, textarea.champ-seul { display: block; width: 100%; margin-top: 8px; padding: 14px 18px;
  border: 1px solid var(--filet); border-radius: 18px; background: rgba(239,228,210,.06); color: var(--ivoire); font-size: 17px; font-weight: 300; }
.champ input { border-radius: 999px; min-height: 56px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--lampe); }
details { margin-top: 14px; color: var(--ivoire-2); }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; }
details p { margin: 4px 0 0; font-size: 15px; }

.avis { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--or); border-radius: 16px; font-size: 15px; }
.avis.erreur { border-color: #D98B6F; color: #F2C7B4; }

.ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid rgba(201,164,106,.3); font-size: 15px; }
.ligne:last-child { border-bottom: 0; }
.ligne b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.liste { margin-top: 14px; }
.item { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; border: 0; border-bottom: 1px solid rgba(201,164,106,.25);
  background: transparent; text-align: left; cursor: pointer; }
.item .num { font-family: var(--serif); font-size: 22px; color: var(--or); min-width: 38px; }
.item[aria-pressed="true"] .num { color: var(--lampe); }
.item[aria-pressed="true"] { background: rgba(233,192,122,.1); }

.curseur { margin-top: 18px; }
.curseur label { display: flex; justify-content: space-between; font-size: 16px; }
.curseur b { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--lampe); }
input[type=range] { width: 100%; height: 44px; accent-color: var(--lampe); }

.zone-touche { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; overflow: hidden; }
.lumiere { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s ease-out; }
/* Respiration guidée : inspire 4 s, souffle 8 s (l'expiration dure deux fois plus longtemps). */
@keyframes souffle {
  0% { transform: scale(1) translateY(0); animation-timing-function: ease-in-out; }
  33.333% { transform: scale(1.16) translateY(-3%); animation-timing-function: ease-in-out; }
  100% { transform: scale(1) translateY(0); }
}
.respire { animation: souffle 12s infinite; }
@keyframes cercle {
  0% { transform: translate(-50%, -50%) scale(.55); animation-timing-function: ease-in-out; }
  33.333% { transform: translate(-50%, -50%) scale(1.25); animation-timing-function: ease-in-out; }
  100% { transform: translate(-50%, -50%) scale(.55); }
}
@keyframes mot-in { 0%, 31% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes mot-out { 0%, 31% { opacity: 0; } 35%, 97% { opacity: 1; } 100% { opacity: 0; } }
.guide { position: absolute; left: 50%; top: 34%; width: 180px; height: 180px; transform: translate(-50%, -50%); pointer-events: none; }
.guide .rond-souffle { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; border-radius: 50%;
  border: 1.5px solid var(--lampe); background: radial-gradient(circle, rgba(233,192,122,.22) 0%, rgba(233,192,122,.06) 70%);
  box-shadow: 0 0 40px rgba(233,192,122,.25); transform: translate(-50%, -50%) scale(.55); animation: cercle 12s infinite; }
.guide .mot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic;
  font-size: 26px; color: var(--ivoire); text-shadow: 0 1px 12px rgba(0,0,0,.6); white-space: nowrap; }
.guide .mot.in { animation: mot-in 12s infinite; }
.guide .mot.out { opacity: 0; animation: mot-out 12s infinite; }
.barres { margin-top: 14px; }
.barre { margin-top: 12px; font-size: 15px; }
.barre div { height: 10px; border-radius: 999px; margin-top: 6px; }
.barre .avant { background: rgba(201,164,106,.4); }
.barre .apres { background: var(--lampe); }

:focus-visible { outline: 2px solid var(--lampe); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .respire, .guide .rond-souffle, .guide .mot { animation: none; } .bouton, .lumiere { transition: none; }
  .guide .rond-souffle { transform: translate(-50%, -50%) scale(.9); } .guide .mot.out { display: none; }
  .guide .mot.in::after { content: " 4 temps, souffle 8"; }
}
