/* 1. VARIABLES DE LA CHARTE I-SOLUTIONS */
:root {
    --primary: #2AA4A2;    /* Bleu-Vert */
    --accent: #FF7F00;     /* Orange Vif */
    --dark: #000000;       /* Noir */
    --light: #f5f5f5;      /* Gris clair / Blanc cassé */
    --white: #FFFFFF;      /* Blanc pur */
    --text: #333333;       /* Gris foncé pour le texte */
    
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Utilitaires */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}


/* --- CONFIGURATION DU SMART SCROLL --- */
body {
    padding-top: 120px; /* Espace pour éviter que le contenu passe sous le header fixe */
}



/* --- STYLE DU PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fond blanc pur */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Au-dessus de tout */
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* cercle autour du logo */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 80%;
    animation: spin-ring 1.5s linear infinite;
}

/* logo */
.loader-logo-img {
    width: 110px;
    height: auto;
    animation: logo-rotate 3s ease-in-out infinite;
}

.loader-text {
    margin-top: 30px;
    font-family: var(--font-title);
    font-weight: 200;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

/* --- ANIMATIONS --- */

/* Rotation du cercle */
@keyframes spin-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rotation du logo */
@keyframes logo-rotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Classe de sortie (ajoutée par le JS) */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Empêcher le scroll pendant le chargement */
body.loading {
    overflow: hidden;
}



/* --- TOPBAR --- */
.topbar {
    background-color: var(--primary);
    color: var(--white);
    height: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 1000;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
    
    /* Fixé en haut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
}

.scrolling-container {
    width: 100%;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

.animate-welcome {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    animation: pro-pulse 3s infinite ease-in-out;
}

@keyframes pro-pulse {
    0%, 100% { opacity: 1; color: var(--white); }
    80% { opacity: 1; color: var(--primary); }
}

.gap-separator {
    display: inline-block;
    width: 400px; 
}

.scrolling-text i {
    color: var(--white);
    margin-right: 8px;
    font-size: 1.1rem;
}

.contact-divider {
    margin: 0 25px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- HEADER --- */
.main-header {
    background: var(--white);
    /* Utilisation de padding vertical pour créer un bouclier anti-zoom */
    padding: 10px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Hauteur minimum pour empêcher le header de s'écraser au zoom */
    min-height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.header-grid {
    display: flex;
    /* justify-content: space-between répartit logo, loc et bouton proprement */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo-img {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 250px;
    /* flex-shrink: 0 empêche le logo d'être écrasé par le zoom */
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover { transform: scale(1.05); }

/* --- LOCALISATION --- */
.loc-area {
    /* Pousse le bloc vers la droite */
    margin-left: auto; 
    margin-right: 30px;
    
    display: flex;
    align-items: center;
    gap: 1px; /* Espace entre l'image et le texte */
    flex-shrink: 0; /* Empêche le bloc de s'écraser au zoom */
}

.loc-img-marker {
    width: 75px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0; /* Empêche l'image de se déformer au zoom */
    display: block;
}

.loc-details {
    display: flex;
    flex-direction: column;
}

.loc-title { 
    font-weight: 900; 
    font-size: 1.2rem; 
    margin-bottom: 2px;
    background: linear-gradient(to bottom, #000000 30%, #2AA4A2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.loc-text { 
    font-size: 0.9rem; 
    color: #666; 
    font-weight: 500; 
    line-height: 1.2;
    white-space: nowrap;
}

/* --- BOUTON WHATSAPP --- */
.btn-isolution {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 50px;
    padding: 0 12px;
    border-radius: 8px;
    /* flex-shrink: 0 empêche le bouton de se déformer au zoom */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    position: relative;
}

.btn-content i { font-size: 2.2rem; }
.btn-text-only { font-size: 1.05rem; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }

.btn-fill {
    position: absolute;
    background-color: var(--primary);
    width: 0; height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-isolution:hover .btn-fill { width: 500px; height: 500px; }

/* --- LOGIQUE D'AFFICHAGE AU SCROLL --- */
.nav-down .topbar { transform: translateY(-100%); }
.nav-down .main-header { transform: translateY(-150%); }

.nav-up .topbar { transform: translateY(-100%); }
.nav-up .main-header { 
    top: 0; 
    transform: translateY(0);
    min-height: 75px; /* Plus compact au scroll */
}

.at-top .topbar { transform: translateY(0); }
.at-top .main-header { top: 30px; transform: translateY(0); min-height: 90px; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .loc-area { display: none; }
}
@media (max-width: 600px) {
    .main-header { min-height: 70px; padding: 20px 50; }
    .logo-img { max-height: 65px; }
    .btn-isolution { height: 45px; padding: 0 12px; }
}


/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 85vh; /* Prend 85% de la hauteur de l'écran */
    width: 100%;
    overflow: hidden;
    background-color: #2AA4A2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); /* Assombrit l'image pour faire ressortir le texte */
    transform: scale(1.1);
    transition: transform 15s linear; /* Effet de zoom lent */
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    padding-left: 5%;
}

.outline-text {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    line-height: 1;
    margin-bottom: -10px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.fill-text {
    font-size: 6rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 20px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

/* Animation quand la slide devient active */
.slide.active .outline-text,
.slide.active .fill-text,
.slide.active .slide-content p {
    transform: translateY(0);
    opacity: 1;
}

/* --- NAVIGATION POINTS (DROITE) --- */
.slider-nav {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
}

/* --- FLÈCHES (BAS GAUCHE) --- */
.slider-arrows {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: 0.3s;
}

.arrow:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .outline-text { font-size: 2.5rem; }
    .fill-text { font-size: 3rem; }
    .slider-nav { right: 15px; }
}


/* --- SECTION ABOUT --- */
.about-modern {
    background-color: var(--white);
    padding: 40px 0;
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* On colle les deux blocs pour un effet bloc compact */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 30px;
    overflow: hidden;
}

/* BLOC GAUCHE */
.about-left {
    flex: 2;
    background: linear-gradient(135deg, #2AA4A2 0%, #000000 100%);
    padding: 80px 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 400px;
}

.about-brand {
    font-size: 3.5rem;
    font-weight: 1000;
    letter-spacing: -1px;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(175deg, #2AA4A2 0%, #000000 100%);
}

.about-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px 0;
    position: relative;
}

.about-divider span {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent); /* Ton Orange I-SOLUTIONS */
    position: absolute;
    top: -1px;
}

.about-tagline {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    color: #2AA4A2;
}

/* BLOC DROITE */
.about-right {
    flex: 1.5;
    background: var(--white);
    padding: 60px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-circle i {
    font-size: 1.8rem;
    color: #ccc;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
}

.progress-ring circle {
    fill: transparent;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 3s ease-out;
}

.reveal.active .progress-ring circle {
    stroke-dashoffset: 60; /* Simule un chargement à 60% */
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 500;
    color: #333;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

/* EXPÉRIENCE LARGE */
.exp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-num-large {
    font-size: 4rem;
    font-weight: 900;
    color: #333;
}

.exp-plus {
    font-size: 4rem;
    color: var(--accent);
    font-weight: 700;
}

.exp-text {
    font-size: 2.5rem;
    font-weight: 300;
    color: #444;
}

/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        border-radius: 20px;
    }

    .about-left, .about-right {
        min-width: 100%;
        padding: 60px 20px;
        text-align: center; /* Centre tout le texte des deux blocs */
    }

    /* --- I-SOLUTIONS SUR UNE SEULE LIGNE --- */
    .about-brand {
        font-size: clamp(1.8rem, 8vw, 3.5rem); /* Typographie fluide */
        white-space: nowrap; /* Interdit le retour à la ligne */
        display: block;
        width: 100%;
        margin-bottom: 25px;
    }

    .about-divider {
        margin: 20px auto; /* Centre la ligne sous le titre */
    }

    .about-divider span {
        left: 50%;
        transform: translateX(-50%);
    }

    /* --- CENTRAGE DES STATISTIQUES --- */
    .stats-top-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Garde 3 colonnes pour l'équilibre */
        gap: 10px;
        width: 100%;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre verticalement le contenu de chaque stat */
        justify-content: center;
    }

    .stat-circle {
        margin: 0 auto 15px !important; /* Force le centrage horizontal du cercle */
        width: 85px;
        height: 85px;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    /* --- SECTION EXPÉRIENCE --- */
    .exp-large {
        justify-content: center; /* Centre les "Ans d'Expériences" */
        margin-top: 30px;
    }

    .stat-num-large { font-size: 3rem; }
    .exp-text { font-size: 1.8rem; }
}

/* Optimisation pour les très petits téléphones */
@media (max-width: 480px) {
    .stats-top-row {
        grid-template-columns: 1fr; /* On empile sur 1 colonne pour la lisibilité */
        gap: 30px;
    }

    .about-brand {
        font-size: 1.6rem; /* Réduction pour les écrans < 400px */
    }

    .exp-text {
        font-size: 1.2rem;
    }
}


/* --- SECTION PLATEFORMES --- */
.platforms-premium {
    background-color: #ffffff;
    padding: 30px 0;
}

.platforms-header-pro {
    text-align: center;
    margin-bottom: 40px;
}

.top-subtitle {
    color: var(--primary);
    font-weight: 300;
    letter-spacing: 5px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.main-title-pro {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #000;
}

.main-title-pro .outline {
    color: transparent;
    -webkit-text-stroke: 2px #000;
}

.title-underline-pro {
    width: 100px;
    height: 2px;
    background: var(--primary);
    margin: 15px auto;
}

.sub-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #000;
}

/* GRILLE 2x2 */
.grid-2x2-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
}

/* CARTE */
.p-card-pro {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* 1. LIGNE DE SCAN (LASER) */
.scan-line {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 10px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
    z-index: 10; opacity: 0; pointer-events: none;
}

/* 2. OVERLAY DE CHARGEMENT */
.card-loader-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0%;
    background: rgba(42, 164, 162, 0.05);
    z-index: 2; transition: height 0.6s ease;
}

/* EFFETS AU SURVOL */
.p-card-pro:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(42, 164, 162, 0.1);
}

.p-card-pro:hover .scan-line {
    animation: scanMove 0.8s linear forwards;
    opacity: 1;
}

.p-card-pro:hover .card-loader-overlay {
    height: 100%;
}

@keyframes scanMove {
    0% { top: -5%; }
    100% { top: 110%; }
}

/* CONTENU CARTE */
.p-img-wrapper { height: 300px; overflow: hidden; }
.p-img-wrapper img { 
    width: 100%; height: 100%; object-fit: cover; 
    filter: grayscale(40%); transition: 0.6s;
}

.p-card-pro:hover img { filter: grayscale(0%); transform: scale(1.05); }

.p-content-pro { padding: 40px; position: relative; z-index: 5; }
.p-content-pro h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 15px; color: #0f172a; }
.p-content-pro p { color: #64748b; margin-bottom: 30px; line-height: 1.6; }

/* BOUTON ACTION */
.p-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    border-radius: 12px;
    transition: 0.4s;
}

.p-card-pro:hover .p-action-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(42, 164, 162, 0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .grid-2x2-pro { grid-template-columns: 1fr; gap: 30px; padding: 0 20px; }
    .main-title-pro { font-size: 2.8rem; }
}


/* --- APPEL À L'ACTION --- */
.cta-section { background-color: #ffffff; text-align: center; padding: 40px 0; }
.cta-divider-line { width: 70px; height: 4px; background: #2AA4A2; margin: 0 auto 25px; }
.cta-title { font-size: 2.2rem; font-weight: 1000; color: #2AA4A2; margin-bottom: 20px; }

/* --- BOUTON --- */
.btn-static-cta {
    background: linear-gradient(to bottom, #000000 0%, #2AA4A2 100%);
    color: white; 
    border: none; 
    padding: 14px 20px;
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer;
    border-radius: 5px;
    transition: opacity 0.3s ease; /* Animation fluide sur l'opacité uniquement */
}

.btn-static-cta:hover {
    opacity: 0.7; /* Crée l'effet de voile blanc au survol */
}

.cta-subtitle { font-size: 1rem; color: #000000; margin-top: 25px; font-weight: 400; padding: 1px;}

/* --- MODALE --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center;
    z-index: 2000;
}

.form-success-msg {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.form-success-msg i {
    font-size: 3.5rem;
    color: #25D366; /* Vert succès */
    margin-bottom: 20px;
    display: block;
}

.form-success-msg p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-overlay.active { display: flex; }

.modal-container {
    background: white; width: 95%; max-width: 500px;
    max-height: 90vh;
    padding: 35px; border-radius: 15px; position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: none; border: none; font-size: 1.8rem;
    cursor: pointer; color: #aaa; transition: 0.3s;
}
.modal-close:hover { color: #000; }

.modal-header h3 { font-size: 1.6rem; color: #111; margin-bottom: 5px; }
.modal-header p { font-size: 0.85rem; color: #888; margin-bottom: 20px; }

/* --- FORMULAIRE --- */
.modal-form { display: flex; flex-direction: column; gap: 12px; }

.modal-form input, .modal-form select, .modal-form textarea {
    padding: 14px; border: 1px solid #e0e0e0; border-radius: 6px;
    background: #fcfcfc; font-size: 0.95rem; outline: none; transition: 0.3s;
}

.modal-form textarea { height: 200px; resize: none; }

.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
    border-color: var(--primary); background: #fff;
}

/* --- BOUTON ENVOYER --- */
.btn-submit-static {
    background: #000;
    color: white; 
    border: none; 
    padding: 16px;
    border-radius: 6px; 
    font-weight: 800; 
    cursor: pointer;
    transition: opacity 0.3s ease; /* Animation fluide sur l'opacité uniquement */
}

.btn-submit-static:hover {
    opacity: 0.7; /* Même effet de voile blanc pour la cohérence */
}


/* --- SECTION PARTENAIRES --- */
.partners-isolution {
    background-color: var(--white);
    padding: 30px 15px;
}

.partners-header-center {
    text-align: center;
    margin-bottom: 5px;
}

.corporate-title {
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 300;
    font-family: var(--font-title);
    text-transform: none;
}

.corporate-line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto;
}

/* LE CONTENEUR DU SLIDER */
.partners-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.partners-track {
    display: flex;
    gap: 60px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0;
    align-items: center;
}

/* STYLE DES LOGOS */
.partner-item {
    flex: 0 0 200px; /* Taille fixe par logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-item img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    /* GRIS PAR DÉFAUT */
    filter: grayscale(80%) opacity(100%); 
    transition: all 0.5s ease;
}

/* COULEUR AU SURVOL */
.partner-item:hover img {
    filter: grayscale(0%) brightness(1); /* Retour à la couleur d'origine */
    transform: scale(1.15);
}

/* FLÈCHES GAUCHE ET DROITE */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2AA4A2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: black;
    color: var(--primary);
}

.nav-arrow.left { left: -60px; }
.nav-arrow.right { right: -60px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .nav-arrow.left { left: -35px; }
    .nav-arrow.right { right: -35px; }
    .partners-slider-wrapper { padding: 0; }
}

@media (max-width: 768px) {
    .corporate-title { font-size: 1.8rem; }
    .partner-item { flex: 0 0 120px; }
}


/* --- FOOTER --- */
.main-footer {
    background-color: #f2f2f2;
    padding: 40px 0 0 0;
    color: #616161;
    font-size: 0.75rem;
    border-top: 1px solid #e1e1e1;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 80px;
}

/* --- ALIGNEMENT LOGO ET SLOGAN DANS LE FOOTER --- */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout horizontalement dans la colonne */
    text-align: center;
}

.footer-logo-box {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 5px;
    filter: none;
    opacity: 1;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-title);
    font-style: italic;
    margin: 0;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.footer-links-col h4 {
    color: #262626;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    color: #616161;
    transition: all 0.3s ease;
}

.footer-links-col ul li a:hover {
    color: #000;
    text-decoration: underline;
}

/* --- BARRE FINE DU BAS --- */
.footer-bottom-bar {
    background: #f2f2f2;
    padding: 10px 0;
    font-size: 0.75rem;
}

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

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    color: #616161;
}

.legal-links a:hover {
    text-decoration: underline;
    color: #000;
}

/* --- MODALE LÉGALE --- */
.legal-modal {
    max-width: 800px;
    max-height: 80vh;
}

.legal-text-content {
    margin-top: 20px;
    line-height: 1.6;
    text-align: justify;
    color: #333;
}

.legal-text-content h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 15px; }

/* -- VERSION RESPONSIVE PROFESSIONNELLE AVEC CROIX CENTRALE -- */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 10px 10px;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
        gap: 0;
        padding: -50px;
    }

    /* Le bloc Logo/Contact prend toute la largeur en haut */
    .footer-brand-col {
        grid-column: span 2; 
        text-align: center;
        padding: 40px 20px;
        border-bottom: 1px solid #e1e1e1;
    }

    .footer-links-col {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre le contenu dans chaque case */
        text-align: center;
    }

    /* --- CRÉATION DU TRAIT VERTICAL AU MILIEU --- */
    .footer-links-col:nth-child(2),
    .footer-links-col:nth-child(4) {
        border-right: 1px solid #e1e1e1;
    }

    /* --- CRÉATION DU TRAIT HORIZONTAL AU MILIEU --- */
    .footer-links-col:nth-child(2),
    .footer-links-col:nth-child(3) {
        border-bottom: 1px solid #e1e1e1;
    }

    /* Ajustement des textes pour le mobile */
    .footer-links-col h4 {
        font-size: 0.85rem;
        margin-bottom: 15px;
        color: #1a1a1a;
        width: 100%;
    }

    .footer-links-col ul {
        width: 100%;
    }

    .footer-links-col ul li a {
        font-size: 0.8rem;
        display: block;
        padding: 2px 0;
    }

    /* BARRE INFÉRIEURE */
    .footer-bottom-bar {
        border-top: 1px solid #e1e1e1;
        padding: 30px 0;
    }
    
    .bottom-flex {
        flex-direction: column;
        gap: 20px;
    }
}


/* --- CONFIGURATION DES COULEURS DU BANDEAU --- */
:root {
    --cookie-bg: #ffffff;
    --cookie-text: #111111;
    --cookie-link: #0066c0;
    --btn-accept-bg: #2AA4A2;
    --btn-accept-text: #ffffff;
    --btn-refuse-border: #adb1b8;
    --btn-refuse-bg-hover: #f7fafa;
}

.amazon-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--cookie-bg);
    border-top: 1px solid #ddd;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.1);
    z-index: 10000; padding: 25px 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.amazon-bar.active { transform: translateY(0); }

.amazon-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }

.amazon-text h3 { font-size: 1.1rem; font-weight: 800; color: var(--cookie-text); margin-bottom: 8px; text-transform: none; }
.amazon-text p { font-size: 0.9rem; color: #333; line-height: 1.5; }
.amazon-text a { color: var(--cookie-link); text-decoration: none; font-weight: 600; }
.amazon-text a:hover { text-decoration: underline; }

/* BOUTONS */
.amazon-actions { display: flex; align-items: center; gap: 12px; margin-top: 5px; }

.btn-amazon-accept {
    background-color: var(--btn-accept-bg); color: var(--btn-accept-text);
    border: 5px solid var(--btn-accept-bg); padding: 5px 30px;
    border-radius: 4px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-amazon-accept:hover { opacity: 0.85; box-shadow: 0 4px 10px rgba(42, 164, 162, 0.2); }

.btn-amazon-decline {
    background-color: transparent; border: 1px solid var(--btn-refuse-border);
    color: var(--cookie-text); padding: 8px 30px;
    border-radius: 0px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: 0.2s;
}
.btn-amazon-decline:hover { background-color: var(--btn-refuse-bg-hover); border-color: #888; }

.btn-amazon-link { background: none; border: none; color: var(--cookie-link); font-size: 0.9rem; cursor: pointer; }

/* STYLE MODALE POLITIQUE */
.legal-modal { max-width: 700px; border-radius: 15px; }
.legal-scroll-area { max-height: 70vh; overflow-y: auto; padding-right: 15px; text-align: left; }
.legal-scroll-area h2 { color: var(--primary); margin-bottom: 10px; }
.last-update { font-style: italic; color: #888; margin-bottom: 20px; font-size: 0.8rem; }
.legal-scroll-area h3 { font-size: 1.2rem; margin: 20px 0 10px; color: #111; }
.legal-scroll-area ul { margin-left: 20px; margin-bottom: 15px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .amazon-flex { flex-direction: column; gap: 20px; }
    .amazon-actions { width: 100%; justify-content: flex-start; }
}