/* Reset rapide */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #1a1a1a;
}


.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-image: url('../img/restau.jpg');
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    /* 👈 le cœur de l'effet parallax */
}


.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: none;

    /* 👈 ici le changement clé */
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px #000;
}

/* Bouton du hero */
.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: black;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #ffbd44;
    transform: scale(1.05);
}

/* Section "Qui sommes-nous ?" */
.about {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-text h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #ffbd44;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    max-width: 100%;
    border-radius: 10px;
    height: 300px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .about {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-img img {
        width: 90%;
        height: auto;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        background-image: url('../img/hero.jpg');
        background-attachment: scroll;
        background-position: center;
    }
}