/* =====================================================================
   NOUVELLE MISE EN PAGE « SALLE DE COURS SOMBRE ET VITRÉE » — toute la plateforme.
   Maquette : fond noir, rubans d'or, cartes en verre fumé, angles droits, un seul geste lumineux : le bouton jaune.
   Couche d'habillage seulement (CSS) : aucune fonction du site n'est modifiée. Remplace habillage/affichette.css.
   Polices : habillage/vitrine-polices.css (Barlow Condensed, Inter, JetBrains Mono, Caveat, auto-hébergées).
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #060608; --bg-2: #0C0C10;
  --verre: rgba(255,255,255,.05); --verre-2: rgba(255,255,255,.085);
  --trait: rgba(255,255,255,.10); --trait-2: rgba(255,255,255,.20);
  --doux: #B4B0A8; --discret: #8A8780;
  --or: #FFD42A; --or-2: #FFB800; --cuivre: #FF7A1A;
  --f-titre: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-main: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* jetons du système de design, redéfinis en sombre */
  --fond: #060608; --surface: #111116; --surface-2: #1A1A21;
  --texte: #F5F3EE; --texte-2: #B4B0A8;
  --bord: rgba(255,255,255,.12); --bord-fort: rgba(255,255,255,.24);
  --marque: #FFC400; --marque-fonce: #FFB800; --marque-pale: rgba(255,196,0,.12);
  --nuit: #0C0C10; --nuit-2: #17171E;
  --ambre: #FFC400; --ambre-fonce: #FFB800; --ambre-texte: #FFB35C; --ambre-pale: rgba(255,122,26,.14);
  --succes: #58D68D; --succes-fond: rgba(88,214,141,.14);
  --alerte: #FFC857; --alerte-fond: rgba(255,200,87,.14);
  --erreur: #FF8A80; --erreur-fond: rgba(255,90,80,.16);
  --police-titres: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-s: 0; --r-m: 0; --r-l: 0; --r-pill: 999px;
  --ombre-0: 0 1px 2px rgba(0,0,0,.4);
  --ombre-1: 0 30px 80px -30px rgba(0,0,0,.8);
  --ombre-modal: 0 40px 100px -20px rgba(0,0,0,.9);
}

html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg) !important; color: var(--texte); font-family: var(--f-texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::selection, ::selection { background: rgba(255,196,0,.35); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or) !important; outline-offset: 3px; }

/* Titres : condensés, sans gras lourd */
h1, h2, h3, .titre-section, .atelier-nom, .marque span, .prix, .tarif {
  font-family: var(--f-titre); font-weight: 500; letter-spacing: -.005em; text-wrap: balance;
}
h1, h2, .titre-section { line-height: .98; }
h2, .titre-section { font-size: clamp(40px, 6vw, 72px); font-weight: 500; color: var(--texte); }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; }
.chapeau, .intro, .sous-texte { color: var(--doux); }
strong, b { font-weight: 600; }

/* Angles droits partout (sauf ce qui doit rester rond) */
*, *::before, *::after { border-radius: 0 !important; }
.point-live, .badge.live i, .pt, .avatar, .atelier-avatar, .initiale-fdm, .pin, .curseur, input[type="radio"], input[type="checkbox"],
.eq b, .tampon *, .tampon, .dem-num, .numero, .puce, .chip-matiere, .defile span, .badge, .etoiles-saisie *, .fermer, .jauge, .jauge *,
.places-barre, .places-barre *, .remplissage, .qr-partage img, .mini-atelier { border-radius: revert-layer; }
.point-live, .badge.live i, .pt, .avatar, .atelier-avatar, .initiale-fdm, .pin, .curseur { border-radius: 50% !important; }
.puce, .chip-matiere, .badge { border-radius: 999px !important; }

/* ---------- Fond : rubans d'or + lueurs ---------- */
.fond-or { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .8;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 95%); mask-image: linear-gradient(#000 40%, transparent 95%); }
.fond-or .grain { position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 8%, rgba(255,184,0,.10), transparent 70%), radial-gradient(50% 40% at 0% 60%, rgba(255,122,26,.08), transparent 70%); }
.fond-or svg { position: absolute; left: 50%; top: 0; width: 1600px; max-width: none; height: 1000px; translate: calc(-50% + var(--px, 0px)) calc(var(--py, 0px) + var(--sy, 0px)); transition: translate .9s var(--ease); }
.fond-or canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruban { animation: derive 18s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.ruban.b { animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes derive { from { transform: translate3d(0,0,0) rotate(0); } to { transform: translate3d(18px,-14px,0) rotate(1.2deg); } }
.curseur { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255,184,0,.11), transparent 65%); translate: var(--cx, -999px) var(--cy, -999px); will-change: translate; }
main, .entete, footer, .pied-page, dialog { position: relative; z-index: 2; }
.entete { z-index: 40; }

