/* ==========================================================================
   MARAH DE A À Z — bandes du haut, navigation par pastilles, sections
   Fonds alternés : rose poudré / crème foncé (les photos apportent la couleur).
   ========================================================================== */

main.plein { overflow-x: clip; }

/* ---------- Haut de page : casting de 7 Marah (une au centre, les autres de chaque côté) ---------- */
#haut { position: relative; height: clamp(600px, 92vh, 840px); padding: calc(var(--hauteur-entete) + 16px) var(--marge) 0; display: flex; flex-direction: column; }
#haut { background: #4d6020 url('../images/aaz/aaz-fond-haut.jpg') center bottom / max(1500px, 150%) auto repeat-x; } /* pièce (image + son miroir, pour être plus petite que l'écran) : mur vert, boiserie, carrelage à étoiles */
#titre-haut { text-align: center; margin: 0; font-weight: 400; position: relative; z-index: 20; }
#haut #titre-haut .petit, #haut #titre-haut .grand { color: var(--creme); }#casting { position: relative; flex: 1; --ecart: clamp(135px, 20vw, 280px); }
.cast-scene { position: absolute; inset: 44px 0 84px 0; }
.cast-fond { display: none; position: absolute; left: 50%; bottom: 112px; width: min(360px, 62vw); height: calc(100% - 100px); transform: translateX(-50%); border-radius: 999px 999px 0 0; z-index: 0; transition: background .5s; }
.cast-fond--rose { background: var(--rose); }
.cast-fond--creme { background: var(--creme-fonce); }
.cast { position: absolute; left: 50%; bottom: 0; height: 100%; width: 240px; margin-left: -120px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%;
  translate: calc(var(--d, 0) * var(--ecart)) 0;
  scale: calc(1 - min(var(--a, 0), 1) * .34 - max(var(--a, 0) - 1, 0) * .07);
  opacity: calc(1 - max(var(--a, 0) - 1, 0) * .12);
  transition: translate .7s cubic-bezier(.4, 0, .2, 1), scale .7s cubic-bezier(.4, 0, .2, 1), opacity .7s; }
.cast:not(.centre):focus-visible { opacity: 1; } @media (hover: hover) and (pointer: fine) { .cast:not(.centre):hover { opacity: 1; } }
.cast-photo { display: block; width: 100%; height: 100%; }
.cast-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.cast-photo:not(.charge) { border: 1px dashed color-mix(in srgb, var(--chocolat) 45%, transparent); border-radius: 120px 120px 6px 6px; background: color-mix(in srgb, var(--creme) 70%, transparent); }
.cast-photo:not(.charge) .image-nom { font-size: .6rem; }
.cast-etiquette { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 4px 20px; background: var(--creme); border-radius: 999px; display: flex; flex-direction: row; align-items: center; gap: 14px; white-space: nowrap; text-align: center; z-index: 20; }
.cast-num { font-size: .8rem; letter-spacing: .18em; opacity: .75; }
.cast-nom { font-family: var(--titre); text-transform: uppercase; font-size: 1.7rem; line-height: 1.02; }
.cast-go { border: 0; background: none; padding: 2px 6px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--bleu); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cast-fleche { position: absolute; top: 40%; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--bleu); background: var(--creme); color: var(--bleu); font-size: 1.2rem; cursor: pointer; z-index: 30; transition: background .2s, color .2s, opacity .2s; }
@media (hover: hover) and (pointer: fine) { .cast-fleche:hover:not(:disabled) { background: var(--bleu); color: var(--creme); } }
.cast-fleche:disabled { opacity: .3; cursor: default; }
.cast-fleche--g { left: 0; }
.cast-fleche--d { right: 0; }#titre-haut .petit { display: block; font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: none; }
#titre-haut .grand { display: block; font-family: var(--titre); text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; margin-top: 4px; }

/* ---------- Pastilles de navigation (à droite, après les bandes) ---------- */
#pastilles { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 40; opacity: 0; transition: opacity .3s; pointer-events: none; }
#pastilles.visible { opacity: 1; pointer-events: auto; }
#pastilles button { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--chocolat); padding: 0; cursor: pointer; transition: transform .25s, background .25s; }
#pastilles button:nth-child(odd) { background: var(--rose); }
#pastilles button:nth-child(even) { background: var(--creme-fonce); }
#pastilles button.on { transform: scale(1.4); background: var(--bleu); border-color: var(--bleu); }

/* ---------- Sections ---------- */
.sec { scroll-margin-top: var(--hauteur-entete); padding: clamp(50px, 8vw, 100px) var(--marge); }
.sec--rose { background: var(--rose); }
.sec--creme { background: var(--creme-fonce); }
.sec .dedans { max-width: 1160px; margin: 0 auto; }
.titre-section { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .95; margin: .2em 0 0; }
.phrase-sec { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: .3em 0 0; line-height: 1.15; }
.suite { font-size: 1.1rem; margin: 28px 0 0; }
.etiquette { font-size: .72rem; letter-spacing: .22em; opacity: .7; }

/* ---------- 1 · Qui suis-je ---------- */
.qui-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); align-items: start; }
.scene { position: sticky; top: calc(var(--hauteur-entete) + 16px); cursor: pointer; outline-offset: 4px; }
.scene-cadre { position: relative; aspect-ratio: 1083 / 1665; border-radius: 12px; overflow: hidden; background: var(--creme-fonce); width: min(100%, calc((100svh - var(--hauteur-entete) - 100px) * 1083 / 1665)); margin: 0 auto; } /* même proportion que les images : la photo n'est jamais coupée (chaussures comprises) */
.scene-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transition: opacity .25s; }
/* la nouvelle photo apparaît par-dessus l'ancienne, qui reste visible dessous : plus de blanc entre deux têtes */
.scene-cadre img.prev { opacity: 1; z-index: 1; transition: none; }
.scene-cadre img.on { opacity: 1; z-index: 2; }
.scene-cadre .cale { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1em; font-size: .75rem; letter-spacing: .12em; opacity: .6; transition: opacity .5s; }
.bulle { position: absolute; left: 50%; top: 1.5%; max-width: 62%; background: #fff; color: var(--chocolat); border: 2px solid var(--chocolat); border-radius: 16px; padding: 10px 14px; font-size: .95rem; line-height: 1.35; box-shadow: 3px 3px 0 var(--chocolat); opacity: 0; transform: scale(.6) translateY(10px); transform-origin: 0 100%; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .6, 1); pointer-events: none; z-index: 2; }
.bulle.on { opacity: 1; transform: none; }
.indice-scene { margin: 14px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; color: var(--chocolat); }
.indice-scene em { color: var(--bleu); }
.hello h3 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; }
.hello h3 em { font-family: inherit; font-style: normal; text-transform: inherit; color: var(--bleu); }
.hello p { margin: 8px 0 0; font-size: 1.1rem; }
.hello p em { font-size: 1.15em; }

.postits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 26px; align-items: start; }
.postit { position: relative; background: center / 100% 100% no-repeat; aspect-ratio: var(--ar, 1); padding: var(--pt, 26%) 12% 12%; box-sizing: border-box;
  font-family: 'Baby Doll', 'Segoe Print', cursive; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; color: var(--chocolat);
  filter: drop-shadow(0 8px 8px rgba(46,32,25,.22)); transform: rotate(var(--r)); opacity: 0; }
