/*** Ballimore Font ***/
@font-face {
    font-family: 'Ballimore';
    src : url(fonts/Ballimore.woff) format('woff'),
        url('fonts/Ballimore.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Nunito';
    src : url('fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/*** General ***/
body, h1, h2, h3, h4, h4, h5, h6, p, img, div, a, span, ul, li, ol, figure, .figcaption {
    margin: 0;
}
p {
    font-size: 1.1em;
    color: #2a2a2a;
    margin-bottom: 1em;
}
/*** Entry ***/
/* Overlay */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#spirale-container {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Animation de la spirale */
@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    90% {
        transform: rotate(720deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotate(720deg) scale(5);
        opacity: 0;
    }
}
#spirale {
    width: 100%;
    height: auto;
    animation: spin 2s ease-in-out forwards;
}
/*** /Entry ***/

/* Styles de base */
body {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    background-color: #fff9f4;
}
/* header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Place uniquement le menu à droite */
    align-items: center;
    padding: 1em 0 1em 0;
    background-color: transparent;
    z-index: 10;
}
#logo {
    display: none;
}
/* ===== Menu Hamburger ===== */
#menu-toggle {    
    position: relative;
    right: 2.5em;
    top: 0.5em;
    width: 1.5em;
    height: 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 998;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 100%;
    height: 0.2em;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Effet X sur le bouton */
#menu-toggle.active .bar:nth-child(1) {
    transform: translateY(0.5em) rotate(45deg);
    background-color: #312d6a;
}
#menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-0.5em) rotate(-45deg);
    background-color: #312d6a;
}

/* Menu Latéral */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -60vw; /* <-- Animation déplace par la droite */
    width: 60vw;
    height: 100vh;
    background-color: #f8f4f0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 997;
}

#mobile-menu ul {
    list-style: none;
    padding: 5em 2em 0 2em;
}

#mobile-menu ul li {
    margin: 2em 0;
}

#mobile-menu ul li a {
    text-decoration: none;
    color: #312d6a;
    font-size: 1.1em;
}

/* Affichage du menu */
#mobile-menu.open {
    right: 0; /* <-- Animation pour apparaître depuis la droite */
}

/* Content */
main {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#histoire h2, #menus h2, #formules h2, #cuisine h2, #services h2, #contact h2, #traiteur-noel h2 {
    font-family: 'Ballimore', sans-serif;
    font-weight: normal;
    font-size: 6em;
    color: #312d6a;
    text-align: center;
    white-space: nowrap;
}
h3 {
    color: #312d6a;
}
h4 {
    color: #803b4b;
}

/* Bloc image sous le header */
#levertige {
    position: relative;
    height: 100vh;
    background: url("../images/levertigedessens-intro.jpg") no-repeat center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Texte blanc pour contraste */
    padding: 1em;
    box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.4), inset 0 -8px 12px rgba(0, 0, 0, 0.3); /* Ombres en haut et en bas */
}

/* Assombrir l'image légèrement pour que le texte ressorte */
#levertige::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Filtre sombre */
    z-index: 1;
}

/* Texte au-dessus de l'image */
#levertige h1 {
    position: relative;
    z-index: 2;
    font-family: 'Ballimore', sans-serif;
    font-size: 9em;
    font-weight: normal;
}

/* Bloc histoire du restaurant */
#histoire {
    padding: 2em;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.3), 
            0 -4px 6px rgba(0, 0, 0, 0.2);
    margin-top: -2em; /* Fait chevaucher l'image pour l'effet de profondeur */
    text-align: center;
}
#histoire p {
    font-size: 1.2em;
}

/*** Nos Menus ***/

/* Indicateur de swipe sur mobile/tablette - uniquement quand scroll nécessaire */
.scroll-indicator {
    display: none; /* Caché par défaut */
    text-align: center;
    font-size: 0.85em;
    color: #803b4b;
    font-weight: 400;
    margin: 0 0 1em 0;
    width: 100%;
    opacity: 0.5;
}

/* Affiche l'indicateur seulement sur petits écrans où le scroll est nécessaire */
@media (max-width: 1024px) {
    .scroll-indicator {
        display: block;
    }
}

/* Conteneur principal qui scroll */
#menus-contenair {
    display: flex;
    flex-wrap: nowrap;
    gap: 2em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100vw;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Améliore le scroll sur iOS */
    position: relative;
    /* Ombres pour indiquer le défilement */
    background: 
        linear-gradient(90deg, #fff9f4 0%, transparent 5%),
        linear-gradient(90deg, transparent 95%, #fff9f4 100%),
        linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 3%),
        linear-gradient(270deg, rgba(0,0,0,0.1) 0%, transparent 3%);
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 15px 100%, 15px 100%;
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
}

