/* ---------------- ROOT VARIABLES ---------------- */
:root {
    --accent: #cfffdd;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --shadow-soft: rgba(0, 0, 0, 0.1);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease;
}

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

body {
    max-width: 100vw;
    overflow-x: hidden;
    cursor: none; /* cache le curseur natif */

    font-family: "Lora", serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

/* ---------------- HEADER ---------------- */
header {
    background: url("main.jpeg") center/cover no-repeat;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

@media (max-width: 680px) {
    header {
        height: 80vh;
    }
}

@keyframes sweep {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* darkening overlay */
    z-index: 0;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.15) 48%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 52%,
        rgba(255, 255, 255, 0) 55%
    );
    background-size: 200% 100%;
    animation: sweep 4s ease-in-out 3;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-animation: sweep 4s ease-in-out forwards;
}

header .content {
    z-index: 3; /* au-dessus du ::before */
    position: relative;
    padding: 0 5vw;
    max-width: 800px;
    animation: fadeInUp 0.8s ease forwards 0.15s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-family: "Cormorant Infant", serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(207, 255, 221, 0.3);
}

header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.btn {
    background-color: var(--accent);
    color: #000;
    padding: 16px 32px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* ---------------- DETAILS ---------------- */
section {
    padding: 80px 8vw;
    width: 100%;
}

#details {
    padding-top: 50px;
    background-color: #e9e9e9;
}

#caracteristics {
    max-width: 400px;
    margin: 30px auto;
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

#map {
    height: 400px;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------------- EQUIPEMENTS ---------------- */
#equipements {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
}

#equipements h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.equip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equip-item:hover {
    transform: translateY(-5px);
}

.equip-item img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 14px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

.equip-item p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: center;
    max-width: 100px;
}

@media (max-width: 480px) {
    #equipements {
        padding-bottom: 0px;
    }
    .equip-item {
        max-width: 40vw;
    }

    .equip-item p {
        font-size: 1rem;
    }
    .equip-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
        padding: 0px;
    }
    .equip-item img {
        width: 140px;
        height: 100px;
    }
}

/* ---------------- GALERIE ---------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px var(--shadow-soft);
}

@media (max-width: 480px) {
    .gallery {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-left: 10px;
    }

    .gallery img {
        flex: 0 0 auto;
        width: 250px;
    }
}

#region {
    background-color: #e9e9e9;
}

.region-gallery > img {
    font-weight: 400;
    padding: 30px;
}

/* ---------------- RESERVATION ---------------- */
.accent-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    text-align: center;
    padding: 60px 5vw;
}

.accent-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

form {
    display: grid;
    gap: 5px;
    max-width: 800px;
    width: 100%;
    margin-top: 40px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: block;
}

form input,
form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

form input[type="date"] {
    border: 2px solid #a7a7a7;
    padding: 10px 20px;
    border-radius: 10px;
}

#dateInputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#dateInputs > i {
    font-size: 1.5rem;
}

.dateInput {
    width: 40%;
}

form input:focus {
    border-color: #4f46e5;
    outline: none;
}

form div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
}

@media (max-width: 500px) {
    form div {
        grid-template-columns: 1fr;
    }
}

button[type="submit"] {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: var(--accent);
}

/* ---------------- FOOTER ---------------- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    background-color: var(--bg-light);
}

/* ---------------- UTILITIES ---------------- */
.text-block {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

section h2,
section h3 {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 30px;
    font-weight: 500;
}

p {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

@media (max-width: 640px) {
    .custom-cursor {
        visibility: hidden;
    }
    body {
        cursor: auto;
    }
}
.reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem; /* réduit légèrement l’espacement */
    align-items: start;
}

.reservation-form .form-group {
    display: flex;
    flex-direction: column; /* label au-dessus de l’input */
}

.reservation-form .form-group.wide {
    grid-column: span 2;
}


    .btn-reserve {
        grid-column: span 2 ;
    }

/* --- MOBILE FRIENDLY --- */
@media (max-width: 640px) {
    .reservation-form {
        grid-template-columns: 1fr; /* une seule colonne */
        gap: 1rem; /* espacement un peu plus serré */
    }

    .reservation-form label {
        margin-bottom: 0.35rem; /* réduit l’espace sous le label */
        font-size: 0.95rem;
    }

    .reservation-form input {
        padding: 0.65rem 0.9rem; /* champs un peu plus compacts */
        font-size: 0.95rem;
    }

    .btn-reserve {
        width: 100%;
        grid-column: 0 2 ;
        margin-top: 0.6rem; /* réduit la marge avant le bouton */
        padding: 0.75rem; /* bouton plus compact */
        font-size: 1rem;
    }
}

.reservation-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.reservation-form input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.reservation-form input:focus {
    border-color: #0077ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.2);
}