.postit--carreaux { background-image: url("../images/aaz/postits/carreaux.png"); --ar: 660 / 411; --pt: 26%; padding-bottom: 8%; }
.postit--bleu { background-image: url("../images/aaz/postits/bleu.png"); --ar: 700 / 789; --pt: 31%; }
.postit--rose { background-image: url("../images/aaz/postits/rose.png"); --ar: 700 / 690; --pt: 27%; }.postit:nth-child(1) { grid-column: 1 / span 2; max-width: 88%; justify-self: center; }
.postit:nth-child(3) { margin-top: 0; }
.postit em { font-family: 'Baby Doll', 'Segoe Print', cursive; font-style: normal; font-weight: 400; color: var(--bleu); }
.postit .etiq { display: block; font-family: var(--texte); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; margin-bottom: 6px; opacity: .7; }.postit.in { animation: colle .8s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes colle { 0% { opacity: 0; transform: translateY(-40px) scale(1.25) rotate(calc(var(--r) + 10deg)); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--r)); } }
.postit.fini { opacity: 1; animation: none; transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .35s; }
@media (hover: hover) and (pointer: fine) { .postit.fini:hover { transform: translateY(-8px) scale(1.04) rotate(calc(var(--r) * -1)); filter: drop-shadow(0 16px 14px rgba(46,32,25,.26)); animation: gigote .5s ease-in-out; } }
@keyframes gigote { 0% { transform: rotate(var(--r)); } 25% { transform: translateY(-6px) rotate(calc(var(--r) + 4deg)); } 55% { transform: translateY(-8px) rotate(calc(var(--r) - 3deg)); } 100% { transform: translateY(-8px) scale(1.04) rotate(calc(var(--r) * -1)); } }

/* ---------- 2 · Expériences : index géant (une ligne par stage, un dossier qui s'ouvre en place) ---------- */
.dossiers { display: block; margin-top: clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--chocolat); }
.d-invite { font-size: .9rem; margin: 12px 0 0; }
.dossier { border-top: 1px solid var(--chocolat); color: var(--chocolat); }
.d-ligne { margin: 0; font: inherit; text-transform: none; letter-spacing: 0; }
.d-entete { position: relative; display: grid; grid-template-columns: clamp(44px, 5vw, 72px) minmax(0, 1fr) auto 44px; align-items: baseline; gap: 0 clamp(12px, 2vw, 28px); width: 100%; padding: clamp(18px, 2.6vw, 34px) 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: opacity var(--d-2) var(--ease-out); }
.d-entete:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; }
.d-index { font-size: .8rem; letter-spacing: .08em; }
.d-nom { min-width: 0; line-height: 1; }
.d-nom-texte { display: inline; font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 7.2vw, 6.4rem); line-height: .95; letter-spacing: -.005em; transition: color var(--d-2) var(--ease-out); }
.d-tag { display: inline-block; vertical-align: top; margin-left: .8rem; font-size: .8rem; letter-spacing: .04em; line-height: 1.3; }
.d-dates { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: right; white-space: nowrap; }
.d-plus { position: relative; width: 22px; height: 22px; justify-self: end; align-self: center; }
.d-plus::before, .d-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform var(--d-2) var(--ease-out); }
.d-plus::after { transform: rotate(90deg); }
.dossier.ouvert .d-plus::after { transform: rotate(0deg); }
.dossier.ouvert .d-nom-texte { color: var(--bleu); }

/* photo qui se dévoile à côté du nom (souris seulement) */
.d-apercu { display: none; }
@media (hover: hover) and (pointer: fine) {
  .d-apercu { display: block; position: absolute; right: clamp(190px, 21vw, 320px); top: 50%; width: clamp(90px, 10vw, 150px); aspect-ratio: 4 / 5; margin-top: calc(clamp(90px, 10vw, 150px) * -.625); z-index: 2; pointer-events: none; overflow: hidden; border-radius: 3px; clip-path: inset(100% 0 0 0); transition: clip-path var(--d-3) var(--ease-out); }
  .d-apercu img { transform: scale(1.18); transition: transform var(--d-3) var(--ease-out); }
  .d-entete:hover .d-apercu, .d-entete:focus-visible .d-apercu { clip-path: inset(0 0 0 0); }
  .d-entete:hover .d-apercu img, .d-entete:focus-visible .d-apercu img { transform: scale(1); }
  .dossier.ouvert .d-apercu { clip-path: inset(100% 0 0 0); }
  .dossiers:hover .dossier:not(:hover) .d-entete { opacity: .42; }
  .d-entete:hover .d-nom-texte { color: var(--bleu); }
}

/* le dossier qui s'ouvre en place : la hauteur se déroule, puis les blocs apparaissent l'un après l'autre */
.d-panneau { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-3) var(--ease-out); }
.dossier.ouvert .d-panneau { grid-template-rows: 1fr; }
.d-panneau-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s var(--d-3); }
.dossier.ouvert .d-panneau-in { visibility: visible; transition-delay: 0s; }
.d-corps { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 6px 0 clamp(36px, 5vw, 60px); }
.d-gauche, .d-droite > * { opacity: 0; transform: translateY(18px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-out); }
.dossier.ouvert .d-gauche { opacity: 1; transform: none; transition-delay: .1s; }
.dossier.ouvert .d-droite > * { opacity: 1; transform: none; transition-delay: calc(.14s + var(--i, 0) * .06s); }

.d-gauche { position: sticky; top: calc(var(--hauteur-entete) + 24px); align-self: start; min-width: 0; }
.badge { position: relative; width: min(310px, 100%); margin: 0; }
.badge .balance { position: relative; inset: auto; display: block; transform-origin: 50% 0; animation: balance 3.2s ease-in-out infinite alternate; cursor: pointer; perspective: 800px; }
@keyframes balance { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.retourne { position: relative; display: block; width: 100%; aspect-ratio: 236 / 200; transform-style: preserve-3d; transition: transform .6s; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.retourne.on { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; container-type: inline-size; background: url("../images/aaz/dossiers/carte-vide.png") 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 5px 6px rgba(46, 32, 25, .3)); text-align: left; }
.face.dos { transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; padding: 30% 12% 12%; text-align: center; }
.face.dos span { font-family: var(--serif); font-style: italic; font-size: 6.4cqw; line-height: 1.3; }
.face .photo-badge { position: absolute; left: 8.5%; top: 37%; width: 40%; height: 46%; background: var(--creme-fonce); border: 1px solid rgba(46, 32, 25, .35); box-shadow: inset 0 0 6px rgba(46, 32, 25, .18); overflow: hidden; }
.face .photo-badge img { width: 100%; height: 100%; object-fit: cover; }
.face .photo-badge .image-nom { font-size: .4rem; }
.carte-infos { position: absolute; left: 53%; top: 33%; width: 39%; height: 52%; display: flex; flex-direction: column; justify-content: space-between; }
.carte-infos .membre { font-family: var(--titre); font-size: 5.6cqw; letter-spacing: .08em; line-height: 1; }
.carte-infos .fl { font-size: 2.5cqw; letter-spacing: .12em; opacity: .65; line-height: 1.1; }
.carte-infos .fv { font-size: 2.85cqw; font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(46, 32, 25, .45); line-height: 1.35; }

.d-droite { min-width: 0; }
.d-poste { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; }
.d-accroche { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.25; margin: 14px 0 0; max-width: 40ch; text-wrap: balance; }
.d-resume { font-size: 1rem; line-height: 1.65; margin: 16px 0 0; max-width: 64ch; }
.d-reperes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(46, 32, 25, .28); }
.d-repere { font-size: .82rem; line-height: 1.3; }
.d-repere b { font-family: var(--titre); font-weight: 400; font-size: 1.5rem; line-height: 1; margin-right: 2px; vertical-align: -2px; }
.d-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; margin-top: 22px; }
.d-titre { font-size: .72rem; letter-spacing: .16em; font-weight: 600; margin: 0 0 9px; }
.d-outils { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.d-outils li { border: 1px solid var(--chocolat); border-radius: 999px; padding: 3px 11px; font-size: .8rem; line-height: 1.4; }
.d-qualites { list-style: none; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.5; margin: 0; padding: 0; }
.d-qualites li { display: inline; }
.d-qualites li:not(:last-child)::after { content: ", "; }
.d-defil { --hp: clamp(150px, 15vw, 210px); position: relative; margin: 26px 0 0; }
.d-vue { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.d-vue.prise { cursor: grabbing; }
.d-photos { list-style: none; display: flex; width: max-content; margin: 0; padding: 0; will-change: transform; }
.d-fig { flex: 0 0 auto; width: calc(var(--hp) * var(--r, 1)); margin-right: 12px; min-width: 0; }
.d-fleche { position: absolute; top: calc(var(--hp) / 2 - 22px); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--chocolat); background: var(--creme); color: var(--chocolat); font: 500 1.15rem/1 var(--texte); display: grid; place-items: center; cursor: pointer; z-index: 2; padding: 0; transition: background var(--d-1), color var(--d-1), transform var(--d-1); }
.d-fleche--g { left: 8px; } .d-fleche--d { right: 8px; }
.d-fleche:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .d-fleche:hover { background: var(--chocolat); color: var(--creme); } }
.d-fleche:active { transform: scale(.93); }
.d-photo { width: 100%; height: var(--hp); border-radius: 3px; overflow: hidden; }
.d-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.d-legende { font-size: .76rem; line-height: 1.3; margin: 7px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }   /* 2 lignes au lieu d'une légende coupée ; un clic sur la légende agrandit la photo */
.d-voir { margin-top: 26px; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--bleu); background: none; color: var(--bleu); font: inherit; font-size: .95rem; cursor: pointer; }
.d-voir .d-fleche { display: inline-block; margin-left: 2px; }
.d-voir:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; }
.d-detail { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows var(--d-3) var(--ease-out), margin-top var(--d-3) var(--ease-out); }
.d-detail.ouvert { grid-template-rows: 1fr; margin-top: 28px; }
.d-detail-in { min-height: 0; overflow: hidden; visibility: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; align-content: start; transition: visibility 0s var(--d-3); }
.d-detail.ouvert .d-detail-in { visibility: visible; transition-delay: 0s; }
.d-theme { min-width: 0; }
.d-theme-titre { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--chocolat); }
.d-theme ul { margin: 0; padding-left: 17px; font-size: .9rem; line-height: 1.55; }
.d-theme li { margin: 0 0 4px; }
.d-fin { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.4rem; line-height: 1.3; margin: 30px 0 0; max-width: 40ch; text-wrap: balance; }