/* Chaque menu est une "page" du scroll */
.menu-wrapper {
    flex: 0 0 70vw; /* Chaque menu prend toute la largeur de l'écran */
    max-width: 100vw;
    height: fit-content;
    text-align: center;
    scroll-snap-align: center;
    padding: 2em;
    margin: 0 2em 2em 2em;
    background: #F1E3D3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Titre du menu */
.menu-wrapper h3 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

.menu-wrapper h3 span {
    display: block;
    font-size: 0.5em;
}
.menu-card h4 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}
#menus-contenair > div:nth-child(2) > div:nth-child(3) > p > strong {
    display: block;
}

/* Barre de défilement */
#menus-contenair::-webkit-scrollbar {
    height: 5px;
}
#menus-contenair::-webkit-scrollbar-thumb {
    background: rgba(128, 59, 75, 0.3);
    border-radius: 10px;
}
#menus-contenair::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 59, 75, 0.5);
}
#menus-contenair::-webkit-scrollbar-track {
    background: rgba(241, 227, 211, 0.3);
    border-radius: 10px;
}

/*** Traiteur de Noël ***/
#traiteur-noel {
    padding: 2em 0;
}

#traiteur-contenair {
    display: flex;
    flex-wrap: nowrap;
    gap: 2em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100vw;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* Ombres pour indiquer le défilement */
    background: 
        linear-gradient(90deg, #fff9f4 0%, transparent 5%),
        linear-gradient(90deg, transparent 95%, #fff9f4 100%),
        linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 3%),
        linear-gradient(270deg, rgba(0,0,0,0.1) 0%, transparent 3%);
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 15px 100%, 15px 100%;
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
}

/* Masquer la scrollbar mais garder la fonctionnalité */
#traiteur-contenair::-webkit-scrollbar {
    height: 5px;
}
#traiteur-contenair::-webkit-scrollbar-thumb {
    background: rgba(128, 59, 75, 0.3);
    border-radius: 10px;
}
#traiteur-contenair::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 59, 75, 0.5);
}
#traiteur-contenair::-webkit-scrollbar-track {
    background: rgba(241, 227, 211, 0.3);
    border-radius: 10px;
}

#traiteur-contenair .menu-wrapper {
    flex: 0 0 70vw;
    max-width: 100vw;
    height: fit-content;
    text-align: center;
    scroll-snap-align: center;
    padding: 2em;
    margin: 0 2em 2em 2em;
    background: #F1E3D3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#traiteur-contenair .menu-card h4 {
    font-size: 1.1em;
}

#traiteur-contenair .menu-card .price {
    color: #803b4b;
    font-weight: bold;
    float: right;
    font-size: 0.7em;
}

#traiteur-contenair .menu-card p {
    font-size: 1em;
    line-height: 1.5;
    clear: both;
}

#traiteur-contenair .menu-card p em {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

#traiteur-contenair .menu-card p strong {
    color: #312d6a;
}

/*** Nos Formules ***/
#formules-contenair {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    padding: 2em;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#formules-contenair div h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}
#formules-contenair div h3 span {
    float: inline-end;
    font-size: 0.7em;
}

/*** Notre cuisine ***/
.photo-cuisine {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
    margin: auto;
    padding: 0 2em;
}

.photo-cuisine img {
    width: calc(45%);
    max-width: 280px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #F1E3D3;
}

.photo-cuisine img:hover {
    transform: scale(1.02);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

/*** Services ***/
#services {
    margin-bottom: 2em;
}
.service-container {
    display: flex;
    flex-direction: column;
    padding: 0 2em;
    gap: 2em;
}
.service-wrapper {
    padding: 1em;
    text-align: center;
    background: #F1E3D3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.service-wrapper h3 {
    font-size: 1.4em;
    color: #803b4b;
    margin-bottom: 0.5em;
}
.service-wrapper p {
    margin: 0;
}
/* Desktop : alignement horizontal */
@media (min-width: 768px) {
    .service-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .service-wrapper {
        flex: 1;
    }
}

/*** Contact  ***/
#contact {
    display: flex;
    flex-direction: column;
    gap: 2em;
    background-color: #F1E3D3;
}
#contact-container {
    display: flex;
    flex-direction: column;
    padding: 0 2em;
}
#contact-container h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}
#contact-container p {
    margin-bottom: 0.5em;
}
#contact-adresse span {
    display: block;
}
#contact-horaire {
    display: flex;
    flex-direction: column;
    margin-top: 2em;
}
#contact-horaire p {
    display: flex;
    justify-content: space-between;
}
.fermeture-exceptionnelle {
    margin-top: 1.5em;
    padding: 1em;
    background-color: #803b4b;
    color: #fff9f4;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.1em;
}
#map-container {
    padding: 0 2em 2em 2em;
}

