* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
}

/* BODY = fond global + scroll vertical autorisé */
body {
    padding: 40px;  /* marge autour de la carte */
    
    /* le fond dégradé */
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 150, 0.65), transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(0, 160, 255, 0.60), transparent 60%),
        radial-gradient(circle at 50% 85%, rgba(120, 0, 255, 0.38), transparent 70%),
        linear-gradient(150deg, #0a021c 0%, #110637 40%, #051236 75%, #00162b 100%);
    background-blend-mode: screen;
    background-attachment: fixed;   /* 👈 le dégradé reste collé à la fenêtre */
    background-size: cover;         /* 👈 il couvre toute la zone visible */

    overflow-x: hidden;             /* pas de scroll horizontal */
    overflow-y: auto;               /* scroll vertical OUI */

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* La carte principale */
.parent {
    width: 100%;
    /* NE PAS remettre height: 100% */
    min-height: calc(100vh - 80px);  /* gros bloc qui peut dépasser si le contenu est long */

    padding: 3rem;
    border-radius: 26px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: min-content;
    gap: 1.5rem;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);

    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

    color: white;
}


/* TAG */
.tag {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.topbar-nav {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}

.topbar-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.topbar-cta {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg,#ff3cac,#784ba0,#2b86c5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.bouton button {
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;

    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    color: #fff;
    box-shadow: 0 0 22px rgba(255, 60, 172, 0.7);
    cursor: pointer;
}

/* Titre */
.title {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.title h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1.2rem 0;

    background: linear-gradient(
        90deg,
        #ff49c8 0%,
        #d14bff 25%,
        #7f68ff 55%,
        #3ea4ff 80%,
        #06e8ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

.title p {
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

/* Champs */
.champs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
    align-items: flex-end;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.champ label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

.champ input,
.champ select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.champ select option {
    background: #111528;
    color: #ffffff;
}

.champ input::placeholder {
    color: rgba(255,255,255,0.7);
}

.bouton {
    grid-column: 1 / -1;
    margin-top: 2.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bouton-ligne {
    display: flex;
    justify-content: flex-end;
}

.btn-reserver {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.98rem;
    white-space: nowrap;

    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    color: #ffffff;

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-reserver:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    opacity: 0.95;
}

.microcopy {
    grid-column: 1 / -1;
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.75;
}

.bouton button {
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;

    background: linear-gradient(90deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%);
    color: #ffffff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

h1, h2, h3, p {
    margin: 0;
}

.form-intro {
    grid-column: 1 / -1;
    max-width: 650px;
    margin: 2rem auto 0;
    text-align: center;
    opacity: 0.9;
}

.form-intro p {
    margin: 0;
    font-size: 0.95rem;
}

/* Réassurance */
.reassurance {
    grid-column: 1 / -1;
    margin-top: 2rem;

    display: flex;
    justify-content: center;
    gap: 1.5rem;

    padding: 0.9rem 1.6rem;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.re-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.re-icon {
    font-size: 1rem;
    opacity: 0.9;
}

.re-text {
    opacity: 0.9;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.08);
    padding: 2.2rem;
    border-radius: 24px;

    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);

    transform: translateY(-20px);
    opacity: 0;
    transition: 0.25s ease;
    position: relative;

    /* 👇 IMPORTANT POUR LE SCROLL */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
/* L’overlay peut aussi scroller si besoin */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    overflow-y: auto; /* 👈 permet de scroller si le contenu dépasse */
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    position: absolute;
    right: 1.4rem;
    top: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;

    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content {
    color: #fff;
    font-size: 1rem;
    line-height: 1.55;
}

.tarif-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarif-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Accordion */
.accordion {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.accordion-item {
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: "＋";
    font-size: 1.2rem;
    opacity: 0.8;
}

.accordion-item.active .accordion-header::after {
    content: "—";
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    color: rgba(255,255,255,0.85);
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    padding: 0.8rem 1.2rem 1rem;
}

/* ========================= */
/*         RESPONSIVE        */
/* ========================= */

/* Tablettes / écrans moyens : la page peut défiler, la carte n’est jamais coupée */
@media (max-width: 1200px) {
    body {
        padding: 24px;
        overflow-y: auto;
    }

    .parent {
        height: auto;
        padding: 2.2rem 2rem;
    }
}


/* Tablettes */
@media (max-width: 1024px) {

    body {
        padding: 24px;
        height: auto;
        overflow-y: auto;
    }

    .parent {
        height: auto;
        padding: 2.2rem 2rem;
        border-radius: 24px;
    }

    .title h1 {
        font-size: 3rem;
    }

    .title p {
        font-size: 1rem;
    }

    .champs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.5rem;
    }

    .bouton-ligne {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .reassurance {
        flex-wrap: wrap;
        row-gap: 0.7rem;
    }
}

/* Mobiles */
@media (max-width: 640px) {

    /* Le body peut scroller en mobile */
    body {
        padding: 12px;
        height: auto;
        overflow-y: auto;
    }

    /* Carte principale : une seule colonne, moins de padding */
    .parent {
        padding: 1.4rem 1.1rem 1.8rem;
        border-radius: 20px;
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
    }

    /* Bandeau du haut : tout passe en colonne */
    .tag {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        gap: 0.5rem;
    }

    .topbar-nav {
        margin: 0;
        gap: 0.75rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .topbar-cta {
        align-self: flex-end;
        padding: 0.45rem 1.1rem;
        font-size: 0.85rem;
    }

    /* Titre hero plus compact et aligné à gauche */
    .title {
        text-align: left;
        margin-top: 0.6rem;
    }

    .title h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .title p {
        font-size: 0.9rem;
    }

    /* Texte d’intro plus petit */
    .form-intro {
        margin-top: 1rem;
        text-align: left;
    }

    .form-intro p {
        font-size: 0.85rem;
    }

    /* Champs : une seule colonne */
    .champs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.2rem;
    }

    .champ label {
        font-size: 0.8rem;
    }

    .champ input,
    .champ select {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    /* Bouton réservation full-width et centré */
    .bouton-ligne {
        justify-content: center;
        margin-top: 0.4rem;
    }

    .btn-reserver {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
    }

    /* Micro-phrase sous les champs */
    .microcopy {
        text-align: left;
        font-size: 0.75rem;
        margin-top: 0.6rem;
    }

    /* Bandeau de réassurance en colonne */
    .reassurance {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 14px;
        padding: 0.7rem 0.9rem;
        gap: 0.35rem;
        font-size: 0.82rem;
        margin-top: 1.2rem;
    }

    /* MODAL en mobile : collée en haut, avec marge et scroll possible */
    .modal-overlay {
        align-items: flex-start;
        justify-content: center;
        padding-top: 1.2rem;
    }

    .modal {
        margin: 0 0.75rem 1.2rem;
        max-width: none;
        max-height: calc(100vh - 2.4rem);
        padding: 1.6rem 1.3rem;
        border-radius: 18px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Petit menu utilisateur (ouvert quand connecté) */
.user-menu {
    position: absolute;
    top: 70px;          /* tu peux ajuster */
    right: 40px;        /* tu peux ajuster */
    z-index: 10000;

    min-width: 190px;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;

    background: rgba(10, 10, 20, 0.92);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 14px 35px rgba(0,0,0,0.6);
    backdrop-filter: blur(18px);

    display: none;
}

.user-menu.open {
    display: block;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.user-menu-item:hover {
    color: #ffffff;
}
.user-menu-item + .user-menu-item {
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Petit style visuel quand le bouton est en mode "connecté" */
.topbar-connected {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255,255,255,0.3);
    cursor: pointer;
}

.galerie-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 0.75rem;
    margin-top: 1.2rem;
    align-items: center;
}

.galerie-filters input,
.galerie-filters select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(5,5,15,0.85);
    color: #fff;
    font-size: 0.9rem;
}

.galerie-filters input::placeholder {
    color: rgba(255,255,255,0.55);
}

.galerie-price-wrap {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Grille d’articles */
.galerie-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.galerie-card {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), rgba(5,5,15,0.95));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

.galerie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.galerie-card h3 {
    font-size: 0.98rem;
    margin: 0;
}

.galerie-card-price {
    font-weight: 600;
    font-size: 0.95rem;
}

.galerie-card-meta {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    opacity: 0.8;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .galerie-filters {
        grid-template-columns: 1fr;
    }

    .galerie-price-wrap {
        justify-content: flex-start;
    }
}


/* Variante de modal large, pour la galerie / recherche */
.modal.modal-wide {
    max-width: 1000px;
    width: min(1000px, 100vw - 32px);
    max-height: calc(100vh - 40px);
}

.modal.modal-fullscreen {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

