/* ===== PALETTE SPA LUXE ===== */
:root {
    --creme: #f8f5ef;
    --creme-profond: #f1ece4;
    --vert-sauge: #9db8a0;
    --vert-profond: #6f8f75;
    --bois-noble: #bfa58a;
    --texte: #2e3b32;
}

body {
    margin:0;
    /*font-family: "Aptos Display", "Segoe UI", sans-serif;*/
    font-family: 'Georgia', serif;
    background: linear-gradient(180deg, var(--creme), var(--creme-profond));
    color: var(--texte);
    text-align:center;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER ===== */
.header-top {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    height: 210px;
    display: block;
    position: absolute;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);
}

header {
    padding: 100px 20px 40px;
}

h1 {
    font-size: 52px;
    color: var(--vert-profond);
    font-weight:500;
    margin: 0;
}

nav {
    margin-top:30px;
}

nav a {
    margin: 0 18px;
    text-decoration:none;
    color: var(--vert-profond);
    font-size:15px;
    letter-spacing:1px;
    cursor:pointer;
    position:relative;
}

nav a::after {
    content:"";
    position:absolute;
    width:0;
    height:2px;
    bottom:-6px;
    left:0;
    background: var(--bois-noble);
    transition:0.4s;
}

nav a:hover::after {
    width:100%;
}

/* ===== PAGES INTERNES ===== */
.page {
    display:none;
    padding:80px 20px;
    max-width:900px;
    margin:auto;
    animation: fadeIn 0.8s ease;
}

.page.active {
    display:block;
}

@keyframes fadeIn {
    from {opacity:0; transform:translateY(20px);}
    to {opacity:1; transform:translateY(0);}
}

/* ===== BOUTON ===== */
button {
    margin-top:40px;
    width:250px; height:80px; 
    background:var(--vert-profond); 
    color:white; 
    font-size: 16px;
    padding: 14px 35px;
    border: none;
    border-radius: 40px;
    cursor:pointer;
}

button:hover {
    background: var(--vert-sauge);
    color:#2e3b32;
}

/* ===== POPUPS GÉNÉRAL ===== */

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45); 
    backdrop-filter: blur(8px);
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    pointer-events: none; 
}

.popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all; 
}

.close {
    position:absolute;
    top:20px;
    right:25px;
    font-size:40px;
    cursor:pointer;
}

/* ===== POPUP RDV SPA PREMIUM ===== */
.popup-content-rdv {
    background: white;
    padding: 50px;
    width: 420px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    transform: scale(0.9);
    transition: transform 0.5s ease;
    position:relative;
}

.popup.active .popup-content-rdv {
    transform: scale(1);
}

.popup-content-rdv input,
.popup-content-rdv select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 15px;
    border: 1px solid #eee;
    font-family: inherit;
}

/* ===== POPUP SERVICES STYLE IDENTIQUE TARIFS ===== */
#popupServices .popup-content-apropos {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    perspective: 1000px;
    position: relative;
    padding: 40px 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    width: 90%;
    max-width: 900px;
}

#popupServices .popup-content-apropos::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

#popupServices h2 {
    font-size: 36px;
    color: rgb(59, 98, 204);
    margin-bottom: 40px;
}
#popupServices h3 {
    color: var(--vert-profond);
    margin-bottom: 25px;
    border-bottom: 1px solid #d4cfc7;
    padding-bottom: 10px;
}

#popupServices .popup-content-apropos h3 {
    border: none;                    
    background: var(--vert-sauge);    
    color: white;                     
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 500;
    font-size: 1.2em;
    margin-bottom: 25px;
    width: stretch;
    opacity: 0.7;
}

/* ===== POPUP TARFIS ===== */
#popupTarifs .popup-content-apropos {
    max-height: 90vh;       /* limite la hauteur à 90% de l'écran */
    overflow-y: scroll;     /* scroll vertical activé */
    scrollbar-width: none;  /* pour Firefox */
    -ms-overflow-style: none; /* pour IE et Edge */
    -webkit-overflow-scrolling: touch; /* défilement fluide sur iOS */
}

/* Masquer la scrollbar pour Chrome, Safari et Opera */
#popupTarifs .popup-content-apropos::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ===== POPUP TARIFS LUXE ===== */
#popupTarifs .popup-content-apropos {
    max-height: 90vh;             /* limite la hauteur */
    overflow-y: auto;             /* scroll actif pour la souris/trackpad */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE et Edge */
    -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
    perspective: 1000px;          /* profondeur pour parallax */
    position: relative;
    padding: 40px 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* masquer la scrollbar pour Chrome/Safari/Opera */
