/* === VARIABLES ET STYLES DE BASE (inspirés de votre CSS) === */
:root {
    --color-primary: #ffffff;      /* Blanc */
    --color-secondary: #f5f5f5;    /* Gris très clair */
    --color-tertiary: #171a1c;     /* Noir doux */
    --color-detail: #0b40e0;       /* Bleu accent */
    --color-detail-darker: #0833b3; /* Bleu plus foncé pour hover */
    --color-text: #171a1c;         /* Couleur texte principal */
    --color-text-light: #ffffff;   /* Texte sur fonds sombres */
    --color-text-subtle: #555555;  /* Texte plus discret */
    --font-family-base: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --border-radius-base: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family-base);
    margin: 0;
    background-color: var(--color-primary);
    color: var(--color-text);
    /* Empêche la barre de scroll horizontale si une carte dépasse */
    overflow-x: hidden; 
}

.sub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === BANDEAU HÉRO === */
.entreprise-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    text-align: center;
    /* background-image: url('../images/HeroBackground_Entreprise.png'); */
    background-size: cover;
    /* Aligne l'image en haut pour rendre le sommet visible */
    background-position: 50% 15%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(23, 26, 28, 0.7) 0%, rgba(23, 26, 28, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.entreprise-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

/* === ANIMATION D'APPARITION AU SCROLL === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai pour les éléments en grille */
.grid-container > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.grid-container > .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }


/* === SECTION AMBITION === */
.ambition-section {
    padding: 4rem 0;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

.ambition-card {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-base);
    margin-bottom: 2rem;
    border-left: 5px solid var(--color-detail);
}

.ambition-card h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

.ambition-card-secondary p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-text-subtle);
    margin: 0;
    text-align: center;
    font-weight: bold;
}   

.wide-section {
    max-width: 90vw;
    margin: 0 auto;
    width: 90vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

/* === SECTIONS DE CONTENU (GENÈSE, VALEURS) === */
.content-section {
    position: relative;
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3rem;
    position: relative;
}
/* Soulignement décoratif pour les titres de section */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-detail);
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--color-primary);
    padding: 2rem;
    padding-top: 1rem;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    border-top: 4px solid transparent;
    
    /* --- MODIFICATIONS POUR L'ANIMATION --- */
    position: relative; /* AJOUTÉ : Nécessaire pour que z-index fonctionne */
    z-index: 1; /* AJOUTÉ : Définit le niveau de base des cartes */
    /* MODIFIÉ : Ajout de z-index à la transition pour éviter un changement brusque */
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease, 
                z-index 0s var(--transition-speed); 
}

.info-card:hover {
    /* On retire le scale */
    transform: translateY(-8px); /* Plus de scale(1.4) */
    box-shadow: var(--shadow-medium);
    border-top-color: var(--color-detail);
    z-index: 10;
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease, 
                z-index 0s;
}


.info-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-subtle);
    margin-bottom: 0;
    text-align: justify;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-detail);
    margin-bottom: 1.5rem;
    display: inline-block;
}


/* === SECTION APPROCHE (TIMELINE) === */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-step {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-detail);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px var(--color-secondary);
}

.timeline-content {
    padding-top: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-subtle);
    margin: 0;
}

/* Connecteur vertical pour la timeline sur grand écran */
@media (min-width: 768px) {
    .timeline-container {
        padding-left: 25px; /* Espace pour le connecteur */
    }
    .timeline-container::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 24px;
        bottom: 25px;
        width: 2px;
        background-color: #e0e0e0;
    }
}


/* === BANDEAU CTA FINAL === */
.cta-bandeau {
    background-color: var(--color-tertiary);
    color: var(--color-text-light);
    text-align: center;
    margin-top: 4rem;
}

.cta-content {
    padding: 4rem 2rem;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 2rem 0;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Utiliser le système de boutons global (.btn, .btn--primary, etc.) */

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .entreprise-hero {
        height: 35vh;
        min-height: 250px;
    }

    .ambition-section,
    .content-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        gap: 1rem;
    }
    
    .timeline-step {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* On garde la désactivation du scale sur mobile, mais ce n'est plus nécessaire */
    .info-card:hover { transform: none; }
}

