
/* ==========================================================================
    Conteneur principal
    Description : Conteneur global avec dégradé de fond
   ========================================================================== */

.informatique-container {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
}

/*  Description : Style l'icône décorative au-dessus du titre */
.section-icon {
    text-align: center;
    margin-bottom: var(--spacing-md-half);
    animation: fadeInDown 0.8s ease;
}
 
/*  Description : Styles pour les sections des modules (demandeurs d'emploi et salariés)  */
.modules-demandeurs,
.modules-salaries {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: var(--spacing-xl);
}


/* Introduction des sections */
.section-intro {
    font-size: var(--font-size-base);
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto  var(--spacing-lg);
    line-height: 1.6;
}

/* ==========================================================================
    Tableau des modules
    Description : Style du tableau pour les formations des demandeurs d'emploi
   ========================================================================== */

.table-container {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

th {
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr {
    transition: var(--transition);
}

tr:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

td strong {
    color: var(--primary-color);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md-half);
    margin: var(--spacing-lg) 0;
}

.module-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);
}

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

.module-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.module-icon i {
    /* font-size: var(font-size-xl); */
    font-size: 1.5rem;
}

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

.module-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

/* Mobile (320px - 576px) */
@media screen and (max-width: 576px) {
    /* Conteneur principal */
    .informatique-container {
        padding: var(--spacing-md) var(--spacing-sm); /* Réduire le padding */
    }

    /* Icône de section */
    .section-icon i {
        font-size: 2rem; /* Réduire la taille de l'icône */
    }

    /* Section Modules Demandeurs d'Emploi */
    .modules-demandeurs {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .table-container {
        margin: var(--spacing-md) 0;
    }
    table {
        font-size: 0.8rem; /* Réduire la taille du texte */
    }
    th, td {
        padding: var(--spacing-sm);
    }
    /* Transformer le tableau en disposition "card-like" pour mobile */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none; /* Cacher l'en-tête sur mobile */
    }
    tr {
        margin-bottom: 2.2rem;
        padding: var(--spacing-sm);
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    td {
        border: none;
        position: relative;
        padding-left: 50%; /* Espace pour le label */
        font-size: 0.9rem;
    }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-sm);
        width: 45%;
        font-weight: 600;
        color: var(--primary-color);
    }
    td strong {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Section Modules Salariés */
    .modules-salaries {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    /* Animations */
    .modules-demandeurs, .modules-salaries, .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) {
    /* Conteneur principal */
    .informatique-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    /* Icône de section */
    .section-icon i {
        font-size: 2.5rem;
    }

    /* Section Modules Demandeurs d'Emploi */
    .modules-demandeurs {
        padding: var(--spacing-md-half);
    }
    .section-intro {
        font-size: var(--font-size-base);
    }
    .table-container {
        margin: var(--spacing-md-half) 0;
    }
    table {
        font-size: var(--font-size-base);
    }
    th, td {
        padding: var(--spacing-md);
    }

    /* Section Modules Salariés */
    .modules-salaries {
        padding: var(--spacing-md-half);
    }
    .module-icon i {
        font-size: 1.3rem;
    }
    /* Animations */
    .modules-demandeurs, .modules-salaries, .animate__animated {
        animation-duration: 0.8s; /* Réduire légèrement la durée pour tablette */
    }
}