/* Base */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Menu */
.menu-btn {
    display: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* Styles pour la vidéo d'arrière-plan */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(94, 6, 237, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Assurez la lisibilité */
.hero {
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.hero-btns {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 0px solid white;
}

/* Conteneur des boutons */
.hero-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Style de base des boutons */
.hero-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Bouton "Nos Services" et "contact"*/
.btn-outline {
    color: #1A2C38;
    border: 0px solid hsl(0, 0%, 100%);
}

/* Lien téléphone "nos services" et "contact"*/
.btn {
    color: #0112fb;
    font-weight: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: #ff0000;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255,255,255,0.3), 
                transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#musicToggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(42, 92, 141, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

#musicToggle:hover {
    background: #2a608d;
    transform: scale(1.1);
}

#musicToggle .fa-music {
    font-size: 1.2rem;
}

/* Ajout pour les nouveaux boutons */
.header-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
    align-items: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(76, 8, 247);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.calcul-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(120, 72, 87);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(76, 8, 247);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.calcul-btn:hover {
    background: rgb(255, 0, 0);
    transform: scale(1.1);
}

.blog-link a {
    color: rgb(76, 8, 247);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
      
/* Ajustement pour le bouton Réalisations */
.hero-btns a:nth-child(3) {
    animation-delay: 1.2s !important;
}

/* Styles du pied de page */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #4a6fa5;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4a6fa5;
}

.contact-info li, .quick-links li {
    margin-bottom: 12px;
    list-style: none;
}

.contact-info i, .quick-links i {
    margin-right: 10px;
    color: #4a6fa5;
    width: 20px;
    text-align: center;
}

.contact-info a, .quick-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover, .quick-links a:hover {
    color: #4a6fa5;
}

.social-logos, .partner-logos, .certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.social-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-logos a:hover {
    background: #4a6fa5;
    transform: translateY(-3px);
}

.partner-logos img, .certifications img {
    height: 40px;
    width: auto;
    filter: grayscale(10%) brightness(0.5);
    opacity: 0.8;
    transition: all 0.3s;
}

.partner-logos img:hover, .certifications img:hover {
    filter: none;
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
    text-align: center;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #004080;
    --text-color: white;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 25px;
    border-radius: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #dee2e6;
}

.logo-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-badge i {
    margin-right: 12px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #0066cc, #004080);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.elec {
    color: #0066cc;
    font-weight: 800;
}

.connect {
    color: #ff6b6b;
    font-weight: 800;
}

.divider {
    color: #adb5bd;
    margin: 0 5px;
    font-weight: 400;
}

/* Styles pour l'horloge */
.horloge-connectee {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.horloge-content .pays {
    font-size: 1em;
    color: #f1c40f;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.heure-digital {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
}

.date-connectee {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Styles pour les particules */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #0f62b5;
        transition: left 0.3s;
        padding-top: 60px;
    }
    
    .nav-links.active {
        left: 0;
    }

    .hero {
        height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-btns {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .header-controls {
        top: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .control-btn, .calcul-btn {
        width: 35px;
        height: 35px;
    }
    
    .logo-badge {
        padding: 8px 15px;
        font-size: 1.1rem;
    }
    
    .horloge-connectee {
        top: 20px;
        left: 20px;
        padding: 8px 12px;
    }
    
    .heure-digital {
        font-size: 1.4em;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-logos, .partner-logos, .certifications {
        justify-content: center;
    }
    
    body {
        font-size: 14px;
    }
}

/* Pour les écrans > 1200px (grands écrans) */
@media (min-width: 1200px) {
    .conteneur {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* Styles pour le badge du blog */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Styles pour les icônes mathématiques */
.math-icon {
    font-size: 1.1rem;
}
