/* Charte iceswitch.fr : bleu nuit, bleu abysse, bleu glace, rouge accent. Alfa Slab One + Outfit. */
:root {
  --nuit: #112539;
  --nuit-2: #0b1a29;
  --abysse: #005b89;
  --glace: #4ab4e7;
  --glace-pale: #e8f5fc;
  --rouge: #e30613;
  --rouge-fonce: #b8050f;
  --neige: #f5f9fc;
  --texte: #142536;
  --doux: #52657a;
  --trait: #d6e3ec;
  --blanc: #ffffff;
  --rayon: 14px;
  --titre: 'Alfa Slab One', Georgia, serif;
  --corps: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--neige);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--glace); color: var(--nuit); }
input, textarea { caret-color: var(--abysse); }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--glace); outline-offset: 2px; }
html { scrollbar-color: var(--doux) transparent; }
button, a { -webkit-tap-highlight-color: transparent; }

.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; }

/* ------------------------------------------------------------ en-tête */
.entete { background: var(--nuit); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.entete img { height: 34px; width: auto; }
.entete span { color: rgba(255,255,255,.62); font-size: 14px; }

/* ------------------------------------------------------------ badges */

/* ------------------------------------------------------------ héros opt-in */
.heros { background: var(--nuit); color: var(--blanc); overflow: hidden; }
.heros .conteneur { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 40px; grid-template-areas: "texte" "form" "photo"; }
.heros .texte { grid-area: texte; }
.heros .carte-form { grid-area: form; }
.heros .photo { grid-area: photo; }
.heros h1 {
  font-family: var(--titre); font-weight: 400;
  font-size: clamp(30px, 7.4vw, 50px); line-height: 1.08; letter-spacing: -.01em;
}
.heros h1 em { font-style: normal; color: var(--glace); }
.heros .chapo { margin-top: 16px; color: rgba(255,255,255,.86); font-size: 18px; max-width: 34em; text-wrap: balance; }
.heros .chapo strong { color: var(--blanc); font-weight: 600; }
.heros .preuve { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 15px; max-width: 34em; text-wrap: balance; }
.heros .photo { margin: 0; border-radius: var(--rayon); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.heros .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.heros .photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(11,26,41,.78); color: var(--blanc);
  padding: 6px 10px; border-radius: 8px; font-size: 13px;
}

@media (min-width: 900px) {
  .heros .conteneur { grid-template-columns: 1.15fr .85fr; grid-template-areas: "texte form" "photo form"; align-items: start; column-gap: 56px; row-gap: 28px; padding-top: 52px; padding-bottom: 64px; }
  .heros .photo { aspect-ratio: 16 / 10; }
  .heros .photo img { object-position: 50% 55%; }
  .heros .carte-form { position: sticky; top: 20px; }
}

/* ------------------------------------------------------------ formulaire */
.carte-form {
  background: var(--blanc); color: var(--texte);
  border-radius: var(--rayon); padding: 22px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
}
.carte-form h2 { font-size: 19px; font-weight: 700; }
.champs { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .champs.deux { grid-template-columns: 1fr 1fr; } }
label.champ { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--doux); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--trait); border-radius: 10px; background: var(--blanc);
  font-size: 17px; font-weight: 400; color: var(--texte);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--glace); box-shadow: 0 0 0 4px rgba(74,180,231,.2);
}
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--glace); color: var(--nuit);
  font-size: 18px; font-weight: 700; text-decoration: none; text-align: center; text-wrap: balance;
  transition: background-color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.bouton:hover { background: #7cc9ee; }
.bouton:active { transform: scale(.985); }
.bouton[disabled] { opacity: .65; cursor: progress; }
.bouton.secondaire { background: var(--nuit); }
.bouton.secondaire:hover { background: var(--abysse); }
.mention { margin-top: 12px; font-size: 13px; color: var(--doux); line-height: 1.45; text-wrap: balance; }
.mention a { color: var(--doux); }
.erreur { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdecee; color: #8c0a12; font-size: 15px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ sections */
.section { padding: 56px 0; }
.section.blanche { background: var(--blanc); }
.section h2.titre { font-family: var(--titre); font-weight: 400; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin-top: 10px; color: var(--nuit); }

.apprendre { margin: 28px 0 0; padding: 0; list-style: none; display: grid; }
.apprendre li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--trait); }
.apprendre li:last-child { border-bottom: 1px solid var(--trait); }
.apprendre h3 { font-size: 19px; font-weight: 700; color: var(--nuit); }
.apprendre p { color: var(--doux); font-size: 16px; max-width: 46em; }
@media (min-width: 760px) {
  .apprendre li { grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; }
}

