/*
Theme Name: Le Moulin Bardin
Description: Thème sur-mesure pour l'ASAMBA.
Author: ASAMBA
Version: 1.0
*/

/* =========================================
   VARIABLES & BASES
   ========================================= */
:root {
    --bg-color: #F9F7F2; --bg-menu: #F0EDE5; --text-color: #3E3B36;
    --accent-color: #7B8C76; --cta-color: #C18C5D; --cta-text: #FFFFFF;
    --font-titre: 'Cinzel Decorative', cursive; 
    --font-texte: 'Lato', sans-serif;
    --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-texte); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

/* =========================================
   POPUP ÉVÉNEMENT SPÉCIAL
   ========================================= */
.event-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 20000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
    padding: 20px;
}
.event-popup-overlay.show { opacity: 1; visibility: visible; }
.event-card {
    background: #fff; max-width: 800px; width: 100%;
    display: flex; border-radius: 12px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); position: relative;
    transform: translateY(20px); transition: transform 0.4s ease;
}
.event-popup-overlay.show .event-card { transform: translateY(0); }
.event-image {
    width: 45%; background-color: #ffffff; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.event-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.event-details { width: 55%; padding: 40px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.event-tag {
    display: inline-block; background-color: var(--accent-color); color: white;
    padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold;
    margin-bottom: 15px; align-self: flex-start;
}
.event-title { font-family: var(--font-titre); font-size: 2rem; color: var(--cta-color); margin-bottom: 10px; line-height: 1.2; }
.event-date { font-size: 1.1rem; font-weight: bold; color: #555; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.event-desc { font-size: 1rem; color: #666; margin-bottom: 30px; }
.event-buttons { display: flex; gap: 15px; }
.btn-event-primary {
    background-color: var(--cta-color); color: white; padding: 12px 25px;
    border-radius: 6px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.3s;
}
.btn-event-primary:hover { background-color: var(--text-color); }
.btn-event-secondary {
    background-color: transparent; color: #888; padding: 12px 20px;
    border: 1px solid #ddd; border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.btn-event-secondary:hover { border-color: #555; color: #555; }
.close-event {
    position: absolute; top: 15px; right: 15px;
    background: white; border-radius: 50%; width: 35px; height: 35px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 1.2rem; color: #555; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.3s; border: none; z-index: 10;
}
.close-event:hover { background: var(--cta-color); color: white; }

@media (max-width: 768px) {
    .event-card { flex-direction: column; max-height: 85vh; overflow-y: auto; }
    .event-image { width: 100%; height: 200px; }
    .event-details { width: 100%; padding: 25px; }
    .event-title { font-size: 1.6rem; }
}

/* =========================================
   HEADER (Menu)
   ========================================= */
.header-moulin {
    background-color: var(--bg-color); height: var(--header-height); width: 100%;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center; padding: 0 2%;
}
.logo-container { display: flex; align-items: center; gap: 25px; text-decoration: none; }
.header-logo-img { height: 70px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; }
.nav-item { position: relative; padding: 10px 0; list-style: none; }
.nav-link { font-family: var(--font-titre); font-weight: 700; font-size: 1.1rem; padding: 10px; display: block; white-space: nowrap; }
.nav-link:hover { color: var(--accent-color); }
.has-dropdown::after { content: '▼'; font-size: 0.7em; margin-left: 5px; opacity: 0.5; }
.btn-reservation { background-color: var(--cta-color); color: var(--cta-text) !important; padding: 10px 20px; border-radius: 4px; font-family: var(--font-texte); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.btn-reservation:hover { background-color: var(--text-color); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: var(--bg-menu); min-width: 240px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; border-top: 3px solid var(--accent-color); padding: 10px 0; z-index: 1001; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item a { display: block; padding: 12px 20px; border-left: 3px solid transparent; }
.dropdown-item a:hover { background-color: rgba(255,255,255,0.5); color: var(--accent-color); border-left: 3px solid var(--accent-color); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-color); transition: 0.3s; }

/* =========================================
   HERO SECTION & CONTENU
   ========================================= */
.hero-section {
    position: relative; height: calc(100vh - var(--header-height)); min-height: 600px; width: 100%;
    display: flex; justify-content: center; align-items: center; overflow: hidden; color: white; text-align: center; background-color: #000;
}
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.video-background video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0.8; }
.hero-content { position: relative; z-index: 2; padding: 20px; animation: fadeIn 1.5s ease-out; padding-bottom: 350px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-content h1 { font-family: var(--font-titre); font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.5rem; max-width: 800px; margin: 0 auto; font-weight: 600; }
.scroll-indicator { position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; opacity: 0.8; animation: bounce 2s infinite; cursor: pointer; }
.mouse-icon { width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px; position: relative; margin-bottom: 5px; }
.mouse-wheel { width: 4px; height: 8px; background: #fff; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scrollWheel 2s infinite; }
.scroll-text { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -10px); } 60% { transform: translate(-50%, -5px); } }
@keyframes scrollWheel { 0% { opacity: 1; top: 10px; } 100% { opacity: 0; top: 25px; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.quick-access-section { padding: 60px 20px; background-color: var(--bg-color); position: relative; z-index: 2; }
.cards-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: -120px; }
.quick-card { background: white; padding: 40px 30px; border-radius: 8px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; border-bottom: 4px solid var(--accent-color); text-decoration: none; color: var(--text-color); display: flex; flex-direction: column; justify-content: space-between; }
.quick-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-bottom-color: var(--cta-color); }
.card-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.card-title { font-family: var(--font-titre); font-size: 1.5rem; margin-bottom: 15px; }
.card-text { font-size: 1rem; color: #666; line-height: 1.6; }

.welcome-section { padding: 40px 20px; max-width: 1000px; margin: 0 auto; text-align: center; margin-bottom: 60px; }
.welcome-section h2 { font-family: var(--font-titre); font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
.welcome-section p { font-size: 1.1rem; color: #555; margin-bottom: 30px; }

/* =========================================
   AVIS GOOGLE
   ========================================= */
.reviews-section { padding: 80px 20px; background-color: white; text-align: center; border-top: 1px solid #eee; }
.reviews-header { margin-bottom: 50px; }
.reviews-header h2 { font-family: var(--font-titre); font-size: 2.5rem; color: var(--accent-color); margin-bottom: 10px; }
.google-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: bold; color: #333; background: #f1f3f4; padding: 10px 20px; border-radius: 50px; margin-top: 10px; }
.stars-container { display: inline-flex; font-family: sans-serif; position: relative; }
.star { color: #fbbc04; font-size: 1.2rem; margin-right: 2px; }
.star-partial { position: relative; display: inline-block; color: #d1d1d1; font-size: 1.2rem; }
.star-partial::after { content: '★'; position: absolute; left: 0; top: 0; width: 60%; overflow: hidden; color: #fbbc04; }
.reviews-grid { max-width: 1200px; margin: 0 auto 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: var(--bg-color); padding: 30px; border-radius: 15px; text-align: left; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; position: relative; }
.review-card:hover { transform: translateY(-5px); }
.review-card::before { content: '“'; position: absolute; top: 10px; right: 20px; font-size: 5rem; color: var(--accent-color); opacity: 0.1; font-family: serif; }
.reviewer-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.reviewer-avatar { width: 45px; height: 45px; background-color: var(--cta-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.reviewer-name { font-weight: bold; color: var(--text-color); font-size: 1rem; }
.review-stars { color: #fbbc04; font-size: 0.9rem; }
.review-text { font-size: 0.95rem; color: #555; line-height: 1.6; font-style: italic; }
.btn-google { display: inline-block; background-color: white; color: #333; border: 2px solid #ddd; padding: 12px 30px; border-radius: 50px; font-weight: bold; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.btn-google:hover { border-color: #4285F4; color: #4285F4; background: #fff; }

/* =========================================
   FOOTER & MASCOTTE
   ========================================= */
.fat-footer { background-color: #2C2A26; color: #F0EDE5; padding: 60px 20px 20px; font-family: var(--font-texte); margin-top: 60px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-family: var(--font-titre); color: var(--cta-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p { color: #aaa; line-height: 1.8; font-size: 0.95rem; margin-bottom: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ccc; transition: 0.3s; }
.footer-links a:hover { color: var(--cta-color); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; color: white; }
.social-icon:hover { background: var(--cta-color); transform: rotate(360deg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding-top: 20px; color: #666; font-size: 0.8rem; }

.mascotte-container { position: fixed; bottom: 0; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.mascotte-img { width: 120px; display: block; transform: translateY(100%); animation: surgitVictor 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards; animation-delay: 0.5s; }
.mascotte-bulle { background: white; color: var(--text-color); padding: 10px 15px; border-radius: 15px 15px 0 15px; font-family: var(--font-titre); font-size: 0.9rem; margin-bottom: 5px; margin-right: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); opacity: 0; transform: scale(0); transform-origin: bottom right; animation: popBulle 0.4s ease forwards; animation-delay: 1.3s; }
@keyframes surgitVictor { to { transform: translateY(0); } }
@keyframes popBulle { to { opacity: 1; transform: scale(1); } }
@media (max-width: 1024px) { .mascotte-container { display: none; } }
.logo-partenaires { background-color: white; padding: 8px 12px; border-radius: 6px; width: 190px; height: auto; display: block; transition: transform 0.3s ease; }

.lang-container { position: fixed; top: var(--header-height); right: 0; z-index: 19999; background-color: rgba(240, 237, 229, 0.95); padding: 8px 15px 8px 20px; border-radius: 0 0 0 20px; box-shadow: -2px 2px 10px rgba(0,0,0,0.1); transition: top 0.3s ease; }
@media (max-width: 600px) { .lang-container { padding: 5px 10px 5px 15px; } }



/* RESPONSIVE */
@media (max-width: 1024px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: var(--header-height); flex-direction: column; background-color: var(--bg-color); width: 100%; height: calc(100vh - var(--header-height)); transition: 0.3s; overflow-y: auto; }
    .nav-menu.active { left: 0; }
    .nav-item { width: 100%; border-bottom: 1px solid #ddd; padding: 0; }
    .nav-link { padding: 20px; font-size: 1.2rem; width: 100%; }
    .dropdown-menu { position: static; visibility: visible; opacity: 1; transform: none; display: none; background: #eee; width: 100%; box-shadow: none; }
    .nav-item:hover .dropdown-menu { display: block; }
    .header-logo-img { height: 50px; } .logo-container { gap: 15px; } .header-moulin { padding: 0 5%; }
    .hero-content h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .cards-container { margin-top: 0; padding: 0 20px; } 
    .scroll-indicator { bottom: 30px; }
    .quick-access-section { padding-top: 30px; }
    .video-background video { display: none; } 
    .hero-section { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://moulinbardin.fr/wp-content/uploads/2021/05/Moulin_2021-05-02-13-1024x576.jpg'); background-size: cover; background-position: center; }
}
@media (max-width: 600px) {
    .footer-content { display: flex; flex-direction: column; gap: 40px; padding: 0 10px; }
    .fat-footer { padding: 40px 0 20px; }
    .footer-col { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
    .social-links { justify-content: center; }
}
/* =========================================
   PAGE ACCÈS & PLAN
   ========================================= */
.page-content { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.intro-section { text-align: center; margin-bottom: 40px; }
.intro-section h1 { font-family: var(--font-titre); font-size: 2.5rem; margin-bottom: 10px; }
.acces-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.info-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 100%; }
.info-block { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.info-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-title { font-family: var(--font-titre); font-size: 1.2rem; color: var(--cta-color); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.info-text { font-size: 1rem; color: #555; line-height: 1.8; }
.highlight { font-weight: bold; color: var(--text-color); }
.btn-gps { display: inline-block; width: 100%; text-align: center; padding: 12px; margin-top: 15px; background-color: var(--accent-color); color: white; border-radius: 8px; font-weight: bold; transition: 0.3s; }
.btn-gps:hover { background-color: var(--text-color); }
.btn-gps.outline { background: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); }
.btn-gps.outline:hover { background: var(--accent-color); color: white; }
.map-container { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); height: 500px; position: relative; }
.map-iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1024px) {
    .acces-grid { grid-template-columns: 1fr; } 
    .map-container { height: 350px; order: 1; } 
    .info-card { order: 2; }
}
@media (max-width: 600px) {
    .page-content { padding: 0 15px; margin: 20px auto; }
    .intro-section h1 { font-size: 1.8rem; }
}

 /* =========================================
           CONTENU GALERIE & GRILLES
           ========================================= */
        .page-content { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
        .intro-section { text-align: center; margin-bottom: 60px; }
        .intro-section h1 { font-family: var(--font-titre); font-size: 3rem; margin-bottom: 20px; }
        .intro-section h2 { font-family: var(--font-titre); font-size: 2rem; margin-bottom: 20px; }
        .gallery-title { font-family: var(--font-titre); font-size: 2rem; color: var(--accent-color); margin: 60px 0 30px; border-bottom: 2px solid var(--text-color); display: inline-block; padding-bottom: 10px; }
        .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.lightbox {
    display: none; 
    position: fixed; /* TRÈS IMPORTANT : pour que ça ne soit pas en bas de page */
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
