/* Chance Suprême — mise en page. Aucun framework. */

*, *::before, *::after { box-sizing: border-box; }

body.chancesup-body {
  margin: 0; background: var(--cs-bg); color: var(--cs-ink);
  font-family: var(--cs-sans); font-size: var(--cs-f-0); font-weight: 400;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cs-navy); text-underline-offset: 3px; }
a:hover { color: var(--cs-amber); }
h1, h2, h3 { font-family: var(--cs-serif); font-weight: 600; line-height: 1.18; margin: 0 0 var(--cs-c); }
p { margin: 0 0 var(--cs-c); }
.chancesup-wrap { width: 100%; max-width: var(--cs-wrap); margin-inline: auto; padding-inline: var(--cs-c); }
.chancesup-skip { position: absolute; left: -9999px; }
.chancesup-skip:focus { left: var(--cs-c); top: var(--cs-b); z-index: 60; background: var(--cs-navy); color: #fff; padding: var(--cs-b) var(--cs-c); }
:focus-visible { outline: 2px solid var(--cs-amber); outline-offset: 2px; }

/* --- boutons --- */
.chancesup-btn {
  display: inline-block; font-family: var(--cs-sans); font-size: var(--cs-f--1);
  font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  padding: 0.65rem 1.1rem; border: 1px solid var(--cs-navy); border-radius: var(--cs-r); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.chancesup-btn-fill { background: var(--cs-navy); color: #fff; }
.chancesup-btn-fill:hover { background: var(--cs-navy-2); color: #fff; }
.chancesup-btn-thin { background: #fff; color: var(--cs-navy); }
.chancesup-btn-thin:hover { background: var(--cs-bg-2); }

/* --- bandeau d'avertissement (obligatoire) --- */
.chancesup-warnband { background: var(--cs-ink); color: #e7eaf0; }
.chancesup-warnband p {
  max-width: var(--cs-wrap); margin: 0 auto; padding: 0.55rem var(--cs-c);
  font-size: var(--cs-f--1); text-align: center;
}
.chancesup-warnband strong { color: #fff; }
.chancesup-age {
  display: inline-block; border: 1px solid var(--cs-amber); color: #f0c98a;
  border-radius: 3px; font-size: 0.68rem; font-weight: 800; padding: 0.12rem 0.34rem; margin-right: 0.4rem;
}

/* --- en-tête --- */
.chancesup-top { background: var(--cs-bg); border-bottom: 1px solid var(--cs-line); position: sticky; top: 0; z-index: 50; }
.chancesup-top-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--cs-c); padding-block: var(--cs-b); }
.chancesup-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--cs-ink); }
.chancesup-logo-mark {
  width: 2.2rem; height: 2.2rem; flex: none; color: var(--cs-amber); display: block;
}
.chancesup-logo-name { display: block; font-family: var(--cs-serif); font-size: var(--cs-f-1); font-weight: 600; line-height: 1.1; }
.chancesup-logo-tag { display: block; font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cs-ink-3); }
.chancesup-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--cs-c); align-items: center; }
.chancesup-menu a { text-decoration: none; color: var(--cs-ink-2); font-size: var(--cs-f--1); font-weight: 600; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.chancesup-menu a:hover, .chancesup-menu a.cs-actif { color: var(--cs-ink); border-bottom-color: var(--cs-amber); }
.chancesup-menu-alt { color: var(--cs-navy) !important; }
.chancesup-burger { display: none; width: 3rem; height: 3rem; background: var(--cs-navy); border: none; border-radius: var(--cs-r); padding: 0.65rem 0.55rem; cursor: pointer; }
.chancesup-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.chancesup-burger span + span { margin-top: 4px; }

/* --- sections --- */
.chancesup-main { display: block; min-height: 46vh; }
.chancesup-sec { padding-block: var(--cs-e); }
.chancesup-sec + .chancesup-sec { border-top: 1px solid var(--cs-line); }
.chancesup-head { max-width: 44rem; }
.chancesup-head h1 { font-size: var(--cs-f-3); }
.chancesup-head h2 { font-size: var(--cs-f-2); }
.chancesup-eyebrow { font-size: var(--cs-f--1); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cs-amber); margin-bottom: var(--cs-b); }
.chancesup-standfirst { font-family: var(--cs-serif); font-size: var(--cs-f-1); color: var(--cs-ink-2); }

