/* =========================================================
   1. RESET ET POLICES DE BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* CORRECTION DU DÉCALAGE MOBILE */
    width: 100%;
    position: relative;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* =========================================================
   2. UTILITAIRES PREMIUM (COULEURS, BADGES, TEXTES)
   ========================================================= */
.text-center { text-align: center; }
.bg-light { background-color: rgba(0, 0, 0, 0.05); }
[data-theme="dark"] .bg-light { background-color: rgba(255, 255, 255, 0.05); }
[data-theme="red"] .bg-light { background-color: rgba(0, 0, 0, 0.1); }

.highlight-red { 
    color: var(--primary-color); 
}

.alert-box {
    background-color: rgba(230, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   3. GRILLES (GRIDS)
   ========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-2-align-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* =========================================================
   4. BOUTONS PREMIUM (PULSATION)
   ========================================================= */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(230, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); }
}

.btn-funnel {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-radius: 8px;
    text-align: center;
    animation: pulse 2s infinite;
    border: 2px solid #ff1a1a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-funnel:hover {
    background-color: #cc0000;
    transform: scale(1.02);
}

.sub-btn-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 5px;
    text-transform: none;
    opacity: 0.9;
}

/* =========================================================
   5. COMPOSANTS PREMIUM (CARTES, IMAGES, LISTES)
   ========================================================= */

/* Cartes Sombres Funnel */
.funnel-card {
    background: #111;
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
[data-theme="light"] .funnel-card { background: #f9f9f9; color: #111; border: 1px solid #ddd; border-top: 5px solid var(--primary-color); }
[data-theme="red"] .funnel-card { background: #fff; color: #111; border-top: 5px solid #111;}

.funnel-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.funnel-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Image 3D avec Lueur et Badge Flottant */
.premium-image-container {
    position: relative;
    max-width: 450px;
    margin: 40px auto;
    z-index: 1;
}

.premium-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(0,0,0,0) 60%);
    opacity: 0.2;
    z-index: -1;
    filter: blur(40px);
    animation: pulseGlow 4s infinite alternate;
}

.premium-image-container::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    z-index: -1;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.premium-image-container:hover::after { transform: translate(-10px, -10px); }

.premium-image {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: #111;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-left: 5px solid var(--primary-color);
    z-index: 3;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    animation: float 4s ease-in-out infinite;
}

.floating-badge strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }
.floating-badge span { font-size: 0.85rem; font-weight: 400; color: #ccc; }

/* Listes à puces "Checkmarks" Rouges */
.checklist {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    text-align: left;
}

.checklist li {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 900;
}

/* Animations Clés */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { opacity: 0.1; transform: scale(0.95); }
    100% { opacity: 0.2; transform: scale(1.05); }
}

/* =========================================================
   6. RESPONSIVE DESIGN (MOBILES ET TABLETTES)
   ========================================================= */
@media (max-width: 992px) {
    .grid-2-align-center {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .checklist li { text-align: left; }
    
    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 80%;
        text-align: center;
        animation: none; /* Désactive le flottement sur mobile pour la stabilité */
    }
}

@media (max-width: 768px) {
    /* Ajuster la taille des titres pour éviter les débordements (Overflow) */
    h1 { font-size: 2.2rem !important; }
    section h2 {
        font-size: 1.8rem !important; 
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .subtitle { font-size: 1.1rem !important; }
    
    /* Éviter que les cartes Premium ne sortent de l'écran avec leur effet de zoom */
    .funnel-card[style*="transform"],
    .pricing-card.premium {
        transform: scale(1) !important;
        margin: 0 !important;
    }
    
    /* Ajuster les marges intérieures sur mobile */
    section { padding: 50px 15px !important; }
    .form-wrapper { padding: 30px 15px !important; }
    
    /* Ajuster l'image premium sur petit écran */
    .premium-image-container::after { display: none; } /* Enlève le cadre décalé sur mobile */
}

/* =========================================================
   7. FOOTER GLOBAL
   ========================================================= */
.main-footer {
    background-color: var(--header-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(150,150,150,0.1);
    color: var(--text-color);
}
/* =========================================================
   SÉLECTEUR DE THÈMES (LES 3 CERCLES DE COULEURS)
   ========================================================= */
.theme-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ffffff; /* Bordure pour bien les faire ressortir sur fond sombre/rouge */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none !important;
}

/* Si on est sur le thème clair, on met une bordure grise pour qu'ils soient visibles sur le fond blanc */
[data-theme="light"] .theme-btn { 
    border-color: #cccccc; 
}

/* Effet de zoom au survol */
.theme-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Couleurs exactes des boutons */
.theme-light { background-color: #ffffff; }
.theme-dark { background-color: #000000; }
.theme-red { background-color: #E60000; }
/* =========================================================
   7. FOOTER PREMIUM
   ========================================================= */
.premium-footer {
    background-color: #111111; 
    color: #ffffff;
    padding: 80px 0 20px 0;
    border-top: 5px solid var(--primary-color);
}

/* Adaptation du footer selon le thème */
[data-theme="light"] .premium-footer { 
    background-color: #f9f9f9; 
    color: #111111; 
}
[data-theme="red"] .premium-footer { 
    background-color: #111111; /* Reste sombre sur le thème rouge pour le contraste */
    color: #ffffff; 
    border-top: 5px solid #ffffff; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 65px;
    margin-bottom: 20px;
    display: block;
}

.footer-slogan {
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    opacity: 0.8;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.footer-links h4, .footer-legal h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 15px;
}

.footer-links a, .footer-legal a {
    color: inherit;
    opacity: 0.8;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px); /* Petit effet de glissement au survol */
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.6;
}

[data-theme="light"] .footer-bottom { 
    border-top: 1px solid rgba(0, 0, 0, 0.1); 
}

/* Responsive pour le Footer */
@media (max-width: 768px) {
    .premium-footer {
        padding: 50px 0 20px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-brand .footer-logo {
        margin: 0 auto 20px auto;
    }
    .footer-slogan {
        border-left: none;
        padding-left: 0;
    }
    .footer-links a:hover, .footer-legal a:hover {
        transform: translateY(-2px); /* Glissement vertical sur mobile */
    }
}