/* assets/css/informatique_details.css */

/* 1. Le conteneur principal (Fond gris) */
.details-page-container {
    background-color: var(--bg-light); /* Gris très clair */
    min-height: calc(100vh - 200px); /* Prend toute la hauteur moins header/footer */
    padding: var(--spacing-xl) var(--spacing-md);
    
    /* CENTRAGE PARFAIT */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: flex-start; /* Aligne en haut (mieux pour le scroll si long) */
}

/* 2. La Carte Blanche (Design moderne) */
.details-card {
    background: var(--bg-white);
    width: 100%;
    max-width: 800px; /* Largeur optimale pour la lecture */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Ombre douce et moderne */
    padding: var(--spacing-xl); /* Espacement interne aéré */
    position: relative;
    border-top: 6px solid var(--primary-color); /* Touche de couleur AJ2 en haut */
}

/* 3. Header de la carte */
.card-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: #f0f7ff; /* Bleu très très pâle */
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.icon-wrapper i {
    font-size: 2.5rem;
}

.card-header h1 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

/* 4. Badges / Infos */
.meta-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--primary-color);
}

/* Séparateur élégant */
.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: var(--spacing-lg) 0;
}

/* 5. Contenu du programme */
.card-content h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content h2 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.program-text {
    font-size: 1.05rem;
    line-height: 1.8; /* Très important pour la lisibilité */
    color: var(--text-gray);
}

/* Pour que les listes de l'éditeur s'affichent bien */
.program-text ul, .program-text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.program-text ul li {
    list-style-type: disc;
}

.program-text ol li {
    list-style-type: decimal;
}

/* 6. Footer et Bouton */
.card-footer {
    margin-top: var(--spacing-xl);
    text-align: center;
    background: #fafafa;
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.card-footer p {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.btn-action:hover {
     
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .details-page-container {
        padding: var(--spacing-md);
    }
    .details-card {
        padding: var(--spacing-md);
    }
    .card-header h1 {
        font-size: 1.5rem;
    }
    .program-text {
        text-align: left; /* Sur mobile, justifié passe mal parfois */
    }
}