/* ========================================
   MAIN-CONTENT.CSS
   Auteur                : Renaud
   Création              : 16 novembre 2025
   Dernière modification : 19 novembre 2025
   ======================================== */

/* ========================================
   MAIN-CONTENT.CSS
   Structure, Typographie et Utilitaires du contenu principal
   ======================================== */

.main-content {
    padding: 2rem;
    background-color: var(--color-background-main);
    color: var(--color-text-body);
}

/* --- UTILITAIRES GLOBAUX (Important pour le centrage) --- */
/* C'est cette classe qui permet à ta div de centrer le bouton */
.text-center {
    text-align: center !important;
}


/* --- TITRES ET SOUS-TITRES --- */

/* Titre principal de section (H3) avec ligne décorative */
.content-section-title {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--color-headings);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.content-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-logo-default);
    margin: 0.8rem auto 0 auto;
    border-radius: 2px;
}

/* Sous-titre (H4 ou H5) */
.content-subtitle {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-headings); /* Ou var(--color-blue-060) pour varier */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    /* On ne force pas le text-align ici pour laisser le choix via .text-center */
}


/* --- PARAGRAPHES --- */

.content-paragraph {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px; 
    margin-left: auto; /* Centre le bloc de texte lui-même si moins large que la page */
    margin-right: auto;
}

/* Note spéciale (ex: texte en gras coloré) */
.note-speciale {
    font-weight: bold;
    color: var(--color-logo-default);
}


/* --- NAVIGATION INTERNE (Liens rapides) --- */
.internal-links {
    margin-bottom: 3rem;
    text-align: center;
    background-color: var(--color-gris-220);
    padding: 1.5rem;
    border-radius: 8px;
}

.internal-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.internal-links-item {
    display: inline-block;
    text-decoration: none;
    color: var(--color-link-default);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-link-default);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.internal-links-item:hover {
    background-color: var(--color-link-default);
    color: #FFF;
    text-decoration: none;
}


/* --- SECTIONS --- */
.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    .internal-links-list {
        flex-direction: column;
    }
}
