@font-face {
    font-family: 'Agrandir Grand Medium';
    src: url('fonts/AgrandirGrandMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Louize Regular';
    src: url('fonts/LouizeRegular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Chaumont Script';
    src: url('fonts/ChaumontScript.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: 'Louize Regular', serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    background-color: #EC660D;
    color: white;
    padding: 0 20px;
    font-family: 'Agrandir Grand Medium', sans-serif;
    z-index: 2;
    position: relative;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    height: 100%;
    width: 100%;
    background-image: url('img/image_hero.jpg');
    filter: brightness(0.9);
    background-size: cover;
    background-position: center;
    position: absolute;
    z-index: 0;
}

.hero-section {
    height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Chaumont Script';
    font-size: 11vw;
    color: white;
    text-align: center;
    z-index: 2;
}

/* Introduction Section */
.intro {
    background-color: #F2EAE2;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.intro h1 {
    font-family: 'Chaumont Script', cursive;
    color: #EC660D;
    font-size: 6vw;
    line-height: 0.9;
    margin-bottom: 30px;
    margin-top: 30px;
    text-shadow: 0 0 1px transparent;
}

.intro p {
    font-family: 'Agrandir Grand Medium', sans-serif;
    color: #EC660D;
    font-size: 2.2vw;
    max-width: 800px;
    letter-spacing: 2%;
    padding: 40px;
    text-transform: uppercase;
    margin: 0 auto;
    line-height: 1.4;
}

.mosaic {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 80px;
}

.mosaic.left {
    left: 0;
}

.mosaic.right {
    right: 0;
}

.mosaic-tile {
    flex: 1;
}

.mosaic-tile:nth-child(odd) {
    background-color: #8BD1E9;
}

.mosaic-tile:nth-child(even) {
    background-color: #F2EAE2;
}

/* Ingredients Section */
.ingredients {
    background-color: #EC660D;
    color: #F2EAE2;
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.ingredients ul {
    list-style: none;
    font-size: 3.5vw;
    line-height: 1.2;
    font-family: 'Louize Regular', serif;
}

.time-left, .permit-right {
    position: absolute;
    font-family: 'Chaumont Script', cursive;
    font-size: 4vw;
    line-height: 0.9;
    color: #F2EAE2;
}

.time-left {
    left: 40px;
    top: 50%;
    transform: translateY(-40%) rotate(-45deg);
}

.permit-right {
    right: 40px;
    top: 50%;
    transform: translateY(-40%) rotate(30deg);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 150px;
    text-align: center;
    position: relative;
    background-color: #F2EAE2;
    overflow: hidden;
}

.gallery-title {
    font-family: 'Chaumont Script', cursive;
    color: #EC660D;
    font-size: 3.5vw;
    margin-bottom: 40px;
    margin-top: 30px;
    transform: rotate(-5deg);
    display: inline-block;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-grid {
    display: flex;
    gap: 40px;
    width: max-content;
    padding: 20px 10%;
    transition: transform 0.5s ease;
    touch-action: pan-x; /* Meilleur comportement tactile */
}

.gallery-item {
    flex: 0 0 460px;
    height: auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #EC660D;
}

/* Logo Section */
.logo-section {
    background-color: #F2EAE2;
    padding: 40px 40px 120px 40px;
    text-align: center;
}

.logo-section svg {
    width: 40vw;
    height: auto;
    fill: #EC660D;
}

/* Full Width Image */
.image-full-end {
    width: 100%;
    height: 100vh;
    background-image: url('img/chamboule-ext.jpg');
    background-size: cover;
    background-position: center;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    background-color: #EC660D;
    color: #F2EAE2;
    padding: 0 20px;
    font-family: 'Agrandir Grand Medium', sans-serif;
    text-transform: uppercase;
}

.footer a {
    color: #F2EAE2;
    text-decoration: none;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar {
        font-size: 12px;
        padding: 0 10px;
    }

    /* Hero Section */
    .logo {
        font-size: 15vw; /* Larger font size on mobile */
    }
    .hero-section {
        height: 100vh;
    }

    /* Introduction Section */
    .intro {
        padding: 40px 10px;
    }

    .intro h1 {
        font-size: 12vw;
        margin-bottom: 20px;
    }

    .intro p {
        font-size: 4.5vw;
        padding: 20px 10px;
        width: 80%;
    }

    .mosaic {
        width: 30px; /* Smaller mosaic on mobile */
    }

    /* Ingredients Section */
    .ingredients {
        padding: 80px 10px;
    }

    .ingredients ul {
        font-size: 5vw;
    }

    .time-left, .permit-right {
        font-size: 5vw;
    }

    .time-left {
        left: 10px;
    }

    .permit-right {
        right: 10px;
    }

    /* Gallery Section */
    .gallery-title {
        font-size: 8vw;
        margin-bottom: 20px;
    }

    .gallery-item {
        flex: 0 0 300px; /* Smaller gallery items on mobile */
    }

    .gallery-section {
        padding: 30px 30px;
    }

    /* Logo Section */
    .logo-section {
        padding: 50px 20px;
    }

    .logo-section svg {
        width: 80vw; /* Larger logo on mobile */
    }

    /* Image */
    .image-full-end {
        height: 50vh; /* Shorter image on mobile */
    }

    /* Footer */
    .footer {
        font-size: 10px;
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 5px;
    }
}