/* ZELQIO : feuille de style unique, sans police externe. Quatre thèmes (section Jetons), tous adaptés au téléphone.
   Sections : jetons · base · barre · composants · formulaires · tableaux · quiz · éditeur · écran projeté · participants */

/* --- Jetons ------------------------------------------------------------------------------------------ */
/* Un thème par compte (inc/themes.php) posé sur <html data-theme> : moderne (par défaut), clair, sombre, festif.
   Les blocs s'appliquent aussi à un élément (aperçus du profil). --e-* : écran projeté ; --decor : fond de page. */
:root, [data-theme="moderne"] {
  --fond: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #f0eefb;
  --texte: #1b1530;
  --doux: #6a6585;
  --bordure: #e5e1f5;
  --accent: #6d4aff;
  --accent-clair: #efeaff;
  --accent-texte: #ffffff;
  --ok: #138a4a;
  --ok-clair: #e5f6ec;
  --erreur: #c62828;
  --erreur-clair: #fdecec;
  --alerte: #b45309;
  --alerte-clair: #fdf3e4;
  --bouton-fond: linear-gradient(135deg, #5b5bff, #a646ff);
  --signe-fond: linear-gradient(135deg, #5b5bff, #c13cff);
  --signe-texte: #ffffff;
  --decor: radial-gradient(900px 480px at 100% -80px, rgba(166, 70, 255, .13), transparent 70%) no-repeat,
           radial-gradient(760px 420px at -10% -60px, rgba(91, 91, 255, .11), transparent 70%) no-repeat;
  --rayon: 14px;
  --rayon-bouton: 10px;
  --titres-graisse: 700;
  --ombre: 0 1px 2px rgba(40, 20, 90, .05), 0 4px 14px rgba(40, 20, 90, .05);
  --ombre-haute: 0 16px 40px rgba(40, 20, 90, .16);
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --e-fond: #0e0c1d; --e-surface: #1b1733; --e-texte: #f6f4ff; --e-doux: #a29cc4; --e-bordure: #2e2850; --e-accent: #a68bff; --e-ok: #34d399; --e-erreur: #f87171;
  --e-decor: radial-gradient(80% 70% at 100% 0%, rgba(166, 70, 255, .28), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(91, 91, 255, .22), transparent 70%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]), [data-theme="moderne"] {
    --fond: #0e0c1d;
    --surface: #17142b;
    --surface-2: #211d3b;
    --texte: #f3f1ff;
    --doux: #a29cc4;
    --bordure: #2c2748;
    --accent: #a68bff;
    --accent-clair: #2a2252;
    --accent-texte: #ffffff;
    --ok: #4ade80;
    --ok-clair: #12301f;
    --erreur: #f87171;
    --erreur-clair: #3a1616;
    --alerte: #fbbf24;
    --alerte-clair: #382a10;
    --decor: radial-gradient(900px 480px at 100% -80px, rgba(166, 70, 255, .22), transparent 70%) no-repeat,
             radial-gradient(760px 420px at -10% -60px, rgba(91, 91, 255, .18), transparent 70%) no-repeat;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3);
    --ombre-haute: 0 16px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
[data-theme="clair"] {
  --fond: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --texte: #18181b;
  --doux: #6b6b76;
  --bordure: #e4e4e9;
  --accent: #4338ca;
  --accent-clair: #eef0ff;
  --accent-texte: #ffffff;
  --ok: #15803d;
  --ok-clair: #e8f6ec;
  --erreur: #c62828;
  --erreur-clair: #fdecec;
  --alerte: #b45309;
  --alerte-clair: #fdf3e4;
  --bouton-fond: var(--accent);
  --signe-fond: #18181b;
  --signe-texte: #ffffff;
  --decor: none;
  --rayon: 10px;
  --rayon-bouton: 9px;
  --titres-graisse: 650;
  --ombre: 0 1px 2px rgba(16, 16, 24, .05), 0 1px 1px rgba(16, 16, 24, .03);
  --ombre-haute: 0 12px 32px rgba(16, 16, 24, .12);
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --e-fond: #ffffff; --e-surface: #f2f2f4; --e-texte: #18181b; --e-doux: #6b6b76; --e-bordure: #e0e0e6; --e-accent: #4338ca; --e-ok: #15803d; --e-erreur: #c62828;
  --e-decor: none;
  color-scheme: light;
}
[data-theme="sombre"] {
  --fond: #111113;
  --surface: #19191c;
  --surface-2: #222226;
  --texte: #f2f2f4;
  --doux: #9c9ca8;
  --bordure: #2c2c32;
  --accent: #8b93ff;
  --accent-clair: #23244a;
  --accent-texte: #111113;
  --ok: #4ade80;
  --ok-clair: #13301f;
  --erreur: #f87171;
  --erreur-clair: #3a1616;
  --alerte: #fbbf24;
  --alerte-clair: #382a10;
  --bouton-fond: var(--accent);
  --signe-fond: #f2f2f4;
  --signe-texte: #111113;
  --decor: none;
  --rayon: 10px;
  --rayon-bouton: 9px;
  --titres-graisse: 650;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3);
  --ombre-haute: 0 12px 32px rgba(0, 0, 0, .5);
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --e-fond: #0f0f12; --e-surface: #1b1b20; --e-texte: #f5f5f7; --e-doux: #9e9eab; --e-bordure: #2d2d34; --e-accent: #8b93ff; --e-ok: #34d399; --e-erreur: #f87171;
  --e-decor: none;
  color-scheme: dark;
}
[data-theme="festif"] {
  --fond: #fff4e6;
  --surface: #ffffff;
  --surface-2: #fff0f6;
  --texte: #2a1240;
  --doux: #7a5f86;
  --bordure: #f6d9e6;
  --accent: #e0186c;
  --accent-clair: #ffe6f1;
  --accent-texte: #ffffff;
  --ok: #0f8a4f;
  --ok-clair: #ddf7e8;
  --erreur: #d12a2a;
  --erreur-clair: #ffe7e4;
  --alerte: #b45309;
  --alerte-clair: #fff1d6;
  --bouton-fond: linear-gradient(135deg, #ff2d87, #ff7a1a);
  --signe-fond: linear-gradient(135deg, #ff2d87, #ffb21a);
  --signe-texte: #ffffff;
  --decor: radial-gradient(circle at 12px 18px, #ffb21a 0 3px, transparent 3.5px) 0 0 / 157px 143px,
           radial-gradient(circle at 80px 60px, #ff2d87 0 2.5px, transparent 3px) 0 0 / 193px 181px,
           radial-gradient(circle at 118px 120px, #2ec4b6 0 3px, transparent 3.5px) 0 0 / 229px 211px,
           radial-gradient(circle at 46px 104px, #7b5cff 0 2px, transparent 2.5px) 0 0 / 173px 241px;
  --rayon: 18px;
  --rayon-bouton: 99px;
  --titres-graisse: 800;
  --ombre: 0 2px 0 rgba(224, 24, 108, .08), 0 6px 18px rgba(255, 122, 26, .08);
  --ombre-haute: 0 18px 40px rgba(120, 20, 80, .18);
  --police: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --e-fond: #2a0f45; --e-surface: #3d1a60; --e-texte: #fff7fb; --e-doux: #d6b8e8; --e-bordure: #5a2c85; --e-accent: #ff4fa3; --e-ok: #3ee08f; --e-erreur: #ff6b6b;
  --e-decor: radial-gradient(circle at 20px 30px, #ffb21a 0 4px, transparent 5px) 0 0 / 130px 130px,
             radial-gradient(circle at 110px 90px, #ff4fa3 0 3.5px, transparent 4.5px) 0 0 / 170px 170px,
             radial-gradient(circle at 60px 170px, #2ec4b6 0 3px, transparent 4px) 0 0 / 210px 210px,
             radial-gradient(80% 70% at 100% 0%, rgba(255, 45, 135, .25), transparent 70%);
  color-scheme: light;
}

/* --- Base -------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--decor), var(--fond); color: var(--texte);
  font: 15px/1.55 var(--police); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: var(--titres-graisse); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--bordure); margin: 20px 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.doux { color: var(--doux); }
.petit-texte { font-size: .85rem; }
.centre { text-align: center; }
.icone { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Barre supérieure -------------------------------------------------------------------------------- */
.barre { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bordure); }
.barre-interieur { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 22px; }
.marque { display: inline-flex; align-items: center; gap: 9px; color: var(--texte); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.marque:hover { text-decoration: none; }
.marque-signe { width: 28px; height: 28px; border-radius: 8px; background: var(--signe-fond); color: var(--signe-texte); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.navigation { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.navigation a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; color: var(--doux); font-weight: 550; white-space: nowrap; }
.navigation a:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.navigation a[aria-current] { color: var(--texte); background: var(--surface-2); }
.menu-compte { position: relative; }
.menu-compte summary { list-style: none; cursor: pointer; }
.menu-compte summary::-webkit-details-marker { display: none; }
.pastille { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-clair); color: var(--accent); font-weight: 700; font-size: .8rem; }
.menu-flottant .menu-compte-contenu { position: fixed; right: auto; z-index: 40; max-height: calc(100vh - 24px); overflow-y: auto; }
.menu-compte-contenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre-haute); padding: 12px; }
.menu-compte-nom { font-weight: 650; }
.menu-compte-contenu { text-align: left; }
.menu-compte-contenu a, .menu-compte-contenu .lien { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; width: 100%; padding: 8px; margin-top: 4px; border-radius: 7px; color: var(--texte); font-size: .95rem; }
.menu-compte-contenu a:first-of-type { margin-top: 10px; }
.menu-compte-contenu a:hover, .menu-compte-contenu .lien:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 720px) {
  .barre-interieur { gap: 10px; padding: 0 12px; }
  .barre .marque > span:last-child { display: none; }
  .espace-animateur span { display: none; }
  .espace-animateur { padding: 8px; }
  .navigation a span { display: none; }
  .navigation a { padding: 9px; }
}

/* --- Mise en page ------------------------------------------------------------------------------------ */
.contenu { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.contenu-public { max-width: 460px; margin: 0 auto; padding: 48px 16px 64px; }
.contenu-public > .marque { display: flex; justify-content: center; margin-bottom: 22px; }
.entete-page { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.entete-page h1 { margin: 0; }
.entete-page p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px; margin-bottom: 18px; box-shadow: var(--ombre); }
.carte > :last-child { margin-bottom: 0; }
.carte-titre { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.carte-titre h2 { margin: 0; }
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 18px; }
.grille .carte { margin: 0; }
.chiffre { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.colonnes { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .colonnes { grid-template-columns: 1fr; } }
.vide { text-align: center; padding: 36px 16px; color: var(--doux); }
.vide .icone { width: 34px; height: 34px; margin-bottom: 8px; opacity: .7; }

/* --- Messages, badges -------------------------------------------------------------------------------- */
.flash { padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; background: var(--ok-clair); color: var(--texte); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.erreur { background: var(--erreur-clair); border-color: color-mix(in srgb, var(--erreur) 30%, transparent); }
.flash.info { background: var(--accent-clair); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.flash.courriel { font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--doux); white-space: nowrap; vertical-align: middle; }
.badge.vert { background: var(--ok-clair); color: var(--ok); }
.badge.rouge { background: var(--erreur-clair); color: var(--erreur); }
.badge.alerte { background: var(--alerte-clair); color: var(--alerte); }
.badge.accent { background: var(--accent-clair); color: var(--accent); }
.notification { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--texte); color: var(--surface); padding: 10px 14px; border-radius: 9px; box-shadow: var(--ombre-haute); transition: opacity .3s; }
.notification.erreur { background: var(--erreur); color: #fff; }

/* --- Boutons ----------------------------------------------------------------------------------------- */
button, .bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: .93rem;
  padding: 9px 15px; border-radius: var(--rayon-bouton); border: 1px solid transparent; background: var(--bouton-fond); color: var(--accent-texte);
  cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
button:hover, .bouton:hover { text-decoration: none; filter: brightness(1.06); }
button:active, .bouton:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure); }
.secondaire:hover { background: var(--surface-2); filter: none; }
.danger { background: var(--surface); color: var(--erreur); border-color: var(--bordure); }
.danger:hover { background: var(--erreur-clair); filter: none; }
.petit { padding: 6px 10px; font-size: .85rem; border-radius: min(var(--rayon-bouton), 99px); }
.petit .icone { width: 16px; height: 16px; }
.large { width: 100%; padding: 12px 16px; }
.lien { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 500; }
.lien:hover { filter: none; text-decoration: underline; }
form.en-ligne { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }

/* --- Formulaires ------------------------------------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--texte); background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 9px; padding: 9px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 70px; }
input[type=file] { font: inherit; font-size: .88rem; max-width: 100%; }
form > div:last-child, .boutons { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.case { display: flex; align-items: flex-start; gap: 9px; font-weight: 450; margin: 8px 0; cursor: pointer; }
.case input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.aide { font-size: .84rem; color: var(--doux); margin: 5px 0 0; font-weight: 400; }
.champs-ligne { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.champs-ligne label { margin-top: 0; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.formulaire-ligne input { flex: 1 1 220px; width: auto; }
.liens-bas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; }

/* --- Tableaux ---------------------------------------------------------------------------------------- */
.tableau { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; padding: 0 12px 10px 0; border-bottom: 1px solid var(--bordure); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Liste des quiz ---------------------------------------------------------------------------------- */
.grille-quiz { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte-quiz { display: flex; flex-direction: column; margin: 0; }
.carte-quiz h3 { margin-bottom: 4px; font-size: 1.05rem; }
.carte-quiz h3 a { color: var(--texte); }
.carte-quiz .meta { font-size: .85rem; color: var(--doux); }
.carte-quiz .chiffres { display: flex; gap: 22px; margin: 16px 0; }
.carte-quiz .chiffres b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.carte-quiz .chiffres span { font-size: .8rem; color: var(--doux); }
.carte-quiz .actions { margin-top: auto; }

/* --- Questions d'un quiz ----------------------------------------------------------------------------- */
.question { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--bordure); background: var(--surface); }
.question:first-child { border-top: 0; }
.question .type-question { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--doux); }
.question .enonce { font-weight: 600; }
.question img { max-height: 90px; border-radius: 8px; margin-top: 8px; display: block; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.puce { font-size: .82rem; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--doux); }
.puce.bonne { background: var(--ok-clair); color: var(--ok); font-weight: 600; }
.poignee { cursor: grab; color: var(--doux); display: inline-flex; padding: 6px 2px; touch-action: none; opacity: .6; }
.poignee:hover { opacity: 1; }
[data-tri] [data-id].en-deplacement { opacity: .55; outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 8px; }
body.glissement, body.glissement * { cursor: grabbing !important; user-select: none; }
.types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.type { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--bordure); border-radius: var(--rayon); color: var(--texte); background: var(--surface); }
.type:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-clair); }
.type b { display: flex; align-items: center; gap: 8px; }
.type span { font-size: .82rem; color: var(--doux); }
.verrou { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* --- Éditeur de question ----------------------------------------------------------------------------- */
.reponses-editeur { display: flex; flex-direction: column; gap: 8px; }
.reponse { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; border: 1px solid var(--bordure); border-radius: 9px; background: var(--surface); }
.reponse input[type=text] { border: 0; padding: 6px 4px; box-shadow: none; background: transparent; }
.reponse .rang { font-weight: 700; color: var(--doux); min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.reponse .case { margin: 0; white-space: nowrap; font-size: .85rem; color: var(--doux); }
.reponse .retirer { flex: none; }
.vignette-objet { width: 46px; height: 46px; flex: none; margin: 0; border: 1px dashed var(--bordure); border-radius: 8px; display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--doux); position: relative; }
.vignette-objet img { width: 100%; height: 100%; object-fit: cover; }
.vignette-objet input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reponses-editeur:not(.mode-images) .vignette-objet { display: none; }
.apercu-image { max-width: 240px; border-radius: 9px; display: block; margin-bottom: 8px; border: 1px solid var(--bordure); }
.apercu-reglette { margin: 16px 4px 6px; }
.apercu-reglette .piste { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); }
.apercu-reglette .plage { position: absolute; top: 0; bottom: 0; background: var(--ok); opacity: .35; border-radius: 99px; }
.apercu-reglette .cible { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ok); border: 3px solid var(--surface); box-shadow: var(--ombre); }
.apercu-reglette .bornes { display: flex; justify-content: space-between; font-size: .82rem; color: var(--doux); margin-top: 6px; }
.resume-reglette { font-size: .9rem; }
.resume-reglette.erreur { color: var(--erreur); }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 14px 16px 16px; margin: 16px 0 0; }
legend { font-weight: 650; font-size: .9rem; padding: 0 6px; }

/* --- Statistiques ------------------------------------------------------------------------------------ */
.barres .ligne { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(80px, 3fr) 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: .92rem; }
.barres .fond { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.barres .plein { height: 100%; border-radius: 99px; background: var(--accent); }
.barres .ligne > span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.couleur-ok { background: var(--ok) !important; }
.couleur-alerte { background: var(--alerte) !important; }
.couleur-erreur { background: var(--erreur) !important; }

/* --- Écran projeté de l'animateur -------------------------------------------------------------------- */
/* Contenu dimensionné sur la hauteur du cadre (unités cqh) : identique dans la page et en plein écran */
.ecran {
  container-type: size; position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 78vh; margin: 0 auto 14px;
  background: var(--e-decor), var(--e-fond); color: var(--e-texte); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column;
}
.ecran:fullscreen { max-height: none; border-radius: 0; aspect-ratio: auto; }
.ecran .e-haut { display: flex; justify-content: space-between; align-items: center; padding: 3cqh 4cqh; font-size: 2.6cqh; color: var(--e-doux); }
.ecran .e-haut b { color: var(--e-texte); }
.ecran .e-marque { display: flex; align-items: center; gap: 1.2cqh; font-weight: 700; color: var(--e-texte); }
.ecran .e-marque i { font-style: normal; width: 4.4cqh; height: 4.4cqh; border-radius: 1.2cqh; background: var(--signe-fond); color: var(--signe-texte); display: grid; place-items: center; font-weight: 800; }
.ecran .e-code-mini { font-family: var(--mono); letter-spacing: .08em; }
.ecran .e-corps { flex: 1; display: flex; flex-direction: column; padding: 0 6cqh 4cqh; min-height: 0; }
.ecran h2 { font-size: 5.4cqh; line-height: 1.2; font-weight: 650; margin: 0 0 3cqh; letter-spacing: -.01em; }
.ecran .e-sur { font-size: 2.4cqh; color: var(--e-doux); margin: 0 0 1.5cqh; text-transform: uppercase; letter-spacing: .08em; }
.ecran .e-question { display: flex; gap: 4cqh; flex: 1; min-height: 0; }
.ecran .e-question > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ecran .e-image { max-width: 42%; max-height: 52cqh; object-fit: contain; border-radius: 1.5cqh; align-self: flex-start; }
.ecran .e-attente { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 6cqh; align-items: center; }
.ecran .e-qr { background: #fff; padding: 2.4cqh; border-radius: 2cqh; width: 52cqh; height: 52cqh; }
.ecran .e-qr svg { width: 100%; height: 100%; display: block; }
.ecran .e-rejoindre { font-size: 3cqh; color: var(--e-doux); margin: 0 0 1cqh; }
.ecran .e-adresse { font-size: 3.2cqh; font-weight: 600; margin: 0 0 3cqh; word-break: break-all; }
.ecran .e-code { font-family: var(--mono); font-size: 13cqh; font-weight: 700; letter-spacing: .06em; line-height: 1; margin: 0 0 3cqh; }
.ecran .e-pseudos { display: flex; flex-wrap: wrap; gap: 1.2cqh; max-height: 22cqh; overflow: hidden; }
.ecran .e-pseudos span { background: var(--e-surface); border: 1px solid var(--e-bordure); padding: .6cqh 1.8cqh; border-radius: 99px; font-size: 2.4cqh; animation: apparition .35s ease-out; }
@keyframes apparition { from { opacity: 0; transform: scale(.85); } }
.ecran .e-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqh; margin-top: auto; }
.ecran .e-choix.colonne { grid-template-columns: 1fr; }
.ecran .e-reponse { position: relative; display: flex; align-items: center; gap: 2cqh; padding: 2.2cqh 2.6cqh; border-radius: 1.6cqh; background: var(--e-surface); border: 1px solid var(--e-bordure); font-size: 3.2cqh; font-weight: 550; overflow: hidden; }
.ecran .e-reponse .e-lettre { flex: none; width: 5.4cqh; height: 5.4cqh; border-radius: 1.2cqh; display: grid; place-items: center; background: var(--e-fond); color: var(--e-doux); font-weight: 700; font-size: 2.8cqh; position: relative; }
.ecran .e-reponse .e-libelle { position: relative; flex: 1; }
.ecran .e-reponse .e-nb { position: relative; font-variant-numeric: tabular-nums; color: var(--e-doux); }
.ecran .e-reponse .e-jauge { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--e-accent) 22%, transparent); transition: width .5s ease; }
.ecran.revele .e-reponse:not(.bonne) { opacity: .45; }
.ecran .e-reponse.bonne { border-color: var(--e-ok); }
.ecran .e-reponse.bonne .e-lettre { background: var(--e-ok); color: var(--e-fond); }
.ecran .e-reponse.bonne .e-jauge { background: color-mix(in srgb, var(--e-ok) 28%, transparent); }
.ecran .e-objets { display: flex; gap: 2cqh; flex-wrap: wrap; margin-top: auto; }
.ecran .e-objet { flex: 1 1 18cqh; display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; padding: 2cqh; border-radius: 1.6cqh; background: var(--e-surface); border: 1px solid var(--e-bordure); font-size: 2.8cqh; text-align: center; position: relative; }
.ecran .e-objet img { height: 18cqh; width: 100%; object-fit: contain; border-radius: 1cqh; }
.ecran .e-objet .e-rang { position: absolute; top: 1cqh; left: 1.4cqh; font-weight: 800; color: var(--e-ok); font-size: 3cqh; }
.ecran.revele .e-objet { border-color: var(--e-ok); }
.ecran .e-echelle { position: relative; height: 16cqh; margin: auto 2cqh 0; }
.ecran .e-echelle .e-piste { position: absolute; left: 0; right: 0; top: 50%; height: 1.2cqh; margin-top: -.6cqh; border-radius: 99px; background: var(--e-surface); }
.ecran .e-echelle .e-point { position: absolute; width: 2cqh; height: 2cqh; margin: -1cqh 0 0 -1cqh; border-radius: 50%; background: var(--e-accent); opacity: .8; transition: left .4s; }
.ecran .e-echelle .e-zone { position: absolute; top: 30%; bottom: 30%; background: color-mix(in srgb, var(--e-ok) 30%, transparent); border-radius: 1cqh; }
.ecran .e-echelle .e-repere { position: absolute; top: 0; bottom: 0; width: .5cqh; margin-left: -.25cqh; background: var(--e-ok); }
.ecran .e-echelle .e-repere span { position: absolute; top: -5cqh; left: 50%; transform: translateX(-50%); font-size: 3.2cqh; font-weight: 700; color: var(--e-ok); white-space: nowrap; }
.ecran .e-bornes { display: flex; justify-content: space-between; font-size: 2.6cqh; color: var(--e-doux); margin: 1cqh 2cqh 0; }
.ecran .e-info { font-size: 2.6cqh; color: var(--e-doux); margin: 2.4cqh 0 0; }
.ecran .e-explication { font-size: 2.8cqh; margin-top: 2.4cqh; padding: 2cqh 2.6cqh; border-left: .6cqh solid var(--e-ok); background: var(--e-surface); border-radius: 0 1.2cqh 1.2cqh 0; }
.ecran .e-explication small { display: block; margin-top: 1cqh; font-size: 1.9cqh; color: var(--e-doux); }
.ecran .e-masque { filter: blur(1.4cqh); opacity: .5; }
.ecran .e-minuteur { position: absolute; right: 4cqh; top: 1.4cqh; width: 8cqh; height: 8cqh; }
.ecran:has(.e-minuteur) .e-haut { padding-right: 15cqh; }
.ecran .e-minuteur svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ecran .e-minuteur circle { fill: none; stroke-width: 3; }
.ecran .e-minuteur .e-anneau-fond { stroke: var(--e-surface); }
.ecran .e-minuteur .e-anneau { stroke: var(--e-accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ecran .e-minuteur span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4cqh; font-weight: 700; font-variant-numeric: tabular-nums; }
.ecran .e-minuteur.urgent .e-anneau { stroke: var(--e-erreur); }
.ecran .e-podium { display: flex; justify-content: center; align-items: flex-end; gap: 3cqh; flex: 1; min-height: 0; }
.ecran .e-marche { width: 28cqh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1cqh; padding: 3cqh 2cqh; border-radius: 2cqh 2cqh 0 0; background: var(--e-surface); border: 1px solid var(--e-bordure); border-bottom: 0; animation: monter .7s cubic-bezier(.2, .8, .2, 1) both; }
.ecran .e-marche:nth-child(1) { animation-delay: .5s; }
.ecran .e-marche:nth-child(3) { animation-delay: .9s; }
@keyframes monter { from { transform: translateY(30%); opacity: 0; } }
.ecran .e-marche .e-place { font-size: 6cqh; font-weight: 800; color: var(--e-doux); line-height: 1; }
.ecran .e-marche:nth-child(2) .e-place { color: var(--e-accent); }
.ecran .e-marche b { font-size: 3.4cqh; text-align: center; word-break: break-word; }
.ecran .e-marche .e-points { font-size: 2.6cqh; color: var(--e-doux); font-variant-numeric: tabular-nums; }
.ecran .e-bilan { display: flex; justify-content: center; gap: 6cqh; font-size: 2.6cqh; color: var(--e-doux); margin-top: 3cqh; }
.ecran .e-bilan b { display: block; font-size: 5cqh; color: var(--e-texte); text-align: center; }
.ecran .e-classement { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 1.2cqh 5cqh; font-size: 3cqh; max-width: 120cqh; margin: 0 auto; width: 100%; }
.ecran .e-classement div { display: flex; gap: 2cqh; padding: 1.2cqh 2cqh; border-radius: 1.2cqh; background: var(--e-surface); }
.ecran .e-classement div span:first-child { color: var(--e-doux); width: 4cqh; }
.ecran .e-classement div span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecran .e-classement div span:last-child { font-variant-numeric: tabular-nums; color: var(--e-doux); }
.ecran .e-message { margin: auto; font-size: 3.4cqh; color: var(--e-doux); text-align: center; }
.commandes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.commandes .espace { flex: 1; }
.commandes .case { margin: 0; }

/* --- Page des participants (téléphone) --------------------------------------------------------------- */
body.jeu-page { background: var(--decor), var(--fond); }
.jeu { padding: 22px 18px; }
.jeu h1 { font-size: 1.4rem; }
.jeu h2 { font-size: 1.25rem; margin-bottom: 18px; }
.jeu .sur { font-size: .82rem; color: var(--doux); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.jeu .sur b { color: var(--texte); font-variant-numeric: tabular-nums; }
.jeu .mentions { font-size: .78rem; margin-top: -6px; }
.jeu .image-question { border-radius: 9px; margin-bottom: 14px; max-height: 220px; display: block; margin-inline: auto; }
input.code { font-family: var(--mono); font-size: 1.6rem; text-align: center; letter-spacing: .12em; text-transform: uppercase; padding: 12px; }
.choix-jeu { display: grid; gap: 10px; }
.choix-jeu button { display: flex; align-items: center; gap: 12px; justify-content: flex-start; text-align: left; white-space: normal; padding: 14px; font-size: 1.02rem; font-weight: 550; background: var(--surface); color: var(--texte); border: 1.5px solid var(--bordure); min-height: 58px; }
.choix-jeu button:hover:not(:disabled) { border-color: var(--accent); filter: none; }
.choix-jeu .lettre { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--doux); font-weight: 700; font-size: .9rem; }
.choix-jeu button.choisi { border-color: var(--accent); background: var(--accent-clair); }
.choix-jeu button.choisi .lettre { background: var(--accent); color: var(--accent-texte); }
.choix-jeu button.bonne { border-color: var(--ok); background: var(--ok-clair); opacity: 1; }
.choix-jeu button.bonne .lettre { background: var(--ok); color: #fff; }
.choix-jeu button.mauvaise { border-color: var(--erreur); background: var(--erreur-clair); opacity: 1; }
.choix-jeu button:disabled { opacity: .55; cursor: default; }
.choix-jeu button.bonne:disabled, .choix-jeu button.mauvaise:disabled, .choix-jeu button.choisi:disabled { opacity: 1; }
.reglette-jeu { padding: 10px 0; }
.reglette-jeu output { display: block; text-align: center; font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.reglette-jeu input[type=range] { width: 100%; accent-color: var(--accent); height: 32px; }
.reglette-jeu .bornes { display: flex; justify-content: space-between; font-size: .85rem; color: var(--doux); }
.classement-jeu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.classement-jeu li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1.5px solid var(--bordure); border-radius: 10px; background: var(--surface); }
.classement-jeu li img { width: 48px; height: 48px; object-fit: cover; border-radius: 7px; }
.classement-jeu .rang { font-weight: 700; color: var(--doux); width: 18px; font-variant-numeric: tabular-nums; }
.classement-jeu .libelle { flex: 1; font-weight: 550; }
.classement-jeu .fleches { display: flex; gap: 4px; }
.classement-jeu .fleches button { padding: 8px 12px; }
.classement-jeu li.bonne { border-color: var(--ok); background: var(--ok-clair); }
.classement-jeu li.mauvaise { border-color: var(--erreur); background: var(--erreur-clair); }
.resultat-jeu { text-align: center; font-size: 1.25rem; font-weight: 700; padding: 14px; border-radius: 10px; margin: 16px 0 8px; }
.resultat-jeu.juste { background: var(--ok-clair); color: var(--ok); }
.resultat-jeu.faux { background: var(--erreur-clair); color: var(--erreur); }
.resultat-jeu.neutre { background: var(--surface-2); color: var(--texte); }
.pied-jeu { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--bordure); font-size: .9rem; color: var(--doux); }
.pied-jeu b { color: var(--texte); font-variant-numeric: tabular-nums; }
.grand-rang { font-size: 3.4rem; font-weight: 800; text-align: center; line-height: 1; margin: 10px 0 4px; letter-spacing: -.03em; }
.attente-points { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.attente-points span { width: 8px; height: 8px; border-radius: 50%; background: var(--doux); animation: pulse 1.2s infinite ease-in-out; }
.attente-points span:nth-child(2) { animation-delay: .2s; }
.attente-points span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Bibliothèque ------------------------------------------------------------------------------------ */
.carte-modele { padding-top: 0; overflow: hidden; }
.carte-modele h3 { margin-top: 18px; }
.vignette-modele { display: block; margin: 0 -22px; height: 140px; background: var(--surface-2); }
.vignette-modele img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Pages publiques (vitrine, catalogue, page d'un quiz) ---------------------------------------------- */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-size: 1.05rem; }
.vitrine section { margin: 40px 0; }
.chapo { font-size: 1.12rem; color: var(--doux); max-width: 62ch; }
.heros { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 40px; align-items: center; margin: 24px 0 48px !important; }
.heros h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.rejoindre-rapide { margin: 0; }
@media (max-width: 820px) { .heros { grid-template-columns: 1fr; gap: 24px; } }
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.etapes li { counter-increment: etape; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-clair); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.etapes b { display: block; margin-bottom: 4px; }
.etapes span { color: var(--doux); font-size: .92rem; }
.faq details { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--doux); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.faq details p { color: var(--doux); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--doux); }
.ariane li + li::before { content: '›'; margin-right: 6px; }
.ariane a { color: var(--doux); }
.rubriques { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.rubriques a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--bordure); color: var(--texte); font-size: .9rem; background: var(--surface); }
.rubriques a[aria-current] { background: var(--texte); color: var(--surface); border-color: var(--texte); }
.rubriques a:hover { text-decoration: none; border-color: var(--accent); }
.quiz-public .entete-page h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.questions-publiques { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.questions-publiques > li { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 22px; }
.questions-publiques h2 { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.questions-publiques h2 .doux { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.questions-publiques figure { margin: 0 0 14px; }
.questions-publiques figure img { max-height: 320px; width: auto; height: auto; max-width: 100%; border-radius: 9px; display: block; }
.questions-publiques figcaption { margin-top: 6px; }
.propositions { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.propositions li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 9px; }
.propositions .lettre { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--doux); font-weight: 700; font-size: .82rem; flex: none; }
.propositions.objets img { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; }
.reponse-publique { border-top: 1px dashed var(--bordure); padding-top: 10px; }
.reponse-publique summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.reponse-publique[open] summary { margin-bottom: 8px; }
.reponse-publique p { margin: 0 0 8px; }
.appel { margin-top: 28px; }
.bandeau-quiz { margin: 0 0 24px; }
.bandeau-quiz img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--rayon); display: block; }
.bandeau-quiz figcaption { margin-top: 6px; }
.quiz-public section { margin: 28px 0; }
.liens-lies { padding-left: 18px; }
.liens-lies li { margin: 6px 0; }
.pied-site { border-top: 1px solid var(--bordure); background: var(--surface); margin-top: 40px; }
.pied-interieur { max-width: 1180px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pied-interieur nav { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.barre .bouton { flex: none; }

/* --- Page Fonctionnalités ---------------------------------------------------------------------------- */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sommaire a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-size: .9rem; }
.sommaire a:hover { border-color: var(--accent); text-decoration: none; }
.fonctions { scroll-margin-top: 76px; }
.fonctions-titre { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.fonctions-titre h2 { margin: 2px 0 2px; font-size: 1.3rem; }
.fonctions-titre p { margin: 0; }
.fonctions-icone { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-clair); color: var(--accent); display: grid; place-items: center; flex: none; }
.fonctions-icone .icone { width: 22px; height: 22px; }
.liste-fonctions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0; }
.liste-fonctions > div { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 18px; }
.liste-fonctions dt { font-weight: 650; margin-bottom: 4px; }
.liste-fonctions dd { margin: 0; color: var(--doux); font-size: .92rem; }

/* --- Page Types de questions ------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.selecteur-types { position: sticky; top: 58px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 8px; padding: 10px 20px;
  background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.selecteur-types::-webkit-scrollbar { display: none; }
.selecteur-types a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.selecteur-types a:hover { border-color: var(--accent); text-decoration: none; }
.selecteur-types a[aria-current] { background: var(--bouton-fond); color: var(--accent-texte); border-color: transparent; }
.type-question { scroll-margin-top: 130px; padding-top: 8px; }
.type-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .type-grille { grid-template-columns: 1fr; } }
.type-details .liste-fonctions { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.type-details ul { margin: 0; padding-left: 18px; }
.type-details li + li { margin-top: 4px; }
.conseil { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--rayon); background: var(--accent-clair); font-size: .93rem; }
.exemple-type { margin: 0; }
.exemple-type > img { width: 100%; height: 190px; object-fit: cover; border-radius: calc(var(--rayon) - 4px); display: block; margin: 8px 0 12px; }
.exemple-enonce { font-weight: 650; font-size: 1.05rem; margin: 8px 0 12px; }
.exemple-type .propositions { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }

/* --- Page Tarifs -------------------------------------------------------------------------------------- */
.entete-tarifs { text-align: center; max-width: 720px; margin: 8px auto 30px; }
.entete-tarifs h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.entete-tarifs .chapo { margin: 0 auto; }
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto 20px; align-items: stretch; }
@media (max-width: 760px) { .offres { grid-template-columns: 1fr; } .offre.recommandee { order: -1; } }
.offre { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bordure); border-radius: calc(var(--rayon) + 4px); padding: 28px 26px; margin: 0 !important; box-shadow: var(--ombre); }
.offre h2 { font-size: 1.3rem; margin-bottom: 4px; }
.offre .prix { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 20px; }
.offre .prix b { font-size: 2.8rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.offre .prix span { color: var(--doux); }
.offre .bouton.large { margin-top: auto; }
.offre.recommandee { border: 2px solid var(--accent); box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 22%, transparent); background: linear-gradient(180deg, var(--accent-clair), var(--surface) 42%); }
@media (min-width: 761px) { .offre.recommandee { transform: translateY(-8px); } }
.ruban { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--bouton-fond); color: var(--accent-texte); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; letter-spacing: .02em; }
.avantages { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; }
.avantages > li { position: relative; padding-left: 28px; }
.avantages > li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--ok-clair); color: var(--ok); }
.recommandee .avantages > li::before { background: var(--accent); color: var(--accent-texte); }
.avantages .inclus-gratuit { color: var(--doux); }
.types-offre { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.types-offre li { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; padding: 3px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--bordure); }
.types-offre .icone { width: 14px; height: 14px; }
.tableau-tarifs th[scope=row] { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--texte); white-space: normal; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--bordure); }
.tableau-tarifs tbody tr:last-child th { border-bottom: 0; }
.tableau-tarifs .colonne-createur { background: color-mix(in srgb, var(--accent-clair) 60%, transparent); }
.tableau-tarifs thead .colonne-createur { color: var(--accent); }
.tableau-tarifs tfoot td { border: 0; padding-top: 16px; }
.coche { color: var(--ok); font-weight: 800; font-size: 1.1rem; }
.recommandee .coche, .colonne-createur .coche { color: var(--accent); }
.absent { color: var(--doux); opacity: .6; }

