/* Variables de couleur et polices */
:root {
    --color-black: #1a1a1a; 
    --color-accent: #612C87;   
    --color-accent-light: #8D44CC; 
    --color-white: #FFFFFF;
    --color-light-gray: #f0f0f0; 
    --color-medium-gray: #555555; 
    --color-dark-gray: #333333; 
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 80px; 
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
}
/* body.mobile-menu-active { overflow: hidden; }  Déplacé dans la media query pour s'appliquer uniquement sur mobile */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 { 
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 0.75em;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(to right, var(--color-accent-light), var(--color-accent)); 
    -webkit-background-clip: text; 
    -moz-background-clip: text;    
    background-clip: text;
    color: transparent; 
    -webkit-text-fill-color: transparent; 
}

h2::after { 
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--color-accent); 
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 { /* Style pour les titres de section de service, par exemple */
    font-size: 1.5rem;
    color: var(--color-accent); 
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-accent); 
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4A2166; 
}

/* Header Sticky */
.sticky-header {
    background-color: var(--color-white);  
    padding: 0; 
    height: var(--header-height); 
    display: flex; 
    align-items: center; 
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002; /* Augmenté pour être au-dessus du menu mobile si ce dernier a 1000/1001 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); 
    border-bottom: 1px solid var(--color-light-gray); 
}

.header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo-placeholder { 
    font-family: var(--font-secondary);
    font-size: 1.9rem; 
    font-weight: 700;                 
    color: var(--color-accent);       
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
}

.logo-placeholder img { 
    max-height: calc(var(--header-height) - 30px);  
    width: auto;      
    display: block;   
}

/* Styles pour le menu de navigation principal (Desktop) */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center; 
    margin: 0; 
    padding: 0; 
}

.main-nav ul li {
    margin-left: 35px; 
}

.main-nav ul li:first-child { 
    margin-left: 0;
}

.main-nav ul li a {
    color: var(--color-medium-gray);    
    font-family: var(--font-secondary);
    font-weight: 500;                 
    font-size: 1.05rem;                  
    text-decoration: none;             
    padding: 5px 0px;                  
    position: relative;
    display: inline-block; 
    transition: color 0.25s ease;     
}

.main-nav ul li a:hover {
    color: var(--color-accent);       
}

.main-nav ul li a::after {
    display: none; 
}

/* Bouton Hamburger */
.hamburger-button {
    display: none; 
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1005; 
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-accent); 
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* Section Hero avec Slider */
.hero-section {
    height: calc(100vh - var(--header-height)); 
    min-height: 500px; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; 
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2; 
}

.hero-content {
    position: relative; 
    z-index: 3; 
    padding: 0 20px;
}

.hero-content h1 { 
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
}
.hero-content h1::after { display: none; }

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent); 
    color: var(--color-white); 
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-weight: 700; 
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; 
}

.cta-button:hover {
    background-color: #4A2166; 
    color: var(--color-white); 
    transform: translateY(-2px);
}

/* Contrôles du Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); 
    color: white; 
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 4; 
    border-radius: 3px;
    transition: background-color 0.3s ease;
}
.slider-control:hover {
    background-color: rgba(0, 0, 0, 0.8); 
}
.slider-control.prev {
    left: 20px;
}
.slider-control.next {
    right: 20px;
}


/* Sections de contenu génériques */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: var(--color-light-gray); 
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Section Qui sommes-nous */
.about-content p {
    font-size: 1.1rem;
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Nos Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
}
.service-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-text {
    padding: 25px;
    flex-grow: 1;
}

.service-text h3 { 
    margin-top: 0;
}

/* Section Notre Équipe */
.team-layout {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: flex-start; /* MODIFIÉ : Aligner les items en haut */
    margin-top: 50px; 
}

.team-text {
    flex: 1 1 52%; /* Donne un peu plus de priorité au texte */
    min-width: 300px; 
    text-align: left; 
}

.team-text p:not(.certification-intro):not(.certification-guarantee) { 
    margin-bottom: 1.5em; 
    line-height: 1.7; 
}

.team-image-container {
    flex: 1 1 42%; /* Un peu moins de base pour l'image, elle s'adaptera */
    min-width: 280px;
    background-color: var(--color-white); /* MODIFIÉ : Fond blanc pour le conteneur de l'image */
    padding: 15px;                         /* MODIFIÉ : Léger padding autour de l'image */
    border-radius: 12px;                   /* MODIFIÉ : Coins arrondis pour le conteneur */
    border: 1px solid #e9e9e9;           /* MODIFIÉ : Bordure très subtile */
    /* Une ombre très légère sur le conteneur peut être envisagée si besoin, mais commençons sans */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
}

