/*
    Projet  : Start-Elite
    Fichier : assets/css/index.css
    Page    : Accueil — direction « Retrouvez votre jeu »
    Charte  : ambre/or chaud sur bleu nuit. Cible 40-55 ans, nostalgique.
              Le JEU est l'accroche. Rassurance prix partout, sans chiffre.
              Les variables globales (--gold = ambre, --dark = nuit…) sont
              définies dans template.css ; on en ajoute quelques-unes ici.
*/

:root {
    --night:      #1a1530;
    --night-2:    #221b40;
    --night-3:    #2c2350;
    --amber:      #ffb648;
    --amber-soft: #ffd089;
    --magenta:    #ff5db1;
    --coin:       #ffce4a;
    --line:       rgba(255,255,255,0.10);
    --se-text:    #f7f4ff;
    --se-text-soft:#e2dcf2;
    --se-text-mute:#bcb4d4;
}

/* ════════════════════════════════════════════════
   BASES
   ════════════════════════════════════════════════ */
main { background: var(--night); }

.se-wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--amber);
}
.eyebrow::before {
    content: ''; width: 26px; height: 2px;
    background: var(--amber); border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
    content: ''; width: 26px; height: 2px;
    background: var(--amber); border-radius: 2px;
}

/* Boutons */
.se-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 15px; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
    padding: 15px 30px; border-radius: 4px;
    transition: all 0.25s; display: inline-block; cursor: pointer; border: none;
}
.se-btn-primary { background: var(--amber); color: #1a1530; }
.se-btn-primary:hover {
    background: var(--amber-soft); transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,182,72,0.35);
}
.se-btn-ghost { background: transparent; color: var(--se-text); border: 1px solid var(--line); }
.se-btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; text-align: center; padding: 64px 0 52px; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,93,177,0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(255,182,72,0.10) 0%, transparent 50%),
        linear-gradient(180deg, #1f1838 0%, #1a1530 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: 0.4;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 26px; }
.hero h1 {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-weight: 400;
    font-size: clamp(46px, 7vw, 82px); line-height: 1; letter-spacing: 0.02em;
    color: var(--se-text); margin: 16px 0 18px;
}
.hero h1 span { color: var(--amber); display: block; }
.hero .lead { font-size: 19px; color: var(--se-text-soft); max-width: 48ch; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-reassure {
    margin-top: 22px; font-size: 14px; color: var(--se-text-mute);
    display: inline-flex; gap: 8px; align-items: center;
}
.hero-reassure b { color: var(--amber-soft); font-weight: 600; }
.hero-reassure svg { color: var(--amber); flex-shrink: 0; }
.hero-star {
    color: var(--amber);
    transform-origin: center;
    animation: heroStarSpin 6s linear infinite;
}
.hero-star:last-child { animation-direction: reverse; }
@keyframes heroStarSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-star { animation: none; }
}

/* ════════════════════════════════════════════════
   GRILLE DES JEUX
   ════════════════════════════════════════════════ */
.games { padding: 64px 0 30px; }
.games-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.games-head h2 {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-weight: 400;
    font-size: clamp(32px, 4.5vw, 48px); line-height: 1; letter-spacing: 0.02em;
    margin: 14px 0 12px; color: var(--se-text);
}
.games-head p { color: var(--se-text-soft); font-size: 17px; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.game {
    position: relative; border-radius: 10px; overflow: hidden; text-decoration: none;
    background: var(--night-2); border: 1px solid var(--line);
    transition: transform 0.25s, border-color 0.25s;
    display: flex; flex-direction: column;
}
.game:hover { transform: translateY(-4px); border-color: rgba(255,182,72,0.45); }

.game .art { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: var(--night-3); }
.game .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.game:hover .art img { transform: scale(1.04); }
.game .coin {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 0.12em;
    color: #1a1530; background: var(--coin); padding: 3px 8px; border-radius: 3px; opacity: 0.94;
}
.game .name {
    position: absolute; left: 14px; bottom: 12px; z-index: 2;
    font-family: 'Bebas Neue', sans-serif; font-size: 21px; letter-spacing: 0.04em;
    color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.game .art::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(15,11,30,0.75) 100%);
}
.game .foot { padding: 12px 14px 14px; }
.game .price-rea { font-size: 12px; color: var(--se-text-mute); line-height: 1.45; }
.game .cta-line {
    margin-top: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; color: var(--amber);
}
.game--perso .coin { background: var(--amber); color: #1a1530; }
/* la photo « personnalisable » est claire : on la teinte pour rester dans
   la pénombre du reste de la grille */
.game--perso .art { background: var(--night-3); }
.game--perso .art img { filter: saturate(0.85) brightness(0.82); }
.game--perso .art::after {
    background: linear-gradient(180deg, rgba(44,35,80,0.35) 0%, transparent 35%, rgba(15,11,30,0.8) 100%);
}

.games-more { text-align: center; margin-top: 34px; }

/* ════════════════════════════════════════════════
   COMMENT ÇA MARCHE
   ════════════════════════════════════════════════ */
.how {
    padding: 70px 0; background: var(--night-2);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px;
}
.how-head { text-align: center; max-width: 600px; margin: 0 auto 46px; }
.how-head h2 {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-weight: 400;
    font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: 0.02em;
    margin: 14px 0 12px; color: var(--se-text);
}
.how-head p { color: var(--se-text-soft); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; }
.step .num {
    width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #1a1530; background: var(--amber);
}
.step h3 {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; font-size: 19px; margin-bottom: 8px; color: var(--se-text);
}
.step p { color: var(--se-text-soft); font-size: 15px; }

/* ════════════════════════════════════════════════
   RASSURANCE
   ════════════════════════════════════════════════ */
.assure { padding: 72px 0; }
.assure-box {
    max-width: 880px; margin: 0 auto; text-align: center;
    background: linear-gradient(135deg, var(--night-3), var(--night-2));
    border: 1px solid var(--line); border-radius: 14px;
    padding: 50px 40px; position: relative; overflow: hidden;
}
.assure-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,182,72,0.12), transparent 60%);
}
.assure-box h2 {
    position: relative;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-weight: 400;
    font-size: clamp(28px, 3.6vw, 42px); line-height: 1.05; letter-spacing: 0.02em;
    margin-bottom: 14px; color: var(--se-text);
}
.assure-box p { position: relative; color: var(--se-text-soft); font-size: 17px; max-width: 52ch; margin: 0 auto 12px; }
.assure-points { position: relative; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 30px; }
.pt {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--se-text);
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    border-radius: 30px; padding: 9px 16px;
}
.pt svg { color: var(--amber); flex-shrink: 0; }

