/* Variables de Design */
:root {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Palette moderne & chaleureuse */
    --clr-brand: #7a1c24;
    --clr-brand-dark: #581218;
    --clr-accent: #c69214;
    --clr-surface: #ffffff;
    --clr-bg: #f8f6f3;
    --clr-text: #1a1a1a;
    --clr-text-muted: #555555;
    --clr-border: #e8e3dc;
    
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* En-tête Flottant */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;       /* Hauteur idéale sur grand écran */
    width: auto;        /* Conserve les proportions */
    max-width: 180px;   /* Sécurité pour éviter un logo trop large */
    display: block;
}

/* Ajustement automatique sur mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 38px;   /* Réduction fluide pour petit écran */
    }
}

.brand-logo:hover .logo-img {
    transform: scale(1.03); /* Léger effet de survol moderne */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--clr-brand);
    background-color: rgba(122, 28, 36, 0.04);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

/* Dropdown Moderne */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--clr-surface);
    min-width: 260px;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--clr-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .arrow {
    transform: rotate(90deg);
}

.dropdown a {
    font-size: 0.875rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    display: block;
}

/* Main Container */
.page-container {
    max-width: 1050px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Carte Bienvenue */
.welcome-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
}

/* Conteneur de l'image du patron */
.welcome-image {
    position: relative;
    background: #f1ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden; /* Empêche tout dépassement */
}

/* Image du patron */
.welcome-image img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limite la hauteur maximale */
    object-fit: contain; /* Garantit que toute la photo reste visible sans être rognée */
    display: block;
    border-radius: var(--radius-lg); /* Harmonise les coins avec le reste du site */
}

