/* ==========================================================================
   PAGES - STYLE COMME LA HOME (SECTIONS FULL-WIDTH)
   ========================================================================== */

/* Hero mini TRÈS RÉDUIT - margin-top réduit */
.page-hero-mini {
    height: auto;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: var(--gdf-color-primary, #00563f);
    margin-top: 80px;
    overflow: hidden;
    margin-bottom: 0;
    padding: 1rem 0 0 0;
}



.page-hero-mini .hero-image-3d {
    position: absolute;
    inset: 0;
    background-image: url(../images/Photos/terrain3D_v1.png);
    background-size: 739px;
    background-position: right calc(50% - 399px) top -17px;
    background-repeat: no-repeat;
    opacity: 0.45;
    z-index: 1;
    transform: scale(1.1);
    will-change: transform;
}

.page-hero-mini .hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(255, 255, 255, 0.06) 49px, rgba(255, 255, 255, 0.06) 50px),
        repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(255, 255, 255, 0.06) 49px, rgba(255, 255, 255, 0.06) 50px);
    z-index: 2;
    pointer-events: none;
}



@media screen and (max-width: 782px) {
    body.admin-bar .page-hero-mini {
        margin-top: calc(110px + 46px);
    }
}

/* ==========================================================================
   CONTENU DU HERO - TITRE + STATUS + INFOS
   ========================================================================== */

/* Hero content - 3 modules floutés ENCORE PLUS REMONTÉS + MARGE REDUITE */
.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 0 2rem;
}

/* Infos rapides dans le hero (Horaires, Événements, Social) */
.page-hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
}

.page-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.page-info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: center;
}

.page-info-content {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.page-info-item:last-child {
    margin-bottom: 0;
}

.page-info-item svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.page-info-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-info-item a:hover {
    color: #ffffff;
}

/* ==========================================================================
   PAGE WRAPPER - COMME LA HOME
   ========================================================================== */

.page-wrapper {
    padding-top: 0;
    background: #ffffff;
    min-height: calc(100vh - 80px);
}

/* PAS de container global, chaque section gère son propre container */
.page-container {
    display: contents;
}

/* Cacher la sidebar */
.page-sidebar {
    display: none;
}

/* ==========================================================================
   SECTION CONTENU - FULL WIDTH AVEC FOND BLANC
   ========================================================================== */

.page-content-section {
    width: 100%;
    padding: 6rem 0;
    background: #ffffff;
}

/* Container centré pour le contenu */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* TITRE DE LA PAGE - Fond blanc, noir, aligné gauche, grand */
.page-header-white {
    background: #ffffff;
    padding: 4rem 0 3rem 0;
    margin: 0 0 3rem 0;
}

.page-title-black {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

/* Titre de la page */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--gdf-color-primary, #00563f);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.page-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Contenu de la page */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* ==========================================================================
   WP BLOCKS GROUP - ALTERNANCE BLANC/GRIS FULL-WIDTH
   ========================================================================== */

/* Sortir les groupes de leur container */
.entry-content .wp-block-group {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 4rem 0;
}

/* Container centré dans les groupes */
.entry-content .wp-block-group > .wp-block-group__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premier groupe : fond blanc */
.entry-content .wp-block-group:nth-of-type(odd) {
    background: #ffffff;
}

/* Deuxième groupe : fond gris */
.entry-content .wp-block-group:nth-of-type(even) {
    background: #f5f5f5;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gdf-color-primary, #00563f);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gdf-color-primary, #00563f);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.entry-content h4 {
    font-size: 1.3rem;
    color: var(--gdf-color-primary, #00563f);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.entry-content a {
    color: var(--gdf-color-secondary, #b8935f);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: var(--gdf-color-primary, #00563f);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid var(--gdf-color-secondary, #b8935f);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ==========================================================================
   SECTION ALTERNÉE - FOND GRIS CLAIR
   ========================================================================== */

.page-section-alt {
    width: 100%;
    padding: 6rem 0;
    background: #f5f5f5;
    position: relative;
}

.page-section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        linear-gradient(45deg, var(--gdf-color-green-light, #9dc183) 1px, transparent 1px),
        linear-gradient(-45deg, var(--gdf-color-green-light, #9dc183) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.page-section-alt .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* ==========================================================================
   SECTION AVEC FOND VERT - STYLE HERO
   ========================================================================== */

.page-section-green {
    width: 100%;
    padding: 6rem 0;
    background: var(--gdf-color-primary, #00563f);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-section-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(255, 255, 255, 0.06) 49px, rgba(255, 255, 255, 0.06) 50px),
        repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(255, 255, 255, 0.06) 49px, rgba(255, 255, 255, 0.06) 50px);
    z-index: 0;
    pointer-events: none;
}

.page-section-green .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-section-green h2 {
    color: white;
}

.page-section-green p {
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .page-content-section,
    .page-section-alt,
    .page-section-green {
        padding: 4rem 0;
    }
    
    .page-content,
    .page-section-alt .container,
    .page-section-green .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero-mini {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .page-hero-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .page-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-status-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .page-status-icon {
        margin-bottom: 0.5rem;
    }
    
    .page-status-info {
        text-align: center;
    }
    
    .page-hero-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-info-card {
        padding: 1.2rem;
    }
}
