

/* --- VARIABLES --- */
:root {
    --primary: #0f4c81;
    --secondary: #2563eb;
    --blue: #22abe1;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light-grey: #f3f4f6;
    --white: #ffffff;
    --orange: #e72b12;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--dark); line-height: 1.6; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- REUSABLE --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; scroll-margin-top: 60px;}
.bg-light { background-color: var(--light-grey); }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #6b7280; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-srv { width: 100%; height: 100%;
    background: linear-gradient(to bottom, #fff 0%, #fff 70%, rgba(255, 255, 255, 0) 130%), linear-gradient(to right, var(--secondary), var(--light-grey)); padding: 50px 0px 50px 0px; scroll-margin-top: 80px;
}

/* --- NAVIGATION --- */
.navbar { position: sticky; top: 0; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo .highlight { color: var(--orange); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.btn-nav { background: var(--primary); color: var(--white) !important; padding: 8px 18px; border-radius: 5px; font-weight: 600; }
.btn-nav2 { background: var(--orange); color: var(--white) !important; padding: 8px 18px; border-radius: 5px; font-weight: 600;  transition: transform 0.2s ease, box-shadow 0.2s ease !important;}
.nav-links li a:not(.btn-nav2):hover {color: var(--secondary);}
.btn-nav2:hover {
    transform: translateY(-2px); /* Légère montée au survol */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1); /* Rend le bouton légèrement plus clair */
}

/* --- HERO --- */
.hero { height: 60vh; background: linear-gradient(rgba(15, 76, 129, 0.75), rgba(15, 76, 129, 0.4)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; display: flex; align-items: center; color: var(--white); text-align: center; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; opacity: 0.9; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-secondary { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* --- GRID CARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px 30px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-bottom: 4px solid var(--secondary); transition: 0.3s; }
.card:hover { transform: translateY(-10px); }
.icon-box { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; }

/* --- TABLEAU COMPARATIF --- */
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 18px; border-bottom: 1px solid #eee; text-align: left; }
.comparison-table th { background: var(--primary); color: var(--white); }
.criteria { font-weight: 600; width: 20%; color: var(--primary); }
.col-cloud { background: rgba(37, 99, 235, 0.05); width: 40%; color: var(--secondary); }
.col-internal { width: 40%; color: #6b7280; }

/* --- AVANTAGES --- */
.features-split { display: flex; align-items: center; gap: 0px; flex-wrap: wrap; }
.feature-text { flex: 1; }
.feature-text ul li { margin-bottom: 20px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.feature-text i { color: #10b981; font-size: 1.4rem; }
.feature-image { flex: 0;}
.fake-img-placeholder { height: 300px; background: #e0e7ff; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--primary); }
.fake-img-placeholder i { font-size: 5rem; margin-bottom: 15px; }

/*---- MENTIONS LEGALES ---*/

.legal-content h3 { color: var(--primary); margin-top: 25px; border-left: 4px solid var(--secondary); padding-left: 15px; }
.legal-content ul { padding-left: 20px; }
.legal-content ul li { margin-bottom: 8px; }
.highlight-box { background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px dashed #ccc; margin: 20px 0; }

/* --- CONTACT --- */
.contact-wrapper { display: flex; gap: 60px; flex-wrap: wrap; }
.contact-info, .contact-form { flex: 1; }
.info-item { margin-top: 20px; display: flex; gap: 10px; font-weight: 600; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.btn-block { width: 100%; }

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* --- FOOTER --- */
footer { background: var(--dark); color: #9ca3af; padding: 40px 0; border-top: 1px solid #374151; }
.footer-content { display: flex; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .features-split, .contact-wrapper { flex-direction: column; }
    .btn-secondary { margin-left: 0; margin-top: 10px; }
}

/* --- MISSION SECTION --- */
.mission-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.mission-image {
    flex: 1;
    min-width: 350px;
}

.mission-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--light-grey); /* Effet design de décalage */
}

/* Si vous n'utilisez pas de vraie image, voici le style du placeholder */
.mission-image [class*="Image"] {
    border-radius: 15px;
}

.mission-text {
    flex: 1.2;
    min-width: 350px;
}

.mission-text .badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.mission-text h2 {
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.mission-text .intro-bold {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.mission-text p {
    margin-bottom: 15px;
    color: #4b5563;
    text-align: justify;
}

/* Adaptabilité mobile */
@media (max-width: 992px) {
    .mission-wrapper {
        flex-direction: column;
    }
    .mission-image, .mission-text {
        width: 100%;
    }
    .mission-image {
        order: 2; /* L'image passe après le texte sur mobile pour l'impact */
    }
}

/* --- MOBILE APP SECTION --- */
.bg-dark-blue {
    background-color: #0a2540;
    color: var(--white);
}

.mobile-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.mobile-text, .mobile-visual {
    flex: 1;
    min-width: 350px;
}

.badge-mobile {
    background: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.mobile-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mobile-benefits {
    margin: 30px 0;
}

.mobile-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-benefits i {
    color: #4ade80; /* Vert moderne */
}

/* Bloc d'activation QR */
.activation-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px border dashed rgba(255, 255, 255, 0.2);
}

.qr-code-placeholder {
    font-size: 3rem;
    background: var(--white);
    color: var(--primary);
    padding: 10px;
    border-radius: 8px;
    line-height: 1;
}

.activation-text h4 {
    margin-bottom: 5px;
    color: var(--accent);
}

.activation-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Visuel Smartphone */
.mobile-visual {
    text-align: center;
    position: relative;
}

.mobile-visual img {
    max-width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .activation-box {
        text-align: left;
    }
}

/* --- STYLE DU LOGO DANS LA NAV --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Espace entre l'image et le texte */
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Ajustez la hauteur selon votre logo */
    width: auto;
    display: block;
    object-fit: contain;
}


/* banniere .hero */

/* Optionnel : cacher le texte sur de très petits écrans si le logo suffit */
@media (max-width: 480px) {

    .hero { height: 80vh;}

    /* On garde le texte mais on réduit sa taille */
    .logo {
        gap: 8px; /* On réduit l'espace entre l'image et le texte */
    }
    
    .logo span {
        display: inline-block !important; /* On force l'affichage */
        font-size: 1.2rem; /* On diminue la taille du texte (au lieu de 1.5rem) */
    }

    .logo-img {
        height: 35px; /* On réduit légèrement la hauteur de l'image du logo */
    }
    
    .nav-container {
        padding: 0 10px; /* On réduit les marges sur les côtés pour gagner de la place */
    }
}

/* --- EFFET PARALLAXE SECTION OUTILS --- */
.parallax-tools {
    position: relative;
    background-image: url('img/image-parallax.jpg'); /* Remplacez par votre image d'arrière-plan */
    background-attachment: fixed; /* L'effet magique */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
}

/* Voile sombre pour faire ressortir le texte et les cartes */
.parallax-tools::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 76, 129, 0.7); /* Bleu primaire Assoclic avec opacité */
    z-index: 1;
}

/* On remonte le contenu au dessus du voile */
.parallax-tools .container {
    position: relative;
    z-index: 2;
}

/* Ajustement des couleurs pour le fond sombre */
.text-white { color: #ffffff !important; }
.text-light { color: #e5e7eb !important; opacity: 1; }

/* Optionnel : légère transparence sur les cartes pour l'esthétique */
.parallax-tools .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px); /* Flou moderne derrière la carte */
}

/* Désactivation sur mobile pour éviter les bugs d'affichage */
@media (max-width: 992px) {
    .parallax-tools {
        background-attachment: scroll;
    }
}

/* --- SELECTEUR DE LANGUE CÔTE À CÔTE --- */
#goog-gt-tt {
    display: none !important;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    font-weight: bold;
}

.lang-link {
    cursor: pointer;
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

.lang-link:hover {
    color: var(--secondary);
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Espace entre le menu et les langues */
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.lang-link {
    text-decoration: none;
    color: var(--primary);
    opacity: 0.7;
    transition: 0.3s;
}

.lang-link:hover {
    opacity: 1;
    color: var(--secondary);
}

/* --- NETTOYAGE GOOGLE TRANSLATE --- */

/* Cette règle masque la frame de navigation de Google Translate */
#google_translate_element, 
.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

/* --- AJUSTEMENT RTL (ARABE) --- */

/* Inverse les éléments quand le site passe en mode RTL */
[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    border-left: none;
    border-right: 1px solid #ddd;
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}


/* Cache le bouton burger sur PC */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    /* On affiche le burger */
    .menu-toggle { 
        display: block !important; 
        z-index: 1001; 
    }

    /* On transforme la liste en panneau latéral */
    .nav-links {
        display: flex !important; 
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Totalement hors écran à droite */
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 20px rgba(0,0,0,0.15);
        padding: 100px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        align-items: flex-start; /* Aligne les liens à gauche dans le menu mobile */
        gap: 0; /* On gère l'espace via les margins des li */
    }

    /* On cache le switcher de langue sur mobile s'il encombre la barre 
       (Optionnel : vous pouvez le laisser si la barre est assez large) */
    .lang-switcher {
        padding-left: 10px;
    }

    .nav-links.active { 
        right: 0; 
    }

    .nav-links li { 
        width: 100%; 
        margin: 10px 0; 
        border-bottom: 1px solid #eee; /* Optionnel : sépare les liens */
        padding-bottom: 10px;
    }
    
    .nav-links li:last-child { border-bottom: none; }

    .nav-links li a { 
        font-size: 1.1rem; 
        color: var(--primary) !important; 
        display: block; 
        width: 100%;
    }
}