/* --- Choix du thème (Mon profil) --------------------------------------------------------------------- */
.themes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.theme-option { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 8px; border: 1.5px solid var(--bordure); border-radius: var(--rayon); cursor: pointer; font-weight: 400; background: var(--surface); }
.theme-option:hover { border-color: var(--accent); }
.theme-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.theme-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-option input { position: absolute; top: 14px; right: 14px; margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.theme-apercu { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px; align-items: center; height: 84px; padding: 12px; border-radius: calc(var(--rayon) - 4px); background: var(--decor), var(--fond); border: 1px solid var(--bordure); overflow: hidden; }
.theme-apercu i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--signe-fond); color: var(--signe-texte); font: 800 .8rem var(--police); }
.theme-apercu span { display: flex; flex-direction: column; gap: 5px; padding: 7px 9px; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--bordure); grid-row: span 2; }
.theme-apercu span b { height: 6px; border-radius: 9px; background: var(--texte); width: 80%; }
.theme-apercu span b + b { background: var(--doux); width: 55%; opacity: .6; }
.theme-apercu em { width: 24px; height: 12px; border-radius: var(--rayon-bouton); background: var(--bouton-fond); }
.theme-nom { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; }
.theme-nom b { font-weight: 650; }
form > div.sans-js { display: none; }
@media (scripting: none) { form > div.sans-js { display: flex; } }

/* --- Offres dans l'espace connecté ------------------------------------------------------------------- */
.encart-offre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 16px;
  border-radius: var(--rayon); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-clair); }
.encart-offre span { flex: 1 1 260px; }
