/* --- Reset de base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
    line-height: 1.6;
}

.body_content {
    max-width: 1320px;
}

/* --- Header Principal --- */
.main-header {
    background-color:transparent;
    border-bottom: 1px solid #eaeaea;
    padding: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}





.header-container {
  position: relative;
}

.header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    
    background-image: url(header_bg_color.jpg);
    background-position: center top;
    background-size: cover;
    
    background-position: center;
    z-index: -1; /* Places it behind the content */
    
    /* Apply your filter here */
    filter: grayscale(1) brightness(120%) opacity(0); 
}

/* --- Logo --- */
.logo_img {
    width: 70%;
    filter: grayscale(1) contrast(1.4);
    display : none;
}

.logo-container:hover{
    text-decoration : none;
}
.logo-container {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: #1a1a1a;
    line-height: 20px;
    position: relative;
}
.logo-container::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -1px;
    bottom: 9px;
    width: 4px;
    background-color: #d32f2f;
    border-radius: 2px;
}
.logo-line-1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    display: block;
    /* font-family: serif; */
}
.logo-line-2 {
    font-size: 0.8rem;
    font-weight: 400;
    align-self: flex-start;
    margin-left: 0.4em;
    color: #d32f2f;
    font-style: italic;
    display: block;
    position: relative;
    z-index: 10;
}
.logo-line-3 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #d32f2f;
    display: block;
    margin-left: 0.4em;
    font-family: serif;
    letter-spacing: -2px;
}


/* --- Logo in footer --- */
.footer-line-4 .logo-container {
    background-color: #ffffffde;
    padding: 14px 18px 20px 4px;
    scale: 0.8;
}
.footer-line-4 .logo-container::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0px;
    bottom: 0px;
    width: 4px;
    background-color: #d32f2f;
    border-radius: 2px;
}



/* --- Navigation Principale --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative; /* Nécessaire pour le positionnement du sous-menu */
}

/* Liens principaux */
.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: #d32f2f;
    text-decoration: none;
}

/* Flèche pour les items avec enfants */
.has-children > .nav-link::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-children:hover > .nav-link::after {
    transform: rotate(180deg); /* La flèche s'inverse au survol */
}

/* --- Sous-menu (Dropdown) --- */
.dropdown {
    position: absolute;
    top: 100%; /* Juste en dessous du parent */
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    list-style: none;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Affichage du sous-menu au survol du parent */
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
    background-color: #f9f9f9;
    color: #d32f2f;
    padding-left: 1.8rem; /* Petit décalage vers la droite au survol */
}

/* --- Bouton CTA --- */
.cta-button {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #d32f2f;
    color: #ffffff;
    transform: translateY(-1px);
}



/* --- Contenu principal (pour l'exemple) --- */
.content {
    flex: 1; /* Pousse le footer vers le bas */
    padding: 0;
    margin: 0 auto;
    text-align: center;
}



/* --- Accueil Bandeau image  --- */
.bandeau_image_accueil{
    height:70vh;
    background-image: url(bandeau_image_accueil.jpg);
    background-image: url(https://letheatredeverdure.com/wp-content/uploads/2024/04/La-Saison-du-Theatre-de-Verdure-modif.jpg);
    
    background-position: center center;
    background-size: cover;
    filter: saturate(1.2);
}





/* --- Accueil SECTION ACTUALITÉS --- */
.news-section {
    padding: 5rem 2rem;
    background-color: #fafafa; /* Fond légèrement gris pour séparer */
    width: 100%;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #d32f2f; /* Touche de rouge */
}

/* Grille Actualités*/

/* asso */
.news-grid-asso {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
    gap: 2.5rem; /* Espace entre les items */
}

/* adherénts */
.news-grid-adh {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 colonnes égales */
    gap: 2.5rem; /* Espace entre les items */
}

/* Carte Article */
.news-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Image 4/3 */
.news-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Force le format 4/3 */
    object-fit: cover; /* L'image remplit le cadre sans déformation */
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

/* Contenu Texte */
.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1; /* Pousse le lien vers le bas si nécessaire */
}

