/* Pièces de l'accueil sur les pages intérieures (01/12/2026 au soir).
   Greg, 17 h : « colle vraiment à la qualité graphique de l'accueil ». Les pages reprennent les classes mêmes de l'accueil
   (haut, aurore, haut-scene, hv, profil, panneau photo, manifeste, grille-fonctions, colonnes, garanties, journee, lignes, cree, faq-deux, final).
   Ce fichier n'ajoute que ce que l'accueil n'avait pas : la carte de nuit en vrai texte, la photo hors de #usages, l'encadré des coulisses. */

/* ---------- Le haut ---------- */
.haut-p .texte { max-width: 920px; }
.haut-p h1 { text-wrap: balance; }
.entete-sec h2, .hv-carte .hv-titre, .fonction h3 { text-wrap: balance; }
.haut-p h1 em { font-style: normal; }
.haut-p h1 em span { background: linear-gradient(180deg, #E2B466, #B88334); -webkit-background-clip: text; background-clip: text; color: transparent; }
.haut-p .haut-fin { display: flex; justify-content: center; padding: 54px 0 70px; position: relative; z-index: 1; }
.haut-p .haut-fin .r-etoile svg { animation: r-scintille 3.4s ease-in-out infinite; }
.haut-p .boutons { justify-content: center; }

/* Un des 3 films de l'accueil, avec sa propre image d'attente */
.hv-p { background-image: var(--p-o); }
@media (max-width: 599px) { .hv-p { background-image: var(--p-m); } }

/* ---------- La carte de nuit : le cadre du film de l'accueil, en vrai texte ---------- */
.hv-carte { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 5%; padding: 0 5.5% 0 7%;
  background: radial-gradient(115% 120% at 14% 0%, #1f3f7c 0%, #12295a 38%, #0B1A33 80%); }
.hv-carte::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at 78% 30%, rgba(91, 127, 214, .22), transparent 62%); }
.hv-carte .hv-t { position: relative; z-index: 1; text-align: left; }
.hv-carte .hv-titre { font-family: var(--titre); color: #fff; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.hv-carte .hv-sous { margin-top: 14px; color: #b4c4ee; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; text-wrap: pretty; }
.hv-carte .hv-ecran { position: relative; z-index: 1; text-align: left; }
.hv-carte .hv-ecran > .fen, .hv-carte .hv-ecran > .passage { width: 100%; max-width: 560px; margin-left: auto; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.hv-carte .r-curseur { opacity: 1; left: 62%; top: 66%; animation: r-travaille 8s 1.2s ease-in-out infinite; }
.hv-carte .hv-etoile { position: absolute; right: 5%; top: 8%; width: 20px; height: 20px; color: #E9C88A; filter: drop-shadow(0 0 10px rgba(233, 200, 138, .85)); animation: r-scintille 3.2s ease-in-out infinite; z-index: 1; }
.hv-carte .hv-etoile svg { width: 100%; height: 100%; }
.hv-carte > .r-pose { position: absolute; left: 7%; right: auto; bottom: 8%; width: min(300px, 30%); opacity: 1; transform: none; transition: none; z-index: 4; padding: 18px 20px 16px; }
.hv-carte > .r-pose strong { font-size: clamp(32px, 3.4vw, 46px); margin: 8px 0 6px; }
.hv-carte > .r-pose p { font-size: 14px; }
@media (max-width: 900px) {
  .hv-carte { aspect-ratio: auto; grid-template-columns: 1fr; gap: 22px; padding: 34px 26px 30px; }
  .hv-carte .hv-t { text-align: center; }
  .hv-carte .hv-ecran > .fen { margin: 0 auto; }
  .hv-carte > .r-pose { position: relative; left: auto; bottom: auto; width: auto; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 599px) {
  .haut-scene .hv-carte { width: auto; margin-left: 0; border-radius: 22px; aspect-ratio: auto; box-shadow: 0 30px 60px -36px rgba(11, 26, 51, .6); padding: 28px 16px 22px; }
  .hv-carte .hv-titre { font-size: 25px; }
  .hv-carte .r-curseur { left: 50%; top: 70%; }
}
@media (prefers-reduced-motion: reduce) { .hv-carte .r-curseur, .hv-carte .hv-etoile, .haut-p .haut-fin .r-etoile svg { animation: none; } }

/* La carte de nuit au milieu d'une page (le moment fort), dans le même cadre que le haut */
.carte-sec { padding: 40px 0 96px; }
.carte-sec .entete-sec { margin-bottom: 40px; }
.carte-sec .hv { width: min(100%, 1080px); margin: 0 auto; }

/* ---------- La photo et sa demande, comme « Des usages concrets » ---------- */
.scene-photo.prep .cadre-photo, .scene-photo.prep .demande, .scene-photo.prep .cote-reponse .reponse, .scene-photo.prep .cote-reponse .tape { opacity: 0; }
.scene-photo.vu .cadre-photo { animation: rideau 1.1s cubic-bezier(.7, 0, .2, 1) both; }
.scene-photo.vu .cadre-photo img { animation: zoomPhoto 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.scene-photo.vu .demande { animation: monte .6s .45s cubic-bezier(.2, .7, .2, 1) both; }
.scene-photo.vu .cote-reponse { animation: fond .6s cubic-bezier(.2, .7, .2, 1) both; }
.scene-photo.vu .cote-reponse .tape { animation: tape .8s .3s both; }
.scene-photo.vu .cote-reponse .reponse { animation: monte .6s .95s cubic-bezier(.2, .7, .2, 1) both; }
.scene-photo .reponse ol { margin: 10px 0 4px 18px; }
.scene-photo .reponse ol li { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .scene-photo .cadre-photo, .scene-photo .cadre-photo img, .scene-photo .demande, .scene-photo .cote-reponse, .scene-photo .cote-reponse .reponse { animation: none !important; opacity: 1 !important; } }

/* ---------- Cartes ---------- */
.fonction h3 a { color: inherit; text-decoration: none; }
.fonction h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fonction.apprend .grand-or, .grand-or { display: block; position: relative; font-family: var(--titre); font-size: clamp(42px, 4.6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 16px 0 4px;
  background: linear-gradient(180deg, #E2B466, #B88334); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fonction.apprend .barres-apprend { position: relative; }

/* ---------- Étapes : une étape sans carte garde sa place ---------- */
.ligne .mini-carte.vide-c { visibility: hidden; }

/* ---------- Coulisses : la maquette à côté du journal ---------- */
.cree .cote-journal { display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: start; }
.cree .maquette-c { margin: 0; }
.cree .maquette-c img { display: block; width: 150px; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); transform: rotate(-2deg); }
.cree .maquette-c figcaption { margin-top: 12px; font-size: 13px; color: #b4c4ee; }
@media (max-width: 600px) { .cree .cote-journal { grid-template-columns: 96px 1fr; gap: 20px; } .cree .maquette-c img { width: 96px; } }

/* ---------- Écrans de Joris sans animation : la demande est déjà tapée, l'invitation grise s'efface ---------- */
.fen:not([data-anim]) .saisie .vide { display: none; }
.fen:not([data-anim]) .saisie [data-tape] { opacity: 1; }

/* ---------- Divers ---------- */
.sec .precision a { color: inherit; }
.manifeste + .sec, .manifeste + .defile { border-top: 0; }
