/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');

/* --- RESET & BASES --- */
* {
    box-sizing: border-box;
}

:root {
    /* --- NOUVELLE PALETTE (Teal & Beige) --- */
    --bg-main: #326872;       /* Fond principal */
    --bg-secondary: #3F7E89;  /* Fond secondaire (Sections) */
    --bg-header: #28565F;     /* Fond foncé alternatif (Header/Footer) */
    --bg-input: #F4F7F6;      /* Fond clair (Champs formulaires) */
    
    --accent-beige: #EADFCF;  /* Boutons / Titres */
    --text-on-beige: #326872; /* Texte sur les boutons beige */
    
    --text-main: #E2ECEA;     /* Texte principal */
    --text-muted: #B9D0CC;    /* Texte secondaire */
    
    /* --- MAPPING VERS ANCIENNES VARIABLES (Pour garder le style) --- */
    --primary-red: var(--accent-beige);   /* Remplace le Rouge */
    --primary-green: var(--bg-secondary); /* Remplace le Vert */
    
    --bg-dark: var(--bg-main);      /* Remplace le fond noir */
    --bg-card: var(--bg-secondary); /* Remplace le fond gris des sections */
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, .btn { font-family: 'Oswald', sans-serif; text-transform: uppercase; }

a { color: var(--text-main); transition: 0.3s; }
a:hover { color: var(--primary-red); }

/* --- HEADER --- */
header { 
    background: var(--bg-header); /* Fond foncé alternatif */
    padding: 15px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky; top: 0; z-index: 100;
}
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto;}
.logo { font-weight: bold; font-size: 1.4em; color: var(--primary-red); letter-spacing: 1px;}
.menu { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0;}
.menu a { text-decoration: none; color: var(--text-main); font-weight: bold; font-size: 0.95em; transition: 0.3s;}
.menu a:hover, .menu a.active { color: var(--primary-red); }


/* --- MENU MOBILE & BURGER --- */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 900px) { 
    .burger-menu { display: flex; z-index: 200; }

    .menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-header); /* Fond du menu mobile */
        border-bottom: 2px solid var(--primary-red);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 150;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .menu.active { max-height: 500px; padding-bottom: 20px; }
    .menu li { width: 100%; text-align: center; }
    .menu a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.1em; }
    .menu a:hover { background-color: rgba(255,255,255,0.05); }
}

/* --- HERO SECTION --- */
.hero {
    /* Dégradé avec les nouvelles couleurs */
    background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg-main) 100%);
    color: white;
    padding: 60px 20px;
}

.hero-global-container {
    max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; 
}

