/* ==========================================================
   VARIABLES & THÈMES (DARK/LIGHT)
   ========================================================== */
:root {
    --primary: #0044cc;      /* Bleu LD Principal */
    --primary-light: #00d2ff; /* Bleu Électrique */
    --deep: #001a4d;         /* Bleu Foncé */
    --whatsapp: #25D366;     /* Vert WhatsApp */
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-mode {
    --bg-light: #0a192f;
    --white: #112240;
    --deep: #020c1b;
    --text-dark: #e6f1ff;
    --text-gray: #a8b2d1;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   HEADER & NAVIGATION
   ========================================================== */
.header {
    background: var(--deep);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-light);
}

/* BOUTON THÈME (STYLE BOUTIQUE) */
.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--primary);
    transform: rotate(20deg) scale(1.1);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 26, 77, 0.75), rgba(0, 26, 77, 0.75)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ==========================================================
   BOUTONS & ANIMATIONS
   ========================================================== */
.btn-primary, .btn-outline, .btn-whatsapp-submit {
    position: relative;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

/* Effet Reflet (Glint) */
.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary::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.6s;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 68, 204, 0.4);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: white;
    color: var(--deep);
    transform: translateY(-5px);
}

/* Effet Pulse WhatsApp */
.btn-whatsapp-submit {
    background: var(--whatsapp);
    color: white;
    width: 100%;
    justify-content: center;
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp-submit:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* ==========================================================
   SECTIONS CONTENU (STATS & SERVICES)
   ========================================================== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}

/* Grille Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Grille Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card:hover {
    background: var(--primary);
    color: white;
}

.service-card:hover i {
    color: white;
}

/* ==========================================================
   PARTENAIRES (GRILLE FIXE)
   ========================================================== */
.partners-static-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.partner-item img {
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================
   CONTACT AREA (PREMIUM SPLIT)
   ========================================================== */
.contact-area {
    background: var(--deep);
    padding: 100px 0;
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.contact-info {
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
}

.contact-info h2 { font-size: 2.2rem; margin-bottom: 20px; }

.contact-details .item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-details i { color: var(--primary-light); }

.contact-form-box {
    padding: 60px;
    background: var(--white);
    color: var(--text-dark);
}

.form-group { margin-bottom: 20px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fdffdf; /* Légère teinte pour le confort */
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 68, 204, 0.1);
}

/* ==========================================================
   FOOTER MODERNE
   ========================================================== */
.footer-modern {
    background: #010813;
    padding: 80px 0 30px;
    color: var(--text-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo { margin-bottom: 20px; display: block; }

.footer-links h4, .footer-social h4 {
    color: white;
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }

.social-icons { display: flex; gap: 15px; }

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

/* ==========================================================
   SYSTÈME RESPONSIVE (POUR TOUS LES APPAREILS)
   ========================================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 40px; }
}

/* Smartphones */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Cache le menu pour mobile */
    
    .hero { padding-top: 120px; height: auto; padding-bottom: 80px; }
    .hero h1 { font-size: 2.2rem; }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline { margin-left: 0; }
    
    .section-title { font-size: 1.8rem; }
    
    .container { padding: 60px 20px; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons { justify-content: center; }
}

/* Petits écrans */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .logo { font-size: 1.2rem; }
    .contact-form-box { padding: 30px 20px; }
}