/* Page « Qui est Laura » (maquette A, 2026-11-14) */
/* Maquettes « Qui est Laura » — ce qui est commun aux directions A et B.
   La charte vient de site/styles.css (chargée avant ce fichier). Rien ici ne modifie le site. */

/* Légende de photo : sous la photo, jamais dessus */
.legende { margin: 14px 0 0; font-size: 0.85rem; color: var(--ardoise); line-height: 1.45; }
.section--ardoise .legende { color: var(--bois); }

/* Photo dans une case de bois (même cadre que l'accueil) */
.case-photo { margin: 0; }
.case-photo .cadre img { aspect-ratio: auto; }

/* Le portrait dans la forme du meuble Premium : un rond coupé à plat en bas, posé sur son socle */
.portrait-meuble { margin: 0; width: min(100%, 380px); }
.portrait-meuble__rond { aspect-ratio: 1 / 0.9; overflow: hidden; position: relative; }
.portrait-meuble__rond img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; border-radius: 50%; }
.portrait-meuble__rond::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 12px var(--bois), inset 0 0 0 16px var(--bois-2); pointer-events: none; }
.portrait-meuble__socle { height: 14px; margin: 0 9%; background: var(--encre); border-radius: 3px; }

/* Bas de page : l'appel au diagnostic */
.appel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.appel h2 { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.4rem); margin: 0; line-height: 1; }
.appel__droite p { margin-bottom: 22px; }
.appel__tel { display: block; margin-top: 16px; font-weight: 700; }
@media (max-width: 900px) { .appel { grid-template-columns: 1fr; align-items: start; } }

/* Apparition générique, seulement si le JS tourne et que le mouvement est permis */
.js .monte:not(.vu) { opacity: 0; transform: translateY(22px); }
.js .monte { transition: opacity 600ms ease-out, transform 800ms var(--sortie); }
@media (prefers-reduced-motion: reduce) {
  .js .monte, .js .monte:not(.vu) { opacity: 1; transform: none; transition: none; }
}

/* Direction A — « Le chemin » : un sentier se trace au défilement, d'étape en étape, jusqu'au ö. */

/* ===== Premier écran ===== */
.a-tete { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.a-tete__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.a-titre { font-size: clamp(3rem, 1rem + 7.4vw, 8.6rem); line-height: 0.94; letter-spacing: -0.02em; margin: 0 0 0.32em; }
.a-titre .ligne { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.a-titre .ligne > span { display: inline-block; animation: a-ligne 900ms var(--sortie) both; }
.a-titre .ligne:nth-child(2) > span { animation-delay: 110ms; }
.a-titre .ligne:nth-child(3) > span { animation-delay: 220ms; }
.a-titre em { font-style: normal; color: var(--orange-2); }
@keyframes a-ligne { from { transform: translateY(105%); } to { transform: none; } }
.a-chapo { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); max-width: 46ch; margin: 0; animation: a-fondu 700ms ease-out 420ms both; }
@keyframes a-fondu { from { opacity: 0; } to { opacity: 1; } }
.a-tete .portrait-meuble { justify-self: end; animation: a-fondu 700ms ease-out 250ms both; }

/* ===== Le chemin ===== */
.chemin { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.chemin__piste { position: relative; --couloir: 168px; }
.chemin__trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chemin__fond { fill: none; stroke: var(--bois-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.chemin__plein { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; }
/* Sans JS : un pointillé droit dans le couloir, le chemin dessiné n'existe pas */
.chemin__piste::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 4px dotted var(--bois-2); transform: translateX(-2px); }
.js .chemin__piste::before { display: none; }

.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etape {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--couloir) minmax(0, 1fr);
  grid-template-areas: "texte couloir media"; align-items: start;
  padding-block: clamp(36px, 5vw, 72px);
}
.etape--inverse { grid-template-areas: "media couloir texte"; }
.etape__texte { grid-area: texte; }
.etape__media { grid-area: media; }
.etape__couloir { grid-area: couloir; position: relative; align-self: stretch; }
.jalon { position: absolute; left: 50%; top: 0.55em; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--creme); box-shadow: inset 0 0 0 5px var(--ardoise); }
.jalon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform 380ms var(--ressort); }
.jalon.est-passe::after { transform: scale(1); }
.etape .etape__repere { display: block; font-family: var(--titre); font-weight: 800; color: var(--orange-2); font-size: clamp(3rem, 1.6rem + 4.4vw, 6.6rem); line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 8px; }
.etape__repere small { font-size: 0.42em; letter-spacing: 0; color: var(--ardoise); margin-left: 0.15em; }
.etape h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 800; margin-bottom: 0.4em; }
.etape__texte p { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); }
.etape__media .cadre img { aspect-ratio: 4 / 3; }
.etape__media--etroit { max-width: 460px; }
.etape--inverse .etape__media--etroit { justify-self: end; }
.citation { margin: 0; font-family: var(--titre); font-weight: 700; color: var(--ardoise); font-size: clamp(1.7rem, 1.1rem + 1.9vw, 3rem); line-height: 1.12; text-wrap: balance; }
.citation::before { content: "«\00a0"; color: var(--orange); }
.citation::after { content: "\00a0»"; color: var(--orange); }
.citation-source { margin-top: 14px; font-weight: 700; color: var(--ardoise); font-size: var(--t-petit); }
.illustration { background: var(--creme-2); border-radius: var(--r-case); padding: 18px; box-shadow: 0 10px 0 var(--bois-2); }
.illustration img { width: 100%; height: auto; }

