/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   Private Bot · oparia.eu/privatebot
   Style d'oparia.eu (cahier DESIGN-4 : noir, tuiles unies sans contour ni ombre, bleu Oparia, police du
   système, boutons en pilule) et du tableau de bord d'OProtect (onglets en pilule, choix cerclé de bleu
   clair, icônes en dégradé par section). Thème sombre unique.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --fond: #000; --fenetre: #1a1b1f; --tuile: #212227; --tuile-survol: #292a30; --tuile-haute: #383940;
  --trait: rgb(255 255 255 / .08); --texte: #f4f5f6; --attenue: #a3a6ad;
  --bleu: #3AAEEF; --bleu-profond: #2F72CF; --bleu-clair: #87CCE3;
  --vert: #2fd67b; --ambre: #f2c66d; --rouge: #f07178;
  --courbe: cubic-bezier(.25, .1, .25, 1); --sortie: cubic-bezier(.22, 1, .36, 1);
  --marge: 24px; --rayon: 18px;
  color-scheme: dark;
}
@media (min-width: 735px) { :root { --marge: 40px; --rayon: 23px; } }

*, *::before, *::after { box-sizing: border-box; }
/* Textes non sélectionnables (30/11, demande du propriétaire : on ne copie pas les textes du site). Restent
   sélectionnables : les champs (le token se colle), et l'identifiant du bot à recopier dans /allow bot (.copiable). */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable]:not([contenteditable="false"]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.copiable { -webkit-user-select: all; -webkit-touch-callout: default; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte); min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.01em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-clair); }