/* Lien Lire la suite */
.read-more {
    display: inline-flex;
    align-items: center;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #1a1a1a;
}

.read-more svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.read-more:hover svg {
    transform: translateX(4px);
}




/* --- CAPTATIONS : Conteneur de la grille --- */
.captations-section {
    padding: 5rem 2rem;
    background-color: #fafafa; /* Fond légèrement gris pour séparer */
    width: 100%;
}
.grid-container {
    display: grid;
    /* 3 colonnes égales */
    grid-template-columns: repeat(3, 1fr);
    /* ZÉRO MARGE entre les items */
    gap: 0; 
    gap: 1.5rem;
    width: 100%;
}

/* --- Item de la grille --- */
.grid-item {
    position: relative;
    width: 100%;
    /* Force le format 4/3 pour l'image */
    aspect-ratio: 4 / 3; 
    overflow: hidden; /* Empêche l'image de dépasser */
    cursor: pointer;
    background-color: #222; /* Fond de secours si l'image ne charge pas */
}

/* --- Image --- */
.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer */
    display: block;
    transition: transform 0.5s ease;
}

/* Effet de zoom au survol de l'item */
.grid-item:hover .grid-img {
    transform: scale(1.05);
}

/* --- Superposition Texte --- */
.grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem; /* Margin interne au texte seulement */
    text-align: left;
    
    /* Dégradé pour lisibilité du texte sur l'image */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* --- Éléments de texte --- */
.item-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff4d4d; /* Rouge accentué */
    font-weight: 600;
    opacity: 0.9;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    /* Limitation à 2 lignes max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-top: 0.5rem;
    opacity: 0; /* Caché par défaut */
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.item-link svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    fill: currentColor;
}

/* --- Interactions au survol --- */
/* Le lien devient visible au survol de l'item */
.grid-item:hover .item-link {
    opacity: 1;
    transform: translateY(0);
}

/* Légère augmentation du fond pour plus de contraste au survol */
.grid-item:hover .grid-content {
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

/* --- Responsive Design --- */

/* Tablette : 2 colonnes */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .item-title {
        font-size: 1.1rem;
    }
    
    /* Sur mobile, on peut choisir d'afficher toujours le lien ou le garder au survol */
    /* Ici on le garde au survol pour garder le style, ou on peut l'afficher toujours :
    .item-link { opacity: 1; transform: translateY(0); } 
    */
}





/* --- FOOTER GLOBAL --- */
.site-footer {
    background-color: #0a0a0a; /* Noir très foncé */
    color: #ffffff;
    padding-top: 3rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}

/* --- LIGNE 1 : Menu + Recherche --- */
.footer-line-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 0px solid #333;
    gap: 2rem;
}

.footer-nav-left ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav-left a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav-left a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-search {
    flex: 0 0 300px;
}

.search-form {
    display: flex;
    border-bottom: 0px solid #555;
    padding-bottom: 4px;
}

.search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
    padding: 5px;
    outline: none;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0 0 0 10px;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

/* --- LIGNE 2 : Réseaux Sociaux --- */
.footer-line-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.social-icon-svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* --- LIGNE 3 : Mentions Légales --- */
.footer-line-3 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-top: 0px solid #333;
}

.legal-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* --- LIGNE 4 : images le smuses  --- */
.footer-line-4 {
    width: 100%;
    height: 300px;
    position : relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-line-4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    
    background-image: url(header_bg_color.jpg);
    background-position: center center;
    background-size: cover;
    
    /* Apply your filter here */
    filter: grayscale(1) brightness(100%) opacity(1); 
}

/* --- LIGNE 5 : copyright --- */
.footer-line-5 {
    text-align: center;
    padding: 20px;
    font-size: 80%;
    color: #848484;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    
    .news-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 2rem;
    }
    
    .footer-line-1 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-nav-left ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-search {
        width: 100%;
    }

    .footer-line-2, .footer-line-3 {
        flex-direction: column;
        gap: 1.5rem;
    }
}