/* ---------- Boutons ---------- */
.bouton, button.bouton, a.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent;
  font-family: var(--f-texte); font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
  color: #1B1400; background: linear-gradient(180deg, #FFE55C, #FFC400);
  box-shadow: 0 0 0 1px rgba(255,236,140,.55) inset, 0 12px 34px -8px rgba(255,196,0,.5);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bouton:hover { background: linear-gradient(180deg, #FFE55C, #FFC400); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,236,140,.7) inset, 0 18px 40px -8px rgba(255,196,0,.62); }
.bouton:disabled, .bouton[disabled] { background: var(--surface-2); color: var(--discret); box-shadow: none; cursor: not-allowed; transform: none; }
.bouton.gros { min-height: 54px; padding-inline: 26px; font-size: 16px; }
.bouton.large { width: 100%; }
.bouton.secondaire, .bouton.clair, .bouton-discret {
  background: var(--verre); color: var(--texte); border: 1px solid var(--trait-2); box-shadow: none; backdrop-filter: blur(10px);
}
.bouton.secondaire:hover, .bouton.clair:hover, .bouton-discret:hover { background: var(--verre-2); transform: translateY(-2px); box-shadow: none; }
.bouton.sombre { background: var(--surface-2); color: var(--texte); border: 1px solid var(--trait-2); box-shadow: none; }
.bouton.sombre:hover { background: #22222b; }
.bouton.chaud { color: #1B1400; background: linear-gradient(180deg, #FFE55C, #FFC400); }
.bouton-discret { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.lien, .lien-details { color: var(--or); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; }
.lien:hover { color: #fff; }

/* ---------- Champs ---------- */
input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"], input[type="search"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
  background: rgba(0,0,0,.42); color: var(--texte); border: 1px solid var(--trait-2); font-family: var(--f-texte);
}
input::placeholder, textarea::placeholder { color: var(--discret); }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.4); }
input:focus, select:focus, textarea:focus { outline: 0 !important; border-color: var(--or); box-shadow: 0 0 0 3px rgba(255,212,42,.18); }
select option { background: #14141a; color: var(--texte); }
label { color: var(--doux); }
input[type="range"] { accent-color: var(--or-2); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--or-2); }
.champ label, .case { color: var(--texte); }

/* ---------- Surfaces : verre fumé ---------- */
.carte, .porte-monnaie, .persona, .matiere, .service, .service-prof, .carte-prof, .avantage, .offre-carte, .ep-pack, .moyen, .parcours, .tableau-recap,
.atelier-reservation, .atelier-infos, .compte-ligne, .galerie-fiche, .info-degressif, .conseil-tarif, .qr-partage, .modele-partage, .sim-resultats,
.offre-calcul, .dem-etape, .ep-estim, .ep-recap, .faq details, .accord-note, .capture, .hero-points, .fiche-tete, .fiche-texte {
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025) 60%) !important;
  border: 1px solid var(--trait) !important; color: var(--texte) !important;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.carte:hover { border-color: rgba(255,184,0,.45) !important; }
.carte.pleine { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 60%) !important; }
dialog.fenetre { background: transparent; border: 0; color: var(--texte); }
dialog.fenetre::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fenetre .interieur { background: linear-gradient(160deg, #1b1b22, #0e0e13) !important; border: 1px solid var(--trait-2); box-shadow: var(--ombre-modal); color: var(--texte); }
.fenetre .fermer, .fermer { color: var(--texte); background: var(--verre); border: 1px solid var(--trait-2); }
.apercu, .apercu * { color: var(--texte); }
.apercu { background: #15151b !important; border: 1px solid var(--trait-2) !important; box-shadow: var(--ombre-modal) !important; }
.ap-champ, .ap-ligne { background: rgba(255,255,255,.06) !important; border-color: var(--trait) !important; color: var(--doux) !important; }
hr { border-color: var(--trait); }
table, th, td { border-color: var(--trait) !important; }
th { color: var(--doux); }
.ep-tab-ligne:not(.ep-tab-tete) { background: transparent !important; }

/* Pastilles, badges, états */
.badge { background: var(--verre-2); color: var(--texte); border: 1px solid var(--trait-2); }
.badge.valide { background: var(--succes-fond); color: var(--succes); border-color: rgba(88,214,141,.4); }
.badge.en_attente { background: var(--alerte-fond); color: var(--alerte); border-color: rgba(255,200,87,.4); }
.badge.echoue, .badge.live { background: var(--erreur-fond); color: var(--erreur); border-color: rgba(255,90,80,.4); }
.badge.en-avant { background: linear-gradient(180deg, #FFE55C, #FFC400); color: #1B1400; }
.badge.formateur-mois { background: rgba(88,214,141,.16); color: #8CE9B4; }
.ep-badge, .ep-badge-vert, .offre-mini, .offre-plus, .offre-perso, .ep-garantie, .ep-resultats, .ep-recap .ep-recap-fixe { background: rgba(255,184,0,.12) !important; color: #FFD98A !important; border: 1px solid rgba(255,184,0,.35) !important; box-shadow: none !important; }
.dem-etape.faite, .ep-estim { background: rgba(88,214,141,.08) !important; border-color: rgba(88,214,141,.35) !important; }
.statut { background: var(--alerte-fond); color: var(--alerte); border: 1px solid rgba(255,200,87,.35); }
.statut.erreur { background: var(--erreur-fond); color: var(--erreur); border-color: rgba(255,90,80,.4); }
.statut.ok, .statut.succes { background: var(--succes-fond); color: var(--succes); border-color: rgba(88,214,141,.4); }
.etat-vide { background: var(--verre); border: 1px dashed var(--trait-2); color: var(--doux); }

/* ---------- En-tête ---------- */
.entete { background: rgba(6,6,8,.66) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid transparent !important; transition: border-color .2s; }
.entete.scrolle { border-bottom-color: var(--trait) !important; }
.entete .prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--or), var(--cuivre)); transform-origin: 0 50%; scale: var(--p, 0) 1; display: block; }
.marque { color: var(--texte); gap: 12px; }
.marque span { font-family: var(--f-titre); font-size: 26px; font-weight: 600; letter-spacing: .01em; color: var(--texte); }
.marque svg rect { fill: url(#gLogo); }
.nav-visiteur a { color: var(--doux) !important; font-weight: 500; }
.nav-visiteur a:hover { color: var(--texte) !important; background: var(--verre) !important; }
.avatar { background: linear-gradient(145deg, var(--or), var(--cuivre)); color: #1B1400; }
.identifiant { color: var(--texte); }
.langues select { background: var(--verre); border: 1px solid var(--trait-2); color: var(--texte); }

/* ---------- Pied de page ---------- */
.pied-page { background: transparent !important; border-top: 1px solid var(--trait) !important; color: var(--discret); }
.pied-page a { color: var(--doux); }
.pied-page a:hover { color: var(--texte); }

/* ---------- ACCUEIL ---------- */
#vueConnexion .section, #vueConnexion section { background: transparent !important; }
.hero { background: transparent !important; position: relative; }
.hero::before, .hero::after, .section-prof::before, .section-prof::after { display: none !important; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--trait-2); background: var(--verre); border-radius: 999px !important;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte); }
.point-live { background: #FF4D4D; animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.offre-ruban { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255,184,0,.45); background: rgba(255,184,0,.09); color: #FFD98A; font-size: 13px; font-weight: 500; text-decoration: none; rotate: -1.2deg; box-shadow: none; border-radius: 999px !important; }
.hero h1 { font-family: var(--f-titre); font-size: clamp(58px, 10.5vw, 132px); line-height: .9; font-weight: 500; color: var(--texte); text-shadow: none; }
.hero h1 .mot { display: inline-block; animation: monte .85s var(--ease) both; animation-delay: calc(var(--i) * .09s + .12s); }
.hero h1 .mot.acc, .acc { background: linear-gradient(100deg, var(--or-2), var(--cuivre), var(--or), var(--or-2)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; animation: brille 7s ease-in-out infinite alternate; }
@keyframes brille { to { background-position: 100% 50%; } }
@keyframes monte { from { opacity: 0; translate: 0 30px; } }
.hero h1 .sous { display: block; margin-top: 18px; font-family: var(--f-mono); font-size: clamp(12px, 1.5vw, 14px); letter-spacing: .2em; text-transform: uppercase; color: var(--or); font-weight: 500; background: none; box-shadow: none; padding: 0; rotate: 0deg; transform: none; text-shadow: none; }
.accroche { color: var(--doux); font-size: clamp(16px, 1.7vw, 19px); max-width: 58ch; }
.accroche strong { color: var(--texte); font-weight: 500; background: none !important; }
.accroche strong .surligne { background: linear-gradient(transparent 62%, rgba(255,184,0,.38) 62%) !important; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-actions { gap: 14px; }

/* Carte « atelier d'exemple » */
.hero-visuel .maquette { background: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.025) 60%) !important; border: 1px solid var(--trait) !important; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--texte); rotate: -1.4deg; }
.maquette-barre { color: var(--texte); font-family: var(--f-main); font-size: 22px; }
.maquette-barre .live { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tuile-visio, .tuile-visio.t2, .tuile-visio.t3 { background: #111 !important; border: 1px solid var(--trait); overflow: hidden; }
.tuile-visio .nom { background: rgba(6,6,8,.72) !important; color: var(--texte) !important; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.bulle { background: rgba(255,255,255,.95) !important; color: #14141A !important; }
.bulle.eleve { background: #FFD42A !important; }
.maquette-pied strong { font-family: var(--f-titre); font-weight: 500; font-size: 30px; line-height: 1; color: var(--texte); }
.maquette-pied small { color: var(--doux); }
.prix, .tarif, .maquette-pied .prix {
  background: radial-gradient(circle at 15px 50%, #07070a 0 3.6px, transparent 4.2px), linear-gradient(180deg, #FFE55C, #FFC400) !important;
  color: #1B1400 !important; font-family: var(--f-titre); font-weight: 700; padding: 6px 16px 6px 30px; line-height: 1;
  clip-path: polygon(17px 0, 100% 0, 100% 100%, 17px 100%, 0 50%); border-radius: 0 !important; display: inline-block; font-size: 30px;
}
.places-barre { background: rgba(255,255,255,.1); }
.remplissage { background: linear-gradient(90deg, var(--or-2), var(--cuivre)); }

/* Tampon */
.tampon { color: var(--or-2) !important; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.tampon text, .tampon .t-rond { fill: currentColor !important; font-family: var(--f-mono); font-weight: 600; }
.tampon .t-centre { font-family: var(--f-titre); }
.tampon .t-ext, .tampon .t-int, .tampon circle { stroke: currentColor !important; }

/* Garanties */
.reassurance { background: rgba(255,255,255,.02) !important; border-block: 1px solid var(--trait); }
.reassurance li, .reassurance span { color: var(--doux) !important; }
.reassurance svg { color: var(--or) !important; background: none !important; }

/* Défilé de matières */
.defile { background: rgba(255,255,255,.02) !important; border-block: 1px solid var(--trait) !important; padding-block: 18px; }
.defile-piste { gap: 14px; }
.chip-matiere, .defile span { background: transparent !important; border: 0 !important; color: var(--doux) !important; font-family: var(--f-titre); font-size: 30px; font-weight: 500; padding: 0 !important; min-height: 0; display: inline-flex; align-items: center; gap: 14px; transform: none !important; }
.chip-matiere::after, .defile span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--or-2); display: inline-block; border-radius: 0 !important; }
.chip-matiere:hover { color: var(--texte) !important; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.titre-section { text-align: left; }
.entete-section { margin-bottom: 36px; }
.section.teinte, #fonctionnement, .faq, #cours, .pour-qui { background: transparent !important; }
.persona, .matiere { color: var(--texte); }
.persona strong, .matiere span { font-family: var(--f-titre); font-weight: 500; color: var(--texte); }
.persona span, .persona p { color: var(--doux); }
.persona-prof { border-color: rgba(255,196,0,.5) !important; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 70px -20px rgba(255,170,0,.35) !important; }
.badge-cible, .theme-photo { background: rgba(6,6,8,.78) !important; color: var(--texte) !important; border: 1px solid var(--trait-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.faux-bouton { background: linear-gradient(180deg, #FFE55C, #FFC400); color: #1B1400; font-weight: 600; }
.cadre-photo img, .photo-persona { filter: saturate(.9); }
.mosaique figure { border: 1px solid var(--trait); }
.mosaique figcaption { background: rgba(6,6,8,.78); color: var(--texte); }
.matiere svg { background: rgba(255,184,0,.12) !important; color: var(--or) !important; }
.matiere:hover { border-color: rgba(255,184,0,.5) !important; }

/* Cartes d'ateliers (accueil, catalogue) */
.accueil-cours { gap: 20px; }
.accueil-cours .carte, .accueil-cours article { overflow: hidden; position: relative; }
.accueil-cours .carte:first-child { border-color: rgba(255,196,0,.55) !important; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,196,0,.18), 0 0 70px -20px rgba(255,170,0,.35) !important; }
.couverture, .couverture.avec-image { background: #15151b; color: var(--texte); }
.couverture.avec-image::after { background: linear-gradient(0deg, rgba(6,6,8,.7), transparent 55%); }
.carte h3, .carte .titre { color: var(--texte); }
.nom-prof, .quand, .date, .places { color: var(--doux); }
.places { color: #FFB35C; font-family: var(--f-main); font-size: 21px; font-weight: 700; }
.etiquettes span, .etiquette { background: transparent; border: 1px solid var(--trait); color: var(--doux); border-radius: 8px !important; }
.plus-de-cours { margin-top: 30px; text-align: center; }
.groupe-semaine { font-family: var(--f-titre); font-size: 34px; font-weight: 500; color: var(--texte); grid-column: 1 / -1; margin: 18px 0 0; }
.accueil-filtre { color: var(--doux); }
.mode-liste .ligne-atelier { background: var(--verre); border: 1px solid var(--trait); color: var(--texte); }
.ligne-atelier:hover, .ligne-atelier:focus-within { background: #1d1d24 !important; border-color: rgba(255,184,0,.5) !important; }

/* Offre de lancement */
.offre-lancement { background: transparent !important; color: var(--texte); }
.offre-lancement h2, .offre-lancement .titre-section { font-size: clamp(46px, 7vw, 92px); color: var(--texte); }
.offre-lancement p, .offre-chapeau, .offre-note { color: var(--doux); }
.offre-calcul { color: var(--texte) !important; }
.offre-ligne strong, .offre-ligne.fort strong { font-family: var(--f-titre); color: var(--texte); }
.offre-ligne.fort strong { background: linear-gradient(100deg, var(--or), var(--cuivre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offre-barre, .jauge { background: rgba(255,255,255,.08) !important; }
.offre-barre i, .jauge i { background: #6B6A66; }
.offre-ligne.fort .offre-barre i { background: linear-gradient(90deg, var(--or-2), var(--cuivre)); }
.offre-ex, .offre-rythme { color: var(--doux); }
.offre-badge { background: rgba(255,184,0,.12); color: #FFD98A; border: 1px solid rgba(255,184,0,.4); }

/* Section animateurs */
.section-prof { background: transparent !important; color: var(--texte); }
.section-prof h2, .section-prof h3 { color: var(--texte); }
.avantage svg { background: rgba(255,184,0,.14) !important; color: var(--or) !important; }
.avantage p, .service p, .service-prof p { color: var(--doux); }
.service h3, .service-prof h3, .avantage strong { color: var(--or); font-family: var(--f-titre); font-weight: 500; font-size: 28px; }
.ep-reseau, .ep-pastilles span, .reseaux span { background: transparent; border: 1px solid var(--trait-2); color: var(--texte); }
.etapes li, .dem-liste li { background: rgba(0,0,0,.3); border: 1px solid var(--trait); }
.numero, .dem-num { background: linear-gradient(145deg, var(--or), var(--cuivre)); color: #1B1400; font-family: var(--f-mono); }

/* Fonctionnement : 3 étapes */
#fonctionnement .etapes > *, .etape { background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025) 60%) !important; border: 1px solid var(--trait) !important; color: var(--texte); }
#fonctionnement h3, .etape h3 { font-family: var(--f-titre); font-weight: 500; font-size: 30px; color: var(--texte); }
#fonctionnement p, .etape p { color: var(--doux); }
.numero { box-shadow: 0 0 0 0 rgba(255,196,0,0); animation: allume 6s ease-in-out infinite; }
@keyframes allume { 0%, 30%, 100% { box-shadow: 0 0 0 0 rgba(255,196,0,0); } 12% { box-shadow: 0 0 0 8px rgba(255,196,0,.28), 0 0 30px rgba(255,160,0,.6); } }

/* FAQ */
.faq { background: transparent !important; }
.faq details { background: var(--verre) !important; }
.faq details[open] { border-color: rgba(255,184,0,.45) !important; background: var(--verre-2) !important; }
.faq summary { color: var(--texte); font-weight: 500; }
.faq summary::after { color: var(--or); border: 1px solid var(--trait-2); }
.faq p, .faq details p { color: var(--doux); }
.faq-groupe { color: var(--or); font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Espace connecté ---------- */
.onglets { background: rgba(255,255,255,.03); border: 1px solid var(--trait); }
.onglet { color: var(--doux); background: transparent; }
.onglet:hover { color: var(--texte); }
.onglet[aria-selected="true"], .onglet.actif { background: linear-gradient(180deg, #FFE55C, #FFC400); color: #1B1400; }
.porte-monnaie .montant, .solde, .montant { font-family: var(--f-titre); color: var(--texte); }
.tuile, .tuiles > * { background: var(--verre); border: 1px solid var(--trait); color: var(--texte); }
.moyen { color: var(--texte); }
.filtres, .ligne-filtres { color: var(--doux); }
.vignette-choix { background: var(--surface-2) !important; border-color: var(--trait) !important; }
.galerie-case, .galerie-fiche a, .mini-atelier { background: var(--surface-2) !important; }
.progres, .dem-progres { background: rgba(255,255,255,.08); }
.avatar-atelier, .atelier-avatar { background: var(--surface-2) center / cover; color: var(--or); }

/* ---------- Pages atelier / pages de texte ---------- */
.page-simple, .page-atelier { color: var(--texte); }
.atelier-hero { background: transparent; }
.atelier-reservation { top: 84px; }
.atelier-nom { color: var(--texte); }
.atelier-prix { font-family: var(--f-titre); color: var(--or); }
.atelier-texte, .fiche-texte { color: var(--doux); }
.mention-illus { color: var(--discret); }

/* ---------- Bandeau de consentement ---------- */
.bandeau-consentement { background: #14141a !important; color: var(--texte) !important; border: 1px solid var(--trait-2) !important; box-shadow: var(--ombre-modal) !important; }
.bandeau-consentement p { color: var(--doux); }

/* ---------- Assistant guide ---------- */
.g-bouton, .g-envoi { background: linear-gradient(180deg, #FFE55C, #FFC400) !important; color: #1B1400 !important; border: 0 !important; }
.g-panneau, .g-tete { background: #14141a !important; color: var(--texte) !important; border: 1px solid var(--trait-2); }
.g-msg, .g-puce, .g-choix, .g-liste a, .g-lien { color: var(--texte); }
.g-puce, .g-choix { background: var(--verre) !important; border: 1px solid var(--trait-2) !important; }
.g-bot { background: var(--verre-2) !important; color: var(--texte) !important; }
.g-user { background: rgba(255,196,0,.18) !important; color: var(--texte) !important; }
.pastille-flottante, .puce-flottante { background: linear-gradient(180deg, #FFE55C, #FFC400) !important; color: #1B1400 !important; }

/* ---------- Mouvements d'entrée / révélation ---------- */
.rv { transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
.rv.pre { opacity: 0; translate: 0 36px; }
.note { rotate: var(--r, 0deg); transform-origin: 50% 12px; transition: translate .4s var(--ease), box-shadow .4s; }
.note.idle { animation: sway var(--sw, 7s) ease-in-out infinite alternate; }
.note.swing { animation: pendule 1.6s cubic-bezier(.3,.2,.2,1) forwards; translate: 0 -8px; }
.note.retour { animation: retour .9s cubic-bezier(.3,1.5,.4,1) forwards; }
@keyframes sway { from { rotate: calc(var(--r, 0deg) - .55deg); } to { rotate: calc(var(--r, 0deg) + .55deg); } }
@keyframes pendule { 0% { rotate: var(--r, 0deg); } 13% { rotate: calc(var(--r, 0deg) + 5deg); } 30% { rotate: -3.8deg; } 48% { rotate: 2.6deg; } 66% { rotate: -1.5deg; } 84% { rotate: .6deg; } 100% { rotate: 0deg; } }
@keyframes retour { from { rotate: 0deg; } to { rotate: var(--r, 0deg); } }
.pin { position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, #FFA394, #E5311F 55%, #6E0F08); box-shadow: 0 8px 12px -2px rgba(0,0,0,.65), inset 0 -2px 3px rgba(0,0,0,.35); }
.pin.or { background: radial-gradient(circle at 34% 30%, #FFF0A8, #FFC400 55%, #8A5A12); }
.scotch { position: absolute; top: -15px; left: 50%; width: 108px; height: 30px; margin-left: -54px; rotate: -2.5deg; z-index: 6; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,214,90,.62), rgba(255,184,0,.42) 55%, rgba(255,214,90,.6)); border: 1px solid rgba(255,232,150,.45);
  clip-path: polygon(1% 0, 99% 0, 100% 22%, 97% 42%, 100% 62%, 97% 82%, 100% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%); }
.verre-halo { background-image: radial-gradient(300px circle at var(--mx, -400px) var(--my, -400px), rgba(255,196,60,.13), transparent 70%) !important; }
.btn-or::after, .bouton:not(.secondaire):not(.clair):not(.sombre):not(:disabled)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.55) 50%, transparent 64%); translate: -130% 0; animation: eclat 5.5s ease-in-out infinite; }
.bouton { position: relative; overflow: hidden; }
@keyframes eclat { 0%, 62% { translate: -130% 0; } 100% { translate: 130% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .curseur, .fond-or canvas { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) { .fond-or { opacity: .45; } .chip-matiere, .defile span { font-size: 24px; } .hero h1 { font-size: clamp(52px, 15vw, 90px); } }

/* ===== Pages à variables locales (mentions légales, tuto) et salle de visio : tout passe en sombre ===== */
html:root{--fond:#060608;--surface:rgba(255,255,255,.05);--texte:#F5F3EE;--texte-2:#B4B0A8;--bord:rgba(255,255,255,.12);--bord-fort:rgba(255,255,255,.22);--marque:#FFD42A;--marque-pale:rgba(255,212,42,.12);--ambre-pale:rgba(255,122,26,.14);--ambre-texte:#FFB35C;--vert-pale:rgba(88,214,141,.12);--vert-texte:#58D68D}
body{background:var(--bg,#060608);color:#F5F3EE}
nav a{background:rgba(255,255,255,.06)!important;color:#F5F3EE!important;border-color:rgba(255,255,255,.2)!important}
body.salle{background:#060608}
body.salle .s-entete,body.salle .s-outil,body.salle .s-carte,body.salle .s-chat,body.salle textarea.s-notes,body.salle .tb button:hover,body.salle .tb button[aria-pressed="true"],body.salle .s-mains{background:rgba(255,255,255,.06)!important;color:#F5F3EE;border-color:rgba(255,255,255,.16)!important}
body.salle .s-outil[aria-selected="true"],body.salle .s-chat-bascule{background:linear-gradient(180deg,#FFE55C,#FFC400)!important;color:#1B1400!important;border-color:transparent!important}
body.salle .s-bandeau{background:rgba(255,122,26,.14);color:#FFB35C}
body.salle .s-bandeau.ok{background:rgba(88,214,141,.14);color:#58D68D}
body.salle .s-chat[style],body.salle .tableau-cadre{background:#fff}
body.salle .s-titre,body.salle .s-outil,body.salle .s-carte *{color:inherit}
.bouton-nom{color:#FFD42A!important}
ol.etapes>li::before{color:#1B1400!important}

/* Calculateur de parrainage (accueil) */
.offre-calcul .cp-grille { display: grid; gap: 14px; margin-bottom: 18px; }
.cp-tete { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--texte-2, #b9b6ae); margin-bottom: 6px; }
.cp-val { font-weight: 700; color: var(--or, #ffd42a); font-family: var(--f-titre); font-size: 18px; }
.cp-champ input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--or-2, #ffb800) var(--fill, 50%), rgba(255,255,255,.12) var(--fill, 50%)); }
.cp-champ input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--or-2, #ffb800); box-shadow: 0 0 14px rgba(255,184,0,.6); }
.cp-champ input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--or-2, #ffb800); }
.cp-gros { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.cp-gros span { width: 100%; font-weight: 700; }
.cp-gros strong { font-family: var(--f-titre); font-size: 44px; line-height: 1; background: linear-gradient(100deg, var(--or), var(--cuivre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-gros small { font-size: 14px; opacity: .8; }
.cp-suivant { margin: 4px 0 14px; font-weight: 700; color: var(--or, #ffd42a); }
.cp-barres { display: grid; gap: 10px; }
.cp-ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; opacity: .6; transition: opacity .2s; }
.cp-ligne .offre-barre { grid-column: 1 / -1; order: 3; margin-top: 0; }
.cp-ligne strong { font-family: var(--f-titre); font-size: 18px; }
.cp-ligne.actif { opacity: 1; font-weight: 700; }
.cp-ligne.actif .offre-barre i { background: linear-gradient(90deg, var(--or-2), var(--cuivre)); box-shadow: 0 0 12px rgba(255,184,0,.5); }
.cp-ligne .offre-barre i { transition: width .25s; }
.cp-partage { margin: 16px 0 10px; font-weight: 700; }
.cp-cta { width: 100%; }

/* Surlignage de l'accroche : plein, doré comme le bouton */
.accroche strong .surligne { background: linear-gradient(180deg, #FFE55C, #FFC400) !important; color: #1B1400 !important; padding: 1px 6px; border-radius: 4px; box-shadow: 0 0 16px rgba(255,196,0,.45); }

/* Vidéos courtes */
.vd-resultat { display: grid; gap: 12px; margin-top: 16px; justify-items: start; }
.vd-resultat video { width: min(100%, 280px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.vd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-resultat .champ { width: 100%; }
.services-grille { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .services-grille { grid-template-columns: 1fr; } }
.vd-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-photo { position: relative; cursor: pointer; }
.vd-photo img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255,255,255,.15); display: block; }
.vd-photo input { position: absolute; top: 6px; left: 6px; z-index: 1; width: 20px; height: 20px; accent-color: #FFC400; }
.vd-photo input:checked + img { border-color: #FFC400; box-shadow: 0 0 14px rgba(255,196,0,.5); }
.vd-photo { display: grid; gap: 4px; justify-items: center; font-size: 12px; }
.vd-photos .ep-note { flex-basis: 100%; }

/* ===== Animations de la maquette : titres, entrée du haut de page, tampon, défilé, étapes, FAQ ===== */
.mot { transition: translate .3s var(--ease); }
.hero h1 .mot:hover { translate: 0 -8px; }
.hero h1 .mot.acc { animation: monte .85s var(--ease) both, brille 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .09s + .12s), 0s; }
.hero h1 .sous { animation: monte .8s var(--ease) both; animation-delay: calc(var(--i, 5) * .09s + .25s); }
.hero .surtitre, .hero .offre-ruban { animation: monte .8s var(--ease) both; }
.hero .accroche { animation: monte .8s var(--ease) .75s both; }
.hero .hero-actions { animation: monte .8s var(--ease) .9s both; }
.hero .hero-visuel { animation: monte 1s var(--ease) .35s both; }
h2 .acc { display: inline; }
@keyframes tourne { to { transform: rotate(360deg); } }
.tampon .t-rond { transform-origin: 150px 150px; animation: tourne 28s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-piste.piste-inv { animation-direction: reverse; animation-duration: 58s; }
.voyage { position: absolute; pointer-events: none; z-index: 1; }
.voyage.ligne { border-top: 2px dashed rgba(255,196,0,.4); height: 0; transform: translateY(-1px); }
.voyage.point { left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--or); box-shadow: 0 0 18px 4px rgba(255,196,0,.7); animation: voyage 5.5s ease-in-out infinite; }
@keyframes voyage { 0% { left: var(--x1); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: var(--x2); opacity: 0; } }
.etapes li::before { animation: allume 6s ease-in-out infinite; }
.etapes li:nth-child(2)::before { animation-delay: 2s; }
.etapes li:nth-child(3)::before { animation-delay: 4s; }
.etapes li { z-index: 1; }
@keyframes deplie { from { opacity: 0; translate: 0 -8px; } }
.faq details[open] > *:not(summary) { animation: deplie .45s var(--ease); }
@media (prefers-reduced-motion: reduce) { .tampon .t-rond, .voyage, .defile-piste.piste-inv { animation: none !important; } .defile-piste.piste-inv { display: none; } }

/* Survol des cartes (comme la maquette) : bordure dorée, photo qui s'agrandit doucement */
.persona { transition: border-color .25s ease, box-shadow .4s, translate .4s var(--ease), rotate .4s var(--ease); }
.persona .photo-persona, .persona img { transition: transform .5s ease, filter .4s ease; filter: saturate(.85) brightness(.92); }
.persona:hover, .persona.swing { border-color: rgba(255,184,0,.55) !important; }
.persona:hover .photo-persona, .persona:hover img, .persona.swing .photo-persona, .persona.swing img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.persona .cadre-photo { overflow: hidden; }

/* La punaise ne doit pas être coupée par le bord arrondi de la carte : on la pose dans l'image, comme sur la maquette */
.carte.note > .pin, .persona.note > .pin, .matiere.note > .pin { top: 12px; }

/* Balancement permanent plus visible (±1,3°) */
@keyframes sway { from { rotate: calc(var(--r, 0deg) - 1.3deg); } to { rotate: calc(var(--r, 0deg) + 1.3deg); } }

/* Bandeau des nouveaux ateliers du jour */
.bandeau-nouveaux { display: flex; align-items: center; gap: 0; background: linear-gradient(90deg, rgba(255,196,0,.16), rgba(255,196,0,.05)); border-bottom: 1px solid rgba(255,184,0,.35); overflow: hidden; position: relative; z-index: 2; }
.bandeau-nouveaux[hidden] { display: none; }
.bn-label { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: linear-gradient(180deg, #FFE55C, #FFC400); color: #1B1400; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bn-label .point-live { background: #c62828; }
.bn-fenetre { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.bn-piste { display: flex; width: max-content; animation: bn-defile var(--duree, 40s) linear infinite; }
.bn-fenetre:hover .bn-piste, .bn-fenetre:focus-within .bn-piste { animation-play-state: paused; }
.bn-lot { display: flex; flex: none; }
.bn-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 26px; color: var(--texte); text-decoration: none; white-space: nowrap; font-size: 15px; }
.bn-item::before { content: "★"; color: var(--or-2); margin-right: 2px; }
.bn-item strong { font-family: var(--f-titre); font-weight: 500; font-size: 20px; }
.bn-qui { color: var(--doux); }
.bn-quand { color: var(--or); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bn-item:hover strong { color: var(--or); }
@keyframes bn-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bn-piste { animation: none; overflow-x: auto; } }
@media (max-width: 640px) { .bn-label { padding: 10px 10px; font-size: 10px; } }

/* Kit de publication */
.vd-kit { width: 100%; margin-top: 8px; }
.vd-kit-titre { font-family: var(--f-titre); font-size: 26px; font-weight: 500; margin: 6px 0; }
.vd-reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vd-reseau { font-family: Inter, system-ui, sans-serif; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--trait-2, rgba(255,255,255,.2)); background: rgba(255,255,255,.05); color: var(--texte); font: 700 14px var(--f-main, inherit); cursor: pointer; }
.vd-reseau[aria-selected="true"] { background: linear-gradient(180deg, #FFE55C, #FFC400); color: #1B1400; border-color: transparent; }
.vd-panneau { display: grid; gap: 14px; }
.vd-bloc { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--trait, rgba(255,255,255,.12)); display: grid; gap: 8px; justify-items: start; }
.vd-bloc h4 { margin: 0; font-size: 15px; color: var(--or, #ffd42a); }
.vd-texte { width: 100%; padding: 10px; border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.5; background: rgba(0,0,0,.25); color: var(--texte); border: 1px solid var(--trait, rgba(255,255,255,.15)); resize: vertical; }
.vd-tags { margin: 0; color: var(--doux); word-break: break-word; }
.vd-etapes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.vd-panneau > a.bouton { justify-self: start; }

/* ===== Repos : rien ne bouge tant que la souris n'est pas dessus (sauf le tampon qui tourne et les deux bandeaux défilants) ===== */
.ruban, .ruban.b { animation: none; }
.hero::before, .section-prof::before { animation: none !important; }
.point-live, .badge.live i, .pt { animation: none !important; }
.portrait .yeux, .tuile-visio.parle::after, .tuile-visio.t2, .tuile-visio.t3, .puce-flottante, .places-barre .remplissage, .maquette-pied .prix { animation: none !important; }
.bulle { animation: none !important; opacity: 1 !important; transform: none !important; }
.note.idle:not(.swing):not(.retour) { animation: none; }
.btn-or::after, .bouton:not(.secondaire):not(.clair):not(.sombre):not(:disabled)::after { animation: none; }
.btn-or:hover::after, .bouton:not(.secondaire):not(.clair):not(.sombre):not(:disabled):hover::after { animation: eclat 1.1s ease-in-out 1; }
.numero, .etapes li::before { animation: none; }
.etapes li:hover::before, .numero:hover { animation: allume 1.6s ease-in-out 1; }
.voyage.point { animation: none; opacity: 0; }
.etapes:hover .voyage.point { animation: voyage 5.5s ease-in-out infinite; }
.hero h1 .mot.acc { animation: monte .85s var(--ease) both; animation-delay: calc(var(--i) * .09s + .12s); }
.acc { animation: none; background-position: 0 50%; transition: background-position 1.6s ease; }
.hero h1:hover .acc, h2:hover .acc, .acc:hover { background-position: 100% 50%; }

/* Questions fréquentes : titre plus discret */
#faq .titre-section, #faq h2 { font-size: clamp(26px, 3.2vw, 38px) !important; line-height: 1.1; }
#faq .titre-section, #faq h2 { font-size: clamp(20px, 2.2vw, 26px) !important; }

.photo-ongles { object-position: 55% 45% !important; }

.photo-maquillage { object-position: 50% 50% !important; }

/* Partage des vidéos avec Atelier en direct */
.vd-partage { width: 100%; margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(255,196,0,.06); border: 1px solid rgba(255,184,0,.3); display: grid; gap: 10px; justify-items: start; }
.badge-statut { padding: 3px 10px; border-radius: 999px; background: rgba(255,196,0,.14); color: var(--or, #ffd42a); font-size: 12px; font-weight: 800; }

/* ===== Tableau de bord « verre dépoli » : panneaux translucides flous, grands chiffres, lumière chaude derrière ===== */
body:has(#vueTableau:not([hidden])) {
  background: linear-gradient(180deg, rgba(12,8,6,.08), rgba(12,8,6,.22)), url(../photos/fond-salon.jpg?v=2) center / cover no-repeat, #1a1210 !important;
  background-attachment: fixed !important;
}
#vueTableau .carte, #vueTableau .porte-monnaie, #vueTableau .tuile, #vueTableau .ep-pack, #vueTableau .moyen, #vueTableau .tableau-recap {
  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.045) 55%, rgba(255,255,255,.08)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.2) !important; border-radius: 26px !important;
  box-shadow: 0 22px 54px -22px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.26), inset 0 -1px 0 rgba(255,255,255,.05) !important;
}
#vueTableau .porte-monnaie.gains { background: linear-gradient(145deg, rgba(255,196,0,.22), rgba(255,255,255,.05) 60%, rgba(255,160,40,.1)) !important; border-color: rgba(255,208,80,.38) !important; }
#vueTableau .porte-monnaie.credit { background: linear-gradient(145deg, rgba(100,130,255,.26), rgba(255,255,255,.05) 60%, rgba(110,90,255,.1)) !important; border-color: rgba(140,165,255,.38) !important; }
#vueTableau .solde, #vueTableau .tuile .valeur { font-family: var(--f-titre); font-weight: 600; font-size: clamp(34px, 4.2vw, 46px); letter-spacing: -.01em; color: #fff; line-height: 1.05; }
#vueTableau .etiquette { color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
#vueTableau .onglets { background: rgba(255,255,255,.07) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px; padding: 6px; gap: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
#vueTableau .onglet { border-radius: 999px; border-bottom: 0 !important; margin-bottom: 0; }
#vueTableau .onglet[aria-selected="true"] { background: rgba(255,255,255,.2) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px -8px rgba(0,0,0,.6); }
#vueTableau input, #vueTableau select, #vueTableau textarea { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 14px !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#vueTableau .operations > li, #vueTableau .ep-estim, #vueTableau .ep-recap { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px; }
#vueTableau h1 { font-weight: 600; }
#vueTableau .etiquette { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
#vueTableau .onglets { border-radius: 999px !important; }
#vueTableau .onglet { border-radius: 999px !important; }

/* Graphiques du tableau de bord */
.graphiques { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 18px; }
@media (max-width: 900px) { .graphiques { grid-template-columns: 1fr; } }
.graph .graph-sous { margin: 2px 0 10px; color: rgba(255,255,255,.55); font-size: 13px; }
.graph-svg { width: 100%; height: auto; display: block; }
.graph-grille { stroke: rgba(255,255,255,.1); stroke-width: 1; stroke-dasharray: 3 5; }
.graph-barre { transition: filter .2s; }
.graph-barre:hover { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255,196,0,.6)); }
.graph-barre.courant { filter: drop-shadow(0 0 6px rgba(255,196,0,.5)); }
.graph-mois { fill: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; }
.graph-total { margin: 8px 0 0; font-family: var(--f-titre); font-size: 28px; font-weight: 600; color: #fff; text-align: center; }
.graph-anneau { width: min(180px, 100%); margin: 0 auto; display: block; }
.graph-grand { fill: #fff; font-family: var(--f-titre); font-size: 34px; font-weight: 600; }
.graph-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.graph-liste li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.graph-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.85); }
.graph-fond { grid-column: 1 / -1; order: 3; height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.graph-fond i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFE55C, #FF9D1A); }
.graph-liste li:hover .graph-fond i { filter: brightness(1.2) drop-shadow(0 0 6px rgba(255,196,0,.6)); }

/* Pilotage de l'administration */
.pilotage { display: grid; gap: 18px; }
.pil-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pil-chip { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; color: rgba(255,255,255,.8); }
.pil-chip b { font-family: var(--f-titre); font-size: 18px; margin-right: 4px; color: #fff; }
.pil-chip.alerte { background: rgba(255,120,60,.18); border-color: rgba(255,150,90,.55); }
.pil-duo { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 900px) { .pil-duo { grid-template-columns: 1fr; } }
.graph-liste li strong { font-size: 13px; text-align: right; }

.pil-valeurs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.pil-valeurs li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 7px; }
.pil-valeurs strong { color: #fff; text-align: right; }

button.lien:disabled, button.lien[disabled] { color: rgba(255,255,255,.35) !important; text-decoration: none !important; border-bottom-color: transparent !important; cursor: not-allowed; opacity: .7; }

.pil-tab { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.pil-tab th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.2); }
.pil-tab td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }

.compta-saisie { display: grid; gap: 10px; }
.compta-lignes { display: grid; gap: 6px; }

/* Fenêtre de connexion : halo orangé et transition des champs (comme une carte qui bascule) */
dialog.fenetre .interieur { box-shadow: 0 0 0 1px rgba(255,150,40,.55), 0 0 70px -12px rgba(255,120,30,.5), 0 30px 80px -30px rgba(0,0,0,.8); }
@keyframes entreeAcces { from { opacity: 0; transform: translateX(70px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
#formConnexion.anim-acces > *:not([hidden]) { animation: entreeAcces .7s var(--ease, ease) both; animation-delay: calc(var(--li, 0) * .08s + .05s); }

/* Questions fréquentes : très discrètes */
#faq { padding-block: 28px !important; }
#faq .faq-groupes { gap: 24px 40px; }
#faq .faq-groupe h3 { font-size: 11px !important; letter-spacing: .12em; opacity: .7; margin-bottom: 4px; }
#faq details { background: transparent !important; border-radius: 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; }
#faq details[open] { background: transparent !important; border-color: rgba(255,184,0,.25) !important; }
#faq summary { font-size: 13.5px !important; font-weight: 400 !important; padding: 9px 22px 9px 0 !important; color: rgba(255,255,255,.72) !important; }
#faq summary::after { font-size: 16px !important; }
#faq details p { font-size: 12.5px !important; line-height: 1.5; padding: 0 0 10px !important; color: rgba(255,255,255,.55) !important; max-width: 52ch; }

/* Fond de salon : version portrait sur mobile (couche fixe, pièce entière visible) */
@media (max-width: 700px) {
  body:has(#vueTableau:not([hidden])) { background: transparent !important; }
  html:has(#vueTableau:not([hidden])) { background: #3b261a !important; }
  body:has(#vueTableau:not([hidden]))::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(12,8,6,.03), rgba(12,8,6,.15)), url(../photos/fond-salon-mobile.jpg?v=2) center / cover no-repeat; }
}

/* ===== Popup flottant « Ma première vente » avec barre de progression ===== */
#blocParcours.parcours-flottant:not([hidden]) { position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); max-height: 72vh; overflow: auto; margin: 0 !important; padding: 0 !important;
  background: rgba(20,14,10,.84) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,212,42,.5) !important; box-shadow: 0 18px 50px -10px rgba(0,0,0,.75) !important; }
.parcours-tete { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: none; border: 0; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.parcours-titre { flex: 1; font-size: 14px; font-weight: 800; line-height: 1.25; }
.parcours-compte { color: #ffd42a; font-weight: 800; font-size: 14px; }
.parcours-fleche { color: #ffd42a; font-size: 14px; }
.parcours-barre { height: 5px; background: rgba(255,255,255,.18); }
.parcours-barre span { display: block; height: 100%; background: linear-gradient(90deg, #FFE55C, #FF9D1A); transition: width .4s; }
.parcours-detail { padding: 6px 14px 14px; max-height: 52vh; overflow: auto; }
.parcours-detail[hidden] { display: none; }
.parcours-detail .sous-texte { font-size: 12.5px; margin: 6px 0 8px; color: rgba(255,255,255,.8) !important; }
#blocParcours .parcours li { font-size: 14px; line-height: 1.35; }

/* ===== Mobile : textes lisibles sur la photo, filtres sur une seule ligne ===== */
@media (max-width: 700px) {
  #blocParcours.parcours-flottant:not([hidden]) { left: 10px; right: 76px; width: auto; bottom: 74px; }
  body #vueTableau .carte, body #vueTableau .porte-monnaie, body #vueTableau .tuile, body #vueTableau .tableau-recap { background: rgba(18,12,9,.66) !important; }
  body #vueTableau p, body #vueTableau .sous-texte, body #vueTableau .etiquette, body #vueTableau li { color: rgba(255,255,255,.92) !important; }
  body #vueTableau h1, body #vueTableau h2, body #vueTableau h3 { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
  body #vueTableau h1 + p { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
  #chipsDomaines, #chipsDomainesProfs, #filtresSpecialites { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #chipsDomaines::-webkit-scrollbar, #chipsDomainesProfs::-webkit-scrollbar, #filtresSpecialites::-webkit-scrollbar { display: none; }
  #chipsDomaines > *, #chipsDomainesProfs > *, #filtresSpecialites > * { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px !important; font-size: 14px !important; min-height: 0 !important; }
}

/* ===== Tableaux de bord : chaque catégorie est un bandeau ; les outils s'affichent dans un popup au survol (ordinateur) ou au toucher (mobile) ===== */
body #vueTableau .hub-grille { display: flex !important; flex-wrap: wrap; gap: 12px !important; align-items: flex-start; position: relative; }
body #vueTableau .hub-grille .hub-categorie { position: relative; flex: 1 1 280px; min-width: 0; margin: 0 !important; }
body #vueTableau .hub-categorie .titre-categorie { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 14px 16px !important; font-size: 18px !important; cursor: pointer; background: rgba(20,14,10,.6) !important; border: 1px solid rgba(255,212,42,.5) !important; user-select: none; }
body #vueTableau .hub-categorie .titre-categorie::after { content: "▾"; margin-left: auto; color: #ffd42a; font-size: 16px; }
body #vueTableau .hub-categorie.ouvert .titre-categorie::after { content: "▴"; }
body #vueTableau .hub-grille .hub-tuiles { display: none !important; position: absolute; left: 0; top: 100%; z-index: 50; width: min(700px, calc(100vw - 24px)); padding: 12px; gap: 10px;
  background: rgba(20,14,10,.94) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px) !important; border: 1px solid rgba(255,212,42,.5); border-top: 0; box-shadow: 0 24px 60px -12px rgba(0,0,0,.8); grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body #vueTableau .hub-grille .hub-categorie:nth-child(even) .hub-tuiles { left: auto; right: 0; }
body #vueTableau .hub-categorie.ouvert .hub-tuiles { display: grid !important; }
@media (hover: hover) and (min-width: 701px) { body #vueTableau .hub-categorie:hover .hub-tuiles { display: grid !important; } }
@media (max-width: 700px) {
  body #vueTableau .hub-grille .hub-categorie { flex: 1 1 100%; }
  body #vueTableau .hub-grille .hub-tuiles { position: static; width: auto; grid-template-columns: minmax(0, 1fr) !important; border-top: 1px solid rgba(255,212,42,.3); }
}

/* Parrainage : paliers sur une seule ligne, discrets, sous le bouton d'invitation */
.paliers.paliers-discrets { display: flex !important; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; padding: 0; background: none; border: 0; }
.paliers-discrets .palier { display: inline-flex !important; align-items: baseline; gap: 5px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; text-align: left; }
.paliers-discrets .palier .grand { font-size: 13px !important; font-weight: 800; color: rgba(255,255,255,.75); font-family: inherit; line-height: 1.3; }
.paliers-discrets .palier .petit { font-size: 12.5px !important; color: rgba(255,255,255,.55); }
.paliers-discrets .palier.courant .grand, .paliers-discrets .palier.courant .petit { color: #ffd42a; }
.paliers-discrets .palier:not(:last-child)::after { content: "·"; margin-left: 12px; color: rgba(255,255,255,.35); }
@media (max-width: 700px) { .paliers-discrets .palier:not(:last-child)::after { display: none; } }

/* Bouton « œil » du mot de passe */
.mdp-enveloppe { position: relative; display: block; }
.mdp-enveloppe > input { padding-right: 48px !important; width: 100%; }
.mdp-oeil { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer; padding: 0; }
.mdp-oeil:hover, .mdp-oeil:focus-visible { color: #ffd42a; }
body #vueTableau .hub-grille[hidden], body #vueTableau .hub-categorie[hidden] { display: none !important; }
body #vueTableau .hub-grille.hub-cache, body #vueTableau .hub-categorie.hub-cache { display: none !important; }

/* Mobile : sur « Les ateliers » et « Les animateurs », on va droit au catalogue (pas de blocs paiements / offre en tête) */
@media (max-width: 700px) {
  body:has(#panneau-catalogue:not([hidden])) #carteGains, body:has(#panneau-catalogue:not([hidden])) #offreLancementPerso, body:has(#panneau-catalogue:not([hidden])) #bandeauOffre,
  body:has(#panneau-profs:not([hidden])) #carteGains, body:has(#panneau-profs:not([hidden])) #offreLancementPerso, body:has(#panneau-profs:not([hidden])) #bandeauOffre { display: none !important; }
}

/* Bouton d'aide : plus petit, discret, collé au bord pour ne rien recouvrir */
@media (max-width: 700px) {
  body .g-bouton { width: 38px !important; height: 38px !important; right: 6px !important; bottom: 78px !important; opacity: .55; box-shadow: 0 2px 8px rgba(0,0,0,.35) !important; transition: opacity .2s; }
  body .g-bouton::after { font-size: 18px !important; }
  body .g-bouton:hover, body .g-bouton:focus, body .g-bouton:active { opacity: 1; }
}

/* Filtres du catalogue : plus compacts */
body #filtresCatalogue .puce { min-height: 30px !important; padding: 3px 11px !important; font-size: 12.5px !important; line-height: 1.2; }
body #filtresCatalogue { gap: 6px !important; }
body #filtresCatalogue .ligne-filtres { gap: 6px !important; }
body #filtresCatalogue .ligne-filtres input, body #filtresCatalogue .ligne-filtres select { min-height: 34px !important; height: 34px !important; padding: 0 10px !important; font-size: 13px !important; }
body #filtresCatalogue > div:first-child, body #filtresCatalogue .puces { gap: 6px !important; }
body #chipsDomaines { gap: 6px !important; margin: 0 0 6px !important; }

@media (max-width: 700px) {
  body #blocParcours.parcours-flottant:not([hidden]) { width: calc(100vw - 72px) !important; left: 10px !important; }
}

body:has(#vueTableau:not([hidden])) { min-height: 100vh; min-height: 100dvh; }

/* « Vos paiements » : visible seulement dans le tableau de bord de l'animateur */
body:not(:has(#panneau-createur:not([hidden]))) #carteGains { display: none !important; }

/* Lisibilité sur la photo éclaircie : cartes un peu plus sombres */
body #vueTableau .carte, body #vueTableau .porte-monnaie, body #vueTableau .offre-perso, body #vueTableau .hub-categorie .titre-categorie { background: rgba(18,12,9,.62) !important; }
body #vueTableau .porte-monnaie p, body #vueTableau .porte-monnaie .etiquette { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Lisibilité sur la photo éclaircie : en-tête, onglets, textes secondaires */
body #vueTableau #salutation, body #vueTableau #bienvenue { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }
body #vueTableau #bienvenue { font-size: 15px; }
body #vueTableau nav.onglets { background: rgba(18,12,9,.68) !important; }
body #vueTableau nav.onglets .onglet[aria-selected="false"] { color: #f1ece4 !important; }
body #vueTableau .sous-texte, body #vueTableau .etiquette, body #vueTableau .aide-champ, body #vueTableau small, body #vueTableau .muted, body #vueTableau .statut { color: #ece6dc !important; }
body #filtresCatalogue .puce, body #filtresCatalogue input, body #filtresCatalogue select { background: rgba(18,12,9,.62) !important; color: #fff !important; }
body #filtresCatalogue input::placeholder { color: #d9d2c6 !important; opacity: 1; }

body #panneau-catalogue .titre-categorie, body #panneau-profs .titre-categorie { background: rgba(18,12,9,.62) !important; padding: 5px 10px !important; border-radius: 8px; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

@media (max-width: 700px) {
  body:has(#vueTableau:not([hidden]))::after { background: url(../photos/fond-salon-mobile.jpg?v=2) center / cover no-repeat !important; filter: brightness(1.6) contrast(.95) saturate(1.05); }
  html:has(#vueTableau:not([hidden])) { background: #7a6354 !important; }
}

body #carteGains { background: rgba(18,12,9,.72) !important; }
body #carteGains .bouton, body #carteGains button { background: rgba(0,0,0,.45) !important; color: #fff !important; border-color: rgba(255,255,255,.55) !important; }

/* Champs de saisie du tableau de bord : fond sombre, texte et exemples bien lisibles */
body #vueTableau input:not([type=checkbox]):not([type=radio]):not([type=file]), body #vueTableau select, body #vueTableau textarea { background: rgba(14,9,7,.72) !important; color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
body #vueTableau input::placeholder, body #vueTableau textarea::placeholder { color: #d9d2c6 !important; opacity: 1 !important; }
body #vueTableau label, body #vueTableau .champ > span, body #vueTableau legend { color: #f4efe7 !important; }
body #vueTableau .carte, body #vueTableau section.carte, body #vueTableau form.carte { background: rgba(18,12,9,.72) !important; }

/* Barre de titre des sous-écrans : fond sombre pour rester lisible sur la photo */
body #vueTableau .hub-retour { background: rgba(18,12,9,.72) !important; border-radius: 10px; padding: 6px 8px; }
body #vueTableau .hub-titre-fonction { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Bandeaux d'information et messages « vide » : fond sombre pour rester lisibles sur la photo */
body #panneau-catalogue .bandeau-vue, body #panneau-profs .bandeau-vue { background: rgba(18,12,9,.78) !important; border-radius: 10px; }
body #panneau-catalogue p.vide, body #panneau-profs p.vide, body #vueTableau p.vide { background: rgba(18,12,9,.72); padding: 10px 14px; border-radius: 10px; color: #fff !important; }

/* Annuaire des animateurs et puces : fond sombre pour rester lisible sur la photo */
body #vueTableau .puce { background: rgba(18,12,9,.72) !important; color: #fff !important; }
body #vueTableau .puce[aria-pressed="true"], body #vueTableau .puce[aria-checked="true"], body #vueTableau .puce.actif { background: rgba(60,45,10,.85) !important; color: #FFD42A !important; }
body #panneau-profs > h2, body #panneau-profs > p, body #panneau-profs > label, body #panneau-profs > div > label, body #panneau-catalogue > h2, body #panneau-catalogue > p { background: rgba(18,12,9,.72); color: #fff !important; padding: 6px 10px; border-radius: 8px; text-shadow: none; }

/* Croix de fermeture du popup de catégorie (ordinateur) */
.hub-fermer { display: none; }
@media (hover:hover) and (min-width:701px) {
  body #vueTableau .hub-categorie { position: relative; }
  body #vueTableau .hub-categorie:hover .hub-fermer, body #vueTableau .hub-categorie.ouvert .hub-fermer { display: grid; place-items: center; position: absolute; top: 4px; right: 34px; z-index: 90; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
  body #vueTableau .hub-categorie.force-ferme .hub-tuiles, body #vueTableau .hub-categorie.force-ferme:hover .hub-tuiles { display: none !important; }
  body #vueTableau .hub-categorie.force-ferme .hub-fermer, body #vueTableau .hub-categorie.force-ferme:hover .hub-fermer { display: none !important; }
}

/* Filtres des animateurs en fenêtre déroulante */
.filtre-pop { position: relative; margin: 8px 0 14px; }
.filtre-pop-bouton::after { content: " \25BE"; }
.filtre-pop-panneau { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 18px 16px 12px; border-radius: 14px; background: rgba(18,12,9,.96); border: 1px solid rgba(255,212,42,.45); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.filtre-pop-panneau[hidden] { display: none; }
.filtre-pop-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
body #panneau-profs .filtre-pop-panneau > .champ, body #panneau-profs .filtre-pop-panneau label { background: transparent !important; padding: 0 !important; }

.filtre-pop-panneau .montants { flex-wrap: wrap !important; overflow: visible !important; margin-top: 26px !important; }
.filtre-pop-panneau .ligne-filtres { grid-template-columns: 1fr 1fr !important; }
.filtre-pop-panneau .ligne-filtres input { grid-column: 1 / -1; }
body #vueTableau .filtre-pop-panneau .montants, body #vueTableau .filtre-pop-panneau #chipsDomaines, body #vueTableau .filtre-pop-panneau #chipsDomainesProfs, body #vueTableau .filtre-pop-panneau #filtresSpecialites { flex-wrap: wrap !important; overflow: visible !important; display: flex !important; }
body #vueTableau .filtre-pop-panneau #chipsSousCategories[hidden] { display: none !important; }
#chipsSousCategories { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.25); }
.titre-categorie.sous { font-size: .92em; opacity: .95; }

/* Tableau de bord animateur : chiffres et catégories d'abord, paiements et offre de lancement en dessous */
body #panneau-createur:not([hidden]) { display: flex; flex-direction: column; }
body #panneau-createur > .grille { order: 1; }
body #panneau-createur > #carteGains { order: 2; margin-top: 14px; }
body #panneau-createur > #offreLancementPerso { order: 3; margin-top: 10px; }
body #panneau-createur > *:not(.grille):not(#carteGains):not(#offreLancementPerso) { order: 4; }
@media (max-width: 700px) { body:has(#blocParcours.parcours-flottant:not([hidden])) { padding-bottom: 150px; } }

/* Popups de catégories : tuiles compactes, pour tout voir sans défiler */
@media (min-width: 701px) {
  body #vueTableau .hub-grille .hub-tuiles { padding: 8px; gap: 8px; }
  body #vueTableau .hub-tuiles .hub-tuile { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; min-height: 0 !important; padding: 8px 12px; border-radius: 12px; }
  body #vueTableau .hub-tuiles .hub-tuile .hub-icone { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; border-radius: 10px; }
  body #vueTableau .hub-tuiles .hub-tuile .hub-icone svg { width: 21px; height: 21px; }
  body #vueTableau .hub-tuiles .hub-tuile .hub-nom { font-size: 15px; align-self: end; }
  body #vueTableau .hub-tuiles .hub-tuile .hub-texte { font-size: 12.5px; align-self: start; }
  body #vueTableau .hub-tuiles .hub-tuile:hover { transform: none; }
  body #vueTableau .hub-grille .hub-categorie.vers-haut .hub-tuiles { top: auto; bottom: 100%; }
  body #vueTableau .hub-categorie.vers-haut:hover .hub-fermer, body #vueTableau .hub-categorie.vers-haut.ouvert .hub-fermer { top: 4px; }
}

/* Catalogue : catégories en liste repliée, ateliers dans un popup */
body #catalogue .titre-categorie.cat-ouvrir{cursor:pointer;margin:6px 0 0!important;padding:12px 14px!important;border:1px solid rgba(255,212,42,.45)!important;border-radius:10px!important;font-size:17px!important}
body #catalogue .titre-categorie.cat-ouvrir::after{content:"▸";margin-left:auto;color:#ffd42a}
body #catalogue .titre-categorie.cat-ouvrir:hover{background:rgba(40,28,18,.8)!important}
body #catalogue .cat-groupe{display:none}
body #catalogue .cat-groupe.ouvert{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-content:start;position:fixed;z-index:300;top:6vh;bottom:6vh;left:50%;transform:translateX(-50%);width:min(1000px,calc(100vw - 20px));overflow:auto;padding:0 14px 14px;background:rgba(18,12,9,.97);border:1px solid rgba(255,212,42,.6);border-radius:12px;box-shadow:0 0 0 100vmax rgba(0,0,0,.55)}
body #catalogue .cat-entete{grid-column:1/-1;position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 0;background:rgba(18,12,9,.99);border-bottom:2px solid rgba(255,212,42,.55);color:#ffd42a;font-weight:800;font-size:18px}
body #catalogue .cat-fermer{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,212,42,.6);background:rgba(0,0,0,.4);color:#ffd42a;font-size:22px;line-height:1;cursor:pointer}
@media (max-width:700px){body #catalogue .cat-groupe.ouvert{grid-template-columns:1fr;top:3vh;bottom:3vh;padding:0 8px 10px}}

/* Boutons de filtre : fond sombre opaque pour rester lisibles sur la photo claire */
body .filtre-pop-bouton{background:rgba(18,12,9,.82)!important;border:1px solid rgba(255,212,42,.5)!important;color:#f5f3ee!important;text-shadow:none!important}

/* Liste des catégories du catalogue sur deux colonnes (ordinateur) */
@media (min-width:701px){body #catalogue:has(.cat-ouvrir){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
body #catalogue .titre-categorie.cat-ouvrir{grid-column:auto!important;margin:0!important}}
@media (min-width:1000px){body #catalogue:has(.cat-ouvrir){grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Annuaire des animateurs : même présentation */

body #annuaire .titre-categorie.cat-ouvrir{cursor:pointer;margin:6px 0 0!important;padding:12px 14px!important;border:1px solid rgba(255,212,42,.45)!important;border-radius:10px!important;font-size:17px!important}
body #annuaire .titre-categorie.cat-ouvrir::after{content:"▸";margin-left:auto;color:#ffd42a}
body #annuaire .titre-categorie.cat-ouvrir:hover{background:rgba(40,28,18,.8)!important}
body #annuaire .cat-groupe{display:none}
body #annuaire .cat-groupe.ouvert{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-content:start;position:fixed;z-index:300;top:6vh;bottom:6vh;left:50%;transform:translateX(-50%);width:min(1000px,calc(100vw - 20px));overflow:auto;padding:0 14px 14px;background:rgba(18,12,9,.97);border:1px solid rgba(255,212,42,.6);border-radius:12px;box-shadow:0 0 0 100vmax rgba(0,0,0,.55)}
body #annuaire .cat-entete{grid-column:1/-1;position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 0;background:rgba(18,12,9,.99);border-bottom:2px solid rgba(255,212,42,.55);color:#ffd42a;font-weight:800;font-size:18px}
body #annuaire .cat-fermer{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,212,42,.6);background:rgba(0,0,0,.4);color:#ffd42a;font-size:22px;line-height:1;cursor:pointer}
@media (max-width:700px){body #annuaire .cat-groupe.ouvert{grid-template-columns:1fr;top:3vh;bottom:3vh;padding:0 8px 10px}}



@media (min-width:701px){body #annuaire:has(.cat-ouvrir){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
body #annuaire .titre-categorie.cat-ouvrir{grid-column:auto!important;margin:0!important}}
@media (min-width:1000px){body #annuaire:has(.cat-ouvrir){grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Popups de catégorie plus petits : ajustés au contenu */
body #catalogue .cat-groupe.ouvert, body #annuaire .cat-groupe.ouvert{top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(780px,calc(100vw - 20px))!important;height:auto;max-height:78vh}
@media (max-width:700px){body #catalogue .cat-groupe.ouvert, body #annuaire .cat-groupe.ouvert{max-height:88vh}}
body #catalogue .cat-groupe.ouvert, body #annuaire .cat-groupe.ouvert{width:min(680px,calc(100vw - 20px))!important;max-height:70vh}
/* Ouverture au survol : popup collé au titre, sans voile ni centrage */
body #catalogue .cat-groupe.ouvert.survol, body #annuaire .cat-groupe.ouvert.survol{transform:none!important;box-shadow:0 10px 30px rgba(0,0,0,.6)!important;height:auto}
/* Miniature d'une ligne dans un popup de catégorie : sort du popup (position fixe, placée par le script) */
body .cat-groupe.survol .apercu-atelier{position:fixed!important;margin:0!important;z-index:400!important;padding:0!important}

/* Liens dans les cases a cocher : pas de hauteur tactile forcee (decalait le texte) */
label.case a{min-height:0!important;display:inline!important}

/* Mention Demo : petit, rouge, sur les faux comptes, ateliers et animateurs */
.etiquette-demo{display:inline-block!important;color:#ff4d4d!important;font-size:10px!important;font-weight:800!important;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;margin:0 6px 4px 0;padding:1px 5px;border:1px solid #ff4d4d;border-radius:4px;background:transparent!important;vertical-align:middle}
.ligne-atelier .etiquette-demo{margin:0;flex:none}

/* Messages de statut lisibles meme sur une photo claire */
body .statut{-webkit-backdrop-filter:blur(8px) brightness(.45);backdrop-filter:blur(8px) brightness(.45)}
/* Statuts : fond sombre opaque + teinte, lisibles sur n'importe quelle photo */
body .statut{background-color:#101015!important;background-image:linear-gradient(var(--alerte-fond),var(--alerte-fond))!important}
body .statut.erreur{background-image:linear-gradient(var(--erreur-fond),var(--erreur-fond))!important}
body .statut.ok,body .statut.succes{background-image:linear-gradient(var(--succes-fond),var(--succes-fond))!important}
/* Video courte : apercu instantane et idees de phrases */
.vd-apercu{margin:4px 0 14px}
.vd-apercu-bande{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;-webkit-overflow-scrolling:touch}
.vd-apercu-bande img{flex:none;width:90px;height:160px;border-radius:10px;border:1px solid var(--trait,rgba(255,255,255,.2));object-fit:cover;background:#111}
.vd-idees{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.vd-idee{font:inherit;font-size:13px;line-height:1.3;text-align:left;padding:6px 10px;min-height:32px;border-radius:999px;border:1px solid var(--trait,rgba(255,255,255,.25));background:rgba(0,0,0,.45);color:inherit;cursor:pointer}
.vd-idee:hover,.vd-idee:focus-visible{border-color:#ffc400;color:#ffe55c}
/* Video courte : pastilles de couleur cliquables */
.vd-couleurs{display:flex;gap:12px;align-items:center;padding:4px 0}
.vd-couleur{width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.35);cursor:pointer;padding:0;min-height:44px;transition:transform .15s,border-color .15s}
.vd-couleur:hover{transform:scale(1.08)}
.vd-couleur.actif{border-color:#fff;box-shadow:0 0 0 3px rgba(0,0,0,.6),0 0 0 5px #fff}
.vd-couleur:focus-visible{outline:2px solid #fff;outline-offset:3px}
.vd-couleur{border-radius:50%!important}
body .vd-couleurs .vd-couleur{border-radius:50%!important}
html body .vd-couleurs .vd-couleur:not(#_a):not(#_b):not(#_c):not(#_d){border-radius:50%!important}
/* Video courte : formulaire compact, tout visible sans defiler (2 colonnes sur grand ecran) */
body #blocVideos .vd-deux{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px 24px;align-items:start}
body #blocVideos .vd-ligne2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body #blocVideos .vd-intro{font-size:12.5px;line-height:1.35}
body #blocVideos .champ{margin-bottom:8px}
body #blocVideos .champ label,body #blocVideos .etiquette{font-size:12.5px;margin:0 0 3px;letter-spacing:.02em}
body #blocVideos input[type=text],body #blocVideos input[type=url],body #blocVideos select{min-height:36px;height:36px;padding:4px 10px;font-size:14.5px}
body #blocVideos .grille-form{gap:10px}
body #blocVideos .vd-couleurs{gap:8px;padding:0}
body #blocVideos .vd-couleur{width:32px;height:32px;min-height:32px}
body #blocVideos .vd-idees{margin:-2px 0 8px;gap:5px}
body #blocVideos .vd-idee{font-size:12px;padding:3px 9px;min-height:26px}
body #blocVideos #vdPhotos .ep-note{font-size:12px;margin:0;line-height:1.3}
body #blocVideos #vdPhotos .vd-photo img{height:60px;width:auto}
body #blocVideos #vdFonds{display:flex;flex-wrap:wrap;gap:6px;max-height:190px;overflow-y:auto}
body #blocVideos #vdFonds .vd-photo{width:54px;height:80px;flex:none}
body #blocVideos #vdFonds .vd-photo img{width:54px;height:80px;object-fit:cover}
body #blocVideos .vd-apercu{margin:6px 0 0}
body #blocVideos .vd-apercu-bande{gap:6px;padding:2px 0}
body #blocVideos .vd-apercu-bande img{width:58px;height:103px}
body #blocVideos #vdFondsPlus{font-size:12.5px;margin-top:4px;min-height:0}
body #blocVideos .vd-bas{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:6px}
body #blocVideos .vd-bas .case{margin:0}
body #blocVideos .vd-bas .bouton{margin:0}
@media (max-width:900px){body #blocVideos .vd-deux{grid-template-columns:1fr}}
@media (max-width:600px){body #blocVideos .vd-ligne2{grid-template-columns:1fr}}
body #blocVideos .vd-idees{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center}
body #blocVideos .vd-idees .vd-idee{display:inline-block!important;width:auto!important;flex:0 1 auto;max-width:100%}
body #blocVideos #vdLibre .sous-texte{font-size:12px;margin:0 0 6px!important;line-height:1.3}
body #blocVideos #vdLibre .grille-form{grid-template-columns:repeat(2,minmax(0,1fr))}
html body #blocVideos .vd-idees .vd-idee:not(#_a):not(#_b):not(#_c):not(#_d){display:inline-block!important;width:auto!important;white-space:nowrap;font-size:11.5px;padding:2px 8px;min-height:24px;height:auto}
@media (max-width:700px){
  body #blocVideos input[type=text],body #blocVideos input[type=url],body #blocVideos select{font-size:16px;height:44px;min-height:44px}
  html body #blocVideos .vd-idees .vd-idee:not(#_a):not(#_b):not(#_c):not(#_d){min-height:34px;font-size:12.5px;white-space:normal}
  body #blocVideos #vdFondsPlus{min-height:34px;font-size:14px}
}
