/* ==========================================================================
   THEME CLAIR (VARIABLES PAR DÉFAUT) & RESET
   ========================================================================== */
:root {
    /* Vos variables d'origine */
    --primary: #0080FF;         /* Bleu azur d'origine */
    --primary-hover: #005bbd;   
    
    /* 🔵 NOUVELLES VARIABLES BLEU ATTRACTIF & GAI */
    --secondary: #0ea5e9;       /* Bleu ciel vif et moderne (remplace le vert) */
    --secondary-dark: #0284c7;  /* Bleu plus soutenu pour le footer et menu mobile */
    
    /* Le reste de vos variables reste identique */
    --text-main: #334155;       
    --text-muted: #64748b;     
    --bg-body: #f1f5f9;         
    --bg-card: #ffffff;         
    --border: #e2e8f0;          
    --radius: 10px;             
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
}


/* ==========================================================================
   MODE SOMBRE AUTOMATIQUE (DARK MODE) via Préférences Système
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #3b82f6;
        --primary-hover: #60a5fa;
        --secondary: #10b981;
        --secondary-dark: #047857;
        --text-main: #f3f4f6;
        --text-muted: #9ca3af;
        --bg-body: #0f172a;
        --bg-card: #1e293b;
        --border: #334155;
        --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding-top: 85px;
    padding-bottom: 60px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   MENU NAV SÉMANTIQUE ET BURGER RESPONSIVE
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* On ajoute un espace au-dessus des titres pour qu'ils ne soient pas cachés sous la nav fixe lors du clic */
.section-card, 
#fonctionnalite, #participants,
#actualite {
    position: relative; /* Indispensable pour forcer le calcul de l'ancre */
    scroll-margin-top: 100px !important; /* Crée une zone de sécurité de 100px au-dessus du titre */
}

/* Conteneur global du menu */
.nav-menu-container {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 30px;
}

/* Bouton Burger caché sur ordinateur */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Liste des liens de navigation */
.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-menu-links a {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-menu-links a:hover {
    opacity: 0.7;
}

/* RESPONSIVE : MODE MOBILE / MEDIA QUERIES (768px et moins) */
@media (max-width: 768px) {
    .burger-btn {
        display: flex; /* Affiche le bouton burger */
    }

    /* Le menu se transforme en tiroir vertical masqué */
       /* Le menu se transforme en tiroir étroit avec effet de transparence floutée (Glassmorphism) */
        /* Le menu en tiroir vertical étroit avec effet de transparence floutée bleue */
    .nav-menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 190px;
        height: calc(100vh - 70px);
        
        /* 🔵 EFFET GLASSMORPHISM BLEU : Fond bleu avec 85% d'opacité */
        background-color: rgba(2, 132, 199, 0.85) !important; /* Bleu technologique transparent */
        backdrop-filter: blur(10px) !important; 
        -webkit-backdrop-filter: blur(10px); 
        
        padding: 20px 16px;
        gap: 16px;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }



    /* Classe activée par JavaScript pour faire glisser le menu à l'écran */
    .nav-menu-links.active {
        left: 0;
    }

        /* Le menu se transforme en tiroir vertical plus étroit */
    .nav-menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 70px; /* Pile en dessous de la barre nav */
        left: -100%; /* Sorti de l'écran à gauche par défaut */
        
        width: 190px; /* 🟢 LARGEUR RÉDUITE (Anciennement 250px) */
        
        height: calc(100vh - 70px);
        background-color: var(--secondary-dark); /* Vert sombre */
        padding: 20px 16px; /* Ajustement des marges internes pour s'adapter à la nouvelle largeur */
        gap: 16px;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease-in-out;
        z-index: 1050;
    }

}










/* ==========================================================================
   COMPOSANTS RE-STYLES ET RESPONSIVE
   ========================================================================== */
nav { 
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; position: fixed; top: 0; left: 0;
    background: var(--secondary); padding: 0 24px; height: 65px;
    box-shadow: var(--shadow); z-index: 1000;
}
.nav-brand { font-size: 24px; color: #fff; font-weight: bold; font-family: Verdana, sans-serif; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { display: flex; align-items: center; transition: transform 0.2s; }
.nav-links a:hover { transform: scale(1.05); }
.nav-links img { border-radius: 4px; }
.clic { cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.hero-header h1 { font-size: 28px; color: var(--primary); font-weight: bold; }

.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 24px; }



@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
}

.section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.section-card h2 { font-size: 18px; color: var(--primary); margin-bottom: 12px; font-weight: bold; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.section-card p { margin-bottom: 12px; font-size: 15px; text-align: justify; }

.tech-item { margin-left: 5px; margin-bottom: 6px; font-size: 14px; }
.tech-item strong { color: var(--primary); }

.ref-list { list-style: none; padding-left: 5px; }
.ref-list li { margin-bottom: 6px; font-size: 14px; position: relative; padding-left: 18px; }
.ref-list li::before { content: "✓"; color: var(--secondary); position: absolute; left: 0; font-weight: bold; }

/* Grille pour les illustrations de captures d'écran */
.modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 15px; }
.module-item { background: var(--bg-body); padding: 10px; border-radius: 6px; border: 1px solid var(--border); }
.module-item h3 { font-size: 14px; margin-bottom: 8px; color: var(--text-main); text-align: center; }
.module-item img { border-radius: 4px; box-shadow: var(--shadow); transition: transform 0.2s; }
.module-item img:hover { transform: scale(1.02); }
.module-itemfull { grid-column: span 2; background: var(--bg-body); padding: 10px; border-radius: 6px; border: 1px solid var(--border); }
.module-itemfull h3 { font-size: 14px; margin-bottom: 8px; color: var(--text-main); text-align: center; }
.module-itemfull img { border-radius: 4px; box-shadow: var(--shadow); }