@media (max-width: 900px) {
  .d-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .d-entete { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .d-dates { display: none; }
  .d-tag { display: block; margin: 8px 0 0; }
  .d-corps { grid-template-columns: 1fr; gap: 24px; }
  .d-gauche { position: static; }
  .badge { width: min(270px, 78%); }
  .d-detail-in { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .d-nom-texte { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .d-meta { grid-template-columns: 1fr; }
  .d-accroche { font-size: 1.25rem; }
  .d-resume, .d-theme ul { font-size: .9rem; line-height: 1.55; }
  .d-fin { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .d-panneau, .d-detail, .d-detail-in, .d-gauche, .d-droite > *, .d-apercu, .d-apercu img, .d-entete, .d-nom-texte, .d-plus::before, .d-plus::after { transition: none; }
  .d-gauche, .d-droite > * { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  #haut { height: auto; min-height: 600px; padding-bottom: 8px; }
  #casting { --ecart: 108px; min-height: 480px; }
  .cast { width: 190px; margin-left: -95px; }
  .cast-fleche { top: 36%; width: 38px; height: 38px; }
  .cast-fond { width: 70vw; }
  #haut { background-size: 1900px auto; }
  .cast-scene { inset: 44px 0 112px 0; }
  .cast-etiquette { flex-direction: column; gap: 2px; border-radius: 16px; padding: 8px 28px 10px; bottom: 6px; }
  #pastilles { display: none; }
  .qui-grille { grid-template-columns: 1fr; }
  .scene { position: relative; top: 0; max-width: 420px; }
  .postits { grid-template-columns: 1fr; }
  .postit:nth-child(1) { grid-column: auto; max-width: none; }
  .postit:nth-child(3) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .balance { animation: none; }
  .postit { opacity: 1; }
  .postit.in, .postit.fini:hover { animation: none; }
  .retourne, .bande-btn, .scene-cadre img { transition: none; }
}

/* ==========================================================================
   SESSION A2 : formation, compétences, qualités
   ========================================================================== */
.rond { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bleu); background: none; color: var(--bleu); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.rond:focus-visible { background: var(--bleu); color: var(--creme); } @media (hover: hover) and (pointer: fine) { .rond:hover:not(:disabled) { background: var(--bleu); color: var(--creme); } }
.rond:disabled { opacity: .3; cursor: default; }
.sous-etiquette { margin: 38px 0 12px; }
.astuce { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1rem; letter-spacing: 0; opacity: 1; }

/* ---------- 3 · Formation : cadres au mur ---------- */
#vp { overflow: hidden; margin-top: 18px; touch-action: pan-y; }
#piste { display: flex; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.diplome { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 0 4px; }
.mur-cadre { position: relative; height: 340px; display: flex; justify-content: center; }
.pend { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.clou { width: 8px; height: 8px; border-radius: 50%; background: #6B5040; }
.cadre { transition: transform .5s cubic-bezier(.3, 1.5, .6, 1); transform-origin: 50% -26px; transform: rotate(var(--rot)); }
.pend.on .cadre, .pend:focus-visible .cadre { transform: rotate(0deg); } @media (hover: hover) and (pointer: fine) { .pend:hover .cadre { transform: rotate(0deg); } }
.cadre--or { border: 12px solid #B8862F; box-shadow: inset 0 0 0 3px #E0B860, 0 6px 12px rgba(46, 32, 25, .3); }
.cadre--noir { border: 9px solid var(--chocolat); padding: 14px; background: #fff; box-shadow: 0 6px 12px rgba(46, 32, 25, .3); }
.cadre--bois { border: 13px solid #8A5A3A; box-shadow: inset 0 0 0 2px #5C3A24, 0 6px 12px rgba(46, 32, 25, .3); }
.dip { position: relative; overflow: hidden; background: #FBF7EE; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; color: var(--chocolat); width: var(--w); height: var(--h); }
.dip .t { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.dip .s { font-size: 8px; letter-spacing: .16em; margin-top: 5px; opacity: .7; }
.dip .n { font-family: var(--serif); font-size: .95rem; margin-top: 8px; }
.dip .logo-ecole { display: block; height: 26px; width: auto; max-width: 62%; margin-top: 5px; flex: none; object-fit: contain; }
.dip:has(.logo-ecole) { padding-bottom: 6px; }
.dip .sceau { width: 26px; height: 26px; border-radius: 50%; margin-top: 10px; }
.pop { position: absolute; top: 58%; left: 76%; z-index: 3; pointer-events: none; background: var(--bleu); color: var(--creme); font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; padding: 7px 14px; border-radius: 6px; white-space: nowrap; box-shadow: 0 6px 14px rgba(46, 32, 25, .25); opacity: 0; transform: translate(-50%, 40px) scale(.5) rotate(-8deg); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.7, .5, 1); }
.mur-cadre.on .pop { opacity: 1; transform: translate(-50%, -6px) scale(1) rotate(-4deg); } @media (hover: hover) and (pointer: fine) { .mur-cadre:hover .pop { opacity: 1; transform: translate(-50%, -6px) scale(1) rotate(-4deg); } }
.etincelle { position: fixed; z-index: 90; pointer-events: none; line-height: 1; will-change: transform, opacity; animation: etincelle 1.1s ease-out forwards; }
@keyframes etincelle { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.15) rotate(var(--rt)); } }
.diplome .periode { font-size: .65rem; letter-spacing: .16em; opacity: .7; }
.diplome .role { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.6rem; margin: 6px 0 4px; line-height: 1.1; }
.diplome .lieu { font-weight: 600; font-size: .9rem; }
.diplome .contexte { font-size: .95rem; line-height: 1.55; margin-top: 6px; }
.repere { margin-top: 10px; font-size: .9rem; line-height: 1.5; background: color-mix(in srgb, var(--creme) 55%, transparent); border-radius: 6px; padding: 8px 10px; }
.diplome .chute-d { margin-top: 12px; font-size: 1.2rem; line-height: 1.3; }
.nav-diplomes { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
#points { display: flex; gap: 8px; align-items: center; }
#points span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--chocolat) 25%, transparent); transition: width .3s, background .3s; }
#points span.on { width: 24px; border-radius: 999px; background: var(--chocolat); }

/* ---------- 4 · Compétences : affichette à languettes ---------- */
#mur { --papier: var(--rose); display: flex; justify-content: center; padding: 30px 0 6px; }
#affichette { position: relative; width: min(600px, 100%); filter: drop-shadow(0 6px 12px rgba(46, 32, 25, .35)); color: var(--chocolat); }
.affichette-haut { position: relative; padding: 24px 26px 18px; background: var(--papier); border-radius: 6px 6px 0 0; }
.affichette-titre { font-family: var(--titre); text-transform: uppercase; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; text-shadow: 2px 2px 0 var(--creme); }
.affichette-sous { font-size: .85rem; margin-top: 10px; color: var(--bleu); }
#languettes { display: flex; border-top: 2px dashed color-mix(in srgb, var(--chocolat) 55%, transparent); height: 250px; }
.lang { flex: 1; position: relative; border: 0; border-right: 2px dashed color-mix(in srgb, var(--chocolat) 55%, transparent); background: var(--papier); cursor: pointer; touch-action: none; font: inherit; color: inherit; padding: 0; }
.lang:first-child { border-bottom-left-radius: 6px; }
.lang:last-child { border-bottom-right-radius: 6px; border-right: 0; }
.lang span { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); writing-mode: vertical-rl; rotate: 180deg; font-size: .7rem; letter-spacing: .08em; font-weight: 600; white-space: nowrap; }
.lang:focus-visible { background: color-mix(in srgb, var(--creme) 55%, var(--papier)); } @media (hover: hover) and (pointer: fine) { .lang:hover { background: color-mix(in srgb, var(--creme) 55%, var(--papier)); } }
.lang.parti { pointer-events: none; background: transparent; border-right-color: transparent; }   /* un vrai trou : le fond de la page se voit à travers */
.lang.parti::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px; background: linear-gradient(135deg, var(--papier) 33%, transparent 33%) 0 0 / 8px 8px, linear-gradient(225deg, var(--papier) 33%, transparent 33%) 0 0 / 8px 8px; }
.lang.parti span { opacity: 0; }
.chute-lang { position: absolute; background: var(--papier); border: 2px dashed color-mix(in srgb, var(--chocolat) 55%, transparent); border-top: none; display: flex; justify-content: center; pointer-events: none; transition: transform 1.1s cubic-bezier(.5, 0, .8, .5), opacity 1.1s; z-index: 5; }
.chute-lang span { writing-mode: vertical-rl; rotate: 180deg; font-size: .7rem; letter-spacing: .08em; font-weight: 600; margin-top: 10px; }
.message { text-align: center; font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.3rem; min-height: 1.6em; margin: 8px 0 0; }
#remettre { display: block; margin: 8px auto 0; opacity: 0; pointer-events: none; transition: opacity .3s, background .2s, color .2s; }
#remettre.on { opacity: 1; pointer-events: auto; }

#savoir-faire { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.domaine { border-top: 1px solid color-mix(in srgb, var(--chocolat) 30%, transparent); padding-top: 10px; }
.domaine h3 { font-size: 1.15rem; margin-bottom: 8px; }
.puces { display: flex; flex-wrap: wrap; gap: 7px; }
.puce { border: 1px solid color-mix(in srgb, var(--chocolat) 45%, transparent); border-radius: 999px; padding: 6px 11px; font-size: .82rem; transition: opacity .3s, background .3s, color .3s, border-color .3s, transform .3s; }
.puce.faible { opacity: .3; }
.puce.touche { background: var(--bleu); border-color: var(--bleu); color: var(--creme); transform: translateY(-2px); }

/* bac d'outils (objets qui tombent et s'empilent) */
#bac { position: relative; height: 340px; border-radius: 10px; background: color-mix(in srgb, var(--creme) 60%, transparent); border: 1.5px dashed color-mix(in srgb, var(--chocolat) 45%, transparent); overflow: hidden; touch-action: none; }
#indice-bac { position: absolute; right: 10px; top: 8px; font-size: .62rem; letter-spacing: .14em; opacity: .85; transition: opacity .4s; }
.outil { position: absolute; left: 0; top: 0; width: 62px; height: 62px; cursor: grab; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 3px 2px rgba(46, 32, 25, .28)); }
.outil img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.etiq-outil { position: absolute; left: 0; top: 0; z-index: 5; background: var(--chocolat); color: var(--creme); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.etiq-outil.on { opacity: 1; }
.bac-statique .outil.nomme::after { content: attr(data-nom); position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); background: var(--chocolat); color: var(--creme); font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.bac-statique { height: auto !important; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.bac-statique .outil { position: static; }

/* langues : trois têtes qui parlent */
#langues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.tete { position: relative; padding-top: 96px; }
.bulle-l { position: absolute; left: 50%; bottom: calc(100% - 58px); transform: translateX(-50%); background: #fff; color: var(--chocolat); border-radius: 14px; padding: 7px 12px; font-family: var(--serif); font-size: 1rem; line-height: 1.25; width: max-content; max-width: min(210px, 100%); text-align: center; animation: flotte-bulle 2.6s ease-in-out infinite; box-shadow: 0 3px 8px rgba(46, 32, 25, .15); }
.bulle-l::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); }
@keyframes flotte-bulle { 50% { transform: translateX(-50%) translateY(-4px); } }
.tete .portrait { width: 100%; height: 205px; margin: 0 auto; position: relative; }   /* découpes : la tête et le haut du corps, sans rond ni fond */
.tete .portrait img { display: block; height: 100%; width: auto; max-width: none; margin: 0 auto; object-fit: contain; object-position: center bottom; }
.tete .portrait .image-nom { font-size: .45rem; }
.tete .nom-langue { font-family: var(--titre); text-transform: uppercase; font-size: 1.2rem; margin-top: 8px; }
.tete .niveau { font-size: .65rem; letter-spacing: .14em; opacity: .7; margin-top: 2px; }

/* ---------- 5 · Qualités ---------- */
.qualites-grille { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(20px, 3vw, 34px); }
#qualites-liste { display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 18px); }
.qualite-bouton { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.qualite-ligne { display: flex; align-items: center; gap: 14px; }
.mot { font-family: var(--titre); text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; white-space: nowrap; transition: color .25s, transform .25s; }
.trait { flex: 1; min-width: 24px; height: 3px; background: var(--chocolat); opacity: .5; transition: opacity .25s, background .25s, height .25s; }
.plus { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--chocolat); flex: none; display: grid; place-items: center; font-size: 1rem; line-height: 1; opacity: .6; transition: all .25s; }
.plus::before { content: "+"; transition: transform .3s; }
.qualite-bouton.on .mot { color: var(--bleu); transform: translateX(6px); } @media (hover: hover) and (pointer: fine) { .qualite-bouton:hover .mot { color: var(--bleu); transform: translateX(6px); } }
.qualite-bouton.on .trait { opacity: 1; background: var(--bleu); height: 4px; } @media (hover: hover) and (pointer: fine) { .qualite-bouton:hover .trait { opacity: 1; background: var(--bleu); height: 4px; } }
.qualite-bouton.on .plus { opacity: 1; border-color: var(--bleu); color: var(--bleu); } @media (hover: hover) and (pointer: fine) { .qualite-bouton:hover .plus { opacity: 1; border-color: var(--bleu); color: var(--bleu); } }
.qualite-bouton.on .plus::before { transform: rotate(45deg); }
.court { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.5vw, 1.15rem); opacity: .85; }
.long { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.ouvert .long { grid-template-rows: 1fr; }
.long > div { overflow: hidden; }
.long p { margin: 10px 0 4px; padding: 12px 16px; background: color-mix(in srgb, var(--creme) 50%, transparent); border-left: 3px solid var(--bleu); border-radius: 0 8px 8px 0; max-width: 52ch; font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 1.55; }
.astuce-qualites { font-size: .95rem; font-weight: 700; margin: 10px 0 0; }

/* l'as de cœur de Marah (la carte, puis sa phrase dessous) */
.atout { margin: 0; text-align: center; }
.atout-carte { width: min(100%, clamp(240px, 26vw, 330px)); margin: 0 auto; transform: rotate(-3deg); transition: transform .35s ease; filter: drop-shadow(0 12px 14px rgba(46, 32, 25, .22)); }
@media (hover: hover) and (pointer: fine) { .atout-carte:hover { transform: rotate(0deg) translateY(-6px); } }
.atout-carte img { display: block; width: 100%; height: auto; user-select: none; }
.atout-carte.saut { animation: saut-atout .5s ease-out; }
@keyframes saut-atout { 35% { transform: rotate(2deg) translateY(-14px); } }
.atout figcaption { margin-top: 18px; }
.atout-1 { display: block; font-family: var(--titre); text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; }
.atout-2 { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.25; margin-top: 4px; }
.atout-2 em { color: var(--bleu); }

@media (max-width: 760px) {
  .diplome { grid-template-columns: 1fr; }
  .mur-cadre { height: 300px; }
  .qualites-grille { grid-template-columns: 1fr; }
  .atout { margin-top: 8px; }
  .atout-carte { width: min(70%, 260px); }
  #langues { gap: 6px; }
  .bulle-l { font-size: .85rem; max-width: 120px; }
  .tete .portrait { height: 150px; }
  .tete .portrait img { max-width: 100%; }
  .tete { padding-top: 96px; }
  .lang span { font-size: .6rem; }
  #languettes { height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  #piste, .cadre, .pop, .bulle-l, .atout-carte { transition: none; animation: none; }
  .etincelle { display: none; }
}

/* ==========================================================================
   SESSION A3 : Moi perso (jardin) et En pratique (trousseau)
   ========================================================================== */
.jardin-cadre, .trousseau-cadre { overflow-x: auto; margin-top: clamp(18px, 3vw, 32px); border-radius: 18px; -webkit-overflow-scrolling: touch; }
.jardin-cadre { border: 1.5px solid color-mix(in srgb, var(--chocolat) 25%, transparent); }
.jardin, .trousseau { position: relative; min-width: 760px; }
.jardin svg, .trousseau svg { display: block; width: 100%; height: auto; }
.trousseau svg { color: var(--chocolat); }
.sec--rose { --bg: var(--rose); }

/* légende qui apparaît en haut de la scène */
.legende { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--chocolat); border: 2px solid var(--chocolat); border-radius: 99px; box-shadow: 3px 3px 0 var(--chocolat); font-family: var(--serif); font-style: italic; font-size: 1.05rem; padding: 8px 16px; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 8; }
.legende.on { opacity: 1; }
.legende--droite { left: auto; right: 6px; transform: none; top: 6px; }
.indice-jardin { position: absolute; left: 14px; bottom: 12px; z-index: 7; font-size: .62rem; letter-spacing: .12em; background: color-mix(in srgb, var(--creme) 88%, transparent); padding: 6px 11px; border-radius: 99px; transition: opacity .4s; pointer-events: none; }
.eclair { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff 0 55%, rgba(255, 255, 255, .85) 70%, rgba(255, 255, 255, 0) 100%); opacity: 0; pointer-events: none; z-index: 9; }   /* un rond, posé sur l'objectif par js/aaz.js */
.eclair.go { animation: eclair .5s ease-out; }
@keyframes eclair { 0% { opacity: .95; } 100% { opacity: 0; } }

/* objets cliquables du jardin */
.hit { cursor: pointer; outline: none; }
.lift { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s; }
.hit:focus-visible .lift { transform: translateY(-6px); } @media (hover: hover) and (pointer: fine) { .hit:hover .lift { transform: translateY(-6px); } }
.hit:focus-visible .focus { stroke: #08299B; stroke-width: 3; }
.wag { animation: wag .25s ease-in-out 6 alternate; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes wag { to { transform: rotate(-30deg); } }
.bounce { animation: bnc .5s ease; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bnc { 40% { transform: translateY(-14px); } }
#ham { transform-box: view-box; transform-origin: 500px 250px; animation: sway 4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: rustle 3s ease-in-out infinite alternate; }
@keyframes rustle { to { transform: rotate(2deg) translateX(3px); } }
.bulb { animation: tw 2.4s ease-in-out infinite alternate; }
.bulb:nth-child(2n) { animation-delay: 1.2s; }
@keyframes tw { to { opacity: .55; } }
.note { opacity: 0; }
.playing .note { animation: nt 1.6s ease-out infinite; }
.playing .note:nth-of-type(2) { animation-delay: .5s; }
.playing .note:nth-of-type(3) { animation-delay: 1s; }
@keyframes nt { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(20px, -60px); } }
#steam { opacity: 0; transition: opacity .4s; }
#steam.on { opacity: .9; animation: stm 1.6s ease-in-out infinite alternate; }
@keyframes stm { to { transform: translateY(-8px); } }
#friends { opacity: 0; transition: opacity .5s; }
#friends.on { opacity: 1; }
.coeur { position: absolute; pointer-events: none; font-size: 22px; color: var(--bleu); animation: monte 1.1s ease-out forwards; z-index: 8; }
@keyframes monte { to { transform: translateY(-80px) scale(1.4); opacity: 0; } }

/* petit lecteur de musique (aucun son : simple affichage) */
.lecteur { position: absolute; left: 3%; bottom: 6%; z-index: 6; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--chocolat); border: 2px solid var(--chocolat); border-radius: 14px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--chocolat); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .45s; pointer-events: none; max-width: min(360px, 90%); }
.lecteur.on { opacity: 1; transform: none; }
.pochette { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--bleu), #F2DA86); display: grid; place-items: center; font-size: 1.2rem; color: #fff; flex: none; }
.lecteur-texte { display: flex; flex-direction: column; min-width: 0; }
.lecteur-texte b { font-size: .9rem; }
.lecteur-texte span { font-size: .72rem; opacity: .75; }
.lecteur .barre { height: 3px; background: rgba(46, 32, 25, .15); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.lecteur .barre i { display: block; height: 100%; width: 0; background: var(--bleu); }
.lecteur.on .barre i { animation: barre 30s linear infinite; }
@keyframes barre { to { width: 100%; } }
.compteur { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; white-space: nowrap; }

/* polaroïd : une vraie photo prise au hasard dans « Mes photos » */
.polaroid { position: absolute; right: 4%; top: 14%; width: 150px; background: #fff; padding: 8px 8px 26px; box-shadow: 0 8px 24px rgba(46, 32, 25, .28); transform: rotate(6deg) scale(.6); opacity: 0; transition: all .4s; color: var(--chocolat); font-size: .7rem; text-align: center; pointer-events: none; z-index: 8; }
.polaroid.on { opacity: 1; transform: rotate(6deg) scale(1); }
.polaroid-photo { height: 150px; background: repeating-linear-gradient(45deg, #EEE 0 8px, #F8F8F8 8px 16px); display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; font-size: .7rem; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- En pratique : le trousseau ---------- */
.trousseau-photo { position: relative; max-width: 560px; margin: clamp(10px, 2vw, 24px) auto 0; }
.trousseau-balance { position: relative; aspect-ratio: 623 / 773; }
.trousseau-balance .trousseau-img { position: absolute; inset: 0; background: none; overflow: visible; }
.trousseau-balance .trousseau-img img { height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(46, 32, 25, .22)); }
.trousseau-balance .trousseau-img .image-nom { display: none; }
.trousseau-calque { position: absolute; inset: 0; }
.zone-clavier { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; padding: 0; background: none; }
.trousseau-etiq { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); background: #FBF7EE; border: 1.5px solid #C9BFA8; border-radius: 8px; padding: 6px 12px; text-align: center; white-space: nowrap; color: var(--chocolat); opacity: 0; pointer-events: none; transition: opacity .2s; }
.trousseau-etiq.on { opacity: 1; }
.trousseau-etiq.dir-bas { transform: translate(-50%, 12px); }
.trousseau-etiq.dir-droite { transform: translate(12px, -50%); }
.trousseau-etiq.dir-haut { transform: translate(-50%, calc(-100% - 12px)); }
.trousseau-etiq b { display: block; font-family: var(--titre); font-weight: 400; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.trousseau-etiq span { font-size: .78rem; }
.trousseau-photo .legende { left: 50%; right: auto; transform: translateX(-50%); top: 12px; max-width: 92%; white-space: normal; text-align: center; }
.indice-trousseau { font-size: .8rem; opacity: .75; margin: 8px 2px 0; }
.fin-pratique { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 28px 0 14px; }
.fin-pratique em { font-size: 1.1em; }

@media (max-width: 760px) { .legende { font-size: .9rem; padding: 6px 12px; } }
@media (prefers-reduced-motion: reduce) { #ham, .leaf, .bulb, .playing .note { animation: none; } .lift { transition: none; } .piece img, .piece.tinte img { animation: none; transition: none; } }

/* ---------- Moi perso : les cordes à linge ---------- */
/* Chaque objet est tenu par une pince en bambou : la corde passe derrière la pince, la pince recouvre le bord haut de l'objet. */
.linge { position: relative; margin-top: clamp(18px, 3vw, 32px); --k: 1; padding: 6px 0 96px; }          /* de la place en bas pour le lecteur et les bulles */
.rang { position: relative; display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; height: calc(var(--k) * var(--hr, 270px)); padding: 0 2%; }
.corde { position: absolute; z-index: 1; left: 50%; width: 100vw; margin-left: -50vw; top: calc(var(--k) * 26px - 3px); height: 7px; border-radius: 0; transform: rotate(-.25deg);   /* la corde traverse toute la largeur de l'écran */
  background: repeating-linear-gradient(115deg, #cfa56a 0 5px, #a97f45 5px 9px); box-shadow: 0 2px 3px rgba(46, 32, 25, .25); pointer-events: none; }
.objet { position: relative; z-index: 2; flex: none; display: block; padding: 0; border: 0; background: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
  width: calc(var(--w) * var(--k)); height: calc(var(--r) * var(--w) * var(--k));
  margin-top: calc(var(--k) * 26px + .12 * var(--pl) * var(--k) - var(--ay) * var(--r) * var(--w) * var(--k)); }
.balance { position: absolute; inset: 0; display: block; transform-origin: calc(var(--ax) * 100%) calc(var(--ay) * 100%);
  animation: vent var(--t, 5s) ease-in-out var(--d, 0s) infinite alternate; }
.objet img { display: block; width: 100%; height: auto; user-select: none; }
.balance img { filter: drop-shadow(0 8px 6px rgba(46, 32, 25, .22)); }
.objet .pince { position: absolute; z-index: 3; pointer-events: none; height: auto;
  width: calc(var(--pl) * var(--k) * .2375);
  left: calc(var(--x) * 100%); transform: translateX(-50%);
  top: calc(var(--y) * var(--r) * var(--w) * var(--k) - .40 * var(--pl) * var(--k));
  filter: drop-shadow(1px 3px 2px rgba(46, 32, 25, .35)); }
.objet:focus-visible .balance { animation-duration: 1.7s; } @media (hover: hover) and (pointer: fine) { .objet:hover .balance { animation-duration: 1.7s; } }
.objet:focus-visible { outline: 3px solid var(--bleu); outline-offset: 6px; border-radius: 8px; }
@keyframes vent { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
.objet.deux .balance { animation-name: vent-doux; }
@keyframes vent-doux { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }
.objet.secoue .balance { animation: secoue .9s ease-out; }
@keyframes secoue { 0% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.objet.deux.secoue .balance { animation: secoue-doux .9s ease-out; }
@keyframes secoue-doux { 0% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 55% { transform: rotate(2.4deg); } 100% { transform: rotate(0); } }
.objet.playing .balance img { animation: pulse-casque .8s ease-in-out infinite alternate; }
@keyframes pulse-casque { to { transform: scale(1.05); } }
.linge .legende { transform: translateX(-50%); top: 0; }
.linge .lecteur { left: 3%; bottom: 4px; }
.linge .indice-jardin { bottom: 14px; }
.question { position: absolute; z-index: 9; transform: translateX(-50%); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: min(92%, 520px);
  background: #fff; color: var(--chocolat); border: 2px solid var(--chocolat); border-radius: 18px; box-shadow: 3px 3px 0 var(--chocolat); padding: 10px 16px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; text-align: center; }
.question[hidden] { display: none; }
.question .bouton { font-family: var(--texte, inherit); font-style: normal; padding: .55em 1em; font-size: .78rem; }
.son-cache { position: fixed; right: 0; bottom: 0; width: 2px; height: 2px; border: 0; opacity: .01; pointer-events: none; }
@media (max-width: 900px) { .linge { --k: .8; } }
@media (max-width: 560px) { .linge { --k: .6; } .linge .legende { white-space: normal; max-width: 84%; text-align: center; } .question { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .balance, .objet.playing .balance img { animation: none; } }
/* lecteur Spotify (quand un morceau est renseigné) : le vrai lecteur remplace notre petit lecteur */
.spotify-zone { display: none; }
.lecteur.spotify { padding: 6px; background: transparent; border: 0; box-shadow: none; width: min(352px, 92%); max-width: none; pointer-events: auto; }
.lecteur.spotify .pochette, .lecteur.spotify .lecteur-texte, .lecteur.spotify .compteur { display: none; }
.lecteur.spotify .spotify-zone { display: block; width: 100%; min-height: 80px; border-radius: 12px; overflow: hidden; }
.lecteur.spotify .spotify-zone iframe { display: block; border: 0; }
.lecteur.pres { z-index: 8; }
.lecteur.spotify { width: min(300px, 92%); }

/* Haut de page sur ordinateur : le titre passe à gauche, en plus grand ; l'étiquette de la Marah choisie monte au-dessus d'elle (le carrelage la rendait peu lisible) */
@media (min-width: 701px) {
  #haut #titre-haut { position: absolute; left: var(--marge); top: calc(var(--hauteur-entete) + 22px); text-align: left; z-index: 25; }
  #haut #titre-haut .petit { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
  #haut #titre-haut .grand { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .94; max-width: 5.6em; margin-top: 4px; }
  #casting .cast-etiquette { bottom: auto; top: -34px; box-shadow: 0 4px 14px rgba(46, 32, 25, .25); }
}
@media (min-width: 701px) {
  #haut { background-position: center calc(100% + 6vh); }   /* mur et carrelage un peu plus bas : le titre arrive pile au-dessus des moulures */
}

/* Marah n° 2 : sa silhouette est plus large que les autres (elle tient des documents) ; avec la même boîte de 240 px, elle était réduite à 82 % de la hauteur des autres. Boîte élargie : elle a désormais la même taille que les autres (elle peut empiéter un peu sur ses voisines). */
.cast:nth-child(2) { width: 300px; margin-left: -150px; }
@media (max-width: 700px) { .cast:nth-child(2) { width: 240px; margin-left: -120px; } }

/* Qui suis-je sur ordinateur : toute la section tient dans l'écran (titre, photo, texte et trois post-it côte à côte) */
@media (min-width: 1000px) {
  #s1 { padding-top: clamp(16px, 2.6svh, 32px); padding-bottom: clamp(16px, 2.6svh, 32px); min-height: calc(100svh - var(--hauteur-entete)); display: flex; align-items: center; }
  #s1 .dedans { width: 100%; }
  #s1 .titre-section { font-size: clamp(2.2rem, 7svh, 4.2rem); }
  #s1 .qui-grille { grid-template-columns: auto minmax(0, 1fr); margin-top: clamp(10px, 2.2svh, 22px); align-items: center; }
  #s1 .scene { position: relative; top: 0; }
  #s1 .scene-cadre { width: calc((100svh - var(--hauteur-entete) - 225px) * 1083 / 1665); }
  #s1 .indice-scene { margin-top: 8px; font-size: clamp(1rem, 2.4svh, 1.3rem); }
  #s1 .hello h3 { font-size: clamp(2rem, 4.6svh + 1vw, 3.2rem); }
  #s1 .hello p { font-size: clamp(.95rem, 2.2svh, 1.1rem); }
  #s1 .postits { grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-top: clamp(12px, 3svh, 26px); }
  #s1 .postit:nth-child(1) { grid-column: auto; max-width: none; justify-self: stretch; }
  #s1 .postit { font-size: clamp(.95rem, 2.5svh, 1.25rem); }
  #s1 .postit .etiq { font-size: .62rem; margin-bottom: 3px; }
  #s1 .suite { margin-top: clamp(12px, 3svh, 24px); }
}

/* Haut de page sur ordinateur : il prend pile la hauteur de l'écran */
@media (min-width: 701px) {
  #haut { height: 100svh; min-height: 520px; }
}

/* Ordinateur : Expériences, Formation, Moi perso et En pratique tiennent dans l'écran (le réglage fin est fait par js/aaz.js) */
@media (min-width: 1000px) {
  #s3, #s6, #s7 { padding-top: clamp(16px, 2.6svh, 32px); padding-bottom: clamp(16px, 2.6svh, 32px); min-height: calc(100svh - var(--hauteur-entete)); display: flex; align-items: center; }
  #s3 .dedans, #s6 .dedans, #s7 .dedans { width: 100%; }
  #s3 .titre-section, #s6 .titre-section, #s7 .titre-section { font-size: clamp(2.2rem, 7svh, 4.2rem); }
  #s3 .phrase-sec, #s6 .phrase-sec, #s7 .phrase-sec { font-size: clamp(1.1rem, 2.8svh, 1.6rem); }
  #s3 .suite, #s6 .suite { margin-top: clamp(8px, 2svh, 20px); }
  #s6 .linge { margin-top: clamp(8px, 2svh, 20px); padding-bottom: 40px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
  #s7 .indice-trousseau { display: none; }
  #s7 .fin-pratique { margin: 6px 0 8px; font-size: 1.15rem; }
  #s6 .linge { margin-top: 4px; padding-top: 0; padding-bottom: 28px; }
}

/* Ordinateur : le fond de ces sections fait pile la hauteur de l'écran (l'en-tête, transparente, passe par-dessus le haut de la section) */
@media (min-width: 1000px) {
  #s1, #s3, #s6, #s7 { min-height: 100svh; padding-top: calc(var(--hauteur-entete) + clamp(16px, 2.6svh, 32px)); scroll-margin-top: 0; }
}
.lecteur.spotify:not(.on) { pointer-events: none; }   /* le lecteur Spotify est chargé d'avance : invisible et non cliquable tant que le casque n'a pas été touché */

/* Marah n° 1 sur téléphone : plus de post-it, le même texte écrit simplement sous l'animation */
.qui-simple { display: none; }
@media (max-width: 700px) {
  .postits { display: none; }
  .qui-simple { display: block; margin-top: 22px; }
  /* style magazine : un fin trait chocolat sépare chaque texte, titre en Anton, chute plus grande */
  .qui-simple p { margin: 0 0 22px; padding-top: 14px; border-top: 1.5px solid var(--chocolat); font-size: 1rem; line-height: 1.55; }
  .qui-simple p:first-child { font-size: 1.12rem; }
  .qui-simple .etiq { display: block; margin-bottom: 8px; font-family: var(--titre); font-size: 1.3rem; font-weight: 400; line-height: 1; letter-spacing: .03em; text-transform: uppercase; opacity: 1; }
  .qui-simple em { font-family: var(--serif); font-style: italic; color: var(--chocolat); font-size: 1.28em; line-height: 1.2; }
}


/* Compétences (savoir-faire) sur téléphone : pastilles plus petites, à la suite, pour que la liste soit nettement plus courte */
@media (max-width: 700px) {
  #savoir-faire { gap: 12px; }
  .domaine { padding-top: 8px; }
  .domaine h3 { font-size: .98rem; margin-bottom: 6px; }
  .puces { gap: 5px; }
  .puce { padding: 3px 8px; font-size: .7rem; line-height: 1.25; }
}

/* Téléphone (≤ 700 px) : logos d'outils beaucoup plus petits, langues une par une qu'on fait glisser, qualités plus petites */
.langues-aide { display: none; }
@media (max-width: 700px) {
  #bac { height: 300px; }
  .outil { width: 38px; height: 38px; }
  .outil img { border-radius: 9px; }

  #langues { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #langues::-webkit-scrollbar { display: none; }
  #langues .tete { flex: 0 0 100%; scroll-snap-align: center; }
  #langues .bulle-l { font-size: 1rem; max-width: 240px; }
  #langues .tete .portrait { height: 200px; }
  .langues-aide { display: block; margin: 10px 0 0; text-align: center; font-size: .8rem; letter-spacing: .04em; opacity: .75; }

  .mot { font-size: 1.55rem; }
  .qualite-ligne { gap: 10px; }
  .court { font-size: .92rem; margin-top: 3px; }
  .atout-carte { width: min(54%, 200px); }
  .atout-1 { font-size: 1.25rem; }
  .atout-2 { font-size: 1rem; }
}

/* ==========================================================================
   ÉCHELLE DE TEXTE UNIQUE — téléphone (≤ 700 px), page Marah de A à Z
   6 tailles seulement (recommandation UX : 5 à 7) : 12 · 14 · 16 · 20 · 24 · 32 px
     12 px  étiquettes, pastilles, mentions            14 px  petits textes (légendes, indications)
     16 px  texte courant (jamais en dessous)           20 px  chutes et sous-titres en italique
     24 px  intertitres (rôle, qualité, diplôme)        32 px  titres de section
   ========================================================================== */
@media (max-width: 700px) {
  /* 32 px · titres de section */
  .titre-section { font-size: 2rem; }
  .hello h3 { font-size: 2rem; }
  /* 24 px · intertitres */
  .feuille .role, .diplome .role, .mot { font-size: 1.5rem; }
  /* 20 px · chutes, sous-titres en italique */
  .phrase-sec, .feuille .chute-dossier, .diplome .chute-d, .message, .atout-1, .qui-simple .etiq, .tete .nom-langue, .domaine h3, .fin-pratique { font-size: 1.25rem; }
  .fin-pratique em { font-size: 1em; }
  .qui-simple em, .hello p em { font-size: 1.15em; }
  /* 16 px · texte courant */
  body, .hello p, .qui-simple p, .qui-simple p:first-child, .indice-scene, .suite, .astuce, .astuce-qualites,
  .feuille .societe, .feuille .contexte, .feuille ul, .diplome .lieu, .diplome .contexte, .repere, .long p, .question { font-size: 1rem; }
  .feuille ul { line-height: 1.5; }
  /* 14 px · petits textes */
  .court, .affichette-sous, .indice-trousseau, #indice-bac, .lecteur-texte span { font-size: .875rem; }
  /* 12 px · étiquettes, pastilles, mentions */
  .etiquette, .feuille .num, .feuille .periode, .diplome .periode, .tete .niveau, .puce, .indice-jardin, .tampon, .astuce-trousseau { font-size: .75rem; }
}

/* Téléphone : zones tactiles ≥ 44 px (casting du haut, liste des qualités) */
@media (max-width: 700px) {
  .cast-go { min-height: 44px; padding: 0 10px; }
  .cast-fleche { width: 44px; height: 44px; }
  .qualite-bouton { min-height: 44px; padding: 8px 0; }
}

/* Téléphone (retouches de Marah du 03/11) : expériences, formation et qualités dépliées plus compactes, indication des langues en gras */
@media (max-width: 700px) {
  .feuille { padding-left: 18px; padding-right: 18px; }
  .feuille .societe, .feuille .contexte, .feuille ul { font-size: .875rem; }
  .feuille .role { font-size: 1.25rem; }
  .feuille .chute-dossier { font-size: 1.1rem; }
  .mur-cadre { height: 196px; }
  .pend { transform: translateX(-50%) scale(.8); transform-origin: 50% 0; }
  .diplome .lieu, .diplome .contexte, .repere { font-size: .875rem; }
  .diplome .role { font-size: 1.25rem; }
  .diplome .chute-d { font-size: 1.1rem; }
  .long p { font-size: .875rem; padding: 10px 12px; }
  .langues-aide { font-weight: 700; opacity: 1; font-size: .875rem; }
}
/* Téléphone : bouton « Remettre une affichette » plus petit */
@media (max-width: 700px) {
  #remettre { min-height: 34px; padding: 0 14px; font-size: .65rem; letter-spacing: .1em; }
}

/* Qui suis-je sur tablette en hauteur (iPad 1032 × 1376) : la photo n'est plus calée sur la hauteur (elle devenait énorme et poussait les post-it hors de l'écran) ; elle est centrée à 46 % de la largeur, le texte et les trois post-it passent dessous */
@media (min-width: 1000px) and (max-aspect-ratio: 1/1) {
  #s1 .qui-grille { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
  #s1 .scene { justify-self: center; }
  #s1 .scene-cadre { width: 46vw; }
  #s1 .qui-texte { width: 100%; }
  #s1 .hello { text-align: center; }
  #s1 .hello h3 { font-size: 2.6rem; }
  #s1 .postits { grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
  #s1 .postit { font-size: 1rem; }
}

@media (min-width: 1000px) and (max-aspect-ratio: 1/1) { #s1 .scene-cadre { width: 40vw; } #s1 .postit { font-size: .95rem; } }

/* Haut de Marah de A à Z sur tablette en hauteur (768 × 1024, 960 × 1440, 1032 × 1376) : tout est dimensionné sur la LARGEUR de l'écran et calé sur le décor.
   Le fond (mur, boiserie, carrelage) a une taille de 150vw collée en bas ; le carrelage commence à ~15vw du bas : les pieds des Marah se posent à 11,8vw du bas (sur le carrelage).
   Toutes les Marah ont la même hauteur (66vw) ; l'étiquette (numéro, titre, « Découvrir ») est juste au-dessus de la tête de celle du centre. */
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  #haut { height: min(100svh, 128vw); min-height: 0; background-size: 150vw auto; background-position: center bottom; }
  #casting { --ecart: 21vw; }
  .cast-scene { inset: 4.4vw 0 11.8vw 0; }
  .cast { height: 66vw; width: var(--w); margin-left: calc(var(--w) / -2); }
  .cast:nth-child(1) { --w: 26vw; }
  .cast:nth-child(2) { --w: 37.3vw; }
  .cast:nth-child(3) { --w: 22.2vw; }
  .cast:nth-child(4) { --w: 25.7vw; }
  .cast:nth-child(5) { --w: 23.6vw; }
  .cast:nth-child(6) { --w: 26.9vw; }
  .cast:nth-child(7) { --w: 26vw; }
  #haut #titre-haut { top: calc(var(--hauteur-entete) + 2.6vw); }
  #haut #titre-haut .petit { font-size: 3.6vw; }
  #haut #titre-haut .grand { font-size: 9.4vw; max-width: 5.6em; }
  .cast-fleche { top: 56%; width: 6vw; height: 6vw; min-width: 44px; min-height: 44px; font-size: 2.6vw; }
  .cast-etiquette { padding: .5vw 2.6vw; gap: 2vw; }
  #casting .cast-etiquette { top: auto; bottom: 79vw; }
  .cast-num { font-size: 1.7vw; }
  .cast-nom { font-size: 3.6vw; }
  .cast-go { font-size: 2.1vw; }
}

/* Tablette en hauteur : arrière-plan agrandi (3,17 × la largeur) pour que le carrelage occupe environ le quart de la hauteur du haut ; les Marah ne bougent pas */
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  #haut { background-size: 317vw auto; background-position: center bottom; }
}

/* Tablette en hauteur : la languette devient une plaque de musée posée sur le carrelage, centrée sous les pieds (choix A de Marah) */
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  #casting .cast-etiquette { top: auto; bottom: .8vw; flex-direction: column; gap: .3vw; padding: 1vw 3.4vw 1.2vw; border-radius: 3px; background: color-mix(in srgb, var(--creme) 94%, #fff); border: 1px solid color-mix(in srgb, var(--chocolat) 35%, transparent); box-shadow: 0 .6vw 1.6vw rgba(46, 32, 25, .28), inset 0 0 0 .5vw var(--creme), inset 0 0 0 calc(.5vw + 1px) color-mix(in srgb, var(--chocolat) 22%, transparent); }
  .cast-num { font-size: 1.4vw; letter-spacing: .24em; }
  .cast-nom { font-size: 3.2vw; line-height: 1; }
  .cast-go { font-size: 1.8vw; padding: 0 6px; min-height: 0; }
}

@media (min-width: 701px) and (max-aspect-ratio: 1/1) { #casting .cast-etiquette { padding: .6vw 3.2vw .7vw; bottom: .6vw; gap: .1vw; } .cast-nom { font-size: 3vw; } }


/* ---------- Tous les écrans : hauteur d'écran + « un tout petit peu » de longueur (la couleur de l'écran suivant n'arrive pas trop vite) — 08/11/2026 ---------- */
#s1, #s2, #s3, #s4, #s5, #s6, #s7 { min-height: 110svh; }
@media (max-width: 700px) { #s1, #s2, #s3, #s4, #s5, #s6, #s7 { min-height: 105svh; } }
#s2, #s4, #s5 { padding-bottom: calc(clamp(50px, 8vw, 100px) + 8svh); }   /* les écrans plus hauts que l'écran gardent eux aussi « un tout petit peu » de couleur en plus */


/* ---------- Photos des expériences : agrandissement au clic (08/11/2026) ---------- */
.d-fig:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.photo-zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.photo-zoom::backdrop { background: rgba(46, 32, 25, .8); }
.photo-zoom[open] { animation: pz-entree .35s var(--ease-out); }
@keyframes pz-entree { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.pz-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pz-img { display: block; max-width: min(92vw, 1200px); max-height: 80vh; object-fit: contain; border-radius: 4px; background: var(--creme-fonce); }
.pz-leg { color: var(--creme); font: 500 1rem/1.3 var(--texte); text-align: center; max-width: 80vw; }
.pz-fermer { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--creme); background: rgba(46, 32, 25, .4); color: var(--creme); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0 3px; }
@media (hover: hover) and (pointer: fine) { .pz-fermer:hover { background: var(--creme); color: var(--chocolat); } }
@media (prefers-reduced-motion: reduce) { .photo-zoom[open] { animation: none; } }

/* ---------- Téléphone : l'étiquette « MARAH N° 0X · NOM · Découvrir » du casting en beaucoup plus petit (11/11/2026, demande de Marah) ---------- */
@media (max-width: 700px) {
  .cast-etiquette { gap: 0; padding: 4px 14px 5px; border-radius: 10px; bottom: 6px; }
  .cast-num { font-size: 9.5px; letter-spacing: .14em; line-height: 1.2; }
  .cast-nom { font-size: 1.05rem; line-height: 1; }
  .cast-go { min-height: 0; padding: 0 4px; font-size: 11px; line-height: 1.3; position: relative; }
  .cast-go::after { content: ""; position: absolute; inset: -16px -14px; }   /* la zone à toucher reste d'au moins 44 px, même si le texte est petit */
}
