/*
Codes RGB des principales couleurs utilisées :
    Bleu technologique : #1D5C9E (RGB: 29, 92, 158)
    Orange dynamique : #E87722 (RGB: 232, 119, 34)
    Vert : #1E3A2B
*/

/* Réinitialisation et polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Host Grotesk", sans-serif;
    width: 100%;
    overflow-x: hidden;
}

/* Bandeau d'intro */
.about-section {
    margin-top: 1rem;
    width: 100%;
    height: auto;
    position: relative;
    background-image: url('/assets/images/ISIVC_Background-v3.png');
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2rem;
}

.about-container {
    max-height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
}

.about-content {
    position: relative;
    top: 20%;
    text-align: left;
    margin-left: 50px;
}

.about-title {
    font-size: 4rem;
    color: #E87722;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Sections principales */
.section {
    display: flex;
    align-items: flex-start; /* Alignement en haut à gauche */
    padding: 2rem;
    gap: 2rem;
    background-color: #fff;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-content {
    display: flex;
    align-items: flex-start; /* Évite le centrage vertical */
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.section-image {
    width: 38.2%; /* Taille selon le nombre d'or */
    max-width: 38.2%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.section-text {
    width: 61.8%; /* Complément à 100% pour le texte */
}

/* Titres et paragraphes */
.section-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1D5C9E;
}

.blue-subtitle {
    color: #1D5C9E;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.spaced-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.spaced-list {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding-left: 1.2rem;
}

.spaced-list li {
    margin-bottom: 0.7rem;
}

/* Liens */
.link {
    color: #1D5C9E;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Bouton de téléchargement */
.download-button {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background-color: #1D5C9E;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
}

.download-button:hover {
    background-color: #1E3A2B;
}

.download-button i {
    margin-right: 0.5rem;
}

/* Conteneur pour l'affiche */
.poster-container {
    width: 100%;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alignement à gauche */
}

/* Toggle CMT (guide masqué) */
.hidden-guide {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #1D5C9E;
}

.hidden-guide.show {
    display: block;
}

.toggle-cmt {
    font-weight: 600;
    cursor: pointer;
}

.toggle-cmt:after {
    content: " +";
    font-weight: bold;
}

.toggle-cmt.active:after {
    content: " −";
}

/* Sous-titres du guide */
.blue-subtitle-small {
    color: #1D5C9E;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Responsive (optionnel) */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
    }

    .section-image,
    .section-text {
        width: 100%;
    }

    .about-title {
        font-size: 2.5rem;
    }
}

/* Style pour le guide en bas de page */
#cmt-guide {
    display: none;
    width: 100%;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-top: 3px solid #1D5C9E; /* Ligne bleue en haut pour délimiter */
}

#cmt-guide.show {
    display: block;
}

/* Section dédiée au guide CMT (en bas de page) */
.cmt-guide-section {
    margin-top: 0;
    padding-top: 0;
}

#cmt-guide {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#cmt-guide.show {
    display: block;
}

/* Conteneur du guide CMT (pleine largeur comme les sections) */
#cmt-guide {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 3px solid #1D5C9E;
    box-sizing: border-box;
}

/* Contenu du guide (même largeur que .section-text) */
.cmt-guide-content {
    max-width: 1200px; /* Largeur max comme les sections */
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

/* Assurez-vous que le guide n'est pas contraint par un parent */
main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Colonnes selon le nombre d'or */
.left-column {
    flex: 0 0 38.2%; /* 38.2% ≈ 100 / (1 + 1.618) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-column {
    flex: 0 0 61.8%; /* 61.8% ≈ 1.618 × 38.2% */
    min-width: 0;
}

/* Image dans la colonne de gauche */
.section-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    max-width: 100%;
}

/* Responsive : masquer la colonne de gauche sur mobile */
@media (max-width: 768px) {
    .left-column {
        display: none; /* Masque complètement la colonne de gauche */
    }
    .right-column {
        flex: 0 0 100%; /* La colonne de droite prend toute la largeur */
    }
}


/* Section d'introduction centrée */
.section-content .section-text {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

/* Bouton de téléchargement centré */
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    background-color: #1D5C9E;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin: 1rem auto 0; /* Marge automatique pour centrer horizontalement */
}

/* Titre et paragraphes centrés */
.section-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1D5C9E;
    text-align: center;
}

.section-text .spaced-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* Centrer le contenu de la colonne de droite */
.right-column {
    flex: 0 0 61.8%;
    min-width: 0;
    text-align: center; /* Centre le texte et les éléments en ligne */
}

/* Aligner les listes au centre */
.right-column .spaced-list {
    text-align: left; /* Garde le texte des listes aligné à gauche (pour une meilleure lisibilité) */
    display: inline-block; /* Permet de centrer le bloc de la liste */
    margin: 0 auto 1.5rem;
}

/* Centrer les titres et paragraphes */
.right-column .blue-subtitle {
    text-align: center;
}

.right-column .spaced-paragraph {
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 90%; /* Limite la largeur pour éviter les lignes trop longues */
}

/* Responsive : masquer la colonne de gauche sur mobile */
@media (max-width: 768px) {
    .left-column {
        display: none;
    }
    .right-column {
        flex: 0 0 100%;
        text-align: center;
    }
    .right-column .spaced-list {
        text-align: left;
        display: inline-block;
        margin: 0 auto 1.5rem;
    }
}

.track-subtitle {
    color: #1D5C9E;
    font-size: 1rem;
    margin: 1.2rem 0 0.6rem;
    font-weight: 600;
    text-align: left; /* Aligné à gauche pour une meilleure lisibilité */
    display: block;
    width: 100%;
}