/* --- tableau de classement --- */
.chancesup-rankwrap { overflow-x: auto; box-shadow: var(--cs-shadow); border-radius: var(--cs-r); background: var(--cs-card); }
.chancesup-rank { width: 100%; border-collapse: collapse; min-width: 46rem; font-size: var(--cs-f--1); }
.chancesup-rank th, .chancesup-rank td { text-align: left; padding: var(--cs-b) var(--cs-c); border-bottom: 1px solid var(--cs-line); vertical-align: middle; }
.chancesup-rank thead th { background: var(--cs-bg-2); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-ink-3); }
.chancesup-rank tbody tr:last-child td { border-bottom: none; }
.chancesup-rank-pos { font-family: var(--cs-serif); font-size: var(--cs-f-1); color: var(--cs-ink-3); width: 3rem; }
.chancesup-rank-name { font-family: var(--cs-serif); font-size: var(--cs-f-1); font-weight: 600; }
.chancesup-rank td:last-child { text-align: right; white-space: nowrap; }
.chancesup-agrement { font-size: var(--cs-f--1); color: var(--cs-ink-2); }

/* --- note visuelle --- */
.chancesup-score { display: flex; align-items: center; gap: 0.5rem; }
.chancesup-score-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.chancesup-score-bar { width: 4.5rem; height: 5px; background: var(--cs-line); border-radius: 999px; overflow: hidden; }
.chancesup-score-bar span { display: block; height: 100%; background: var(--cs-navy); }
.chancesup-score-bar span.cs-w0 { width: 0%; }
.chancesup-score-bar span.cs-w2 { width: 2%; }
.chancesup-score-bar span.cs-w4 { width: 4%; }
.chancesup-score-bar span.cs-w6 { width: 6%; }
.chancesup-score-bar span.cs-w8 { width: 8%; }
.chancesup-score-bar span.cs-w10 { width: 10%; }
.chancesup-score-bar span.cs-w12 { width: 12%; }
.chancesup-score-bar span.cs-w14 { width: 14%; }
.chancesup-score-bar span.cs-w16 { width: 16%; }
.chancesup-score-bar span.cs-w18 { width: 18%; }
.chancesup-score-bar span.cs-w20 { width: 20%; }
.chancesup-score-bar span.cs-w22 { width: 22%; }
.chancesup-score-bar span.cs-w24 { width: 24%; }
.chancesup-score-bar span.cs-w26 { width: 26%; }
.chancesup-score-bar span.cs-w28 { width: 28%; }
.chancesup-score-bar span.cs-w30 { width: 30%; }
.chancesup-score-bar span.cs-w32 { width: 32%; }
.chancesup-score-bar span.cs-w34 { width: 34%; }
.chancesup-score-bar span.cs-w36 { width: 36%; }
.chancesup-score-bar span.cs-w38 { width: 38%; }
.chancesup-score-bar span.cs-w40 { width: 40%; }
.chancesup-score-bar span.cs-w42 { width: 42%; }
.chancesup-score-bar span.cs-w44 { width: 44%; }
.chancesup-score-bar span.cs-w46 { width: 46%; }
.chancesup-score-bar span.cs-w48 { width: 48%; }
.chancesup-score-bar span.cs-w50 { width: 50%; }
.chancesup-score-bar span.cs-w52 { width: 52%; }
.chancesup-score-bar span.cs-w54 { width: 54%; }
.chancesup-score-bar span.cs-w56 { width: 56%; }
.chancesup-score-bar span.cs-w58 { width: 58%; }
.chancesup-score-bar span.cs-w60 { width: 60%; }
.chancesup-score-bar span.cs-w62 { width: 62%; }
.chancesup-score-bar span.cs-w64 { width: 64%; }
.chancesup-score-bar span.cs-w66 { width: 66%; }
.chancesup-score-bar span.cs-w68 { width: 68%; }
.chancesup-score-bar span.cs-w70 { width: 70%; }
.chancesup-score-bar span.cs-w72 { width: 72%; }
.chancesup-score-bar span.cs-w74 { width: 74%; }
.chancesup-score-bar span.cs-w76 { width: 76%; }
.chancesup-score-bar span.cs-w78 { width: 78%; }
.chancesup-score-bar span.cs-w80 { width: 80%; }
.chancesup-score-bar span.cs-w82 { width: 82%; }
.chancesup-score-bar span.cs-w84 { width: 84%; }
.chancesup-score-bar span.cs-w86 { width: 86%; }
.chancesup-score-bar span.cs-w88 { width: 88%; }
.chancesup-score-bar span.cs-w90 { width: 90%; }
.chancesup-score-bar span.cs-w92 { width: 92%; }
.chancesup-score-bar span.cs-w94 { width: 94%; }
.chancesup-score-bar span.cs-w96 { width: 96%; }
.chancesup-score-bar span.cs-w98 { width: 98%; }
.chancesup-score-bar span.cs-w100 { width: 100%; }

