/* --- VARIABLES & RESET --- */
:root {
    --primary-red: #E60000;
    --dark-navy: #1A1A2E; /* Un noir plus doux, moderne */
    --light-grey: #F0F2F5;
    --medium-grey: #D0D3D9;
    --text-color: #333;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, #E60000 0%, #FF4500 100%); /* Dégradé pour plus de dynamisme */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-grey);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Empêche les barres de défilement horizontales */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--dark-navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-navy);
}

.logo span {
    color: var(--primary-red);
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    font-weight: 400;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px; /* Espace pour l'underline animé */
    transition: var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition-fast);
}

nav a:hover::after,
nav a.active::after { /* Pour un état actif si vous l'implémentez */
    width: 100%;
}

.nav-info {
    margin-left: 15px; /* Espacement supplémentaire pour l'icône info */
}
.nav-info i {
    font-size: 1.2rem;
    color: var(--dark-navy);
    transition: var(--transition-fast);
}
.nav-info i:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}


/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1531482615713-2afd69097998?q=80&w=1500&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInScale 1s ease-out forwards; /* Animation d'apparition */
    opacity: 0;
    transform: scale(0.95);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px; /* Boutons plus arrondis */
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.5);
}

/* --- SECTION TITLES (Global) --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* --- SOLUTIONS SECTION --- */
.solutions {
    padding: 80px 5%;
    background-color: var(--light-grey);
    position: relative;
    overflow: hidden; /* Important pour cacher les particules en dehors de la section */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Assurez-vous que les particules sont derrière le contenu */
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Pour que le contenu soit au-dessus des particules */
    z-index: 2;
}

.solution-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--medium-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.solution-card i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.solution-card p {
    font-size: 1rem;
    color: var(--text-color);
    flex-grow: 1; /* Pour que les paragraphes prennent l'espace disponible */
}


/* --- CONTACT SECTION --- */
.contact {
    padding: 80px 5%;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start; /* Aligne les éléments en haut */
}

.contact-info, .contact-form-container {
    background: var(--light-grey);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.contact-info h3, .contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-navy);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1.1rem;
}

.contact-info p i {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 1.3rem;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--dark-navy);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid var(--medium-grey);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.contact-form textarea {
    resize: vertical; /* Permet uniquement le redimensionnement vertical */
}

/* --- FOOTER --- */
footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    .solution-card { padding: 30px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 1rem 20px; }
    nav ul { gap: 15px; }
    .hero { height: 70vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; margin-bottom: 2rem; }
    .btn { padding: 12px 25px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .solutions, .contact { padding: 60px 20px; }
    .solution-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form-container { padding: 30px; }
    .contact-info h3, .contact-form-container h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.5rem; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .solution-card h3 { font-size: 1.3rem; }
    .social-icons { justify-content: center; }
}
.legal-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    text-decoration: underline;
}

.legal-link:hover {
    color: var(--primary-red);
}

.footer-content p {
    margin: 5px 0;
}
/* --- BOUTONS FLOTTANTS OPTIMISÉS --- */

/* Bouton Retour en haut */
#backToTop {
    position: fixed;
    bottom: 90px; /* Placé au-dessus du bouton WhatsApp */
    right: 27px;
    background: var(--dark-navy);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* Bouton WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1001;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-wa 2s infinite;
}

/* Tooltip "Besoin d'aide" (Caché par défaut) */
.tooltip-wa {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0; /* CACHÉ */
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* APPARITION AU SURVOL */
.whatsapp-btn:hover .tooltip-wa {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.open .status-dot { background-color: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.open #status-text { color: #27ae60; }
.closed .status-dot { background-color: #e74c3c; box-shadow: 0 0 8px #e74c3c; }
.closed #status-text { color: #c0392b; }

/* --- SECTION PARTENAIRES --- */
.partners-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Le conteneur du slider */
.slider {
    width: 100%;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-track {
    display: flex;
    width: calc(250px * 14); /* 250px par logo * nombre total de slides (7x2) */
    animation: scroll-infinite 40s linear infinite;
}

.slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #ccc; /* Couleur grise pour rester sobre */
    filter: grayscale(100%);
    transition: 0.3s;
}

.slide:hover {
    filter: grayscale(0%);
    color: var(--primary-red);
}

.slide i {
    font-size: 2rem;
}

.slide span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

/* Animation du défilement */
@keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Doit correspondre à la moitié des logos */
}

/* Responsive : accélérer un peu sur mobile */
@media (max-width: 768px) {
    .slide-track {
        animation: scroll-infinite 20s linear infinite;
    }
}