.team-image-container img {
    width: 100%; /* L'image prend toute la largeur de son conteneur paddé */
    max-width: 100%; /* S'assurer qu'elle ne dépasse pas */
    height: auto;    
    display: block;  
    border-radius: 6px; /* Coins arrondis pour l'image elle-même, plus petits que le conteneur */
    box-shadow: none; /* Assurer qu'il n'y a pas d'ombre sur l'image directement */
}

/* Styles pour les certifications (Revisités) */
.team-certifications {
    margin-top: 40px; 
    padding-top: 25px;
    border-top: 1px solid #ddd; /* Séparateur plus visible */
}

.team-certifications h4 { 
    font-size: 1.3rem;   
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.team-certifications h4 i {
    margin-right: 12px;
    font-size: 1.4em; 
    color: var(--color-accent);
}

.certification-intro { /* Paragraphe d'introduction aux certifications */
    margin-bottom: 25px !important; /* Important pour surcharger le p général */
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-medium-gray);
}

.certification-item {
    margin-bottom: 25px;
    padding: 15px; /* Ajout de padding interne */
    background-color: var(--color-white); /* Léger fond pour chaque item */
    border-radius: 6px;
    border-left: 4px solid; /* La couleur sera définie par .ba4 ou .ba5 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.certification-item.ba4 { border-left-color: #3498db; }
.certification-item.ba5 { border-left-color: #e67e22; }

.certification-item.gof4 { 
    border-left-color: #2ecc71; /* Un vert pour GOF 4, par exemple */
}

.certification-badge.gof4 {
    background-color: #2ecc71; /* Vert pour le badge GOF 4 */
}



.certification-item:last-of-type {
    margin-bottom: 20px;
}

.certification-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Espace entre badge/titre et description */
}

.certification-badge { 
    font-weight: 700;
    padding: 5px 12px; /* Badge plus grand */
    border-radius: 5px;
    color: var(--color-white);
    margin-right: 15px; /* Plus d'espace */
    font-size: 0.9em;
    line-height: 1.2; 
    flex-shrink: 0; 
}

.certification-badge.ba4 {
    background-color: #3498db; 
}

.certification-badge.ba5 {
    background-color: #e67e22; 
}

.certification-item h5 { 
    font-size: 1.1rem; /* Titre certification plus grand */
    color: var(--color-dark-gray);
    font-weight: 600;
    margin: 0; 
}

.certification-item p { 
    font-size: 0.95rem; /* Description plus lisible */
    line-height: 1.65;
    color: var(--color-medium-gray);
    margin-bottom: 0; 
}

.certification-guarantee {
    font-weight: 500;
    color: var(--color-dark-gray);
    padding-top: 20px;
    border-top: 1px solid #ddd;
    margin-top: 30px;
    font-size: 1rem; /* Phrase de garantie plus visible */
    text-align: center; 
}