/* --- logos des opérateurs --- */
.chancesup-oplogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 2.9rem;
  padding: 0.3rem 0.5rem;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-r);
  margin-bottom: var(--cs-b);
}
.chancesup-oplogo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.chancesup-rank .chancesup-oplogo { margin-bottom: 0; width: 6.2rem; height: 2.5rem; }
.chancesup-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- fiches opérateurs --- */
.chancesup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--cs-c); }
.chancesup-op { background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: var(--cs-r); padding: var(--cs-d); box-shadow: var(--cs-shadow); display: flex; flex-direction: column; }
.chancesup-op-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cs-b); }
.chancesup-op h3 { font-size: var(--cs-f-2); margin-bottom: var(--cs-a); }
.chancesup-op-agrement { font-size: var(--cs-f--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cs-ink-3); margin-bottom: var(--cs-c); }
.chancesup-op p { color: var(--cs-ink-2); }
.chancesup-prosecons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-c); margin-block: var(--cs-c); }
.chancesup-prosecons h3, .chancesup-prosecons h4 { font-family: var(--cs-sans); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--cs-a); }
.chancesup-prosecons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: var(--cs-f--1); color: var(--cs-ink-2); }
.chancesup-plus h3, .chancesup-plus h4 { color: var(--cs-good); }
.chancesup-moins h3, .chancesup-moins h4 { color: var(--cs-bad); }
.chancesup-plus li::before { content: '+ '; color: var(--cs-good); font-weight: 800; }
.chancesup-moins li::before { content: '– '; color: var(--cs-bad); font-weight: 800; }
.chancesup-op-foot { margin-top: auto; padding-top: var(--cs-c); border-top: 1px solid var(--cs-line); display: flex; align-items: center; justify-content: space-between; gap: var(--cs-b); flex-wrap: wrap; }

/* --- méthode : grille numérotée --- */
.chancesup-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--cs-c); counter-reset: st; }
.chancesup-step { background: var(--cs-bg-2); border-radius: var(--cs-r); padding: var(--cs-c); counter-increment: st; }
.chancesup-step::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--cs-serif); font-size: var(--cs-f-2); color: var(--cs-amber); line-height: 1; margin-bottom: var(--cs-b); }
.chancesup-step h3 { font-size: var(--cs-f-1); margin-bottom: var(--cs-a); }
.chancesup-step p { font-size: var(--cs-f--1); color: var(--cs-ink-2); margin: 0; }

/* --- encadré --- */
.chancesup-callout { background: var(--cs-card); border: 1px solid var(--cs-line); border-left: 4px solid var(--cs-navy); border-radius: var(--cs-r); padding: var(--cs-d); }
.chancesup-callout p:last-child { margin-bottom: 0; }
.chancesup-fine { font-size: var(--cs-f--1); color: var(--cs-ink-3); }

/* --- Q/R --- */
.chancesup-qr details { border-bottom: 1px solid var(--cs-line); padding-block: var(--cs-c); }
.chancesup-qr summary { cursor: pointer; font-family: var(--cs-serif); font-size: var(--cs-f-1); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--cs-c); }
.chancesup-qr summary::-webkit-details-marker { display: none; }
.chancesup-qr summary::after { content: '+'; color: var(--cs-amber); font-weight: 800; }
.chancesup-qr details[open] summary::after { content: '–'; }
.chancesup-qr p { margin: var(--cs-b) 0 0; color: var(--cs-ink-2); max-width: 62ch; }

/* --- prose légale --- */
.chancesup-prose { max-width: 44rem; padding-block: var(--cs-e); }
.chancesup-prose h1 { font-size: var(--cs-f-3); }
.chancesup-prose h2 { font-size: var(--cs-f-1); margin-top: var(--cs-d); }
.chancesup-prose p, .chancesup-prose li { color: var(--cs-ink-2); }
.chancesup-date { font-size: var(--cs-f--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cs-ink-3); }