.auteur { display: grid; gap: 24px; align-items: center; margin-top: 8px; }
.auteur img { border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; width: 100%; }
.auteur p + p { margin-top: 12px; }
@media (min-width: 760px) { .auteur { grid-template-columns: 320px 1fr; gap: 40px; } .auteur img { aspect-ratio: 4 / 5; } }

.relance { text-align: center; }
.relance .bouton { width: auto; min-width: 280px; margin-top: 22px; }

/* ------------------------------------------------------------ pied */
.pied { background: var(--nuit-2); color: rgba(255,255,255,.55); font-size: 13px; padding: 28px 0 96px; }
.pied a { color: rgba(255,255,255,.75); }
.pied .conteneur { display: grid; gap: 6px; }

/* ------------------------------------------------------------ page vidéo */
.salle { background: var(--nuit); color: var(--blanc); padding: 28px 0 44px; }
.salle h1 {
  font-family: var(--titre); font-weight: 400;
  font-size: clamp(24px, 5.4vw, 40px); line-height: 1.12;
}
.salle .sous { margin-top: 10px; color: rgba(255,255,255,.78); text-wrap: balance; max-width: 36em; }
.lecteur {
  /* Masterclass tournée en vertical (1080 × 1920) : on cale sur la hauteur de l'écran. */
  position: relative; margin: 22px auto 0; border-radius: var(--rayon); overflow: hidden;
  background: #000; aspect-ratio: 9 / 16; width: min(100%, 440px, calc(80svh * 9 / 16));
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}
.lecteur video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lecteur .attente {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(rgba(11,26,41,.72), rgba(11,26,41,.86)), url('/assets/img/immersion_bloc_de_glace.jpg') center 40% / cover;
}
.lecteur .attente p { max-width: 26em; color: rgba(255,255,255,.88); }
.lecteur .attente strong { display: block; font-size: 20px; margin-bottom: 6px; color: var(--blanc); }

.chapitres { display: flex; gap: 6px; margin: 12px auto 0; width: min(100%, 440px); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chapitres::-webkit-scrollbar { display: none; }
.chapitres button {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: rgba(255,255,255,.75); font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chapitres button.actif { background: var(--glace); border-color: var(--glace); color: var(--nuit); font-weight: 600; }
.chapitres button:disabled { cursor: default; }

.progression { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); margin: 14px auto 0; width: min(100%, 440px); overflow: hidden; }
.progression span { display: block; height: 100%; width: 0; background: var(--glace); transition: width .4s linear; }

.cta-video { margin-top: 26px; text-align: center; }
.cta-video .attendre { color: rgba(255,255,255,.72); font-size: 15px; }
.cta-video .ouvert { animation: monter .45s cubic-bezier(.2,.8,.2,1) both; }
.cta-video .ouvert .bouton { max-width: 460px; }
.cta-video .details { margin-top: 12px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.5; text-wrap: balance; }
@keyframes monter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cta-video .ouvert { animation: none; } }

/* ------------------------------------------------------------ réservation */
.etapes { display: flex; gap: 10px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.etapes span { display: inline-flex; align-items: center; gap: 8px; }
.etapes b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: var(--blanc); font-size: 13px;
}
.etapes .fait b, .etapes .encours b { background: var(--glace); color: var(--nuit); }
.etapes .encours { color: var(--blanc); font-weight: 600; }

.question { display: grid; gap: 10px; }
.question + .question { margin-top: 22px; }
.question legend, .question > span { font-weight: 700; font-size: 17px; color: var(--nuit); padding: 0; }
.question .aide { font-size: 14px; color: var(--doux); margin-top: 0; }
fieldset.question { border: 0; margin: 0; padding: 0; }
.choix { display: grid; gap: 8px; }
.choix label {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--trait); border-radius: 10px; background: var(--blanc); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choix input { accent-color: var(--abysse); width: 18px; height: 18px; flex: none; }
.choix label:has(input:checked) { border-color: var(--abysse); background: var(--glace-pale); }
.cal { height: 1000px; margin-top: 8px; border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
@media (min-width: 760px) { .cal { height: 720px; } }

/* ------------------------------------------------------------ confirmation */
.liste-prep { display: grid; gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.liste-prep li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.liste-prep li b {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--glace-pale); color: var(--abysse); font-size: 15px;
}

/* ------------------------------------------------------------ texte long */
.texte-long h2 { font-size: 21px; color: var(--nuit); margin-top: 32px; }
.texte-long p, .texte-long ul { margin-top: 10px; color: var(--texte); }
.texte-long ul { padding-left: 20px; }
.texte-long li + li { margin-top: 4px; }
.bouton:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--blanc), 0 0 0 5px var(--nuit); }

