/* --- Reset de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Style global --- color: #ebd086; */
body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: black;
    font-size: 1rem;
}

/* --- HEADER (Logo à gauche, Menu à droite) --- */
header {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.page header {
    background: rgba(0, 0, 0);
}

.logo {
    font-weight: bold;
    background-image: url( 'img/t.svg' );
    background-size: 100%;
    width: 150px;
    height: 90px;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
/* --- MENU NAVIGATION (DESKTOP) --- */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1.2em;
    color: #CAAE5F;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

nav ul li a:hover {
    background: #CAAE5F;
    color: black;
}

/* --- MENU BURGER (MOBILE) --- */
.burger {
    position: absolute;
    right: 20px;
    top: 25px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.burger .bar {
    width: 30px;
    height: 4px;
    background-color: #CAAE5F;
    margin: 5px;
    transition: 0.3s;
}


/* --- CARROUSEL --- */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- FLÈCHES --- */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.5);
    color: black;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* --- Section main --- */
main {
    padding: 0 25px 0 20px;
}
.page main {
    padding: 100px 25px 0 20px;
}

.hero {
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 4px 6px 2px rgba(235, 208, 132, 0.902);
    margin-bottom: 10px;
}
.hero h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* --- Articles en colonne (mobile) --- */
.content article {
    background: #fff;
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 4px 6px 2px rgba(235, 208, 132, 0.902);
}
.content article.btn {
    background: #ebd086;
    box-shadow: 4px 6px 2px rgba(255, 255, 255, 0.902);
}
.content article.btn a {
    color: black;
    text-decoration: none;
}

.content article.btn:hover {
    background: white;
    box-shadow: 4px 6px 2px rgba(235, 208, 132, 0.902);
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #333;
    color: white;
    font-size: 0.8rem;
}

/* --- CONTACT --- */
/* --- Bouton Contact --- */
.btn-open-form {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

/* --- Overlay (Fond noirci) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* --- Conteneur du formulaire --- */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    position: relative;
    text-align: left;
    z-index: 100;
}
.form-container h2 {
    text-align: center;
    margin: 10px;
}

/* --- Bouton de fermeture --- */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* --- Champs du formulaire --- */
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- Bouton envoyer --- */
button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

button:hover {
    background: #218838;
}

/* --- Afficher l'overlay quand actif --- */
.overlay.show {
    visibility: visible;
    opacity: 1;
}



/* --- RESPONSIVE --- */

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 90px;
        right: 0px;
        background: rgba(0, 0, 0);
        flex-direction: column;
        gap: 30px;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        display: none; /* Caché par défaut */
    }

    nav ul.menu-open {
        display: flex; /* Affiché quand le menu est ouvert */
    }
}

/* Tablette (min-width: 768px) */
@media (min-width: 768px) {
    header {
        top: 20px;
    }
    .burger {
        display: none;
    }

    .logo {
        width: 170px;
        height: 100px;
    }

    nav ul {
        display: flex;
        justify-content: center;
        gap: 5px;
        top: 0; 
        flex-direction: row;
    }

    nav ul li a {
        background: rgba(0, 0, 0, 0.5);
    }

    main {
        max-width: 1200px;
        margin: 10px auto;
    }

    .page main {
        padding: 130px 25px 0 20px;
    }

    .content {
        display: flex;
        gap: 20px;
    }

    .content article {
        flex: 1;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    header {
        left: 40px;
        right: 40px;
    }

    .logo {
        width: 200px;
        height: 120px;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 1.5rem;
    }
    
    .page main {
        padding: 150px 25px 0 20px;
    }
}
