/* assets/css/vision-couple.css */

.vision-couple-page .tool-page-header {
    border-bottom: none;
}

.vision-couple-intro {
    padding-bottom: 2rem;
    text-align: center;
    position: relative;
}
.vision-couple-intro h1 {
    font-size: clamp(3.4rem, 6.5vw, 5.2rem);
    color: var(--black-pearl);
    margin-bottom: 0.8rem;
}
.vision-couple-intro .tool-subtitle {
    font-size: clamp(1.7rem, 2.8vw, 2.1rem);
    color: var(--black-pearl-light);
    max-width: 60ch;
    margin: 0 auto 2.5rem auto;
}
.vision-couple-intro::after {
    content: '';
    display: block;
    width: 7rem;
    height: 0.35rem;
    background: linear-gradient(to right, var(--walnut), var(--quicksand));
    margin: 1.5rem auto 0 auto;
    border-radius: 999px;
}

.vision-banner-image-container {
    max-width: 900px; /* Définit une largeur maximale pour l'image */
    margin: 2rem auto var(--section-padding) auto; /* Centre le conteneur et gère l'espacement */
    overflow: hidden; /* Assure que l'image à l'intérieur respecte les coins arrondis */
    box-shadow: 0 8px 25px rgba(var(--black-pearl-rgb), 0.08); /* Ajoute une ombre subtile */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Prépare l'animation de survol */
}
.vision-main-banner {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.vision-couple-content {
    padding: 0;
    background-color: #fff;
}

.content-section {
    padding: var(--section-padding) var(--section-padding);
}
.content-section.text-focused {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-section:not(:last-of-type) {
     border-bottom: 1px solid var(--white-rock-medium);
}

/* Section avec fond Quicksand Tone (beige clair) */
.content-section.bg-quicksand-tone {
    background-color: var(--quicksand-light);

}

.content-section.text-focused {
    max-width: 800px; /* Conserve la largeur limitée du bloc */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* CENTRE LE CONTENU TEXTUEL DES PARAGRAPHES DANS CE BLOC */
}

/* Assurez-vous que le H2 dans .text-focused est aussi centré */
.content-section.text-focused h2 {
    text-align: center;
    color: var(--black-pearl); /* S'assurer de la couleur, car la règle générale pour H2 mettait text-align:left */
}

/* Section avec fond Dark Pearl (bleu nuit/noir) - Conservé si utilisé ailleurs */
.content-section.bg-dark-pearl {
    background-color: var(--black-pearl);
}
.content-section.bg-dark-pearl.text-light h2,
.content-section.bg-dark-pearl.text-light h3 {
    color: var(--quicksand-light);
}
.content-section.bg-dark-pearl.text-light p,
.content-section.bg-dark-pearl.text-light li {
    color: var(--white-rock-medium);
}
.content-section.bg-dark-pearl.text-light p strong { color: var(--white-rock); }
.content-section.bg-dark-pearl.text-light blockquote { background-color: var(--black-pearl-light); border-left-color: var(--quicksand); }
.content-section.bg-dark-pearl.text-light blockquote p { color: var(--white-rock); }
.content-section.bg-dark-pearl.text-light ul li::marker,
.content-section.bg-dark-pearl.text-light ol li::marker { color: var(--quicksand-light); }


/* SECTION AVEC FOND WALNUT (marron) */
.content-section.bg-walnut-section {
    background-color: var(--walnut);
    color: var(--white-rock-light); 
}
.content-section.bg-walnut-section.text-light h2 {
    color: var(--white-rock); 
    text-align: center; 
    margin-bottom: 2rem;
}
.content-section.bg-walnut-section.text-light h3 {
    color: var(--white-rock);
}
.content-section.bg-walnut-section.text-light p,
.content-section.bg-walnut-section.text-light li {
    color: var(--white-rock-medium);
}
.content-section.bg-walnut-section.text-light p strong {
    color: var(--white-rock);
}
.content-section.bg-walnut-section.text-light ul li::marker,
.content-section.bg-walnut-section.text-light ol li::marker {
    color: var(--quicksand-light);
}
.content-section.bg-walnut-section.text-light blockquote {
    background-color: rgba(0, 0, 0, 0.15); 
    border-left-color: var(--quicksand-light);
    max-width: 100%; 
}
.content-section.bg-walnut-section.text-light blockquote p {
    color: var(--white-rock);
}


/* Wrapper pour image et texte côte à côte (utilisé pour "Mythe" et "Créer Vision") */
.section-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.section-content-wrapper .text-content {
    flex: 1.5;
}
.section-content-wrapper .image-content {
    flex: 1;
    text-align: center;
}
.section-content-wrapper .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.section-content-wrapper.with-image-left .text-content { order: 2; }
.section-content-wrapper.with-image-left .image-content { order: 1; }


/* Styles de Texte Généraux pour la page */
.content-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-align: left; 
    line-height: 1.2;
}
.content-section.text-focused h2, /* Titre de section sans image latérale, centré */
.phases-section h2 { /* Titre principal de la section des phases, centré */
    text-align: center;
    color: var(--walnut); 
    margin-bottom: 1rem;
}
.content-section .section-intro-text {
    text-align: center;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: var(--black-pearl-light);
}

.content-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
}
.content-section p {
    font-size: 1.7rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section p strong {
    font-weight: 500;
}
.content-section ul, .content-section ol {
    font-size: 1.7rem;
    line-height: 1.85;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}
.content-section ul li, .content-section ol li {
    margin-bottom: 0.8rem;
}
.content-section ul li::marker, .content-section ol li::marker {
    font-weight: 500;
}

/* Couleur par défaut pour les H2, H3, p, li, etc. SI PAS sur fond coloré */
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) h2,
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) h3 {
    color: var(--black-pearl); 
}
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) .phases-section h2 { 
    color: var(--walnut);
}
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) p,
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) li {
    color: var(--black-pearl-light);
}
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) p strong {
    color: var(--black-pearl);
}
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) ul li::marker,
.content-section:not(.bg-quicksand-tone):not(.bg-walnut-section):not(.bg-dark-pearl) ol li::marker {
    color: var(--walnut);
}

