/* ==========================================================================
   Celsius Casino Codes — feuille unique (FR + HU)
   Couleurs, logo et favicon de la marque Celsius, comme sur le reste du
   réseau. Seule la carte à gratter garde sa couche de givre (Celsius =
   température). Toutes les couleurs passent par les variables ci-dessous.
   ========================================================================== */

:root {
  /* Palette de la marque Celsius (CSS de production celsiuscasino.com) :
     navy + dégradé corail du logo °C. */
  --bg:        #09153a;
  --bg-2:      #0e1b41;
  --surface:   #121e46;
  --surface-3: #1a2b5c;
  --line:      #22345d;
  --line-2:    #394d84;

  --text:      #ffffff;
  --text-soft: #c3d0f0;
  --text-mute: #819cdb;

  --ice-1:  #ff7a6b;          /* corail clair (codes, accents) */
  --ice-2:  #fa365f;          /* corail marque */
  --ice-3:  #ec6a47;          /* orange marque */
  --ice-ink:#ffffff;          /* texte sur bouton corail */
  --ice-dim: rgba(250, 54, 95, .13);
  --ice-rgb: 250, 54, 95;
  --link:   #58abf2;

  --warm:   #fec262;          /* jaune du site (18+, alertes) */
  --warm-dim: rgba(254, 194, 98, .10);
  --ok:     #06e70b;

  --radius:   18px;
  --radius-s: 12px;
  --wrap: 1160px;
  --prose: 780px;

  --f-head: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font: 400 17px/1.7 var(--f-body);
  overflow-x: hidden;
}
body::before {               /* halo glacé + motif flocons très discret */
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(250, 54, 95, .13), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(88, 171, 242, .10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%23ffffff' stroke-opacity='.035' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M30 18v24M19.6 24l20.8 12M19.6 36l20.8-12'/%3E%3Cpath d='M92 76v16M85 80l14 8M85 88l14-8'/%3E%3C/g%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
strong, b { color: var(--text); font-weight: 700; }
:focus-visible { outline: 2px solid var(--ice-1); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* ---------- Titres ---------- */
h1, h2, h3 { color: var(--text); font-family: var(--f-head); line-height: 1.22; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin: 64px 0 18px; }
h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 700; margin: 34px 0 12px; }
h2::before {
  content: '';
  display: block;
  width: 44px; height: 4px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ice-1), var(--ice-3));
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--ice-2); font-weight: 700; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 21, 58, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 700 15px/1.1 var(--f-head);
  margin-right: auto;
  white-space: nowrap;
}
.brand img { width: auto; height: 42px; flex: none; }
.brand-codes {                 /* « Codes » à côté du logo de la marque */
  font: 800 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--ice-2), var(--ice-3));
  padding: 7px 10px; border-radius: 8px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 420px) {
  .top .wrap { gap: 8px; }
  .brand { gap: 6px; min-width: 0; }
  .brand img { height: 34px; }
  .brand-codes { font-size: 10px; padding: 6px 7px; letter-spacing: .1em; }
  .lang a { padding: 7px 9px; }
  .age { width: 32px; height: 32px; font-size: 11px; }
}

.lang { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang a {
  font: 700 12px/1 var(--f-body); letter-spacing: .06em;
  color: var(--text-mute); text-decoration: none;
  padding: 7px 11px; border-radius: 999px;
}
.lang a[aria-current="page"] { background: var(--ice-dim); color: var(--ice-1); }
.lang a:hover { color: var(--text); }

.age {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--warm);
  color: var(--warm);
  font: 800 12px/1 var(--f-body);
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 8px; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ice-1);
  background: var(--ice-dim);
  border: 1px solid rgba(var(--ice-rgb), .25);
  padding: 8px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.eyebrow.is-off { color: var(--text-mute); background: var(--surface); border-color: var(--line-2); }
.eyebrow.is-off::before { background: var(--text-mute); box-shadow: none; }
.byline { font-size: 14px; color: var(--text-mute); margin-bottom: 18px; }
.byline i { font-style: normal; }
.lead { font-size: 18px; color: var(--text-soft); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-facts li {
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font: 600 14px/1.2 var(--f-body); color: var(--text-soft);
}
.hero-facts b { font-family: var(--f-head); color: var(--ice-1); font-size: 15px; }

/* Section 1 : titre au-dessus de la carte, dans la colonne droite */
.code-col h2 { margin: 0 0 14px; font-size: clamp(18px, 2.2vw, 21px); }
.code-col h2::before { display: none; }

/* ---------- Carte du code (ticket givré) ---------- */
.code-card {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(var(--ice-rgb), .12), transparent 40%),
    var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--ice-rgb), .05) inset;
}
.code-card::before {          /* liseré glacé */
  content: ''; position: absolute; inset: -1px; border-radius: 25px; padding: 1px;
  background: linear-gradient(140deg, rgba(var(--ice-rgb), .7), transparent 35%, transparent 65%, rgba(var(--ice-rgb), .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.cc-head { display: flex; align-items: center; gap: 14px; }
.cc-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-3); }
.cc-week {
  display: inline-block;
  font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ice-1); margin-bottom: 6px;
}
.cc-game { font: 700 17px/1.2 var(--f-head); color: var(--text); }
.cc-spins { font-size: 14px; color: var(--text-mute); }