/* ===== Le jeu libre : les verbes arrivent chacun à son rythme ===== */
.verbes__grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.verbes__liste { list-style: none; margin: 0; padding: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(3.2rem, 1rem + 7.6vw, 9rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--creme); }
.verbes__liste li { display: block; }
.verbes__liste li:nth-child(2) { padding-left: 0.5em; }
.verbes__liste li:nth-child(3) { padding-left: 1em; color: var(--jaune); }
.verbes__rythme { font-family: var(--titre); font-weight: 700; color: var(--jaune); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); margin: 0 0 0.4em; }
.js .verbes__liste li { transition: opacity 500ms ease-out, transform var(--duree, 900ms) var(--ressort); transition-delay: var(--attente, 0ms); }
.js .verbes__liste:not(.vu) li { opacity: 0; transform: translateY(0.4em); }
.verbes__liste li:nth-child(1) { --duree: 700ms; --attente: 0ms; }
.verbes__liste li:nth-child(2) { --duree: 1150ms; --attente: 380ms; }
.verbes__liste li:nth-child(3) { --duree: 1500ms; --attente: 900ms; }
.verbes .cadre img { aspect-ratio: 16 / 10; }

/* ===== Le ö ===== */
.o-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.o-titre { font-size: clamp(2.6rem, 1rem + 5vw, 6rem); line-height: 0.95; margin-bottom: 0.35em; }
.o-dessin { display: grid; grid-template-columns: minmax(150px, 260px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 36px; }
.o-dessin svg { width: 100%; height: auto; overflow: visible; }
.o-rond { fill: none; stroke: var(--orange); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.o-point { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.o-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.o-notes li { border-left: 4px solid var(--orange); padding-left: 16px; }
.o-notes b { display: block; font-family: var(--titre); font-weight: 800; font-size: var(--t-3); color: var(--ardoise); line-height: 1.15; margin-bottom: 4px; }
.js .o-dessin .o-rond { stroke-dasharray: 1.02 1.02; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1300ms var(--entree-sortie); }
.js .o-dessin.vu .o-rond { stroke-dashoffset: 0; }
.js .o-dessin .o-point { transform: scale(0); transition: transform 520ms var(--ressort); }
.js .o-dessin.vu .o-point { transform: none; transition-delay: 1150ms; }
.js .o-dessin.vu .o-point + .o-point { transition-delay: 1260ms; }
.o-photo .cadre img { aspect-ratio: 4 / 3; }

/* ===== L'approche : trois tiroirs sur une planche qui se met d'aplomb ===== */
.approche__tete { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.approche__tete h2 { font-size: clamp(2.4rem, 1rem + 4.4vw, 5.2rem); line-height: 0.98; margin: 0; }
.approche__tete p { margin: 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.equilibre { margin-top: clamp(48px, 6vw, 88px); }
.equilibre__planche { transform-origin: 50% 100%; }
.equilibre__titre { color: var(--jaune); font-size: var(--t-3); margin: 0 0 22px; }
.section--ardoise .equilibre__titre { color: var(--jaune); }
.equilibre__tiroirs { list-style: none; margin: 0; padding: 0 3%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: stretch; }
.equilibre__tiroirs li { background: var(--jaune); color: var(--encre); border-radius: var(--r-tiroir) var(--r-tiroir) 0 0; padding: 22px 22px 26px; font-family: var(--titre); font-weight: 800; font-size: clamp(1.2rem, 0.9rem + 1vw, 1.9rem); line-height: 1.08; box-shadow: inset 0 -6px 0 var(--jaune-2); position: relative; }
.equilibre__tiroirs li { font-family: var(--texte); font-weight: 600; font-size: 1rem; line-height: 1.45; }
.equilibre__tiroirs b { display: block; font-family: var(--titre); font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.7rem); line-height: 1.05; margin-bottom: 10px; text-wrap: balance; }
.equilibre__tiroirs li::before { content: ""; display: block; width: 46px; height: 10px; border-radius: 999px; background: var(--jaune-2); margin-bottom: 18px; }
.equilibre__bois { height: 22px; background: var(--bois); border-radius: 4px; box-shadow: 0 8px 0 var(--bois-2); }
.equilibre__note { margin: 36px 0 0; color: var(--bois-3); }
.js .equilibre__planche { transition: transform 1400ms var(--ressort) 150ms; }
.js .equilibre:not(.vu) .equilibre__planche { transform: rotate(-3.2deg); }

/* ===== Téléphone et tablette ===== */
@media (max-width: 1024px) {
  .a-tete__grille { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .equilibre__tiroirs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .equilibre__tiroirs li { border-radius: 0; }
  .equilibre__tiroirs li:nth-child(-n+2) { border-radius: var(--r-tiroir) var(--r-tiroir) 0 0; }
  .equilibre__tiroirs li:nth-child(n+3) { border-top: 3px solid var(--jaune-2); }
}
@media (max-width: 900px) {
  .a-tete__grille { grid-template-columns: 1fr; align-items: start; }
  .a-tete .portrait-meuble { justify-self: start; width: min(70%, 260px); }
  .chemin__piste { --couloir: 40px; }
  .chemin__piste::before { left: 20px; }
  .etape, .etape--inverse { grid-template-columns: var(--couloir) minmax(0, 1fr); grid-template-areas: "couloir texte" "couloir media"; column-gap: 14px; row-gap: 28px; }
  .etape__media--etroit, .etape--inverse .etape__media--etroit { justify-self: start; }
  .verbes__grille, .o-grille, .approche__tete { grid-template-columns: 1fr; }
  .o-dessin { grid-template-columns: 130px minmax(0, 1fr); gap: 20px; }
  .equilibre__tiroirs { grid-template-columns: 1fr; padding: 0 6%; gap: 0; }
  .equilibre__tiroirs li { border-radius: 0; }
  .equilibre__tiroirs li:first-child { border-radius: var(--r-tiroir) var(--r-tiroir) 0 0; }
  .equilibre__tiroirs li + li { border-top: 3px solid var(--jaune-2); }
}
@media (max-width: 560px) {
  .o-dessin { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .a-titre { font-size: clamp(3rem, 0.6rem + 6.4vw, 7.2rem); }
  .a-tete .portrait-meuble { width: min(100%, 320px); }
}

/* ===== Moins d'animations : tout est en place, le chemin est entièrement tracé ===== */
@media (prefers-reduced-motion: reduce) {
  .a-titre .ligne > span, .a-chapo, .a-tete .portrait-meuble { animation: none; }
  .js .verbes__liste li, .js .verbes__liste:not(.vu) li { opacity: 1; transform: none; transition: none; }
  .js .o-dessin .o-rond { stroke-dashoffset: 0; transition: none; }
  .js .o-dessin .o-point { transform: none; transition: none; }
  .js .equilibre__planche, .js .equilibre:not(.vu) .equilibre__planche { transform: none; transition: none; }
  .jalon::after { transition: none; }
}

/* Le ö à vague remplace le portrait (2026-11-14) */
.portrait-meuble--o { max-width: 320px; }

/* Le grand ö fidèle à l'icône : la vague ondule dans le disque. Sans mouvement, le disque est plein. */
@media (prefers-reduced-motion: no-preference) {
  .laura-o__plein { opacity: 0; }
}

/* Le mot de la fin, signé par Laura */
.mot-de-fin { margin: 0 0 clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 2px solid var(--bois-2); max-width: 980px; }
.mot-de-fin blockquote { margin: 0; }
.mot-de-fin p { margin: 0; font-family: var(--titre); font-weight: 700; color: var(--ardoise); font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); line-height: 1.14; text-wrap: balance; }
.mot-de-fin p::before { content: "«\00a0"; color: var(--orange); }
.mot-de-fin p::after { content: "\00a0»"; color: var(--orange); }
.mot-de-fin figcaption { margin-top: 18px; font-weight: 700; color: var(--orange-2); font-size: var(--t-3); }

/* 18/11 (Marone) : le grand ö n'est plus rejeté au bord droit avec un vide à sa gauche : il se centre dans sa colonne,
   à la hauteur du titre, un peu plus grand */
@media (min-width: 901px) {
  .a-tete__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); align-items: center; }
  .a-tete .portrait-meuble--o { justify-self: center; width: min(100%, 340px); }
}

/* 19/11 (Laura) : le ö doit rester identique à l'original. Le trait se dessine, puis laisse place au vrai ö plein. */
.o-dessin .o-rond { opacity: 0; }
.js .o-dessin .o-rond { opacity: 1; }
.js .o-dessin .o-plein { opacity: 0; transition: opacity 500ms ease-out; }
.js .o-dessin.vu .o-plein { opacity: 1; transition-delay: 1200ms; }
.js .o-dessin.vu .o-rond { opacity: 0; transition: stroke-dashoffset 1300ms var(--entree-sortie), opacity 400ms ease-out 1350ms; }
@media (prefers-reduced-motion: reduce) {
  .js .o-dessin .o-plein { opacity: 1; transition: none; }
  .js .o-dessin .o-rond { opacity: 0; }
}

/* ===== Corrections après le passage du testeur (2026-11-20) ===== */
/* Écrans larges mais bas (PC Windows zoomé, 1536 × 730) : le titre tient sur trois lignes et le texte d'introduction
   reste au-dessus du bas de l'écran */
@media (min-width: 901px) and (max-height: 800px) {
  .a-titre { font-size: clamp(3rem, 0.6rem + 6.4vw, 6.1rem); }
}
/* Moins d'animations : la vague reste, immobile, dans tout le trou (comme sur l'accueil). Le disque plein posé
   par-dessus laissait dépasser un bout de vague à gauche, ou un croissant vide : il n'est plus affiché. */
.portrait-meuble--o .laura-o__plein { display: none; }

/* Histoire des banquiers : photo de Laura en hauteur (25/11) */
.etape__media .cadre--debout img { aspect-ratio: 3 / 4; }
/* Testeur 25/11 : sur un portable Windows (1280 × 593), la photo dépassait la fenêtre. Jamais plus haute que l'écran. */
.etape__media .cadre--debout img { max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); min-height: 280px; }
