/* ==========================================================================
   A-PROPOS.CSS - Styles Spécifiques de la page À Propos
   ========================================================================== */


.wrc-hero-base {
    --hero-bg-image: url('../img/a-propos/small/femme3.png');
}

/* --- Boîte de Citation (Hero) --- */
.hero-right-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Garde l'alignement en bas */
    align-items: center;       /* Centre la box horizontalement dans la colonne */
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 550px;
}

.box-quote-about {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* Empêche la box de dépasser de sa colonne */
    width: 100%;
    max-width: 320px; 
    box-sizing: border-box; /* Crucial pour que le padding ne rajoute pas de largeur */
}

@media screen and (max-width: 1023px) {
    .hero-right-col {
        justify-content: flex-start; /* Ou center, pour que la box ne soit pas écrasée */
        margin-top: 2rem; /* Ajoute un espace entre le texte et la box sur mobile */
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    .hero-right-col {
        min-height: auto;  
    }
}


/* --- Ajustement Section GRC & Stages --- */
.box-partners-grid .columns.is-mobile {
    justify-content: space-between;
    align-items: center;
}

.img-hero-center {
    max-height: 420px;
    object-fit: cover;
    border-radius: 120px 120px 0 0;
}

/* --- Illustration Fleur Mission --- */
.illustration-flower {
    position: absolute;
    bottom: -20px;
    right: -10px;
    max-height: 120px;
    opacity: 0.8;
    pointer-events: none;
}

/* --- Section Méthode (Chemin / Timeline) --- */
.steps-container {
    position: relative;
}

@media screen and (min-width: 1024px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 65px;
        left: 10%;
        right: 10%;
        height: 1px;
        border-bottom: 2px dashed var(--wrc-gold-light);
        z-index: 1;
    }
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-number {
    background-color: var(--wrc-dark-plum);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: -15px;
    position: relative;
    z-index: 3;
}

.step-icon-circle {
    background-color: var(--wrc-bg-warm);
    color: var(--wrc-dark-plum);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    border: 1px solid var(--wrc-border-gold-medium);
    transition: transform 0.3s ease;
}

.step-item:hover .step-icon-circle {
    transform: scale(1.08);
}

/* --- Cartes des Espaces d'Accompagnement --- */
.card-espace {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--wrc-border-gold-ultra-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    position: relative;
    height: 140px;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img_grc {
    width: 100%;
    /* Si tu ne définis pas une hauteur fixe ici, 100% ne fera rien */
    /*height: 320px; */
    overflow: hidden;
    margin: 2px;
    border-radius: 8px; /* Applique le rayon ici directement */
}

.img_grc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.espace-icon-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--wrc-dark-plum);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #ffffff;
}

.card-espace .card-content {
    padding: 2rem 1rem 1rem 1rem;
    flex-grow: 1;
}

.arrow-link {
    color: var(--wrc-orange);
    font-size: 1.3rem;
    transition: color 0.2s;
}

.arrow-link:hover {
    color: var(--wrc-dark-plum);
}

/* --- Section GRC & Stages --- */
.box-stages {
    background-color: var(--wrc-bg-warm);
    border: 1px solid var(--wrc-border-gold-medium);
    border-radius: 16px;
    padding: 1.75rem;
}

.box-badge-stages {
    background-color: #EADCD0;
    color: var(--wrc-text-dark);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    clip-path: polygon(0% 0%, 100% 0%, 95% 50%, 100% 100%, 0% 100%, 5% 50%);
}

/* --- Section Écosystème & Partenaires --- */
.box-highlight-quote {
    border-left: 3px solid var(--wrc-orange);
    padding-left: 1rem;
    font-style: italic;
}

.box-partners-grid {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--wrc-border-gold-ultra-light);
    padding: 2rem;
}

.partner-logo {
    max-height: 120px;
    width: auto;
    filter: grayscale(0%);
    opacity: 0.9;
}

.partner-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}



/* Dans votre a-propos.css, cherchez ou modifiez cette règle */
.box-partners-grid .has-text-centered.mt-5 {
    width: 100% !important; /* Remplace le 60% fixe */
}


.part-cat-item {
    background-color: var(--wrc-bg-cream);
    border: 1px solid var(--wrc-border-gold-light);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

.part-cat-item .cat-icon {
    color: var(--wrc-dark-plum);
    margin-right: 8px;
    font-size: 1.1rem;
}

.part-cat-item .cat-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--wrc-text-dark);
    letter-spacing: 0.5px;
}

.heart-cat {
    grid-column: span 2;
    justify-content: center;
    background-color: transparent !important;
    border: none !important;
}

@media screen and (min-width: 769px) {
    .heart-cat {
        grid-column: span 1;
    }
}

.heart-cat .cat-label {
    font-style: italic;
    color: var(--wrc-text-muted);
}

.heart-cat .cat-icon {
    color: var(--wrc-orange);
}

.bg-flower-left {
    position: absolute;
    left: 0;
    bottom: 0;
    max-height: 180px;
    pointer-events: none;
}

.bg-flower-right {
    position: absolute;
    right: 0;
    top: 10px;
    max-height: 180px;
    pointer-events: none;
}

/* --- Section Bannière & Actions CTA --- */
.cta-left-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('../img/a-propos/small/femme_dos.png') center/cover no-repeat;
    min-height: 220px;
}

.wrc-particip-bar {
    position: relative;
    padding: 0 !important;
}

.wrc-action-box {
    min-height: 100px;
}

@media screen and (min-width: 768px) {
    .partner-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    /* 1. Logos : Passage en grille 2x3 forcée */
    .box-partners-grid .columns.is-mobile {
        flex-wrap: wrap !important;
        display: flex !important;
    }
    
    .box-partners-grid .columns.is-mobile .column {
        flex: none !important;
        width: 50% !important; /* 2 logos par ligne */
    }

    /* 2. Grille catégories : Forcer 1 colonne */
    .partner-categories-grid {
        display: block !important; /* On annule le display: grid */
    }

    /* 3. Bouton : Forcer la largeur et le texte */
    .box-partners-grid .button {
        width: 100% !important;
        font-size: 0.7rem !important;
        padding: 0.5rem !important;
        height: auto !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    /* 4. Labels : Ajustement de la taille */
    .part-cat-item .cat-label {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        display: inline-block !important; /* Change en inline-block pour rester avec l'icône */
    }

    /* On force chaque item à prendre toute la largeur */
    .partner-categories-grid .part-cat-item {
        display: flex !important;
        width: 100% !important;
        margin-bottom: 8px !important; /* Remplace le gap qui ne fonctionne plus en block */
    }
}