

/* ==========================================================================
    Section Héroïque
    Description : Section d'en-tête avec dégradé et vague décorative
   ========================================================================== */

.ier-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    text-align: center;
    padding: 5rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: var(--spacing-md-half) 0;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--bg-white);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    color: var(--bg-white);
}

/* ############ */


/* ==========================================================================
    Conteneur principal
    Description : Conteneur global pour la sous-navigation et les sections
   ========================================================================== */

.ier-container {
    max-width: 1200px;
    margin: -4rem auto 0;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 3;
}

/* Sub Navigation Container */
.subnav {
    /* Structure et positionnement */
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);

    /* Apparence */
    background: var(--bg-white);
    border-radius: 50px;
    box-shadow: var(--shadow);
}

/* Sub Navigation Item */
.subnav-item {
    /* Structure */
    display: flex;
    align-items: center;
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-sm);

    /* Apparence */
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;

    /* Interaction */
    transition: var(--transition);
}

.subnav-item i {
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-md);
}

.subnav-item:hover,
.subnav-item:focus,
.subnav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3);
}


/* ==========================================================================
    Sections
    Description : Styles pour les sections RSA, IER, et Référente
   ========================================================================== */

/* Section Styles */
.ier-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: var(--spacing-xl);
}


/* ==========================================================================
    Grille des fonctionnalités (RSA)
    Description : Grille responsive pour les cartes de fonctionnalités
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md-half);
    margin: var(--spacing-lg) 0;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: var(--spacing-md-half);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: var(--font-size-base);
}


/* ==========================================================================
    Conteneur des étapes (IER)
    Description : Liste des étapes pour l'IER avec numéros et contenu
   ========================================================================== */

.steps-container {
    margin: var(--spacing-lg) 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md-half);
    padding-bottom: var(--spacing-md-half);
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    /* Structure */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-right: var(--spacing-md);

    /* Apparence */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border-radius: 50%;

    /* Typographie */
    font-weight: 600;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================================================
    Responsive
    Description : Ajustements pour différentes tailles d'écran
   ========================================================================== */

/* Mobile (320px - 576px) */
@media screen and (max-width: 576px) {
    /* Section Héroïque */
    .ier-hero {
        padding: var(--spacing-lg) var(--spacing-sm); /* Réduire le padding */
    }
    .hero-content {
        margin: 4rem auto;
    }
    .hero-content h1 {
        font-size: 1.3rem; /* 1.1rem défini dans styles.css */
    }
    .hero-content p {
        font-size: 1rem; /* 0.9rem défini dans styles.css */
    }
    .hero-wave {
        height: 60px; /* Réduire la hauteur de la vague */
    }

    /* Conteneur principal */
    .ier-container {
        padding: 0 var(--spacing-md);
        margin-top: -2rem;
    }

    /* Sous-navigation */
    .subnav {
        flex-direction: column; /* Disposition en colonne pour mobile */
        align-items: stretch;
        border-radius: 12px;
        padding: var(--spacing-sm);
    }
    .subnav-item {
        margin: var(--spacing-sm) 0;
        padding: var(--spacing-sm);
        font-size: var(--font-size-base); /* 0.9rem */
    }
    .subnav-item i {
        font-size: 1rem;
    }

    /* Sections RSA, IER, Référente */
    .ier-section {
        padding: var(--spacing-md);
        margin-bottom: 3rem;
    }
    .section-header h2 {
        font-size: var(--font-size-lg); /* 1.1rem */
    }

    .feature-card p {
        font-size: 0.9rem;
    }
    /* Conteneur des étapes (IER) */
    .steps-container {
        margin: var(--spacing-md) 0;
    }
    .step {
        padding-bottom: var(--spacing-md);
    }
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    .step-content h3 {
        font-size: var(--font-size-base); /* 0.9rem */
    }
    .step-content p {
        font-size: 0.9rem;
    }

    /* Animations */
    .ier-hero, .ier-section, .subnav, .animate__animated {
        animation: none; /* Désactiver les animations pour performance sur mobile */
    }
}

/* Tablette (577px - 768px) */
@media screen and (min-width: 577px) and (max-width: 768px) {
    /* Section Héroïque */
    .ier-hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    .hero-content h1 {
        font-size: 1.3rem;/* 1.75rem défini dans styles.css */
    }
    .hero-content p {
        font-size: 1rem;  
    }
    .hero-wave {
        height: 80px; /* Hauteur intermédiaire */
    }

    /* Conteneur principal */
    .ier-container {
        padding: 0 var(--spacing-md-half);
        margin-top: -3rem;
    }

    /* Sous-navigation */
    .subnav {
        flex-direction: row; /* Garder en ligne pour tablette */
        padding: var(--spacing-md);
    }
    .subnav-item {
        margin: 0 var(--spacing-sm);
        padding: var(--spacing-sm);
        font-size: var(--font-size-base); /* 0.95rem */
    }
    .subnav-item i {
        font-size: 1.2rem;
    }

    /* Sections RSA, IER, Référente */
    .ier-section {
        padding: var(--spacing-md-half);
        margin-bottom: 3rem;
    }
    .section-header h2 {
        font-size: var(--font-size-xl); /* 1.75rem */
    }
 
    .feature-card p {
        font-size: var(--font-size-base); /* 0.95rem */
    }
    .feature-icon {
        font-size: 1.5rem;
    }

    /* Conteneur des étapes (IER) */
    .steps-container {
        margin: var(--spacing-md-half) 0;
    }
    .step {
        padding-bottom: var(--spacing-md);
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .step-content h3 {
        font-size: var(--font-size-lg); /* 1.15rem */
    }
    .step-content p {
        font-size: var(--font-size-base); /* 0.95rem */
    }

    /* Animations */
    .ier-hero, .ier-section, .subnav, .animate__animated {
        animation-duration: 0.8s; /* Réduire la durée pour tablette */
    }
}