.hero-title h1 {
    font-size: 3em; 
    color: var(--primary-red); 
    text-align: center; 
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content { display: flex; flex-direction: column; align-items: center; gap: 40px;}
.hero-image { text-align: center; width: 100%; }

.hero-image img {
    max-width: 100%; height: auto; display: block; margin: 0 auto;
    border: 12px solid var(--text-main);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-height: 700px; 
}

.hero-text-column {
    display: flex; flex-direction: column; gap: 25px;
    text-align: justify; font-size: 1.15em; line-height: 1.8; color: var(--text-main);
}

@media (min-width: 900px) {
    .hero-content { flex-direction: row; align-items: flex-start; }
    .hero-text-column { flex: 1; order: 2; } 
    .hero-image { flex: 1; order: 1; } 
}

@media (max-width: 768px) {
    .hero-image img { border-width: 6px; }
    .hero { padding: 40px 10px; }
    .hero-title h1 { font-size: 2em; }
    .hero-text-column { width: 100%; }
}

/* Boutons */
.buttons { display: flex; gap: 20px; justify-content: center; width: 100%; margin-top: 20px; flex-wrap: wrap;}
.btn { padding: 15px 40px; text-decoration: none; font-weight: bold; font-size: 1.1em; border-radius: 4px; transition: 0.3s; cursor:pointer;}

.btn-primary { 
    background: var(--primary-red); 
    color: var(--text-on-beige); /* Texte foncé sur bouton clair */
    border: 2px solid var(--primary-red); 
}
.btn-primary:hover { 
    background: transparent; 
    color: var(--primary-red); 
    box-shadow: 0 0 15px rgba(234, 223, 207, 0.4); 
}

.btn-outline { border: 2px solid var(--text-main); color: var(--text-main); }
.btn-outline:hover { background: var(--text-main); color: var(--bg-dark); }


/* --- VIDEO --- */
.teaser { background: transparent; padding: 0 20px 60px 20px;}
.video-wrapper {
    width: 100%; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; 
    box-shadow: 0 0 50px rgba(0,0,0,0.8); background: #000; border-radius: 4px;
}
.video-wrapper iframe { width: 100%; height: 100%; display: block; border-radius: 4px;}


/* --- SECTIONS COMMUNES --- */
section h2 { 
    text-align: center; font-size: 2.8em; color: var(--text-main);
    margin-bottom: 50px; text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}


/* --- DATES --- */
.dates-section { 
    background: var(--bg-card); /* Fond Secondaire */
    padding: 60px 20px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.dates-list { max-width: 800px; margin: 0 auto; }

.date-row { 
    display: flex; flex-wrap: wrap; align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; transition: 0.3s;
}
.date-row:hover { background: rgba(255,255,255,0.03); padding-left: 10px; border-radius:4px;}

.date-time { 
    background: var(--primary-red); 
    color: var(--text-on-beige); /* Texte foncé sur fond beige */
    padding: 10px; min-width: 70px; text-align: center; border-radius: 4px; margin-right: 20px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.date-time .day { font-size: 1.6em; font-weight: bold; display: block; }
.date-time .month { font-size: 0.9em; text-transform: uppercase; }

.date-info { flex: 1; margin: 10px 0; font-size: 1.1em; color: var(--text-main); }
.date-info strong { color: white; font-size: 1.2em; }
.date-info span { color: var(--text-muted); }

.btn-resa { 
    background: transparent; 
    color: var(--primary-red); /* Lien beige */
    border: 1px solid var(--primary-red);
    padding: 8px 20px; text-decoration: none; border-radius: 30px; font-weight: bold; transition:0.3s;
}
.btn-resa:hover { background: var(--primary-red); color: var(--text-on-beige); }


/* --- CARROUSEL GALERIE --- */
.galerie { background: var(--bg-dark); padding: 60px 20px; }
.carousel-container {
    max-width: 1000px; margin: 0 auto; position: relative; overflow: hidden;
    background: #000; border: 1px solid #333; border-radius: 4px;
}
.carousel-slide { display: flex; transition: transform 0.5s ease-in-out; height: 600px; align-items: center; }
.carousel-slide img { width: 100%; height: 100%; flex-shrink: 0; object-fit: contain; }
.prev, .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5); color: white; border: none; font-size: 3em;
    padding: 0 20px; cursor: pointer; height: 100%; z-index: 10; transition: 0.3s;
}
.prev:hover, .next:hover { background-color: rgba(50, 104, 114, 0.8); }
.prev { left: 0; }
.next { right: 0; }
@media (max-width: 600px) {
    .carousel-slide { height: 300px; } 
    .prev, .next { font-size: 2em; padding: 0 10px; }
}


/* --- AVIS --- */
.avis-section { 
    background: var(--bg-card); /* Fond Secondaire */
    padding: 60px 20px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.avis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }

.avis-card { 
    background: var(--bg-dark); /* Carte sur fond sombre */
    padding: 30px; 
    border-left: 4px solid var(--primary-red);
    border-radius: 4px; 
    font-style: italic; 
    line-height: 1.6;
    color: var(--text-muted);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-avis-container { text-align: center; margin-top: 60px; }
.btn-avis { 
    border: 1px solid var(--text-muted); color: var(--text-muted); 
    padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; 
    letter-spacing: 1px; text-transform: uppercase; font-size: 0.9em;
}
.btn-avis:hover { border-color: var(--text-main); color: var(--text-main); background: rgba(255,255,255,0.05); }


/* --- SYSTÈME D'ACCORDEON (TEXTE) --- */
.block-title {
    font-size: 1.2em;
    color: var(--primary-red);
    margin: 0 0 10px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}
.block-content { color: var(--text-muted); }
.btn-more { display: none; }

@media (max-width: 768px) {
    .mobile-fold .block-content {
        max-height: 80px; overflow: hidden; position: relative;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    }
    .mobile-fold.open .block-content { max-height: 1000px; -webkit-mask-image: none; mask-image: none; }
    .btn-more {
        display: block; background: none; border: none;
        color: var(--primary-red); font-weight: bold; cursor: pointer;
        padding: 10px 0; width: 100%; text-transform: uppercase; font-size: 0.9em;
    }
    .block-title { text-align: center; }
}

/* --- STYLES SPÉCIFIQUES LIVRE D'OR --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');

:root {
    --gold-accent: var(--accent-beige); /* On utilise le beige comme doré */
}

.guestbook-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

.guestbook-form-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border-top: 4px solid var(--gold-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 60px;
    text-align: center;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; margin-top: 20px; }

.guestbook-form-section input, 
.guestbook-form-section textarea {
    background: var(--bg-input); /* Fond clair */
    border: 1px solid #ccc;
    color: var(--text-on-beige); /* Texte foncé */
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
}

.guestbook-form-section input:focus, 
.guestbook-form-section textarea:focus {
    border-color: var(--bg-main);
    outline: none;
    background: #fff;
}

.guestbook-form-section label { color: var(--text-muted); font-size: 0.9em; margin-bottom: 5px; display: block; }
.full-width { grid-column: span 2; }

.btn-gold {
    background: var(--gold-accent);
    color: var(--text-on-beige);
    padding: 12px 30px; border: none; border-radius: 4px;
    font-family: 'Oswald', sans-serif; font-weight: bold; text-transform: uppercase;
    cursor: pointer; transition: 0.3s; margin-top: 20px;
}
.btn-gold:hover { background: #D8C9B4; transform: translateY(-2px); }

.feedback { padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.success { background: rgba(74, 99, 54, 0.2); border: 1px solid #3F7E89; color: #a3cfbb; }
.error { background: rgba(184, 31, 45, 0.2); border: 1px solid #d88; color: #ea868f; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }

.review-card {
    background: var(--bg-card);
    padding: 25px; border-radius: 8px; position: relative; transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-5px); background: #356a74; }

.review-card::before {
    content: '“'; font-family: 'Playfair Display', serif; font-size: 4em;
    position: absolute; top: -10px; left: 15px;
    color: rgba(255,255,255,0.05); line-height: 1;
}

.review-text {
    font-family: 'Lato', sans-serif; font-style: italic; color: var(--text-main);
    line-height: 1.6; margin-bottom: 15px; position: relative; z-index: 1;
}

.review-author {
    text-align: right; font-family: 'Oswald', sans-serif; color: var(--gold-accent);
    font-size: 0.9em; letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px;
}

.review-date { display: block; font-size: 0.7em; color: var(--text-muted); font-family: 'Lato', sans-serif; text-transform: none; }
.honey { display: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .full-width { grid-column: span 1; } }

/* --- FOOTER & PARTENAIRES --- */
footer {
    background: var(--bg-header); /* Fond foncé */
    color: var(--text-muted);
    text-align: center;
    padding-top: 50px; padding-bottom: 30px; margin-top: 80px; 
    border-top: none;
    font-size: 0.9em;
}

.footer-partners {
    margin-bottom: 40px; padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    max-width: 800px; margin-left: auto; margin-right: auto;
}

.partners-label {
    display: block; text-transform: uppercase; font-size: 0.8em; letter-spacing: 2px;
    margin-bottom: 20px; color: var(--text-muted); font-family: 'Oswald', sans-serif;
}

.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partners-logos img {
    height: 60px; width: auto;
    filter: grayscale(100%) opacity(0.6);
    background: rgba(255,255,255,0.05); padding: 5px; border-radius: 4px;
    transition: 0.3s all ease;
}
.partners-logos img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); background: rgba(255,255,255,0.1); }
.footer-bottom p { margin: 5px 0; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: 0.3s; margin: 0 5px; }
.footer-bottom a:hover { color: var(--primary-red); }
@media (max-width: 600px) { .partners-logos { gap: 20px; } .partners-logos img { height: 40px; } }

/* --- ADMIN REPLY --- */
.admin-reply {
    margin-top: 15px; padding-top: 15px; border-top: 1px dashed #444;
    color: var(--text-muted); font-size: 0.9em; font-style: italic; text-align: left;
}
.admin-reply strong {
    color: var(--primary-red); display: block; margin-bottom: 5px;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.8em;
}

/* --- ARCHIVES DATES --- */
.btn-archives {
    background: transparent; border: 1px solid #444; color: var(--text-muted);
    padding: 5px 15px; font-size: 0.8em; cursor: pointer;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; border-radius: 4px; transition: 0.3s;
}
.btn-archives:hover { border-color: var(--text-main); color: var(--text-main); }
.past-row { opacity: 0.6; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 0; }
.past-time { background: rgba(255,255,255,0.05) !important; box-shadow: none !important; transform: scale(0.8); min-width: 60px; color:#aaa!important;}
.past-time .month { font-size: 0.7em; }
.past-info { font-size: 0.95em; }
.past-info strong { color: #aaa; }
.past-status { color: #555; font-size: 0.8em; font-style: italic; padding-right: 10px; }