/* CardRed TCG — site (couleurs de l'ambiance « Nuit » de l'app) */

@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: italic; font-display: swap; font-weight: 200 1000;
  src: url(fonts/nunito-latin-wght-italic.woff2) format('woff2-variations'); }

:root {
  --night: #0F1530;
  --deep: #0A0F24;
  --panel: #1A2244;
  --line: #2B3566;
  --muted: #9AA3C7;
  --text: #EEF1FF;
  --red: #E2232F;
  --red-dark: #A3121C;
  --gold: #FFD43B;
  --gain: #4BE08A;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--gold); color: var(--deep); padding: 8px 14px; border-radius: 8px; }

/* ── En-tête ── */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 38px; flex: none; }
.brand b { font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 100%; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand b span { color: var(--gold); }
.brand small { display: block; font-family: var(--display); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.32em; color: rgba(238,241,255,.8); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 800; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--text); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ── Haut de page ── */
.hero { position: relative; padding: 28px 0 88px; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: -120px 0 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(226,35,47,.28), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255,212,59,.08), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 104%;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; letter-spacing: -0.025em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero p.lead { font-size: 1.2rem; color: #C9CFEA; max-width: 34ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 1.08rem;
  text-decoration: none; color: #fff; background: linear-gradient(180deg, var(--red), var(--red-dark));
  padding: 14px 24px; border-radius: 14px;
  box-shadow: 0 4px 0 #6E0B12, 0 14px 30px -10px rgba(226,35,47,.7);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #6E0B12; }
.cta small { color: var(--muted); font-weight: 700; font-size: .95rem; }

/* ── La page de classeur (élément fort) ── */
.sheet {
  position: relative; width: min(100%, 440px); margin-inline: auto;
  padding: 22px 22px 18px 46px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(43,53,102,.55), rgba(26,34,68,.85));
  border: 1px solid rgba(154,163,199,.22);
  box-shadow: 0 40px 80px -30px rgba(5,8,26,.9), inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotate(2.5deg);
}
.sheet .holes { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; padding-block: 40px; }
.sheet .holes i { width: 14px; height: 14px; border-radius: 50%; background: var(--night); box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.pockets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pocket {
  position: relative; aspect-ratio: 63 / 88; border-radius: 8px;
  background: rgba(10,15,36,.45);
  box-shadow: inset 0 0 0 1.5px rgba(154,163,199,.18);
}
.pocket::after { /* le bord du plastique */
  content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0 9%, transparent 9% 100%);
}
.pocket .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: .78rem; color: rgba(154,163,199,.55);
  font-variant-numeric: tabular-nums;
}
.card {
  position: absolute; inset: 4px; border-radius: 6px; overflow: hidden;
  background: #E9ECF5; padding: 7%;
  display: flex; flex-direction: column; gap: 6%;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.7);
}
.card .art { flex: 1; border-radius: 3px; position: relative; overflow: hidden; }
.card .bar { height: 9%; border-radius: 2px; background: rgba(15,21,48,.14); }
.card .bar.short { width: 62%; }
.card .no { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: .5rem; color: #4A5280; text-align: right; line-height: 1; font-variant-numeric: tabular-nums; }
.art.a1 { background: radial-gradient(circle at 70% 30%, #FFD43B 0 18%, transparent 19%), linear-gradient(160deg, #E2232F, #6E0B12); }
.art.a2 { background: radial-gradient(circle at 30% 65%, #22D3EE 0 22%, transparent 23%), linear-gradient(200deg, #1F5FD1, #0A0F24); }
.art.a3 { background: linear-gradient(135deg, transparent 48%, rgba(255,255,255,.35) 49% 51%, transparent 52%), linear-gradient(20deg, #4BE08A, #0E6B5C); }
.art.a4 { background: radial-gradient(circle at 50% 120%, #FFB547 0 45%, transparent 46%), linear-gradient(180deg, #7B2FF7, #2A0E5C); }
.art.a5 { background: conic-gradient(from 200deg at 50% 60%, #FFD43B, #E2232F, #7B2FF7, #22D3EE, #4BE08A, #FFD43B); }
.art.a6 { background: radial-gradient(circle at 60% 40%, #fff 0 10%, transparent 11%), linear-gradient(170deg, #9AA3C7, #2B3566); }
.card.holo::after {
  content: ''; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, rgba(34,211,238,.6) 52%, transparent 66%);
  background-size: 250% 100%; animation: sheen 5s ease-in-out 1.6s infinite;
}
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
.sheet-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-weight: 800; font-size: .92rem; }
.sheet-foot span { color: var(--muted); }
.sheet-foot strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 6px; background: rgba(10,15,36,.6); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 6px; transition: width .5s ease; }

/* Arrivée des cartes, une seule fois au chargement */
.js .card { opacity: 0; transform: translateY(-28px) rotate(-6deg) scale(1.04); }
.js .card.in { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.2,.9,.25,1.15), opacity .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .card { opacity: 1; transform: none; }
  .card.holo::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Sections ── */
section { padding: 84px 0; }
h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 108%;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: 1.25rem; line-height: 1.2; margin: 0 0 8px; }
.intro { color: #C9CFEA; max-width: 56ch; margin: 0; font-size: 1.1rem; }

/* Fonctions principales : texte + capture d'écran */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 44px; }
.feature + .feature { border-top: 1px solid rgba(43,53,102,.7); }
.feature:nth-child(even) .phone { order: -1; }
.feature p { color: #C9CFEA; max-width: 46ch; margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; }
.feature li { padding-left: 22px; position: relative; margin-top: 6px; }
.feature li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.phone {
  justify-self: center; width: min(100%, 290px); aspect-ratio: 9 / 19.5;
  border-radius: 38px; padding: 10px; background: #05081A;
  box-shadow: 0 0 0 1.5px var(--line), 0 40px 70px -30px rgba(0,0,0,.9);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; background: var(--deep); }

/* Le reste, en liste compacte */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px 48px; margin-top: 42px; }
.more div { border-left: 3px solid var(--red); padding-left: 18px; }
.more p { margin: 0; color: var(--muted); }
.beta-tag { font-family: var(--display); font-style: normal; font-weight: 800; font-size: .7rem; vertical-align: 3px; color: var(--deep); background: var(--gold); border-radius: 5px; padding: 2px 6px; margin-left: 6px; }

/* Premier fan : la plaque d'une carte gradée */
.fan { background: linear-gradient(180deg, var(--deep), var(--night)); }
.fan .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.slab {
  justify-self: center; width: min(100%, 300px); border-radius: 16px; padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.35);
  transform: rotate(-4deg);
}
.slab .label {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #FFE27A, var(--gold)); color: #3A2500; border-radius: 8px; padding: 10px 12px;
}
.slab .label b { font-family: var(--display); font-weight: 900; font-stretch: 90%; font-size: .95rem; line-height: 1.15; }
.slab .label small { display: block; font-weight: 800; font-size: .72rem; opacity: .8; }
.slab .label .grade { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.slab .inner { margin-top: 10px; aspect-ratio: 63/88; border-radius: 8px; background: rgba(10,15,36,.75); display: grid; place-items: center; }
.slab .inner svg { width: 46%; height: auto; filter: drop-shadow(0 12px 20px rgba(226,35,47,.45)); }
.fan p { color: #C9CFEA; max-width: 50ch; }
.fan .small { color: var(--muted); font-size: .95rem; }

/* Promesses */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.promises div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.promises div:nth-child(odd) { border-right: 1px solid var(--line); }
.promises div:nth-child(even) { padding-left: 24px; }
.promises p { margin: 0; color: var(--muted); }

/* Questions */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--gold); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: #C9CFEA; }

/* Pied de page */
.foot { background: var(--deep); padding: 48px 0 40px; color: var(--muted); font-size: .95rem; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--text); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--gold); }
.foot .legal-note { margin-top: 32px; font-size: .85rem; max-width: 80ch; }

/* ── Pages légales ── */
.doc { padding: 24px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 108%; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin: 12px 0 6px; }
.doc .version { color: var(--muted); font-weight: 700; margin: 0 0 30px; }
.doc .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.doc .tabs a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 800; font-size: .9rem; }
.doc .tabs a[aria-current] { background: var(--panel); color: var(--text); border-color: var(--gold); }
.doc h3 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc p, .doc li { color: #D3D8F0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc strong { color: #fff; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--panel); font-weight: 900; }
.doc tr:last-child td { border-bottom: 0; }

/* ── Petits écrans ── */
@media (max-width: 860px) {
  .hero .wrap, .feature, .fan .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature:nth-child(even) .phone { order: 0; }
  .hero { padding-bottom: 56px; }
  .hero p.lead { max-width: none; }
  .sheet { width: min(100%, 380px); }
  .slab { width: min(72%, 240px); }
  section { padding: 60px 0; }
  .promises { grid-template-columns: 1fr; }
  .promises div, .promises div:nth-child(even) { padding: 20px 0; border-right: 0; }
  .promises div:nth-child(odd) { border-right: 0; }
}

/* Page de parrainage */
.code-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 24px 0; padding: 18px 20px; border: 2px dashed #E53935; border-radius: 18px; }
.code-box[hidden] { display: none; }
.code-box small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; opacity: .7; }
.code-box b { font-size: 2rem; letter-spacing: .03em; word-break: break-all; }
.steps { padding-left: 1.2em; line-height: 1.6; }
.steps li { margin: 8px 0; }
