/* ==========================================================================
   ASSETS/CSS/METHODE.CSS - Styles pour la page Notre Méthode (Version Corrigée)
   ========================================================================== */

.methode-hero {
    padding-top: 18rem;
    padding-bottom: 10rem;
}

/* -------------------------------------------------------------------------- */
/* SECTION 3 PILIERS                                                          */
/* -------------------------------------------------------------------------- */

.methode-pillars-container {
    display: grid;
    grid-template-columns: 1fr; /* Une colonne par défaut */
    gap: 4rem; /* Espace entre les piliers */
    max-width: 80ch;
    margin: 4rem auto 0 auto;
}

.methode-pillar {
    position: relative;
    padding-left: 3rem; /* Espace pour la ligne verticale */
    border-left: 2px solid var(--white-rock-medium);
}

/* Numéro géant en arrière-plan */
.methode-pillar::after {
    font-family: 'Bebas Neue', sans-serif;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 10rem;
    line-height: 1;
    color: var(--white-rock-light);
    z-index: -1;
}

/* Assigner un numéro à chaque item */
.methode-pillar:nth-child(1)::after { content: '01'; }
.methode-pillar:nth-child(2)::after { content: '02'; }
.methode-pillar:nth-child(3)::after { content: '03'; }

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pillar-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--walnut-light);
    color: white;
    flex-shrink: 0;
}
.pillar-icon i {
    width: 2rem;
    height: 2rem;
}

.pillar-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--black-pearl);
    margin: 0;
}

.pillar-content p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--black-pearl-light);
    margin: 0;
    padding-bottom: 2rem; /* Espace en bas pour aérer */
}

/* -------------------------------------------------------------------------- */
/* SECTION BARRE D'ICÔNES INTERACTIVE (MODULES)                               */
/* -------------------------------------------------------------------------- */

.modules-icon-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 2.5rem;
    margin-top: 5rem;
    padding: 2rem 0;
}

.module-icon-item {
    position: relative;
    cursor: pointer;
}

/* Le lien qui contient l'icône */
.module-icon-link {
    display: block;
    text-decoration: none;
}

.module-icon-display {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: var(--white-rock-medium);
    color: var(--black-pearl-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.module-icon-display i {
    width: 2.8rem;
    height: 2.8rem;
}

/* --- La Popover (cachée par défaut) --- */
.module-popover {
    position: absolute;
    bottom: calc(100% + 15px); 
    left: 50%;
    
    background-color: white;
    padding: 2rem 2.8rem; /* Augmenté le padding horizontal */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--white-rock-medium);
    text-align: left;
    min-width: 400px; /* Augmenté la largeur minimale */

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Petite flèche sous la popover */
.module-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Style pour le titre du module dans la popover */
.module-popover h4 {
    font-family: 'Playfair Display', serif; /* MODIFIÉ : Police élégante */
    font-size: 2.4rem; /* MODIFIÉ : Taille ajustée pour la nouvelle police */
    font-weight: 500;
    color: var(--walnut);
    margin: 0; /* MODIFIÉ : Marge gérée par la ligne de design */
    position: relative; /* AJOUTÉ : Pour positionner la ligne */
    padding-bottom: 0.8rem; /* AJOUTÉ : Espace pour la ligne */
}

/* AJOUTÉ : Ligne de design sous le titre */
.module-popover h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px; /* Longueur de la ligne */
    height: 2px; /* Épaisseur de la ligne */
    background-color: var(--quicksand); /* Couleur de la ligne */
}


/* Style pour la description */
.module-popover .popover-description {
    font-size: 1.4rem;
    color: var(--black-pearl-light);
    line-height: 1.5;
    margin: 1.5rem 0 1.5rem 0; /* MODIFIÉ : Marge en haut ajoutée */
}

/* Style pour le texte "Appuyer pour..." */
.module-popover .popover-cta-text {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--black-pearl-light);
    opacity: 0.7;
}


/* --- L'interaction au survol --- */
.module-icon-item:hover .module-icon-display {
    background: linear-gradient(135deg, var(--walnut-light), var(--walnut));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.module-icon-item:hover .module-popover {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}


/* -------------------------------------------------------------------------- */
/* SECTION RECHERCHE                                                          */
/* -------------------------------------------------------------------------- */

.research-carousel-container + p, /* Cible le paragraphe juste avant le carrousel */
.about-section .program-intro-text.subtitle {
    margin-left: auto;
    margin-right: auto;
}

.research-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5rem;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation plus douce */
}

.carousel-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    position: relative;
    border-radius: var(--border-radius-lg); /* Coins plus arrondis */
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    aspect-ratio: 16 / 9;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-card .card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%); /* Dégradé plus subtil depuis le bas */
    transition: background 0.4s ease;
}

.carousel-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); /* Dégradé légèrement plus intense au survol */
}

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

.carousel-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.about-section p.carousel-caption {
    text-align: center;
    font-style: italic;
    font-size: 1.5rem; /* Réduit la police (taille de base 1.7rem - 0.2rem ≈ 2px) */
    line-height: 1.5;  /* Réduit l'interligne */
    color: var(--black-pearl-light); /* Couleur de texte grisée */
    opacity: 0.6; /* Rend le texte légèrement plus discret */
    max-width: 80ch;
    margin: 2.5rem auto 0 auto;
}

/* Navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid var(--white-rock-medium);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-fast);
    z-index: 10;
}
.carousel-button:hover {
    background-color: var(--walnut);
    color: white;
}
.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.carousel-button.prev { left: 0; }
.carousel-button.next { right: 0; }

@media (max-width: 992px) {
    .carousel-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 768px) {
    .research-carousel-container { padding: 0 4rem; }
    .carousel-card { flex: 0 0 100%; }
}


/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .methode-pillar::after {
        font-size: 8rem; /* Numéro un peu plus petit sur mobile */
        right: 1rem;
    }

    .pillar-header h3 {
        font-size: 2.6rem;
    }

    .research-section-box {
        padding: 4rem 2.5rem;
    }
}