/* css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF8C42;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #666;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light); /* Fond par défaut pour les pages */
}

/* Classe pour décaler le contenu des pages sous le header fixe */
.page-content-wrapper {
    padding-top: 100px; /* Ajustez si la hauteur du header change (86px) */
}
.page-content-wrapper section:first-child {
    padding-top: 80px; 
}
.page-content-wrapper .contact {
    padding-top: 80px; /* Ajusté pour la nouvelle page contact */
    padding-bottom: 80px;
    min-height: 80vh;
}

/* Header */
header {
    background: var(--dark);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none; /* Ajouté pour les liens logo */
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- AJOUT: Menu Burger --- */
.burger-menu {
    display: none; /* Caché sur PC */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1101; /* Au-dessus du menu */
}
.burger-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Animation du Burger en 'X' */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 180px 2rem 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="%23FF8C42" opacity="0.1"/></svg>');
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: #ff7a28;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

/* Stats Section */
.stats {
    background: var(--light);
    padding: 3rem 2rem;
    margin-top: -50px; /* Gardé pour l'effet sur la page d'accueil */
    position: relative;
    z-index: 10;
}
.hero + .stats {
    background: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Section Styles */
section {
    padding: 80px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--dark);
    font-size: 1.05rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Services Section (et Teaser) */
.services, .teaser {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card ul {
    list-style: none;
    color: var(--gray);
    padding-left: 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pousse le lien en bas */
}
.card-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Se place en bas */
}
.card-link:hover {
    text-decoration: underline;
}
.service-description {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
}

/* Engagement Section */
.engagement {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    color: var(--white);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.engagement-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.engagement-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.engagement-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.engagement-card p {
    opacity: 0.9;
    line-height: 1.8;
}

/* Formation Section */
.formation {
    background: var(--light);
}

.formation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.formation-highlights {
    display: grid;
    gap: 1.5rem;
}

.highlight-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.highlight-item h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: var(--white);
    text-align: left; /* Modifié pour la grille */
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center; /* Gardé pour l'ancien style */
}

.contact-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 2rem;
    border: none; /* Ajout pour les boutons de formulaire */
    cursor: pointer; /* Ajout pour les boutons de formulaire */
}

.contact-button:hover {
    background: #ff7a28;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

/* --- AJOUT: Styles Formulaire de Contact --- */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-form-container {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 15px;
}
.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.contact-info-container .section-subtitle {
    text-align: left;
    margin-left: 0;
}
.info-block {
    margin-bottom: 2rem;
}
.info-block h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.info-block p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
}
.info-block a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}
.info-block a:hover {
    color: var(--primary);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}


/* "Pourquoi Nous" */
.why-us {
    background: var(--light);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.why-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}
.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.why-card p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* "Clients" */
.clients {
    background: var(--white);
}
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}
.client-logos span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
    opacity: 0.7;
    font-style: italic;
    padding: 1rem 2rem;
    background: var(--light);
    border-radius: 8px;
}

/* "CTA Final" */
.final-cta {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 60px 2rem;
}
.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.final-cta p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
/* --- AJOUT: Liens Footer --- */
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin: 1.5rem 0;
}
.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}
.footer-content p {
    opacity: 0.7;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* --- AJOUT: Bouton WhatsApp --- */
.whatsapp-fab {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.whatsapp-fab svg {
    width: 32px;
    height: 32px;
    fill: white;
}


/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .formation-content,
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* --- MODIFIÉ: Logique Menu Burger --- */
    .nav-links {
        display: none; /* Caché par défaut */
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 86px; /* Hauteur du header */
        left: 0;
        width: 100%;
        background: var(--dark);
        padding-bottom: 1rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 1100;
    }
    .nav-links.active {
        display: flex; /* Affiché au clic */
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        padding: 1.2rem 1rem;
        display: block;
        width: 100%;
    }
    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--primary);
    }
    
    .burger-menu {
        display: flex; /* Afficher le burger */
    }
    /* --- Fin Logique Menu Burger --- */

    .stats-container {
        grid-template-columns: 1fr;
    }

    .page-content-wrapper {
        padding-top: 86px; /* Hauteur du header */
    }
    
    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-fab svg {
        width: 28px;
        height: 28px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* --- STYLES POUR LE MENU DÉROULANT (ACCORDÉON) --- */

/* Rend l'élément cliquable */
.highlight-item.accordion {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* L'en-tête qui contient le titre et la flèche */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Style et animation de la petite croix/flèche */
.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 10px;
    user-select: none; /* Empêche de sélectionner le texte de l'icône */
}

/* Quand l'élément est actif, l'icône tourne (le + devient x) */
.highlight-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Le contenu caché par défaut */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

/* Quand c'est actif, on affiche le contenu */
.highlight-item.active .accordion-content {
    opacity: 1;
    margin-top: 15px;
}

/* Style du texte caché */
.hidden-text {
    font-size: 0.95rem;
    color: #666; /* Couleur grise par défaut */
    padding-top: 10px;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

/* Si ta variable CSS --gray existe, on l'utilise */
.hidden-text {
    color: var(--gray, #666);
}





/* --- Hero Section Futuriste --- */
.hero {
    position: relative;
    width: 100%;
    /* On change le fond pour un dégradé Bleu Tech Profond -> Noir Élégant */
    background: linear-gradient(135deg, #6c4e1e 0%, #000000 100%); 
    color: rgb(255, 255, 255); /* Force le texte en blanc */
    overflow: hidden;
    /* Ajoutez du padding pour bien espacer le texte */
    padding: 120px 0 80px 0; 
}

/* Le Canvas en arrière-plan */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Derrière le texte */
    pointer-events: none; /* Ne bloque pas la souris */
}

/* Le contenu doit être bien lisible par-dessus */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* Ajustement des couleurs de texte pour le fond sombre */
.hero .subtitle {
    color: #f78c11; /* Un bleu cyan tech lumineux */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: #cbd5e1; /* Gris clair bleuté */
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* --- Animation d'apparition au scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Décalé vers le bas */
    transition: all 0.8s ease-out; /* Durée et fluidité */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Remonte à sa place */
}

/* Animation Hover sur les cartes */
.why-card, .service-card {
    /* ... vos styles existants ... */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Important pour la fluidité */
}

.why-card:hover, .service-card:hover {
    transform: translateY(-10px); /* La carte monte de 10 pixels */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* L'ombre grandit */
    border-bottom: 3px solid #f78c11; /* Une petite ligne bleue apparait en bas */
}

/* Petit effet bonus sur l'icone */
.why-card:hover .service-icon, .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg); /* L'icone grossit et penche un peu */
    transition: transform 0.3s ease;
    display: inline-block;
}

.stat-unit {
    font-size: 2rem; /* Un peu plus petit que le chiffre */
    font-weight: bold;
    color: #f78c11;
}

/* --- Correction alignement Stats --- */

.stat-wrapper {
    display: flex;             /* Active le mode flexible */
    justify-content: center;   /* Centre le tout horizontalement */
    align-items: baseline;     /* Aligne le bas du 'h' avec le bas du chiffre (plus joli) */
    gap: 2px;                  /* Petit espace entre le chiffre et l'unité */
    margin-bottom: 5px;        /* Espace entre le chiffre et le texte du dessous */
}

/* Assurez-vous que le stat-item centre bien tout le bloc */
.stat-item {
    display: flex;
    flex-direction: column;    /* Empile le [Chiffre+Unité] au-dessus du [Label] */
    align-items: center;
    /* ... vos autres styles ... */
}