/* Névé : la page est une montée. Nuit, glace et lueur du soir ; capsules flottantes, crêtes dessinées. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo Large"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --nuit: #16213d;
  --abime: #060b1c;
  --crete: #2c3a5e;
  --glace: #dfeaec;
  --lueur: #f0a48a;
  --doux: cubic-bezier(.16, 1, .3, 1);
  --marge: clamp(20px, 5vw, 80px);
  --depart: 0s;
}
.avec-ouverture { --depart: 1.25s; }
:root:has(.nav.is-open) { overflow: hidden; }

body { background: var(--glace); color: var(--nuit); font-family: "Archivo Large", Arial, sans-serif; font-stretch: 110%; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 200; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(38px, 5.6vw, 84px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; }
:focus-visible { outline: 3px solid var(--lueur); outline-offset: 3px; }
.inner-body :focus-visible, .sejours :focus-visible, .finale :focus-visible { outline-color: var(--nuit); }

.demo-button {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--lueur); color: var(--nuit); font-weight: 600; text-decoration: none;
  transition: background-color .25s, transform .35s var(--doux);
}
.demo-button:hover { background: #f8c2ae; transform: translateY(-3px); }
.finale .demo-button, .inner-body .demo-button { background: var(--nuit); color: var(--glace); }
.finale .demo-button:hover, .inner-body .demo-button:hover { background: var(--crete); }

/* Capsules flottantes : l'en-tête ne prend aucune hauteur, le paysage reste entier. */
.top { position: sticky; top: 0; z-index: 60; height: 0; }
.brand, .menu-toggle {
  position: absolute; top: 14px; z-index: 2; display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--nuit); color: var(--glace); text-decoration: none;
}
.brand { left: var(--marge); font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 300; }
#site .menu-toggle { right: var(--marge); display: inline-flex; font-weight: 500; }

#site .nav { position: fixed; inset: 0; z-index: 1; display: none; overflow-y: auto; overscroll-behavior: contain; padding: 84px var(--marge) 40px; background: var(--nuit); color: var(--glace); }
#site .nav.is-open { display: flex; align-items: center; }
.nav ul { width: 100%; }
.nav a { display: block; padding: 2px 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(30px, min(5.4vw, 8.2vh), 76px); font-weight: 200; line-height: 1.16; text-decoration: none; transition: color .2s, padding .35s var(--doux); }
.nav a:hover { padding-left: 18px; color: var(--lueur); }
.nav a[aria-current="page"] { color: var(--lueur); }

