:root {
  --primary-color: #8b0000;
  --secondary-color: #d4af37;
  --bg-color: #fdfbf7;
  --text-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--secondary-color);
  
  /* --- AJOUTS POUR LE GARDER VISIBLE --- */
  position: sticky; /* Transforme le header en élément collant */
  top: 0; /* Le colle tout en haut de la page (à 0 pixel du bord) */
  z-index: 1000; /* S'assure qu'il passe au-dessus de tout le reste du contenu */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  letter-spacing: 1px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}
nav a:hover,
nav a.active {
  color: var(--secondary-color);
}

main {
  flex: 1;
  padding: 2rem 5%;
}
.page-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.hero {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 2px solid var(--secondary-color);
}
.hero h1 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.infos {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.info-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
  border-top: 4px solid var(--primary-color);
}
.info-box h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.info-box ul {
  list-style-position: inside;
}

.gallery-grid { 
    display: grid; 
    /* Crée des colonnes qui font au minimum 300px, et s'adaptent à l'écran */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    max-width: 1200px; /* Empêche la galerie de s'étirer à l'infini sur les très grands écrans */
    margin: 0 auto; /* Centre la galerie sur la page */
}

.gallery-item { 
    background: #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 250px; 
    border: 2px solid var(--secondary-color); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ajoute une petite ombre élégante */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

.form-section {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--primary-color);
}
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input, 
.form-group select { /* <-- Ajoutez cette ligne */
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 1rem;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
  font-weight: bold;
}
.btn-submit:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
  border-top: 3px solid var(--secondary-color);
}

/* --- Menu à Emporter --- */
.commande-section {
  max-width: 800px;
}
.menu-category {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  margin: 30px 0 15px 0;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}
.menu-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--secondary-color);
}
.menu-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-info label {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.menu-info .price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
}
.menu-item input.qty {
  width: 60px;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}
.client-details-box {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 3px solid var(--primary-color);
}

/* --- AMÉLIORATIONS PAGE D'ACCUEIL --- */

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    font-size: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* Section Tarifs Buffet */
.tarifs-section {
    text-align: center;
    margin-bottom: 40px;
}

.tarifs-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tarif-card {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.tarif-card.soir {
    border: 3px solid var(--primary-color);
    transform: scale(1.05); /* Met un peu plus en valeur le tarif du soir */
}

.tarif-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tarif-card .jours {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px; /* Aligne les prix même si le texte diffère */
}

.tarif-card .prix {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.tarif-card .note {
    font-size: 0.9rem;
    color: #888;
}

/* Mini Galerie Accueil */
.home-gallery-section {
    text-align: center;
    margin-bottom: 50px;
}

.home-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.home-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s;
}

.home-img:hover {
    transform: scale(1.05);
}

.btn-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Section Contact et Maps */
.contact-section {
    text-align: center;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 20px;
    text-align: left;
}

.contact-infos {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden; /* Empêche la carte de déborder des coins arrondis */
}

.map-container iframe {
    width: 100%; /* Rend la carte responsive (s'adapte aux petits écrans) */
    height: 100%;
    min-height: 300px;
    display: block; /* Supprime un petit espace blanc sous l'iframe */
}

/* --- Liens du Footer --- */
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.footer-links .separator {
    color: #888;
    margin: 0 10px;
}

/* --- EFFET DE DÉFILEMENT FLUIDE --- */
html {
    scroll-behavior: smooth;
}

/* --- BOUTONS D'ANCRAGE (Raccourcis) --- */
.anchor-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-anchor {
    padding: 10px 20px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 25px; /* Bords arrondis pour un style "bouton d'action" */
    font-weight: bold;
    transition: all 0.3s;
}

.btn-anchor:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- AVIS GOOGLE --- */
.avis-section {
    text-align: center;
    margin-bottom: 50px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-text .note-globale {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.badge-text .nb-avis {
    font-size: 0.8rem;
    color: #777;
}

.avis-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avis-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 320px;
    text-align: left;
    border-top: 4px solid #4285F4; /* Bleu Google */
}

.avis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.avis-auteur {
    display: flex;
    flex-direction: column;
}

.avis-auteur .date {
    font-size: 0.8rem;
    color: #777;
}

.avis-card .stars {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.avis-texte {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    font-style: italic;
}


/* --- EFFET LIGHTBOX (Galerie) --- */

/* Curseur sur les images pour montrer qu'on peut cliquer */
.galerie-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.galerie-img:hover {
    transform: scale(1.03); /* Petit effet de zoom au survol */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Le fond noir de la modale en plein écran */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Par-dessus tout le site */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Noir transparent */
}

/* L'image agrandie au centre */
.lightbox-content {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh; /* S'adapte à la hauteur de l'écran */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* La croix pour fermer */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.lightbox-close:hover {
    color: #ffc107; /* Couleur dorée au survol */
}

/* Animation d'apparition */
@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}





/* --- NOTIFICATION DE SUCCÈS --- */
.message-succes {
    background-color: #fff8e1; /* Fond jaune/or très clair */
    color: #8a0303; /* Texte rouge foncé (couleur du restaurant) */
    border: 2px solid #ffc107; /* Bordure dorée */
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Petite animation d'apparition en douceur */
    animation: apparaitre 0.4s ease-out;
}

@keyframes apparaitre {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Style du menu des onglets */
.menu-tabs {
    display: flex;
    overflow-x: auto; /* Permet de scroller horizontalement sur mobile */
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background-color: #f4f4f4;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    transition: 0.3s;
}

.tab-btn:hover {
    background-color: #ddd;
}

/* Style de l'onglet actif */
.tab-btn.active {
    background-color: #8a0303; /* Le rouge du Grand Aigle */
    color: white;
}

/* Gestion de l'affichage des contenus */
.menu-category-content {
    display: none; /* On cache tout par défaut */
}

.menu-category-content.active {
    display: block; /* On affiche uniquement la catégorie active */
}




/* =========================================
   📱 RESPONSIVE DESIGN (Mobiles & Tablettes)
   ========================================= */

@media screen and (max-width: 768px) {
    /* 1. Le Menu (Header) */
    header {
        flex-direction: column; /* Place le logo au-dessus du menu */
        gap: 15px;
        padding: 1rem 0; /* Réduit un peu les marges */
    }

    nav ul {
        flex-wrap: wrap; /* Permet aux liens du menu de passer à la ligne */
        justify-content: center;
        gap: 15px;
    }

    /* 2. Les Boutons d'ancrage (Accueil) */
    .anchor-buttons {
        flex-direction: column; /* Empile les boutons les uns sur les autres */
        padding: 0 20px;
    }

    .btn-anchor {
        width: 100%; /* Les boutons prennent toute la largeur du téléphone */
        text-align: center;
    }

    /* 3. Textes et marges */
    .hero {
        padding: 2rem 1rem; /* Réduit l'espace bleu du haut */
    }

    .hero h1 {
        font-size: 1.8rem; /* Réduit un peu le titre pour qu'il tienne bien */
    }

    .section-title {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem 5%; /* Réduit les marges sur les côtés */
    }

    /* 4. Les Tarifs */
    .tarif-card {
        width: 100%; /* Les cartes de tarifs prennent toute la largeur */
    }

    .tarif-card.soir {
        transform: scale(1); /* Annule le zoom du menu soir sur mobile pour éviter les bugs d'affichage */
        border-width: 2px;
    }
}

