/*
    Projet  : Start-Elite
    Fichier : assets/css/template.css
    Contenu : Styles globaux — top bar, header, nav, footer, responsive
*/

*, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Charte « Retrouvez votre jeu » — ambre/or chaud sur bleu nuit.
               Les anciens noms de variables sont conservés pour ne pas casser
               les autres pages : --gold pointe désormais vers l'ambre. */
            --gold: #ffb648;
            --gold-light: #ffd089;
            --red: #ff5db1;
            --dark: #1a1530;
            --dark-2: #221b40;
            --dark-3: #2c2350;
            --mid: #2c2350;
            --text-light: #e2dcf2;
            --text-muted: #bcb4d4;
            --white: #f7f4ff;
            --border: rgba(255,255,255,0.10);
        }

        body {
            font-family: 'Barlow', sans-serif;
            color: var(--white);
            background: var(--dark);
            overflow-x: hidden;
        }

        /* === TOP BAR === */

        .top-bar {
            background: var(--dark-2);
            border-bottom: 1px solid var(--border);
            padding: 10px 0;
        }

        .top-bar-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #contact-prive {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--gold);
            cursor: pointer;
            border: 1px solid var(--border);
            padding: 6px 14px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: all 0.3s;
            user-select: none;
            min-width: 180px;
        }

        #contact-prive.revealed {
            background: rgba(255,182,72,0.06);
            border-color: rgba(255,182,72,0.4);
            gap: 10px;
        }

        #contact-prive:hover {
            border-color: var(--gold);
            background: rgba(255,182,72,0.08);
        }

        /* === BOUTON TEL MOBILE — icône seule === */
        @media (max-width: 1024px) {
            #contact-prive {
                min-width: unset;
                padding: 8px 10px;
                gap: 0;
            }
            #label-tel { display: none; }
            #contact-prive .tel-icon { width: 18px; height: 18px; }
        }

        .top-bar-right a {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--text-light);
            text-decoration: none;
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 6px 14px;
            border: 1px solid var(--border);
            border-radius: 3px;
            transition: all 0.3s;
        }

        .top-bar-right a:hover {
            color: var(--gold);
            border-color: var(--gold);
            background: rgba(255,182,72,0.06);
        }

        /* === HEADER === */

        header {
            background: var(--dark);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 80px;
        }

        .logo img {
            height: 64px;
            filter: brightness(0) invert(1);
            transition: transform 0.4s, filter 0.4s;
            animation: logoGlow 3s ease-in-out infinite;
        }

        @keyframes logoGlow {
            0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
            50%       { filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.55)) drop-shadow(0 0 22px rgba(255,182,72,0.25)); }
        }

        .logo:hover img {
            transform: scale(1.06);
            animation: none;
            filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,182,72,0.7)) drop-shadow(0 0 30px rgba(255,182,72,0.3));
        }

        /* === NAVIGATION DESKTOP === */

        nav ul {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        nav a {
            color: var(--text-light);
            text-decoration: none;
            font-family: 'Barlow Condensed', sans-serif;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 8px 14px;
            border-radius: 2px;
            transition: color 0.2s;
        }

        nav a:hover { color: var(--gold); }

        nav a.nav-active {
            color: var(--gold) !important;
            border-bottom: 2px solid var(--gold);
            padding-bottom: 6px;
        }

        .nav-cta {
            background: var(--gold) !important;
            color: #1a1530 !important;
            padding: 10px 20px !important;
            font-weight: 800 !important;
            border-radius: 3px !important;
            transition: all 0.2s !important;
        }

        .nav-cta:hover {
            background: var(--gold-light) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 20px rgba(255,182,72,0.4) !important;
        }

        .dropdown { position: relative; }

        .dropdown-content {
            display: none;
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            background: var(--dark-2);
            border: 1px solid var(--border);
            min-width: 200px;
            z-index: 100;
        }

        .dropdown:hover .dropdown-content { display: block; }

        /* dropdown-open est utilisé UNIQUEMENT en mobile (géré par JS).
         * En desktop, le hover CSS ci-dessus suffit — on n'applique
         * dropdown-open qu'à partir du breakpoint mobile. */

        .dropdown-content a {
            display: block;
            padding: 12px 18px;
            border-bottom: 1px solid rgba(255,182,72,0.08);
            font-size: 13px;
        }

        .dropdown-content a:last-child { border-bottom: none; }
        .dropdown-content a:hover { background: rgba(255,182,72,0.08); color: var(--gold); }

        /* === BURGER MOBILE === */

        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 8px;
        }

        .mobile-toggle span {
            width: 24px;
            height: 2px;
            background: var(--text-light);
            transition: all 0.3s;
        }

        /* === FOOTER === */

        footer {
            background: var(--dark-2);
            border-top: 1px solid var(--border);
            padding: 70px 30px 30px;
        }

        .footer-inner { max-width: 1200px; margin: 0 auto; }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 60px;
        }

        .footer-brand img {
            height: 44px;
            margin-bottom: 20px;
            filter: brightness(1.2);
        }

        .footer-brand p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 25px;
        }

        .footer-col h5 {
            font-family: 'Barlow Condensed', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 20px;
        }

        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 10px; }

        .footer-col a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-col a:hover { color: var(--gold); }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 25px;
            text-align: center;
        }

        .footer-bottom p { color: var(--text-muted); font-size: 13px; }

        /* Contact reveal footer */
        #contact-unique {
            margin-top: 15px;
            padding: 12px;
            border: 1px solid var(--border);
            color: var(--gold);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            border-radius: 3px;
            font-family: 'Barlow Condensed', sans-serif;
            user-select: none;
            min-width: 240px;
            background: transparent;
            transition: all 0.3s;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        #contact-unique:hover {
            background: rgba(255,182,72,0.08);
            border-color: var(--gold);
        }

        /* === RESPONSIVE === */

        @media (max-width: 1024px) {
            nav { display: none; }
            .mobile-toggle { display: flex; }

            nav.mobile-open {
                display: block;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--dark-2);
                border-top: 1px solid var(--border);
                padding: 15px 0;
            }

            nav.mobile-open ul { flex-direction: column; gap: 0; }

            nav.mobile-open a {
                display: block;
                padding: 12px 25px;
                border-bottom: 1px solid rgba(255,182,72,0.06);
            }

            .dropdown-content {
                position: static;
                box-shadow: none;
                border: none;
                padding-left: 20px;
                background: var(--dark-3);
            }

            .dropdown:hover .dropdown-content { display: none; }
            .dropdown.dropdown-open .dropdown-content { display: block; }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
        }

        @media (max-width: 600px) {
            footer { padding: 40px 20px 24px; }
            .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
            .footer-brand img { height: 36px; }
            #contact-unique { min-width: 0; width: 100%; justify-content: flex-start; }
        }

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   Apparaît en bas à droite, slide-in depuis le bas,
   disparaît automatiquement après 6 secondes.
   ═══════════════════════════════════════════════════════ */

