/* ================================================= */
/* STYLE.CSS - CONFIGURATION FINALE OPTIMISÉE        */
/* ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #5C4033;
    --color-secondary: #AA7744;
    --color-text: #333333;
    --color-background: #FDFBF8;
    --color-accent: #D4AF37;
    --color-white: #ffffff;
    --color-dark: #121212; /* Noir charbon plus élégant */
}

/* --- BASES --- */
body {
    font-family: 'Lora', serif;
    color: #f1f1f1;
    background-color: var(--color-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-accent) !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* --- NAVIGATION (LOOK PREMIUM GLASSMORPHISM ACCENTUÉ) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    /* Fond plus transparent et flou augmenté pour le glassmorphism */
    background-color: rgba(18, 18, 18, 0.65); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
    mix-blend-mode: screen; 
    filter: brightness(1.1) contrast(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-accent);
    font-family: 'Playfair Display', serif !important;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px var(--color-accent);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--color-accent);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero-index {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); /* Réduit pour laisser voir l'image derrière */
    backdrop-filter: blur(4px);
    padding: 40px 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-intro {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.two-restaurants-choice {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; 
    width: 100%;
}

/* --- FONDS --- */
/* --- FONDS --- */
.body-index {
    /* "fixed" fige l'image, "scroll" la fait bouger */
    background: #000 url('fond-index.jpg') no-repeat center center fixed !important; 
    background-size: cover !important;
}

.body-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('fond-contact.jpg') no-repeat center center fixed;
    background-size: cover;
}

.body-seconde-table {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('fond-seconde-table.jpg') no-repeat center center fixed;
    background-size: cover;
}

.body-table-maxou {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('fond-table-maxou.jpg') no-repeat center center fixed;
    background-size: cover;
}

.body-brunch {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('fond-brunch.jpg') no-repeat center center fixed;
    background-size: cover;
}

.body-propos {
    background: #000 url('fond-a-propos.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

/* --- COMPOSANTS (GLASSMORPHISM SUR SECTIONS) --- */
.section-padding {
    /* Fond sombre transparent pour faire ressortir l'or */
    background: rgba(18, 18, 18, 0.4) !important; 
    
    /* Effet de flou accentué */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important; /* Obligatoire pour mobile */
    
    /* Bordure reflet pour l'aspect "verre" */
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 2px;
    
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin: 40px auto;
    padding: 60px 20px;
}
.container-small {
    max-width: 750px;
    margin: 0 auto;
}

.section-dediee {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    /* Verre sombre */
    background-color: rgba(253, 251, 248, 0.1); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

/* --- IMAGES MENUS --- */
.menu-graphiste-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 20px auto;
    width: 100%;
}

.menu-graphic-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- BOUTONS --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    min-width: 240px;
    background: rgba(18, 18, 18, 0.6); /* Fond sombre luxe semi-transparent */
    color: var(--color-accent) !important; /* Texte doré */
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.6); /* Bordure dorée fine */
    border-radius: 2px; /* Presque carré pour le côté statutaire */
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px; /* Espacement des lettres pour le luxe */
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Effet au survol : Remplissage doré et texte noir */
.cta-button:hover {
    background: var(--color-accent);
    color: #121212 !important;
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Style secondaire (ex: La Seconde Table dans le hero) */
.secondary-alt {
    background: transparent;
    border: 1px solid var(--color-accent);
}

/* --- RÉSERVATION --- */
.reservation-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 40px auto;
    width: 95%;
}

