/* Direction « Riso » (choisie par le Maître le 02/12) : le faire-part imprimé en risographie. Encres en aplats
   (bleu, rose fluo, jaune, turquoise, orange), repérage décalé, trame de points. Rakkas pour ce qui se lit de loin
   (latin et arabe), Alexandria pour le reste. Thèmes (choisis par les mariés) : la couleur d'encre du fond. */
:root {
  --vert: #1d2b8f; --rose: #ff48b0; --jaune: #ffe800; --ciel: #5ec8e5; --corail: #ff7a2f; --menthe: #5ec8e5;
  --encre: #141a4d; --blanc: #fff; --gris: #596088; --ligne: #d9ddef;
  --fond: var(--vert); --sur-fond: #fff; --r1: var(--rose); --r2: var(--jaune); --r3: var(--ciel); --r4: var(--corail);
  --ombre: 4px 4px 0 rgba(20,26,77,.85);
  --titre: "Rakkas", "Alexandria", system-ui, sans-serif;
  --corps: "Alexandria", system-ui, -apple-system, sans-serif;
}
[data-theme="cobalt"]     { --fond: #1d2b8f; --r1: #ff48b0; --r2: #ffe800; --r3: #5ec8e5; --r4: #ff7a2f; }
[data-theme="jardin"]     { --fond: #0b6b4a; --r1: #ff48b0; --r2: #ffe800; --r3: #5ec8e5; --r4: #ff7a2f; }
[data-theme="framboise"]  { --fond: #7a1f4b; --r1: #ffe800; --r2: #5ec8e5; --r3: #ff48b0; --r4: #ff7a2f; }
[data-theme="terracotta"] { --fond: #a83a1e; --r1: #ffe800; --r2: #5ec8e5; --r3: #ff48b0; --r4: #1d2b8f; }

*, *::before, *::after { box-sizing: border-box; }
* { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
/* L80 : le défilement du navigateur (focus au clavier, Tab, ancre, scrollIntoView) réserve la place des barres fixes : un champ ou un
   bouton amené au bord finissait sous la barre « À finir · Voir » et le doigt touchait la barre (parcours au doigt, 03/12). */
html:has(.entete), html:has(.ed-entete) { scroll-padding-top: 100px; }
html:has(.bas-fixe) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body { text-rendering: geometricPrecision; margin: 0; font-family: var(--corps); color: var(--encre); background: #fff; line-height: 1.45;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
input, textarea, select { font: inherit; text-rendering: inherit; color: inherit; user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
button { font: inherit; text-rendering: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
h1, h2, h3, .titre { font-family: var(--titre); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .005em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .titre { line-height: 1.35; }
img { max-width: 100%; display: block; }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cache { display: none !important; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* ---------------------------------------------------------------- boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 6px; background: var(--encre); color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: var(--ombre); transition: transform .08s ease, box-shadow .08s ease; white-space: nowrap; }
.bouton:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(20,26,77,.85); }
.bouton[disabled] { opacity: .45; pointer-events: none; }
.bouton.jaune { background: var(--jaune); color: var(--encre); }
.bouton.rose { background: var(--rose); color: var(--encre); }
.bouton.blanc { background: #fff; color: var(--encre); }
.bouton.clair { background: #eceffa; color: var(--encre); box-shadow: none; }
.bouton.grand { min-height: 60px; font-size: 1.2rem; padding: 0 28px; }
.bouton.plein { width: 100%; }
.bouton-ico { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; }
.bouton-ico:active { background: rgba(0,0,0,.06); }

/* ---------------------------------------------------------------- site public */
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right), calc((100% - 1180px) / 2)) 10px max(20px, env(safe-area-inset-left), calc((100% - 1180px) / 2));
  background: var(--vert); color: #fff; }   /* logo et langue sur la colonne du contenu (1180), aussi en 1920 (L64) */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 1.9rem; line-height: 1; text-decoration: none; padding-top: .12em; }
.logo svg { width: 34px; height: 34px; margin-top: -.12em; }
.entete nav { display: flex; align-items: center; gap: 8px; }
.langues { position: relative; }
.langues summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.langues summary::-webkit-details-marker { display: none; }
.langues[open] summary, .langues summary:active { background: rgba(255,255,255,.14); }
.langues ul { position: absolute; inset-inline-end: 0; top: 52px; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--encre);
  border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.2); min-width: 170px; }
.langues a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.langues a[aria-current] { background: #eceffa; }

.heros { background: var(--vert); color: #fff; padding: 36px 20px 0; overflow: hidden; }
.heros-dedans { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: end; }
.heros h1 { font-size: clamp(2.7rem, 7.4vw, 5.2rem); max-width: 11.5em; }
.heros h1 em { font-style: normal; color: var(--jaune); }
.heros p.chapeau { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34em; margin: 18px 0 26px; color: #e6e9ff; }
.heros .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-bottom: 8px; }
.heros .prix-mini { color: #d5dcff; font-size: 1rem; }
.heros .reprendre { margin-top: 16px; }
.scene { position: relative; padding: 0 0 40px; }
/* Téléphone et tablette étroite (détecteur de rendu, 03/12, L72) : le téléphone dessiné SEUL, entier, droit, assez grand
   pour que ses réponses se lisent (15 px). L'écran de salle réduit à 350 px donnait un texte de 7 px, et le téléphone
   posé dessus en cachait une partie. */
@media (max-width: 979px) {
  .scene .maquette-ecran, .scene .a-cote { display: none; }
  /* téléphone dessiné assez grand pour que ses réponses gardent 14 px (plancher du kit, L102) */
  .scene .maquette-tel { position: relative; inset: auto; margin: 0 auto; width: min(260px, 70vw); max-width: none; transform: none; }
}
@media (min-width: 980px) {
  .heros { padding-top: 64px; }
  .scene .seul { display: none; }
  .heros-dedans { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
  .heros-texte { padding-bottom: 72px; }
  /* ordinateur : la scène est centrée sur le bloc titre + texte + bouton, appareils entiers, rien de coupé (03/12, Superviseur) */
  .heros-dedans { align-items: center; }
  .scene { padding: 0 34px 72px 0; }
  .scene .maquette-ecran { width: 100%; border-radius: 18px; padding: 12px; }
  /* hauteur 16/9,4 AU MOINS (cale invisible), pas imposée : le texte long l'allonge au lieu d'être coupé (allemand à 1024) */
  .scene .maquette-ecran .vitre { border-radius: 8px; aspect-ratio: auto; row-gap: 10px; }
  .scene .maquette-ecran .vitre::before { content: ""; grid-area: 1 / 1 / 3 / 2; padding-top: 87%; }
  .scene .maquette-ecran .mq-q { grid-area: 1 / 1; } .scene .maquette-ecran .mq-tuiles { grid-area: 2 / 1; }
  .scene .maquette-tel { right: 0; bottom: 36px; width: 36%; max-width: 250px; transform: none; }
  /* le texte de l'écran dessiné reste dans la partie que le téléphone ne couvre pas : rien de caché derrière lui (L72) */
  .scene .maquette-ecran .vitre { padding-right: 37%; }
  .scene .maquette-ecran .mq-tuiles { grid-template-columns: 1fr; }
  .scene .maquette-ecran .mq-q { font-size: max(16px, 4.6cqw); }
  .scene .maquette-ecran .mq-q small { font-size: max(12px, .6em); }
  /* texte des maquettes lisible comme sur un vrai écran (la deuxième langue sous la première) : 13 px au moins, pas de rotation (lettres irrégulières à 8,8 px) */
  .scene .maquette-ecran .mq-tuiles div { font-size: max(13px, 2.9cqw); font-weight: 700; line-height: 1.25; padding: max(6px, 1.6cqw) max(10px, 2cqw); flex-direction: column; align-items: flex-start; gap: 0; }
}

/* écran et téléphone dessinés en HTML (la vraie interface, en petit) */
.maquette-ecran { position: relative; background: #0d1240; border-radius: 18px 18px 0 0; padding: 12px 12px 0; box-shadow: 0 -2px 0 rgba(255,255,255,.06) inset; }
.maquette-ecran .vitre { border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 16 / 9.4; background: var(--fond); color: #fff;
  display: grid; grid-template-rows: auto 1fr; padding: 4.2% 4.6% 3.4%; gap: 4%; container-type: inline-size; }
.mq-q { font-family: var(--titre); font-size: 4.6cqw; line-height: 1.05; word-spacing: .06em; text-rendering: geometricPrecision; }
.maquette-tel, .maquette-ecran { -webkit-font-smoothing: antialiased; font-kerning: normal; }
.mq-q small { display: block; font-size: max(11px, .6em); margin-top: .4em; opacity: .86; font-family: var(--corps); font-weight: 600; word-spacing: normal; }
.mq-q small[dir="rtl"] { line-height: 1.4; }
.mq-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; align-content: end; }
.mq-tuiles div { border-radius: 1.6cqw; padding: 1.8cqw 2.2cqw; color: var(--encre); font-weight: 700; font-size: 2.5cqw; display: flex; justify-content: space-between; gap: 1cqw; align-items: center; }
.mq-tuiles div span:last-child { font-weight: 500; }
.mq-tuiles .t1 { background: var(--r1); } .mq-tuiles .t2 { background: var(--r2); } .mq-tuiles .t3 { background: var(--r3); } .mq-tuiles .t4 { background: var(--r4); }
.scene .maquette-ecran { width: 84%; }
.maquette-tel { position: absolute; right: -6px; bottom: -40px; width: 32%; min-width: 150px; max-width: 230px; aspect-ratio: 9 / 18.6; background: #0d1240;
  border-radius: 30px; padding: 9px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(4deg); }
.maquette-tel .vitre { height: 100%; border-radius: 22px; background: var(--fond); color: #fff; padding: 9%; display: flex; flex-direction: column; justify-content: center; gap: 6%; container-type: inline-size; }
.maquette-tel .mq-q { font-size: 12.5cqw; }
.maquette-tel [dir="rtl"] .mq-q { font-size: 14cqw; line-height: 1.35; }
.maquette-tel .mq-tuiles { grid-template-columns: 1fr; gap: 4cqw; }
.mq-avance { display: flex; align-items: center; gap: 4cqw; font-weight: 700; font-size: max(14px, 7cqw); }
.mq-avance i { flex: 1; height: 4cqw; border-radius: 3cqw; background: linear-gradient(#fff 0 0) 0 / 34% 100% no-repeat rgba(255,255,255,.22); }
[dir="rtl"] .mq-avance i { background-position: 100%; }
.maquette-tel .mq-tuiles div { font-size: max(14px, 7.4cqw); border-radius: 4cqw; padding: 5cqw 6cqw; min-height: 17cqw; }
[data-theme="framboise"].maquette-tel .vitre, .maquette-tel[data-theme] .vitre { background: var(--fond); }

.bande { padding: 72px 20px; }
.bande-dedans { max-width: 1180px; margin: 0 auto; }
.bande h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 14em; text-wrap: balance; }
.bande p.chapeau { font-size: 1.18rem; max-width: 36em; margin: 14px 0 0; }
.bande.rose { background: #ffd9e3; } .bande.jaune { background: #fff59a; } .bande.ciel { background: #cdeef8; } .bande.menthe { background: #cdeef8; }
.bande.verte { background: var(--vert); color: #fff; }
.deux { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 820px) { .deux { grid-template-columns: 1fr 1fr; } }
.carte { background: #fff; border-radius: 4px; padding: 26px; box-shadow: 5px 5px 0 var(--encre); }
.carte h3 { font-size: 1.9rem; margin-bottom: 10px; }
.carte p { margin: 0; font-size: 1.06rem; color: #2a3160; }
.duo-tel { display: flex; gap: 16px; margin-top: 36px; justify-content: center; flex-wrap: wrap; }
.duo-tel .maquette-tel { position: relative; inset: auto; transform: none; width: 210px; min-width: 0; }
.duo-tel .maquette-tel:nth-child(2) { transform: translateY(26px); }
/* Ordinateur (L64) : le texte à gauche, les deux téléphones à droite, au lieu d'une colonne étroite et d'un vide à droite */
@media (min-width: 1000px) {
  .bande-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 72px; align-items: center; }
  .bande-duo > h2, .bande-duo > .chapeau { grid-column: 1; }
  .bande-duo > h2 { align-self: end; }
  .bande-duo > .chapeau { align-self: start; }
  .bande-duo > .duo-tel { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 26px; }
}
.liste-banque { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.liste-banque span { background: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 500; box-shadow: 3px 3px 0 var(--rose); }
.offres { display: grid; gap: 22px; margin-top: 34px; align-items: start; }
/* L'une sous l'autre, le prix à gauche et la liste à droite : côte à côte, l'offre gratuite (4 lignes) laissait un vide sous elle */
@media (min-width: 760px) {
  .billet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-rows: auto 1fr; column-gap: 36px; padding: 34px 36px 36px; }
  .billet ul { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
.billet { padding: 28px 28px 30px; border-radius: 4px; outline: 2px solid rgba(255,255,255,.35); outline-offset: -2px; }
.billet h3, .billet .montant { font-family: var(--titre); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: .95; }
/* L122 : le « € » de Rakkas a des barres qui débordent à gauche (lu « =€29 » deux fois par la porte 3) : celui d'Alexandria */
.billet .montant .devise { font-family: var(--corps); font-weight: 700; font-size: .8em; }
.billet.paye { background: var(--jaune); color: var(--encre); outline: 0; box-shadow: 8px 8px 0 var(--rose); }
.billet .une-fois { margin: 20px 0 0; font-size: 1.1rem; font-weight: 600; }
.billet ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 1.12rem; }
.billet li { display: flex; gap: 12px; align-items: flex-start; }
.billet li .ico { color: var(--ciel); margin-top: .12em; }
.billet.paye li .ico { color: var(--encre); }
.offre-creer { margin-top: 34px; }
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border-radius: 4px; box-shadow: 4px 4px 0 var(--encre); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: #2a3160; font-size: 1.05rem; }
.pied { background: var(--encre); color: #c8cdf0; padding: 36px 20px max(36px, env(safe-area-inset-bottom)); }
.pied-dedans { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-inline: -6px; }
.pied a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- éditeur des mariés */
body.editeur { background: #eef0f9; }
.ed-entete { position: sticky; top: 0; z-index: 20; background: var(--fond); color: #fff; transition: background .25s; }
.ed-barre { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top)) 16px 8px; min-height: 64px; }
.ed-barre .logo { font-size: 1.6rem; }
.ed-barre .espace { flex: 1; }
.ed-barre .bouton { min-height: 44px; padding: 0 16px; font-size: .98rem; }
.ed-etat-sauve { width: 28px; height: 28px; display: grid; place-items: center; opacity: .8; }
.ed-corps { max-width: 980px; margin: 0 auto; padding: 22px 16px 140px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.bloc { background: #fff; border-radius: 4px; padding: 22px; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.bloc > h2 { font-size: 1.9rem; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.bloc > h2 .compte { font-family: var(--corps); font-size: 1rem; font-weight: 600; color: var(--gris); }
.noms { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.noms .et { font-family: var(--titre); font-size: 2.2rem; color: var(--fond); padding-top: .15em; }
.champ { display: grid; gap: 6px; }
.champ > span { font-weight: 600; font-size: .95rem; color: var(--gris); }
.note-champ { font-size: .92rem; color: var(--gris); }
.saisie { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 6px; border: 2px solid var(--ligne); background: #fff; font-size: 1.06rem; outline: none; transition: border-color .15s; }
.saisie:focus { border-color: var(--fond); }
/* Clavier ouvert sur téléphone (appareils du public, 03/12) : le champ défile avec de l'air au-dessus du clavier, et la
   barre fixe du bas de la page des mariés se retire pendant la saisie au lieu de recouvrir le champ (L63). */
.saisie { scroll-margin-block: 24px 32px; }
html.clavier .bas-fixe { display: none; }   /* clavier À L'ÉCRAN ouvert (editeur.js, L84) ; avant : dès qu'un champ avait le focus sur écran étroit, la barre manquait aussi au clavier physique et sur Chrome Android à l'ouverture */
.saisie.gros { font-size: 1.35rem; font-weight: 600; min-height: 60px; }
.saisie::placeholder { color: #6b7196; font-weight: 400; }
.saisie.manque { border-color: var(--corail); background: #fff6f2; }
.grille-reglages { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .grille-reglages { grid-template-columns: 1fr 1fr; } }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 2px solid var(--ligne); background: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.puce .rang { font-size: .875rem; background: var(--jaune); color: var(--encre); border-radius: 6px; padding: 1px 6px; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #eceffa; border-radius: 6px; padding: 4px; gap: 4px; }
.segments button { min-height: 46px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; padding: 0 10px; }
.segments button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.1); }
.segments button[disabled] { opacity: .5; }
.themes { display: flex; gap: 12px; }
.theme { width: 64px; height: 52px; border-radius: 6px; border: 3px solid transparent; padding: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--fond); }
.theme span:nth-child(1) { background: var(--fond); grid-row: span 2; } .theme span:nth-child(2) { background: var(--r1); } .theme span:nth-child(3) { background: var(--r2); }
.theme[aria-pressed="true"] { border-color: var(--encre); box-shadow: 0 0 0 3px #fff inset; }

.question { border: 2px solid var(--ligne); border-radius: 4px; padding: 16px; display: grid; gap: 12px; background: #fff; position: relative; }
.question + .question { margin-top: 14px; }
.question.erreur { border-color: var(--corail); }
.q-tete { display: flex; align-items: center; gap: 8px; }
.q-num { font-family: var(--titre); font-size: 1.7rem; width: 44px; height: 44px; border-radius: 6px; background: var(--fond); color: #fff; display: grid; place-items: center; padding-top: .14em; flex: none; }
.q-outils { display: flex; flex: none; gap: 8px; margin-inline-start: auto; }   /* un seul groupe : au téléphone les quatre boutons passent ensemble à la ligne */
.q-genre { font-weight: 600; color: var(--gris); font-size: .95rem; }
/* Photos ajoutées (L93) : toujours entières, dans leur format, jamais agrandies au-delà de leur taille réelle. */
.q-image { position: relative; width: fit-content; max-width: min(100%, 320px); }
.q-image img { max-width: 100%; max-height: 240px; border-radius: 6px; }
.q-image .bouton-ico { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255,255,255,.92); }
.trad { display: grid; gap: 8px; }
.trad .ligne-langue { display: flex; align-items: center; gap: 8px; }
.trad .ligne-langue .saisie { flex: 1; }
.etiquette-langue { flex: none; width: 40px; height: 40px; border-radius: 6px; background: #eceffa; font-weight: 700; font-size: .875rem; display: grid; place-items: center; text-transform: uppercase; }
.reps { display: grid; gap: 10px; }
.rep { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 4px; background: #f3f4fb; }
.rep.juste { background: #d8f2fa; }
.coche { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #b8bdd8; background: #fff; display: grid; place-items: center; color: transparent; }
.rep.juste .coche { background: #1d9a62; border-color: #1d9a62; color: #fff; }
.qui-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qui-choix button { min-height: 64px; border-radius: 4px; border: 3px solid var(--ligne); background: #fff; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; }
.qui-choix button[aria-pressed="true"] { background: #d8f2fa; border-color: #1d9a62; color: #0f5e3c; }
.manque-texte { color: #c0431f; font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.ajout { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bas-fixe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; box-shadow: 0 -2px 0 rgba(0,0,0,.06);
  padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.bas-fixe .dedans { max-width: 980px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bas-fixe .resume { flex: 1; min-width: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.bas-fixe .resume .ico { color: #1d9a62; }
.bas-fixe .resume.ko .ico { color: var(--corail); }

.jour-j { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 760px) { .jour-j { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.qr-carte { background: var(--fond); border-radius: 4px; padding: 16px; display: grid; gap: 10px; justify-items: center; color: #fff; }
.qr-carte .qr { background: #fff; border-radius: 6px; padding: 12px; width: 100%; max-width: 240px; aspect-ratio: 1; }
.qr-carte .qr img { width: 100%; height: 100%; }
.qr-carte .code { font-family: var(--titre); font-size: 2rem; letter-spacing: .08em; padding-top: .12em; }
.actions-jour { display: grid; gap: 12px; }
.actions-jour .bouton { justify-content: flex-start; white-space: normal; text-align: start; }
.lien-copie { display: flex; gap: 8px; align-items: center; background: #f3f4fb; border-radius: 6px; padding: 6px 6px 6px 14px; }
/* lien entier, coupé sur deux lignes au besoin : jamais tronqué par « … » (détecteur de rendu, L73) */
.lien-copie code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--corps); font-weight: 600; }
.debloquer { background: #fff59a; border-radius: 4px; padding: 20px; display: grid; gap: 12px; }
.debloquer h3 { font-size: 1.7rem; }
.debloquer p { margin: 0; }
.debloquer .prix-pack { font-weight: 600; }
.debloquer .prix-pack b { font-family: var(--titre); font-weight: 400; font-size: 2.2rem; line-height: 1; margin-inline-end: .2em; }
.debloquer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.debloquer li { display: flex; gap: 10px; align-items: flex-start; }
.debloquer li .ico { flex: none; margin-top: .12em; }
.debloquer .total-pack { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; row-gap: 2px; padding-top: 12px; border-top: 2px solid var(--encre); }
.debloquer .total-pack b { font-size: 1.15rem; }
.debloquer .total-pack small { flex-basis: 100%; font-size: .875rem; }
.debloquer .bouton { padding-block: 10px; line-height: 1.2; text-align: center; }
.debloque { background: #d8f2fa; border-radius: 4px; padding: 16px 20px; font-weight: 600; display: flex; gap: 10px; align-items: center; color: #0f5e3c; }
.lien-mariés { background: #cdeef8; border-radius: 4px; padding: 18px 20px; display: grid; gap: 10px; }
.lien-mariés p { margin: 0; font-weight: 500; }

.feuille-fond { position: fixed; inset: 0; z-index: 50; background: rgba(8,20,16,.5); display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: #fff; width: 100%; max-width: 720px; max-height: 88dvh; border-radius: 8px 8px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 760px) { .feuille-fond { align-items: center; } .feuille { border-radius: 4px; max-height: 80dvh; } }
.feuille-tete { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 22px; }
.feuille-tete h2 { font-size: 1.9rem; flex: 1; padding-top: .1em; }
.feuille .segments { margin: 0 16px 8px; }
.feuille-liste { overflow: auto; padding: 4px 16px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.feuille-liste button { min-height: 58px; text-align: start; border: 0; border-radius: 6px; background: #f3f4fb; padding: 10px 16px; font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.feuille-liste button .ico { color: var(--fond); }
.feuille-liste button[disabled] { opacity: .45; }
.feuille-liste button span { flex: 1; }

/* ---------------------------------------------------------------- téléphone des invités */
body.jeu { background: var(--fond); color: #fff; min-height: 100dvh; transition: background .3s; }
.jeu-cadre { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.jeu-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-weight: 600; }
.jeu-haut .marque { font-family: var(--titre); font-size: 1.35rem; opacity: .85; padding-top: .1em; }
.jeu-haut .langues-jeu { display: flex; gap: 6px; }
.jeu-haut .langues-jeu button { min-width: 44px; min-height: 40px; border-radius: 6px; border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 700; padding: 0 10px; }
.jeu-haut .langues-jeu button[aria-pressed="true"] { background: #fff; color: var(--encre); border-color: #fff; }
.jeu-milieu { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 18px 0; }
.couple { font-family: var(--titre); font-size: clamp(3rem, 15vw, 4.6rem); line-height: 1; text-align: center; }
.couple .et { display: block; font-size: .55em; color: var(--r2); margin: .08em 0; }
.entree { display: grid; gap: 12px; }
.entree .saisie { background: #fff; border-color: #fff; color: var(--encre); text-align: center; font-size: 1.4rem; font-weight: 600; min-height: 64px; }
.entree .bouton { background: var(--r2); color: var(--encre); min-height: 64px; font-size: 1.3rem; }
.grand-nom { font-family: var(--titre); font-size: clamp(2.6rem, 12vw, 4rem); text-align: center; line-height: 1.05; }
.message { text-align: center; font-size: 1.25rem; font-weight: 500; opacity: .92; }
.compteur { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; background: rgba(255,255,255,.14); border-radius: 6px; padding: 8px 14px; align-self: center; }
.attente-points { display: flex; gap: 10px; justify-content: center; }
.attente-points i { width: 14px; height: 14px; border-radius: 50%; background: var(--r1); animation: saut 1.2s infinite ease-in-out; }
.attente-points i:nth-child(2) { background: var(--r2); animation-delay: .15s; } .attente-points i:nth-child(3) { background: var(--r3); animation-delay: .3s; }
@keyframes saut { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .attente-points i { animation: none; } }

.progression { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.progression .barre { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.progression .barre i { display: block; height: 100%; background: #fff; border-radius: 6px; transform-origin: left; }
[dir="rtl"] .progression .barre i { transform-origin: right; }
.texte-question { font-family: var(--titre); font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.1; }
[dir="rtl"] .texte-question { line-height: 1.5; }
/* Arabe (L115) : les questions et les chiffres en Alexandria. Le Rakkas arabe est un caractère d'affiche, lent à lire, et son
   « 0 » se prend pour le « ٥ » (cinq) : il reste aux titres et aux prénoms. */
:is(.texte-question, .ecran-question .t-princ, .ecran-question .t-sec, .mq-q, .souv-q .bonne):lang(ar) { font-family: var(--corps); font-weight: 700; line-height: 1.4; }
:is(.score-ligne b, .verdict .points, .podium-tel div b):lang(ar) { font-family: var(--corps); font-weight: 800; padding-top: 0; }
.photo-question { display: grid; place-items: center; }
.photo-question img { max-width: 100%; max-height: 34dvh; border-radius: 4px; }
.tuiles { display: grid; gap: 12px; }
.tuile { min-height: 68px; border: 0; border-radius: 4px; padding: 14px 18px; text-align: start; font-size: 1.22rem; font-weight: 700; color: var(--encre);
  display: flex; align-items: center; gap: 12px; box-shadow: 0 5px 0 rgba(0,0,0,.22); transition: transform .08s, box-shadow .08s, opacity .2s; }
.tuile:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.tuile .marque-tuile { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); flex: none; }
.tuile.t0 { background: var(--r1); } .tuile.t1 { background: var(--r2); } .tuile.t2 { background: var(--r3); } .tuile.t3 { background: var(--r4); }
.tuile.choisie { outline: 4px solid #fff; outline-offset: 3px; }
.tuile.eteinte { background: rgba(255,255,255,.1); color: rgba(255,255,255,.62); box-shadow: inset 6px 0 0 var(--teinte, transparent); }
[dir="rtl"] .tuile.eteinte { box-shadow: inset -6px 0 0 var(--teinte, transparent); }
.tuile.t0 { --teinte: var(--r1); } .tuile.t1 { --teinte: var(--r2); } .tuile.t2 { --teinte: var(--r3); } .tuile.t3 { --teinte: var(--r4); }
.tuile.eteinte .marque-tuile { background: rgba(255,255,255,.16); color: #fff; }
.tuile[disabled] { cursor: default; }
.verdict { text-align: center; display: grid; gap: 16px; justify-items: center; }
.verdict .titre { font-size: clamp(2.6rem, 12vw, 3.6rem); }
.verdict .points { font-family: var(--titre); font-size: 2rem; color: var(--r2); padding-top: .1em; }
.score-ligne { display: flex; gap: 12px; }
.score-ligne > div { flex: 1; background: rgba(255,255,255,.12); border-radius: 4px; padding: 14px 16px; text-align: center; }
.score-ligne b { display: block; font-family: var(--titre); font-size: 2.4rem; font-weight: 400; line-height: 1; padding-top: .12em; }
.score-ligne span { display: block; margin-top: .45em; font-weight: 600; opacity: .85; font-size: .95rem; }
.podium-tel { display: grid; gap: 10px; }
.podium-tel div { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border-radius: 4px; padding: 12px 16px; font-weight: 700; font-size: 1.15rem; }
.podium-tel div b { font-family: var(--titre); font-weight: 400; font-size: 1.8rem; width: 36px; padding-top: .1em; }
.podium-tel div:nth-child(1) b { color: var(--r2); }
.podium-tel div span:last-child { margin-inline-start: auto; opacity: .85; }
.hors-ligne { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; max-width: 536px; margin: 0 auto; background: var(--encre); color: #fff;
  border-radius: 4px; padding: 12px 16px; font-weight: 600; font-size: 1rem; line-height: 1.3; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.hors-ligne .ico { flex: none; }
.suivante { align-self: stretch; }

/* ---------------------------------------------------------------- écran de la salle */
body.ecran { background: var(--fond); color: #fff; height: 100dvh; overflow: hidden; cursor: default; transition: background .4s; }
body.ecran.souris-cachee { cursor: none; }
.scene-ecran { position: absolute; inset: 0; padding: 4.5vh 4.5vw; display: flex; flex-direction: column; gap: 3.2vh; }
.ecran-accueil { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 5vw; align-items: center; }
.ecran-accueil { min-height: 0; }
.ecran-accueil .couple { font-size: calc(min(9vw, 14vh) * var(--k)); text-align: start; }
[dir="rtl"] .ecran-accueil .couple { text-align: start; }
.rejoindre { display: grid; gap: 2.2vh; justify-items: center; }
.rejoindre .qr { background: #fff; border-radius: .6vh; padding: 2.6vh; width: calc(min(34vw, 54vh) * var(--k)); aspect-ratio: 1; }
.rejoindre .qr img { width: 100%; height: 100%; }
.rejoindre .adresse { font-weight: 700; font-size: calc(min(2.6vw, 4.2vh) * var(--k)); text-align: center; line-height: 1.25; }
.rejoindre .adresse b { font-family: var(--titre); font-weight: 400; font-size: 1.35em; letter-spacing: .06em; color: var(--r2); display: block; padding-top: .12em; }
.scanner { display: grid; gap: .6vh; font-size: calc(min(2.3vw, 3.6vh) * var(--k)); font-weight: 600; margin-top: 3vh; text-align: left; }
[dir="rtl"] .scanner { text-align: right; }
.scanner span { opacity: .92; }
.nuage { display: flex; flex-wrap: wrap; gap: 1.4vh 1vw; margin-top: 3.5vh; max-height: 29vh; overflow: hidden; align-content: flex-start; }
.nuage span { background: var(--r1); color: var(--encre); border-radius: 4px; padding: 1vh 1.4vw; font-weight: 700; font-size: calc(min(2.4vw, 3.8vh) * var(--k));
  box-shadow: .5vh .5vh 0 var(--encre); }
.nuage span.t1 { background: var(--r2); } .nuage span.t2 { background: var(--r3); } .nuage span.t3 { background: var(--r4); }
.nuage span.t3 { color: var(--encre); }
.nuage span.arrive { animation: arrive .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes arrive { from { transform: translateY(3vh) scale(.5) rotate(-8deg); opacity: 0; } }
.nuage { position: relative; }
.nuage span.deborde { display: none; }
.nuage span.plus { background: #fff; color: var(--encre); box-shadow: .5vh .5vh 0 var(--encre); }
.nuage .attente-points { display: flex; gap: 1.2vh; padding-top: 14px; }   /* ils sautent de 12 px : le nuage (overflow hidden) les coupait */
.nuage .attente-points i { width: 2vh; height: 2vh; }
@media (prefers-reduced-motion: reduce) { .nuage span.arrive { animation: none; } }
@keyframes entre { from { transform: translateY(1.5vh); opacity: 0; } }
.ecran-tete { display: flex; align-items: center; gap: 2vw; font-weight: 700; font-size: calc(min(2vw, 3.2vh) * var(--k)); }
.ecran-tete .num { font-family: var(--titre); font-size: 1.6em; font-weight: 400; padding-top: .12em; }
.ecran-tete .espace { flex: 1; }
.ecran-tete .pastille { display: inline-flex; align-items: center; gap: .6vw; background: rgba(255,255,255,.14); border-radius: .6vh; padding: 1vh 1.4vw; }
.chrono { position: relative; width: calc(min(9vw, 14vh) * var(--k)); aspect-ratio: 1; flex: none; }
.chrono svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.chrono circle { fill: none; stroke-width: 9; }
.chrono .fond-c { stroke: rgba(255,255,255,.2); }
.chrono .arc { stroke: var(--r2); stroke-linecap: round; }
.chrono b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titre); font-weight: 400; font-size: calc(min(4.2vw, 6.5vh) * var(--k)); padding-top: .12em; }
.ecran-question { flex: 1; display: grid; grid-template-rows: auto 1fr; gap: 3.5vh; min-height: 0; }
.ecran-question .haut { display: flex; gap: 3vw; align-items: flex-start; min-height: 0; }
.ecran-question .textes { flex: 1; display: grid; gap: 1.6vh; text-align: left; }
[dir="rtl"] .ecran-question .textes { text-align: right; }
.ecran-question .t-princ { font-family: var(--titre); font-size: calc(min(5.2vw, 8.4vh) * var(--k)); line-height: 1.06; }
.ecran-question .t-sec { font-family: var(--titre); font-size: calc(min(3.1vw, 5vh) * var(--k)); line-height: 1.15; opacity: .8; }
.ecran-question [dir="rtl"] { line-height: 1.5; }
.ecran-question .photo { max-width: calc(min(30vw, 40vh) * var(--k)); flex: none; }
.ecran-question .photo img { max-width: 100%; max-height: calc(min(30vw, 40vh) * var(--k)); border-radius: .6vh; }
.grille-ecran { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2vh 1.6vw; align-content: end; }
.grille-ecran.deux-reps { grid-template-columns: 1fr 1fr; }
.tuile-ecran { position: relative; border-radius: .6vh; padding: 2.2vh 2vw; color: var(--encre); min-height: calc(13vh * var(--k)); display: flex; flex-direction: column; justify-content: center; gap: .6vh;
  overflow: hidden; box-shadow: 0 .7vh 0 rgba(0,0,0,.2); transition: opacity .35s, transform .35s; }
.tuile-ecran { padding-inline-end: 9vw; text-align: left; }
[dir="rtl"] .tuile-ecran { text-align: right; }
.tuile-ecran.t0 { background: var(--r1); } .tuile-ecran.t1 { background: var(--r2); } .tuile-ecran.t2 { background: var(--r3); } .tuile-ecran.t3 { background: var(--r4); }
.tuile-ecran .p { font-weight: 700; font-size: calc(min(2.9vw, 4.6vh) * var(--k)); line-height: 1.12; position: relative; }
.tuile-ecran .s { font-weight: 500; font-size: calc(min(2vw, 3.2vh) * var(--k)); opacity: .9; position: relative; }
.ecran-question .t-sec:lang(ar) { font-size: calc(min(3.9vw, 6.3vh) * var(--k)); line-height: 1.3; } .tuile-ecran .s:lang(ar) { font-size: calc(min(2.5vw, 4vh) * var(--k)); }
.tuile-ecran .jauge { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(0,0,0,.1); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tuile-ecran .nb { position: absolute; inset-inline-end: 2vw; top: 50%; transform: translateY(-50%); font-family: var(--titre); font-size: calc(min(4vw, 6.4vh) * var(--k)); padding-top: .12em; }
.tuile-ecran.fausse { background: rgba(255,255,255,.09); color: rgba(255,255,255,.6); box-shadow: inset 1vh 0 0 var(--teinte); }
[dir="rtl"] .tuile-ecran.fausse { box-shadow: inset -1vh 0 0 var(--teinte); }
.tuile-ecran.fausse .jauge { background: rgba(255,255,255,.08); }
.tuile-ecran.t0 { --teinte: var(--r1); } .tuile-ecran.t1 { --teinte: var(--r2); } .tuile-ecran.t2 { --teinte: var(--r3); } .tuile-ecran.t3 { --teinte: var(--r4); }
.tuile-ecran.bonne { box-shadow: 0 0 0 .7vh #fff, 0 .7vh 0 .7vh rgba(0,0,0,.2); }
.tuile-ecran .vrai { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--encre); color: #fff; margin-inline-end: .5em; vertical-align: -.2em; }
.tuile-ecran .vrai .ico { width: .8em; height: .8em; stroke-width: 3.2; }
.classement-ecran { flex: 1; display: grid; align-content: center; gap: 1.4vh; max-width: 1200px; width: 100%; margin: 0 auto; }
.classement-ecran h2 { font-size: calc(min(5vw, 8vh) * var(--k)); margin-bottom: 1.5vh; }
.ligne-cl { display: grid; grid-template-columns: calc(min(6vw, 9vh) * var(--k)) 1fr auto; align-items: center; gap: 2vw; background: rgba(255,255,255,.13); border-radius: .6vh;
  padding: 1.5vh 2vw; font-size: calc(min(2.8vw, 4.4vh) * var(--k)); font-weight: 700; }
.ligne-cl b { font-family: var(--titre); font-weight: 400; font-size: 1.3em; padding-top: .12em; }
.ligne-cl:nth-child(2) { background: var(--r2); color: var(--encre); }
.ligne-cl .pts { font-family: var(--titre); font-weight: 400; padding-top: .12em; }
.ecran-libre { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 6vw; align-items: center; min-height: 0; }
.libre-gauche { display: grid; gap: 3vh; justify-items: start; align-content: center; }
.libre-gauche .scanner { margin-top: 0; }
.ecran-libre .rejoindre { justify-items: start; }
.ecran-libre .rejoindre .qr { width: calc(min(26vw, 40vh) * var(--k)); }
.ecran-libre .rejoindre .adresse { text-align: start; }
.ecran-libre .classement-ecran { align-content: center; }
.ecran-libre .couple { font-size: calc(min(4.6vw, 8vh) * var(--k)); text-align: start; }
.ecran-libre .couple .et { display: inline; margin: 0 .25em; font-size: .7em; }
.podium { flex: 1; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 2vw; align-items: end; max-width: 1300px; width: 100%; margin: 0 auto; }
.marche { display: grid; gap: 2vh; justify-items: center; text-align: center; animation: monte .8s cubic-bezier(.2,.8,.2,1) both; }
.marche:nth-child(1) { animation-delay: .5s; } .marche:nth-child(2) { animation-delay: 1.1s; } .marche:nth-child(3) { animation-delay: 0s; }
@keyframes monte { from { transform: translateY(8vh); opacity: 0; } }
.marche .nom { font-weight: 700; font-size: calc(min(3vw, 4.8vh) * var(--k)); line-height: 1.1; }
.marche .pts { font-family: var(--titre); font-size: calc(min(2.6vw, 4.2vh) * var(--k)); opacity: .85; }
.marche .bloc-p { width: 100%; border-radius: .6vh .6vh 0 0; display: grid; place-items: start center; padding-top: 2.4vh; font-family: var(--titre); font-size: calc(min(9vw, 15vh) * var(--k)); color: var(--encre); line-height: 1; }
.marche:nth-child(1) .bloc-p { height: calc(30vh * var(--k)); background: var(--r1); }
.marche:nth-child(2) .bloc-p { height: calc(42vh * var(--k)); background: var(--r2); }
.marche:nth-child(3) .bloc-p { height: calc(22vh * var(--k)); background: var(--r3); }
.ecran-titre-podium { text-align: center; font-size: calc(min(4.4vw, 7vh) * var(--k)); }
.commandes { position: fixed; bottom: 2.2vh; inset-inline-end: 2vw; display: flex; gap: 10px; z-index: 5; transition: opacity .4s; }
.commandes .bouton { min-height: 52px; }
body.souris-cachee .commandes { opacity: 0; pointer-events: none; }
.ecran-vide { flex: 1; display: grid; place-items: center; text-align: center; }

/* ---------------------------------------------------------------- régie (téléphone du maître de cérémonie) */
body.regie { background: #eef0f9; min-height: 100dvh; }
.regie-cadre { max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.regie-etat { background: var(--fond); color: #fff; border-radius: 4px; padding: 20px; display: grid; gap: 14px; }
.regie-etat h1 { font-size: 2.4rem; }
.regie-etat .bouton.jaune { min-height: 76px; font-size: 1.4rem; }
.regie-ligne { display: flex; gap: 10px; }
.regie-ligne .bouton { flex: 1; }
.liste-joueurs { display: grid; gap: 8px; }
.liste-joueurs div { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 6px 6px 6px 16px; font-weight: 600; min-height: 56px; }
.liste-joueurs div span { flex: 1; }
.liste-joueurs .pts { color: var(--gris); flex: none; }

/* ---------------------------------------------------------------- pages simples */
.simple { min-height: 100dvh; display: grid; place-items: center; background: var(--vert); color: #fff; padding: 24px; text-align: center; }
.simple.formulaire { place-items: start center; padding-top: max(48px, 9dvh); }   /* formulaire calé en haut : centré en hauteur, tout remontait quand le message d'erreur s'ajoutait (L78) */
.simple .dedans { display: grid; gap: 18px; justify-items: center; max-width: 520px; }
.simple h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); text-wrap: balance; }   /* « pas. » seul sur sa ligne dans la 404 (03/12) */
.code-saisie { display: flex; gap: 10px; width: 100%; }
.code-saisie .saisie { text-transform: uppercase; letter-spacing: .2em; text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--encre); }
.code-saisie .saisie::placeholder { text-transform: none; letter-spacing: 0; font-size: 1.1rem; }
/* éléments de grille : jamais plus larges que leur colonne (un lien long ne pousse pas la page) */
.jour-j > *, .actions-jour > *, .actions-jour > div > *, .bloc > * { min-width: 0; }
.actions-jour { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- impression riso : trame, repérage décalé, ombres d'encre */
body.jeu, body.ecran, .heros, .bande.verte {
  background-image: radial-gradient(rgba(255,255,255,.075) 1.3px, transparent 1.7px); background-size: 10px 10px; }
h1, .texte-question, .grand-nom, .couple, .ecran-question .t-princ, .classement-ecran h2, .verdict .titre { text-shadow: .045em .035em 0 rgba(255,72,176,.9); }
.bande:not(.verte) h2 { text-shadow: .04em .03em 0 rgba(255,72,176,.55); }
.tuile, .tuile-ecran, .mq-tuiles div, .bouton.jaune, .entree .bouton { border-radius: 4px; }
.tuile { box-shadow: 6px 6px 0 var(--decale, #ff48b0); }
.tuile:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--decale, #ff48b0); }
.tuile.t0, .tuile-ecran.t0 { --decale: var(--r2); } .tuile.t1, .tuile-ecran.t1 { --decale: var(--r1); }
.tuile.t2, .tuile-ecran.t2 { --decale: var(--r1); } .tuile.t3, .tuile-ecran.t3 { --decale: var(--r2); }
.tuile-ecran { box-shadow: .8vh .8vh 0 var(--decale); }
.bouton.jaune, .entree .bouton { box-shadow: 5px 5px 0 #ff48b0; }
.signature { position: fixed; inset-inline: 0; text-align: center; bottom: 2.4vh; pointer-events: none; font-family: var(--titre); font-size: 2.8vh; color: #fff; opacity: .8; z-index: 5; }
.tuile.eteinte, .tuile-ecran.fausse { box-shadow: none; background: transparent; outline: 2px solid rgba(255,255,255,.3); outline-offset: -2px; }
.ligne-cl, .score-ligne > div, .podium-tel div { border-radius: 4px; }
.ligne-cl:nth-child(2) { box-shadow: .7vh .7vh 0 #ff48b0; }
.ligne-cl.vide { opacity: .45; background: rgba(255,255,255,.13); color: inherit; box-shadow: none; }
.ligne-cl.vide span:not(.pts) { height: .9em; border-radius: .4vh; background: rgba(255,255,255,.18); max-width: 60%; }
.bande.rose { background: #ffd6ec; } .bande.jaune { background: #fff59a; } .bande.ciel { background: #cdeef8; } .bande.menthe { background: #cdeef8; }
.mq-tuiles div { box-shadow: .6cqw .6cqw 0 #ff48b0; }

/* Renonciation au droit de rétractation, cochée avant le paiement (L221-28 13°) */
.immediat { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-block: 4px; font-size: .95rem; line-height: 1.4; cursor: pointer; -webkit-user-select: none; user-select: none; }
.immediat input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--encre, #141a4d); }
.immediat a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Pages légales */
.legal { max-width: 46rem; margin: 0 auto; padding: 48px 24px 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 24px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal .note-langue { opacity: .75; }
.liens-legaux { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; }
.liens-legaux a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.lien-effacer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: #2a3160; font: inherit; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-effacer svg { width: 18px; height: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.immediat input { appearance: none; -webkit-appearance: none; border: 2px solid var(--encre, #141a4d); border-radius: 4px; background: #fff; display: grid; place-content: center; }
.immediat input:checked { background: var(--encre, #141a4d); }
.immediat input:checked::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.immediat input:focus-visible { outline: 3px solid var(--r2, #ff48b0); outline-offset: 2px; }
/* Avis de l'éditeur DANS la barre collée, à la place du vide (et du logo au téléphone) : il ne recouvre rien (L103, 04/12 :
   posé sur l'en-tête puis dessous, il cachait le logo, puis le bouton photo de la question). */
.ed-avis { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.ed-barre:has(.ed-avis:not(.cache)) .espace { display: none; }
@media (max-width: 759px) {
  .ed-avis { font-size: .875rem; line-height: 1.14; }
  .ed-barre:has(.ed-avis:not(.cache)) .logo { display: none; }
  .ed-barre:has(.ed-avis:not(.cache)) .bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* prénoms longs en réponse : la coche passe au-dessus, « Charlotte » garde sa ligne entière */
  .qui-choix button { flex-direction: column; gap: 2px; padding-inline: 6px; }
}

/* ---------------------------------------------------------------- tout tient (casseur parcours 02/12, D16 à D23)
   Écran de salle : --k est réglé par pilote.js (ajuster) jusqu'à ce que la scène tienne entière ; la signature a sa place. */
.scene-ecran { --k: 1; }
body.ecran:has(#signature:not([hidden])) .scene-ecran { padding-bottom: calc(4.5vh + 5.5vh); }
.ecran-accueil { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ecran-accueil > *, .libre-gauche > *, .ecran-question .haut > *, .grille-ecran > *, .marche { min-width: 0; }
.ecran-libre { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.grille-ecran { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: safe end; }
.podium { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); }
.ligne-cl { grid-template-columns: calc(min(6vw, 9vh) * var(--k)) minmax(0, 1fr) auto; }
.ligne-cl span:not(.pts), .nuage span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* Écran de la salle : un mot ne se coupe qu'en dernier recours (classe serre posée par ajuster() quand même l'échelle la
   plus petite déborde) ; avant, la coupure partout empêchait ajuster() de voir le débordement et « Éléonore » se coupait
   en « Él / éonore » à pleine taille (essai des ajouts 03/12, L94). */
.scene-ecran.serre :is(.t-princ, .t-sec, .tuile-ecran .p, .tuile-ecran .s, .couple, .marche .nom) { overflow-wrap: anywhere; }
/* téléphones et régie : un prénom sans espace se coupe au lieu de pousser la page */
.grand-nom, .podium-tel span, .liste-joueurs span, main .couple { overflow-wrap: anywhere; min-width: 0; }
.scene-ecran .couple { min-width: 0; }   /* écran : ajuster() réduit d'abord la taille, la coupure vient en dernier recours (L94) */
.podium-tel div span:nth-child(2) { flex: 1; }
.podium-tel div span:last-child { flex: none; }
.regie .bouton { white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.regie-ligne { flex-wrap: wrap; }
.regie-ligne .bouton { flex: 1 1 140px; }
.liste-joueurs .bouton-ico { flex: none; }
/* éditeur sur téléphone */
.trad .ligne-langue .saisie, .rep > * { min-width: 0; }
.rep { grid-template-columns: auto minmax(0, 1fr) auto; }
.bouton-ico { flex: none; }
textarea.saisie { resize: none; overflow: hidden; line-height: 1.3; font-family: inherit; display: block; }
@media (max-width: 520px) {
  .bas-fixe .dedans { flex-wrap: wrap; }
  .bas-fixe .resume { flex: 1 1 100%; }
  .bas-fixe .dedans > .bouton { flex: 1 1 auto; }
  .question { padding: 12px; }
  .q-tete { flex-wrap: wrap; }
}
/* cibles d'au moins 44 px */
.jeu-haut .langues-jeu button { min-height: 44px; }
.logo { min-height: 44px; }
.pied a { min-width: 44px; justify-content: center; padding-inline: 6px; }   /* « AGB » centré dans ses 44 px : l'air autour est le même pour tous */
/* accueil : le nuage des prénoms prend la place qui reste dans la colonne (jamais plus), « +N » compte le reste */
.ecran-accueil { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.ecran-accueil > div:first-child { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.ecran-accueil > .rejoindre { align-content: center; }
/* hauteur fixée par la place libre, jamais par son contenu : masquer des prénoms ne le fait pas rétrécir sous le « +N » */
.ecran-accueil .nuage { flex: 1 1 0; min-height: calc(11vh * var(--k)); max-height: calc(29vh * var(--k)); }
/* éditeur à 320 px : les réglages ne poussent plus la page (thèmes et langues vont à la ligne) */
.grille-reglages { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grille-reglages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grille-reglages > *, .saisie { min-width: 0; }
.themes { flex-wrap: wrap; }
.question { grid-template-columns: minmax(0, 1fr); }
.question > *, #questions { min-width: 0; }
.qui-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qui-choix button span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.scene-ecran.mesure *:not(.nuage > *) { animation: none !important; transition: none !important; }
/* une marche du podium ne s'élargit jamais avec le prénom : il rétrécit (ajuster), puis se coupe */
.marche { grid-template-columns: minmax(0, 1fr); }
.marche > * { max-width: 100%; }
/* le logo est le nom (CADRE-COMMUN « Logo », 02/12 23:01) : « Quiz » blanc, « oui » jaune, repérage rose décalé */
.logo { gap: 0; letter-spacing: -.01em; text-shadow: .05em .04em 0 rgba(255,72,176,.95); }
.logo .oui { color: var(--jaune); }

/* achat : adresse de confirmation (support durable, LEGAL.md) ; invités : lien de confidentialité (RGPD art. 13) */
.mail-achat { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.lien-discret { display: block; margin: 18px auto 0; min-height: 44px; line-height: 44px; text-align: center; font-size: .9rem; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.simple .retractation { text-align: start; justify-items: stretch; }   /* .simple .dedans centrait le formulaire : il prenait la largeur de son contenu, décalé du texte, et s'élargissait quand l'erreur apparaissait (L78) */
.retractation h1 { text-align: center; }
.retractation .lien-discret { justify-self: center; }
.retracter { display: grid; gap: 16px; }
.lien-retracter { display: inline-block; min-height: 44px; line-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; }
.legal .encadre { border: 2px solid currentColor; padding: 4px 18px; margin: 12px 0 20px; }
.legal .formulaire { border-inline-start: 4px solid var(--rose, currentColor); margin: 12px 0 20px; padding: 6px 16px; line-height: 1.9; }

/* ---- livre d'or : téléphone de l'invité (fond coloré) ---- */
.livre { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 3px dashed rgba(255,255,255,.35); }
.livre h2 { font-family: var(--titre); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0; }
.livre form { display: grid; gap: 12px; }
.livre textarea.saisie { min-height: 120px; color: var(--encre); line-height: 1.4; }
.livre blockquote { margin: 0; background: rgba(255,255,255,.12); border-radius: 4px; padding: 14px 16px; font-size: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
/* L121 : un mot plus long que la colonne se coupe par la césure de la langue (trait d'union), pas en pleine lettre */
:is(.livre blockquote, .livre-maries .mot p, .souv-livre blockquote) { -webkit-hyphens: auto; hyphens: auto; }
.livre .ligne-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.livre .nom-photo, .livre .photo-jointe { font-weight: 700; margin: 0; }
.livre .nom-photo img { display: block; max-width: 132px; max-height: 88px; border-radius: 4px; }
.livre .photo-jointe { display: grid; justify-items: center; }
.livre .photo-jointe img { max-width: 100%; max-height: 240px; border-radius: 4px; }
.livre .signes { margin-inline-start: auto; font-weight: 600; opacity: .85; }
.livre .choisir-photo { position: relative; cursor: pointer; }
.livre .bouton-texte { color: inherit; }
.cache-visuel { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.bouton-texte { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--gris); }

/* ---- livre d'or : page des mariés ---- */
.livre-maries:empty { display: none; }
.livre-maries { margin-top: 22px; display: grid; gap: 12px; background: #fff; border: 2px solid var(--ligne); border-radius: 4px; padding: 18px 20px; }
.livre-maries .tete-livre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.livre-maries h3 { font-size: 1.7rem; margin: 0; }
.livre-maries .compte { font-family: var(--titre); color: #ff48b0; }
.livre-maries .avis-effacement, .livre-maries .vide { margin: 0; color: var(--gris); }
/* en colonnes et non en grille : une rangée de grille prend la hauteur de son plus long mot (400 signes) et laisse des
   trous de 250 px à côté des « Bravo ! » (essais/ajouts.py, livre de 300 mots, 03/12) */
.livre-maries .mots { columns: 3 260px; column-gap: 12px; }
.livre-maries .mot { display: grid; gap: 8px; align-content: start; background: #f4f5fb; border-radius: 4px; padding: 12px;
  break-inside: avoid; margin: 0 0 12px; }
.livre-maries .mot img { max-width: 100%; max-height: 320px; border-radius: 3px; justify-self: center; }
:is(.livre-maries .mot p, .souv-livre blockquote, .livre blockquote):dir(rtl) { line-height: 1.75; }
.livre-maries .mot p { margin: 0; text-align: start; white-space: pre-wrap; overflow-wrap: anywhere; }
.livre-maries .mot footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.livre-maries .livre-suite { justify-self: center; }

/* ---- souvenir de la partie : écran (iPad) puis impression A4 ---- */
body.souvenir { background: #eef0f8; }
.souv-barre { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); background: var(--fond); }
.souv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.souv-feuilles { display: grid; gap: 28px; justify-items: center; padding: 28px 16px 60px; }
.souv-feuille { width: min(100%, 210mm); min-height: min(297mm, 140vw); background: #fff; padding: clamp(24px, 6vw, 18mm); box-shadow: 0 2px 0 rgba(20,26,77,.08);
  display: flex; flex-direction: column; gap: 22px; }
.souv-feuille h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--fond); text-shadow: .045em .035em 0 var(--rose); }
.couverture { background: var(--fond) radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.6px) 0 0 / 18px 18px; color: #fff;
  justify-content: center; align-items: center; text-align: center; }
.souv-noms { font-size: clamp(3rem, 11vw, 5.6rem); color: var(--jaune); text-shadow: .05em .05em 0 var(--rose); overflow-wrap: anywhere; }
.souv-date { font-size: 1.6rem; font-weight: 600; margin: 0; }
.souv-chiffres { margin: 0; font-size: 1.4rem; opacity: .9; }
.souv-podium { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 12px; align-items: flex-end; }   /* un ou deux joueurs : au milieu de la feuille */
.souv-podium li { flex: 0 1 calc((100% - 24px) / 3); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; text-align: center; }
.souv-podium .rang { font-family: var(--titre); font-size: 3.4rem; line-height: 1; width: 100%; display: grid; place-items: center; color: var(--encre);
  box-shadow: 4px 4px 0 rgba(20,26,77,.85); }
.souv-podium .marche-1 { order: 2; } .souv-podium .marche-1 .rang { background: var(--r1); height: 170px; }
.souv-podium .marche-2 { order: 1; } .souv-podium .marche-2 .rang { background: var(--r2); height: 130px; }
.souv-podium .marche-3 { order: 3; } .souv-podium .marche-3 .rang { background: var(--r3); height: 100px; }
.souv-podium li > b { order: -1; font-size: 1.15rem; overflow-wrap: anywhere; }
.souv-podium li > span:last-child { font-weight: 600; color: var(--gris); }
/* liste en colonnes (block : une grille annulait columns) ; tout texte long se coupe dans sa feuille (casseur du pack, D8) */
.souv-liste { margin: 0; padding-inline-start: 2.2em; display: block; columns: 2 220px; column-gap: 24px; }
.souv-liste li b, .souv-q .q, .souv-q .bonne, .souv-livre figcaption { overflow-wrap: anywhere; }
.souv-questions, .souv-q, .souv-livre figure { grid-template-columns: minmax(0, 1fr); }
.souv-liste li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--ligne); }
.souv-liste li span { float: inline-end; color: var(--gris); font-weight: 600; }
.souv-questions { display: grid; gap: 20px; }
.souv-q { display: grid; gap: 6px; break-inside: avoid; }
.souv-q .q { margin: 0; color: var(--gris); font-weight: 600; }
.souv-q .bonne { margin: 0; font-family: var(--titre); font-size: 1.7rem; line-height: 1.15; }
.souv-q .jauge { height: 12px; background: #e3e6f3; }
.souv-q .jauge span { display: block; height: 100%; background: var(--fond); }
.souv-q .detail { margin: 0; color: var(--encre); }
.souv-livre { columns: 2 260px; column-gap: 16px; }
.souv-livre figure { break-inside: avoid; margin: 0 0 16px; background: #f4f5fb; padding: 12px; display: grid; gap: 8px; }
.souv-livre blockquote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.souv-livre figcaption { font-weight: 700; }
.souv-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding: 28px 20px 0; max-width: 1100px; margin: 0 auto; }
.souv-image { margin: 0; display: grid; gap: 12px; }
.souv-image img { width: 100%; height: auto; box-shadow: 4px 4px 0 rgba(20,26,77,.85); }
.souv-image figcaption { display: flex; gap: 10px; flex-wrap: wrap; }
/* au téléphone, une feuille a la hauteur de son contenu (la couverture garde un grand aplat) ; le papier garde son A4 */
@media screen and (max-width: 599px) { .souv-feuille { min-height: 0; } .couverture { min-height: 62svh; } }
@page { size: A4; margin: 0; }
@media print {
  body.souvenir { background: #fff; }
  .souv-barre, .souv-images { display: none !important; }
  .souv-feuilles { display: block; padding: 0; }
  .souv-feuille { width: 210mm; min-height: 297mm; box-shadow: none; padding: 16mm; break-after: page; }
  .souv-feuille:last-child { break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.livre-maries .souvenir-ligne { padding-bottom: 14px; border-bottom: 2px dashed var(--ligne); }

/* Écran à leur image (pack mariage, L52) : la photo du couple tirée en bichromie Riso, le noir de l'encre sur la teinte
   du thème (multiply : jamais plus clair que le fond, le texte blanc reste lisible partout), trame de points par-dessus. */
.fond-couple { position: absolute; inset: 0; background: var(--fond); overflow: hidden; pointer-events: none; transition: opacity .6s; }
.fond-couple img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.15) brightness(1.08); mix-blend-mode: multiply; }
.fond-couple::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.09) 1.3px, transparent 1.7px) 0 0 / 9px 9px; }
.fond-couple.efface { opacity: 0; }
.date-couple { font-family: var(--corps); font-weight: 600; font-size: calc(min(2.4vw, 3.8vh) * var(--k)); margin-top: 1.6vh; opacity: .9; letter-spacing: .01em; }
.ecran-titre-podium .date-couple { font-size: .42em; margin-top: .5vh; }
.ecran-accueil .date-couple, .ecran-libre .date-couple { text-align: start; }
/* la boîte d'une ligne de Rakkas descend d'un quart de corps sous la ligne : la date garde cet air (détecteur de rendu, L73) */
.ecran-accueil .couple, .ecran-libre .couple { margin-bottom: .26em; }
.fond-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fond-choix[aria-busy="true"] { opacity: .5; pointer-events: none; }
.fond-apercu { position: relative; width: min(100%, 360px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 4px 4px 0 var(--encre); }
.fond-apercu .titre { position: relative; color: #fff; font-size: clamp(1.4rem, 5vw, 2rem); text-align: center; padding: 0 12px; text-shadow: .05em .05em 0 var(--r1); }
.fond-apercu .fond-couple::after { background-size: 5px 5px; }
.fond-actions { display: flex; align-items: center; gap: 10px; }
.fond-choix .bouton { white-space: normal; text-align: start; padding-block: 10px; max-width: 100%; }

/* Toutes les fêtes (pack mariage, L53) : une rangée d'onglets au-dessus du quiz, la fête ouverte en encre pleine. */
.fetes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.fete { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 6px; font-weight: 700;
  text-decoration: none; color: var(--encre); background: #eef0fb; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.fete[aria-current="page"] { background: var(--encre); color: #fff; box-shadow: 3px 3px 0 var(--r1); }
.fete.ajout { background: transparent; border: 2px dashed #c9cde6; }
.fete-menu { position: relative; }
.fete-menu summary { list-style: none; } .fete-menu summary::-webkit-details-marker { display: none; }
.fete-choix { position: absolute; z-index: 20; top: calc(100% + 6px); inset-inline-start: 0; display: grid; min-width: 240px; background: #fff;
  border: 2px solid var(--encre); border-radius: 6px; box-shadow: 4px 4px 0 var(--encre); overflow: hidden; }
.fete-choix button { min-height: 48px; padding: 0 16px; text-align: start; background: #fff; border: 0; border-bottom: 1px solid #e4e6f3; font: inherit; font-weight: 600; color: var(--encre); cursor: pointer; }
.fete-choix button:last-child { border-bottom: 0; }
.fete-choix button:hover { background: #f4f5fc; }

/* zones du téléphone : jeu et livre d'or réécrits séparément (D3), sans boîte à eux */
.zone { display: contents; }

@media (max-width: 360px) { .qui-choix button { font-size: 1rem; } }

/* ---------------------------------------------------------------- écran de salle ouvert au téléphone (L107, 04/12)
   Dessiné pour un 16/9 de salle, il donnait des textes de 7 à 13 px sur 390 px de large : une colonne qui défile,
   aucun texte sous 14 px, pas de réduction --k (trois langues et quatre réponses ne tiennent pas sur une hauteur de
   téléphone). Le rendu au-delà de 599 px ne change pas. */
@media (max-width: 599px) {
  body.ecran { position: relative; height: auto; min-height: 100dvh; overflow: visible; }
  body.ecran > .fond-couple { position: fixed; }   /* l'écran de salle seul : l'aperçu de l'éditeur (.fond-apercu) porte la même classe (L114) */
  .scene-ecran { position: relative; inset: auto; min-height: 100dvh; padding: 24px 20px 100px; gap: 20px; }
  body.ecran:has(#signature:not([hidden])) .scene-ecran { padding-bottom: 136px; }
  .signature { position: absolute; bottom: 92px; font-size: 20px; }   /* en bas de la page, jamais par-dessus une réponse */
  .commandes { inset-inline: 0; bottom: 0; justify-content: flex-end; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: var(--fond); }
  .ecran-tete { gap: 12px; font-size: 16px; }
  .ecran-tete .pastille { gap: 6px; padding: 8px 12px; }
  .chrono { width: 64px; } .chrono b { font-size: 28px; }
  .scanner { font-size: 17px; margin-top: 14px; gap: 4px; }
  .date-couple { font-size: 17px; margin-top: 4px; }
  .ecran-titre-podium .date-couple { font-size: max(14px, .45em); }
  .rejoindre { gap: 12px; }
  .rejoindre .qr, .ecran-libre .rejoindre .qr { width: min(56vw, 30vh); padding: 14px; }
  .rejoindre .adresse, .ecran-libre .rejoindre .adresse { font-size: 18px; text-align: center; }
  .ecran-accueil { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 20px; }
  .ecran-accueil .couple { font-size: min(15vw, 8vh); }
  .nuage { gap: 10px 8px; margin-top: 16px; }
  .nuage span { font-size: 16px; padding: 6px 10px; }
  .ecran-question { gap: 20px; }
  .ecran-question .haut { flex-direction: column; gap: 16px; }
  .ecran-question .textes { flex: none; width: 100%; gap: 10px; }
  .ecran-question .t-princ { font-size: 34px; }
  .ecran-question .t-sec { font-size: 22px; }
  .ecran-question .t-sec:lang(ar) { font-size: 26px; }
  .ecran-question .photo, .ecran-question .photo img { max-width: 100%; max-height: 26vh; }
  .grille-ecran, .grille-ecran.deux-reps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tuile-ecran { min-height: 76px; padding: 10px 56px 10px 16px; gap: 2px; }
  .tuile-ecran .p { font-size: 20px; }
  .tuile-ecran .s { font-size: 16px; }
  .tuile-ecran .s:lang(ar) { font-size: 18px; }
  .tuile-ecran .nb { font-size: 28px; inset-inline-end: 16px; }
  .classement-ecran { gap: 10px; }
  .classement-ecran h2 { font-size: 36px; margin-bottom: 6px; }
  .ligne-cl { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; font-size: 18px; }
  .ecran-libre { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 20px; }
  .ecran-libre .classement-ecran { align-content: start; }
  .libre-gauche { gap: 12px; justify-items: center; }
  .ecran-libre .rejoindre { justify-items: center; }
  .ecran-libre .couple { font-size: min(11vw, 44px); text-align: center; }
  .ecran-libre .couple .et { font-size: max(14px, .7em); }
  .ecran-libre .date-couple, .libre-gauche .scanner { text-align: center; }
  .ecran-titre-podium { font-size: 36px; }
  .podium { gap: 10px; }
  .marche { gap: 8px; }
  .marche .nom { font-size: 18px; }
  .marche .pts { font-size: 18px; }
  .marche .bloc-p { padding-top: 14px; font-size: 56px; }
}
