/* CONFIGURATION GÉNÉRALE ET VARIABLES (Thème Rouge Braise) */
:root {
    --bg-dark: #070101;
    --coal-color: #1a0303;
    --fire-main: #d90429;
    --fire-light: #ef233c;
    --fire-dark: #8a031a;
    --text-light: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset image global pour mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    /* AJOUT DU BACKGROUND IMAGE + OVERLAY */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('Code_Generated_Image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    /* CORRECTION MOBILE : Autoriser le défilement si le contenu dépasse */
    overflow-x: hidden;
    overflow-y: auto; 
    padding: 20px;
}

/* ANIMATION DES BRAISES */
#embers-container {
    position: fixed; /* Fixed pour rester en fond même au scroll */
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ember {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(2px);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* CARTE CENTRALE */
.card {
    position: relative;
    z-index: 1;
    background: rgba(10, 1, 1, 0.9); /* Un peu plus opaque pour la lisibilité sur image */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px; /* Réduit légèrement pour mobile */
    border-radius: 12px;
    border: 1px solid var(--fire-dark);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: auto; /* Centre la carte verticalement si le body est scrollable */
}

/* Style spécifique du Logo */
.card-logo {
    max-width: 150px; /* Légèrement réduit pour gagner de la place verticale */
    margin: 0 auto 15px auto;
}

/* TITRES */
.fire-text {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--fire-light);
    font-size: clamp(2rem, 10vw, 3rem); /* Optimisé pour mobile */
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--fire-main);
    animation: flicker 3s infinite alternate;
    line-height: 1;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; }
}

h2 {
    color: var(--text-light);
    font-weight: 400; /* Plus lisible sur mobile */
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.3;
}

/* COMPTE À REBOURS OPTIMISÉ MOBILE */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.time-box {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--fire-dark);
    border-radius: 6px;
    padding: 8px 4px;
    flex: 1; /* Distribue l'espace également */
    min-width: 60px;
}

.time-box span {
    font-family: 'Bebas Neue', sans-serif;
    display: block;
    font-size: 1.8rem;
    color: var(--fire-light);
    line-height: 1;
}

.time-box small {
    font-size: 0.6rem;
    color: #bbb;
    text-transform: uppercase;
    display: block;
}

.verdict-badge {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--fire-dark), var(--fire-main));
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    transform: rotate(-1deg);
}

/* BOUTONS */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    padding: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn i { margin-right: 10px; font-size: 1.2rem; }

.facebook { background: #1877F2; }
.tiktok { background: #000; border: 1px solid #333; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.google { background: #DB4437; }

/* AJUSTEMENT POUR ÉCRANS TRÈS PETITS */
@media (max-width: 350px) {
    .card { padding: 20px 15px; }
    .time-box { min-width: 50px; }
    .time-box span { font-size: 1.5rem; }
}