html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Navigation fixe */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #663200;
    z-index: 1000;
}

.fixed-nav ul {
    list-style: none;
    padding: 1rem 0;
    text-align: center;
    margin: 0;
}

.fixed-nav ul li {
    display: inline-block;
    position: relative;
}

.fixed-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0 10px;
}

.fixed-nav ul li a:hover {
    color: #C79848;
}

header {
    padding-top: 60px;
    text-align: center;
    background: #C7994A;
}

header .logo {
    padding: 1rem 0;
}

/* Grille de photos */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.grid-item {
    position: relative;
    width: calc(25% - 10px); /* 4 photos par ligne */
    padding-top: 25%;
    overflow: hidden;
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Vidéos */
.video-carousel {
    max-width: 560px;
    margin: 0 auto;
}

.video-item {
    text-align: center;
}

iframe {
    border: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Boutons */
button {
    font-size: 16px;
    background-color: #663200;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 10px;
}

#load-more {
    margin: 20px 0;
}    

#load-more:hover {
    background-color: #C79949;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 3px 0 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Sections */
section {
    padding: 3rem 0.5rem 1rem; /* Reduce padding for smaller screens */
    text-align: center;
    max-width: 60%;
    margin: auto;
}

section h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

#a-propos .highlight {
    color: #fff;
    background-color: #663200;
}

#a-propos p {
    padding: 10px; /* Reduce padding for smaller screens */
    text-align: justify;
}

/* Footer */
footer {
    background: #663200;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer .social-media a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

footer .social-media a:hover {
    color: #C79848;
}

footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Formulaire */
form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

form label {
    display: block;
    margin: 1rem 0 0.5rem;
}

form input, form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: #663200;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background: #C79949;
}

textarea {
    min-height: 150px;
}


/* Styles Responsive */
@media (max-width: 1024px) {
    .grid-item {
        width: calc(25% - 10px); /* 4 photos par ligne pour les tablettes */
        padding-top: 25%;
    }

    section {
        max-width: 90%; /* Increase max-width for tablets */
    }
}

@media (max-width: 768px) {
    .grid-item {
        width: calc(50% - 10px);
        padding-top: 50%;
    }

    section {
        max-width: 90%; /* Increase max-width for tablets */
    }
}

@media (max-width: 480px) {
    .grid-item {
        width: calc(50% - 10px);
        padding-top: 50%;
    }

    header .logo {
        padding: 0.5rem 0;
    }

    .fixed-nav ul {
        padding: 0.5rem 0;
    }

    section {
        max-width: 100%; /* Increase max-width for mobile screens */
    }

    section h1 {
        font-size: 1.5rem;
    }

    #a-propos p {
        padding: 10px; /* Further reduce padding for mobile screens */
    }
}