.image-badge {
    position: absolute;
    bottom: 2rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.welcome-body {
    padding: 3rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--clr-brand);
    background: rgba(122, 28, 36, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.welcome-body h1 {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    color: var(--clr-text);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.welcome-body p {
    color: var(--clr-text-muted);
    font-size: 0.975rem;
    margin-bottom: 1rem;
}

.welcome-body p.lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-text);
}

.info-banner {
    margin: 1.75rem 0;
    padding: 1.25rem;
    background: #fdf8eb;
    border: 1px solid #f3e6c4;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.25rem;
}

.info-banner strong {
    color: #725304;
    font-size: 0.875rem;
    display: block;
}

.info-banner p {
    color: #83620c;
    font-size: 0.875rem;
    margin: 0;
}

.info-banner a {
    color: inherit;
    font-weight: 700;
}

.signature-block {
    margin-top: 2rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 1.25rem;
    font-size: 0.9rem;
}

.signature-block span {
    color: var(--clr-text-muted);
}

.signature-block strong {
    display: block;
    color: var(--clr-brand);
    margin-top: 0.25rem;
}

/* --- SECTION RÉSERVATION --- */
.reservation-card {
    background: #ffffff;
    border-radius: var(--radius-xl, 16px);
    border: 1px solid var(--clr-border, #e8e3dc);
    box-shadow: 0 10px 30px rgba(122, 28, 36, 0.06);
    padding: 3.5rem;
    max-width: 1100px; /* Élargissement de la carte (précédemment 850px) */
    margin: 2.5rem auto;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    color: var(--clr-brand, #7a1c24);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #666;
    font-size: 1.05rem;
}

/* Bandeau d'information pour grands groupes / téléphone */
.reservation-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fdfbf7;
    border: 1px solid var(--clr-accent, #c69214);
    border-left: 5px solid var(--clr-accent, #c69214);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md, 8px);
    margin-bottom: 2.5rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reservation-notice p {
    margin: 0;
    color: var(--clr-text, #2c2c2c);
    font-size: 0.98rem;
    line-height: 1.5;
}

.phone-link {
    color: var(--clr-brand, #7a1c24);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--clr-brand, #7a1c24);
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--clr-brand-dark, #421419);
}

/* Grille du Formulaire */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field.full-width {
    grid-column: span 2;
}

.field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text, #2c2c2c);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--clr-border, #d1c9bf);
    border-radius: var(--radius-sm, 6px);
    font-family: inherit;
    font-size: 1rem;
    background-color: #fdfbf7;
    color: var(--clr-text, #2c2c2c);
    transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--clr-brand, #7a1c24);
    box-shadow: 0 0 0 3px rgba(122, 28, 36, 0.12);
}

/* Bouton de Soumission */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--clr-brand, #7a1c24);
    color: #ffffff;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: var(--radius-sm, 6px);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 28, 36, 0.15);
}

.submit-btn:hover {
    background-color: var(--clr-brand-dark, #421419);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 28, 36, 0.25);
}

/* Responsivité Mobile & Tablette */
@media (max-width: 850px) {
    .reservation-card {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .field.full-width {
        grid-column: span 1;
    }

    .reservation-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .submit-btn {
        max-width: 100%;
    }
}

/* Footer Global */
.site-footer {
    background-color: var(--clr-brand-dark, #421419);
    color: #f5f2ed;
    padding-top: 3.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--clr-brand, #7a1c24);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col h3 {
    color: var(--clr-accent, #c69214);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-col p, 
.footer-col address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0dcd5;
    margin-bottom: 0.5rem;
}

.footer-col .brand-name {
    font-weight: 700;
    color: #ffffff;
}

/* Téléphone et liens */
.phone-item {
    margin-top: 1rem;
    font-size: 1.05rem !important;
}

.phone-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition, all 0.2s ease);
}

.phone-item a:hover {
    color: var(--clr-accent, #c69214);
}

.contact-link-item {
    margin-top: 1rem;
}

.btn-contact-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.85rem;
    transition: var(--transition, all 0.2s ease);
}

.btn-contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Badge Jour de fermeture */
.opening-status {
    margin-bottom: 1rem;
}

.status-badge.closed {
    display: inline-block;
    background-color: #8b0000;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.opening-info {
    font-size: 0.9rem !important;
    opacity: 0.9;
}

/* Image Google Maps & Effet Survol */
/* Conteneur du lien de la carte */
.footer-map-col .map-link {
    position: relative;
    display: block;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #ffffff; /* Fond blanc du cadre */
    transition: var(--transition, all 0.25s ease);
}

/* Image de la carte */
.footer-map-col .map-img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* L'image rentre entièrement dans le cadre */
    background-color: #ffffff; /* Fond blanc derrière l'image */
    display: block;
    padding: 4px; /* Petite marge interne pour détacher l'image des bordures */
    transition: transform 0.3s ease;
}

.map-overlay-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--transition, all 0.2s ease);
}

.map-link:hover {
    border-color: var(--clr-accent, #c69214);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.map-link:hover .map-img {
    transform: scale(1.05); /* Effet de zoom fluide sur la carte */
}

.map-link:hover .map-overlay-badge {
    background: var(--clr-accent, #c69214);
    color: #000000;
}

/* Bandeau Copyright inférieur */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 1.2rem 1rem;
    font-size: 0.8rem;
    color: #b0a8a0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adaptabilité Mobile */
@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }

    .footer-map-col .map-link {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 850px) {
    .welcome-card {
        grid-template-columns: 1fr;
    }
    .welcome-image {
        padding: 1rem;
    }
    .welcome-body, .reservation-card {
        padding: 2rem 1.5rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full-width {
        grid-column: span 1;
    }
}

/* Cards Spécialités */
.specialty-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transition: var(--transition);
}

.specialty-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Inversion de la disposition pour le buffet de salades */
.specialty-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.specialty-card.reverse .specialty-image {
    order: 2; /* Place l'image à droite */
}

.specialty-card.reverse .specialty-body {
    order: 1; /* Place le texte à gauche */
}

.specialty-image {
    position: relative;
    min-height: 320px;
    background: #f1ede8; /* Fond neutre pour combler les éventuelles marges si l'image est plus étroite */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem; /* Marge interne pour que l'image spirespire */
}

.specialty-image img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: contain; /* L'image rentre à 100% dans le cadre sans aucune coupure */
    display: block;
    border-radius: var(--radius-sm); /* Optionnel : arrondit légèrement les coins de l'image */
}

.price-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--clr-brand);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.price-badge small {
    font-size: 0.75rem;
    font-weight: 400;
}

.specialty-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specialty-body h2 {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
    color: var(--clr-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.specialty-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conditions {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-brand);
}

.btn-reservation-link {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--clr-border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-reservation-link:hover {
    background: var(--clr-brand);
    color: #fff;
    border-color: var(--clr-brand);
}

.signature-note {
    font-style: italic;
    color: var(--clr-brand);
    font-weight: 600;
    margin-top: 1rem;
}

/* Adaptabilité mobile */
@media (max-width: 850px) {
    .specialty-card,
    .specialty-card.reverse {
        grid-template-columns: 1fr;
    }

    .specialty-card.reverse .specialty-image {
        order: 1; /* L'image repasse en haut sur mobile */
    }

    .specialty-card.reverse .specialty-body {
        order: 2;
    }

    .specialty-body {
        padding: 2rem 1.5rem;
    }

    .specialty-image {
        min-height: 250px;
    }
}

/* Hero Banner (En-tête Campagne) */
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    /* La propriété background est maintenant gérée directement dans le HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

/* Voile sombre pour garantir la lisibilité du texte sur l'image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    display: inline-block;
    background: var(--clr-brand);
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: var(--clr-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Bouton Burger (Caché sur ordinateur) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--clr-brand, #7a1c24);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transformation du bouton en "X" quand le menu est ouvert */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Adaptabilité Mobile (Écrans de moins de 850px) */
@media (max-width: 850px) {
    .menu-toggle {
        display: flex; /* Affiche le bouton burger */
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--clr-border, #e8e3dc);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Classe activée par le JavaScript */
    .main-nav.is-open {
        max-height: 80vh; /* Ouvre le menu proprement */
        overflow-y: auto; /* Permet de scroller le menu si besoin */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav a {
        display: block;
        padding: 0.8rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #f5f2ed;
    }

    /* Gestion des Sous-menus sur mobile */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #fdfbf7;
        padding-left: 1rem;
        display: none; /* Caché par défaut, s'ouvre au clic */
    }

    .has-dropdown.active .dropdown {
        display: flex;
    }

    .has-dropdown.active .arrow {
        transform: rotate(90deg);
    }
}

/* Pages de la Cave */
.wine-header-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    text-align: center;
}

.wine-header-card h1 {
    font-size: 2.2rem;
    color: var(--clr-brand);
    margin: 0.5rem 0;
}

/* Alignement et largeur uniforme des cartes */
.wine-gallery {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les cartes */
    width: 100%;
}

.wine-image-card {
    width: 100%;
    max-width: 900px; /* Ajustez cette valeur (ex. 800px, 900px, 1000px) selon vos préférences */
    box-sizing: border-box; /* Garantit que le padding n'élargit pas la carte */
    margin-left: auto;
    margin-right: auto;
}

.wine-image-card h2 {
    font-size: 1.4rem;
    color: var(--clr-text);
    border-bottom: 2px solid var(--clr-accent);
    padding-bottom: 0.4rem;
    width: 100%;
    text-align: center;
}

.wine-image-card img {
    width: 100%;
    max-width: 850px; /* Taille optimale pour la lisibilité des textes du menu */
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--clr-border);
}

/* Section Événements avec Image */
.events-section {
    margin: 3rem 0;
}

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
    border-radius: var(--radius-xl, 16px);
    border: 2px solid var(--clr-accent, #c69214);
    box-shadow: 0 10px 30px rgba(122, 28, 36, 0.08);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* 2 colonnes : image à gauche, contenu à droite */
    display: none; /* Masqué par défaut, activé par js/countdown.js si dans le créneau */
	display: flex;
    flex-direction: column; /* L'image sera en haut sur toute la largeur, le texte en dessous */
}

/* Image de l'événement */
.event-image {
    width: 100%;
    height: 250px; /* Hauteur idéale pour afficher un bandeau 1920x400 */
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste l'image proprement pour remplir le bloc */
    display: block;
}

.event-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background-color: var(--clr-brand, #7a1c24);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contenu de l'événement */
.event-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content h2 {
    color: var(--clr-brand, #7a1c24);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.event-subtitle {
    font-weight: 600;
    color: var(--clr-accent, #c69214);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.event-description {
    color: var(--clr-text, #2c2c2c);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* Compte à Rebours */
.countdown-container {
    background: #f8f4ee;
    border: 1px solid var(--clr-border, #e8e3dc);
    border-radius: var(--radius-md, 8px);
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    display: inline-block;
}

.countdown-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--clr-brand-dark, #421419);
    margin-bottom: 0.6rem;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    background: #ffffff;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.time-block span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-brand, #7a1c24);
    line-height: 1;
}

.time-block small {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* Pied de la carte d'événement */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border, #e8e3dc);
    flex-wrap: wrap;
    gap: 1rem;
}

.event-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-brand-dark, #421419);
}

.btn-event-reservation {
    background-color: var(--clr-brand, #7a1c24);
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm, 6px);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-event-reservation:hover {
    background-color: var(--clr-brand-dark, #421419);
    transform: translateY(-2px);
}

/* Adaptation Mobile & Écrans intermédiaires */
@media (max-width: 900px) {
    .event-card {
        grid-template-columns: 1fr; /* Bascule sur 1 seule colonne */
    }

    .event-image {
        min-height: 220px;
        max-height: 300px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .time-block {
        min-width: 45px;
    }
}

/* Page Réservation */
.reservation-header-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.reservation-header-card h1 {
    font-size: 2.2rem;
    color: var(--clr-brand);
    margin: 0.5rem 0;
}

.reservation-card {
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--clr-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--clr-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-brand);
    box-shadow: 0 0 0 3px rgba(122, 28, 36, 0.1);
}

.form-notice {
    background-color: #fdfbf7;
    border-left: 4px solid var(--clr-accent);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--clr-text);
}

.btn-submit-reservation {
    background-color: var(--clr-brand);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-self: center;
}

.btn-submit-reservation:hover {
    background-color: var(--clr-brand-dark);
    transform: translateY(-2px);
}

/* Responsivité Mobile */
@media (max-width: 650px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .reservation-card {
        padding: 1.5rem;
    }
}

/* --- FOOTER DÉTAILLÉ --- */
.opening-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
}

.opening-hours-list li span {
    color: #e8e3dc;
}

.opening-hours-list li strong {
    color: #ffffff;
}

.opening-hours-list li strong.closed-label {
    color: #e63946; /* Rouge soft pour la fermeture du mercredi */
    font-weight: 700;
}

/* --- PAGE RESTAURANT / ESPACES --- */
.spaces-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto;
}

.space-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: var(--radius-xl, 16px);
    border: 1px solid var(--clr-border, #e8e3dc);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.space-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(122, 28, 36, 0.08);
}

/* Inverser l'ordre image/texte une fois sur deux pour du dynamisme */
.space-card:nth-child(even) .space-image {
    order: 2;
}

/* Container de l'image avec positionnement pour la superposition */
.space-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

/* Style de base pour les deux images/new superposées */
.space-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Image 1 (visible par défaut) */
.space-image img.img-default {
    opacity: 1;
    z-index: 1;
}

/* Image 2 (cachée par défaut) */
.space-image img.img-hover {
    opacity: 0;
    z-index: 2;
}

/* Effet au survol du bloc de l'espace ou de l'image */
.space-card:hover .space-image img.img-hover {
    opacity: 1;
    transform: scale(1.03); /* Léger effet de zoom élégant */
}

.space-card:hover .space-image img.img-default {
    opacity: 0;
}

.space-card:hover .space-image img {
    transform: scale(1.03);
}

.space-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.space-content h2 {
    color: var(--clr-brand, #7a1c24);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.space-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.space-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.space-features li {
    font-size: 0.95rem;
    color: var(--clr-text, #2c2c2c);
    font-weight: 500;
}

/* Bloc d'appel à la réservation */
.reservation-cta-card {
    background: #fdfbf7;
    border: 1px solid var(--clr-border, #e8e3dc);
    border-radius: var(--radius-xl, 16px);
    text-align: center;
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 3rem auto 1rem auto;
}

.reservation-cta-card h2 {
    color: var(--clr-brand, #7a1c24);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Responsive Mobile */
@media (max-width: 850px) {
    .space-card {
        grid-template-columns: 1fr;
    }

    .space-card:nth-child(even) .space-image {
        order: 0;
    }

    .space-content {
        padding: 1.5rem;
    }

    .space-image {
        height: 220px;
    }
}

/* --- PAGE LES MENUS (GRILLE DE PDF) --- */
.menus-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2.5rem auto;
}

.menu-pdf-card {
    background: #ffffff;
    border: 1px solid var(--clr-border, #e8e3dc);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-pdf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 28, 36, 0.08);
}

.menu-pdf-header {
    background: #fdfbf7;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--clr-border, #e8e3dc);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-pdf-header h2 {
    color: var(--clr-brand, #7a1c24);
    font-size: 1.3rem;
    margin: 0;
}

.price-tag {
    background: var(--clr-brand, #7a1c24);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.menu-pdf-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.menu-pdf-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.pdf-download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f6f2;
    color: var(--clr-brand, #7a1c24);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #ebdcd0;
    transition: background 0.2s ease, color 0.2s ease;
}

.pdf-download-link:hover {
    background: var(--clr-brand, #7a1c24);
    color: #ffffff;
}

/* Bouton principal PDF en haut de page */
.pdf-btn-main {
    display: inline-block;
    background: var(--clr-brand, #7a1c24);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.pdf-btn-main:hover {
    opacity: 0.9;
}

.wine-header-card,
.wine-image-card {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.specialty-image {
    border-radius: 12px;
    overflow: hidden;
}

.specialty-image img {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
}