/* ============================================
   A PROPOS PAGE - Styles spécifiques
   Les styles communs sont dans index.css
   ============================================ */

/* Container overrides */
/* Variables */
:root {
  --header-primary-blue: #006DB7;
  --header-accent-cyan: #34BCED;
  --header-text-dark: #525252;
  --header-text-black: #292929;
  --header-accent-red: #C21D47;
  --header-white: #FFFFFF;
  --header-topbar-height: 45px;
  --header-nav-height: 68px;
  --header-padding-x: 50px;
  --header-logo-width: 170px;
  --urgence-nober-height: 35px;  
  --section-margin: 50px;
}

.single-container {
    margin: 0 var(--section-margin);
}

/* Responsive breakpoints pour single-container */
@media (max-width: 992px) {
    .single-container {
        margin: 0 calc(var(--section-margin) * 0.8);
    }
}

@media (max-width: 768px) {
    .single-container {
        margin: 0 calc(var(--section-margin) * 0.6);
    }
}

@media (max-width: 480px) {
    .single-container {
        margin: 0 calc(var(--section-margin) * 0.4);
    }
}

.single-container-content {
    margin: 0 calc(var(--section-margin) * 3);
}

/* Responsive breakpoints pour single-container-content */
@media (max-width: 992px) {
    .single-container-content {
        margin: 0 calc(var(--section-margin) * 2);
    }
}

@media (max-width: 768px) {
    .single-container-content {
        margin: 0 var(--section-margin);
    }
}

@media (max-width: 480px) {
    .single-container-content {
        margin: 0 calc(var(--section-margin) * 0.5);
    }
}

.container {
    align-items: center;
    display: flex;
    justify-content: center;
}

.container span {
    color: #005596;
}

.container a {
    text-decoration: none;
    color: #777;
}

/* HERO & BREADCRUMB (Ancien code conservé) */
/* .hero-about {
    height: 250px;
    background: linear-gradient(rgba(0, 85, 150, 0.7), rgba(0, 85, 150, 0.7)), #005596;
    display: flex; align-items: center; justify-content: center; color: white;
} */



.about {
    background: linear-gradient(rgba(0, 85, 150, 0.75),
            rgba(0, 85, 150, 0.75)),
        url("../images/mot-du-coordinnateur.png") center/cover;
}


/* Breadcrumb base styles are in index.css */
/* Page-specific breadcrumb overrides */
.breadcrumb i {
    margin: 10px;
    font-size: small;
}

.breadcrumb i {
    margin: 20px;
    font-size: small;
}


/* LAYOUT : SIDEBAR + CONTENT */
.main-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin: var(--section-margin);
}

/* SIDEBAR (Desktop) */
.plan-page {
    flex: 0 0 250px;
    position: sticky;
    top: calc(var(--header-topbar-height) + var(--header-nav-height) + var(--header-topbar-height));
}

.plan-page h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.plan-page ul {
    list-style: none;
    border-left: 1px solid #ddd;
}

.plan-page li {
    padding: 10px 0 10px 20px;
    transition: 0.3s;
}

.plan-page li a {
    text-decoration: none;
    color: #777;
    font-size: 0.95rem;
}

/* Style de la section active dans la sidebar */
.plan-page li.active {
    border-left: 4px solid #005596;
    margin-left: -2px;
    padding-left: 8px;
}

.plan-page li.active a {
    color: #005596;
    font-weight: bold;
}

/* CONTENU (Ancien code mis à jour) */
.main-content {
    flex: 1;
}

.content-section {
    margin-bottom: 60px;
    scroll-margin-top: 30px;
}

.section-badge {
    display: flex;
    align-items: center;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 0.8rem;
    margin-bottom: 10px;

}


h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.featured-image img {
    width: 100%;
    height: 50%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.text-block ul {
    margin-left: 25px;
}

.text-block p {
    margin-bottom: 15px;
}

/* Style des encadrés (info-box) */
.info-box {
    background-color: #eaf3f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.info-box h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Style de la liste à l'intérieur de l'encadré */
.info-box ul {
    padding-left: 0;
}

.info-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Création des petites puces (points noirs/gris) personnalisées */
.info-box li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* Adaptation pour la sidebar dynamique */
.content-section p {
    margin-bottom: 15px;
}

.niveau {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.parcour p {
    text-align:justify;
}


/* RESPONSIVE - MOBILE */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        margin: calc(var(--section-margin) * 0.5);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-about {
        margin: 50px 10px;
    }

    /* Plan-page accordéon mobile */
    .plan-page {
        position: static;
        flex: none;
        width: 90vw;
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
        margin-bottom: 20px;
    }

    .plan-page h3 {
        font-size: 1rem;
        background: #F5C400;
        color: #333;
        margin: 0;
        padding: 12px 16px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .plan-page h3::after {
        content: '\f077';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .plan-page.collapsed h3::after {
        transform: rotate(180deg);
    }

    .plan-page>ul {
        max-height: 1000px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fff;
        border-left: none;
        text-align: left;
    }

    .plan-page.collapsed>ul {
        max-height: 0;
    }

    .plan-page>ul>li {
        padding: 12px 16px;
        border-left: none;
        margin-left: 0;
    }

    .plan-page>ul>li>a {
        display: block;
        font-weight: 400;
        color: #333;
        text-decoration: none;
        font-size: 15px;
    }

    .plan-page>ul>li.active>a,
    .plan-page>ul>li:first-child>a {
        color: #006DB7;
        font-weight: 500;
    }

    .plan-page>ul>li>a:hover {
        color: #006DB7;
    }

    .plan-page li.active {
        border-left: none;
    }
}