.main-form {
    flex: 1.5;
    /* Glassmorphism sur le formulaire */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* --- HARMONISATION DU RÉCAPITULATIF (STYLE INDEX LUXE) --- */
.summary-panel {
    flex: 1;
    position: sticky;
    top: 100px;
    /* Fond noir charbon identique aux cartes */
    background: rgba(18, 18, 18, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Bordure dorée fine et droite (radius 2px) */
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 2px !important;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.summary-panel h3 {
    text-align: center;
    color: var(--color-accent) !important;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* On remplace la bordure épaisse par une ligne fine dorée */
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item i {
    width: 35px;
    color: var(--color-accent) !important;
    font-size: 1.1rem;
}

/* Optionnel : Style pour les valeurs sélectionnées dans le récap */
.summary-item span {
    font-weight: 400;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.6rem !important; }
    .two-restaurants-choice { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        background-color: rgba(18, 18, 18, 0.95); 
    }

    .menu-toggle {
        display: block !important; /* Réactivation burger */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        border-bottom: 1px solid var(--color-accent);
    }

    .nav-links.active {
        display: flex !important;
    }

    .section-padding { padding: 40px 20px; }
}
/* --- OPTIMISATION GLASSMORPHISM MOBILE --- */
@media (max-width: 768px) {
    .navbar {
        /* On reste sombre et flou pour la cohérence luxe */
        background-color: rgba(18, 18, 18, 0.6) !important; 
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important; /* Indispensable sur mobile */
        border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    }

    .section-padding, .section-dediee {
        /* ON ENLÈVE LE BLANC (rgba 255) POUR DU SOMBRE (rgba 18) */
        background: rgba(18, 18, 18, 0.5) !important; 
        
        /* On augmente le flou car le rendu mobile est souvent moins précis */
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        
        /* Bordure dorée très fine pour le reflet */
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 2px !important;
    }

    .main-form, .summary-panel {
        /* Même logique ici : fond sombre translucide */
        background: rgba(18, 18, 18, 0.6) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }
    
    /* Correction pour que le texte reste bien lisible sur le flou mobile */
    .section-padding p, .description-gastronomie {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
}
/* Style du conteneur des réseaux sociaux */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* Style de l'icône Facebook */
.facebook-logo {
    font-size: 2.5rem; /* Augmente la taille (1rem = taille normale) */
    color: #D4AF37;    /* Garde ton doré élégant */
    transition: all 0.3s ease; /* Animation fluide pour le survol */
    cursor: pointer;
}

/* Effet au survol (montre que c'est cliquable) */
.social-links a:hover .facebook-logo, 
.social-links a:active .facebook-logo {
    color: #4267B2;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
/* Style de l'icône Instagram */
.instagram-logo {
    font-size: 2.5rem;
    color: #D4AF37;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 20px; /* Ajoute un espace entre Facebook et Instagram */
}

/* Effet au survol pour Instagram */
.social-links a:hover .instagram-logo, 
.social-links a:active .instagram-logo {
    color: #E1306C;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    background: #f2f2f2 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    border: none !important;
    text-decoration: line-through; /* Optionnel : barre le chiffre */
}
.menu-counter-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.3);
}
.counter-controls { display: flex; align-items: center; gap: 15px; }
.counter-btn {
    background: #D4AF37; color: #000; border: none; width: 30px; height: 30px; 
    border-radius: 50%; cursor: pointer; font-weight: bold; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.counter-btn:disabled { background: #555; cursor: not-allowed; }
.qty-display { color: #D4AF37; font-weight: bold; min-width: 20px; text-align: center; }
/* --- EFFETS DE CHOIX & CLIC --- */
/* --- CARTES DE CHOIX (STYLE INDEX LUXE) --- */
.grid-choices {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 30px 0;
    width: 100%;
}

.choice-card {
    padding: 30px 15px;
    /* Fond noir charbon semi-transparent comme l'index */
    background: rgba(18, 18, 18, 0.6) !important; 
    /* Bordure dorée fine et droite */
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 2px !important; 
    cursor: pointer;
    text-align: center;
    color: var(--color-accent) !important;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

/* Icônes dans les cartes */
.choice-card i {
    font-size: 1.8rem;
    color: var(--color-accent) !important;
    transition: transform 0.4s ease;
}

/* Effet au survol (L'effet "Index" : fond doré, texte noir) */
.choice-card:hover {
    background: var(--color-accent) !important;
    color: #121212 !important;
    border-color: var(--color-accent) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.choice-card:hover i {
    color: #121212 !important;
    transform: scale(1.1);
}

/* État sélectionné (quand on a cliqué) */
.choice-card.selected {
    background: var(--color-accent) !important;
    color: #121212 !important;
    border-color: var(--color-accent) !important;
    font-weight: bold;
}

.choice-card.selected i {
    color: #121212 !important;
}

/* Animation fluide lors du changement d'étape */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.step-container {
    animation: fadeInScale 0.4s ease-out;
}
/* --- AJOUTS POUR LES COMPTEURS ET EFFETS --- */

/* Animation des étapes */
.step-container {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Style des lignes de compteurs */
.menu-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style des boutons +/- */
.counter-btn {
    background: #D4AF37;
    color: #000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.counter-btn:active {
    transform: scale(0.85);
}

.counter-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.qty-display {
    color: #D4AF37;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Amélioration de la visibilité des erreurs 7+ */
#phone-alert-box {
    border: 2px solid #ff4d4d !important;
}
.about-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}
.about-row.reverse { flex-direction: row-reverse; }
.about-image { flex: 1; }
.about-text { flex: 1.2; }
.img-frame { 
    width: 100%; 
    border: 1px solid rgba(212, 175, 55, 0.4); 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .about-row, .about-row.reverse { flex-direction: column; }
}
.body-propos {
    background: #000 url('fond-a-propos.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}
/* --- STYLE CHECKBOX RGPD LUXE --- */
.rgpd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05); /* Fond subtil */
    border: 1px solid rgba(212, 175, 55, 0.3); /* Bordure fine dorée */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rgpd-checkbox:hover {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.1);
}

/* On cache la vraie checkbox moche */
.rgpd-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 24px;
    height: 24px;
    border: 2px solid #D4AF37;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
}

/* Le petit "V" quand c'est coché */
.rgpd-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c'; /* Code FontAwesome pour le check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #D4AF37;
    font-size: 14px;
}

/* Texte à côté */
.rgpd-checkbox label {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.5;
    cursor: pointer;
}

.rgpd-checkbox strong {
    color: #D4AF37;
}
/* Style pour les logos qui remplacent les emojis */
/* --- NOUVEAU : LOGOS DANS LES SECTIONS DE L'INDEX --- */
.logo-main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Espace avant le titre h3 */
    height: 80px; /* Zone fixe pour éviter que la page ne saute au chargement */
}

.logo-main-img {
    max-width: 150px; /* Largeur max sur PC */
    height: auto;
    max-height: 100%;
    object-fit: contain;
    /* Lueur dorée pour détacher le logo du fond noir */
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation au survol de la section parente */
.section-dediee:hover .logo-main-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

/* --- RESPONSIVE MOBILE POUR LES LOGOS --- */
@media (max-width: 768px) {
    .logo-main-container {
        height: 60px; /* Plus petit sur mobile */
        margin-bottom: 10px;
    }
    .logo-main-img {
        max-width: 100px; /* Logo réduit sur smartphone */
    }
}