/* Premier écran */
.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100svh - 40px); overflow: hidden; background: var(--nuit); }
.ciel { position: absolute; inset: 0; background: linear-gradient(180deg, var(--nuit) 0%, var(--crete) 42%, #8a7f99 62%, var(--lueur) 80%); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.hero h1 {
  position: relative; padding: clamp(84px, 13vh, 130px) var(--marge) 0; color: var(--glace);
  font-size: clamp(38px, 10.4vw, 180px); font-weight: 100; line-height: .98;
}
.hero h1 span { display: block; }
.hero-bas { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; padding: 0 var(--marge) clamp(26px, 5vh, 52px); color: var(--glace); }
.hero-bas p { max-width: 44ch; }

@media (prefers-reduced-motion: no-preference) {
  .layer { animation: monte 1.5s var(--doux) both; animation-delay: var(--depart); }
  .layer-1 { animation-delay: calc(var(--depart) + .06s); }
  .layer-2 { animation-delay: calc(var(--depart) + .14s); }
  .layer-3 { animation-delay: calc(var(--depart) + .2s); }
  .layer-4 { animation-delay: calc(var(--depart) + .26s); }
  .hero h1 span { animation: leve 1.4s var(--doux) both; animation-delay: calc(var(--depart) + .1s); }
  .hero h1 span:last-child { animation-delay: calc(var(--depart) + .22s); }
}
@keyframes monte { from { translate: 0 22%; } to { translate: 0 0; } }
@keyframes leve { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }

/* La montée : la scène reste en place, les étapes défilent devant. */
.ascent { position: relative; }
.ascent-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--nuit); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.scene.is-on { opacity: 1; }
.scene-foret { background: linear-gradient(180deg, #e7cdc4 0%, #b9cfd0 45%, #6f8f92 100%); }
.scene-moraine { background: linear-gradient(180deg, #7f94ad 0%, #c8d6dc 60%, #dfeaec 100%); }
.scene-refuge { background: linear-gradient(180deg, var(--abime) 0%, var(--nuit) 30%, #8a5e72 52%, var(--lueur) 68%); }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.alti { position: absolute; right: var(--marge); top: 50%; display: flex; align-items: center; gap: 14px; translate: 0 -50%; color: var(--glace); }
.alti strong { padding: 4px 16px; border-radius: 999px; background: rgb(22 33 61 / .84); font-family: "Fraunces", Georgia, serif; font-size: clamp(22px, 3vw, 40px); font-weight: 200; font-variant-numeric: tabular-nums; }
.alti-barre { position: relative; width: 3px; height: 34vh; background: rgb(223 234 236 / .45); }
.alti-barre span { position: absolute; inset: 0; background: var(--lueur); transform: scaleY(0); transform-origin: bottom; }
.ascent-steps { position: relative; margin-top: -100svh; }
.step { display: flex; align-items: center; min-height: 100svh; padding: 90px var(--marge); }
.step-card { width: min(100%, 560px); padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: rgb(22 33 61 / .9); color: var(--glace); }
.step:nth-child(2) .step-card { margin-left: clamp(0px, 12vw, 200px); }
.step-alti { color: var(--lueur); font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 300; }
.step h2 { margin: 2px 0 14px; }

/* La nuit : le faisceau révèle un second ciel posé sur le premier. */
.nuit { position: relative; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; background: var(--abime); color: var(--glace); }
.nuit-ciel, .nuit-lit { position: absolute; inset: 0; }
.nuit-ciel svg, .nuit-lit svg { width: 100%; height: 100%; max-width: none; }
.nuit-lit {
  --x: 56%; --y: 42%;
  background: #1f2c50;
  -webkit-mask-image: radial-gradient(circle clamp(150px, 24vw, 340px) at var(--x) var(--y), #000 58%, transparent 100%);
  mask-image: radial-gradient(circle clamp(150px, 24vw, 340px) at var(--x) var(--y), #000 58%, transparent 100%);
}
.nuit-lit text { font-family: "Archivo Large", Arial, sans-serif; }
.nuit-texte { position: relative; max-width: 620px; padding: 0 var(--marge) clamp(40px, 8vh, 90px); pointer-events: none; }
.nuit-texte p { margin-top: 14px; }
.nuit-aide { color: var(--lueur); }
@media (pointer: coarse) { .nuit-aide { display: none; } }

.sejours { padding: clamp(70px, 11vw, 150px) var(--marge); }
.sejours ul { margin-top: clamp(32px, 5vw, 60px); }
.sejours li { border-top: 1px solid var(--nuit); }
.sejours li:last-child { border-bottom: 1px solid var(--nuit); }
.sejours a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8px 48px; align-items: baseline; padding: 26px 0; text-decoration: none; transition: padding .45s var(--doux), background-color .3s; }
.sejours a:hover { padding-left: 22px; background: #cfdfe3; }

.finale { display: grid; gap: 34px; justify-items: start; padding: clamp(80px, 13vw, 180px) var(--marge); background: var(--lueur); }
.finale h2 { max-width: 16ch; font-size: clamp(42px, 7.6vw, 124px); font-weight: 100; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; padding: clamp(40px, 6vw, 72px) var(--marge); background: var(--nuit); color: var(--glace); }
.foot-nom { font-family: "Fraunces", Georgia, serif; font-size: clamp(64px, 12vw, 180px); font-weight: 100; line-height: .9; }

/* Pages intérieures */
.inner-head { position: relative; padding: clamp(110px, 16vh, 170px) var(--marge) clamp(84px, 11vw, 165px); background: linear-gradient(180deg, var(--nuit) 30%, var(--crete) 70%, #8a7f99 100%); color: var(--glace); }
.inner-head h1 { position: relative; z-index: 1; font-size: clamp(50px, 10vw, 160px); font-weight: 100; }
.inner-head p { position: relative; z-index: 1; max-width: 48ch; margin-top: 16px; font-size: clamp(18px, 1.6vw, 22px); }
.inner-bord { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 15vw, 220px); max-width: none; }
.inner-body { display: grid; gap: clamp(32px, 5vw, 56px); justify-items: stretch; padding: clamp(28px, 4vw, 56px) var(--marge) clamp(70px, 9vw, 120px); }
.inner-body > .demo-button { justify-self: start; }

.formules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.formules li { padding-top: 16px; border-top: 1px solid var(--nuit); }
.formules h2 { margin-bottom: 12px; font-size: clamp(30px, 3.4vw, 48px); }
.formule-note { margin-top: 10px; font-weight: 600; }

.carnet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.carnet figure { grid-column: span 2; }
.carnet figure:nth-child(1), .carnet figure:nth-child(4), .carnet figure:nth-child(5) { grid-column: span 4; }
.carnet svg { width: 100%; height: clamp(190px, 26vw, 400px); max-width: none; border-radius: 22px; }
.carnet figcaption { margin-top: 8px; }

.recit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); }
.recit h2 { margin-bottom: 18px; }
.recit p { max-width: 60ch; }
.recit p + p { margin-top: 14px; }
.chiffres > div { padding: 16px 0; border-top: 1px solid var(--nuit); }
.chiffres dd { font-family: "Fraunces", Georgia, serif; font-size: clamp(38px, 4.6vw, 64px); font-weight: 200; line-height: 1.1; }

/* Éléments communs aux pages fonctionnelles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 20px; border: 1px solid var(--nuit); border-radius: 999px; background: transparent; }
.filters button[aria-pressed="true"] { background: var(--nuit); color: var(--glace); }
.faq details { border-top: 1px solid var(--nuit); }
.faq details:last-child { border-bottom: 1px solid var(--nuit); }
.faq summary { padding: 20px 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(22px, 2.3vw, 30px); font-weight: 300; line-height: 1.2; }
.faq p { max-width: 62ch; padding-bottom: 22px; }
.demo-form input:not([type="radio"]), .demo-form select, .demo-form textarea { border: 1px solid var(--nuit); border-radius: 14px; background: #f4f8f8; }
.demo-form legend { font-weight: 600; }
.slot { border: 1px solid var(--nuit); border-radius: 14px; }
.slot:has(input:checked) { background: var(--nuit); color: var(--glace); }
.slot:has(input:focus-visible) { outline: 3px solid var(--nuit); outline-offset: 2px; }
.form-result { padding: 12px 16px; border-radius: 14px; background: #cfdfe3; }
.form-result.form-error { background: #fbdcd2; color: #7a1f0b; }
.facts > div { padding: 12px 0; border-top: 1px solid var(--nuit); }
.facts dt { font-weight: 600; }
.recap { border-radius: 22px; background: var(--nuit); color: var(--glace); }
.recap h2 { margin-bottom: 14px; font-size: 30px; font-weight: 300; }
.recap dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgb(223 234 236 / .35); }
.recap dd { text-align: right; }
.account h2 { margin-bottom: 12px; font-size: clamp(30px, 3.2vw, 44px); }
.account li { border-top: 1px solid var(--nuit); }
.steps { display: grid; gap: 22px; max-width: 760px; counter-reset: etape; }
.steps li { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: baseline; counter-increment: etape; }
.steps li::before { content: counter(etape); font-family: "Fraunces", Georgia, serif; font-size: 42px; font-weight: 200; line-height: 1; }
.callout { max-width: 760px; padding: 18px 22px; border-radius: 22px; background: #cfdfe3; }

/* Transition entre les pages */
.veil { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; transform: translate3d(0, 100%, 0); }
.veil.is-on { visibility: visible; }
.veil svg { width: 100%; height: 100%; max-width: none; fill: var(--crete); }

/* Introduction de la marque */
.ouverture { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: var(--nuit); color: var(--glace); animation: ouverture-part .5s cubic-bezier(.7, 0, .3, 1) 1.25s forwards; }
.ouverture.is-passe { animation: ouverture-vite .28s cubic-bezier(.7, 0, .3, 1) forwards; }
.ouverture svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ouverture path { fill: none; stroke: var(--lueur); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ouverture-trait 1s var(--doux) .05s forwards; }
.ouverture-mot { position: relative; overflow: hidden; padding: 0 .06em .08em; font-family: "Fraunces", Georgia, serif; font-size: clamp(90px, 22vw, 340px); font-weight: 100; line-height: 1.04; letter-spacing: -.02em; }
.ouverture-mot span { display: inline-block; translate: 0 110%; animation: ouverture-lettre .75s var(--doux) forwards; }
.ouverture-mot .l1 { animation-delay: .08s; }
.ouverture-mot .l2 { animation-delay: .16s; }
.ouverture-mot .l3 { animation-delay: .24s; }
.ouverture-passer { position: absolute; right: var(--marge); bottom: 28px; min-height: 44px; padding: 0 20px; border: 1px solid var(--glace); border-radius: 999px; background: transparent; color: var(--glace); }
@keyframes ouverture-trait { to { stroke-dashoffset: 0; } }
@keyframes ouverture-lettre { to { translate: 0 0; } }
@keyframes ouverture-part {
  from { clip-path: polygon(0 0, 100% 0, 100% 118%, 75% 106%, 55% 120%, 40% 104%, 22% 114%, 0 102%); }
  to { clip-path: polygon(0 0, 100% 0, 100% -4%, 75% -14%, 55% -1%, 40% -16%, 22% -6%, 0 -18%); }
}
@keyframes ouverture-vite {
  from { clip-path: polygon(0 0, 100% 0, 100% 118%, 75% 106%, 55% 120%, 40% 104%, 22% 114%, 0 102%); }
  to { clip-path: polygon(0 0, 100% 0, 100% -4%, 75% -14%, 55% -1%, 40% -16%, 22% -6%, 0 -18%); }
}

@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 84px); }
  .hero h1 { font-size: 15.5vw; }
  .alti { top: auto; bottom: 18px; translate: none; }
  .alti-barre { display: none; }
  .step:nth-child(2) .step-card { margin-left: 0; }
  .sejours a, .formules, .recit { grid-template-columns: minmax(0, 1fr); }
  .carnet { grid-template-columns: minmax(0, 1fr); }
  .carnet figure, .carnet figure:nth-child(1), .carnet figure:nth-child(4), .carnet figure:nth-child(5) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .demo-button, .sejours a, .nav a { transition: none; }
}