/* --- formulaire --- */
.chancesup-formzone { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-e); padding-block: var(--cs-e); align-items: start; }
.chancesup-form { display: grid; gap: var(--cs-c); background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: var(--cs-r); padding: var(--cs-d); box-shadow: var(--cs-shadow); }
.chancesup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-c); }
.chancesup-input { display: grid; gap: 0.25rem; }
.chancesup-input label { font-size: var(--cs-f--1); font-weight: 700; color: var(--cs-ink-2); }
.chancesup-input input, .chancesup-input select, .chancesup-input textarea {
  width: 100%; font-family: var(--cs-sans); font-size: var(--cs-f-0); color: var(--cs-ink);
  background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-r); padding: 0.65rem 0.75rem;
}
.chancesup-input textarea { min-height: 8rem; resize: vertical; }
.chancesup-input input:focus, .chancesup-input select:focus, .chancesup-input textarea:focus { border-color: var(--cs-navy); outline: none; }
.chancesup-msg { display: none; padding: 0.75rem 0.85rem; font-size: var(--cs-f--1); border-radius: var(--cs-r); border: 1px solid transparent; }
.chancesup-msg.cs-visible { display: block; }
.chancesup-msg.cs-ok { border-color: var(--cs-good); color: var(--cs-good); background: #f2f9f5; }
.chancesup-msg.cs-erreur { border-color: var(--cs-bad); color: var(--cs-bad); background: #fdf4f2; }
.chancesup-btn[disabled] { opacity: 0.55; cursor: progress; }

/* --- pied --- */
.chancesup-bottom { background: var(--cs-bg-2); border-top: 1px solid var(--cs-line); padding-block: var(--cs-d); font-size: var(--cs-f--1); }
.chancesup-bottom-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 1.1fr; gap: var(--cs-d); padding-bottom: var(--cs-c); border-bottom: 1px solid var(--cs-line); }
.chancesup-bottom-name { font-family: var(--cs-serif); font-size: var(--cs-f-1); font-weight: 600; margin-bottom: var(--cs-a); }
.chancesup-bottom-text { color: var(--cs-ink-2); }
.chancesup-bottom-head { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cs-ink-3); margin-bottom: var(--cs-b); }
.chancesup-bottom ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.chancesup-bottom a { color: var(--cs-ink-2); text-decoration: none; }
.chancesup-bottom a:hover { color: var(--cs-amber); }
.chancesup-disclaimer { padding-top: var(--cs-c); color: var(--cs-ink-3); }
.chancesup-disclaimer p { max-width: 92ch; }
.chancesup-copy { color: var(--cs-line); }

/* --- cookies --- */
.chancesup-cookiebox {
  position: fixed; inset-inline: var(--cs-c); bottom: var(--cs-c); z-index: 55; max-width: 32rem;
  margin-inline: auto; background: #fff; border: 1px solid var(--cs-navy); border-radius: var(--cs-r);
  box-shadow: var(--cs-shadow); padding: var(--cs-c);
  display: flex; flex-wrap: wrap; gap: var(--cs-b); align-items: center; justify-content: space-between;
}
.chancesup-cookiebox p { margin: 0; flex: 1 1 15rem; font-size: var(--cs-f--1); color: var(--cs-ink-2); }

/* --- responsive --- */
@media (max-width: 62rem) {
  .chancesup-formzone { grid-template-columns: 1fr; }
  .chancesup-bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
  .chancesup-burger { display: block; }
  .chancesup-menu { position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--cs-line); display: none; }
  .chancesup-menu.cs-ouvert { display: block; }
  .chancesup-menu ul { flex-direction: column; gap: 0; padding: var(--cs-b) var(--cs-c) var(--cs-c); }
  .chancesup-menu li { border-bottom: 1px solid var(--cs-line); }
  .chancesup-menu li:last-child { border-bottom: none; }
  .chancesup-menu a { display: block; padding-block: 0.8rem; font-size: var(--cs-f-0); border-bottom: none; }
  .chancesup-prosecons { grid-template-columns: 1fr; }
  .chancesup-pair { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .chancesup-bottom-grid { grid-template-columns: 1fr; }
  .chancesup-btn { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
