/* Gestion du HERO */
#hero-ressources {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    background-size: 200% 200%;
    animation: gradientMove 14s ease infinite;
    padding: 80px 24px 60px;
    text-align: center;
    color: white;
}

#hero-ressources .hero-ressources-inner {
    max-width: 700px;
    margin: 0 auto;
}

#hero-ressources .hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

#hero-ressources h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

#hero-ressources p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
}

/* Gestion du menu des sections */
#ressources-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 66px;
    z-index: 100;
    flex-wrap: wrap;
    box-shadow: 0 -1px 0 white;
}

.ressources-nav-btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--color-border, #ddd);
    color: var(--color-text);
    background: white;
    transition: all 0.25s ease;
}

.ressources-nav-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.ressources-nav-btn.active {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
}

/* Gestion globale des sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

#recettes,
#fiches,
#adresses {
    padding: 20px 24px;
    /* Important pour l'ancrage avec menu fixe */
    scroll-margin-top: 135px;
}

.section-header-ressources img {
    border-radius: 12px;
}

/* Gestion des filtres internes aux sections */
.filtres {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.filtre-btn {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtre-btn:hover,
.filtre-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

/* Gestion des grilles de sections */
.adresses-grid,
.recettes-grid,
.fiches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin-bottom: 30px;
}

.fiches-grid {
    margin-top: 30px;
}

/* Gestion des cartes */
.adresse-card-modern,
.recette-card-modern,
.fiche-card-modern {
    position: relative;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adresse-card-modern:hover,
.recette-card-modern:hover,
.fiche-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Gestion de l'affichage (Filtres JS) */
.adresse-card-modern.hidden,
.recette-card-modern.hidden,
.fiche-card-modern.hidden {
    display: none !important;
}

.adresse-card-modern a,
.recette-card-modern a,
.fiche-card-modern a {
    text-decoration: none;
    color: var(--color-accent);
}

.recette-image-container,
.fiche-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.recette-img,
.fiche-img {
    height: 100%;
    width: auto;
    transition: transform 0.5s ease;
}

.recette-card-modern:hover .recette-img,
.fiche-card-modern:hover .fiche-img {
    transform: scale(1.1);
}

/* Textes & Corps */
.adresse-content,
.recette-content,
.fiche-content {
    padding: 20px;
    flex-grow: 1;
}

.adresse-name,
.recette-title,
.fiche-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-accent-dark);
    line-height: 1.3;
}

/* Style pour le badge d'adresse */
.adresse-badges {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Forme carrée (avec un peu de flexibilité pour le texte) */
    min-width: 40px;
    height: 40px;
    padding: 8px;
    /* Fond de couleur et angles arrondis */
    background-color: var(--color-accent-light);
    border-radius: 8px;
    /* Forme carrée aux angles arrondis */
    /* Couleur de l'icône ou du texte à l'intérieur */
    color: var(--color-accent-dark);
    /* Espacement */
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 4px 12px var(--color-accent-light);
}

.adresse-full-desc,
.recette-short-desc,
.fiche-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

/* Footer des cartes */
.adresse-footer,
.recette-footer,
.fiche-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

/* Spécifique Adresses (Avatar & Réseaux) */
.adresse-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.adresse-avatar-large {
    font-size: 2.5rem;
    background: var(--color-bg);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.insta:hover svg {
    color: #E1306C;
}

.social-icon.fb:hover svg {
    color: #1877F2;
}

.social-icon.web:hover svg {
    color: var(--color-accent);
}

/* Spécifique Recettes (Tags & Bouton Charger Plus) */
.recette-tags {
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Forme carrée (avec un peu de flexibilité pour le texte) */
    min-width: 40px;
    height: 40px;
    padding: 8px;
    /* Fond de couleur et angles arrondis */
    background-color: var(--color-accent-light);
    border-radius: 8px;
    /* Forme carrée aux angles arrondis */
    /* Couleur de l'icône ou du texte à l'intérieur */
    color: var(--color-accent-dark);
    /* Espacement */
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 4px 12px var(--color-accent-light);
}

.tag-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent-dark);
}

.tag-saison {
    font-size: 0.7rem;
    color: var(--color-text-light);
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.load-more-recettes-container {
    text-align: center;
    margin-top: 30px;
}

#loadMoreBtnRecettes {
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 115, 235, 0.5);
}

#loadMoreBtnRecettes:hover {
    background-color: var(--color-accent-dark);
}

.placeholder-container {
    background-color: #f8f9fa;
    /* Gris très clair */
    border: 2px dashed var(--color-accent);
    /* Bordure pointillée bleue */
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.placeholder-content .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.placeholder-content h3 {
    color: #3c4043;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.placeholder-content p {
    color: #70757a;
    margin-bottom: 25px;
}

.cta-placeholder {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 115, 235, 0.5);
}

.cta-placeholder:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 7. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    #ressources-nav {
        padding: 10px 10px;
        /* On réduit l'épaisseur du menu */
        justify-content: flex-start;
        /* Aligne au début pour le défilement */
        flex-wrap: nowrap;
        /* Empêche les boutons de revenir à la ligne */
        overflow-x: auto;
        /* Active le défilement horizontal */
        -webkit-overflow-scrolling: touch;
        /* Défilement fluide sur iPhone */
        gap: 8px;
        scrollbar-width: none;
        /* Cache la barre de défilement (Firefox) */
        top: 62px;
    }

    /* Cache la barre de défilement pour Chrome/Safari */
    #ressources-nav::-webkit-scrollbar {
        display: none;
    }

    .ressources-nav-btn {
        padding: 6px 14px;
        /* Boutons plus petits */
        font-size: 0.8rem;
        /* Texte plus fin */
        flex-shrink: 0;
        /* Empêche le bouton de s'écraser */
    }

    .ressources-nav-btn img {
        height: 18px;
        /* Icônes plus petites */
        width: auto;
    }

    .adresses-grid,
    .recettes-grid,
    .fiches-grid {
        grid-template-columns: 1fr;
    }

    #adresses {
        margin-bottom: 85px;
    }
}