#popupTarifs .popup-content-apropos::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* sections internes avec effet parallax */
#popupTarifs .popup-content-apropos div {
    transform: translateZ(0);
    transition: transform 0.2s ease-out;
}

/* titres et accents */
#popupTarifs h2 {
    font-size: 36px;
    color: rgb(59, 98, 204);
    margin-bottom: 40px;
}
#popupTarifs h3 {
    color: var(--vert-profond);
    margin-bottom: 25px;
    border-bottom: 1px solid #d4cfc7;
    padding-bottom: 10px;
}

#popupTarifs .popup-content-apropos h3 {
    border: none;                    
    background: var(--vert-sauge);    
    color: white;                     
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 500;
    font-size: 1.2em;
    margin-bottom: 25px;
    width: stretch;
    opacity: 0.7;
}

/* ===== POPUP A PROPOS ===== */
.popup-content-apropos {
    background: white;
    padding: 50px;
    width: 420px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    transform: scale(0.9);
    transition: transform 0.5s ease;
    position:relative;
    background: rgba(255,255,255,0.85);
backdrop-filter: blur(20px);
border: 1px solid rgba(255,255,255,0.4);
}

.popup.active .popup-content-apropos {
    transform: scale(1);
}

/* ===== COLONNES PREMIUM ===== */
.columns {
    display:flex;
    justify-content:center;
    gap:50px;
    padding:120px 10%;
    flex-wrap:wrap;
    background: linear-gradient(180deg, var(--creme-profond), var(--creme));
}

.card {
    background: rgba(255,255,255,0.7);
    border-radius:30px;
    padding:50px 40px;
    width:320px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(191,165,138,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    transition: all 0.6s ease;
    position:relative;
}

.card::before {
    content:"";
    position:absolute;
    inset:0;
    border-radius:30px;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.4), transparent);
    pointer-events:none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--vert-profond);
    margin-bottom:25px;
    font-weight:500;
    letter-spacing:1px;
}

.card::after {
    content:"";
    position:absolute;
    bottom:0;
    left:30%;
    width:40%;
    height:3px;
    background: linear-gradient(to right, transparent, var(--bois-noble), transparent);
}

/* ===== SECTION IMAGES SPA ===== */
.spa-gallery {
    padding: 100px 10% 80px;
    background: linear-gradient(180deg, var(--creme), var(--creme-profond));
}

.spa-gallery h2 {
    margin-bottom:60px;
    color: var(--vert-profond);
    font-weight:500;
}

.gallery-grid {
    display:grid;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap:40px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    overflow:hidden;
    border-radius:30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    position:relative;
	max-height:320px;
}

.gallery-item img {
    width:100%;
    height:320px;
    object-fit:cover;
    transition: transform 1.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

.page {
    max-width: 100%;   
    padding: 80px 20px;
    margin: 0;         
}

.columns {
    padding: 120px 5%; 
}

.popup-content-rdv,
.popup-content-apropos {
    width: 90%;
    max-width: 600px; 
}

.spa-gallery {
    padding: 100px 5% 80px; 
}

.gallery-grid {
    gap: 40px;
}

/* ===== SECTION IMAGES A PROPOS DE ===== */
.photo-profil {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 20px auto 30px;
    display: block;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border: 4px solid var(--creme);
}
/* ===== SECTION CTA ===== */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--creme-profond), var(--creme));
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    color: var(--vert-profond);
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===== FOOTER PREMIUM ===== */
.footer-premium {
    background: var(--vert-profond);
    color: white;
    padding: 70px 10% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 20px;
    font-weight: 500;
    color: rgb(59, 98, 204);
    font-size: 18px;
}

.footer-column p {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 18px;
    opacity: 0.7;
}

/* ACCORDION FAQ */
.faq-title{
    text-align:center;
    margin-bottom:25px;
    font-weight:600;
}

.faq-container{
    max-width:700px;
    margin:auto;
}

.faq-item{
    border-bottom:1px solid #ddd;
    margin-bottom:10px;
}

.faq-question{
    width:100%;
    background:white;
    border:none;
    padding:18px;
    font-size:16px;
    text-align:left;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:500;
    color: var(--vert-profond);
    transition:0.3s;
}

.faq-question:hover{
    color:var(--vert-profond);
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
}

.faq-answer p{
    padding:0 18px 18px 18px;
    line-height:1.6;
    color:#555;
}

.icon{
    font-size:20px;
    transition:transform 0.3s;
}

.faq-item.active .icon{
    transform:rotate(45deg);
}