/* Section Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.8em;
}
.contact-info p i {
    color: var(--color-accent); 
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info address {
    font-style: normal;
    margin-left: 30px;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: #a0a0a0; 
    padding: 60px 0 0 0; 
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 40px; 
    padding-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px; 
    margin-bottom: 20px; 
}

.footer-column h4 {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after { 
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-logo {
    font-size: 1.8rem; 
    font-weight: 700;
}
.footer-logo-tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ccc; 
    display: block; 
    margin-top: -5px;
}


.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: #a0a0a0;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--color-accent);
}
.social-icon:last-child {
    margin-right: 0;
}


.footer-links ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px; 
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 10px;
}
.footer-contact p {
    margin-bottom: 8px;
}
.footer-contact p a {
    color: #a0a0a0;
    transition: color 0.3s ease;
}
.footer-contact p a:hover {
    color: var(--color-accent);
}
.footer-icon {
    color: var(--color-accent);
    margin-right: 8px;
    width: 16px;
    display: inline-block; 
}

.footer-bottom {
    background-color: #111111; 
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #2a2a2a; 
}
.bottom-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}


.footer-back-to-top {
    color: var(--color-white);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-back-to-top:hover {
    color: var(--color-accent);
}
.footer-back-to-top i {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Media Queries pour la responsivité */
@media (max-width: 992px) { /* Tablette et moins */
    .hero-section {
        height: calc(100vh - var(--header-height)); 
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .team-layout { 
        flex-direction: column;
        align-items: center; /* Centrer les items quand en colonne */
        gap: 30px; 
    }
    .team-text {
        padding-right: 0; 
        text-align: center; /* Centrer le texte principal */
        order: 2; 
        flex-basis: 100%; /* Prend toute la largeur */
    }
    .team-image-container {
        order: 1; 
        width: 100%; 
        max-width: 500px; /* Permettre à l'image d'être plus grande */
        margin: 0 auto 20px auto; 
        flex-basis: auto; /* Réinitialiser la base flex */
    }
    .team-certifications {
        text-align: left; /* Garder le texte des certifs à gauche pour lisibilité */
    }
    .certification-guarantee {
        text-align: center; /* La garantie peut être centrée */
    }

    .footer-container {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 30px;
    }
    .footer-column {
        min-width: 100%; 
        margin-bottom: 30px;
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }
    .footer-column h4 {
        font-size: 1.1rem;
    }
    .bottom-container {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) { /* Mobile - Activation du menu hamburger */
    :root {
        /* --header-height: 70px; */
    }
    body.mobile-menu-active { 
        overflow: hidden; 
    }
    
    .sticky-header {
        height: var(--header-height); 
    }
    .header-container {
        position: relative; 
    }

    .logo-placeholder {
        position: absolute; 
        left: 50%;
        top: 50%; 
        transform: translate(-50%, -50%); 
    }
    .logo-placeholder img {
        max-height: calc(var(--header-height) - 35px); 
    }

    .main-nav {
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%;
        height: 100vh; 
        background-color: var(--color-white);
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.35s ease-in-out;
        z-index: 1001; /* Doit être en dessous du hamburger (1005) et du header (1002) quand fermé */
        padding-top: var(--header-height); 
        overflow-y: auto; 
    }

    .main-nav.is-active {
        left: 0; 
    }

    .main-nav ul {
        flex-direction: column; 
        align-items: center;   
        padding: 30px 0;       
        width: 100%;
    }

    .main-nav ul li {
        margin-left: 0; 
        margin-bottom: 20px; 
        width: 80%; 
        text-align: center;
    }

    .main-nav ul li a {
        font-size: 1.2rem; 
        font-weight: 600; 
        color: var(--color-dark-gray); 
        padding: 10px 0;
        width: 100%; 
        display: block;
    }
    .main-nav ul li a:hover {
        color: var(--color-accent);
    }

    .hamburger-button {
        display: block; 
        position: absolute; 
        right: 20px; 
        top: 50%;
        transform: translateY(-50%); 
    }

    .hamburger-button.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-button.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-button.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        height: calc(100vh - var(--header-height)); 
    }
    .hero-content h1 {
        font-size: 2rem; 
    }
    .hero-content p {
        font-size: 0.95rem; 
    }
    h2 {
        font-size: 1.8rem; 
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-item {
        margin-bottom: 20px;
    }
    .slider-control {
        padding: 8px 12px;
        font-size: 16px;
    }
    .slider-control.prev { left: 10px; }
    .slider-control.next { right: 10px; }
    
    /* Section Équipe sur Mobile */
    .team-text {
        text-align: left; /* Texte principal de l'équipe aligné à gauche */
    }
    .team-image-container {
        max-width: 380px;
    }
    .team-certifications {
        margin-top: 30px;
        padding-top: 15px;
    }
    .team-certifications h4 {
        font-size: 1.15rem;
    }
     .team-certifications h4 i {
        font-size: 1.3em;
    }
    .certification-item {
        padding-left: 0; /* Plus de padding à gauche car badges en dessous */
        border-left: none; /* Enlever la bordure latérale */
        padding: 10px; /* Padding uniforme */
    }
    .certification-badge {
        display: inline-block; /* Pour qu'il soit à côté du titre h5 */
        margin-bottom: 0px;
        /* text-align: left; (inutile si inline-block) */
        width: auto; /* S'adapte à la largeur du texte */
        margin-right: 8px; /* Espace entre badge et titre h5 */
    }
     .certification-item h5 {
        font-size: 1rem;
        display: inline; /* Pour que le titre suive le badge */
    }
    .certification-header {
        align-items: flex-start; /* Aligne les badges et le texte en haut */
    }
    .certification-item p {
        margin-top: 5px; /* Petit espace après le header de la certification */
    }
     .certification-guarantee {
        font-size: 0.9rem;
        text-align: left; 
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .logo-placeholder img {
        max-height: calc(var(--header-height) - 40px); 
    }
     .hamburger-button {
        right: 15px; 
    }
}