.cc-scratch {
  position: relative;
  margin: 18px 0 0;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(var(--ice-rgb), .05) 0 10px, transparent 10px 20px),
    var(--bg-2);
  border: 1px dashed rgba(var(--ice-rgb), .4);
  display: grid; place-items: center;
}
.cc-code {
  font: 800 clamp(26px, 7.4vw, 40px)/1 var(--f-mono);
  letter-spacing: .08em;
  color: var(--ice-1);
  text-shadow: 0 0 24px rgba(var(--ice-rgb), .55);
  user-select: all;
  padding: 0 10px;
  text-align: center;
  word-break: break-all;
}
.scratch-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  cursor: grab;
  border-radius: 16px;
  background: linear-gradient(135deg, #e9f8ff, #b5e4f7 45%, #d6f1fc);  /* avant le JS */
  transition: opacity .4s ease, transform .4s ease;
}
.scratch-layer.is-ready { background: none; }
.scratch-layer:active { cursor: grabbing; }
.scratch-layer.is-gone { opacity: 0; transform: scale(1.03); pointer-events: none; }

.cc-soon { display: none; text-align: center; padding: 0 16px; }
.cc-soon b { display: block; font: 700 19px/1.3 var(--f-head); color: var(--text); margin-bottom: 6px; }
.cc-soon span { font-size: 14px; color: var(--text-mute); }
.code-card[data-mode="over"] .cc-code,
.code-card[data-mode="over"] .cc-head,
.code-card[data-mode="over"] .cc-timer,
.code-card[data-mode="over"] .cc-actions,
.code-card[data-mode="over"] .cc-skip { display: none; }
.code-card[data-mode="over"] .cc-soon { display: block; }
.code-card[data-mode="gap"] .cc-code { filter: blur(5px); opacity: .6; }

.cc-perf {                     /* perforation de ticket */
  position: relative; margin: 18px -20px 16px; height: 0;
  border-top: 2px dashed var(--line-2);
}
.cc-perf::before, .cc-perf::after {
  content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg);
}
.cc-perf::before { left: -11px; }
.cc-perf::after { right: -11px; }

.cc-timer {
  display: flex; align-items: center; gap: 8px;
  font: 700 14px/1.3 var(--f-body); color: var(--text);
  min-height: 20px;
  margin-bottom: 14px;
}
.cc-timer svg { width: 18px; height: 18px; color: var(--ice-2); flex: none; }