/* ════════════════════════════════════════════════
   BOUTON RETOUR HAUT
   ════════════════════════════════════════════════ */
#scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--amber);
    color: #1a1530;
    width: 46px;
    height: 46px;
    border-radius: 3px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,182,72,0.4);
    z-index: 999;
    transition: all 0.3s;
}
#scroll-top-btn.visible,
#scroll-top-btn.show { display: flex; }
#scroll-top-btn:hover { background: var(--amber-soft); transform: translateY(-3px); }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 480px) {
    .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .assure-box { padding: 36px 22px; }
    .game .name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════
   FOND BLANC — de la grille des jeux jusqu'au footer
   (sections games / how / assure passées en thème clair)
   ════════════════════════════════════════════════ */
.games,
.how,
.assure {
    background: #ffffff;
}

/* La section "Comment ça marche" avait un fond sombre + liserés */
.how {
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-top: 0;          /* supprime la bande sombre qui apparaissait au-dessus */
    padding: 56px 0;        /* resserré pour une meilleure lisibilité */
}
.how-head { margin-bottom: 38px; }

/* Bouton "Voir toutes les bornes" : adapté au fond blanc */
.games .se-btn-ghost {
    color: #1a1530;
    border: 1px solid rgba(0,0,0,0.18);
    background: #ffffff;
}
.games .se-btn-ghost:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: #fff8ec;
}

/* Borne perso : image plus étroite (ratio ~0.54) -> on l'affiche en entier,
   centrée, à la même taille de carte que les autres bornes */
.game--perso .art { background: #ffffff; }
.game--perso .art img {
    object-fit: contain;
    filter: none;
}
.game--perso .art::after { display: none; }
.game--perso .name {
    color: #1a1530;
    text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}

/* Titres et textes : on repasse en sombre pour rester lisibles sur blanc */
.games-head h2,
.how-head h2,
.assure-box h2,
.step h3 {
    color: #1a1530;
}
.games-head p,
.how-head p,
.step p,
.assure-box p,
.game .price-rea {
    color: #4a4466;
}

/* Cartes jeux : visuel inchangé (image + dégradé), juste le pied sur blanc */
.game {
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
}
.game:hover { border-color: rgba(255,182,72,0.65); }

/* Étape "Comment ça marche" : pastille numéro reste ambre (OK sur blanc) */

/* Bloc rassurance : dégradé sombre -> carte claire */
.assure-box {
    background: linear-gradient(135deg, #fff8ec, #fffdf8);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 40px rgba(26,21,48,0.06);
}
.assure-box::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,182,72,0.18), transparent 60%);
}

/* Puces de rassurance : fond clair au lieu de blanc transparent sur sombre */
.pt {
    color: #1a1530;
    background: #f5f2fa;
    border: 1px solid rgba(0,0,0,0.08);
}