/* ------------------------------------------------------------ page vidéo : autorité, appel, preuves */
.autorite { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.35; }
.autorite li { display: block; }
.autorite b { color: var(--glace); font-weight: 700; white-space: nowrap; }
.salle .lecteur { width: min(100%, 440px, calc(72svh * 9 / 16)); margin-top: 18px; }
.salle .sous.centre { margin: 12px auto 0; text-align: center; font-size: 15px; }

.appel { scroll-margin-top: 0; }
.appel .intro { margin-top: 12px; color: var(--doux); max-width: 38em; }
.appel .etapes { color: var(--doux); }
.appel .etapes b { background: var(--trait); color: var(--nuit); }
.appel .etapes .encours { color: var(--nuit); }
.appel .carte-form, .appel #agenda { margin-top: 20px; }
.appel .carte-form { box-shadow: 0 0 0 1px var(--trait); }
.compteur { font-size: 13px; font-weight: 600; color: var(--abysse); margin-bottom: 10px; }
.pas-a-pas [data-pas]:not([hidden]) { animation: monter .3s cubic-bezier(.2,.8,.2,1) both; }
.navigation { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.navigation .bouton { flex: 1; }
.retour { background: none; border: 0; padding: 12px 4px; color: var(--doux); font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.temoin .conteneur { display: grid; gap: 28px; align-items: center; }
.temoin-video { margin: 0; justify-self: center; width: min(100%, 400px); }
.temoin-video video { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--rayon); background: var(--nuit); object-fit: cover; }
.temoin blockquote { margin: 22px 0 0; padding: 0; }
.temoin blockquote p { font-size: 21px; line-height: 1.4; color: var(--nuit); font-weight: 600; text-wrap: pretty; }
.temoin blockquote p::before { content: '« '; color: var(--abysse); }
.temoin blockquote p::after { content: ' »'; color: var(--abysse); }
.temoin cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: var(--doux); }
@media (min-width: 860px) { .temoin .conteneur { grid-template-columns: 400px 1fr; gap: 56px; } }

.faits { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.faits li { padding-left: 22px; position: relative; }
.faits li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--glace); }

.bref { margin: 24px 0 0; display: grid; }
.bref div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--trait); }
.bref div:last-child { border-bottom: 1px solid var(--trait); }
.bref dt { font-weight: 700; color: var(--nuit); }
.bref dd { margin: 0; color: var(--doux); }
@media (min-width: 640px) { .bref div { grid-template-columns: 160px 1fr; gap: 20px; } }

.faq { margin-top: 22px; display: grid; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; color: var(--nuit); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--abysse); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 16px; color: var(--doux); }

/* Opt-in : preuves d'autorité dans le premier écran */
.heros .autorite { margin-top: 14px; }
.section:not(.blanche) { background: var(--neige); }

.temoin-video figcaption { margin-top: 8px; font-size: 13px; color: var(--doux); text-align: center; }
.sous-titre { margin-top: 36px; font-size: 15px; font-weight: 700; color: var(--abysse); }
.references { margin: 10px 0 0; padding: 0; list-style: none; display: grid; }
.references li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--trait); }
.references li:last-child { border-bottom: 1px solid var(--trait); }
.references b { color: var(--nuit); }
.references span { color: var(--doux); font-size: 15px; }

.citations { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.citations p { font-size: 19px; line-height: 1.45; color: var(--nuit); text-wrap: pretty; }
.citations p::before { content: '« '; color: var(--abysse); }
.citations p::after { content: ' »'; color: var(--abysse); }
.citations span { display: block; margin-top: 10px; font-size: 14px; color: var(--doux); }
.citations span b { display: block; color: var(--nuit); font-size: 15px; }
@media (min-width: 860px) { .citations { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