@media (max-width: 520px) {
    .modules-grid { grid-template-columns: 1fr; }
    .module-itemfull { grid-column: span 1; }
}

.designer-box { display: flex; align-items: center; gap: 15px; background: var(--bg-body); padding: 12px; border-radius: 6px; margin-top: 15px; border-left: 3px solid var(--primary); }
.designer-img { border-radius: 4px; }
.designer-text { font-size: 14px; }
.small-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Formulaire Stylisé */
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; }
.form-group input, .form-group textarea { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-body); color: var(--text-main); font-size: 14px; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.btn-submit { background: var(--primary); color: #fff; padding: 10px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--primary-hover); }
.success-msg { background: rgba(16, 185, 129, 0.15); color: #10b981; padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; text-align: center; }
.error-msg { background: rgba(239, 68, 68, 0.15); color: #ef4444; padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; text-align: center; }

/* Mise en page de bas de page */
.bottom-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 24px; 
scroll-margin-top: 100px !important; /* Crée une zone de sécurité de 100px au-dessus du titre */}
.service-box_actu { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.service-box_actu strong { display: block; font-size: 15px; color: var(--primary); margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }

/* Participants */
.participants-list { display: flex; flex-direction: column; gap: 12px; }
.participant-item { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.participant-item:last-child { border-bottom: none; }
.participant-avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.participant-info button { background: none; border: none; font-size: 14px; font-weight: bold; color: var(--text-main); cursor: pointer; text-align: left; transition: color 0.2s; }
.participant-info button:hover { color: var(--primary); text-decoration: underline; }
.fade-text { font-size: 12px; color: var(--text-muted); margin-top: 2px; opacity: 0; transform: translateY(-5px); transition: all 0.4s ease; }
.fade-text.show { opacity: 1; transform: translateY(0); }

.offers-list { display: flex; flex-direction: column; gap: 8px; }
.offer-item { font-size: 14px; }
.offer-item b { color: var(--primary); }

.news-item { font-size: 14px; margin-bottom: 6px; }
.spacer { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }

.partners-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.partners-section h2 { font-size: 16px; text-align: center; margin-bottom: 15px; color: var(--text-main); }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners-grid button { background: var(--bg-body); border: 1px solid var(--border); padding: 6px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.partners-grid button:hover { transform: translateY(-2px); border-color: var(--primary); }

/* Animation Fade-In */
.fade-text { font-size: 13px; color: var(--text-muted); opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.5s ease, max-height 0.4s ease, margin-top 0.3s; }
.fade-text.show { opacity: 1; max-height: 100px; margin-top: 4px; }

/* ==========================================================================
   FOOTER COMPACT ET HORIZONTAL FIXE
   ========================================================================== */
body {
    /* Marge basse réduite car le footer est maintenant très fin */
    padding-bottom: 50px !important; 
}

footer { 
    background-color: var(--secondary-dark); 
    color: #ffffff; 
    padding: 6px 20px; /* Padding très réduit pour économiser l'espace vertical */
    
    position: fixed !important; 
    bottom: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 40px; /* Hauteur fixe et fine */
    
    font-size: 12px;
    z-index: 2000;
    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Interdit le retour à la ligne pour rester horizontal */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-credits {
    font-weight: 600;
    white-space: nowrap; /* Évite que le texte se coupe en deux lignes */
    overflow: hidden;
    text-overflow: ellipsis; /* Coupe proprement si l'écran est minuscule */
}

.footer-socials {
    display: flex !important;
    flex-direction: row !important; /* Force l'alignement horizontal */
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0; /* Empêche les icônes de se déformer */
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* Cercles plus petits pour gagner de l'espace */
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.social-link svg {
    width: 14px; /* Icônes légèrement plus petites et discrètes */
    height: 14px;
    fill: #ffffff;
}

/* Version Mode Sombre */
@media (prefers-color-scheme: dark) {
    footer {
        background-color: #0f172a;
        border-top: 1px solid #1e293b;
    }
}

/* Ajustement ultra-compact pour les très petits écrans mobiles */
@media (max-width: 480px) {
    footer {
        padding: 6px 10px;
        font-size: 10px; /* Écrit plus petit sur mobile pour que tout tienne */
    }
    .footer-socials {
        gap: 6px;
    }
}
/* ==========================================================================
   BOUTON FLOTTANT WHATSAPP
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed !important;
    bottom: 55px; /* Positionné juste au-dessus du footer fin de 40px */
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25D366; /* Vert officiel WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2500; /* Passe au-dessus du footer et du site */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet au survol : le bouton grossit légèrement et s'illumine */
.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-floating-btn svg {
    width: 28px;
    height: 28px;
    fill: #ffffff; /* Icône blanche */
}

/* Ajustement de position sur les petits écrans mobiles */
@media (max-width: 480px) {
    .whatsapp-floating-btn {
        width: 44px;
        height: 44px;
        bottom: 50px;
        right: 15px;
    }
    .whatsapp-floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