#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 300px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.toast.toast-hiding {
    animation: toast-out 0.3s ease-in forwards;
}

.toast-success {
    background: #0d2218;
    border: 1px solid #1a7a45;
    color: #c6f0d6;
}

.toast-error {
    background: #220d0d;
    border: 1px solid #7a1a1a;
    color: #f0c6c6;
}

.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.toast-success .toast-icon {
    background: #1a7a45;
    color: #fff;
}

.toast-error .toast-icon {
    background: #7a1a1a;
    color: #fff;
}

.toast-body {
    flex: 1;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-top: -1px;
    transition: opacity 0.2s;
}

.toast-close:hover { opacity: 1; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 6px 6px;
    animation: toast-progress 6s linear forwards;
}

.toast-success .toast-progress { background: #1a7a45; }
.toast-error   .toast-progress { background: #7a1a1a; }

.toast { position: relative; overflow: hidden; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(10px); }
}

@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    .toast { min-width: 0; max-width: 100%; }
}

/* ── Mention RGPD sous les formulaires ── */
.form-rgpd-notice {
    font-size: 12px;
    color: var(--text-muted, #a89fc8);
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-left: 2px solid rgba(255,182,72,0.25);
    background: rgba(255,182,72,0.03);
    border-radius: 0 3px 3px 0;
}
.form-rgpd-notice a {
    color: var(--gold, #ffb648);
    text-decoration: none;
}
.form-rgpd-notice a:hover {
    text-decoration: underline;
}
