/* ==========================================================================
   STYLES SPÉCIFIQUES - PAGE ANNUAIRE
   ========================================================================== */

.annuaire-main {
    background-color: var(--wrc-bg-cream);
    min-height: 70vh;
    padding-bottom: 4rem;
}

/* Hero Annuaire */
.annuaire-hero {
    background-color: var(--wrc-bg-warm);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--wrc-border-gold-ultra-light);
}

/* Bloc d'urgence soft et intégré */
.emergency-box-soft {
    background-color: #ffffff;
    border: 1px solid var(--wrc-border-gold-medium);
    border-left: 4px solid var(--wrc-orange);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--wrc-shadow-plum);
    text-align: left;
}

.emergency-soft-icon {
    width: 40px;
    height: 40px;
    background-color: var(--wrc-bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wrc-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .emergency-box-soft {
        text-align: center;
    }
    .emergency-box-soft .is-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .emergency-soft-icon {
        margin: 0 auto 0.5rem auto !important;
    }
    .wrap-mobile {
        flex-direction: column;
        align-items: center !important;
    }
}

/* Grille des besoins */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.need-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 15px var(--wrc-shadow-plum);
}

.need-button:hover, .need-button:focus {
    border-color: var(--wrc-gold);
    background-color: var(--wrc-bg-beige);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--wrc-shadow-plum-large);
    outline: none;
}

.need-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.need-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wrc-text-dark);
    line-height: 1.4;
}

/* Modificateur pour le bouton sans éléments */
.need-button.is-empty {
    background-color: #f5f5f5; /* Fond gris clair neutre */
    box-shadow: none; /* Retrait de l'ombre définie dans la classe parente */
    cursor: not-allowed; /* Indique visuellement que l'action est indisponible */
    opacity: 0.65; /* Rend l'ensemble du bouton plus terne */
}

/* Annulation stricte des effets de survol de .need-button:hover */
.need-button.is-empty:hover, 
.need-button.is-empty:focus {
    transform: none;
    box-shadow: none;
    background-color: #f5f5f5;
    border-color: transparent;
}

/* Griser le texte en utilisant ta variable existante */
.need-button.is-empty .need-label {
    color: var(--wrc-text-muted);
}

/* Optionnel : passer l'emoji en noir et blanc */
.need-button.is-empty .need-emoji {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Filtres Sidebar */
.filters-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--wrc-shadow-plum);
    border: 1px solid var(--wrc-border-gold-ultra-light);
    position: sticky;
    top: 2rem;
}

/* Cartes de résultats */
.directory-card {
    background: #ffffff;
    border: 1px solid var(--wrc-border-gold-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.directory-card:hover {
    box-shadow: 0 8px 25px var(--wrc-shadow-plum-large);
    border-color: var(--wrc-border-gold-medium);
}

.card-header-wrc {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.card-logo {
    width: 70px;
    height: 70px;
    background-color: var(--wrc-bg-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wrc-border-gold-ultra-light);
}

.border-sage {
    border: 1px solid rgba(163, 175, 151, 0.3) !important;
}

.card-tags .tag {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.wrc-tag-status {
    background-color: #f0f7f0 !important;
    color: #2b542c !important;
    font-weight: 600;
}

.card-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--wrc-border-gold-light);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--wrc-text-dark);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--wrc-gold-dark);
}

.contact-item.btn-details {
    justify-content: flex-end;
}

@media screen and (max-width: 500px) {
    .card-header-wrc {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-item.btn-details {
        justify-content: center;
        margin-top: 1rem;
    }
    .card-contact-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-item {
        justify-content: center;
    }
}

/* ==========================================================================
   BANDEAU "PROPOSER UNE STRUCTURE"
   ========================================================================== */

.propose-structure-banner {
    /*background-color: #F9F8F5; /* Crème très clair, adapté au visuel */
    background-color: var(--wrc-sage-green); /* Crème très clair, adapté au visuel */
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(163, 175, 151, 0.2); /* Bordure discrète teinte sauge */
}

.banner-content {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    z-index: 2;
    position: relative; /* Maintient le texte au-dessus de l'image */
}

.banner-icon {
    /*color: var(--wrc-sage-green-dark);*/
    color: var(--wrc-sage-green-deep);
    font-size: 2.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.banner-text {
    flex: 1;
    max-width: 450px;
    color: var(--wrc-sage-green-deep);
}

.banner-text .title {
    /*font-family: var(--font-serif);has-text-wrc-muted*/
    font-weight: 500;
    /*color: var(--wrc-text-dark);*/
    line-height: 1.3;
    text-transform: none; /* Annule l'éventuelle capitalisation globale */
    letter-spacing: normal;
    color: var(--wrc-sage-green-deep);
    font-size: 0.90rem;
}

.banner-action {
    flex-shrink: 0;
    margin-right: 220px; /* Préserve une zone vide pour rendre les mains visibles */
}

/* Bouton spécifique calqué sur le style de l'image */
.button.is-wrc-outline-sage {
    background-color: #ffffff;
    color: var(--wrc-sage-green-dark);
    border: 1px solid var(--wrc-sage-green-dark);
    border-radius: 50px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.button.is-wrc-outline-sage:hover {
    background-color: var(--wrc-sage-green-dark);
    color: #ffffff;
    border-color: var(--wrc-sage-green-dark);
}

/* Image positionnée à droite avec masque de fondu transparent */
.banner-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 350px;
    
    /* ATTENTION : Remplace l'URL par le chemin réel vers ta photo de mains */
    background-image: url('../img/mains-solidarite.jpg'); 
    background-size: cover;
    background-position: center right;
    
    /* Génération du fondu CSS natif vers la gauche */
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* Adaptabilité mobile & tablettes */
@media screen and (max-width: 1050px) {
    .banner-action {
        margin-right: 80px; 
    }
}

@media screen and (max-width: 768px) {
    .propose-structure-banner {
        flex-direction: column;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .banner-action {
        margin-right: 0;
        margin-top: 0.5rem;
    }
    .banner-image {
        position: relative;
        width: 100%;
        height: 120px;
        background-position: center center;
        /* Le fondu passe de "gauche-droite" à "bas-haut" sur mobile */
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
    }
}