﻿/* ========================================================================== */
/*  0 — RESET & TYPOGRAPHIE                                                    */
/* ========================================================================== */

body, h1, h2, h3, p, ul { margin: 0; padding: 0; }

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}



/* ========================================================================== */
/*  1 — HEADER & NAVIGATION                                                    */
/* ========================================================================== */

header {
    background: #333;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header h1 { font-size: 1.5rem; }


/* Encadrement proposé */
.boxed-text {
    border: 2px solid #333;
    padding: 15px;
    border-radius: 10px;
    background-color: whitesmoke;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
}



/* ========================================================================== */
/*  2 — HERO                                                                   */
/* ========================================================================== */

.hero {
    position: relative;      /* déjà présent, indispensable */
    background: url("Photos/Accueil/Ext.jpg") center/cover no-repeat;
    height: 70vh;
    display: block;          /* plus besoin de flex si texte superposé */
    transition: background-image 1s ease-in-out;
}

.hero-caption {
    position: absolute;
    top: 20px;            /* placé au bas de l'image */
    left: 78%;               /* centré horizontalement */
    transform: translateX(-50%) translateY(20px);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 80%;
    opacity: 0;
    transition: all 0.8s ease;
}

.hero-caption.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



/* ========================================================================== */
/*  CTA – Bouton réservation accueil                                          */
/* ========================================================================== */

.cta-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
}

