@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --bgVar: #F2F2F2;
    --greenColor: #e63946;       /* couleur principale → rouge */
    --secondTxtColor:#f1c0c0;    /* texte secondaire clair rougeâtre */
    --blackColor:#0F120F;
    --greenBG: #8B0000;          /* fond sections → rouge foncé */
}

::selection{
    background-color:#f28b82;
}

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Montserrat';
}

body{
    background-color: var(--bgVar);
    overflow-x: hidden;
}

nav{
    display: flex;
    background-color: var(--blackColor);
    align-items: center;
    justify-content: space-between;
    padding: 15px 5vw;
}

.scroll{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999999;
    background-color:#0f120f89;
    backdrop-filter: blur(15px);
}

nav a{
    color: var(--greenColor);
    font-size: 0.875em;
}

.logo{
    width: 200px;
}

header{
    background-image: url(./src/img/header.jpg);
    background-size: cover;
    background-position: center;
    padding: 0 6vw;
    height: 720px;
}

.o,.o2{ overflow: hidden; }

h1{
   color: var(--bgVar);
   font-size: 9.375em; 
   font-family: 'Anton';
   line-height: 140px;
   padding-top: 80px;
   animation-name: apa;
   animation-duration: 1s;
}

@keyframes apa { 0%{transform: translateY(100%);} 100%{transform: translateY(0%);} }
h2{
    line-height: 64px;
    color: var(--greenColor);
    font-size: 4em;
    font-family: 'Anton';
    letter-spacing: 4px;
    animation: none;
}


.slogan{
    color: var(--secondTxtColor);
    font-size: 1.5em;
    font-weight:400;
    margin-top: 20px;
}

.button{
    font-style: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

#Primary{
    background-color: var(--greenColor);
    color: var(--bgVar);
    margin-right: 5px;
}

#Primary:hover{ opacity: 0.9; }

#Secondary{
    border: var(--greenColor) solid 1px;
    margin-left: 5px;
}

#Secondary a{ text-align: center; color: var(--greenColor); padding: 13px; width: 130px; }

#Primary a{ text-align: center; color: var(--bgVar); padding: 13px 0; width: 130px; }

header .flex{
    display: flex;
    align-items: center;
    margin-top: 40px;
    flex-wrap:wrap;
}

.AproposSection{
    background: var(--greenBG);
    position: relative;
    padding-bottom: 70px;
    transform: translateY(-2px);
}

.AproposTxt{
    color: var(--bgVar);
    width: 50%;
    line-height: 160%;
    margin-top: 80px;
    font-weight:400;
    font-family: 'Montserrat';
}

h3{
    color: var(--greenColor);
    font-family: 'Anton';
    font-size: 3.25em;
    padding: 0 6vw;
}

