/* Casino Boussole : thème sombre technique, bleu nuit, accents orange et violet, grille fine, chiffres en chasse fixe */
:root {
  --fond: #050913; --fond-2: #08101f; --panneau: #0c1428; --panneau-2: #111c36; --creux: #070d1b;
  --trait: rgba(122, 142, 204, .17); --trait-2: rgba(122, 142, 204, .32);
  --texte: #e4e9f6; --doux: #a4afcc; --pale: #7884a6;
  --orange: #f7931a; --orange-2: #ffb24d; --orange-f: rgba(247, 147, 26, .12);
  --violet: #9b7bff; --violet-2: #7a5cff; --violet-f: rgba(155, 123, 255, .12);
  --vert: #3ddc97; --rouge: #ff6f7d;
  --sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px; --r2: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--texte); font: 400 17px/1.68 var(--sans); background-color: var(--fond);
  background-image: linear-gradient(rgba(122, 142, 204, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 142, 204, .055) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #ffd08f; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 700; color: #fff; }
small { font-size: .82em; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #1a0d00; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.evitement:focus { left: 8px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(5, 9, 19, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); }
.entete.colle { background: rgba(5, 9, 19, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.entete-barre { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--doux); text-decoration: none; font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-radius: 4px; }
.nav a:hover { color: #fff; background: var(--panneau-2); }
.etat { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .72rem; color: var(--pale); white-space: nowrap; }
.etat b { display: grid; place-items: center; height: 28px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--orange); color: var(--orange); font: 700 .74rem var(--mono); }

/* Haut de page */
.haut { padding: 50px 0 30px; position: relative; overflow: hidden; }
.haut::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 760px; height: 620px; background: radial-gradient(closest-side, rgba(247, 147, 26, .16), transparent); pointer-events: none; }
.haut::after { content: ""; position: absolute; inset: auto auto -40% -10%; width: 720px; height: 560px; background: radial-gradient(closest-side, rgba(122, 92, 255, .16), transparent); pointer-events: none; }
.haut .wrap { position: relative; z-index: 1; }
.haut-grille { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr); gap: 46px; align-items: center; }
.surligne { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .78rem; font-weight: 600; }
.surligne span { padding: 4px 10px; border-radius: 4px; border: 1px solid var(--trait-2); background: var(--fond-2); color: var(--doux); }
.surligne .pt { color: var(--orange); border-color: rgba(247, 147, 26, .5); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--orange); }
.intro { font-size: 1.06rem; color: var(--doux); max-width: 64ch; margin: 0; }
.console { background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--trait-2); border-radius: var(--r); box-shadow: 0 22px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; }
.console-tete { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--trait); background: var(--creux); }
.console-tete span { width: 9px; height: 9px; border-radius: 50%; background: #2a3657; }
.console-tete span:first-child { background: var(--orange); } .console-tete span:nth-child(2) { background: var(--violet); }
.console-tete b { margin-left: auto; font: 400 .72rem var(--mono); color: var(--pale); }
.console-logo { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px 6px; }
.console dl { margin: 0; padding: 6px 18px 4px; font-family: var(--mono); font-size: .8rem; }
.console dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--trait); }
.console dl div:last-child { border-bottom: 0; }
.console dt { color: var(--pale); text-transform: uppercase; letter-spacing: .04em; }
.console dt::before { content: "> "; color: var(--orange); }
.console dd { margin: 0; text-align: right; color: #fff; }
.console-pied { margin: 0; padding: 10px 18px; border-top: 1px solid var(--trait); font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--orange); background: var(--orange-f); }
.reperes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 38px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.reperes div { background: var(--panneau); padding: 16px 18px; }
.reperes b { display: block; font: 700 1.75rem/1.1 var(--mono); color: var(--orange); letter-spacing: -.03em; }
.reperes div:nth-child(even) b { color: var(--violet); }
.reperes span { display: block; font-weight: 700; color: #fff; font-size: .9rem; margin: 6px 0 2px; }
.reperes small { color: var(--pale); font-size: .78rem; line-height: 1.4; display: block; }

/* Sections */
.sec { padding: 54px 0 6px; }
.sec > h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px; max-width: 34ch; }
.sec > h2::before { content: "// " attr(data-n); display: block; margin-bottom: 10px; font: 700 .76rem var(--mono); letter-spacing: .1em; color: var(--orange); }
.lead { font-size: 1.05rem; color: var(--doux); max-width: 80ch; }
.mention { font-size: .82rem; color: var(--pale); border-left: 2px solid var(--violet); padding-left: 12px; }
.sec h3 { font-size: 1.22rem; font-weight: 700; margin: 1.7em 0 .6em; color: #fff; }
.sec h4 { font-size: 1.02rem; font-weight: 700; margin: 1.5em 0 .5em; color: var(--orange-2); }
.sec > p, .sec > h3 { max-width: 82ch; }
.provisoire { background: rgba(255, 178, 77, .08); border: 1px dashed var(--orange-2); border-radius: var(--r2); padding: 14px 18px; color: var(--orange-2); font-family: var(--mono); font-size: .88rem; }

/* Boutons, pastilles, jauges, badges, moyens */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 .92rem var(--sans); text-decoration: none; padding: 12px 20px; border-radius: 6px; border: 0; cursor: pointer; text-align: center; transition: transform .15s, background .15s; }
.bt-go { background: var(--orange); color: #1b0e00; box-shadow: 0 0 0 1px rgba(247, 147, 26, .4), 0 8px 22px rgba(247, 147, 26, .22); }
.bt-go:hover { color: #1b0e00; background: var(--orange-2); transform: translateY(-1px); }
.bt-go::after { content: "\2197"; font-family: var(--mono); font-weight: 700; }
.bt-petit { padding: 8px 13px; font-size: .82rem; }
.bt-ligne { border: 1px solid var(--trait-2); color: #fff; background: var(--panneau); }
.bt-ligne:hover { color: var(--orange-2); border-color: var(--orange); }
.lien-avis { font-size: .84rem; font-weight: 700; color: var(--doux); text-decoration: underline; text-decoration-color: var(--trait-2); white-space: nowrap; }
.lien-avis:hover { color: var(--orange-2); }
.pastille { display: grid; place-items: center; width: 140px; height: 76px; border-radius: 8px; padding: 12px 14px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .12); }
.pastille img { width: 100%; height: 100%; object-fit: contain; }
.pastille.moyen { width: 104px; height: 56px; padding: 8px 11px; border-radius: 6px; }
.pastille.mini { width: 70px; height: 38px; padding: 5px 8px; border-radius: 5px; }
.p-bleu { background: #2f67dc; } .p-violet { background: #2a0f5a; } .p-nuit { background: #1b1547; } .p-clair { background: #e9edfb; }
.p-marine { background: #0f2747; } .p-noir { background: #07080a; } .p-blanc { background: #fff; }
.jauge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.jauge p { margin: 0; }
.jv { font-family: var(--mono); line-height: 1; }
.jv b { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.04em; }
.jv small { font-size: .8rem; color: var(--pale); margin-left: 2px; }
.js { display: flex; gap: 3px; }
.js i { display: block; width: 16px; height: 6px; border-radius: 1px; background: linear-gradient(90deg, var(--orange) var(--r), rgba(122, 142, 204, .22) var(--r)); }
.jauge.petit .jv b { font-size: 1.35rem; } .jauge.petit .js i { width: 11px; height: 5px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font: 700 .74rem var(--mono); background: var(--panneau-2); color: var(--doux); border: 1px solid var(--trait-2); white-space: nowrap; }
.badge.zero { background: rgba(61, 220, 151, .1); color: var(--vert); border-color: rgba(61, 220, 151, .4); }
.badge.x { background: var(--violet-f); color: #c4b3ff; border-color: rgba(155, 123, 255, .42); }
.moyens { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.moyens li { margin: 0; padding: 2px 7px; border-radius: 4px; font: 400 .7rem/1.5 var(--mono); white-space: nowrap; border: 1px solid var(--trait-2); color: var(--doux); background: var(--creux); }
.moyens .m-c, .legende-moy .m-c { color: var(--orange-2); border-color: rgba(247, 147, 26, .45); background: var(--orange-f); }
.moyens .m-w, .legende-moy .m-w { color: #c4b3ff; border-color: rgba(155, 123, 255, .45); background: var(--violet-f); }
.moyens .m-e, .legende-moy .m-e { color: #bcd0ff; border-color: rgba(140, 170, 255, .35); }
.moyens .m-plus { color: var(--pale); border-style: dashed; }

/* Classement en tableau de bord */
.legende-moy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; font-size: .74rem; }
.legende-moy span { padding: 2px 8px; border-radius: 4px; border: 1px solid var(--trait-2); font-family: var(--mono); }
.legende-moy::before { content: "Pastilles :"; color: var(--pale); font-family: var(--mono); }
.tableau-bord { list-style: none; padding: 0; margin: 0 0 10px; border: 1px solid var(--trait-2); border-radius: var(--r); background: var(--panneau); overflow: hidden; }
.tb-ligne { display: grid; grid-template-columns: 40px minmax(200px, 1.4fr) 96px minmax(170px, 1.3fr) minmax(120px, .85fr) minmax(170px, 1.2fr) 184px; gap: 16px; align-items: center; padding: 16px 18px; margin: 0; border-bottom: 1px solid var(--trait); position: relative; }
.tb-ligne:last-child { border-bottom: 0; }
.tb-ligne:hover { background: rgba(122, 142, 204, .045); }
.tb-ligne.tete { background: linear-gradient(90deg, rgba(247, 147, 26, .1), transparent 60%); }
.tb-ligne.tete::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.tb-rang { font: 700 1.05rem var(--mono); color: var(--pale); }
.tete .tb-rang { color: var(--orange); }
.tb-qui { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-qui h3 { margin: 0 0 3px; font-size: 1.04rem; font-weight: 800; }
.tb-qui .etq { margin: 0; }
.etq { margin: 0 0 6px; font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.tb-note { justify-self: start; }
.tb-note .jauge { align-items: flex-start; }
.lbl { margin: 0 0 3px; font: 400 .64rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--pale); }
.val { margin: 0 0 5px; font-weight: 700; font-size: .9rem; line-height: 1.35; color: #fff; }
.val.mono { font-size: .82rem; font-weight: 400; color: var(--texte); }
.tb-act { display: flex; flex-direction: column; align-items: stretch; gap: 7px; text-align: center; }
.tb-act .bt { white-space: nowrap; }

/* Sommaire */
.sommaire { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--fond-2); }
.sommaire .titre { font: 700 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pale); margin-bottom: 12px; }
.sommaire ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; }
.sommaire li { counter-increment: s; margin: 0; }
.sommaire a { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 5px; border: 1px solid var(--trait); color: var(--texte); text-decoration: none; font-size: .86rem; font-weight: 600; background: var(--panneau); height: 100%; }
.sommaire a::before { content: counter(s, decimal-leading-zero); font: 700 .7rem var(--mono); color: var(--orange); }
.sommaire a:hover { border-color: var(--orange); color: #fff; }

/* Tableaux */
.defile { position: relative; overflow-x: auto; border: 1px solid var(--trait-2); border-radius: var(--r); background: var(--panneau); margin: 0 0 1.2em; scrollbar-width: thin; scrollbar-color: var(--trait-2) transparent; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 11px 13px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--trait); }
thead th { font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--pale); background: var(--creux); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
td.mono { font-size: .8rem; }
table.comparatif { min-width: 1150px; }
table.comparatif tbody th { font-weight: 700; }
table.comparatif tbody tr:hover { background: rgba(122, 142, 204, .05); }
table.comparatif .moyens { max-width: 210px; }
.c-rang { font: 700 .95rem var(--mono); color: var(--orange); }
.c-casino { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.c-note { white-space: nowrap; font-family: var(--mono); } .c-note b { font-size: 1.1rem; } .c-note small { color: var(--pale); }
.astuce-defile { font: 400 .74rem var(--mono); color: var(--pale); margin: 0 0 6px; }

/* Outils */
.outil { margin: 34px 0; border-radius: var(--r); border: 1px solid rgba(247, 147, 26, .38); background: var(--panneau); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.outil-tete { padding: 0 24px 4px; background: linear-gradient(180deg, rgba(247, 147, 26, .07), transparent); }
.outil-num { display: flex; justify-content: space-between; margin: 0 -24px 16px; padding: 8px 24px; border-bottom: 1px solid rgba(247, 147, 26, .25); font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); background: var(--creux); }
.outil-num span:last-child { color: var(--pale); font-weight: 400; }
.outil-tete h3 { margin: 0 0 8px; font-size: 1.28rem; }
.outil-tete p:last-child { color: var(--doux); font-size: .94rem; max-width: 84ch; }
.outil-corps { padding: 8px 24px 22px; }
.champs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.champs.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch { display: flex; flex-direction: column; min-width: 0; }
label { font-size: .8rem; font-weight: 700; color: var(--doux); margin-bottom: 6px; display: block; line-height: 1.35; }
.ch label { flex: 1; display: flex; align-items: flex-end; }
input[type="number"], select { width: 100%; font: 400 1rem var(--mono); color: #fff; background: var(--creux); border: 1px solid var(--trait-2); border-radius: 6px; padding: 11px 12px; min-height: 46px; }
select { font-family: var(--sans); font-weight: 600; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="number"]:focus, select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(247, 147, 26, .18); }
.aide { margin-top: 5px; font-size: .72rem; color: var(--orange-2); line-height: 1.35; }
.resultat { min-height: 60px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--r2); overflow: hidden; }
.tuile { background: var(--creux); padding: 13px 15px; min-width: 0; }
.tuile small { display: block; font: 400 .66rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--pale); }
.tuile strong { display: block; font: 700 1.35rem/1.25 var(--mono); margin: 5px 0 3px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tuile span { font-size: .76rem; color: var(--pale); }
.tuile.fort strong { color: var(--orange); } .tuile.violet strong { color: var(--violet); } .tuile.alerte-t strong { color: var(--rouge); }
.verdict { margin: 14px 0 0; padding: 12px 15px; border-left: 3px solid var(--violet); background: var(--violet-f); border-radius: 0 6px 6px 0; font-size: .94rem; }
.verdict.alerte-v { border-left-color: var(--rouge); background: rgba(255, 111, 125, .08); }
.resultat .defile { margin: 14px 0 0; background: var(--creux); }
.mini-table td, .mini-table th { padding: 8px 12px; white-space: nowrap; } .mini-table td { font-family: var(--mono); font-size: .8rem; }
.mini-table tr.actif td { color: var(--orange-2); background: var(--orange-f); }
.petit { font-size: .78rem; color: var(--pale); margin: 16px 0 0; }

/* Fiches */
.fiche { margin: 28px 0; border: 1px solid var(--trait-2); border-radius: var(--r); background: var(--panneau); scroll-margin-top: 78px; }
.fiche-tete { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--trait); background: linear-gradient(90deg, var(--panneau-2), var(--panneau)); border-radius: var(--r) var(--r) 0 0; }
.fiche:first-of-type .fiche-tete .tb-rang { color: var(--orange); }
.fiche-tete .ident { flex: 1; min-width: 0; }
.fiche-tete .etq { margin-bottom: 4px; }
.fiche-tete h3 { margin: 0; font-size: 1.32rem; font-weight: 800; }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; padding: 22px; }
.fiche-texte { min-width: 0; }
.fiche-cote { align-self: start; min-width: 0; position: sticky; top: 78px; display: grid; gap: 12px; }
.fiche-cote .bloc { background: var(--creux); border: 1px solid var(--trait); border-radius: var(--r2); padding: 14px 15px; }
.titre-cote { font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pale); margin-bottom: 11px; }
.barres-crit { list-style: none; padding: 0; margin: 0; }
.barres-crit li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-bottom: 9px; font-size: .84rem; }
.barres-crit li:last-child { margin-bottom: 0; }
.barres-crit span small { color: var(--pale); font-family: var(--mono); font-size: .7rem; } .barres-crit b { font-family: var(--mono); font-weight: 700; }
.barres-crit i { grid-column: 1 / -1; height: 4px; background: rgba(122, 142, 204, .2); overflow: hidden; }
.barres-crit u { display: block; height: 100%; background: linear-gradient(90deg, var(--violet-2), var(--orange)); }
table.caract { font-size: .82rem; }
table.caract th, table.caract td { padding: 7px 0; vertical-align: top; }
table.caract th { color: var(--pale); font-weight: 600; width: 42%; padding-right: 10px; }
.bloc-cta { text-align: center; } .bloc-cta .bt { width: 100%; }
.legal { display: block; margin-top: 9px; font-size: .7rem; color: var(--pale); }
.resume { font-size: 1.04rem; color: #fff; border-left: 3px solid var(--orange); padding-left: 15px; }
.plusmoins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
.plusmoins > div { border-radius: var(--r2); padding: 13px 15px; border: 1px solid var(--trait); background: var(--creux); }
.plusmoins .plus { border-top: 2px solid var(--vert); } .plusmoins .moins { border-top: 2px solid var(--rouge); }
.pm-titre { font: 700 .7rem var(--mono); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; }
.plus .pm-titre { color: var(--vert); } .moins .pm-titre { color: var(--rouge); }
.plusmoins ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.plusmoins li { position: relative; padding-left: 20px; }
.plusmoins li::before { position: absolute; left: 0; font: 700 .9rem var(--mono); }
.plus li::before { content: "+"; color: var(--vert); } .moins li::before { content: "-"; color: var(--rouge); }
.fiche-texte .corps > h4:first-child { margin-top: 1.2em; }

/* Prose et classes du contrat */
.prose > p, .prose > ul, .prose > ol, .prose > h3, .prose > h4 { max-width: 82ch; }
.prose li::marker, .corps li::marker { color: var(--orange); }
.note, .encart { border-radius: var(--r2); padding: 15px 19px; margin: 1.3em 0; max-width: 90ch; }
.note { background: var(--orange-f); border: 1px solid rgba(247, 147, 26, .3); border-left: 3px solid var(--orange); }
.encart { background: var(--violet-f); border: 1px solid rgba(155, 123, 255, .34); border-left: 3px solid var(--violet); }
.note > :last-child, .encart > :last-child, .duo > div > :last-child { margin-bottom: 0; }
.note > :first-child, .encart > :first-child, .duo > div > :first-child { margin-top: 0; }
ol.etapes { list-style: none; counter-reset: e; padding: 0; margin: 1.3em 0; max-width: 90ch; }
ol.etapes > li { counter-increment: e; position: relative; padding: 2px 0 14px 50px; margin: 0; }
ol.etapes > li::before { content: counter(e, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 34px; height: 28px; border-radius: 4px; display: grid; place-items: center; background: var(--creux); border: 1px solid var(--orange); color: var(--orange); font: 700 .78rem var(--mono); }
ol.etapes > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 2px; width: 1px; background: var(--trait-2); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 1.3em 0; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--r2); overflow: hidden; }
.chiffres > div { background: var(--panneau); padding: 13px 15px; }
.chiffres small { display: block; color: var(--pale); line-height: 1.35; margin-bottom: 4px; font-size: .78rem; }
.chiffres strong { font: 700 1.2rem/1.25 var(--mono); color: var(--orange); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.3em 0; }
.duo > div { background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--r2); padding: 16px 18px; min-width: 0; }
.duo > div:first-child { border-top: 2px solid var(--orange); } .duo > div:last-child { border-top: 2px solid var(--violet); }
table.cmp th, table.cmp td { vertical-align: top; }
table.cmp tbody th, table.cmp td:first-child { color: #fff; font-weight: 700; }
.prose .defile table, .corps .defile table { min-width: 560px; }
dl.lexique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.3em 0; }
dl.lexique > div { background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--r2); padding: 13px 15px; }
dl.lexique dt { font: 700 .9rem var(--mono); color: var(--orange-2); margin-bottom: 4px; }
dl.lexique dd { margin: 0; font-size: .9rem; color: var(--doux); }
figure { margin: 1.3em 0; }
figure.img img { border-radius: var(--r2); border: 1px solid var(--trait-2); width: 100%; max-width: 860px; }
figure.img.etroit img { width: auto; max-width: min(100%, 420px); }
figure.logo-seul img, .vignettes.logos figure img { width: auto; max-width: 100%; max-height: 50px; object-fit: contain; border: 0; border-radius: 0; }
figure.logo-seul { display: inline-grid; place-items: center; background: #eef1fa; border-radius: var(--r2); padding: 12px 20px; }
figure.logo-seul.sombre, .vignettes.logos figure.sombre { background: var(--panneau-2); border: 1px solid var(--trait); }
.vignettes { display: grid; gap: 10px; margin: 1.3em 0; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); max-width: 860px; }
.vignettes.n2 { --n: 2; max-width: 600px; } .vignettes.n3 { --n: 3; } .vignettes.n4 { --n: 4; } .vignettes.n5 { --n: 5; } .vignettes.n6 { --n: 6; }
.vignettes figure { margin: 0; }
.vignettes figure img { width: 100%; border-radius: var(--r2); border: 1px solid var(--trait-2); aspect-ratio: 4 / 3; object-fit: cover; }
.vignettes.logos figure { display: grid; place-items: center; background: #eef1fa; border-radius: var(--r2); padding: 11px 13px; min-height: 70px; }
.vignettes.logos figure img { aspect-ratio: auto; }
.cta { margin: 1.5em 0 .6em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta small { color: var(--pale); font-size: .74rem; font-family: var(--mono); }
.lien-casino { font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 940px; }
.faq details { border: 1px solid var(--trait); border-radius: var(--r2); background: var(--panneau); }
.faq details[open] { border-color: rgba(247, 147, 26, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 52px 15px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; border: 1px solid var(--trait-2); color: var(--orange); font: 700 1rem var(--mono); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--doux); }

/* Jeu responsable, à propos */
.alerte { display: flex; gap: 22px; border: 1px solid rgba(255, 111, 125, .42); background: linear-gradient(160deg, rgba(255, 111, 125, .09), var(--panneau) 60%); border-radius: var(--r); padding: 22px; }
.plaque { flex: 0 0 auto; width: 62px; height: 62px; border-radius: 8px; border: 2px solid var(--rouge); color: var(--rouge); display: grid; place-items: center; font: 700 1.1rem var(--mono); }
.ligne-aide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.tel { font: 700 1.45rem var(--mono); color: #fff; letter-spacing: -.02em; }
.alerte p:last-child { margin: 0; }
.apropos { max-width: 940px; }
.liens-pages { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.liens-pages li { margin: 0; }
.liens-pages a { display: block; height: 100%; padding: 15px 17px; border: 1px solid var(--trait); border-radius: var(--r2); background: var(--panneau); text-decoration: none; }
.liens-pages a:hover { border-color: var(--orange); }
.liens-pages strong { display: block; color: var(--orange-2); } .liens-pages span { font-size: .84rem; color: var(--doux); }

/* Pied */
.pied { margin-top: 70px; border-top: 1px solid var(--trait-2); background: var(--fond-2); padding: 42px 0 28px; font-size: .88rem; color: var(--doux); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.pied .logo { margin-bottom: 14px; }
.pied .titre { font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.pied ul + .titre { margin-top: 18px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied a { color: var(--texte); text-decoration: none; overflow-wrap: anywhere; } .pied a:hover { color: var(--orange-2); }
.rg-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.rg-logos img { height: 30px; width: auto; background: rgba(122, 142, 204, .12); border: 1px solid var(--trait); border-radius: 5px; padding: 5px 8px; }
.pied .legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--trait); font-size: .78rem; color: var(--pale); }
.pied .legal a { color: var(--doux); text-decoration: underline; }
.barre { display: none; }

/* Pages secondaires */
.page { padding: 44px 0 10px; }
.page .wrap { max-width: 820px; }
.fil { display: flex; gap: 8px; font: 400 .76rem var(--mono); color: var(--pale); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .05em; }
.fil span + span::before { content: "/"; margin-right: 8px; color: var(--orange); }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.22rem; font-weight: 800; margin: 1.7em 0 .55em; color: var(--orange-2); }
.page h2::before { content: "> "; font-family: var(--mono); color: var(--violet); }
.retour { margin-top: 34px; }

/* Adaptations */
@media (max-width: 1180px) {
  .tb-ligne { grid-template-columns: 40px minmax(0, 1.5fr) 100px minmax(0, 1.4fr) minmax(0, 1fr) 184px; }
  .tb-moy { grid-column: 2 / 6; grid-row: 2; }
  .tb-act { grid-row: 1 / 3; grid-column: 6; }
}
@media (max-width: 1020px) {
  .nav { display: none; } .etat { margin-left: auto; }
  .haut-grille { grid-template-columns: 1fr; gap: 28px; }
  .console { max-width: 560px; }
  .reperes { grid-template-columns: repeat(2, 1fr); }
  .sommaire ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-ligne { grid-template-columns: 36px minmax(0, 1fr) 96px; gap: 12px 14px; }
  .tb-qui { grid-column: 2; grid-row: 1; } .tb-note { grid-column: 3; grid-row: 1; justify-self: end; } .tb-note .jauge { align-items: flex-end; }
  .tb-offre { grid-column: 2 / 4; grid-row: 2; } .tb-ret { grid-column: 2 / 4; grid-row: 3; } .tb-moy { grid-column: 2 / 4; grid-row: 4; }
  .tb-act { grid-column: 2 / 4; grid-row: 5; flex-direction: row; align-items: center; justify-content: space-between; }
  .fiche-corps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fiche-cote { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); order: -1; }
  .fiche-cote .bloc-cta { grid-column: 1 / -1; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .champs, .champs.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; background-size: 24px 24px; }
  .wrap { width: calc(100% - 32px); }
  html { scroll-padding-top: 66px; }
  .entete-barre { height: 56px; } .logo img { width: 170px; } .etat span { display: none; }
  .haut { padding: 28px 0 16px; }
  .console dl { font-size: .74rem; padding-inline: 14px; } .console-logo { padding-inline: 14px; }
  .reperes { margin-top: 24px; } .reperes div { padding: 12px 13px; } .reperes b { font-size: 1.4rem; }
  .sec { padding-top: 42px; }
  .sommaire { padding: 14px; } .sommaire ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-ligne { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 14px 13px; gap: 10px 10px; }
  .tb-qui .pastille { width: 76px; height: 42px; padding: 6px 8px; }
  .tb-qui { gap: 9px; } .tb-qui h3 { font-size: .98rem; }
  .tb-offre, .tb-ret, .tb-moy, .tb-act { grid-column: 1 / 4; }
  .tb-act .bt { flex: 1; }
  .outil-tete { padding: 0 16px 2px; } .outil-num { margin-inline: -16px; padding-inline: 16px; } .outil-corps { padding: 6px 16px 18px; }
  .champs, .champs.trois, .plusmoins, .duo, dl.lexique, .liens-pages, .pied-grille, .fiche-cote { grid-template-columns: minmax(0, 1fr); }
  .tuiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tuile strong { font-size: 1.1rem; }
  .fiche-tete { flex-wrap: wrap; padding: 14px; gap: 10px 12px; }
  .fiche-tete .ident { order: 5; flex-basis: 100%; } .fiche-tete .jauge { margin-left: auto; } .fiche-tete .jv b { font-size: 1.5rem; }
  .fiche-tete h3 { font-size: 1.12rem; }
  .fiche-corps { padding: 14px; }
  .fiche-cote { order: 0; }
  .intro { font-size: 1rem; }
  .vignettes.n4, .vignettes.n5, .vignettes.n6 { --n: 3; } .vignettes.n3 { --n: 3; gap: 8px; }
  .vignettes.logos { --n: 2; } .vignettes.logos.n3, .vignettes.logos.n5, .vignettes.logos.n6 { --n: 3; }
  .alerte { flex-direction: column; gap: 14px; padding: 18px; } .tel { font-size: 1.25rem; }
  .cta .bt { width: 100%; }
  .pied { padding-bottom: 96px; } .page + .pied { padding-bottom: 28px; }
  .barre { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 8px; background: rgba(12, 20, 40, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(247, 147, 26, .5); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .25s; }
  .barre.visible { transform: none; }
  .barre .txt { flex: 1; min-width: 0; line-height: 1.25; } .barre .txt b { display: block; font-size: .92rem; } .barre .txt b .mono { color: var(--orange); font-size: .8rem; }
  .barre .txt small { display: block; color: var(--doux); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bt, .barre { transition: none; } }