.content-section blockquote {
    background-color: var(--white-rock-light);
    border-left: 4px solid var(--walnut);
    margin: 2rem 0;
    padding: 1.8rem 2.2rem;
    font-style: italic;
}
.content-section blockquote p {
    font-size: 1.8rem;
    color: var(--black-pearl); 
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- Phases Section Spécifique ---- */
.phases-section .phase-container {
    margin-top: 2rem;
}
.phase-item {
    display: flex;
    gap: 3rem;
    align-items: center; 
    margin-bottom: 4rem;
    padding: 2.5rem; 
    background-color: var(--white-rock-light);
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    position: relative; 
}
.phase-item:last-child { margin-bottom: 0; }

/* Supprimer le trait ::before */
.phase-item::before {
    content: none; 
}


.phase-item .phase-image {
    flex: 0 0 300px; 
    position: relative; 
	margin-top: 0px;

}
.phase-item .phase-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.phase-item .phase-text {
    flex: 1;
    position: relative; 
}

/* Styles communs pour les titres de phase H3 */
.phase-item .phase-text h3 {
    color: var(--walnut); 
    margin-top: 0;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    padding-bottom: 0rem; /* Ajustez si besoin d'espace avant le trait */
    margin-bottom: 0.5rem; /* Espace entre H3 et le trait (div.title-divider) */
    display: block; 
    width: fit-content; 
}

.phase-item .phase-text .title-divider {
    height: 2px; /* Épaisseur du trait */
    width: 500px; /* Longueur du trait - AJUSTEZ CETTE VALEUR */
    background-color: var(--quicksand);
    margin-bottom: 0.8rem; /* Espace entre le trait et .phase-duration - AJUSTEZ CETTE VALEUR */
    /* Les marges gauche/droite pour l'alignement seront gérées par les classes layout */
}

/* Styles pour la durée sous le H3 */
.phase-item .phase-text .phase-duration {
    font-family: 'Courgette', cursive;
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--walnut);
    display: block;
    margin-top: 0; /* La marge est maintenant sur le .title-divider */
    margin-bottom: 1.5rem; 
    line-height: 1.3;
}