/* === SECTION ARTISTIQUE LA GENÈSE (GRANDES VIGNETTES) === */
.genesis-artistic-section {
    min-width: 100vw;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    padding: 2rem 0 3rem 0;
    overflow: visible;
    position: relative;
    background: none;
    z-index: 1;
}
.genesis-artistic-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    /* background: radial-gradient(circle at 50% 50%, #eaf0ff 0%, #ffffff 70%, #ffffff 100%); */
}
.genesis-genese-text {
    position: relative;
    z-index: 2;
}

.genesis-artistic-bg {
    position: absolute;
    top: 0; left: 50%;
    width: 1100px;
    height: 700px;
    transform: translateX(-50%);
    /* background: radial-gradient(circle at 60% 30%, #0b40e033 0%, #ffffff00 80%); */
    filter: blur(24px);
    z-index: 0;
    pointer-events: none;
}

.genesis-triangle-container {
    position: relative;
    width: 700px;
    height: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 2;
}

.genesis-svg-lines {
    position: absolute;
    top: 0; left: 0;
    width: 700px;
    height: 540px;
    z-index: 1;
    pointer-events: none;
}

.genesis-card {
    position: absolute;
    width: 290px;
    min-height: 210px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 32px rgba(11,64,224,0.10), 0 1.5px 8px rgba(23,26,28,0.09);
    border-radius: 18px;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    z-index: 2;
    border: 2.5px solid #0b40e012;
    backdrop-filter: blur(2px);
}
.genesis-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(11,64,224,0.18), 0 2px 12px rgba(23,26,28,0.13);
    border-color: #0b40e0;
}

.genesis-card-1 { left: 205px; top: 0; }
.genesis-card-2 { left: 0; top: 340px; }
.genesis-card-3 { left: 410px; top: 340px; }

@media (max-width: 900px) {
    .genesis-artistic-bg {
        width: 98vw;
        height: 340px;
    }
    .genesis-triangle-container, .genesis-svg-lines {
        width: 98vw;
        min-width: 0;
        max-width: 98vw;
    }
}
@media (max-width: 800px) {
    .genesis-triangle-container {
        width: 99vw;
        height: auto;
    }
    .genesis-card {
        width: 95vw;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto 1.5rem auto;
        position: static;
    }
    .genesis-svg-lines { display: none; }
}

.genesis-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    display: block;
    filter: drop-shadow(0 2px 6px #0b40e033);
}

.artistic-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    letter-spacing: 0.03em;
    color: #0b40e0;
    text-shadow: 0 2px 18px #0b40e022;
    margin-bottom: 2.5rem;
    z-index: 3;
    position: relative;
}

.genesis-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #171a1c;
}
.genesis-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* === GENÈSE ARTISTIQUE === */
.genesis-genese-text {
    max-width: 1050px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem 2.5rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 0 32px 0 #0b40e055, 0 12px 40px 0 rgba(11,64,224,0.13), 0 2px 12px rgba(23,26,28,0.10);
    border: 2px solid #2654dd5b;
    transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: none;
}

.genesis-genese-text::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    width: 340px; height: 180px;
    transform: translateX(-50%) rotate(-8deg);
    /* background: radial-gradient(circle at 60% 30%, #0b40e033 0%, #ffffff00 80%); */
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.genesis-genese-text p {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 1.32rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    background: linear-gradient(90deg, #0b40e0 0%, #171a1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: justify;
}

.genesis-genese-text p::after {
    content: '';
    display: block;
    margin: 2.2rem auto 0 auto;
    width: 80px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0b40e0 0%, #eaf0ff 100%);
    opacity: 0.7;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* On masque les anciens éléments de la genèse */
.genesis-triangle-container, .genesis-svg-lines, .genesis-card {
    display: none !important;
}

@media (max-width: 1200px) {
    .genesis-genese-text {
        max-width: 92vw;
    }
}