.cta-btn {
    min-width: 220px;
    font-size: 1.1rem;
    padding: 14px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Effet élégant au survol */
.cta-btn:hover {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
    .cta-btn {
        width: 80%;
        font-size: 1rem;
    }
}




/* ========================================================================== */
/*  3 — GALERIE                                                                */
/* ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}



/* ========================================================================== */
/*  4 — CAROUSEL                                                               */
/* ========================================================================== */

.carousel {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slides {
    height: 500px;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
	pointer-events: none;
}

.slides img.active {
    opacity: 1;
    pointer-events: auto;	
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }



/* ========================================================================== */
/*  5 — LIGHTBOX                                                               */
/* ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
}

.lightbox.show { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}



/* ========================================================================== */
/*  6 — DESTINATIONS                                                           */
/* ========================================================================== */

/* Grille par défaut : 1 carte par ligne sur petit écran */
.destinations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Tablette : 2 cartes par ligne si l’espace le permet */
@media (min-width: 768px) {
    .destinations {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grand écran : 3 cartes par ligne maximum, s’agrandissent avec l’espace */
@media (min-width: 1200px) {
    .destinations {
        grid-template-columns: repeat(3, 1fr);
    }
}


.destination-card {
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.destination-card h3 { margin: 10px 0 5px; }
.destination-card p { padding: 0 10px 15px; color: #555; }


.loisir-title {
    font-size: 2rem;
    color: #333;
    margin: 30px 0 10px;
    text-align: center;
    font-family: Georgia, serif;
}

.section-separator {
    border: none;
    height: 2px;
    background-color: #333;
	width: 95%;          /* prend 100% du conteneur parent */
    max-width: 1000px; /* largeur maximale */
    margin: 20px auto;
}





/* ========================================================================== */
/*  6.5 FAQ                                               */
/* ========================================================================== */



/* STYLE ACCORDÉON – se fond dans ton design existant */

.faq-container {
    max-width: 1000px; /* largeur maximale */
    margin: 0 auto;   /* centre le bloc horizontalement */
    padding: 0 15px;  /* espace sur les petits écrans */
}

.accordion-item {
    border: 2px solid #333;
    border-radius: 10px;
    background: #f8f8f8;
    max-width: 1000px;
    margin: 20px auto; /* centré horizontalement avec un peu d’espace vertical */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-question {
    padding: 15px;
    background: #333;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-question:hover {
    background: #555;
}

.accordion-answer {
    display: none;
    padding: 15px;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    background: #f8f8f8;
}

/* petite animation discrète */
.accordion-answer.open {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.arrow {
    font-size: 1.3rem;
    transition: 0.3s;
}

.arrow.rotate {
    transform: rotate(90deg);
}



/* ========================================================================== */
/*  7 — CONTACT & FORMULAIRES                                                  */
/* ========================================================================== */

.contact-form,
.contact-section form#reservationForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
    border: 2px solid #333;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* Centrer uniquement le titre "Informations" et le texte en dessous */
.contact-section h2,
.contact-section p {
    text-align: center;
}


.form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    width: 100%;
}

.form-status.success {
    color: green;
    font-weight: bold;
}

.form-status.fail {
    color: red;
    font-weight: bold;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 5px;
    display: none; /* caché par défaut */
}


.contact-section input,
.contact-section textarea,
.contact-form input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-section button {
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.contact-section button:hover { background: #555; }

.logo-contact {
    display: block;
    margin: 40px auto;
    width: 40%;
    max-width: 300px;
}


/* ========================================================================== */
/*  8 — RÉSERVATION (Box + Calendrier + Légende)                               */
/* ========================================================================== */

/* Structure */
.reservation-container {
    text-align: center;
    margin: 40px 0;
}

.reservation-box {
    border: 2px solid #333;
    background: #f8f8f8;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reservation-box h2, 
.reservation-box h3 { margin-bottom: 20px; text-align: center; }

/* ----- Formulaire réservation : uniformisation des champs ----- */
.reservation-box input,
.reservation-box select {
    display: block;           /* chaque élément sur une ligne */
    width: 500px;               /* même largeur pour tous */
    max-width: 550px;         /* limite sur grand écran */
    margin: 10px auto;        /* centrer horizontalement avec un peu d'espacement vertical */
    padding: 10px;            /* padding interne */
    border-radius: 5px;       /* arrondir les coins */
    border: 1px solid #ccc;   /* bordure grise */
    box-sizing: border-box;   /* inclut padding + bordure dans la largeur */
    font-size: 1rem;          /* taille du texte */
}

/* ----- Bouton confirmation ----- */


/* PAGE CONFIRMATION */

.reservation-btn {
    display: inline-block;
    flex: 1;
    text-align: center;
    background: #333;
    color: white;
    padding: 12px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.reservation-btn:hover {
    background: #555;
}


/*================*/
/*  PAGE RESERVER */
/*================*/


.info-grid p {
    display: flex;
    gap: 10px;
    margin: 6px 0;
}

.info-grid strong {
    width: 170px; /* ajuste pour alignement parfait */
    font-weight: 600;
    display: inline-block;
}

.info-grid span {
    flex: 1;
}


.reservation-box button {
    display: block;
    width: 50%;
    max-width: 250px;
    margin: 20px auto 0;
    padding: 12px 0;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.reservation-box button:hover {
    background: #555;
}

/* Résumé */
#reservation-summary { display: none; }
#total-overall, #montant-a-payer {
    margin-top: 10px;
    font-weight: bold;
}

/* Légende */
/* Conteneur légende : centré horizontalement */
.legende-saisons {
    display: flex;           /* active le flex */
	flex-wrap: wrap;         /* permet le retour à la ligne */
	justify-content: center; /* centre tous les blocs */
	gap: 10px 20px;          /* espace entre les blocs horizontalement et verticalement */
    margin: 20px auto 30px;
}

/* Chaque bloc carré + texte */
.legende-saisons div {
    display: flex;       /* carré + texte sur la même ligne */
    align-items: center; /* alignement vertical */
    gap: 5px;            /* espace entre carré et texte */
}


.legende-saisons .coul {
    margin-right: 5px;          /* espace entre carré et texte */
}


.coul {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
}

.coul.basse   { background: #28a745; } /* vert */
.coul.moyenne { background: #ffc107; } /* jaune */
.coul.haute   { background: #fd7e14; } /* orange */
.coul.reserve { background: red; }     /* rouge */


/* Couleurs des saisons */
.flatpickr-day.saison-basse:not(.selected):not(.flatpickr-disabled)   { background: #28a745 !important; } /* vert */
.flatpickr-day.saison-moyenne:not(.selected):not(.flatpickr-disabled) { background: #ffc107 !important; } /* jaune */
.flatpickr-day.saison-haute:not(.selected):not(.flatpickr-disabled)   { background: #fd7e14 !important; } /* orange */

/* Dates réservées */
.flatpickr-day.saison-reserve:not(.selected) { background: red !important; color: white !important; }

/* Section paiement sécurisé */
.secure-payment {
    text-align: center;
    margin-top: 0px;
    padding: 20px 10px;
/*   border-top: 1px solid #ddd; */
}

.secure-text {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

.payment-logos img {
    width: 180px;
    margin: 10px 15px;
    opacity: 0.9;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.payment-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}





/* ========================================================================== */
/*  9 — MEDIA QUERIES                                                          */
/* ========================================================================== */

/* ---- Desktop Large ---- */
@media (min-width: 769px) {

    #datepicker {
        width: 90%;
        max-width: 550px;
        font-size: 1.1rem;
        padding: 10px;
        height: 35px;
        margin: 0 auto; /*centre l'input */
        display: block;
    }

    .flatpickr-calendar {
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 10px;
    }

    .flatpickr-day {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}


/* ---- Mobile ---- */
@media (max-width: 768px) {

    nav {
        position: absolute;
        right: 0;
        top: 60px;
    }

    .hamburger { display: flex; }

    nav ul {
        display: none;
        flex-direction: column;
        background: #444;
        width: 200px;
        padding: 15px;
        border-radius: 0 0 5px 5px;
    }

    nav ul.show { display: flex; }


    .legende-saisons div {
        gap: 8px;
        font-size: 0.9rem;
    }
    .coul {
        width: 18px;
        height: 18px;
    }

	
    #datepicker {
        width: 80%;
        max-width: 300px;
    }
}

/* ================================================ */
/*  INTL-TEL-INPUT — Harmonisation avec les champs  */
/* ================================================ */


.iti {
    width: 100%;               /* même largeur pour tous */
}

.iti input[type="tel"] {
    width: 100%;
    padding-left: 50px; /* espace pour le drapeau */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Conteneur drapeau / indicatif */
.iti__flag-container {
    height: auto !important;     /* remettre la hauteur dynamique */
    position: absolute !important;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}


/*=============================================================*/
/* Alignement ITI dans le formulaire de réservation            */
/*=============================================================*/


/* ----- Conteneur ITI (le div généré par la librairie) ----- */
.reservation-box .iti {
    position: relative;      /* nécessaire pour le drapeau */
    width: 500px;              /* même largeur que les autres inputs */
    max-width: 550px;
    margin: 0px auto;       /* centrer horizontalement */
    box-sizing: border-box;
}

/* ----- Input téléphone réel ----- */
.reservation-box .iti input[type="tel"] {
    width: 100%;
    padding-left: 50px;      /* espace pour le drapeau */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1rem;
}

/* ----- Drapeau / indicatif ----- */
.reservation-box .iti__flag-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 50px;              /* largeur du drapeau */
    height: 100% !important;  /* même hauteur que l'input */
    display: flex;
    align-items: center;
}

/* ----- Responsive mobile ----- */
@media (max-width: 600px) {
    .reservation-box input,
    .reservation-box select,
    .reservation-box .iti {
        width: 300px;
        max-width: 300px;
    }

    .reservation-box .iti input[type="tel"] {
        padding-left: 45px;  /* ajuster si nécessaire sur mobile */
    }

    .reservation-box .iti__flag-container {
        width: 45px;
    }
}






/* ========================= */
/* MODAL CONFIRMATION        */
/* ========================= */
#confirmation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

#confirmation-modal .modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
}


#confirmation-modal h3 {
    text-align: center;
    margin-bottom: 15px;
}

#confirmation-modal p {
    margin-bottom: 0px;
    line-height: 1.25;
}

#confirmation-modal a {
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

#confirmation-modal a:first-of-type {
    margin-top: 16px;
}

#confirmation-modal a:hover {
    text-decoration: underline;
}

#confirmation-modal .modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

#confirmation-modal button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modal-confirm-btn {
    background: #333;
    color: white;
    cursor: pointer;       /* Curseur normal quand activé */
    opacity: 1;            /* Pleine opacité quand activé */
    transition: opacity 0.3s;
}

#modal-confirm-btn:disabled {
    cursor: not-allowed;       /* Curseur normal ou custom si tu veux */
    opacity: 0.6;          /* Grisé quand désactivé */
    background: #aaa;
}


#modal-confirm-btn:hover:not(:disabled) {
    background: #555;
}

#modal-cancel-btn {
    background: #333;
    color: white;
}

#modal-cancel-btn:hover {
    background: #555;
}

/* Responsive mobile */
@media (max-width: 600px) {
    #confirmation-modal .modal-content {
        padding: 20px;
    }

    #confirmation-modal button {
        width: 100%;
    }
}


/* ===== LOISIRS - TITRES ET SÉPARATEURS RESPONSIVE ===== */
@media (max-width: 768px) {
    .loisir-title {
        font-size: 1.5rem;   /* taille plus adaptée aux mobiles */
        margin: 20px 0 8px;
    }

    .section-separator {
        height: 1.5px;       /* ligne un peu plus fine */
        width: 90%;          /* occupe plus de largeur sur mobile */
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .loisir-title {
        font-size: 1.3rem;   /* encore plus petit pour très petit écran */
        margin: 15px 0 6px;
    }

    .section-separator {
        height: 1px;
        width: 95%;
        margin-bottom: 12px;
    }
}

/* Logo Facebook */
.facebook-logo {
    display: flex;
    justify-content: flex-end; /* pour que le logo soit à droite */	
    align-items: center;
    margin-left: 10px; /* petit espace */
}

.facebook-logo img {
    width: 60px;
    margin: 10px 15px;
    opacity: 0.9;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.facebook-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}