.flex img{
    width: 60%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    -drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.AproposSection .flex{ position: relative; padding: 0px 7vw; }

.AproposSection object{ position: absolute; bottom: 0; left: 0; right: 0; transform-origin: center; transform: translate(0%,95%); width: 100%; }

.logoCircle{ position: absolute; bottom: 0; transform: translate(50%,100%); border-radius: 50%; width: 200px; right: 50%; }

.MenuSection{ margin-top: 250px; }

.cardKab{
    height: 25vw;
    background-color: #e63946;
    background-size: cover;
    aspect-ratio: 1.59/1;
    margin: 15px 0;
    border-radius: 0 25px 0 25px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.cardBowl{
    height: 25vw;
    background-size: cover;
    aspect-ratio: 0.81/1;
    margin: 15px 0;
    border-radius: 0 25px 0 25px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.gridee{ position: relative; margin: 65px 18vw; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }

.LinkSection{ background-image: url(./src/img/linksBG.png); background-size: cover; background-position: bottom; padding: 90px 0; border-radius: 48% 49% 25% 25% / 8% 9% 0% 0%; margin-top: 150px; }

.centerElm{ margin: 40px 0; display: flex; justify-content: center; align-items: center; flex-direction: column; }

#transparentButton{ margin: 0 20px; background: none; border: none; cursor: pointer; }

.centerElm > p{ margin: 20px 0; color: var(--bgVar); }

.linkBox{ margin-top: 30px; display: flex; align-items: center; background-color: var(--bgVar); border-radius: 0 25px 0 25px; font-weight:700; color: var(--greenBG); padding: 10px 30px; }

.linkBox p, .linkBox a{ display: none; }
.linkBox .show{ display: block; }
.linkBox a{ color: var(--greenBG); }
.linkBox object{ width: 30px; margin-right: 6px; }

/* Formulaire */
.ContentForm{ display: flex; margin: 90px 7vw; position: relative; justify-content: space-between; align-items: center; }
.align{ display: flex; flex-direction: column; justify-content: space-between; width: 49%; }
.l{ display: flex; width: 100%; justify-content: space-between; }
form{ position: relative; width: 49%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.align input, .full input, .full textarea{ background-color: #fbeaea; border:#e639468a 1px solid; border-radius: 5px; padding: 10px; }
small{ font-weight: 500; color: var(--greenBG); margin-bottom: 4px; }
.full{ margin-top: 10px; display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
form button{ margin-top: 25px; background-color: var(--greenColor); color: var(--bgVar); border: none; border-radius: 5px; padding: 10px 40px; }

.ContactSection{ margin: 120px 0; }
footer{ margin-top: 300px; position: relative; background-color: var(--blackColor); display: flex; align-items: start; justify-content: space-between; padding: 50px 0; }

.buttonNav *{ margin: 0 20px; font-weight: 600; position: relative; z-index: 4; }
.buttonNav a:hover{ color: var(--bgVar); transition: all 0.5s; z-index: 99; }
.buttonNav a::before{ content: ''; position: absolute; bottom: -5px; height: 2px; width: 0%; background-color: var(--greenColor); transition: all 0.5s; z-index: 3; }
.buttonNav a:hover::before{ width: 100%; }

.gridee *:hover{ transform: translateY(-10px); box-shadow: rgba(230, 57, 70, 0.39) 0px 5px 15px; }
.gridee *{ transition: all 0.5s; }

.deg{ position: absolute; top: 0; transform: translateY(-98%); width: 100%; }
footer .logo{ margin: 50px 0 0 6vw; }
footer a{ color: var(--bgVar); font-weight: 300; }
footer ul{ color: var(--bgVar); font-weight: 600; }
footer div{ display: flex; justify-content: space-between; padding: 40px 7vw; }
footer li{ margin-left: 30px; }
.linksFoot{ margin-top: 20px; display: flex; margin-right: 7vw; }
.linksFoot *{ margin: 0 5px; }
.first{ margin-top: 20px; }
.mobNav{ display: none; }
#OCIcone{ display: none; z-index: 99999; }
section{ padding-top: 80px; }

/* Responsive */
@media only screen and (max-width: 920px){
    .buttonNav{ display: none; }
    #OCIcone{ display: block; background-color: transparent; border: none; position: fixed; right: 6vw; }
    .mobNav.active{ display: flex; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: #0d0f0e9b; z-index: 9999; backdrop-filter: blur(30px); flex-direction: column; align-items: center; justify-content: space-evenly; color: var(--greenColor);}
    .mobNav.active a { color: var(--greenColor); font-weight: 600; font-size: 1.2em; }
    h1{ font-size: 6em; }
    h2{ font-size: 3em; }
    footer{ flex-direction: column; align-items: center; justify-content: space-evenly; }
    footer ul{ margin: 40px; }
    footer .logo{ margin-bottom: 40px; }
    .linksFoot{ flex-direction: column; }
    .ContentForm{ flex-direction: column; margin: 90px 6vw; }
    iframe{ width: 100%; }
    form{ width: 100%; }
    .AproposSection .flex img{ position: relative; transform: none; width: 100%; margin-top: 40px; z-index: 999; }
    .AproposSection .flex{ display: flex; flex-direction: column; align-items: center; }
    .AproposTxt{ width: 100%; }
    .cardBowl, .cardKab{ width: 100%; height:auto; }
}

@media only screen and (max-width: 400px){
    h1{ font-size: 5em; line-height: 80px; }
    .linkBox{ width: 100%; box-sizing: border-box; padding: 10px 5vw; border-radius: 0; display: flex; justify-content: center; }
    .linkBox * { font-size: 11px; }
    header .flex{ align-items: start; flex-direction: column; }
    header .flex *{ margin: 10px 0; width: 100%; }
}
/* =========================================
   STYLE DU MENU DYNAMIQUE (A RAJOUTER A LA FIN)
   ========================================= */

#menu {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 0 5vw;
    font-family: 'Montserrat', sans-serif;
    min-height: 600px; /* Evite que le footer remonte trop si la section est vide */
}

#menu h1 {
    font-size: 3em; 
    color: var(--blackColor);
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Anton';
}

#menu .horaires {
    text-align: center;
    color: var(--greenColor);
    margin-bottom: 40px;
}

/* --- NAVIGATION DES ONGLETS (TABS) --- */
.tab-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
}

.tab-button {
    background-color: transparent;
    border: 2px solid var(--greenColor);
    color: var(--greenColor);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 30px; /* Boutons arrondis */
    font-family: 'Montserrat';
}

.tab-button:hover {
    background-color: #ffe6e6;
}

/* Bouton actif (celui sélectionné) */
.tab-button.active {
    background-color: var(--greenColor);
    color: var(--bgVar); /* Texte blanc/clair sur fond rouge */
}

/* --- CONTENU DES ONGLETS --- */
.tab-content {
    display: none; /* Caché par défaut, géré par JS */
    animation: fadeEffect 0.5s; /* Petit effet d'apparition */
}

/* Animation d'apparition */
@keyframes fadeEffect {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.tab-content h2 {
    color: var(--greenBG);
    font-family: 'Anton';
    font-size: 2.5em;
    border-left: 5px solid var(--greenColor);
    padding-left: 15px;
    margin-bottom: 30px;
    animation: none; /* On désactive l'animation globale h2 du site pour celle-ci */
}

/* --- DESIGN DES PLATS (LISTE) --- */
.plat-item {
    display: flex;
    align-items: center;
    background-color: white;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Ombre légère */
    border-left: 5px solid transparent;
    transition: 0.3s;
}

.plat-item:hover {
    border-left: 5px solid var(--greenColor);
    transform: translateX(5px);
}

.plat-image-placeholder {
    width: 150px;
    height: 120px;
    background-color: #eee;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid var(--secondTxtColor);
}

.plat-info {
    flex-grow: 1;
}

.plat-info h3 {
    font-size: 1.3em;
    color: var(--blackColor);
    font-family: 'Anton';
    margin-bottom: 5px;
    padding: 0; /* Reset du h3 global */
}

.plat-info .composition {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.plat-info .prix, .plat-info .prix-formule {
    font-weight: 800;
    color: var(--greenColor);
    font-size: 1.2em;
    text-align: right;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    /* Menu onglets défilable horizontalement sur mobile */
    .tab-container {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        flex-wrap: nowrap; /* Empêche le retour à la ligne */
        -webkit-overflow-scrolling: touch; /* Scroll fluide sur iOS */
    }
    
    .tab-button {
        flex: 0 0 auto; /* Ne pas écraser les boutons */
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .plat-item {
        flex-direction: column; /* Image au dessus du texte */
        align-items: flex-start;
    }

    .plat-image-placeholder {
        margin-bottom: 10px;
        width: 100%; /* Image prend toute la largeur sur mobile */
        height: 120px;
    }

    .plat-info .prix {
        text-align: left;
        margin-top: 5px;
    }
}