:root {
  --bg: #0a0e27;
  --bg-soft: #11173a;
  --card: #151c44;
  --border: #232c5e;
  --text: #eef1ff;
  --muted: #9aa3c9;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --gradient: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center; font-weight: 900; color: #0a0e27;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn {
  display: inline-block; border: none; cursor: pointer;
  background: var(--gradient); color: #08102a; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 0.95rem;
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 92, 255, .35); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Hero */
.hero { padding: 120px 0 90px; min-height: 88vh; display: flex; align-items: center; text-align: center; position: relative; overflow: hidden; }
.hero > .container { width: 100%; }
.hero::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; background: radial-gradient(circle, rgba(124,92,255,.25), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.badge {
  display: inline-block; font-size: 0.8rem; color: var(--accent-2);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  background: var(--bg-soft);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 850; letter-spacing: -2px; line-height: 1.04; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; margin: 22px auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* Page hero (pages intérieures) */
.page-hero { padding: 70px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 850; letter-spacing: -1px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 18px auto 0; }

/* Sections */
section.block { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 14px; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -1px; }
.section-sub { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 48px; }

/* Cards / features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Trust */
.trust { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.trust-item h4 { color: var(--accent-2); font-size: 1.05rem; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 0.92rem; }

/* Classement casinos */
.rank-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.rank-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
}
.rank-num { font-size: 1.6rem; font-weight: 900; color: var(--accent-2); min-width: 36px; text-align: center; }
.rank-body { flex: 1; }
.rank-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.rank-body p { color: var(--muted); font-size: 0.92rem; }
.stars { color: #ffcf5c; letter-spacing: 2px; font-size: 0.95rem; margin-top: 4px; }

/* Waitlist */
.waitlist { text-align: center; }
.form-row { display: flex; gap: 12px; justify-content: center; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.form-row input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 1rem;
}
.form-row input:focus { outline: none; border-color: var(--accent); }
.form-msg { margin-top: 16px; font-size: 0.95rem; min-height: 22px; }
.form-msg.ok { color: var(--accent-2); }
.form-msg.err { color: #ff7b7b; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.85rem; }
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.age { border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-weight: 700; color: var(--text); }
.disclaimer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.7; }

@media (max-width: 560px) { .rank-item { flex-direction: column; text-align: center; } }

/* ===== Composants "site complet" ===== */

/* Actions nav (connexion / inscription) */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.link-login { color: var(--muted); font-size: .95rem; }
.link-login:hover { color: var(--text); }

/* Bouton hamburger + panneau de navigation responsive */
.nav-toggle {
  display: none; padding: 0; width: 42px; height: 38px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before { position: absolute; top: -6px; }
.nav-toggle .bar::after { position: absolute; top: 6px; }
.nav.open .nav-toggle .bar { background: transparent; }
.nav.open .nav-toggle .bar::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle .bar::after { transform: translateY(-6px) rotate(-45deg); }
.nav-collapse { display: contents; }

/* État connecté dans la barre de nav */
.auth-user { display: flex; align-items: center; gap: 12px; }
.auth-name { color: var(--text); font-weight: 600; font-size: .9rem; }
.auth-admin { color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.auth-admin:hover { color: var(--text); }
.nav-actions.is-auth > .link-login,
.nav-actions.is-auth > a.btn { display: none; }

/* Faux logos casinos */
.casino-logo {
  width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; color: #08102a;
  letter-spacing: -0.5px;
}
.rank-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bonus-tag { font-size: .78rem; color: var(--accent-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--bg-soft); }
.score { font-weight: 800; color: #ffcf5c; }

/* Tarifs */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .plan { font-weight: 700; color: var(--accent-2); letter-spacing: .5px; text-transform: uppercase; font-size: .8rem; }
.price-card .amount { font-size: 2.4rem; font-weight: 900; margin: 12px 0; }
.price-card .amount span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 18px 0 26px; text-align: left; }
.price-card li { color: var(--muted); padding: 6px 0 6px 24px; position: relative; font-size: .95rem; }
.price-card li::before { content: "✓"; color: var(--accent-2); position: absolute; left: 0; }

/* Assistant IA (chat) */
.auth-gate { max-width: 600px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 28px; }
.auth-gate h3 { font-size: 1.3rem; margin-bottom: 10px; }
.auth-gate p { color: var(--muted); margin-bottom: 20px; }
.chat { max-width: 600px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); font-weight: 700; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.bubble { padding: 12px 16px; border-radius: 14px; max-width: 82%; font-size: .95rem; line-height: 1.45; }
.bubble.bot { background: var(--bg-soft); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.me { background: var(--gradient); color: #08102a; align-self: flex-end; border-top-right-radius: 4px; font-weight: 600; }
.chat-input { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.chat-input input:focus { outline: none; border-color: var(--accent); }

/* Pages auth */
.auth-wrap { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.auth-wrap h1 { font-size: 1.6rem; margin-bottom: 6px; text-align: center; }
.auth-wrap p.sub { color: var(--muted); text-align: center; margin-bottom: 24px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; }
.field input:focus { outline: none; border-color: var(--accent); }
.btn-full { width: 100%; text-align: center; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* Fiche d'avis casino */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin: 32px 0 12px; font-size: 1.4rem; }
.article p { color: var(--muted); margin-bottom: 12px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.proscons .col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.proscons h3 { font-size: 1rem; margin-bottom: 10px; }
.proscons ul { list-style: none; }
.proscons li { padding: 5px 0 5px 22px; position: relative; color: var(--muted); font-size: .92rem; }
.pros li::before { content: "✓"; color: #3ddc84; position: absolute; left: 0; }
.cons li::before { content: "✕"; color: #ff7b7b; position: absolute; left: 0; }
.verdict { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }

/* Animation au défilement (inspirée des sites premium : fondu + léger zoom, easing très doux) */
.reveal { opacity: 0; transform: translateY(42px) scale(0.985); transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
/* Apparition en cascade pour les groupes d'éléments */
.grid > *:nth-child(2), .trust-grid > *:nth-child(2), .stats-grid > *:nth-child(2), .price-grid > *:nth-child(2) { transition-delay: .09s; }
.grid > *:nth-child(3), .trust-grid > *:nth-child(3), .stats-grid > *:nth-child(3) { transition-delay: .18s; }
.grid > *:nth-child(4), .stats-grid > *:nth-child(4) { transition-delay: .27s; }
/* Entrée échelonnée du premier écran (hero), façon Apple */
.hero .badge.reveal { transition-delay: 0s; }
.hero h1.reveal { transition-delay: .08s; }
.hero .lead.reveal { transition-delay: .16s; }
.hero-cta.reveal { transition-delay: .24s; }
.hero-note.reveal { transition-delay: .3s; }
.page-hero .badge.reveal { transition-delay: 0s; }
.page-hero h1.reveal { transition-delay: .08s; }
.page-hero p.reveal { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Liens légaux du footer */
.footer-links { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

/* Sélecteur de langue (menu déroulant au survol, style premium) */
.lang { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px; font-size: .85rem; cursor: pointer; font-family: inherit;
}
.lang-caret { font-size: .65rem; transition: transform .25s ease; }
.lang-menu {
  position: absolute; top: 100%; right: 0; min-width: 152px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none;
  transition: opacity .28s cubic-bezier(0.16,1,0.3,1), transform .28s cubic-bezier(0.16,1,0.3,1);
  z-index: 60;
}
/* pont invisible pour ne pas perdre le survol entre le bouton et le menu */
.lang-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.lang:hover .lang-menu, .lang:focus-within .lang-menu, .lang.open .lang-menu { opacity: 1; transform: translateY(8px); pointer-events: auto; }
.lang:hover .lang-caret, .lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu li { padding: 9px 12px; border-radius: 9px; font-size: .9rem; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.lang-menu li:hover { background: var(--bg-soft); color: var(--text); }
.lang-menu li.active { color: var(--accent-2); }

/* Statistiques page résultats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto 40px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Back office admin */
.admin-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table thead th { color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-family: inherit; }
.adm-ia { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }

/* Pages légales / texte long */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin: 28px 0 10px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0 0 12px 20px; }

/* Transition de page : fondu propre à l'arrivée et au départ (style premium) */
body { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity .28s ease; animation: none; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.is-leaving { transition: none; }
}

/* Section showcase (style page produit premium) */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 50px 0; }
.showcase-row:nth-child(even) .showcase-text { order: 2; }
.showcase-text h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 850; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 18px; }
.showcase-text .big { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.showcase-text p { color: var(--muted); font-size: 1.1rem; max-width: 440px; }
.showcase-visual { display: flex; justify-content: center; }
@media (max-width: 780px) {
  .showcase-row { grid-template-columns: 1fr; gap: 28px; padding: 30px 0; }
  .showcase-row:nth-child(even) .showcase-text { order: 0; }
}

/* Mockup "produit" : carte de prédiction stylisée */
.mock-card { width: 100%; max-width: 380px; background: linear-gradient(160deg, #1a2150, #0c1130); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 22px; font-size: .98rem; }
.mc-badge { font-size: .68rem; color: var(--accent-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.mc-row { margin-bottom: 16px; }
.mc-label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 7px; color: var(--muted); }
.mc-label b { color: var(--text); }
.mc-track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.mc-fill { height: 100%; border-radius: 999px; background: var(--gradient); }
.mock-stat { text-align: center; padding: 44px 26px; }
.mc-big { font-size: 4.5rem; font-weight: 900; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mc-sub { color: var(--muted); margin-top: 10px; }

/* ===== Navigation responsive (placée en fin de fichier pour primer sur les styles de base) ===== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapse {
    display: block; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10, 14, 39, 0.98); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease;
  }
  .nav.open .nav-collapse { max-height: calc(100vh - 68px); overflow: auto; opacity: 1; pointer-events: auto; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px; }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 22px; }
  .nav-actions .btn, .nav-actions .link-login { width: 100%; text-align: center; }
  .nav-actions .link-login { padding: 6px 0; }
  .lang { align-self: stretch; }
  .lang-trigger { width: 100%; justify-content: center; }
  .lang-menu { left: 0; right: auto; }
  .nav-actions .auth-user { width: 100%; justify-content: space-between; }
  .nav-actions .auth-user .auth-logout { width: auto; }
}
