/* La Piazzetta : thème clair estival, blanc, turquoise profond, corail pour les actions, fond sable très pâle */
:root {
  --sable: #fbf5ea; --sable-2: #f5ecdc; --blanc: #ffffff; --trait: #e6dccb; --trait-2: #d3c6b0;
  --encre: #143c3f; --texte: #2b4345; --doux: #56706f; --pale: #7f918f;
  --turq: #0d7d83; --turq-f: #08585d; --turq-c: #d9f0ee; --turq-cc: #eef8f7;
  --corail: #ff6a45; --corail-f: #e2502c; --corail-c: #ffe6dd;
  --vert: #138a55; --vert-c: #ddf4e8; --ambre: #b86a00; --ambre-c: #fff0d6;
  --titre: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --corps: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 22px; --r2: 14px; --ombre: 0 14px 34px rgba(20, 60, 63, .09);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; background: var(--sable); }
body { margin: 0; background: var(--sable); color: var(--texte); font: 400 16.5px/1.68 var(--corps); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-f); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--corail-f); }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.2; margin: 0; color: var(--encre); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 600; color: var(--encre); }
small { font-size: .82em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.etroite { width: min(780px, 100% - 32px); }
.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(--corail); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.evitement:focus { left: 8px; }

/* En-tête collant */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); transition: box-shadow .2s; }
.entete.colle { box-shadow: 0 6px 22px rgba(20, 60, 63, .08); }
.entete-barre { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { width: 160px; height: auto; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { color: var(--texte); text-decoration: none; font: 500 .95rem var(--titre); padding: 7px 12px; border-radius: 12px; }
.nav a:hover { color: var(--turq-f); background: var(--turq-cc); }
.vers-top { margin-left: auto; font: 600 .92rem var(--titre); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 12px; background: var(--corail); }
.vers-top:hover { color: #fff; background: var(--corail-f); }
.age { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: #fff; font: 600 .78rem var(--titre); flex: 0 0 auto; }

/* Haut de page, sans lien */
.haut { padding: 28px 0 10px; background: linear-gradient(180deg, var(--blanc) 0%, var(--sable) 100%); border-bottom: 1px solid var(--trait); }
.haut-grille { display: grid; gap: 26px; }
.surligne { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font: 500 .82rem var(--titre); }
.surligne span { padding: 4px 12px; border-radius: 999px; background: var(--sable-2); color: var(--doux); }
.surligne .pt { color: #fff; background: var(--turq); }
h1 { font-size: clamp(1.8rem, 6.4vw, 3.15rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 16px; }
h1 em { font-style: normal; color: var(--turq); background: linear-gradient(transparent 68%, var(--corail-c) 68%); }
.intro { font-size: 1.03rem; color: var(--doux); max-width: 66ch; margin: 0; }
.panneau { background: var(--blanc); border: 1px solid var(--trait); border-radius: 26px; padding: 18px 18px 14px; box-shadow: var(--ombre); }
.panneau-titre { font: 600 1.02rem var(--titre); color: var(--encre); margin: 0 0 12px; }
.panneau ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.panneau li { display: grid; grid-template-columns: 8.2em minmax(0, 1fr) 2.2em 6.4em; align-items: center; gap: 8px; margin: 0; font-size: .84rem; }
.hb-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--texte); }
.hb-barre { height: 12px; border-radius: 8px; background: var(--sable-2); overflow: hidden; }
.hb-barre i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--turq), #2fb3a9); min-width: 3px; }
.panneau li > b { font: 700 1rem var(--titre); text-align: right; color: var(--encre); }
.panneau li .mise { justify-self: start; font-size: .7rem; padding: 2px 8px; }
.panneau-pied { margin: 12px 0 0; font-size: .74rem; color: var(--pale); }
.panneau-pied .mise { font-size: .7rem; padding: 1px 7px; }
.reperes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 18px; }
.reperes div { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 13px 14px; }
.reperes b { display: block; font: 700 1.9rem/1 var(--titre); color: var(--corail); }
.reperes span { display: block; font: 600 .92rem/1.3 var(--titre); color: var(--encre); margin: 6px 0 3px; }
.reperes small { color: var(--pale); font-size: .78rem; line-height: 1.4; display: block; }

/* Sections (numéro hors du titre, par data-n) */
.sec { padding: 42px 0 4px; }
.sec[data-n]::before { content: attr(data-n); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--turq-c); color: var(--turq-f); font: 700 .95rem var(--titre); }
.sec > h2 { font-size: clamp(1.5rem, 4.8vw, 2.2rem); font-weight: 600; margin-bottom: 18px; max-width: 30ch; }
.sec h3 { font-size: 1.24rem; margin: 1.6em 0 .55em; }
.sec h4 { font-size: 1.06rem; font-weight: 600; margin: 1.45em 0 .45em; color: var(--turq-f); }
.sec > p, .sec > h3, .prose > p, .prose > h3, .prose > h4, .prose > ul, .prose > ol { max-width: 80ch; }
.lead { font-size: 1.05rem; color: var(--doux); max-width: 76ch; }
.mention { font-size: .84rem; color: var(--pale); border-left: 3px solid var(--corail); padding-left: 12px; }
.provisoire { background: var(--ambre-c); border: 1px dashed var(--ambre); border-radius: var(--r2); padding: 14px 18px; color: var(--ambre); }

/* Boutons, pastilles, notes, condition de mise */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 14px; font: 600 1rem/1.2 var(--titre); text-decoration: none; text-align: center; transition: transform .15s, background .15s, box-shadow .15s; }
.bt-go { background: var(--corail); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 69, .28); }
.bt-go:hover { color: #fff; background: var(--corail-f); transform: translateY(-1px); }
.bt-ligne { border: 2px solid var(--turq); color: var(--turq-f); background: var(--blanc); }
.bt-ligne:hover { color: #fff; background: var(--turq); }
.bt-petit { min-height: 40px; padding: 8px 15px; font-size: .9rem; border-radius: 11px; }
.pastille { display: grid; place-items: center; width: 120px; height: 66px; border-radius: 14px; padding: 10px 14px; flex: 0 0 auto; border: 1px solid rgba(20, 60, 63, .1); }
.pastille img { width: 100%; height: 100%; object-fit: contain; }
.pastille.moyen { width: 88px; height: 50px; padding: 7px 10px; border-radius: 12px; }
.pastille.mini { width: 64px; height: 36px; padding: 5px 8px; border-radius: 9px; }
.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; }
.note5 { flex: 0 0 auto; display: grid; gap: 5px; justify-items: end; }
.note5 p { margin: 0; line-height: 1; }
.note5 b { font: 700 1.7rem var(--titre); color: var(--encre); }
.note5 small { font-size: .8rem; color: var(--pale); margin-left: 1px; }
.note5 i { display: block; width: 74px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--corail) calc(var(--p) * 1%), var(--sable-2) 0); -webkit-mask: repeating-linear-gradient(90deg, #000 0 13px, transparent 13px 15.25px); mask: repeating-linear-gradient(90deg, #000 0 13px, transparent 13px 15.25px); }
.note5.petit b { font-size: 1.35rem; }
.note5.petit i { width: 62px; height: 7px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 10.6px, transparent 10.6px 12.85px); mask: repeating-linear-gradient(90deg, #000 0 10.6px, transparent 10.6px 12.85px); }
.mise { display: inline-block; padding: 3px 11px; border-radius: 999px; font: 600 .86rem var(--titre); white-space: nowrap; background: var(--sable-2); color: var(--doux); }
.mise.zero { background: var(--vert-c); color: var(--vert); }
.mise.x { background: var(--corail-c); color: var(--corail-f); }
.etq { margin: 0 0 3px; font: 600 .74rem var(--titre); letter-spacing: .06em; text-transform: uppercase; color: var(--corail-f); }

/* Classement : cartes billet, grand compteur de tours */
.pile { list-style: none; padding: 0; margin: 24px 0 10px; display: grid; gap: 16px; }
.pile > li { margin: 0; }
.carte { position: relative; display: grid; background: var(--blanc); border: 1px solid var(--trait); border-radius: 24px; overflow: hidden; box-shadow: var(--ombre); }
.carte-billet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--turq-cc); border-bottom: 2px dashed var(--turq-c); }
.compteur { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.compteur b { font: 700 2.6rem/1 var(--titre); color: var(--turq); letter-spacing: -.02em; }
.compteur span { font: 600 .92rem var(--titre); color: var(--turq-f); }
.compteur.vide b { color: var(--pale); }
.compteur.vide span { color: var(--pale); }
.compteur.grand b { font-size: 3.4rem; }
.carte-billet .lot { margin: 0; font-size: .8rem; color: var(--doux); text-align: right; max-width: 15em; line-height: 1.35; }
.carte-info { padding: 16px 18px 18px; min-width: 0; }
.carte-tete { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "r p . n" "q q q q"; gap: 10px; align-items: center; }
.carte-tete .rang { grid-area: r; } .carte-tete .pastille { grid-area: p; } .carte-tete .qui { grid-area: q; } .carte-tete .note5 { grid-area: n; }
.carte .rang { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--encre); font: 700 .95rem var(--titre); color: #fff; }
.carte .pastille.moyen { width: 66px; height: 40px; padding: 6px 8px; }
.qui { min-width: 0; }
.carte h3 { margin: 0; font-size: 1.16rem; }
.carte .offre { font: 500 1.04rem/1.42 var(--titre); color: var(--encre); margin: 12px 0; }
.puces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.puces div { background: var(--sable); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.puces dt { font: 500 .7rem var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--pale); }
.puces dd { margin: 3px 0 0; font-size: .86rem; font-weight: 500; color: var(--encre); line-height: 1.3; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
.actions .bt { width: 100%; }
.carte.un { border: 2px solid var(--turq); }
.carte.un .carte-billet { background: var(--turq); border-bottom-color: rgba(255, 255, 255, .35); }
.carte.un .compteur b, .carte.un .compteur span, .carte.un .carte-billet .lot { color: #fff; }
.carte.un .rang { background: var(--corail); }
.carte.un h3 { font-size: 1.3rem; }
.ruban { position: absolute; top: 12px; right: 14px; margin: 0; padding: 4px 11px; border-radius: 999px; background: var(--corail); color: #fff; font: 600 .74rem var(--titre); z-index: 1; }
.carte.un .carte-billet { padding-top: 40px; }

/* Sommaire */
.sommaire { margin: 34px 0 6px; padding: 18px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--trait); }
.sommaire .titre { font: 600 1.05rem var(--titre); color: var(--encre); margin: 0 0 12px; }
.sommaire ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire li { margin: 0; }
.sommaire a { display: inline-block; padding: 7px 14px; border-radius: 12px; background: var(--turq-cc); color: var(--turq-f); text-decoration: none; font: 500 .92rem var(--titre); }
.sommaire a:hover { background: var(--turq); color: #fff; }

/* Tableaux */
.defile { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border-radius: var(--r2); border: 1px solid var(--trait); background: var(--blanc); }
.defile table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.defile th, .defile td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.defile thead th { font: 600 .8rem var(--titre); color: var(--turq-f); background: var(--turq-cc); white-space: nowrap; }
.defile tbody tr:last-child > * { border-bottom: 0; }
.defile tbody tr:nth-child(even) > * { background: #fdfaf4; }
table.comparatif { min-width: 1120px; }
table.comparatif tbody th { font-weight: 500; }
.c-rang { font: 700 1rem var(--titre); color: var(--corail-f); }
.c-casino { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--encre); }
.c-tours b { font: 700 1.3rem var(--titre); color: var(--turq); }
.c-note b { font: 700 1.1rem var(--titre); color: var(--encre); }
.c-note small { color: var(--pale); }
.astuce { font-size: .8rem; color: var(--pale); margin-top: -.5em; }
.astuce::before { content: "\2190\00a0"; color: var(--corail); }
table.cmp, .prose table, .corps table { min-width: 560px; }

/* Outils dans des cadres turquoise */
.outil { margin: 30px 0 18px; border-radius: 24px; background: var(--blanc); border: 2px solid var(--turq); overflow: hidden; }
.outil-tete { display: flex; gap: 14px; padding: 18px; background: var(--turq); color: #fff; }
.outil-ico { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--corail); color: #fff; font: 700 1.2rem var(--titre); }
.outil-tete h3 { margin: 2px 0 6px; font-size: 1.18rem; color: #fff; }
.outil-tete p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .93rem; }
.outil-corps { padding: 18px; }
.outil-champs { display: grid; gap: 14px; }
.grille-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.champ { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-width: 0; }
.champ label { font: 500 .86rem/1.3 var(--titre); color: var(--texte); }
.champ input, .champ select { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--trait-2); background: var(--sable); color: var(--encre); font: 500 1.02rem var(--corps); padding: 9px 13px; }
.champ select { font-size: .94rem; }
.champ input:focus, .champ select:focus { border-color: var(--turq); outline: none; background: #fff; }
.segments, .cases { border: 0; margin: 0; padding: 0; min-width: 0; }
.segments legend, .cases legend { font: 500 .86rem var(--titre); color: var(--texte); margin-bottom: 8px; padding: 0; }
.segments > div, .cases > div { display: flex; flex-wrap: wrap; gap: 8px; }
.segments label, .cases label { position: relative; cursor: pointer; margin: 0; }
.segments input, .cases input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments span, .cases span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--trait-2); background: var(--sable); font: 500 .94rem var(--titre); color: var(--texte); }
.jours span { min-width: 54px; justify-content: center; padding: 9px 10px; }
.segments input:checked + span, .cases input:checked + span { border-color: var(--turq); background: var(--turq); color: #fff; }
.segments input:focus-visible + span, .cases input:focus-visible + span { outline: 3px solid var(--corail); outline-offset: 2px; }
.resultat { margin-top: 18px; }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile { background: var(--sable); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.tuile small { display: block; font: 500 .8rem var(--titre); color: var(--doux); }
.tuile strong { display: block; font: 700 1.3rem/1.2 var(--titre); color: var(--encre); margin: 4px 0 2px; overflow-wrap: anywhere; }
.tuile span { display: block; font-size: .76rem; color: var(--pale); line-height: 1.35; overflow-wrap: anywhere; }
.tuile.fort { background: var(--corail); }
.tuile.fort small, .tuile.fort span { color: rgba(255, 255, 255, .9); }
.tuile.fort strong { color: #fff; }
.verdict { margin: 14px 0 0; padding: 13px 15px; border-radius: 14px; background: var(--turq-cc); border-left: 4px solid var(--turq); font-size: .95rem; }
table.mini { min-width: 300px; }
table.mini caption { text-align: left; padding: 10px 13px 4px; font: 500 .82rem var(--titre); color: var(--doux); caption-side: top; }
table.mini tr.actif > * { color: var(--encre); font-weight: 600; background: var(--corail-c) !important; }
table.mini tr.eteint > * { color: var(--pale); }
table.tri { min-width: 540px; }
table.tri thead button { all: unset; cursor: pointer; font: 600 .8rem var(--titre); color: var(--turq-f); border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
table.tri thead button:hover { color: var(--corail-f); }
table.tri thead button:focus-visible { outline: 2px solid var(--corail); }
ol.calendrier { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
ol.calendrier li { margin: 0; padding: 9px 10px; border-radius: 14px; border: 1.5px solid var(--trait); background: var(--blanc); display: grid; gap: 2px; font-size: .8rem; line-height: 1.3; min-width: 0; }
ol.calendrier li b { font: 700 1rem var(--titre); color: var(--encre); }
ol.calendrier li > span { color: var(--pale); font-size: .74rem; }
ol.calendrier li.connecte { border-color: var(--turq); background: var(--turq-cc); }
ol.calendrier li.perte { border-color: var(--corail); background: var(--corail-c); }
ol.calendrier em { font-style: normal; font-weight: 600; }
ol.calendrier em.ok { color: var(--vert); }
ol.calendrier em.ko { color: var(--corail-f); }
.formule { margin: 14px 0 0; font-size: .82rem; color: var(--pale); line-height: 1.55; }

/* Fiches */
.fiche { margin: 26px 0; border-radius: 26px; background: var(--blanc); border: 1px solid var(--trait); overflow: hidden; box-shadow: var(--ombre); }
.fiche-tete { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "r p j" "i i i"; gap: 12px; align-items: center; padding: 18px; background: var(--turq-cc); border-bottom: 1px solid var(--turq-c); }
.fiche-tete .rang { grid-area: r; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--turq); color: #fff; font: 700 1.05rem var(--titre); }
.fiche-tete .pastille { grid-area: p; }
.fiche-tete .note5 { grid-area: j; justify-self: end; }
.fiche-tete .ident { grid-area: i; min-width: 0; }
.fiche-tete h3 { margin: 0; font-size: 1.3rem; }
.fiche-corps { display: grid; gap: 0; }
.fiche-texte { padding: 18px; min-width: 0; }
.resume { font: 500 1.04rem/1.55 var(--corps); color: var(--encre); }
.plusmoins { display: grid; gap: 10px; margin: 0 0 8px; }
.plusmoins > div { border-radius: 16px; padding: 13px 15px; }
.plus { background: var(--vert-c); } .moins { background: var(--ambre-c); }
.pm-titre { font: 600 .82rem var(--titre); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.plus .pm-titre { color: var(--vert); } .moins .pm-titre { color: var(--ambre); }
.plusmoins ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.plusmoins li { position: relative; padding-left: 20px; }
.plus li::before { content: "+"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.moins li::before { content: "-"; position: absolute; left: 2px; color: var(--ambre); font-weight: 700; }
.corps h4:first-child { margin-top: 1.1em; }
.fiche-cote { padding: 18px; border-top: 1px solid var(--trait); background: var(--sable); display: grid; gap: 14px; align-content: start; }
.bloc { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 14px; min-width: 0; }
.bloc-tours { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--turq-cc); border-color: var(--turq-c); }
.bloc-tours .compteur { flex-direction: column; align-items: flex-start; gap: 2px; }
.bloc-tours .titre-cote { margin-bottom: 6px; text-align: right; }
.bloc-tours > div:last-child { text-align: right; }
.bloc-tours .lot { margin: 6px 0 0; font-size: .78rem; color: var(--doux); line-height: 1.3; }
.titre-cote { font: 600 .82rem var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--doux); margin: 0 0 10px; }
.barres { list-style: none; padding: 0; margin: 0; }
.barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; margin-bottom: 9px; font-size: .86rem; }
.barres span small { color: var(--pale); }
.barres b { font: 700 .95rem var(--titre); }
.barres i { grid-column: 1 / -1; height: 7px; border-radius: 6px; background: var(--sable-2); overflow: hidden; }
.barres u { display: block; height: 100%; border-radius: 6px; background: var(--turq); }
table.caract { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.caract th, table.caract td { padding: 7px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
table.caract th { color: var(--doux); font-weight: 400; padding-right: 10px; width: 44%; }
table.caract td { color: var(--encre); }
table.caract tr:last-child > * { border-bottom: 0; }
.bloc-cta { display: grid; gap: 8px; text-align: center; }
.bloc-cta .legal, .cta small { font-size: .74rem; color: var(--pale); }
.cta { display: grid; gap: 6px; justify-items: start; margin: 1.2em 0; }
.cta .bt { min-width: min(100%, 300px); }
.lien-casino { font-weight: 500; }

/* Classes du contrat de contenu */
figure { margin: 1.3em 0; }
figure.img img { width: 100%; border-radius: 18px; border: 1px solid var(--trait); }
figure.img.etroit { max-width: 520px; }
figure.logo-seul { display: inline-grid; place-items: center; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r2); padding: 14px 22px; }
figure.logo-seul img { width: auto; max-height: 52px; border: 0; border-radius: 0; }
figure.logo-seul.sombre, .vignettes.logos figure.sombre { background: var(--encre); border-color: var(--encre); }
.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, .vignettes.n4, .vignettes.n5, .vignettes.n6 { --n: 3; }
.vignettes figure { margin: 0; min-width: 0; }
.vignettes figure img { width: 100%; border-radius: 14px; border: 1px solid var(--trait); aspect-ratio: 4 / 3; object-fit: cover; }
.vignettes.logos figure { display: grid; place-items: center; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 10px 12px; min-height: 70px; }
.vignettes.logos figure img { aspect-ratio: auto; border: 0; border-radius: 0; max-height: 44px; width: auto; object-fit: contain; }
.note, .encart { border-radius: 18px; padding: 15px 17px; margin: 1.3em 0; max-width: 80ch; }
.note { background: var(--corail-c); border-left: 5px solid var(--corail); }
.encart { background: var(--turq-cc); border: 1px solid var(--turq-c); }
.note > :last-child, .encart > :last-child { margin-bottom: 0; }
ol.etapes { list-style: none; counter-reset: et; padding: 0; margin: 1.2em 0; max-width: 80ch; }
ol.etapes > li { counter-increment: et; position: relative; padding: 4px 0 10px 50px; margin: 0 0 8px; }
ol.etapes > li::before { content: counter(et); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--turq); color: #fff; display: grid; place-items: center; font: 700 1rem var(--titre); }
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.3em 0; max-width: 900px; }
.chiffres > div { background: var(--blanc); border: 1px solid var(--trait); border-top: 4px solid var(--corail); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.chiffres small { display: block; color: var(--doux); font: 500 .8rem var(--titre); }
.chiffres strong { display: block; font: 700 1.28rem/1.25 var(--titre); color: var(--turq-f); margin-top: 3px; overflow-wrap: anywhere; }
.duo { display: grid; gap: 12px; margin: 1.3em 0; }
.duo > div { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 15px 17px; min-width: 0; }
.duo > div > :last-child { margin-bottom: 0; }
dl.lexique { display: grid; gap: 10px; margin: 1.2em 0; max-width: 80ch; }
dl.lexique > div { background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 12px 15px; }
dl.lexique dt { font: 600 1.02rem var(--titre); color: var(--encre); }
dl.lexique dd { margin: 4px 0 0; color: var(--doux); font-size: .95rem; }

/* FAQ en accordéon */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; }
.faq details[open] { border-color: var(--turq); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 56px 16px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--turq-cc); color: var(--turq-f); display: grid; place-items: center; font: 600 1.3rem/1 var(--titre); }
.faq details[open] summary::after { content: "\2212"; background: var(--turq); color: #fff; }
.faq summary h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--doux); }

/* Jeu responsable et à propos */
.alerte { display: grid; gap: 16px; padding: 20px; border-radius: 24px; background: var(--blanc); border: 2px solid var(--corail); }
.plaque { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--corail); font: 700 1.25rem var(--titre); color: #fff; }
.alerte p:last-child { margin-bottom: 0; }
.ligne-aide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ligne-aide .numero { font: 700 1.6rem var(--titre); color: var(--encre); letter-spacing: .02em; }
.ligne-aide a { overflow-wrap: anywhere; }
.apropos { max-width: 880px; }
.liens-pages { list-style: none; padding: 0; display: grid; gap: 10px; }
.liens-pages li { margin: 0; }
.liens-pages a { display: grid; gap: 2px; padding: 15px 18px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--trait); text-decoration: none; color: var(--doux); }
.liens-pages a:hover { border-color: var(--turq); color: var(--doux); }
.liens-pages strong { font-family: var(--titre); color: var(--turq-f); font-size: 1.05rem; }
.liens-pages span { font-size: .9rem; }

/* Pied de page et barre fixe mobile */
.pied { margin-top: 56px; padding: 40px 0 110px; background: var(--encre); color: #cfe0de; font-size: .92rem; }
.pied-grille { display: grid; gap: 26px; }
.pied .logo { background: #fff; border-radius: 14px; padding: 8px 12px; }
.pied .logo img { width: 150px; }
.pied-marque p { margin-top: 14px; max-width: 42ch; }
.pied .titre { font: 600 .95rem var(--titre); color: #fff; margin: 0 0 10px; }
.pied ul { list-style: none; padding: 0; margin: 0 0 14px; }
.pied li { margin-bottom: .45em; }
.pied a { color: #cfe0de; text-decoration: none; overflow-wrap: anywhere; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied strong { color: #fff; }
.rg-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.rg-logos img { height: 30px; width: auto; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 4px 8px; }
.pied .legal { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; color: #a9c1bf; }
.barre { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--turq); box-shadow: 0 12px 34px rgba(20, 60, 63, .22); transform: translateY(150%); transition: transform .25s; }
.barre.visible { transform: none; }
.barre .txt { flex: 1; min-width: 0; line-height: 1.25; }
.barre .txt b { display: block; font: 600 .96rem var(--titre); }
.barre .txt small { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .76rem; }

/* Pages secondaires */
.page { padding: 34px 0 10px; }
.fil { display: flex; gap: 8px; font: 500 .84rem var(--titre); color: var(--pale); margin-bottom: 14px; }
.fil span + span::before { content: "\203A"; margin-right: 8px; color: var(--corail); }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin: 1.8em 0 .55em; }
.retour { margin-top: 30px; }

/* Tablettes et ordinateurs */
@media (min-width: 640px) {
  .reperes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #outil-tours .grille-champs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .actions { grid-template-columns: 1fr 1fr; }
  .puces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plusmoins { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .chiffres { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .vignettes.n4 { --n: 4; } .vignettes.n5 { --n: 5; } .vignettes.n6 { --n: 6; }
  .alerte { grid-template-columns: auto minmax(0, 1fr); padding: 26px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .liens-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiche-tete { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "r p i j"; padding: 20px 22px; }
  .fiche-texte, .fiche-cote { padding: 22px; }
  .carte { grid-template-columns: 170px minmax(0, 1fr); }
  .carte-billet { flex-direction: column; justify-content: center; align-items: center; text-align: center; border-bottom: 0; border-right: 2px dashed var(--turq-c); padding: 18px 12px; }
  .carte-billet .compteur { flex-direction: column; align-items: center; gap: 4px; }
  .carte-billet .lot { text-align: center; }
  .carte.un .carte-billet { border-right-color: rgba(255, 255, 255, .35); }
  .carte-tete { grid-template-areas: "r p q n"; }
  .ruban { left: 14px; right: auto; top: 14px; }
  .carte.un .carte-billet { padding-top: 46px; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .nav { display: flex; }
  .vers-top { display: none; }
  .age { margin-left: 4px; }
  .logo img { width: 176px; }
  .haut { padding: 50px 0 14px; }
  .haut-grille { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); gap: 46px; align-items: center; }
  .sec { padding-top: 56px; }
  .pile { grid-template-columns: 1fr 1fr; }
  .pile > .un { grid-column: 1 / -1; }
  .carte.un { grid-template-columns: 230px minmax(0, 1fr); }
  .carte.un .carte-info { padding: 22px 26px; }
  .carte.un .ruban { left: 18px; top: 18px; }
  .carte.un .actions { grid-template-columns: 1.4fr 1fr; max-width: 560px; }
  .carte.un .puces { max-width: 760px; }
  .carte:not(.un) .puces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte:not(.un) .actions { grid-template-columns: 1.3fr 1fr; }
  .fiche-corps { grid-template-columns: minmax(0, 1fr) 340px; }
  .fiche-cote { border-top: 0; border-left: 1px solid var(--trait); }
  .outil-tete { padding: 22px 26px; }
  .outil-corps { padding: 22px 26px 24px; }
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .pied { padding-bottom: 46px; }
  .barre { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (min-width: 640px) { .prose .cta { display: inline-grid; vertical-align: top; margin-right: 14px; } }