/* ---- Configuration Image à Gauche, Texte à Droite (Phases 1 & 3) - Classe: .image-left-layout ---- */
.phase-item.image-left-layout .phase-image { 
    order: 1; /* Image à gauche */
}
.phase-item.image-left-layout .phase-text { 
    order: 2; /* Texte à droite */
}
.phase-item.image-left-layout .phase-text h3,
.phase-item.image-left-layout .phase-text .title-divider, /* Aligner le trait aussi */
.phase-item.image-left-layout .phase-text .phase-duration {
    text-align: right; 
    margin-left: auto; 
    margin-right: 0;
}

/* ---- Configuration Image à Droite, Texte à Gauche (Phase 2) - Classe: .image-right-layout ---- */
.phase-item.image-right-layout .phase-image { 
    order: 2; /* Image à droite */
}
.phase-item.image-right-layout .phase-text { 
    order: 1; /* Texte à gauche */
}
.phase-item.image-right-layout .phase-text h3,
.phase-item.image-right-layout .phase-text .phase-duration {
    text-align: left; 
    margin-left: 0; 
    margin-right: auto; 
}
.phase-item.image-right-layout .phase-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem; /* Icône à droite (coin opposé du titre) */
    color: var(--quicksand);
    width: 32px;
    height: 32px;
    stroke-width: 1.5px;
}


.highlight-text {
    background-color: var(--quicksand-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    font-size: 1.6rem;
}
.highlight-text strong { color: var(--walnut); }


/* Perseverance Section (avec fond .bg-walnut-section) */
.perseverance-section .section-image-container {
    text-align: center;
    margin-bottom: 2.5rem;
}
.perseverance-section .section-image-container img {
    display: block; 
    max-width: 100%;
    width: 700px; 
    height: auto;
    margin-left: auto;   
    margin-right: auto;  
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.perseverance-section .text-content-below-image {
    max-width: 800px; 
    margin: 0 auto; 
}
.perseverance-section .text-content-below-image .sub-section h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--quicksand-light); 
    text-align: left; 
}
.perseverance-section .text-content-below-image .transformations-list h3,
.perseverance-section .text-content-below-image .equation-highlight h3 {
    text-align: center; 
    border-bottom: none; 
}
.perseverance-section .transformations-list ol { /* Cibler la liste ordonnée elle-même */
    list-style-type: none; /* Supprime les numéros */
    padding-left: 0;       /* Annule le padding par défaut des listes */
}

.perseverance-section .transformations-list ol li {
    background-color: rgba(255, 255, 255, 0.08); 
    padding: 1.2rem 1.8rem; /* Légèrement plus de padding pour compenser l'absence de numéro */
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.content-section.bg-walnut-section.text-light blockquote { 
    background-color: rgba(0, 0, 0, 0.15); 
    border-left-color: var(--quicksand-light);
    /* max-width: 100%; /* Peut être enlevé si la citation est dans un conteneur qui gère sa largeur */
    padding: 1.5rem 2rem; /* Ajustez le padding si nécessaire */
    margin: 1rem 0; /* Ajustez les marges */
}
.content-section.bg-walnut-section.text-light blockquote p {
    color: var(--white-rock);
    font-style: italic; /* Assurez-vous que le style italique est bien appliqué */
}


/* Styles spécifiques pour la blockquote DANS .equation-highlight */
.perseverance-section .equation-highlight blockquote {
    background-color: var(--black-pearl-light); /* Nouveau fond demandé */
    border-left: 4px solid var(--walnut);       /* Une bordure walnut pour contraster avec le fond black-pearl-light */
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-sm);
    max-width: 700px; /* Limite la largeur si vous voulez qu'elle ne soit pas pleine largeur */
    margin-left: auto;  /* Pour centrer si max-width est appliqué */
    margin-right: auto; /* Pour centrer si max-width est appliqué */
}
.perseverance-section .equation-highlight blockquote p {
    color: var(--white-rock-light); /* Texte clair sur fond black-pearl-light */
    font-family: 'Courgette', cursive; /* Ou une autre police distinctive pour l'équation */
    font-size: 2rem;                   /* Taille de police pour l'équation */
    font-style: normal;                /* Peut-être pas d'italique pour l'équation elle-même */
    text-align: center;
}