.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .cc-actions { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 20px;
  border-radius: 14px; border: 0;
  font: 800 15px/1.2 var(--f-body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.btn-ice {
  color: var(--ice-ink);
  background: linear-gradient(135deg, var(--ice-2), var(--ice-3));
  box-shadow: 0 12px 30px -12px rgba(var(--ice-rgb), .6);
}
.btn-ice:hover { color: var(--ice-ink); transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(var(--ice-rgb), .75); }
.btn-ghost {
  color: var(--ice-1);
  background: transparent;
  border: 1.5px solid rgba(var(--ice-rgb), .5);
}
.btn-ghost:hover:not(:disabled) { background: var(--ice-dim); color: #fff; }
.btn-ghost.is-copied { border-color: var(--ok); color: var(--ok); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; min-height: 22px; }
.cc-skip {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 14px/1.4 var(--f-body); color: var(--ice-1);
  text-decoration: underline; text-underline-offset: 3px;
}
.cc-skip:hover { color: #fff; }
.cc-skip[hidden] { display: inline; visibility: hidden; }
.sponsor-note { font-size: 12px; color: var(--text-mute); white-space: nowrap; }

.code-card.is-revealed .cc-scratch { border-style: solid; border-color: rgba(var(--ice-rgb), .55); box-shadow: 0 0 40px -10px rgba(var(--ice-rgb), .5) inset; }

/* ---------- Corps d'article ---------- */
.article { padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 979px) { .hero-facts { display: none; } .article { padding-top: 12px; } }
.prose { max-width: var(--prose); }
.section-wide { max-width: none; }

/* ---------- Grille des 4 semaines ---------- */
.weeks {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin: 8px 0 30px;
  padding: 0; list-style: none;
}
@media (min-width: 600px) { .weeks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .weeks { grid-template-columns: repeat(4, 1fr); } }
.wk {
  position: relative; margin: 0;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.wk-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; }
.wk-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 30, 70, .97)); }
.wk-num {
  position: absolute; z-index: 1; top: 12px; left: 12px;
  font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(9, 21, 58, .78); padding: 7px 10px; border-radius: 999px;
}
.wk-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wk-game { font: 700 16px/1.25 var(--f-head); color: var(--text); margin: 0; }
.wk-dates { font-size: 13px; color: var(--text-mute); line-height: 1.4; min-height: 36px; }
.wk-code {
  margin-top: auto;
  font: 800 16px/1 var(--f-mono); letter-spacing: .08em;
  color: var(--text);
  padding: 12px; border-radius: 10px; text-align: center;
  background: var(--bg-2); border: 1px dashed var(--line-2);
}
.wk-status { font: 700 13px/1.35 var(--f-body); color: var(--text-mute); min-height: 18px; }

.wk[data-state="active"] { border-color: rgba(var(--ice-rgb), .7); box-shadow: 0 0 0 1px rgba(var(--ice-rgb), .35), 0 20px 40px -20px rgba(var(--ice-rgb), .55); }
.wk[data-state="active"] .wk-num { background: var(--ice-2); color: var(--ice-ink); }
.wk[data-state="active"] .wk-status { color: var(--ice-1); }
.wk[data-state="active"].is-shown .wk-code { color: var(--ice-1); border-style: solid; border-color: rgba(var(--ice-rgb), .5); }
.wk[data-state="upcoming"] .wk-code { filter: blur(4px); color: var(--text-mute); user-select: none; }
.wk[data-state="expired"] .wk-img img { filter: grayscale(1) brightness(.6); }
.wk[data-state="expired"] .wk-code { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--text-mute); }
.wk[data-state="expired"] .wk-status { color: var(--warm); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: var(--radius-s); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-3); color: var(--text); font: 700 13px/1.3 var(--f-body); letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
td { background: var(--surface); }
td code, .mono { font-family: var(--f-mono); font-weight: 700; color: var(--ice-1); }

/* ---------- Encadrés ---------- */
.badges { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0 0 22px; }
.badges li {
  margin: 0; padding: 16px 18px 16px 58px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.badges li::before {
  content: ''; position: absolute; left: 16px; top: 17px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ice-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.alert {
  padding: 18px 20px; margin: 0 0 24px;
  border-radius: var(--radius-s);
  background: var(--warm-dim);
  border: 1px solid rgba(254, 194, 98, .35);
  border-left: 4px solid var(--warm);
}
.alert p { margin: 0; }
.alert b:first-child { color: var(--warm); }

/* Étapes numérotées */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.steps > li {
  counter-increment: s; position: relative; margin: 0;
  padding: 16px 18px 16px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.steps > li::before {
  content: counter(s);
  position: absolute; left: 16px; top: 14px;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font: 800 15px/1 var(--f-head); color: var(--ice-ink);
  background: linear-gradient(135deg, var(--ice-1), var(--ice-2));
}
.steps-plain > li::before { background: var(--surface-3); color: var(--ice-1); }

.shots { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 24px; }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shots img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 8px 0 28px; }
.cta-row .btn { min-width: 260px; }
@media (max-width: 480px) { .cta-row .btn { min-width: 0; width: 100%; } }

/* Fiches jeux */
.game { display: grid; gap: 18px; align-items: start; margin: 26px 0; }
@media (min-width: 640px) { .game { grid-template-columns: 150px 1fr; } }
.game img { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line-2); }
.game h3 { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin: 0 0 26px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.faq summary::after {
  content: ''; flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ice-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a6b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 40px; font-size: 14px; color: var(--text-mute); }
.foot-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.foot .brand { margin: 0; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.foot-pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; color: var(--text-soft); }
.foot-pill.warm { border-color: var(--warm); color: var(--warm); }
.foot p { margin: 0 0 10px; }
.foot .disclaimer { font-style: italic; max-width: 900px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Images de contenu ---------- */
.pic { margin: 6px 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.pic img { width: 100%; height: auto; }
.pic-pair { display: grid; gap: 14px; margin: 6px 0 24px; }
.pic-pair .pic { margin: 0; }
@media (min-width: 640px) { .pic-pair { grid-template-columns: 1fr 1fr; } }
.pic-narrow { max-width: 620px; }
