/* styles.css */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(1.2);
}

.hamburger {
    display: none; /* Caché par défaut sur desktop */
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex; /* Par défaut flex pour desktop */
    align-items: center;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover {
    color: #60a5fa;
}

.language-selector {
    margin-left: 1rem;
}

.language-selector select,
.mobile-language select {
    background: rgba(255,255,255,0.1);
    border: 1px solid #404040;
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.language-selector select option,
.mobile-language select option {
    background: #1a1a1a;
    color: #e0e0e0;
}

.mobile-language {
    display: none;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 5rem 2rem;
	margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(45, 45, 45, 0.8));
    z-index: 0; /* Places gradient above video but below content */
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;          /* ← valeur à ajuster */
}

/* IMPORTANT : le contenu (texte, boutons, container) doit être au-dessus du voile */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Mobile adjustments */
/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1rem 4rem;     /* encore moins d'espace en haut */
    }

    .hero h1 {
        margin-top: -1.2rem;           /* on remonte plus fortement le titre */
        margin-bottom: 1.8rem;         /* on réduit un peu l'espace sous le titre */
        font-size: 2.1rem;             /* légèrement plus petit pour compenser */
    }

    .clickable-images {
        margin-top: 0.8rem;            /* on remonte aussi les boutons pour suivre */
        margin-bottom: 2rem;
    }

    .hero p {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    background-color: #1a1a1a;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    position: relative;
    border: 1px solid #2d2d2d;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 12px 12px 0 0;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #2d2d2d;
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajusté pour les flip cards */
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

/* Flip Card Styles (Intégrés et adaptés à votre thème) */
.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 300px;
    height: 280px; /* Augmenté pour plus de hauteur */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d); /* Adapté à votre thème sombre */
    color: #e0e0e0;
    border: 1px solid rgba(96, 165, 250, 0.2); /* Bordure bleue subtile */
    transition: box-shadow 0.3s;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
    box-shadow: 0 12px 30px rgba(96, 165, 250, 0.3); /* Effet hover cohérent */
}

.flip-card-front i {
    font-size: 3rem;
    color: #60a5fa; /* Couleur icône existante */
    margin-bottom: 1rem;
}

.flip-card-back i {
    font-size: 3rem;
    color: #60a5fa; /* Couleur icône existante */
    margin-bottom: 1rem;
}

.flip-card-front h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff; /* Blanc pour titre */
}

.flip-card-back h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff; /* Blanc pour titre */
}

.flip-card-front p {
    font-size: 1.1rem; /* Augmenté pour rendre le texte plus grand */
    color: #9ca3af; /* Gris pour description */
    opacity: 0.9;
    line-height: 1.4; /* Amélioré pour la lisibilité */
}

.flip-card-back p {
    font-size: 1.1em;
    font-style: italic;
    color: #60a5fa; /* Bleu pour le texte du dos */
    line-height: 1.4;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a); /* Inversion subtile pour le dos */
}



/* Responsive pour les flip cards */
@media (max-width: 768px) {
    .flip-card {
        max-width: 100%;
        height: 260px; /* Hauteur ajustée pour mobile, mais toujours plus grande */
    }
    
    .flip-card-front, .flip-card-back {
        padding: 1.5rem;
    }
    
    .flip-card-front i {
        font-size: 2.5rem;
    }
    
    .flip-card-front h3 {
        font-size: 1.1rem;
    }
    
    .flip-card-front p, .flip-card-back p {
        font-size: 1rem; /* Ajusté pour mobile, mais plus grand que avant */
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #60a5fa;
    color: #e0e0e0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 600;
    color: #ffffff;
}

.credits-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.credits-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.credits-info ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d2d2d;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-content .close:hover {
    color: #60a5fa;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #e0e0e0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .container {
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

.disclaimer {
    text-align: right;
    max-width: 60%;
    font-size: 0.9rem;
    opacity: 0.8;
}

.disclaimer p {
    margin: 0;
    line-height: 1.4;
    color: #9ca3af;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    color: #9ca3af;
}

/* Styles pour les images cliquables (déplacés ici pour s'appliquer partout) */
.clickable-images {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espace entre les images */
    margin: 20px 0; /* Marge en haut et bas */
    flex-wrap: wrap; /* Pour mobile */
}

.clickable-img {
    width: 150px; /* Largeur raisonnable, ajustez si besoin */
    height: auto;
    border-radius: 8px; /* Optionnel : coins arrondis */
    transition: transform 0.2s; /* Effet hover */
    display: block; /* Assure un bon rendu */
}

.clickable-img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .container { padding: 0 1rem; }
    .stats-grid, .testimonials { grid-template-columns: 1fr; }
    .navbar nav a { margin-left: 0.5rem; font-size: 0.9rem; }
    
    .hamburger {
        display: block; /* Visible sur mobile */
    }
    
    .nav-links {
        display: none; /* Caché par défaut sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        flex-direction:  column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex; /* Affiché quand actif */
    }
    
    .nav-links a {
        margin: 0.5rem 2rem; /* Espacement pour mobile */
        text-align: center;
    }
    
    /* Fermer le menu au clic sur un lien (optionnel, via JS) */
    .nav-links a:hover {
        background-color: rgba(96, 165, 250, 0.1);
        border-radius: 4px;
    }
    
    .logo {
        font-size: 1.5rem; /* Ajustement pour mobile */
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .language-selector {
        display: none;
    }
    
    .mobile-language {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .disclaimer {
        text-align: center;
        max-width: 100%;
    }
    
    /* Ajustement responsive pour les images cliquables sur mobile */
    .clickable-img {
        width: 120px; /* Plus petite sur mobile pour éviter le débordement */
    }
	
	
	
}

/* ==================== YOUTUBE SHORTS SECTION ==================== */
.youtube-shorts-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 0;
    color: #fff;
}

.youtube-shorts-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.youtube-shorts-section p {
    color: #cbd5e1;
}

.shorts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.short-item {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: #000;
}

.short-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Responsive */
@media (min-width: 769px) {
    .hero {
        min-height: 90vh;           /* 90% de la hauteur de l'écran */
        /* ou 95vh / 100vh si tu veux vraiment très haut */
    }
}

@media (min-width: 1024px) {
    .shorts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .shorts-grid {
        grid-template-columns: repeat(3, 1fr); /* ou repeat(4, 1fr) si tu veux 4 colonnes */
    }
}