.perseverance-section .equation-highlight {
    text-align: center;
    margin-top: 3rem;
}
/* Le paragraphe SOUS la citation de l'équation, pour s'assurer qu'il est lisible */
.perseverance-section .equation-highlight > p { /* Cible le p enfant direct de .equation-highlight */
     color: var(--white-rock-medium); /* Assurez-vous que ce texte est aussi clair */
     margin-top: 1.5rem; /* Espace après la citation */
}


/* Create Vision Section */
.mini-exercise {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--white-rock);
    border: 1px solid var(--quicksand-light);
    border-radius: var(--border-radius-md);
}

.mini-exercise h3 {
    color: var(--walnut);
    margin-top: 0;
    text-align: center;
    margin-bottom: 2rem;
}

/* Cibler la liste ordonnée dans .mini-exercise */
.mini-exercise ol {
    /* Vous pouvez garder le padding-left par défaut ou l'ajuster si besoin */
    /* padding-left: 2.5rem; Si vous voulez le même que les autres listes */
    /* Si vous voulez que le texte des items soit moins indenté, réduisez le padding-left de ol */
}

/* Cibler les items de la liste dans .mini-exercise */
.mini-exercise ol li {
    /* Styles spécifiques pour les li si besoin, ex: margin-bottom */
    margin-bottom: 0.8rem;
    color: var(--black-pearl-light); /* Assurer la couleur du texte de l'item */
}

/* NOUVELLE RÈGLE pour les numéros de la liste dans .mini-exercise */
.mini-exercise ol li::marker {
    color: var(--black-pearl); /* Couleur demandée pour les numéros */
    font-weight: 600;          /* Rendre les numéros un peu plus gras pour se démarquer */
}

/* Final Choice Section */
.final-choice-section { /* Cibler la section entière pour le centrage du texte */
    text-align: center; /* Centre le texte inline et les blocs avec margin: auto */
}

.final-choice-section h2 { /* S'assurer que le H2 est centré */
    text-align: center;
    color: var(--black-pearl); /* Couleur par défaut si non sur fond coloré */
}

.final-choice-section .section-lead-image {
    max-width: 600px; /* Garder une largeur max pour l'image */
    height: auto;
    margin: 0 auto 2.5rem auto; /* Déjà centré */
    display: block;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}

/* Cibler les paragraphes directement dans la section pour limiter leur largeur et les centrer */
.final-choice-section > p { /* Paragraphes enfants directs de la section */
    max-width: 85ch; /* Ou une autre valeur pour une bonne lisibilité */
    margin-left: auto;
    margin-right: auto;
    /* text-align: center; est hérité, mais peut être left si vous préférez pour les longs paragraphes */
}

.final-choice-section ul { 
    list-style: none; 
    padding-left: 0; 
    /* text-align: center; est hérité */
    max-width: 85ch; /* Limiter la largeur de la liste aussi */
    margin-left: auto;
    margin-right: auto;
}
.final-choice-section ul li { 
    margin-bottom: 1rem; 
    font-size: 1.8rem;
    /* Le texte à l'intérieur de li sera centré par héritage */
}
.final-choice-section ul li strong {
    color: var(--walnut);
    font-weight: 600;
}

/* La blockquote dans cette section */
.final-choice-section blockquote {
    /* background-color: var(--white-rock-light); hérité des styles généraux */
    /* border-left: 4px solid var(--walnut); hérité */
    margin: 2rem auto; /* Centrer la blockquote */
    padding: 1.8rem 2.2rem;
    /* font-style: italic; hérité */
    max-width: 80ch; /* Limiter la largeur de la blockquote */
}
.final-choice-section blockquote p {
    /* color: var(--black-pearl); hérité */
    /* text-align sera center (hérité), ce qui est souvent bien pour les citations courtes */
}