/* ACCORDION SERVICES */

#popupServices .popup-content-apropos > div{
    border-bottom:1px solid #ddd;
    padding-bottom:20px;
    margin-bottom:20px;
}

/* titre cliquable */
#popupServices h3{
    cursor:pointer;
    position:relative;
    padding-right:30px;
}

/* icône + / - */
#popupServices h3::after{
    content:"+";
    position:absolute;
    right:10px;
    font-size:22px;
    transition:0.3s;
}

#popupServices .open h3::after{
    content:"−";
}

/* contenu replié */
#popupServices .accordion-content{
    overflow:hidden;
    max-height:0;
    transition:max-height 0.4s ease;
}

/* =========================
   MODE MOBILE
========================= */

@media screen and (max-width: 768px) {

    /* Header responsive */
    .header-top {
        position: static;
        text-align: center;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0 auto 20px auto;
        left: auto;
    }

    h1 {
        font-size: 36px;
        text-align: center;
    }

    /* Popup plus large */
    .popup-content-apropos{
        width:95%;
        max-height:90vh;
        overflow-y:auto;
        padding:25px;
    }

    /* Titres plus petits */
    #popupServices h3{
        font-size:18px;
        padding:12px 30px 12px 10px;
    }

    /* Texte */
    #popupServices p{
        font-size:15px;
        line-height:1.6;
    }

    /* LISTES : enlever les gros décalages */
    #popupServices ul{
        padding-left:0 !important;
        margin-top:10px;
    }

    #popupServices li{
        font-size:15px;
        margin-bottom:8px;
    }

    /* Paragraphes avec padding fixe */
    #popupServices p[style*="padding-left"]{
        padding-left:0 !important;
    }

    @media screen and (max-width: 768px){
        #popupServices li{
            display:flex;
            align-items:flex-start;
            gap:8px;
        }

    }
    
    @media screen and (max-width:768px){
        .popup{
            padding:10px;
        }

        .popup-content-apropos{
            border-radius:12px;
        }

        }
    }
    
/* =========================
   MENU HAMBURGER MOBILE
========================= */

.hamburger {
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:5px;
}

.hamburger span{
    width:28px;
    height:3px;
    background:#333;
    border-radius:3px;
    transition:0.3s;
}

/* Animation burger -> X */

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translateY(-8px);
}


/* =========================
   MODE MOBILE
========================= */

@media screen and (max-width:768px) {

    header{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .hamburger{
        display:flex;
    }

    nav{
        display:none;
        position:absolute;
        top:200px;
        left:0;
        width:100%;
        background:white;
        flex-direction:column;
        z-index:1000;
    }

    nav a{
        display:block;
        padding:18px;
        border-bottom:1px solid #eee;
        text-align:center;
        font-size:18px;
    }

    /* menu ouvert */
    nav.open{
        display:flex;
    }

    /* Galerie horizontale du salon */
.salon-gallery-horizontal {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.salon-gallery-horizontal::-webkit-scrollbar {
    height: 8px;
}

.salon-gallery-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.salon-gallery-horizontal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.salon-gallery-horizontal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.salon-img-wrapper {
    flex: 0 0 auto;
    width: 300px;
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.salon-img-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.salon-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}
}

/* ===== STYLES SECTION ACCUEIL ===== */
#accueil {
    background: url('../images/fond-accueil.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    color: var(--creme); 
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

#accueil::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); 
    z-index: 1;
}

#accueil > section {
    position: relative;
    z-index: 2; 
}

/* Galerie horizontale du salon */
.salon-gallery-horizontal {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.salon-gallery-horizontal::-webkit-scrollbar {
    height: 8px;
}

.salon-gallery-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.salon-gallery-horizontal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.salon-gallery-horizontal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.salon-img-wrapper {
    flex: 0 0 auto;
    width: 280px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.salon-img-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.salon-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightboxImage {
    max-width: 108%;
    max-height: 108%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Masquer les scrollbars des popups légaux */
#popupMentionsLegales .popup-content-apropos::-webkit-scrollbar,
#popupConfidentialite .popup-content-apropos::-webkit-scrollbar,
#popupCookies .popup-content-apropos::-webkit-scrollbar,
#popupTemoignages .popup-content-apropos::-webkit-scrollbar {
    display: none;
}

#popupTemoignages .popup-content-apropos {
    text-align: left;
}
#popupTemoignages h2 {
    text-align: center;
}

/* Bannière de consentement aux cookies */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 25px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    opacity: 0.8;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #27ae60;
    color: white;
}

.cookie-btn-accept:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.cookie-btn-refuse {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}