#map {
    width: 100%;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#controls {
    margin: 10px 0;
}

/*** Bannière de consentement ***/
#consent-banner {
    display: none; /* contrôlé via [aria-hidden] */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(49, 45, 106);
    color: #fff;
    padding: 1em;
    /* Au-dessus des widgets/iframes */
    z-index: 10000;
    transform: translateZ(0);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
#consent-banner[aria-hidden="true"] { display: none; }
#consent-banner[aria-hidden="false"] { display: block; }

#consent-banner .consent-content {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1em;
}

#consent-banner p {
    color: #fff;
    margin: 0;
}

#consent-banner .consent-buttons {
    display: flex;
    gap: 1em;
    justify-content: flex-start;
}

#consent-banner button {
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.3s ease;
}

#accept-consent {
    background-color: #803b4b;
    color: white;
}

#accept-consent:hover {
    background-color: #6a3240;
}

#reject-consent {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

#reject-consent:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    #consent-banner .consent-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    #consent-banner p {
        flex: 1;
    }
    
    #consent-banner .consent-buttons {
        flex: 0 0 auto;
    }
}

/* footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em;
    background-color: #803b4b;
}
footer p {
    font-size: 0.9em;
    margin: 0;
    color: #fff9f4;
    text-align: center;
}
footer .privacy-link {
    color: #fff9f4;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    padding: 0;
}
footer .privacy-link:hover {
    opacity: 0.8;
}
footer a img {
    display: block;
}

/* Version tablette */
@media (min-width: 600px) {
    #levertige h1 {
        font-size: 8em;
    }
    .menu-wrapper {
        flex:0 0 50vw;
    }
    #traiteur-contenair .menu-wrapper {
        flex:0 0 50vw;
    }
    #map {
        aspect-ratio: 2/1;
    }
}

/* Version laptop */
@media screen and (min-width: 768px) {
    nav ul {
        flex-direction: row;
        justify-content: space-around;
    }

    #levertige h1 {
        font-size: 10em;
    }

    #histoire h2, #menus h2, #formules h2, #cuisine h2, #services h2, #contact h2, #traiteur-noel h2 {
        font-size: 8em;
    }

    /* Menus  */
    #menus-container {
        justify-content: center;
    }
    .menu-wrapper {
        flex: 0 0 50%; /* Affiche 2 menus côte à côte */
        max-width: 50%;
    }

    #traiteur-contenair .menu-wrapper {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #formules-contenair > div {
        width: 600px;
    }
    #contact {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    #contact h2 {
        width: 100%;
    }
    #contact-container, #map-container {
        width: 40%;
    }
    #map-container {
        padding: 0 2em 2em 0;
    }
    #map {
        aspect-ratio: 1/1;
    }
}

/* Version desktop */
@media (min-width: 1024px) {
    header {
        display: unset;
        padding: 0;
        background-color: unset;
    }
    #menu-toggle {
        display: none;
    }

    #levertige h1 {
        font-size: 13em;
    }
    #mobile-menu {
        background-color: unset;
        position: unset;
        width: unset;
        height: unset;
        box-shadow: unset;
        transition: unset;
    }
    #mobile-menu ul {
        display: flex;
        padding: 0;
    }
    #mobile-menu ul li a {
        color: white;
    }

    #menus-contenair {
        gap: 1em;
        justify-content: space-around;
        overflow-x: unset;
        scroll-snap-type: unset;
        scroll-behavior: unset;
    }
    .menu-wrapper {
        flex: unset;
        width: 40%;
    }

    #traiteur-contenair {
        gap: 1em;
        justify-content: space-around;
        overflow-x: unset;
        scroll-snap-type: unset;
        scroll-behavior: unset;
    }
    #traiteur-contenair .menu-wrapper {
        flex: unset;
        width: 45%;
        margin: 0 1em 2em 1em;
    }
}

/* Version écran large */
@media (min-width: 1280px) {
    #levertige h1 {
        font-size: 18em;
    }
    .menu-wrapper {
        flex: unset;
        width: 30%;
    }
    #traiteur-contenair .menu-wrapper {
        flex: unset;
        width: 30%;
        margin: 0 1em 2em 1em;
    }
}

/* Version écran Xlarge */
@media (min-width: 1440px) {
    #mobile-menu ul {
        max-width: 1350px;
        margin-inline: auto;
    }
    #histoire p {
        max-width: 1350px;
        margin-inline: auto;
    }
    .menu-wrapper {
        flex: unset;
    }
    #menus-contenair {
        width: 1350px;
        margin: auto;
    }
    
    #traiteur-contenair {
        width: 1350px;
        margin: auto;
    }
}
