/* PAGE D'ACCUEIL DE BASE*/

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Playfair Display', serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 0;
    z-index: 10;
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    height: 50px;
}

.burger {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: block;
}

.nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    position: absolute;
    top: 70px;
    right: 20px;
    border-radius: 10px;
    z-index: 20;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-links a:hover {
    transform: scale(1.1);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: black;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out;
    opacity: 1;
    z-index: 1;
    background-color: black;
}

.hero-image.hidden {
    opacity: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-logo {
    width: 250px;
    margin-bottom: 20px;
}

.btn-menu {
    background-color: #7b0000;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.btn-menu:hover {
    background-color: #520000;
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    text-align: center;
}

.red {
    background-color: #7b0000;
    color: white;
}

.dark {
    background-color: #222;
    color: white;
}

.black {
    background-color: black;
    color: white;
}

/* MENU */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.menu-grid .carte-plat {
    width: 100%; 
}


.menu-item {
    text-align: center;
    
}

.menu-item a{
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.menu-item a:hover{
transform: scale(1.1);
    cursor: pointer;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.menu-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
}

.menu-grid h4 {
    margin-top: 20px;
}

.btn-voir-tout-menu {
    background-color: #393838;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 40px;
    transition: background-color 0.3s;
}

.btn-voir-tout-menu:hover {
    background-color: #292828;
}

/* AVIS */
.avis {
    background: white;
    color: black;
    padding: 30px;
    border-radius: 16px;
    max-width: 90%;
    margin: 30px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#avis-contenu {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.etoiles i {
    color: gold;
    font-size: 24px;
    margin: 0 2px;
}

/* À PROPOS */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.about-grid div {
    max-width: 100%;
}

/* MAP */
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* FOOTER */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: black;
}

.footer-contact,
.footer-newsletter {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
}

.footer-contact {
    background: white;
    color: black;
}

.footer-newsletter {
    background: black;
    color: white;
}

.footer-contact-content,
.footer-newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-contact-content h3,
.footer-newsletter-content h3 {
    margin-bottom: 20px;
}

.footer-newsletter form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.footer-newsletter form button {
    padding: 10px 30px;
    background: white;
    color: black;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-newsletter form button:hover{
    background-color: rgb(174, 174, 174);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* PAGE D'ACCUEIL DESKTOP */

@media (min-width: 768px) {
    .burger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        background: transparent;
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .hero {
        height: 100vh;
    }

    .hero-logo {
        width: 400px;
    }

    
    .menu-grid {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    .menu-grid .menu-item {
        width: 1fr;
    }

    .menu-image {
        width: 200px;
        height: 200px;
    }

    .avis {
        max-width: 600px;
    }

    .about-grid {
        flex-direction: row;
        justify-content: center;
    }

    .about-grid div {
        max-width: 400px;
    }

    .map-container iframe {
        height: 400px;
        max-width: 600px;
    }

    .footer {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
        height: 400px;
    }

    .footer-contact,
    .footer-newsletter {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-contact-content,
    .footer-newsletter-content {
        max-width: 400px;
        text-align: left;
    }

    .footer-newsletter form {
        margin-top: 10px;
    }

    .social-icons {
        text-align: left;
    }
}

/* PAGE MENU */

.page-menu {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #7b0000;
    color: white;
    font-family: 'Georgia', serif;
}

.menu-header {
    background-color: #333;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.btn-retour {
    background-color: #7b0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-retour:hover {
    background-color: #520000;
}

.logo-menu {
    width: 150px;
    margin: 0 auto 10px;
    display: block;
}

.titre-principal {
    font-size: 3.5rem;
    color: white;
    margin: 10px 0 0;
}

.menu-complet {
    flex: 1;
    margin-top: 100px;
    padding-bottom: 200px;
}

.section-categorie {
    padding: 50px 5%;
    text-align: center;
    position: relative;
}

.section-categorie h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-categorie h3 {
    font-style: italic;
    font-size: 2rem;
    margin-bottom: 30px;
}

.carrousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.carrousel-ligne {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    max-width: 1040px;
    margin: 0 auto;
    -ms-overflow-style: none;      
    scrollbar-width: none;         
    text-align: center;
}

.carrousel-ligne::-webkit-scrollbar {
    display: none;
}

.carte-plat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 300px;
    max-width: 300px;
    width: 300px;
    background-color: white;
    color: black;
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 500px;
}

.carte-plat strong {
    margin-top: auto;
    font-size: 1.1rem;
    color: #000000;
}

.carte-plat:hover {
    transform: scale(1.03);
}

.carte-plat img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.carrousel-btn {
    background-color: #333;
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.carrousel-btn:hover{
    background-color: #292929;
}

.carrousel-btn img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: filter 0.3s;
}

.carrousel-btn.gauche img {
    transform: translateX(-2px);
}
.carrousel-btn.droite img {
    transform: translateX(2px);
}

.carrousel-btn.gauche {
    left: 0;
}

.carrousel-btn.droite {
    right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    padding: 0 20px;
}