.concluding-remark { 
    margin-top: 2.5rem;
    font-family: 'Courgette', cursive; /* POLICE AJOUTÉE */
    font-style: normal; /* Courgette est naturellement cursive, l'italique peut être redondant */
    font-size: 2rem;    /* Augmenter légèrement la taille pour Courgette si désiré */
    max-width: 85ch; 
    margin-left: auto;
    margin-right: auto;
    color: var(--black-pearl-light); /* S'assurer que la couleur est bien définie ici */
    line-height: 1.6; /* Ajuster l'interligne pour Courgette */
    /* text-align: center; est hérité */
}

/* ========================================================================== */
/* RESPONSIVE                                                                 */
/* ========================================================================== */

@media (max-width: 992px) { 
    .section-content-wrapper { 
        flex-direction: column;
    }
    .section-content-wrapper.with-image-left .text-content,
    .section-content-wrapper.with-image-left .image-content,
    .section-content-wrapper .text-content, 
    .section-content-wrapper .image-content {
        order: 0; 
        flex-basis: auto;
        width: 100%;
    }
     .section-content-wrapper .image-content {
        margin-bottom: 2rem;
    }
    .section-content-wrapper.with-image-left .image-content { 
        margin-bottom: 0;
        margin-top: 2rem;
    }
     .content-section.text-focused h2,
     .phases-section h2,
     .content-section.bg-walnut-section.text-light h2 {
         text-align: center; 
     }
}

@media (max-width: 768px) {
    /* Bannière principale */
    .vision-banner-image-container {
        margin-left: 2rem;
        margin-right: 2rem;
        border-radius: var(--border-radius-md); 
    }

    /* Padding général pour les sections de contenu */
    .content-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* --- Styles pour les 3 Phases --- */
    .phase-item,
    .phase-item.image-left-layout, 
    .phase-item.image-right-layout { 
        flex-direction: column;
        align-items: center; 
    }
    .phase-item .phase-image,
    .phase-item.image-left-layout .phase-image,
    .phase-item.image-right-layout .phase-image {
        order: 0; 
        flex-basis: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 1.5rem auto;
    }
    .phase-item .phase-text,
    .phase-item.image-left-layout .phase-text,
    .phase-item.image-right-layout .phase-text {
        order: 0;
        text-align: center; 
    }
    .phase-item .phase-text h3,
    .phase-item.image-left-layout .phase-text h3,
    .phase-item.image-right-layout .phase-text h3 {
        text-align: center; 
        display: block; 
        margin-left: auto;
        margin-right: auto;
        width: auto;
        font-size: clamp(2rem, 5.5vw, 2.4rem);
    }
    .phase-item .phase-text .title-divider,
    .phase-item.image-left-layout .phase-text .title-divider,
    .phase-item.image-right-layout .phase-text .title-divider {
        margin-left: auto;
        margin-right: auto;
        width: 8rem;
    }
    .phase-item .phase-text .phase-duration,
    .phase-item.image-left-layout .phase-text .phase-duration,
    .phase-item.image-right-layout .phase-text .phase-duration {
       text-align: center; 
    }
    .phase-item .phase-text ul {
        text-align: left;
        display: inline-block;
    }
    .phase-item .phase-icon { 
        top: 1rem;
        right: 1rem;
        left: auto !important; 
    }
    /* --- Fin des styles pour les 3 Phases --- */
    
    /* Section Persévérance */
    .perseverance-section .section-image-container img {
        width: 100%; 
    }

    /* Section Finale */
    .final-choice-section .section-lead-image {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    /* Vous pouvez ajouter ici des ajustements encore plus fins pour les très petits écrans si nécessaire. */
    /* Par exemple, réduire encore les paddings ou les tailles de police. */
    .content-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .vision-banner-image-container {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}