:root {
    --brun-fonce: #4a2c2a;
    --brun-moyen: #8d5524;
    --beige-clair: #f5f5dc;
    --texte-couleur: var(--beige-clair);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: var(--texte-couleur);
    scroll-behavior: smooth;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    /* opacity: 0.8; */
}

header {
    background-color: rgba(74, 44, 42, 0.8);
    color: var(--beige-clair);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.title {
    font-size: 2.5rem;
    margin: 0;
}

.nav-button {
    color: var(--beige-clair);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-button:hover {
    border-color: var(--beige-clair);
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--brun-fonce);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#about .signature {
    text-align: right;
    font-style: italic;
    margin-top: 1rem;
}

#about p {
    font-size: 1.5rem;
}

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

.carousel {
    display: flex;
    flex-direction: column;
}

.carousel-item {
    margin-bottom: 1rem;
    text-align: center;
    
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.carousel-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 44, 42, 0.7);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

#contact p {
    text-align: center;
    margin: 0.5rem 1rem;
    font-size: 1.5rem;
}

a {
    color: var(--texte-couleur);
    text-decoration: underline;
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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