b, strong { font-weight: 600; color: var(--texte); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sans-js { text-align: center; color: var(--attenue); }
[data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; } [data-i="4"] { --i: 4; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cadre { width: 100%; max-width: calc(1260px + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* ── Barre du haut : capsule de verre sombre, comme oparia.eu ── */
.barre { position: sticky; top: 0; z-index: 30; padding: 14px var(--marge) 0; }
.barre::before {   /* bande noire fondue derrière la capsule quand la page défile */
  content: ''; position: absolute; inset: -12px 0 auto; height: 88px; pointer-events: none; background: var(--fond);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .94) 40%, transparent); mask-image: linear-gradient(to bottom, rgb(0 0 0 / .94) 40%, transparent);
  opacity: 0; transition: opacity .24s ease;
}
.a-defile .barre::before { opacity: 1; }
.capsule {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 832px; margin: 0 auto; min-height: 50px;
  padding: 6px 8px 6px 14px; border-radius: 999px; background: rgb(22 22 23 / .8);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
@media (prefers-reduced-transparency: reduce) { .capsule { background: var(--fenetre); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.marque { display: flex; align-items: center; gap: 7px; color: var(--texte); font-weight: 700; font-size: 20px; letter-spacing: -.01em; transition: transform .3s var(--courbe); }
.marque:hover { color: var(--texte); }
.marque:active { transform: scale(.96); }
.marque svg { width: 30px; height: 30px; }
.marque .losange-trait { stroke: var(--bleu-profond); }
.produit { color: var(--attenue); font-weight: 600; font-size: 16px; padding-left: 12px; border-left: 1px solid var(--trait); line-height: 22px; }
.compte { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.compte-bouton {
  display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 4px 14px 4px 4px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; transition: background .25s ease;
}
.compte-bouton:hover { background: var(--tuile-survol); }
.compte-bouton img { width: 30px; height: 30px; border-radius: 50%; background: var(--tuile); }
.compte-nom { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; border-radius: 16px; background: var(--fenetre);
  transform-origin: top right; animation: menu-arrive .28s var(--sortie);
}
.compte-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 11px; color: var(--texte); font-size: 15px; }
.compte-menu a:hover { background: var(--tuile-survol); }
@keyframes menu-arrive { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.lien-connexion { margin-left: auto; min-height: 38px !important; padding: 0 18px !important; font-size: 15px !important; min-width: 0 !important; }
@media (max-width: 560px) { .produit { display: none; } .compte-nom { display: none; } .compte-bouton { padding-right: 4px; } }

/* ── Boutons : pilules (oparia.eu › .so-bouton) ── */
.bouton {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-size: 17px; line-height: 1; font-weight: 500; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease-out, opacity .2s ease;
}
.bouton::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0; clip-path: inset(50% 50% round 999px); transition: clip-path .4s var(--sortie), opacity .3s ease-out;
}
.bouton:focus-visible::before { opacity: 1; clip-path: inset(0 round 999px); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover::before { opacity: 1; clip-path: inset(0 round 999px); transition: clip-path .55s var(--sortie), opacity .12s linear; }
}
.bouton:active { transform: scale(.96); }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.bouton-plein { background: var(--texte); color: var(--fond); }
.bouton-plein:hover { color: var(--fond); }
.bouton-plein::before { background: color-mix(in oklab, var(--bleu-clair) 55%, #fff); }
.bouton-tuile { background: var(--tuile); color: var(--texte); }
.bouton-tuile:hover { color: var(--texte); }
.bouton-tuile::before { background: var(--tuile-survol); }
/* Posé sur une tuile : un cran plus clair, sinon le bouton disparaît dans son fond. */
:is(.serveur, .avis-ligne, .feuille, .vide, .carte-bot, .groupe) .bouton-tuile { background: var(--tuile-haute); }
:is(.serveur, .avis-ligne, .feuille, .vide, .carte-bot, .groupe) .bouton-tuile::before { background: #45474e; }
.formulaire :is(.bouton-tuile) { background: #3f4148; }
.bouton-contour { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.bouton-contour:hover { color: var(--texte); }
.bouton-contour::before { background: var(--tuile); }
.bouton-danger { background: rgb(240 113 120 / .14); color: #ffb3b7; }
.bouton-danger:hover { color: #ffd0d3; }
.bouton-danger::before { background: rgb(240 113 120 / .24); }
.bouton-petit { min-height: 40px; padding: 0 18px; font-size: 15px; }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton-petit svg { width: 16px; height: 16px; }
@media (min-width: 735px) { .bouton:not(.bouton-petit) { min-height: 56px; padding: 0 32px; } }
@media (prefers-contrast: more) { .bouton-tuile { box-shadow: inset 0 0 0 2px var(--texte); } }

.rangee-boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 479px) { .rangee-boutons.pleine-largeur > .bouton { width: 100%; } }

/* ── Chargement : rien ne s'affiche avant de savoir qui est là (évite l'accueil qui clignote) ── */
.chargement main > section { visibility: hidden; }
.vue { animation: vue-arrive .45s var(--sortie); }
@keyframes vue-arrive { from { opacity: 0; transform: translateY(12px); } }

/* ── Apparition au défilement : montée 30 px en .7 s, fondu .9 s, écart .15 s ── */
[data-apparait] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--courbe), transform .7s var(--courbe); transition-delay: calc(var(--i, 0) * .15s); }
[data-apparait].vu { opacity: 1; transform: none; }

/* ═══════════════════════ Accueil (visiteur non connecté) ═══════════════════════ */
.accueil-haut { display: grid; gap: 48px; padding-block: 56px 96px; align-items: center; }
@media (min-width: 1069px) { .accueil-haut { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 56px; padding-block: 96px 140px; min-height: calc(100dvh - 64px); } }
.titre-accueil { margin: 0; font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; max-width: 13ch; }
@media (min-width: 735px) { .titre-accueil { font-size: 72px; line-height: 76px; letter-spacing: -.015em; } }
@media (min-width: 1069px) { .titre-accueil { font-size: 80px; line-height: 84px; } }
.intro { margin: 24px 0 0; font-size: 19px; line-height: 25px; font-weight: 600; color: var(--attenue); max-width: 30ch; }
@media (min-width: 735px) { .intro { font-size: 24px; line-height: 32px; } }
.intro b { font-weight: 600; }
.accueil-haut .rangee-boutons { margin-top: 36px; }
.legende-prix { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: var(--attenue); font-size: 15px; }
.legende-prix b { font-weight: 600; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.point-ambre { background: var(--ambre); } .point-rouge { background: var(--rouge); } .point-gris { background: #6b6e75; } .point-bleu { background: var(--bleu); }

/* La scène : un salon où le bot du client répond à une commande (contenu réel, compris sans lire) */
.scene { position: relative; }
.salon {
  position: relative; border-radius: 28px; background: var(--tuile); padding: 22px 22px 26px; overflow: hidden;
  font-size: 15px; line-height: 21px; letter-spacing: -.005em; max-width: 620px; margin-inline: auto;
}
@media (min-width: 735px) { .salon { padding: 28px 30px 34px; font-size: 16px; line-height: 22px; } }
.salon-tete { display: flex; align-items: center; gap: 8px; color: var(--attenue); font-weight: 600; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--trait); }
.salon-tete svg { width: 18px; height: 18px; color: #6b6e75; }
.message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.message:first-of-type { margin-top: 0; }
.avatar-rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.av-nayuu { background: linear-gradient(135deg, #ff8a3d, #ffcf56); }
.av-bot { background: linear-gradient(135deg, var(--bleu-profond), var(--bleu)); }
.av-bot svg { width: 24px; height: 24px; }
.message-auteur { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--texte); }
.message-auteur time { color: #80838a; font-weight: 400; font-size: 12px; }
.etiquette-app { font-size: 10.5px; line-height: 15px; font-weight: 700; letter-spacing: .02em; padding: 0 5px; border-radius: 4px; background: var(--bleu-profond); color: #fff; }
/* Validé par Discord : l'encoche blanche devant « APP », comme dans l'appli */
.app-verifie { display: inline-flex; align-items: center; gap: 2px; padding-left: 3px; }
.app-encoche { width: 1.15em; height: 1.15em; flex: none; }
.commande { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; color: var(--texte); min-height: 22px; }
.commande .nom-commande { color: var(--bleu-clair); font-weight: 600; }
.commande .option { padding: 1px 7px; border-radius: 6px; background: var(--tuile-haute); color: var(--attenue); font-size: .92em; }
.commande .option b { color: var(--texte); font-weight: 500; }
.curseur-texte { display: inline-block; width: 2px; height: 1.1em; background: var(--bleu-clair); vertical-align: -2px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.integre { position: relative; margin-top: 8px; padding: 12px 16px 14px 18px; border-radius: 10px; background: var(--tuile-survol); max-width: 420px; }
.integre::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 10px 0 0 10px; background: var(--bleu); transform-origin: top; }
.integre-titre { font-weight: 600; color: var(--texte); }
.integre-ligne { color: var(--attenue); font-size: .94em; margin-top: 2px; }
.integre-ligne b { font-weight: 500; }
.renommer { position: absolute; right: 18px; bottom: -14px; }
/* Séquence (app.js) : chaque élément [data-temps] apparaît à son tour */
.scene.prete [data-etape] { opacity: 0; transform: translateY(14px); }
.scene.prete [data-etape].joue { opacity: 1; transform: none; transition: opacity .5s var(--courbe), transform .6s var(--sortie); }
.scene.prete .integre::before { transform: scaleY(0); }
.scene.prete .integre.joue::before { transform: scaleY(1); transition: transform .45s var(--sortie) .15s; }

/* ── Sections : bloc de titre centré puis un visuel ── */
.section { padding: 60px 0; }
@media (min-width: 735px) { .section { padding: 100px 0; } }
.bloc-titre { text-align: center; max-width: 817px; margin: 0 auto; }
.titre-section { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; text-wrap: balance; }
@media (min-width: 735px) { .titre-section { font-size: 56px; line-height: 60px; letter-spacing: -.009em; } }
@media (min-width: 1069px) { .titre-section { font-size: 64px; line-height: 68px; letter-spacing: -.012em; } }
.para-section { margin: 20px auto 0; font-size: 19px; line-height: 25px; font-weight: 600; color: var(--attenue); text-wrap: pretty; }
@media (min-width: 735px) { .para-section { font-size: 22px; line-height: 30px; } }
.visuel { margin-top: 48px; }
@media (min-width: 735px) { .visuel { margin-top: 72px; } }

.tuiles { display: grid; gap: 16px; }
@media (min-width: 735px) { .tuiles-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .tuiles-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } .tuiles-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1069px) { .tuiles-4 { grid-template-columns: repeat(4, 1fr); } }
.tuile { position: relative; border-radius: var(--rayon); background: var(--tuile); padding: 28px; }
@media (min-width: 735px) { .tuile { padding: 32px; } }
.tuile-titre { margin: 20px 0 0; font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 735px) { .tuile-titre { font-size: 24px; line-height: 29px; } }
.tuile-texte { margin: 8px 0 0; color: var(--attenue); font-size: 16px; line-height: 23px; }
@media (min-width: 735px) { .tuile-texte { font-size: 17px; line-height: 25px; } }
.numero { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tuile-haute); color: var(--texte); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Icônes au trait qui se tracent (pathLength = 1) */
.icone-trait { width: 44px; height: 44px; color: var(--bleu); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icone-trait :is(path, rect, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vu .icone-trait :is(path, rect, circle), .icone-trait.tracee :is(path, rect, circle) { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--courbe) .2s; }
.tuile-entete { display: flex; align-items: center; justify-content: space-between; }

/* Icônes en dégradé par section (tableau de bord d'OProtect) */
.icone-section { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); flex: none; }
.icone-section svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.g-moderation { --a: #ff4d6d; --b: #ff9e7a; }
.g-perms { --a: #87cce3; --b: #4f7cff; }
.g-grades { --a: #c8f169; --b: #3ee6cf; }
.g-tickets { --a: #3ee6cf; --b: #3ba4ff; }
.g-apparence { --a: #e879f9; --b: #6366f1; }
.g-module { --a: #87cce3; --b: #3aaeef; }   /* rubriques des modules (src/web/modules/) sans dégradé à elles */
.g-journaux { --a: #a3a6ad; --b: #5b6b85; }
.g-membres { --a: #7aa2ff; --b: #8b5cf6; }
.g-staff { --a: #f2c66d; --b: #f28b5b; }
.g-messages { --a: #5eead4; --b: #2fd67b; }
.g-communaute { --a: #f472b6; --b: #fb7185; }
.g-animation { --a: #fbbf24; --b: #f97316; }
.g-idee { --a: #f2c66d; --b: #ff9e7a; }

/* Prix : le chiffre clé avec sa bande claire qui finit sur le blanc */
.prix { text-align: center; }
.chiffre-cle { margin: 0; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 735px) { .chiffre-cle { font-size: 112px; } }
.bande { background: linear-gradient(90deg, var(--texte) 0 40%, #fff 45%, var(--bleu-clair) 50%, #fff 55%, var(--texte) 60% 100%); background-size: 500% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.vu .bande, .bande.vu { animation: bande 3s linear forwards; }
@keyframes bande { from { background-position: 100% 0; } to { background-position: 0 0; } }
.prix .para-section { max-width: 34ch; }
.prix .rangee-boutons { justify-content: center; margin-top: 36px; }

.pied { padding: 48px 0 56px; color: #80838a; font-size: 14px; }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--trait); padding-top: 28px; }
.pied a { color: var(--attenue); }
.pied a:hover { color: var(--texte); }

/* ═══════════════════════ Guide : connecter son bot (3 étapes) ═══════════════════════ */
.guide { padding-block: 28px 80px; }
.guide-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; }
.guide-titre { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.onglets { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .04); overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--attenue); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .3s var(--sortie), color .3s; }
.onglet[aria-current="step"] { background: var(--tuile-haute); color: var(--texte); }
.onglet.fait { color: var(--texte); }
.onglet .coche { width: 16px; height: 16px; color: var(--vert); }
.onglet[disabled] { cursor: default; }
.progression { position: relative; height: 2px; margin-top: 18px; background: var(--trait); border-radius: 2px; overflow: hidden; }
.progression span { position: absolute; inset: 0; background: var(--bleu-clair); transform-origin: left; transform: scaleX(var(--p, .333)); transition: transform .6s var(--sortie); }
.guide-corps { display: grid; gap: 36px; margin-top: 40px; align-items: start; }
@media (min-width: 1069px) { .guide-corps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; margin-top: 56px; } .guide-corps > .guide-texte { order: 2; } }
.etape-titre { margin: 0; font-size: 30px; line-height: 35px; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; }
.etape-titre span { color: var(--attenue); }
@media (min-width: 735px) { .etape-titre { font-size: 36px; line-height: 42px; } }
.etapes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: e; }
.etapes li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 12px 0; color: var(--attenue); counter-increment: e; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tuile); color: var(--texte); font-size: 14px; font-weight: 700; margin-top: -2px; transition: background .3s, color .3s; }
.etapes li.actif::before { background: var(--bleu); color: #04121b; }
.etapes li b { color: var(--texte); font-weight: 600; }
.etapes .conseil { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: rgb(135 204 227 / .16); color: var(--bleu-clair); font-size: 13px; font-weight: 600; line-height: 20px; vertical-align: 1px; }
.guide-texte .rangee-boutons { margin-top: 32px; }
.raccourcis { margin-left: auto; color: #80838a; font-size: 13px; }
.raccourcis kbd { font: inherit; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--tuile-haute); color: var(--attenue); }
@media (max-width: 1068px), (pointer: coarse) { .raccourcis { display: none; } }
.note { margin: 24px 0 0; color: var(--attenue); font-size: 15px; line-height: 22px; }
.note b { font-weight: 600; }

/* Changement d'étape : la suivante arrive de droite, la précédente revient de gauche (même chemin) */
.etape { animation: etape-avant .5s var(--sortie); }
.etape.retour { animation-name: etape-arriere; }
@keyframes etape-avant { from { opacity: 0; transform: translateX(28px); } }
@keyframes etape-arriere { from { opacity: 0; transform: translateX(-28px); } }

/* Champ du token */
.champ { margin-top: 28px; }
.champ label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.champ-ligne { position: relative; display: flex; align-items: center; border-radius: 16px; background: var(--tuile); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .25s ease, background .25s; }
.champ-ligne:focus-within { box-shadow: inset 0 0 0 1.5px var(--bleu-clair); background: var(--tuile-survol); }
.champ-ligne.erreur { box-shadow: inset 0 0 0 1.5px var(--rouge); }
.champ input { flex: 1; min-width: 0; min-height: 56px; padding: 0 16px; border: 0; background: transparent; color: var(--texte); font: 15px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .01em; }
.champ input:focus { outline: none; }
.champ input::placeholder { color: #6b6e75; font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif; letter-spacing: 0; }
.voir { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--attenue); cursor: pointer; }
.voir:hover { background: var(--tuile-haute); color: var(--texte); }
.voir svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aide-champ { margin: 10px 2px 0; color: var(--attenue); font-size: 14px; line-height: 20px; display: flex; gap: 8px; }
.aide-champ svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--vert); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.message-erreur { display: flex; gap: 8px; margin: 12px 2px 0; color: #ffb3b7; font-size: 15px; line-height: 21px; }
.message-erreur svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tourne { width: 18px; height: 18px; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ── La maquette du portail Discord (visuel des étapes 1 et 2) ── */
.portail { position: relative; border-radius: 22px; background: #111214; overflow: hidden; font-size: 13px; line-height: 18px; user-select: none; max-width: 600px; margin-inline: auto; width: 100%; }
.portail-barre { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #0b0b0c; }
.portail-barre i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b2f; }
.portail-barre span { margin-left: 10px; color: #6b6e75; font-size: 12px; }
.portail-corps { display: grid; grid-template-columns: 34% 66%; min-height: 330px; }
.portail-menu { padding: 16px 10px; background: #18191c; display: grid; align-content: start; gap: 2px; }
.portail-menu p { margin: 0 8px 8px; color: #80838a; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.portail-menu div { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: #b5b8bd; white-space: nowrap; overflow: hidden; }
.portail-menu div svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portail-menu div.sel { background: #2a2b30; color: #fff; }
.portail-page { padding: 18px 20px 20px; display: grid; align-content: start; gap: 14px; }
.portail-page h4 { margin: 0; font-size: 18px; line-height: 22px; color: #fff; }
.portail-bloc { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.portail-bloc:last-of-type { border-bottom: 0; }
.portail-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portail-ligne strong { color: #f2f3f5; font-size: 13px; font-weight: 600; }
.portail-ligne small { display: block; color: #80838a; font-size: 11px; line-height: 15px; margin-top: 2px; }
.portail-etiquette { color: #b5b8bd; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.p-bouton { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 12px; font-weight: 500; transition: transform .1s ease, background .2s; }
.p-bouton.bleu { background: #5865f2; }
.p-bouton.rouge { background: #da373c; }
.p-bouton.vert { background: #248046; }
.p-bouton.appui { transform: scale(.94); }
.interrupteur { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #80848e; flex: none; transition: background .25s ease; }
.interrupteur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .32s cubic-bezier(.34, 1.4, .64, 1); }
.interrupteur.on { background: #23a55a; }
.interrupteur.on::after { transform: translateX(16px); }
.p-cible { position: relative; border-radius: 8px; transition: box-shadow .3s ease; }
.p-cible.montre { box-shadow: 0 0 0 2px var(--bleu-clair), 0 0 0 6px rgb(135 204 227 / .18); }
.p-token { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: 4px; background: #0b0b0c; color: #dbdee1; font: 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; white-space: nowrap; }
.p-token span { overflow: hidden; text-overflow: ellipsis; }
.p-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #248046; color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .3s, transform .45s var(--sortie); white-space: nowrap; }
.p-toast.montre { opacity: 1; transform: translate(-50%, 0); }
.p-toast svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-fenetre { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.p-fenetre.montre { opacity: 1; }
.p-fenetre > div { width: 76%; padding: 16px; border-radius: 8px; background: #313338; transform: scale(.94); transition: transform .35s var(--sortie); }
.p-fenetre.montre > div { transform: none; }
.p-fenetre p { margin: 0 0 12px; color: #dbdee1; font-size: 12px; }
.p-fenetre strong { display: block; color: #fff; font-size: 14px; margin-bottom: 6px; }
.p-fenetre .portail-ligne { justify-content: flex-end; }
.pointeur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); will-change: transform; opacity: 0; transition: opacity .3s; }
.pointeur.visible { opacity: 1; }
.pointeur svg { width: 22px; height: 22px; }
.rejouer { position: absolute; right: 12px; top: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #80838a; font-size: 12px; cursor: pointer; }
.rejouer:hover { color: var(--texte); background: #1c1d20; }
.rejouer svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legende-visuel { margin: 14px 0 0; text-align: center; color: #80838a; font-size: 13px; }
@media (max-width: 480px) { .portail-corps { grid-template-columns: 30% 70%; } .portail-menu div span { overflow: hidden; text-overflow: ellipsis; } .portail-page { padding: 14px 12px 16px; } }

/* Carte du bot (étape 3 et tableau de bord) */
.carte-bot { position: relative; border-radius: 28px; background: var(--tuile); padding: 40px 28px 34px; text-align: center; max-width: 520px; margin-inline: auto; width: 100%; overflow: hidden; }
.carte-bot .avatar-grand { position: relative; width: 112px; height: 112px; margin: 0 auto; }
.carte-bot .avatar-grand img { width: 112px; height: 112px; border-radius: 50%; background: var(--tuile-haute); }
.carte-bot .avatar-grand .statut { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 5px var(--tuile); }
.anneau { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); color: var(--bleu-clair); fill: none; stroke: currentColor; stroke-width: 2; }
.anneau circle { stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; }
.joue .anneau circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--sortie) .2s; }
.carte-bot h3 { margin: 20px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 28px; line-height: 34px; font-weight: 700; }
.carte-bot .en-ligne { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--attenue); font-size: 15px; }
.carte-bot .commandes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.carte-bot .commandes span { padding: 5px 11px; border-radius: 999px; background: var(--tuile-survol); color: var(--attenue); font-size: 13.5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.attente { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--attenue); font-size: 15px; }
.attente .tourne { color: var(--bleu-clair); }
.arrivee { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: rgb(47 214 123 / .1); display: flex; gap: 12px; align-items: flex-start; }
.arrivee svg { width: 22px; height: 22px; flex: none; color: var(--vert); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.arrivee svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .6s var(--sortie) .15s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ═══════════════════════ Tableau de bord ═══════════════════════ */
.tableau { padding-block: 32px 96px; }
.bot-entete { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .bot-entete { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; } }
.bot-entete .avatar-moyen { position: relative; width: 72px; height: 72px; }
.bot-entete .avatar-moyen img { width: 72px; height: 72px; border-radius: 50%; background: var(--tuile); }
.bot-entete .avatar-moyen .statut { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 4px var(--fond); }
.bot-nom { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.012em; }
@media (min-width: 735px) { .bot-nom { font-size: 36px; line-height: 42px; } }
.bot-etat { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; color: var(--attenue); font-size: 15px; }
.avis { display: grid; gap: 10px; margin-top: 28px; }
.avis-ligne { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 12px 14px; padding: 16px 18px; border-radius: 16px; background: var(--tuile); color: var(--attenue); font-size: 15px; line-height: 22px; }
.avis-ligne .point { margin-top: 7px; }
.avis-ligne b { font-weight: 600; }
.avis-ligne .rangee-boutons { flex: none; align-self: center; }
@media (max-width: 734px) { .avis-ligne { grid-template-columns: 8px minmax(0, 1fr); } .avis-ligne .rangee-boutons { grid-column: 2; } }
.cadeau { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 22px 24px; border-radius: var(--rayon); background: linear-gradient(90deg, rgb(58 174 239 / .16), rgb(58 174 239 / .04) 70%, transparent); }
.cadeau .icone-trait { width: 36px; height: 36px; flex: none; }
.cadeau p { margin: 0; color: var(--attenue); }
.cadeau p b { font-weight: 600; }
.titre-liste { display: flex; align-items: baseline; gap: 12px; margin: 56px 0 18px; font-size: 24px; line-height: 30px; font-weight: 700; }
.titre-liste small { color: #80838a; font-size: 16px; font-weight: 500; }
.serveurs { display: grid; gap: 14px; }
@media (min-width: 900px) { .serveurs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.serveur { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--rayon); background: var(--tuile); transition: background .3s ease, transform .3s var(--courbe); }
.serveur-icone { width: 52px; height: 52px; border-radius: 16px; background: var(--tuile-haute); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--attenue); font-size: 17px; }
.serveur-icone img { width: 100%; height: 100%; object-fit: cover; }
.serveur h3 { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serveur .membres { margin: 2px 0 0; color: #80838a; font-size: 14px; }
.serveur .licence { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 15px; color: var(--attenue); }
.serveur .licence b { font-weight: 600; }
.serveur .rangee-boutons { margin-top: 16px; gap: 8px; }
.vide { padding: 40px 28px; border-radius: var(--rayon); background: var(--tuile); text-align: center; color: var(--attenue); }
.vide .icone-trait { margin: 0 auto 16px; width: 48px; height: 48px; }
.vide p { margin: 0 auto; max-width: 40ch; }
.vide .rangee-boutons { justify-content: center; margin-top: 24px; }
.reglages-bientot { margin-top: 56px; }
.reglages-bientot .tuiles { margin-top: 18px; }
.section-reglage { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--rayon); background: var(--tuile); }
.section-reglage h4 { margin: 0; font-size: 17px; line-height: 22px; }
.section-reglage p { margin: 4px 0 0; color: var(--attenue); font-size: 14.5px; line-height: 20px; }

/* Fenêtre de confirmation : voile + feuille qui naît du bouton */
.voile { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--marge); background: rgb(0 0 0 / .62); animation: voile .25s ease; }
@keyframes voile { from { opacity: 0; } }
.feuille { width: 100%; max-width: 440px; padding: 28px; border-radius: 24px; background: var(--fenetre); animation: feuille .4s var(--sortie); }
@keyframes feuille { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.feuille h2 { margin: 0; font-size: 22px; line-height: 28px; }
.feuille p { margin: 10px 0 0; color: var(--attenue); font-size: 15.5px; line-height: 22px; }
.feuille .rangee-boutons { margin-top: 24px; justify-content: flex-end; }

/* Mouvement réduit : tout est posé d'un coup, états finaux directs */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-apparait] { opacity: 1; transform: none; }
  .icone-trait :is(path, rect, circle) { stroke-dashoffset: 0; }
  .bande { animation: none !important; background: none; color: var(--texte); }
  .curseur-texte { display: none; }
}
@media (prefers-contrast: more) { :root { --attenue: #d6d8dc; } }

/* ═══════════════════════ Réglages d'un serveur (reglages.js) ═══════════════════════
   Style du tableau de bord d'OProtect : onglets en pilule avec une plaque qui s'étire, groupes en tuiles,
   une ligne par réglage (libellé + aide à gauche, commande à droite), enregistrement immédiat. */
.reglages { padding-block: 24px 120px; }
.retour-lien { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 8px; margin-left: -8px; border: 0; border-radius: 999px; background: transparent; color: var(--attenue); font-size: 15px; font-weight: 500; cursor: pointer; }
.retour-lien:hover { background: var(--tuile); color: var(--texte); }
.retour-lien svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.serveur-entete { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.serveur-entete .serveur-icone { width: 60px; height: 60px; border-radius: 18px; }
.serveur-entete h1 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.012em; }
@media (min-width: 735px) { .serveur-entete h1 { font-size: 36px; line-height: 42px; } }
.serveur-entete .licence { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--attenue); font-size: 15px; }
.serveur-entete .licence b { font-weight: 600; }

/* Rubriques rangées par familles (reglages.js › FAMILLES). Ordinateur (1180 px et plus) : colonne collée à gauche,
   la rubrique à droite. Plus étroit : un bouton « Rubrique » montre celle qui est ouverte et déplie la même liste.
   La plaque sous la rubrique choisie s'étire de l'ancienne à la nouvelle (reglages.js › placerPlaque). */
.reglages-corps { margin-top: 28px; }
.choix-rubrique { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 18px 10px 12px; border: 0; border-radius: var(--rayon); background: var(--tuile); color: var(--texte); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .18s linear; }
@media (hover: hover) and (pointer: fine) { .choix-rubrique:hover { background: #292a30; } }
.choix-rubrique:focus-visible { outline: none; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }
.choix-rubrique .icone-section { width: 36px; height: 36px; border-radius: 11px; }
.choix-rubrique .icone-section svg { width: 19px; height: 19px; stroke-width: 2.1; }
.cr-icone { display: contents; }
.cr-texte { display: grid; flex: 1; min-width: 0; }
.cr-texte small { color: var(--attenue); font-size: 13px; line-height: 17px; }
.cr-texte b { font-size: 17px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-changer { display: inline-flex; align-items: center; gap: 4px; color: var(--bleu-clair); font-size: 15px; font-weight: 500; }
.cr-changer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--sortie); }
.choix-rubrique[aria-expanded="true"] .cr-changer svg { transform: rotate(180deg); }
.nav-reglages { display: none; }
.reglages-corps.liste-ouverte .nav-reglages { display: block; margin-top: 10px; padding: 8px; border-radius: var(--rayon); background: var(--tuile); animation: etape-avant .35s var(--sortie); }
.onglets-reglages { position: relative; display: flex; flex-direction: column; }
.nav-famille { margin: 18px 12px 6px; color: var(--attenue); font-size: 13px; line-height: 17px; font-weight: 600; letter-spacing: .01em; }
.onglets-reglages > .nav-famille:first-of-type { margin-top: 6px; }
.plaque { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 12px; background: var(--tuile-haute); pointer-events: none; }
.onglet-reglage { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px 0 8px; border: 0; border-radius: 12px; background: transparent; color: var(--attenue); font: inherit; font-size: 15.5px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .18s linear, color .18s linear; -webkit-tap-highlight-color: transparent; }
.onglet-reglage[aria-selected="true"] { color: var(--texte); }
.onglet-reglage .icone-section { width: 28px; height: 28px; border-radius: 9px; flex: none; }
.onglet-reglage .icone-section svg { width: 16px; height: 16px; stroke-width: 2.1; }
.onglet-nom { overflow: hidden; text-overflow: ellipsis; }
.onglet-reglage:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--bleu-clair); }
@media (hover: hover) and (pointer: fine) { .onglet-reglage:not([aria-selected="true"]):hover { color: var(--texte); background: #292a30; } }
.nav-reglages .coin-aide { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin: 12px 4px 4px; padding: 14px 8px 4px; border-top: 1px solid var(--trait); }
.nav-reglages .coin-aide .pastille-idee { flex: 0 0 auto; margin-bottom: 6px; }
.nav-reglages .coin-aide .pastille-idee + .lien-aide { margin-left: 0; }
.nav-reglages .coin-aide::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
.nav-reglages .coin-aide .lien-aide { order: 2; font-size: 14.5px; }
/* Titre de la rubrique ouverte et ce qu'elle contient */
.rubrique-tete { margin: 28px 0 20px; }
.rubrique-titre { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.rubrique-phrase { margin: 6px 0 0; max-width: 68ch; color: var(--attenue); font-size: 15.5px; line-height: 22px; }
@media (min-width: 1180px) {
  .reglages-corps { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: start; }
  .choix-rubrique { display: none; }
  .nav-reglages, .reglages-corps.liste-ouverte .nav-reglages { display: flex; flex-direction: column; margin: 0; padding: 0 0 8px; border-radius: 0; background: none; animation: none; }
  .nav-reglages::-webkit-scrollbar { display: none; }
  .rubrique-tete { margin-top: 2px; }
  .onglet-reglage { min-height: 40px; }
  .nav-famille { margin: 10px 12px 4px; }
  .nav-reglages .coin-aide { margin-top: 6px; padding-top: 10px; }
}

.panneau-reglages { display: grid; gap: 20px; container: panneau / inline-size; }
.panneau-reglages.entre { animation: etape-avant .45s var(--sortie); }
.panneau-reglages.entre.retour { animation-name: etape-arriere; }
.lecture-seule { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgb(242 198 109 / .1); color: #f6dca5; font-size: 15px; line-height: 22px; }
.lecture-seule .point { margin-top: 7px; }
.groupe { border-radius: var(--rayon); background: var(--tuile); padding: 8px 0; container: groupe / inline-size; }
.groupe-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 10px; }
.groupe-tete h2 { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; }
.groupe-tete p { margin: 4px 0 0; color: var(--attenue); font-size: 14.5px; line-height: 20px; max-width: 62ch; }
.ligne-r { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 22px; position: relative; }
.ligne-r + .ligne-r::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
@media (min-width: 735px) { .ligne-r { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 20px; } }
@container groupe (max-width: 559px) { .ligne-r { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.ligne-r .nom { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ligne-r .nom code { font: 600 15px ui-monospace, "SF Mono", Menlo, monospace; color: var(--texte); }
.ligne-r .aide { margin: 2px 0 0; color: var(--attenue); font-size: 14px; line-height: 19px; }
.ligne-r .avert { margin: 6px 0 0; color: var(--ambre); font-size: 13.5px; line-height: 18px; display: flex; gap: 6px; }
.etiquette { display: inline-block; padding: 0 7px; border-radius: 6px; background: rgb(135 204 227 / .16); color: var(--bleu-clair); font-size: 12px; font-weight: 600; line-height: 20px; }
.etiquette.grise { background: var(--tuile-haute); color: var(--attenue); }
.groupe-pied { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 22px 16px; }

/* Listes déroulantes : même forme partout (Safari dessine sinon sa liste native, basse et grise) */
.choix { -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 0 40px 0 14px; border: 0; border-radius: 12px; background: var(--tuile-haute) no-repeat right 14px center / 12px; color: var(--texte); font: inherit; font-size: 15px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23a3a6ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .2s, box-shadow .2s; }
.choix:hover { background-color: #3f4148; }
.choix:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bleu-clair); }
.choix:disabled, .saisie:disabled { opacity: .5; cursor: default; }
.choix option, .choix optgroup { background: var(--fenetre); color: var(--texte); }
.saisie { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--tuile-haute); color: var(--texte); font: inherit; font-size: 15px; line-height: 21px; transition: box-shadow .2s; }
.saisie:focus { outline: none; box-shadow: 0 0 0 2px var(--bleu-clair); }
textarea.saisie { min-height: 96px; resize: vertical; }
.saisie::placeholder { color: #80838a; }
.compteur { margin: 4px 2px 0; color: #80838a; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.duo { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

/* Puces de rôles */
.puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.puce { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--tuile-haute); font-size: 14px; color: var(--texte); max-width: 100%; }
.puce .pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #8f929a); flex: none; }
.puce span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puce button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--attenue); cursor: pointer; }
.puce button:hover { background: #4a4c53; color: var(--texte); }
.puce button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.puce.seule { padding-right: 10px; }
.ajout-puce { min-height: 30px; width: auto; max-width: 100%; padding: 0 30px 0 12px; border-radius: 999px; font-size: 14px; background-position: right 10px center; }   /* max-width : un long nom de salon ne sort plus du cadre */

/* Niveaux (segmenté) */
.segments { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tuile-haute); }
.segments button { min-width: 40px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--attenue); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .25s var(--sortie), color .25s; }
.segments button[aria-pressed="true"] { background: var(--texte); color: var(--fond); }
/* Pastille qui glisse d'un choix à l'autre (app.js, animerSegments) : pendant le trajet, elle remplace le fond du choix ;
   le texte du nouveau choix reste clair jusqu'à son arrivée. Survol : le texte s'éclaircit. */
.segments { position: relative; isolation: isolate; }
.segments-plaque { position: absolute; left: 0; z-index: -1; border-radius: 999px; background: var(--texte); pointer-events: none; }
.segments.glisse button[aria-pressed="true"] { background: transparent; }
.segments.glisse-texte button[aria-pressed="true"] { color: var(--attenue); }
@media (hover: hover) and (pointer: fine) { .segments button:not([aria-pressed="true"]):not(:disabled):hover { color: var(--texte); } }

/* Échelle des grades */
.marche { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 22px; position: relative; }
.marche + .marche::before { content: ''; position: absolute; top: 0; left: 72px; right: 22px; height: 1px; background: var(--trait); }
.marche .rang { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tuile-haute); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.marche.haut .rang { background: linear-gradient(135deg, #c8f169, #3ee6cf); color: #08201a; }
.marche h3 { margin: 0; font-size: 16.5px; line-height: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.marche .puces { margin-top: 6px; }
.outils { display: flex; gap: 4px; }
.outil { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--attenue); cursor: pointer; }
.outil:hover:not(:disabled) { background: var(--tuile-haute); color: var(--texte); }
.outil:disabled { opacity: .3; cursor: default; }
.outil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.outil.danger:hover:not(:disabled) { background: rgb(240 113 120 / .16); color: #ffb3b7; }
@media (max-width: 560px) { .marche { grid-template-columns: 36px minmax(0, 1fr); } .marche .outils { grid-column: 2; } }

.formulaire { display: grid; gap: 14px; padding: 18px 22px 20px; margin: 4px 12px 8px; border-radius: 16px; background: var(--tuile-survol); animation: etape-avant .35s var(--sortie); }
.formulaire label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.formulaire label small { color: var(--attenue); font-weight: 400; }
.formulaire .rangee-boutons { gap: 8px; }
.formulaire .champs-2 { display: grid; gap: 14px; }
@media (min-width: 735px) { .formulaire .champs-2 { grid-template-columns: 1fr 1fr; } }
.erreur-form { color: #ffb3b7; font-size: 14px; }

/* Aperçu de la couleur : un message du bot avec sa barre */
.apercu-integre { position: relative; padding: 10px 14px 12px 16px; border-radius: 10px; background: var(--tuile-haute); font-size: 14px; line-height: 19px; }
.apercu-integre::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 10px 0 0 10px; background: var(--c, #2B2D31); transition: background .3s; }
.apercu-integre b { display: block; font-weight: 600; }
.apercu-integre span { color: var(--attenue); }
.couleur { display: flex; gap: 8px; align-items: center; }
.couleur input[type="color"] { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; flex: none; }
.couleur input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.couleur input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; }
.couleur input[type="color"]::-moz-color-swatch { border: 0; border-radius: 12px; }
.couleur .saisie { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; }

/* Catégories de tickets */
.categorie { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 22px; position: relative; }
.categorie + .categorie::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.categorie .pastille { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--bleu)); transform: rotate(45deg); }
.categorie h3 { margin: 0; font-size: 16px; line-height: 21px; }
.categorie p { margin: 2px 0 0; color: var(--attenue); font-size: 14px; line-height: 19px; }
.etat-tickets { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--attenue); }
.etat-tickets b { font-weight: 600; }

/* Apparence : la carte de profil du bot, comme dans Discord */
.profil { display: grid; gap: 20px; align-items: start; padding: 8px 22px 18px; }
@media (min-width: 900px) { .profil { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; } }
.carte-profil { border-radius: 18px; overflow: hidden; background: #111214; }
.carte-profil .banniere { height: 120px; background: linear-gradient(135deg, var(--bleu-profond), var(--bleu)); background-size: cover; background-position: center; }
.carte-profil .banniere.image { background-image: var(--img); }
.carte-profil .corps { position: relative; padding: 52px 18px 18px; }
.carte-profil img { position: absolute; left: 14px; top: -46px; width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 6px #111214; background: var(--tuile-haute); object-fit: cover; }
.carte-profil h3 { margin: 0; font-size: 20px; line-height: 25px; display: flex; gap: 8px; align-items: center; }
.carte-profil .pseudo { margin: 2px 0 0; color: var(--attenue); font-size: 14px; }
.carte-profil .bio { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--trait); color: #dbdee1; font-size: 14px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.carte-profil .bio:empty { display: none; }
.fichier { position: relative; overflow: hidden; }
.fichier input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }   /* Safari montre sa flèche sur un champ fichier, quoi qu'on fasse : la souris ne le touche plus, c'est le bouton qui l'ouvre (app.js) */
.fichier { cursor: pointer; }
.fichier:has(input:focus-visible) { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }

/* Retour d'enregistrement : une pilule qui monte en bas de l'écran */
.statut-reglage { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--fenetre); color: var(--texte); font-size: 15px; font-weight: 500; box-shadow: 0 12px 32px -12px rgb(0 0 0 / .7); transform: translate(-50%, 24px); opacity: 0; transition: transform .45s var(--sortie), opacity .25s; pointer-events: none; }
.statut-reglage.montre { transform: translate(-50%, 0); opacity: 1; }
.statut-reglage svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.statut-reglage.ok svg { color: var(--vert); }
.statut-reglage.non { background: #3a1d20; color: #ffd0d3; }
.statut-reglage.non svg { color: var(--rouge); }
.statut-reglage .tourne { stroke-width: 0; }

.formulaire.plat { background: transparent; margin: 0; padding: 8px 22px 16px; animation: none; }
.profil .formulaire.plat { padding: 0 0 22px; }
.formulaire label > span small { margin-left: 4px; }
.erreur-form:empty { display: none; }

/* ═══ Une page = un écran (demande du 28/11 : « le pied de page sur la même page, pas de défilement ») ═══
   La page occupe toute la hauteur de la fenêtre et le pied de page se pose en bas ; le guide est resserré
   pour tenir entier, pied de page compris, dès 1069 px de large (hauteur de fenêtre de 700 px et plus). */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.pied { padding: 16px 0 20px; }
.pied .cadre { padding-top: 16px; }
@media (min-width: 1069px) {
  .guide { padding-block: 18px 20px; }
  .guide-corps { margin-top: clamp(20px, 3.6vh, 44px); gap: 64px; align-items: center; }
  .etape-titre { font-size: 32px; line-height: 38px; }
  .etapes { margin-top: 18px; gap: 0; }
  .etapes li { padding: 7px 0; }
  .note { margin-top: 14px; font-size: 14.5px; line-height: 21px; }
  .champ { margin-top: 18px; }
  .aide-champ { margin-top: 8px; }
  .message-erreur { margin-top: 8px; }
  .guide-texte .rangee-boutons { margin-top: 22px; }
  .guide .bouton:not(.bouton-petit) { min-height: 52px; }
  .legende-visuel { margin-top: 10px; }
  .attente, .arrivee { margin-top: 18px; }
}
@media (min-width: 1069px) and (max-height: 860px) {
  .guide-corps { margin-top: 18px; }
  .etape-titre { font-size: 28px; line-height: 34px; }
  .etapes li { padding: 5px 0; }
  .portail-corps { min-height: 280px; }
  .portail-page { gap: 10px; padding: 14px 18px 14px; }
  .portail-bloc { padding-bottom: 9px; }
  .carte-bot { padding: 28px 24px 26px; }
  .carte-bot .commandes { margin-top: 18px; }
}

/* Maquette du portail : liste déroulante du lien d'installation */
.p-choix { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 4px; background: #0b0b0c; color: #dbdee1; font-size: 12.5px; }
.p-choix svg { width: 11px; height: 11px; fill: none; stroke: #b5b8bd; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-options { display: grid; gap: 2px; padding: 4px; margin-top: 4px; border-radius: 6px; background: #2b2d31; font-size: 12.5px; color: #dbdee1; box-shadow: 0 8px 18px -8px rgb(0 0 0 / .6); }
.p-options > div { padding: 6px 8px; border-radius: 4px; }
.p-options > div:first-child { background: #3a3c42; }
.etapes li i { font-style: normal; color: #80838a; }
.avis-ligne i { font-style: normal; color: #80838a; }
/* Les deux pages de la maquette occupent la même case : la maquette garde la hauteur de la plus grande */
.portail-menu { grid-area: 1 / 1; }
.portail-corps > .portail-page { grid-area: 1 / 2; }
.portail-page.cachee { visibility: hidden; }

.guide .avis-ligne.retrait { margin-top: 18px; grid-template-columns: 8px minmax(0, 1fr); }
.copiable { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; user-select: all; }

/* ═══ Haut de page : jamais sous la barre d'onglets de Safari (la capsule descend de la zone réservée, s'il y en a une) ═══ */
.barre { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }

/* ═══ Fil d'Ariane dans la capsule : Oparia.eu › Private Bot › page en cours ═══ */
.fil { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; gap: 0; flex: 1 1 auto; }
.fil li { display: flex; align-items: center; min-width: 0; }
.fil li + li::before { content: ''; width: 7px; height: 7px; margin: 0 12px 0 10px; border-top: 1.6px solid #6b6e75; border-right: 1.6px solid #6b6e75; transform: rotate(45deg); flex: none; }
.marque .tld { color: var(--bleu); font-weight: 600; }
.fil-lien { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; margin: 0 -10px; border-radius: 999px; color: var(--attenue); font-size: 16px; font-weight: 600; white-space: nowrap; transition: color .25s, background .25s; }
.fil-lien:hover { color: var(--texte); background: var(--tuile-survol); }
.fil-lien[aria-current="page"] { color: var(--texte); pointer-events: none; }
.fil-ici { color: var(--texte); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
@media (max-width: 420px) {
  .fil > li:not(:last-child) { flex: none; }
  .fil:has(#fil-3:not([hidden])) > li:first-child { display: none; }
  .fil:has(#fil-3:not([hidden])) > li:nth-child(2)::before { display: none; }
  .fil > li:last-child { flex: 1 1 auto; min-width: 0; }
  .fil .fil-ici { max-width: none; min-width: 0; }
}
@media (max-width: 560px) {
  .marque > span { display: none; }
  .fil li + li::before { margin: 0 9px 0 8px; }
  .fil-ici { max-width: 13ch; }
}

/* ═══ Offre de bienvenue, dans le style de la boutique (boutique.oparia.eu) ═══
   Angles nets, liseré bleu à gauche, titre Oxanium en capitales dont un mot au trait, cadeau de la boutique
   sur un fond rayé, bouton rectangulaire en capitales, étiquette sombre à pastille verte (« Livré sur Discord »). */
@font-face { font-family: 'Oxanium'; src: url('/privatebot/oxanium-latin.woff2') format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
.offre { display: grid; margin-top: 28px; background: #171A20; border-left: 4px solid var(--bleu); overflow: hidden; }
@media (min-width: 900px) { .offre { grid-template-columns: minmax(260px, 38%) minmax(0, 1fr); } }
.offre-scene { position: relative; min-height: 190px; background-color: #1A1E26;
  background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .035) 0 2px, transparent 2px 16px); }
.offre-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.offre-scene .paquet { transform-box: fill-box; transform-origin: 50% 100%; }
.vu .offre-scene .paquet, .offre .paquet { animation: paquet-arrive .9s var(--sortie) both .1s; }
@keyframes paquet-arrive { from { opacity: 0; transform: translateY(14px) rotate(-4deg); } to { opacity: 1; transform: rotate(-4deg); } }
.offre-texte { padding: 26px 28px 28px; }
@media (min-width: 900px) { .offre-texte { padding: 30px 36px 32px; } }
.offre-fil { margin: 0; font: 700 12.5px/1 'Oxanium', var(--titres, system-ui), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #959CA9; }
.offre-fil i { font-style: normal; color: var(--bleu); margin: 0 6px; }
.offre-titre { margin: 10px 0 0; font: 800 44px/1 'Oxanium', system-ui, sans-serif; letter-spacing: .01em; text-transform: uppercase; color: #F3F5F8; }
.offre-titre span { color: transparent; -webkit-text-stroke: 1.6px #F3F5F8; paint-order: stroke; margin-left: .12em; }
@media (min-width: 735px) { .offre-titre { font-size: 56px; } }
.offre-para { margin: 14px 0 0; max-width: 52ch; color: #C4CAD4; font-size: 16px; line-height: 24px; }
.offre-para b { color: #F3F5F8; font-weight: 600; }
.offre-bas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 22px; }
.offre-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; background: #5865F2; color: #fff; font: 700 15px/1 'Oxanium', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, transform .12s ease-out; }
.offre-bouton:hover { background: #4752C4; color: #fff; }
.offre-bouton:active { transform: scale(.97); }
.offre-bouton svg { width: 16px; height: 16px; }
.offre-etiquette { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 16px 8px 14px; background: #202B42; border-left: 4px solid var(--bleu); color: #fff; }
.offre-etiquette i { width: 9px; height: 9px; background: #2fd67b; transform: rotate(45deg); flex: none; }
.offre-etiquette span { display: grid; font-size: 12.5px; line-height: 16px; color: #C4CAD4; }
.offre-etiquette b { font: 700 13px/16px 'Oxanium', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
@media (prefers-reduced-motion: reduce) { .offre .paquet { animation: none; } }

/* ═══ Fenêtre de confirmation (ConfirmDialog du tableau de bord d'OProtect) ═══ */
.dialogue { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--texte); overflow: hidden; }
.dialogue::backdrop { background: transparent; }
.dialogue[data-pointeur] :focus-visible { outline: none; }
/* will-change : le voile flou a son propre calque ; sans lui, le navigateur refait le flou de toute la page à chaque
   image du film (30/11 : 38 ms par image au lieu de 16,7, et des images de la vidéo perdues). Pas de texte dedans. */
.dialogue-voile { position: absolute; inset: 0; will-change: transform; background: rgb(0 0 0 / .65); opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: opacity .2s ease, -webkit-backdrop-filter .2s ease, backdrop-filter .2s ease; }
.dialogue.ouverte .dialogue-voile { opacity: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition-duration: .3s; }
.dialogue-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; perspective: 1100px; }
.dialogue-boite { position: relative; width: 100%; max-width: 32rem; padding: 32px 32px 32px; border-radius: 28px; background: var(--fenetre); text-align: center; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .16s cubic-bezier(.4, 0, 1, 1), transform .16s cubic-bezier(.4, 0, 1, 1); }
.dialogue.ouverte .dialogue-boite { opacity: 1; transform: none; transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.32, .72, 0, 1); }
.dialogue-fermer { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tuile); color: var(--attenue); cursor: pointer; transition: background .2s, color .2s; }
.dialogue-fermer:hover { background: var(--tuile-haute); color: var(--texte); }
.dialogue-fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Icône de la rubrique sur une tuile, onde unique, glyphe en dégradé */
.dialogue-icone { position: relative; width: 80px; height: 80px; margin: 0 auto 20px; }
.dialogue-icone .tuile-glyphe { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: var(--tuile); transform: scale(.7); opacity: 0; }
.dialogue.ouverte .tuile-glyphe { transform: none; opacity: 1; transition: transform .4s cubic-bezier(.32, .72, 0, 1) .05s, opacity .3s ease .05s; }
.dialogue-icone svg { width: 42px; height: 42px; fill: none; stroke: url(#dialogue-glyphe); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dialogue stop.a { stop-color: var(--a); } .dialogue stop.b { stop-color: var(--b); }
/* Parties d'une icône (app.js, GLYPHES) : « lueur », l'ampoule allumée (remplissage doux du même dégradé, sans halo) ;
   « pivot », une partie qui se pose en grandissant autour de son propre milieu. */
.dialogue-icone svg .lueur { fill: url(#dialogue-glyphe); stroke: none; opacity: .16; }
.dialogue-icone svg .pivot { transform-box: fill-box; transform-origin: center; }
.dialogue.danger { --a: #f07178; --b: #f07178; }
.dialogue-icone .onde { position: absolute; inset: 0; border-radius: 24px; border: 2px solid var(--a); opacity: 0; transform: scale(.6); }
.dialogue.ouverte .onde { animation: onde .75s cubic-bezier(.22, 1, .36, 1) .16s; }
@keyframes onde { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.dialogue-boite h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.dialogue-texte { margin-top: 10px; color: var(--attenue); font-size: 15.5px; line-height: 22px; }
.dialogue-texte b { font-weight: 600; }
.dialogue-item { opacity: 0; transform: translateY(10px); }
.dialogue.ouverte .dialogue-item { opacity: 1; transform: none; transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1); }
.dialogue.ouverte h2.dialogue-item { transition-delay: .12s; } .dialogue.ouverte .dialogue-texte { transition-delay: .18s; } .dialogue.ouverte .dialogue-boutons { transition-delay: .24s; }
.dialogue-boutons { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .dialogue-boutons:not(.seul) { grid-template-columns: 1fr 1fr; } }
.dialogue-boutons button { min-height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, filter .2s, transform .12s ease-out; }
.dialogue-boutons button:active { transform: scale(.97); }
.d-annuler { border: 2px solid rgb(244 245 246 / .8); background: transparent; color: var(--texte); }
.d-annuler:hover { background: var(--texte); color: var(--fond); }
.d-plein { position: relative; isolation: isolate; border: 0; background: var(--texte); color: var(--fond); overflow: hidden; }
.d-plein::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklab, var(--a) 72%, #fff), color-mix(in oklab, var(--b) 72%, #fff)); opacity: 0; clip-path: inset(50% 50% round 999px); transition: clip-path .4s var(--sortie), opacity .3s; }
.d-plein:hover::before { opacity: 1; clip-path: inset(0 round 999px); transition: clip-path .55s var(--sortie), opacity .12s linear; }
.d-danger { border: 0; background: var(--rouge); color: #1a0d0e; transition: background-color .15s linear, transform .12s ease-out; }
@media (hover: hover) and (pointer: fine) { .d-danger:hover { background: #f8a4a9; } }
.d-danger:active { background: #f8a4a9; }
/* Contour lumineux : posé (plus vif en haut), tracé d'ouverture du haut vers le bas, deux éclats qui font le tour */
.dialogue-bord { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; fill: none; }
.dialogue-bord stop.a { stop-color: var(--a); stop-opacity: .9; } .dialogue-bord stop.b { stop-color: var(--b); stop-opacity: .35; }
.dialogue-bord .pose { stroke: url(#dialogue-degrade); stroke-width: 1.25; opacity: 0; }
.dialogue.ouverte .dialogue-bord .pose { opacity: .7; transition: opacity .5s ease .7s; }
.dialogue-bord .trace { stroke: var(--a); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 1; }
.dialogue.ouverte .dialogue-bord .trace { stroke-dashoffset: 0; opacity: 0; transition: stroke-dashoffset .88s cubic-bezier(.22, 1, .36, 1) .1s, opacity .4s ease 1s; }
.dialogue-bord .eclat { stroke: color-mix(in oklab, var(--a) 70%, #fff); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.dialogue.ouverte:not(.danger) .dialogue-bord .eclat { opacity: .85; transition: opacity .3s ease .9s; }
.dialogue.fenetre-adaptive .dialogue-bord .eclat { display: none; }   /* trop coûteux sur une si grande boîte (app.js, dessinerBord) */
/* Téléphone : une feuille qui monte du bas */
@media (max-width: 639px) {
  .dialogue-scene { align-items: flex-end; padding: 0; }
  .dialogue-boite { max-width: none; border-radius: 28px 28px 0 0; padding: 32px 24px max(24px, env(safe-area-inset-bottom)); transform: translateY(100%); opacity: 1; transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
  .dialogue.ouverte .dialogue-boite { transform: none; transition: transform .4s cubic-bezier(.32, .72, 0, 1); }
  .dialogue.ouverte:not(.danger) .dialogue-bord .eclat { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dialogue-boite, .dialogue.ouverte .dialogue-boite { transform: none !important; }
  .dialogue-voile, .dialogue.ouverte .dialogue-voile { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dialogue-bord .trace, .dialogue-bord .eclat { display: none; }
}

/* ═══ Barre « Modifications non enregistrées » (SaveBar du tableau de bord d'OProtect) ═══ */
.barre-enregistrer { position: sticky; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: flex-end; margin-top: 16px; pointer-events: none;
  opacity: 0; transform: translateY(24px) scale(.97); visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.barre-enregistrer.montre { opacity: 1; transform: none; visibility: visible; transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
.be-boite { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 12px 12px 22px; border-radius: 24px;
  background: rgb(41 42 48 / .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .9); transition: width .42s cubic-bezier(.32, .72, 0, 1), padding .42s cubic-bezier(.32, .72, 0, 1); }
.barre-enregistrer.enregistree .be-boite { width: auto; padding: 10px 20px; }
.be-texte { margin: 0; font-size: 15px; color: var(--texte); }
.be-texte.erreur { color: #ffb3b7; }
.be-boutons { display: flex; gap: 8px; }
.be-annuler, .be-enregistrer { min-height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, transform .12s ease-out, opacity .2s; }
.be-annuler { border: 2px solid rgb(244 245 246 / .7); background: transparent; color: var(--texte); }
.be-annuler:hover:not(:disabled) { background: var(--texte); color: var(--fond); }
.be-enregistrer { position: relative; overflow: hidden; border: 0; padding: 0 24px; background: var(--texte); color: var(--fond); }
.be-enregistrer span { position: relative; }
@media (hover: hover) and (pointer: fine) { .be-enregistrer:hover:not(:disabled) { background: #cfd1d6; } }
.be-annuler:active, .be-enregistrer:active { transform: scale(.97); }
.be-annuler:disabled { opacity: .5; cursor: default; }
.be-enregistrer[aria-busy="true"] { cursor: wait; }
.be-balayage { position: absolute; top: 4px; bottom: 4px; left: 0; width: 40%; border-radius: 999px; background: rgb(0 0 0 / .14); animation: balayage 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes balayage { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.be-ok { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15.5px; font-weight: 500; }
.be-coche { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu-clair); color: var(--fond); }
.be-coche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.be-coche path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .4s cubic-bezier(.22, 1, .36, 1) .12s forwards; }
.barre-enregistrer.tremble .be-boite { animation: tremble .42s cubic-bezier(.36, .07, .19, .97); background: rgb(58 29 32 / .96); }
@keyframes tremble { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.panneau-reglages.avec-barre { padding-bottom: 8px; }
@media (max-width: 560px) { .be-boite { padding: 12px; } .be-boutons { width: 100%; } .be-boutons button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .barre-enregistrer, .be-boite { transition: none; } .be-balayage { animation: none; } .barre-enregistrer.tremble .be-boite { animation: none; } }

/* ═══ Apparence : le studio, façon page d'exploration d'apple.com (pilules d'oparia.eu › Nos technologies) ═══ */
.studio { --pv-fond: rgb(42 42 45 / .72); --pv-fond-survol: rgb(42 42 45 / .92); --pv-carte: 423px;
  position: relative; height: clamp(620px, 80vh, 760px); border-radius: 28px; background: #000; overflow: hidden; overflow: clip; color: #F5F5F7; }
@media (prefers-reduced-transparency: reduce) { .studio { --pv-fond: #1E1E20; --pv-fond-survol: #272729; } .studio :is(.pv-plaque, .pv-disque) { -webkit-backdrop-filter: none; backdrop-filter: none; } }
.studio-haut { display: contents; }
.studio-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 4% 3% 4% 30%; pointer-events: none; }
/* L'ordinateur : image Blender (--fond) si elle existe, sinon dessiné en CSS (écran + base vue de face) */
.portable { position: relative; width: 100%; max-width: 980px; aspect-ratio: var(--ratio, 1.55); }
.portable:not(.rendu)::before { content: ''; position: absolute; left: 9%; right: 9%; top: 1%; bottom: 12.5%; border-radius: 22px 22px 8px 8px; background: #0b0b0c; box-shadow: inset 0 0 0 2px #26272b, 0 30px 60px -30px rgb(0 0 0 / .9); }
.portable:not(.rendu)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3%; height: 9.5%; background: linear-gradient(#34363b, #1b1c1f 60%, #111214); clip-path: polygon(8.5% 0, 91.5% 0, 100% 78%, 99% 100%, 1% 100%, 0 78%); }
.portable.rendu { background: var(--fond) 0 0 / 100% 100% no-repeat; }
/* Avec l'image : elle couvre tout le studio, à son format, comme la photo d'Apple ; les pilules flottent sur le noir à gauche */
.studio.a-rendu { height: auto; aspect-ratio: var(--ratio); min-height: 560px; }
.studio.a-rendu .studio-media { padding: 0; display: block; }
.studio.a-rendu .portable { position: absolute; top: 50%; left: 50%; width: max(100%, calc(560px * var(--ratio))); max-width: none; aspect-ratio: var(--ratio); transform: translate(-50%, -50%); }
.portable-ecran { position: absolute; left: 10.6%; right: 10.6%; top: 3.2%; bottom: 14.6%; overflow: hidden; border-radius: 6px; background: #000; }
.portable.rendu .portable-ecran { left: 0; top: 0; right: auto; bottom: auto; width: 1280px; height: var(--dch); border-radius: 0; transform-origin: 0 0; transform: var(--quad); backface-visibility: hidden; }
/* Plein écran (ordinateur) : hauteur posée par la page ; l'image tient en entier, bas fondu dans le noir */
.studio.a-rendu.plein-ecran { aspect-ratio: auto; min-height: 0; }
.studio.a-rendu.plein-ecran .portable { transform: none; max-width: none; }   /* taille et place posées par la page */
.studio.a-rendu .studio-media { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
/* Reflets en direct de l'écran (dessus de la base, sol). Chaque cadre couvre tout l'ordinateur ; son masque (tiré du rendu)
   dit où la surface prend la lumière : pavé, repose-poignets, dessus et arête avant des touches, sol au pied de la base.
   Dedans, une copie du Discord en miroir, écrasée en une bande puis floutée (filtre #reflet-lumiere, écrit par la page) :
   la lumière de chaque colonne d'écran, les couleurs seulement (ni les gris de Discord ni le blanc), teinte gardée. La
   tranche du milieu de la bande est étalée sur la zone. Le noir ajouté à la lumière (plus-lighter) ne change rien : aucune
   dalle, aucun bord. */
.reflet-cadre { display: none; position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: var(--masque) 0 0 / 100% 100% no-repeat; mask: var(--masque) 0 0 / 100% 100% no-repeat; }   /* --masque : posé par la page (ECRAN.masques) */
.reflet-filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
@supports (mix-blend-mode: plus-lighter) { .reflet-cadre { mix-blend-mode: plus-lighter; } }   /* lumière ajoutée */
.portable.rendu .reflet-cadre { display: block; }
.reflet { position: absolute; left: 0; top: 0; width: var(--reflet-largeur); height: var(--reflet-fenetre); transform-origin: 0 0; transform: var(--quad); }   /* la bande déborde de la fenêtre : le masque du cadre la borne */
/* la boîte du filtre : la bande entière plus une marge de chaque côté, où le flou s'étale ; le filtre est seul sur son élément
   (mêlé à des filtres CSS, WebKit le dessine décalé) */
.reflet-flou { position: absolute; left: calc(-1 * var(--reflet-marge)); top: calc((var(--reflet-fenetre) - var(--reflet-bande)) / 2); width: calc(var(--reflet-largeur) + 2 * var(--reflet-marge)); height: var(--reflet-bande); background: #000; filter: url(#reflet-lumiere); }
.reflet-ecrase { position: absolute; left: var(--reflet-marge); top: 0; width: 1280px; height: var(--dch); overflow: hidden; transform-origin: 0 0; transform: translateY(var(--reflet-bande)) scale(var(--ecrase-x), calc(-1 * var(--ecrase-y))); }   /* miroir + écrasement ; seul ce qui est à l'écran se reflète */
.reflet-zoom { position: absolute; inset: 0; transform-origin: 0 0; }   /* pas de transition : la page recopie la position de l'écran image par image (reglages.js › suivreZoom) */
.reflet-sol { opacity: .35; }   /* le sol renvoie bien moins que le métal ; la force du reste se règle dans ECRAN.reflet (pente) */
@media (prefers-reduced-transparency: reduce) { .reflet-cadre { display: none !important; } }
.ecran-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .9s cubic-bezier(.32, .72, 0, 1); will-change: transform; }

/* Le Discord de l'écran, dessiné en 1280 × 800 puis mis à l'échelle (--k) */
.dc { position: absolute; left: 0; top: 0; width: 1280px; height: var(--dch, 800px); transform: scale(var(--k, .5)); transform-origin: 0 0; display: grid; grid-template-columns: 72px 240px minmax(0, 1fr) 240px; background: #313338; color: #dbdee1; font: 400 16px/1.375 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; letter-spacing: 0; text-align: left; }
.dc-rail { background: #1e1f22; display: grid; align-content: start; justify-items: center; gap: 8px; padding: 12px 0; }
.dc-srv { width: 48px; height: 48px; border-radius: 50%; background: #313338; }
.dc-srv.actif { border-radius: 16px; background: linear-gradient(135deg, var(--bleu-profond), var(--bleu)); }
.dc-srv.oparia { border-radius: 16px; background: #313338 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='12' y='12' width='40' height='40' rx='9' transform='rotate(45 32 32)' fill='none' stroke='%232F72CF' stroke-width='7'/%3E%3Crect x='25' y='25' width='14' height='14' rx='3' transform='rotate(45 32 32)' fill='%233AAEEF'/%3E%3C/svg%3E") center / 30px no-repeat; }
.dc-srv.s1 { background: linear-gradient(135deg, #ff8a3d, #ffcf56); } .dc-srv.s3 { background: linear-gradient(135deg, #e879f9, #6366f1); }
.dc-sep { width: 32px; height: 2px; border-radius: 1px; background: #35363c; }
.dc-salons { background: #2b2d31; padding: 0 8px; overflow: hidden; }
.dc-srvnom { height: 48px; display: flex; align-items: center; padding: 0 8px; margin: 0 -8px 8px; border-bottom: 1px solid #1f2023; color: #f2f3f5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-cat { margin: 16px 0 4px 8px; color: #949ba4; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.dc-salon { margin: 0; padding: 6px 8px; border-radius: 4px; color: #949ba4; }
.dc-salon.actif { background: #404249; color: #f2f3f5; }
.dc-chat { display: grid; grid-template-rows: 48px minmax(0, 1fr) auto; min-width: 0; }
.dc-tete { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #26272b; color: #f2f3f5; font-weight: 600; }
.dc-fil { display: grid; align-content: end; gap: 4px; padding: 16px 0 20px; overflow: hidden; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 4px 16px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; object-fit: cover; background: #5865f2; }
.dc-av.u1 { background: linear-gradient(135deg, #ff8a3d, #ffcf56); } .dc-av.u2 { background: linear-gradient(135deg, #2fd67b, #2cc6e0); }
.dc-qui { margin: 0; display: flex; align-items: center; gap: 6px; color: #f2f3f5; font-weight: 500; }
.dc-qui time { color: #949ba4; font-size: 12px; font-weight: 400; }
.dc-txt { margin: 2px 0 0; }
.dc-app { display: inline-flex; align-items: center; height: 15px; padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 15px; vertical-align: 2px; }
.dc-cmd { margin: 8px 0 0 72px; color: #949ba4; font-size: 14px; }
.dc-cmd b { color: #00a8fc; font-weight: 500; }
.dc-embed { position: relative; display: grid; gap: 2px; max-width: 440px; margin-top: 6px; padding: 10px 16px 12px 18px; border-radius: 4px; background: #2b2d31; }
.dc-embed::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--c, #5865f2); }
.dc-embed b { color: #f2f3f5; font-weight: 600; } .dc-embed span { color: #dbdee1; font-size: 14px; }
.dc-saisie { margin: 0 16px 24px; padding: 11px 16px; border-radius: 8px; background: #383a40; color: #6d6f78; }
.dc-membres { background: #2b2d31; padding: 8px 8px 0; }
.dc-mbr { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px; border-radius: 4px; color: #949ba4; white-space: nowrap; overflow: hidden; }
.dc-mbr.choisi { background: #404249; color: #f2f3f5; }
.dc-mbr img, .dc-mbr .dc-av { width: 32px; height: 32px; font-size: 13px; border-radius: 50%; object-fit: cover; flex: none; }
/* La carte de profil du bot, ouverte à côté de son message */
.dc-pop { position: absolute; right: 248px; top: 44px; width: 340px; border-radius: 12px; background: #232428; box-shadow: 0 8px 24px rgb(0 0 0 / .45); overflow: hidden; }
.dc-pop-banniere { height: 120px; background: linear-gradient(135deg, #3b4fd8, #5865f2); background-size: cover; background-position: center; }
.dc-pop-banniere.image { background-image: var(--img); }
.dc-pop-avatar { position: absolute; left: 16px; top: 66px; width: 92px; height: 92px; border-radius: 50%; border: 6px solid #232428; background: #313338; object-fit: cover; }
.dc-pop-corps { padding: 52px 16px 16px; }
.dc-pop-nom { margin: 0; display: flex; align-items: center; gap: 8px; color: #f2f3f5; font-size: 20px; font-weight: 700; }
.dc-pop-pseudo { margin: 2px 0 0; color: #dbdee1; font-size: 14px; }
.dc-pop-bio { margin-top: 12px; padding: 10px 12px 12px; border-radius: 8px; background: #111214; min-height: 58px; }
.dc-pop-bio .dc-cat { margin: 0 0 4px; }
.dc-pop-bio p:last-child { margin: 0; color: #dbdee1; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Les pilules (mêmes formes, tailles, durées que l'explorateur d'oparia.eu) */
.studio .pv-commandes { position: absolute; z-index: 2; top: 0; bottom: 0; left: 88px; display: flex; align-items: center; pointer-events: none; }
.studio .pv-liste { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.studio .pv-item { position: relative; flex: none; height: 56px; pointer-events: auto; }
.studio .pv-bouton { position: absolute; inset: 0; z-index: 1; border: 0; border-radius: 28px; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.studio .pv-item[data-ouvert] .pv-bouton { pointer-events: none; }
.studio .pv-bouton:focus-visible { outline: 2px solid #87CCE3; outline-offset: 2px; }
.studio .pv-plaque { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; background-color: var(--pv-fond); box-shadow: inset 0 0 .5px rgb(0 0 0 / .11); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: background-color .25s linear; }
@media (hover: hover) { .studio .pv-item:not([data-ouvert]) .pv-bouton:hover + .pv-plaque { background-color: var(--pv-fond-survol); } }
.studio .pv-etiquette { position: absolute; top: 0; left: 0; display: flex; align-items: center; height: 56px; padding: 0 32px 0 14px; white-space: nowrap; font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -.022em; transition: opacity .4s ease-in-out .35s; }
.studio .pv-plus { flex: none; width: 24px; height: 24px; margin-right: 14px; }
.studio .pv-item[data-ouvert] .pv-etiquette { opacity: 0; transition: opacity .05s linear; }
.studio .pv-carte { position: absolute; top: 0; left: 0; width: var(--pv-carte); padding: 28px; font-size: 17px; line-height: 25px; letter-spacing: -.022em; opacity: 0; transform: translateY(28px); visibility: hidden; transition: opacity .3s ease-in-out, transform 0s linear .3s, visibility 0s linear .3s; }
.studio .pv-item[data-ouvert] .pv-carte { opacity: 1; transform: none; visibility: visible; transition: transform .4s ease-in-out, opacity .5s ease-in-out .3s, visibility 0s; }
.studio .pv-texte { margin: 0; color: #F5F5F7; text-wrap: pretty; } .studio .pv-texte strong { font-weight: 600; }
.studio .pv-carte .saisie { margin-top: 16px; background: rgb(255 255 255 / .1); }
.studio .pv-carte textarea.saisie { min-height: 92px; }
.studio .pv-carte .rangee-boutons { margin-top: 18px; gap: 8px; }
.studio .pv-carte .compteur { margin: 6px 0 0; }
.studio .pv-rond { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.studio .pv-disque { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background-color: var(--pv-fond); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: background-color .25s linear; }
.studio .pv-disque svg { display: block; width: 36px; height: 36px; }
@media (hover: hover) { .studio .pv-rond:hover .pv-disque { background-color: var(--pv-fond-survol); } }
.studio .pv-rond:focus-visible { outline: none; } .studio .pv-rond:focus-visible .pv-disque { outline: 2px solid #87CCE3; outline-offset: 2px; }
.studio .pv-fleches { position: absolute; z-index: 2; top: 0; bottom: 0; left: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; visibility: hidden; transition: opacity .25s linear, visibility 0s linear .25s; }
.studio[data-ouvert] .pv-fleches { opacity: 1; visibility: visible; transition: opacity .25s linear; }
.studio .pv-fermer { position: absolute; z-index: 3; top: 16px; right: 16px; transform: scale(0); visibility: hidden; transition: transform .25s ease-in, visibility 0s linear .25s; }
.studio[data-ouvert] .pv-fermer { transform: none; visibility: visible; transition: transform .3s ease-out; }
/* Téléphone et tablette : l'ordinateur en haut, les pilules dessous */
@media (max-width: 1023px) {
  .studio { height: auto; display: block; padding-bottom: 20px; }
  /* l'ordinateur (et le bouton Fermer) reste en haut pendant qu'on fait défiler les réglages : on voit le changement en tapant */
  .studio-haut { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 3; background: #000; }
  .studio-media { position: relative; inset: auto; padding: 52px 12px 14px; justify-content: center; }
  .studio .pv-fermer { top: 10px; right: 10px; }
  .studio .pv-commandes { position: static; padding: 0 16px; }
  .studio .pv-item { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 74px + var(--haut-studio, 0px)); scroll-margin-bottom: 120px; }
  html:has(.studio.a-rendu) { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 74px + var(--haut-studio, 0px)); scroll-padding-bottom: 120px; }
  /* téléphone : de l'image, on garde le morceau où est l'ordinateur (--tx, --ty, --tw, --th : fractions de l'image) */
  .studio.a-rendu { aspect-ratio: auto; min-height: 0; }
  .studio.a-rendu .studio-media { padding: 0; aspect-ratio: calc(var(--ratio) * var(--tw) / var(--th)); overflow: hidden; }
  .studio.a-rendu .portable { top: 0; left: 0; transform: none; width: calc(100% / var(--tw)); left: calc(-100% * var(--tx) / var(--tw)); top: calc(-100% * var(--ty) / var(--th)); }
  .studio .pv-liste { width: 100%; }
  .studio .pv-fleches { display: none; }
  .studio .pv-carte { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecran-zoom, .reflet-zoom { transition: none; }
  .studio .pv-carte { transform: none; transition: opacity .2s ease-out, visibility 0s linear .2s; }
  .studio .pv-item[data-ouvert] .pv-carte { transition: opacity .2s ease-out; }
}

/* ═══ Tickets : l'aperçu Discord en direct dans une colonne à droite de tout l'onglet, collé en haut pendant le
   défilement ; sur un écran étroit, il se place juste après « Textes du panneau » ═══ */
.tickets-mise { display: grid; gap: 20px; }
.tickets-apercu { min-width: 0; width: 100%; max-width: 560px; }
.apercu-panneau { margin: 0; display: grid; gap: 12px; padding: 18px 18px 20px; border-radius: var(--rayon); background: var(--tuile); }
.apercu-legende { display: flex; align-items: center; gap: 8px; color: var(--texte); font-size: 15px; font-weight: 600; }
.point-direct { width: 7px; height: 7px; border-radius: 50%; background: #2fd67b; }
.apercu-discord { border-radius: 14px; background: #313338; padding: 16px 16px 18px 12px; color: #dbdee1; font: 400 15px/1.375 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
.apd-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.apd-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #5865f2; display: block; }
.apd-corps { min-width: 0; }
.apd-qui { margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #f2f3f5; font-weight: 500; min-width: 0; }
.apd-qui > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.apd-qui time { color: #949ba4; font-size: 12px; font-weight: 400; }
.apd-image { display: block; width: 100%; height: auto; border-radius: 8px; background: #2b2d31; min-height: 120px; }
.apd-image[src] { min-height: 0; }
.apd-menu { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 9px 10px 9px 12px; border-radius: 8px; background: #1e1f22; border: 1px solid #2b2d31; color: #949ba4; font-size: 14px; }
.apd-menu svg { width: 18px; height: 18px; flex: none; color: #b5bac1; }
@container panneau (min-width: 940px) {
  .tickets-mise { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); align-items: start; }
  .tickets-mise > .groupe { grid-column: 1; }
  .tickets-apercu { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; max-width: none; }
  .tickets-apercu > .apercu-panneau { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); max-height: calc(100vh - 200px); overflow: auto; scrollbar-width: none; }
}

/* Écran Apparence sur ordinateur, sans défilement : marges resserrées au-dessus du studio ; si une carte ouverte rend
   la liste plus haute que le studio, elle défile dans sa colonne (marges automatiques : jamais coupée en haut) */
.studio.plein-ecran .pv-commandes { flex-direction: column; align-items: flex-start; justify-content: center; overflow: visible; padding: 0; }   /* sans défilement : la colonne est réduite au besoin (reglages.js › ajusterColonne) */
.studio.plein-ecran .pv-liste { margin: auto 0; }
/* liste des pilules trop haute pour le studio : elle se fond en haut et en bas au lieu d'être coupée net */


/* ═══ Coin d'aide des réglages : « Suggérer un ajout », centre d'aide, support (reglages.js › coinAide), au pied de la liste des rubriques ═══ */
.coin-aide { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 14px; }
/* « Suggérer un ajout » : pastille façon « + » d'apple.com (plaque, rond « + », survol plus clair, appui qui s'enfonce) */
.pastille-idee { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 10px; border: 0; border-radius: 999px; background: var(--tuile); color: var(--texte); font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: background-color .18s linear, transform .12s ease-out; -webkit-tap-highlight-color: transparent; }
.pastille-idee svg { width: 24px; height: 24px; flex: none; }
@media (hover: hover) and (pointer: fine) { .pastille-idee:hover { background: #383940; } }
.pastille-idee:active { transform: scale(.96); }
.pastille-idee:focus-visible { outline: none; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }
.lien-aide { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--bleu-clair); text-decoration: none; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .lien-aide:hover { color: #a9dbeb; text-decoration: underline; text-underline-offset: 3px; } }
.lien-aide:focus-visible { outline: none; border-radius: 6px; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }
.dialogue .suggestion-texte { width: 100%; margin-top: 14px; min-height: 110px; resize: vertical; text-align: left; }

/* ═══ « Activer Oparia Adaptive Core sur le bot privé » : un lien bleu ciel, et sa présentation dans la fenêtre ═══ */
/* Section « Options » de la fiche du bot : liste groupée façon Réglages d'Apple (adaptive-core-private-bot.md).
   Plaque #212227 sans contour ; une 2e option s'ajoute dessous avec un trait qui part après l'icône. */
.options { border-radius: 14px; background: var(--tuile); overflow: hidden; }
.option { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; min-height: 64px; padding: 11px 16px; }
.option + .option::before { content: ''; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: rgb(255 255 255 / .07); }
.option-icone { width: 28px; height: 28px; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.option-texte { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.option-titre { color: var(--texte); font-size: 1.0625rem; line-height: 22px; font-weight: 600; }
.option-phrase { color: var(--attenue); font-size: 15px; line-height: 20px; }
.option-lien { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--bleu-clair); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .option-lien:hover { color: #a9dbeb; text-decoration: underline; text-underline-offset: 3px; } }
.option-lien:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }
.option-droite { display: flex; align-items: center; gap: 10px; }
.option-roue { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(163 166 173 / .35); border-top-color: var(--attenue); opacity: 0; transition: opacity .15s linear; }
.option[data-envoi] .option-roue { opacity: 1; animation: tourne .8s linear infinite; }
.option-erreur { grid-column: 2 / -1; margin: 8px 0 0; color: #f07178; font-size: 14px; }
/* Interrupteur façon iOS : 51 × 31, bleu ciel allumé (pas le vert d'iOS), pastille blanche qui glisse par un ressort amorti */
.bascule-ios { position: relative; flex: none; width: 51px; height: 31px; padding: 0; border: 0; border-radius: 999px; background: #383940; cursor: pointer; transition: background-color .25s linear; }
.bascule-ios::before { content: ''; position: absolute; inset: -7px -2px; }   /* zone de toucher de 45 px de haut */
.bascule-ios-rond { position: absolute; z-index: 1; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16); transition: transform .35s cubic-bezier(.3, 1.0, .4, 1); }
.bascule-ios[aria-checked="true"] { background: #383940; }
/* Le bleu est une couche à part qui se remplit derrière le rond (app.js, animerBascule : du bord gauche jusqu'au rond,
   comme un liquide) ; sans script, il apparaît en fondu. */
.bascule-ios::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--bleu-clair); clip-path: inset(0 100% 0 0 round 999px); transition: clip-path .3s cubic-bezier(.3, 1, .4, 1), background-color .25s linear; }
.bascule-ios[aria-checked="true"]::after { clip-path: inset(0 0 0 0 round 999px); }
.bascule-ios:active:not(:disabled) .bascule-ios-rond { width: 33px; }
.bascule-ios[aria-checked="true"]:active:not(:disabled) .bascule-ios-rond { transform: translateX(14px); }
.bascule-ios-rond { transition: transform .35s cubic-bezier(.3, 1.0, .4, 1), width .2s cubic-bezier(.3, 1, .4, 1); }
.bascule-ios[aria-checked="true"] .bascule-ios-rond { transform: translateX(20px); }
.bascule-ios:focus-visible { outline: none; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--bleu-clair); }
/* Survol : la piste s'éclaircit nettement (coupé) ou s'avive (allumé), et le rond grossit un peu, façon iOS. Avec le
   pointeur façon iPad, l'interrupteur se soulève en plus (pointeur.js, LIFT). */
@media (hover: hover) and (pointer: fine) {
  .bascule-ios:hover:not(:disabled) { background: #56575f; }
  .bascule-ios[aria-checked="true"]:hover:not(:disabled)::after { background: #a8dcef; }
  .bascule-ios:hover:not(:disabled) .bascule-ios-rond { box-shadow: 0 3px 10px rgb(0 0 0 / .3), 0 1px 2px rgb(0 0 0 / .2); }
}
@media (prefers-reduced-motion: reduce) {
  .bascule-ios, .bascule-ios-rond, .bascule-ios::after { transition: opacity .2s linear; }
  .option[data-envoi] .option-roue { animation: none; }
}
/* Fenêtre « En savoir plus » d'Oparia Adaptive Core (app.js, presenterAdaptive) : de la largeur de l'alerte « Couper
   Adaptive Core ? », dont elle reprend la phrase, le trio et les boutons (.cp-phrase, .cp-trio, .cp-boutons : les règles
   de l'alerte, non recopiées ici). */
.dialogue.fenetre-adaptive .dialogue-boite { max-width: 640px; }
/* Le film de la puce et ses deux cartons (app.js, montageAdaptive). Cadre noir de 36:19, celui du film (1152 × 608,
   puce au milieu). Fenêtre basse : le cadre rétrécit pour que tout tienne sans défilement.
   `data-etat` : film (le film joue, plein cadre, rien dessus), titre (le film fendu en trois bandes qui partent, puis le
   nom et son écho), passage (le nom sort, la phrase entre), phrase (la phrase seule). .adaptive-debut : la première image
   du film, qui se fond par-dessus avant qu'il reparte. .ac-eclat : trois copies de la dernière image, découpées par deux
   coupes penchées (/ /) ; celle du milieu déborde de 0,2 % sous ses voisines, pour qu'aucun fil ne paraisse entre elles.
   L'écho (section « Power for hours » d'apple.com/airpods-5) : perspective de 12,5 em depuis le bas du nom, calculée en 2D
   par le script (rétrécissement autour du bas de la copie) ; chaque copie
   ne montre que le bas de ses lettres (masque de 55 % à 100 %). Mouvement réduit : état « titre », posé. */
.dialogue .adaptive-ecran { position: relative; container-type: inline-size; width: min(100%, max(240px, (100dvh - 600px) * 36 / 19)); aspect-ratio: 36 / 19; margin: 4px auto 12px; border-radius: 14px; background: #000; overflow: hidden; isolation: isolate; }
.dialogue .adaptive-plan { position: absolute; inset: 0; }
.dialogue .adaptive-ecran:not([data-etat="film"]) .adaptive-plan { visibility: hidden; }
.dialogue .adaptive-film, .dialogue .adaptive-debut, .dialogue .ac-eclat { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.dialogue .adaptive-debut { opacity: 0; pointer-events: none; z-index: 2; }
.dialogue .ac-eclats { position: absolute; inset: 0; pointer-events: none; }
.dialogue .adaptive-ecran[data-etat="film"] .ac-eclats { visibility: hidden; }
.dialogue .ac-e1 { clip-path: polygon(0 0, 37% 0, 23% 100%, 0 100%); }
.dialogue .ac-e2 { clip-path: polygon(36.8% 0, 77.2% 0, 63.2% 100%, 22.8% 100%); }
.dialogue .ac-e3 { clip-path: polygon(77% 0, 100% 0, 100% 100%, 63% 100%); }
.dialogue .adaptive-carton { position: absolute; inset: 0; display: grid; justify-items: center; align-items: center; padding: 0 16px; text-align: center; pointer-events: none; -webkit-font-smoothing: antialiased; z-index: 1; }
.dialogue .adaptive-ecran[data-etat="film"] .adaptive-carton { visibility: hidden; }
.dialogue .ac-carte { grid-area: 1 / 1; margin: 0; }
.dialogue .adaptive-ecran[data-etat="titre"] .ac-deux, .dialogue .adaptive-ecran[data-etat="phrase"] .ac-un { visibility: hidden; }
.dialogue .adaptive-carton p { margin: 0; }
/* le nom et son écho : l'écho descend sous le nom, le bloc remonte d'autant pour rester au milieu du cadre */
.dialogue .ac-un { margin-bottom: 9.5cqw; }
.dialogue .ac-par { margin-bottom: .55em; color: #8f8aa6; font-size: 13px; font-size: clamp(11px, 2.5cqw, 15px); line-height: 1.3; font-weight: 600; }
.dialogue .ac-tete { position: relative; font-size: 34px; font-size: clamp(20px, 7.2cqw, 46px); }
.dialogue .ac-titre, .dialogue .ac-echo { color: #f5f5f7; font-size: 1em; line-height: 1.05; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.dialogue .ac-titre { position: relative; z-index: 1; }
.dialogue .ac-echo { position: absolute; left: 0; right: 0; bottom: 0; display: block; opacity: 0; transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(rgb(255 255 255 / 0) 55%, #fff); mask-image: linear-gradient(rgb(255 255 255 / 0) 55%, #fff); }
.dialogue .adaptive-ecran[data-etat="phrase"] .ac-echo { visibility: hidden; }
.dialogue .ac-w { display: inline-block; font-style: normal; }
.dialogue .ac-deux { max-width: 26em; color: #f4f0ff; font-size: 17px; font-size: clamp(14px, 3.3cqw, 20px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
@media (forced-colors: active) { .dialogue .ac-echo { display: none; } }
/* Graphique OFF / ON (app.js, offOnHtml ; adaptive-core-off-on.md § 4), façon graphiques DLSS de NVIDIA, sans leur
   vert : posé sur le fond de la fenêtre, sans plaque. Une grille de trois colonnes (mot | piste commune | chiffre) ; les
   deux rangées partagent la piste. Barres façon CompareBars.tsx : le masque arrondi a la largeur de la valeur (12 px
   au moins : un point), la barre pleine en sort par la gauche, sans s'étirer. */
.dialogue .offon { margin: 36px 0 0; text-align: left; }
.dialogue .offon-titre { margin: 0; text-align: center; color: var(--texte); font-size: 1.0625rem; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.dialogue .offon-liste { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 16px; margin: 20px 0 0; }
.dialogue .offon-ligne, .dialogue .offon-ligne dd { display: contents; }
.dialogue .offon-ligne dt { font-size: .875rem; line-height: 1; font-weight: 700; letter-spacing: .06em; }
.dialogue .offon-off dt { color: #a3a6ad; }
.dialogue .offon-on dt { color: var(--texte); }
.dialogue .offon-piste { display: block; min-width: 0; }
.dialogue .offon-masque { display: block; width: calc(var(--l, 1) * 100%); min-width: 12px; height: 12px; border-radius: 6px; overflow: hidden; }
.dialogue .offon-masque i { display: block; height: 100%; border-radius: 6px; background: #4a4b52; opacity: 0; transform: translateX(-100%); }
.dialogue .offon-on .offon-masque i { background: var(--bleu-clair); }
.dialogue .offon.joue .offon-masque i { opacity: 1; transform: none; transition: transform 1.2s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * .3s), opacity 1.2s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * .3s); }
.dialogue .offon.pose .offon-masque i { transition: none; }
.dialogue .offon-n { justify-self: end; font-size: 2rem; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dialogue .offon-off .offon-n { color: #a3a6ad; }
.dialogue .offon-on .offon-n { color: var(--texte); }
.dialogue .offon-note { margin: 0; text-align: center; color: #a3a6ad; font-size: .875rem; line-height: 1.45; text-wrap: balance; }
.dialogue .offon-liste + .offon-note { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .dialogue .offon-masque i { opacity: 1; transform: none; transition: none !important; } }
@media (max-width: 639px) {
  .dialogue .offon { margin-top: 28px; }
  .dialogue .offon-liste { column-gap: 12px; }
  .dialogue .offon-n { font-size: 1.5rem; }
}
/* La fenêtre, plus haute que l'écran avec le comparatif, défile en entier (contour compris) : c'est la scène qui
   défile, la boîte garde sa taille. Ordinateur : centrée tant qu'elle tient, en haut sinon. Téléphone : la feuille
   reste posée en bas tant qu'elle tient. */
.dialogue.fenetre-adaptive .dialogue-scene { overflow-y: auto; overscroll-behavior: contain; align-items: flex-start; }
.dialogue.fenetre-adaptive .dialogue-boite { flex: none; margin: auto; }
@media (max-width: 639px) {
  .dialogue.fenetre-adaptive .dialogue-boite { margin: auto 0 0; }
}
/* Écran large (1100 px et plus) : tout se voit sans défiler. Deux colonnes : à gauche le film et sa phrase ; à droite
   le trio (en lignes, l'icône à gauche) et le graphique OFF / ON ; la note et les boutons centrés dessous. L'icône passe
   à gauche du titre (48 px). Plus bas que la fenêtre, l'écran défile comme ailleurs. */
@media (min-width: 1100px) {
  .dialogue.fenetre-adaptive .dialogue-boite { max-width: 1080px; padding: 26px 40px 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
  .dialogue.fenetre-adaptive .dialogue-icone { width: 48px; height: 48px; margin: 0; }
  .dialogue.fenetre-adaptive .dialogue-icone .tuile-glyphe { width: 48px; height: 48px; border-radius: 14px; }
  .dialogue.fenetre-adaptive .dialogue-icone .onde { border-radius: 14px; }
  .dialogue.fenetre-adaptive .dialogue-icone svg { width: 26px; height: 26px; }
  .dialogue.fenetre-adaptive h2.dialogue-item { margin: 0; }
  .dialogue.fenetre-adaptive .dialogue-texte { grid-column: 1 / -1; margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "film trio" "film offon" "phrase offon" "note note"; column-gap: 48px; }
  .dialogue.fenetre-adaptive .adaptive-ecran { grid-area: film; width: 100%; margin: 0; align-self: start; }
  .dialogue.fenetre-adaptive .dialogue-texte > .cp-phrase { grid-area: phrase; margin: 16px auto 0; text-align: center; align-self: start; }
  .dialogue.fenetre-adaptive .dialogue-texte > .cp-trio { grid-area: trio; grid-template-columns: minmax(0, 1fr); margin: 0; gap: 16px; max-width: none; }
  .dialogue.fenetre-adaptive .cp-trio li { grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 14px; }
  .dialogue.fenetre-adaptive .cp-trio svg { width: 28px; height: 28px; }
  .dialogue.fenetre-adaptive .cp-trio p { font-size: 1rem; }
  .dialogue.fenetre-adaptive .dialogue-texte > .offon { grid-area: offon; margin: 30px 0 0; }
  .dialogue.fenetre-adaptive .dialogue-texte > .adaptive-note { grid-area: note; margin: 24px 0 0; text-align: center; }
  .dialogue.fenetre-adaptive .cp-boutons { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); margin-top: 22px; }
}
/* Sous le trio : la ligne qui rassure, plus petite. Boutons : « Plus tard » sur une plaque (le blanc et le rouge sont
   ceux de l'alerte) ; le contour de focus ne paraît qu'au clavier (classe posée à la première touche Tab ou flèche). */
.dialogue .adaptive-note { margin: 22px 0 0; color: var(--attenue); font-size: 14px; line-height: 1.45; text-wrap: balance; }
.dialogue .cp-boutons .ad-plaque { background: #212227; color: var(--texte); }
@media (hover: hover) and (pointer: fine) { .dialogue .cp-boutons .ad-plaque:hover { background: #292a30; } }
.dialogue.clavier .cp-boutons button:focus-visible { box-shadow: 0 0 0 2px #000, 0 0 0 4px #87cce3; }
/* Téléphone (la fenêtre est une feuille qui monte du bas) : le film tient lieu d'image, l'icône du haut lui laisse sa
   place, et tout tient sans défilement sur un écran de 780 px de haut ou plus ; plus bas, la feuille défile. */
@media (max-width: 639px) {
  .dialogue.fenetre-adaptive .dialogue-icone { display: none; }
  .dialogue .adaptive-ecran { width: min(100%, max(200px, (100dvh - 630px) * 36 / 19)); }
}

/* ═══ Alerte « Couper Adaptive Core ? » (adaptive-core-textes-icones.md § 3) : fond #1a1b1f, coins de 14 px, sans contour,
   ombre douce, fond derrière assombri ; trio d'icônes au trait (modèle Trio.tsx de Scan-Doc) ═══ */
/* Voile flouté et fondu repris des autres fenêtres (feuille, zone « + » d'OProtect) : à l'ouverture le flou monte, à la
   fermeture la boîte s'efface en descendant un peu (0,16 s) pendant que le voile et son flou se retirent (0,2 s). */
.alerte-coupure { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.alerte-coupure::backdrop { background: transparent; }
.cp-voile { position: absolute; inset: 0; will-change: transform; background: rgb(0 0 0 / .65); opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity .2s ease, -webkit-backdrop-filter .2s ease, backdrop-filter .2s ease; }
.alerte-coupure.ouverte .cp-voile { opacity: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition-duration: .3s; }
.cp-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cp-boite { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .16s cubic-bezier(.4, 0, 1, 1), transform .16s cubic-bezier(.4, 0, 1, 1); }
.alerte-coupure.ouverte .cp-boite { opacity: 1; transform: none; transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.32, .72, 0, 1); }
@media (prefers-reduced-motion: reduce) { .cp-boite, .alerte-coupure.ouverte .cp-boite { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .cp-voile, .alerte-coupure.ouverte .cp-voile { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(0 0 0 / .8); } }
.cp-boite { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 24px 24px; border-radius: 14px; background: #1a1b1f; box-shadow: 0 12px 28px -18px rgb(0 0 0 / .55), 0 30px 80px -30px rgb(0 0 0 / .8); color: var(--texte); text-align: center; }
.cp-image { display: block; width: 100%; aspect-ratio: 1440 / 600; object-fit: cover; object-position: 60% 45%; border-radius: 10px; background: #000; }
.cp-titre { margin: 20px 0 0; font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.cp-phrase { margin: 8px auto 0; max-width: 44ch; color: var(--attenue); font-size: 1.0625rem; line-height: 1.45; }
.cp-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; text-align: left; }
.cp-trio li { display: grid; align-content: start; gap: 12px; }
.cp-trio svg { width: 32px; height: 32px; fill: none; stroke: var(--bleu-clair); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-trio p { margin: 0; color: var(--attenue); font-size: 1.0625rem; line-height: 1.35; text-wrap: pretty; }
.cp-trio strong { color: var(--texte); font-weight: 600; }
.cp-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.cp-boutons button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer; transition: background-color .15s linear, transform .12s ease-out; }
.cp-boutons button:active { transform: scale(.97); }
.cp-boutons button:focus { outline: none; }
.alerte-coupure.clavier .cp-boutons button:focus-visible { box-shadow: 0 0 0 2px #000, 0 0 0 4px #87cce3; }
.cp-garder { background: var(--texte); color: #000; }
@media (hover: hover) and (pointer: fine) { .cp-garder:hover { background: #d9dbe0; } .cp-couper:hover { background: #292a30; } }
.cp-couper { background: #212227; color: #f07178; }
@media (max-width: 600px) {
  .cp-boite { padding: 18px 18px 20px; }
  /* téléphone : une ligne par point, l'icône à gauche du texte (la fenêtre tient sans défiler sur 390 × 844) */
  .cp-trio { grid-template-columns: minmax(0, 1fr); max-width: 330px; margin-inline: auto; gap: 18px; }
  .cp-trio li { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 14px; }
  .cp-trio svg { width: 26px; height: 26px; margin-top: 1px; }
  .cp-trio p { font-size: 15px; }
}

/* ═══ Fermeture de TOUTES les fenêtres, comme le panneau d'aide d'OProtect (HelpSheet, copié d'apple.com) : la boîte
   ne bouge pas, elle s'efface sur place (opacité 1 → 0) pendant que le voile sombre et son flou s'éteignent, ensemble,
   en 0,8 s, courbe cubic-bezier(.42, 0, .58, 1). La fenêtre est retirée à 0,85 s (app.js). ═══ */
.dialogue.fermee .dialogue-boite, .alerte-coupure.fermee .cp-boite { opacity: 0; transform: none; transition: opacity .8s cubic-bezier(.42, 0, .58, 1); }
.dialogue.fermee .dialogue-voile, .alerte-coupure.fermee .cp-voile { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity .8s cubic-bezier(.42, 0, .58, 1), -webkit-backdrop-filter .8s cubic-bezier(.42, 0, .58, 1), backdrop-filter .8s cubic-bezier(.42, 0, .58, 1); }
@media (max-width: 639px) { .dialogue.fermee .dialogue-boite { transform: none; } }
.dialogue.fermee, .alerte-coupure.fermee { pointer-events: none; }

/* ═══ Listes de choix maison (app.js) : le bouton à l'image du champ, et la bulle ═══ */
select.choix-natif { display: none !important; }
.choix-maison { display: flex; align-items: center; gap: 8px; text-align: left; background-image: none; }
.choix-maison .cb-valeur { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.choix-maison .cb-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choix-maison .cb-groupe { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--attenue); font-size: 13px; }
.choix-maison.vide .cb-nom { color: var(--attenue); }
.choix-maison .cb-chevron { position: absolute; right: 12px; top: 50%; display: grid; width: 16px; height: 16px; margin-top: -8px; color: var(--attenue); transition: transform .25s cubic-bezier(.3, 1, .4, 1); }
.choix-maison { position: relative; }
.choix-maison.ouvert .cb-chevron { transform: rotate(180deg); }
.choix-maison svg, .choix-bulle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choix-maison .cb-tete:empty, .choix-bulle .cb-tete:empty { display: none; }
.cb-tete { flex: none; display: grid; place-items: center; width: 16px; height: 16px; color: var(--attenue); }
.cb-pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #80848e); }
.choix-maison.ajout-puce { gap: 6px; padding-right: 30px; }
.choix-maison.ajout-puce .cb-chevron { right: 9px; width: 14px; height: 14px; margin-top: -7px; }
@media (hover: hover) and (pointer: fine) { .choix-maison:hover:not(:disabled) { background-color: #44454d; } }
.choix-maison:disabled { cursor: default; opacity: .55; }

.choix-bulle { position: fixed; z-index: 80; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #222329; border: 1px solid rgb(255 255 255 / .07); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .85), 0 4px 14px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top center; transition: opacity .16s ease-out, transform .22s cubic-bezier(.3, 1, .4, 1); }
.choix-bulle.au-dessus { transform: translateY(6px) scale(.97); transform-origin: bottom center; }
.choix-bulle.ouverte { opacity: 1; transform: none; }
.choix-bulle.fermee { opacity: 0; transition: opacity .16s ease-in; }
.cb-recherche { position: relative; flex: none; padding: 8px 8px 4px; }
.cb-recherche svg { position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -6px; color: var(--attenue); }
.cb-recherche input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 0; border-radius: 10px; background: #2c2d34; color: var(--texte); font: inherit; font-size: 15px; outline: none; }
.cb-recherche input:focus-visible { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.cb-liste { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; scrollbar-color: #45464d transparent; }
.cb-categorie { padding: 12px 10px 4px; color: var(--attenue); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-categorie:first-child { padding-top: 4px; }
.cb-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--texte); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.cb-option .cb-nom { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-option.cb-aucun .cb-nom { color: var(--attenue); }
.cb-option.actif { background: #33343c; }
.cb-option[aria-selected="true"] .cb-nom { font-weight: 600; }
.cb-option[aria-selected="true"] .cb-tete { color: var(--texte); }
.cb-coche { flex: none; width: 18px; height: 18px; color: var(--bleu-clair); }
.cb-option:disabled { opacity: .4; cursor: default; }
.cb-rien { margin: 0; padding: 14px 10px; color: var(--attenue); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .choix-bulle, .choix-bulle.au-dessus { transform: none; transition: opacity .12s linear; } .choix-maison .cb-chevron { transition: none; } }

/* Modération › MP au membre sanctionné */
.mp-droite { display: flex; justify-content: flex-end; }
@media (max-width: 734px) { .mp-droite { justify-content: flex-start; } }
.mp-edition textarea.saisie { min-height: 104px; }
.mp-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-var { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--tuile-haute); color: var(--attenue); font: inherit; font-size: 13.5px; cursor: pointer; }
.mp-var code { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--bleu-clair); }
@media (hover: hover) { .mp-var:hover { background: #3f4148; color: var(--texte); } }
.mp-var:disabled { opacity: .5; cursor: default; }
.mp-compte { margin: -6px 0 0; text-align: right; color: var(--attenue); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.apercu-integre.mp-apercu p { margin: 0; color: var(--texte); white-space: pre-wrap; overflow-wrap: anywhere; }
.apercu-integre.mp-apercu b { display: inline; }
.apercu-integre.mp-apercu span { color: var(--attenue); }

/* Avertissement « le bot ne lit pas le texte des messages » (reglages.js › PB.avisContenu) et sa fenêtre d'aide */
.avis-contenu-lien { padding: 0; font-size: inherit; font-weight: 600; }
.dialogue .etapes-aide { margin: 14px 0 0; padding-left: 22px; text-align: left; display: grid; gap: 8px; }
.dialogue .etapes-aide li { padding-left: 4px; }
/* Parties d'une rubrique (Staff, Messages, Communauté…) : une barre pleine largeur, à part des petits filtres */
.segments.sous-rubriques { display: flex; width: 100%; }
.segments.sous-rubriques button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Intertitres dans un groupe (Permissions : familles de commandes) */
.sous-titre-groupe { margin: 0; padding: 18px 22px 4px; color: var(--attenue); font-size: 13px; line-height: 17px; font-weight: 600; letter-spacing: .01em; }
/* Ligne sans commande à droite (état du panneau de tickets) ; commande seule calée à droite */
.ligne-r.ligne-seule { grid-template-columns: minmax(0, 1fr); }
.a-droite { display: flex; justify-content: flex-end; }
@media (min-width: 735px) { .ligne-r:has(select[data-perm-cmd]) { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); } }
@container groupe (max-width: 599px) { .ligne-r:has(select[data-perm-cmd]) { grid-template-columns: minmax(0, 1fr); } }
.erreur-reglages { display: grid; gap: 16px; justify-items: start; padding-top: 24px; }
@container panneau (max-width: 520px) { .segments.sous-rubriques { overflow-x: auto; scrollbar-width: none; } .segments.sous-rubriques button { flex: 1 1 auto; min-width: auto; padding: 0 6px; font-size: 14px; letter-spacing: -.01em; } }
/* ═══ Tour 2 de la critique : finitions ═══ */
/* Barre des parties : intitulés centrés dans leur case */
.segments.sous-rubriques button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* Interrupteur désactivé (serveur sans licence) : grisé comme les menus voisins */
.bascule-ios:disabled { opacity: .45; cursor: not-allowed; }
/* Bouton au long texte : il revient à la ligne plutôt que de sortir de sa carte */
.bouton.bouton-long { white-space: normal; line-height: 1.3; height: auto; min-height: 36px; padding-block: 8px; text-align: center; max-width: 100%; }
.mb-zone, .mb-zone > * { min-width: 0; }
/* Commande seule calée à droite : sous le texte, elle part à gauche quand le bloc est étroit */
@container groupe (max-width: 559px) { .a-droite { justify-content: flex-start; } }
/* Avis « sans licence » avec son bouton */
.lecture-seule.avis-licence { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; align-items: start; }
.lecture-seule.avis-licence > .bouton { grid-column: 2; justify-self: start; }
@container panneau (min-width: 640px) { .lecture-seule.avis-licence { grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; } .lecture-seule.avis-licence > .bouton { grid-column: 3; } .lecture-seule.avis-licence > .point { align-self: start; } }
/* Page d'erreur des réglages */
.erreur-reglages h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; }
.erreur-reglages .erreur-serveur { margin: -8px 0 0; color: var(--attenue); font-size: 15px; }
/* Aperçu du panneau de tickets : lien « Agrandir » à droite de la légende ; l'image en grand dans la fenêtre */
.apercu-legende { display: flex; align-items: center; }
.apercu-agrandir { margin-left: auto; padding: 4px 0; font-size: 14px; }
.dialogue.fenetre-apercu .dialogue-boite { max-width: min(980px, calc(100vw - 32px)); }
.dialogue .apercu-grand { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: 10px; background: #2b2d31; }
/* Fil d'Ariane très étroit : le chevron garde sa place */
@media (max-width: 420px) { .fil .fil-lien { margin: 0; padding: 0 2px; } }
/* Texte agrandi (fenêtre de 300 px de large ou moins) : « Changer » laisse la place au nom de la rubrique */
@media (max-width: 300px) {
  .cr-changer { font-size: 0; gap: 0; }
  .cr-texte b { white-space: normal; }
  .fil:has(#fil-3:not([hidden])) > li:nth-child(2) { display: none; }
  .fil:has(#fil-3:not([hidden])) > li:nth-child(3)::before { display: none; }
}
/* Points d'état en face de la première ligne quand le texte en prend plusieurs */
.serveur .licence, .serveur-entete .licence, .etat-tickets { align-items: flex-start; line-height: 21px; }
.serveur .licence > .point, .serveur-entete .licence > .point, .etat-tickets > .point { margin-top: 6.5px; }
/* Tickets sur une colonne : l'aperçu prend toute la largeur, comme les blocs */
.tickets-apercu { max-width: none; }
/* Colonne des rubriques collée en haut seulement si elle tient entière dans la fenêtre ; sinon elle défile avec la page
   (pas de deuxième zone de défilement) */
@media (min-width: 1180px) and (min-height: 880px) { .nav-reglages { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); } }
