/* Produit par maquettes/programmes/exporter_site.mjs depuis programmes.css de la maquette : ne pas modifier à la main. */
/* Maquette « Tous les programmes » (29/10/2026) : ce qui s'ajoute au style du parcours (parcours.css). */

/* ---------- Le bouton et la colonne des espaces ---------- */
.ouvrir-espaces {
  width: 34px; height: 34px; margin-right: -18px; border: 0; border-radius: 6px; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--doux); flex: none;
}
.ouvrir-espaces svg { width: 22px; height: 22px; fill: currentColor; transition: transform .2s; }
.ouvrir-espaces:hover, .ouvrir-espaces[aria-expanded="true"] { color: var(--texte); background: rgba(255,255,255,.06); }
.ouvrir-espaces[aria-expanded="true"] svg { transform: rotate(180deg); }

.espaces {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(340px, 86vw);
  background: rgba(16,16,15,.98); border-right: 1px solid var(--trait);
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: grid; grid-template-rows: auto 1fr; padding: 18px 16px 24px; gap: 18px; overflow-y: auto;
}
.espaces.ouvert { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.55); }
.espaces-tete { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding-left: 4px; }
.fermer-espaces { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--doux); }
.fermer-espaces:hover { color: var(--texte); background: var(--carte); }
.espaces-liste { display: grid; gap: 10px; align-content: start; }
.espace {
  position: relative; display: grid; align-content: end; min-height: 112px; padding: 14px 16px;
  border-radius: 10px; overflow: hidden; isolation: isolate; background: #1a1a17 center 22% / cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset; transition: box-shadow .2s, transform .2s;
}
.espace::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.9) 15%, rgba(0,0,0,.25) 85%); }
.espace b { font-family: var(--titre); font-size: 22px; font-weight: 700; line-height: 1.1; }
.espace small { color: var(--doux); font-size: 13px; }
.espace:hover { transform: translateX(3px); box-shadow: 0 0 0 2px var(--papier); }
.espace.actif { box-shadow: 0 0 0 2px var(--papier); }
.espace.verrou { filter: grayscale(1); }
.espace.verrou b, .espace.verrou small { color: var(--doux); }
.espace .verrou-ic { inset: 12px 12px auto auto; place-items: start end; }
.espace .verrou-ic svg { width: 20px; height: 20px; }
.espaces-voile { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.espaces-voile.ouvert { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (min-width: 900px) { .espaces-voile.ouvert { background: rgba(0,0,0,.25); } }

/* ---------- Les cartes de programme ---------- */
.carte .vign.prog { background-position: center 25%; }
.carte .prog-meta { font-size: 12px; color: var(--sourd); margin-top: -4px; }
.etiq-acces { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: rgba(14,14,13,.78); color: var(--texte); }
.carte.verrou { cursor: pointer; }
.grille-progs { display: grid; gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.carte.verrou:hover .vign { transform: scale(1.035); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 2px var(--gris-marque); }

/* Le héros d'un programme (visuels de Lucie, 29/10/2026) : image sans texte, sujet placé à 62 % de la
   largeur, la gauche fondue dans le noir chaud ; on cadre donc sur le sujet, sur ordinateur et sur mobile. */
.heros.prog .heros-fond, .nr-fond .heros .heros-fond, #vue > .heros .heros-fond { background-position: 62% 30%; }
.episode .vign { background-position: 62% 30%; }
/* La carte « Tous les programmes » de la colonne des espaces : la collection en quatre bandes. */
.espace[href="#/"] { background-image: url('programmes/img/tous-programmes.jpg') !important; background-position: center 30%; }
.heros.prog.verrou .heros-fond { filter: grayscale(.85) brightness(.75); }
.heros .meta { color: #cfcec8; }

/* ---------- La page d'un programme ---------- */
.page.page-prog { padding-top: 8px; margin: 0; max-width: 1100px; }
.partie-tete { display: flex; align-items: baseline; gap: 12px; }
.partie-tete .num { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
/* Les semaines d'un parcours (EPP, 30/10/2026) */
.semaine-tete { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; font-size: 17px; font-weight: 600; }
.semaines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; background: var(--trait, #2a2a26); border-radius: 10px; overflow: hidden; }
.semaines li { display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--fond, #0e0e0d); font-weight: 600; }
.semaines li span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
.semaines li small { color: var(--sourd); font-weight: 400; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) { .semaines li { grid-template-columns: 1fr; gap: 4px; } }
/* Les modes de paiement d'un parcours (EPP : 1, 3 ou 6 fois) */
.options-paiement { display: grid; gap: 8px; }
.option-paiement { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; }
.option-paiement:has(input:checked) { border-color: var(--papier-2, #d8d6cc); }
.option-paiement input { accent-color: var(--papier); margin: 0; }
.option-paiement b { display: block; font-size: 16px; }
.option-paiement small { display: block; font-size: 12.5px; color: var(--doux); margin-top: 2px; }
.ep-gros svg { width: .7em; height: .7em; fill: currentColor; }
.semaine-tete span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sourd); }
.episodes.flou { position: relative; }
.episodes.flou .episode { filter: blur(2.5px); opacity: .55; user-select: none; }
.episodes.flou .episode:nth-child(-n+2) { filter: none; opacity: 1; }
.episodes.flou .episode:nth-child(-n+2) .vign { filter: grayscale(1) brightness(.45); }
.debloquer-bandeau {
  position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; justify-self: center;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 12px;
  background: rgba(30,30,27,.96); box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 1px var(--trait) inset; backdrop-filter: blur(8px);
}
.debloquer-bandeau svg { width: 18px; height: 18px; fill: var(--doux); flex: none; }
.debloquer-bandeau b { font-weight: 600; }

/* ---------- La fenêtre « Débloquer » ---------- */
.debloquer { padding: 0; border: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--texte); }
.debloquer::backdrop { background: rgba(0,0,0,.78); }
.debloquer-int { position: relative; background: var(--fond-2); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--trait) inset; }
.debloquer-image { aspect-ratio: 16 / 7; background: 62% 25% / cover; position: relative; }
.debloquer-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--fond-2) 2%, rgba(21,21,19,0) 70%); }
.debloquer-corps { display: grid; gap: 12px; padding: 4px 22px 22px; }
.debloquer-corps h2 { font-size: clamp(26px, 5vw, 34px); }
.debloquer-sous { color: var(--doux); }
.debloquer-inclus { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.debloquer-inclus li { display: flex; gap: 10px; align-items: center; }
.debloquer-inclus svg { width: 16px; height: 16px; fill: var(--ok); flex: none; }

/* ---------- Nouvelle Réalité verrouillée ---------- */
.nr-verrou { position: relative; }
.nr-verrou .nr-fond { filter: blur(7px) grayscale(.9) brightness(.55); pointer-events: none; user-select: none; }
.nr-verrou .nr-porte {
  position: fixed; inset: var(--haut) 0 0 0; z-index: 6; display: grid; place-items: center; padding: 24px var(--gouttiere);
  background: radial-gradient(60% 50% at 50% 45%, rgba(14,14,13,.55), rgba(14,14,13,.1));
}
.nr-porte-int { max-width: 520px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.nr-porte-int > svg { width: 34px; height: 34px; fill: var(--papier); }
.nr-porte-int h1 { font-size: clamp(36px, 7vw, 58px); }
.nr-porte-int p { color: #d6d5cf; font-size: 17px; }

/* ---------- Le lecteur (maquette) ---------- */
.lecteur-vide { aspect-ratio: 16 / 9; border-radius: 12px; background: #000 center / cover; position: relative; display: grid; place-items: center; overflow: hidden; }
.lecteur-vide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.lecteur-vide span { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%; background: rgba(236,236,234,.92); display: grid; place-items: center; }
.lecteur-vide svg { width: 30px; height: 30px; fill: #111; margin-left: 4px; }

/* ---------- La bande-annonce (VSL) et les prix (29/10/2026) ---------- */
.heros-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.heros.prog.verrou .heros-video { filter: brightness(.8); }
.son {
  position: absolute; right: var(--gouttiere); bottom: 40px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(236,236,234,.45); background: rgba(14,14,13,.35); display: grid; place-items: center; cursor: pointer;
}
.son svg { width: 20px; height: 20px; fill: var(--texte); }
.son:hover { background: rgba(14,14,13,.6); }
@media (min-width: 900px) { .son { bottom: 56px; } }
.prix-mini s { color: var(--sourd); }
.prix-mini b { color: var(--texte); font-weight: 600; }
.debloquer-prix { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.debloquer-prix s { color: var(--sourd); font-size: 17px; }
.debloquer-prix b { font-family: var(--titre); font-size: 34px; font-weight: 700; color: var(--texte); }
.debloquer-prix span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); font-weight: 600; }

/* ---------- Les textes de vente de Pierre (29/10/2026) ---------- */
.bloc-vente { max-width: 760px; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; color: #d6d5cf; line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--papier); }
.bonus { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; font-size: 14px; }
.bonus input { margin-top: 3px; accent-color: var(--papier); }
.bonus small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); font-weight: 600; }
.debloquer-garantie { display: grid; gap: 4px; font-size: 12.5px; color: var(--sourd); line-height: 1.45; }

/* ---------- Nouvelle Réalité sans accès : la page de Pierre (29/10/2026) ---------- */
.heros .nr-titre { font-size: clamp(30px, 5.2vw, 52px); }
.sous-bouton { font-size: 14px; color: var(--doux); }
.nr-page { gap: 44px; }
.nr-bloc { max-width: 760px; }
.nr-bloc p { color: #d6d5cf; line-height: 1.6; margin: 0 0 10px; }
.nr-bloc h3 { font-size: 20px; margin-top: 12px; }
.pont { font-size: 18px; color: var(--texte) !important; border-left: 2px solid var(--papier); padding-left: 14px; }
.mise-en-avant { font-family: var(--titre); font-size: clamp(22px, 3vw, 28px); line-height: 1.25; color: var(--texte) !important; margin-top: 18px !important; }
.niveaux { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: n; }
.niveaux li { padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--fond-2); }
.niveaux b { font-family: var(--titre); font-size: 20px; font-weight: 700; }
.niveaux small { display: block; color: var(--doux); font-size: 13px; margin: 2px 0 6px; }
.niveaux p { margin: 0; }
.temoins { display: grid; gap: 14px; }
@media (min-width: 700px) { .temoins { grid-template-columns: 1fr 1fr; } }
.temoins figure { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--carte); }
.temoins blockquote { margin: 0 0 10px; font-family: var(--titre); font-size: 21px; line-height: 1.3; }
.temoins figcaption { color: var(--doux); font-size: 14px; }
.nr-julien { display: grid; gap: 18px; align-items: center; }
@media (min-width: 700px) { .nr-julien { grid-template-columns: 220px 1fr; } }
.nr-julien img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: 12px; }
.signature { font-family: var(--titre); font-size: 20px; color: var(--texte) !important; }
.nr-garantie { padding: 18px 20px; border: 1px solid var(--trait); border-radius: 12px; }
.nr-bloc details { border-bottom: 1px solid var(--trait); padding: 12px 0; }
.nr-bloc summary { cursor: pointer; font-weight: 600; }
.nr-bloc details p { margin-top: 8px; }
.nr-final p:first-child { font-family: var(--titre); font-size: clamp(22px, 3vw, 28px); line-height: 1.25; color: var(--texte); }

/* L'aperçu des livres dans le haut de leur page (18/11/2026) : double page sur ordinateur, une page sur téléphone */
@media (min-width: 1000px) {
  .heros.livre-heros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
}
.heros.livre-heros { flex-wrap: wrap; gap: 28px; }
.liseuse { width: 100%; max-width: 640px; justify-self: end; outline: none; }
.liseuse:focus-visible .liseuse-livre { box-shadow: 0 0 0 2px var(--papier), 0 30px 70px rgba(0,0,0,.6); }
.liseuse-livre { position: relative; border-radius: 6px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.liseuse-pages { display: grid; cursor: pointer; user-select: none; background: transparent; }
.liseuse-pages.deux { grid-template-columns: 1fr 1fr; }
.liseuse-pages.une { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
.liseuse-pages img, .liseuse-pages .vide { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #f4f2ec; }
.liseuse-pages .vide { background: transparent; }
.liseuse-pages.deux img:first-child { border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 24px -18px rgba(0,0,0,.35); }
.liseuse-pages.deux img:last-child { border-radius: 0 4px 4px 0; }
.liseuse-pages.deux img + img { box-shadow: inset 18px 0 24px -18px rgba(0,0,0,.35); }
.liseuse-pages.une img { border-radius: 4px; }
.liseuse-pages.vers-g { animation: tourne-g .35s ease-out; }
.liseuse-pages.vers-d { animation: tourne-d .35s ease-out; }
@keyframes tourne-g { from { opacity: .3; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes tourne-d { from { opacity: .3; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.liseuse-prec, .liseuse-suiv { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(14,14,13,.72); color: var(--texte); display: grid; place-items: center; cursor: pointer; }
.liseuse-prec { left: -21px; } .liseuse-suiv { right: -21px; }
.liseuse-suiv svg { transform: scaleX(-1); }
.liseuse-prec svg, .liseuse-suiv svg { width: 18px; height: 18px; }
.liseuse-prec:disabled, .liseuse-suiv:disabled { opacity: 0; pointer-events: none; }
.liseuse-pied { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--doux); }
.liseuse-num { color: var(--texte); font-weight: 600; }
@media (max-width: 999px) { .liseuse { justify-self: center; } .liseuse-prec { left: 4px; } .liseuse-suiv { right: 4px; } }
@media (prefers-reduced-motion: reduce) { .liseuse-pages { animation: none !important; } }
/* L'aperçu de la page de présentation en fond du héros (stage, 19/11/2026) : agrandi pour sortir du cadre le logo incrusté en haut à droite. */
.heros-video.apercu-heros { transform: scale(1.25); transform-origin: 30% 60%; }
/* La pastille « Populaire » des trois méthodes simples les plus suivies (19/11/2026), comme sur la vitrine ; elle reste
   en couleur sur une carte verrouillée (grisée). */
.etiq-populaire { position: absolute; left: 8px; top: 8px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #ffd27f, #f08a5d); color: #1a1208; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
a.carte:has(> .etiq-populaire) { position: relative; }
.carte > .etiq-populaire { left: 10px; top: 10px; }
