/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --logo-color: #FAEFF7;    /* Rose */
    --primary-color: #F5E6E8;    /* Rose pÃ¢le */
    --secondary-color: #E8D5D8;  /* Rose clair */
    --accent-color: #8B6F6F;     /* Marron clair */
    --text-color: #4d342b;       /* Marron foncé */
    --light-text: #8B6F6F;       /* Texte secondaire */
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-color);
    padding-top: 20px;
    padding-top: 20px;
    margin: 0;
}

/* ===== TYPOGRAPHY ===== */
h1{
    font-family: "Playfair Display", serif;
    color: var(--text-color);
}

h2, h3 {
    font-family: "Cormorant Garamond", serif;
    color: var(--text-color);
    margin-bottom:5px;
}


h1 { font-size: 3.5rem; }
h2 {    
    font-size:2.5rem;
    font-weight:400; 
    }
h3 { font-size: 2rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FAEFF7;
    backdrop-filter: blur(10px);
    padding: 10px 20px; /* Réduit le padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: auto; /* Laisse la hauteur s'adapter au contenu */
    min-height: 0px; /* Hauteur minimale */
}

.logo-container {
    margin: 0;
    height: 50px; /* Réduit la hauteur du logo */
}

.logo {
    height: 100%;
    width: auto;
    border-radius:30px;
}

nav {
    background-color: transparent; /* Supprime le fond blanc du menu */
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    /* gap: 20px;
    flex: 2;
    padding: 15px 20px; */
    justify-content: center;
    /* background-color: #FAEFF7; */
    
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--accent-color);
    /* font-weight: 1200;
    transition: color 0.3s; */
    

    font-weight: 600; /* Réduit l'épaisseur de la police */
    font-size: 0.9rem; /* Réduit la taille de la police */
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-color);
    background-color: var(--accent-color);
}

.btn-rdv {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    /* padding: 10px 20px; */
    border-radius: var(--border-radius);
    cursor: pointer;
    /* font-weight: 600; */
    transition: background-color 0.3s, transform 0.2s;
    

    padding: 8px 15px; /* Réduit le padding */
    font-weight: 600;
    font-size: 0.8rem; /* Réduit la taille de la police */
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap; /* Évite le retour à la ligne */
}

.btn-rdv:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* margin-top: 150px; */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 80%;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px;
    background-color: #fdf8f4;
}

.section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    margin-bottom: 10px;
    margin-top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-top: 30px;
    margin-bottom: 50px;
    font-style: italic;
}

/* ===== SOINS GRID ===== */
.soins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.soin-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.soin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.soin-icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.soin-duration {
    font-weight: 600;
    color: var(--accent-color);
    margin: 10px 0;
}

.soin-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.btn-discover {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-discover:hover {
    background-color: var(--secondary-color);
}

/* ===== Ã€ PROPOS SECTION ===== */
.apropos-container{
    width:90%;
    max-width:1400px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:80px;
}


.apropos-text {
    flex: 1;
}

.apropos-text h2{
    font-size:3rem;
    font-weight:500;
    color:#4d342b;
    margin-bottom:25px;
    font-family: "Cormorant Garamond", serif;
}

.apropos-text p{
    font-size:1.08rem;
    line-height:1.9;
    color:#5b5b5b;
    margin-bottom:20px;
    margin-top:30px;
}

.apropos-image{
    flex:1;
    max-height:450px;
    max-width:450px;
    display:flex;
    justify-content:center;
}

.apropos-image img{
    width:100%;
    max-width:520px;
    aspect-ratio:4/5;
    object-fit:cover;
    border-radius:520px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

/* ===== CABINET SECTION ===== */
.cabinet-container {
    width:90%;
    max-width:1400px;
    margin:60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:80px;
}

.cabinet-image {
    flex: 1;
}

.cabinet-image img {
    width: 100%;
    
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cabinet-text {
    flex: 1;
}

.cabinet-text p{
    font-size:1.08rem;
    line-height:1.9;
    color:#5b5b5b;
    margin-bottom:20px;
    margin-top:20px;
}

.cabinet-hero-overlay {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 1200px;
    box-shadow: var(--shadow);
}


/* ===== CONTACT SECTION ===== */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 30px auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
}

.contact-item svg {
    color: var(--accent-color);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    text-align:right;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo {
    height: 50px;
}

footer p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== POPUPS ===== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-color);
}

.popup-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.popup h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.popup p {
    margin-bottom: 15px;
    color: var(--light-text);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* ===== MENU HAMBURGER ===== */
/* Cache le menu hamburger sur desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Style du menu sur mobile */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Menu déroulant (masqué par défaut sur mobile) */
@media (max-width: 768px) {
    /* Affiche le bouton hamburger */
    .hamburger {
        display: block;
    }

    /* Masque le menu par défaut */
    .nav-menu ul {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-color: #FAEFF7;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        transform: translateY(-100%); /* Masqué au-dessus de l'écran */
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    /* Affiche le menu quand la classe "active" est ajoutée */
    .nav-menu.active ul {
        transform: translateY(0); /* Affiche le menu */
    }

    /* Ajuste le header pour mobile */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .logo-container {
        margin: 0;
    }

    .btn-rdv {
        display: none; /* Cache le bouton sur mobile (optionnel) */
    }
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .apropos-container,
    .cabinet-container {
        flex-direction: column;
    }

    .apropos-image,
    .cabinet-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero {
        height: 80vh;
        margin-top: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .soins-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    /* ===== SECTION CABINET ===== */
	.cabinet-container {
	    width: 90%;
	    margin: 30px auto; /* Marge verticale réduite, centrée */
	    display: flex;
	    flex-direction: column; /* Empile les éléments sur mobile */
	    align-items: center;
	    justify-content: center;
	    gap: 20px; /* Espacement réduit */
	    padding: 0 15px; /* Ajoute un padding latéral */
	}
	
	.cabinet-image {
	    width: 100%; /* Prend toute la largeur */
	    max-width: 400px; /* Limite la largeur maximale */
	    margin: 0 auto; /* Centre l'image */
	}
	
	.cabinet-image img {
	    width: 100%;
	    height: auto; /* Conserve les proportions */
	    border-radius: var(--border-radius);
	    box-shadow: var(--shadow);
	    object-fit: cover; /* Évite les déformations */
	}
	
	.cabinet-text {
	    width: 100%; /* Prend toute la largeur */
	    text-align: center; /* Centre le texte */
	}
	
	.cabinet-text p {
	    font-size: 1rem; /* Réduit la taille de la police */
	    line-height: 1.6;
	    margin: 10px 0;
	}
}


@media (max-width: 480px) {
    .hero {
        height: 70vh;
        margin-top: 130px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 20px;
    }

    .popup-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}



/* ===== MOBILE FIRST (SMARTPHONES) ===== */
@media (max-width: 768px) {
    /* --- POLICES --- */
    h1 { font-size: 2.5rem; } /* Réduit la taille du titre principal */
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* --- HEADER & NAV --- */
    header {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        height: auto;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 10px;
        /* padding: 10px;
        align-items: center; */
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem; /* Texte du menu plus petit */
    }

    .btn-rdv {
        width: 100%; /* Bouton "Prendre RDV" en pleine largeur */
        padding: 12px;
        margin-top: 10px;
    }

    /* --- HERO SECTION --- */
    .hero {
        height: 70vh; /* Réduit la hauteur de la section héro */
        margin-top: 0px; /* Ajuste la marge pour éviter le chevauchement avec le header */
        padding-top: 20px;
    }

    .hero h1 {
        font-size: 2rem; /* Titre plus petit */
    }

    .hero-overlay {
        padding: 20px; /* Réduit le padding */
        margin: 0 15px; /* Ajoute des marges latérales */
        margin-top: 20px;
        margin-bottom: 20px;
    }
s
    /* --- SECTIONS --- */
    .section {
        padding: 40px 20px; /* Réduit le padding */
    }

    /* --- A PROPOS & CABINET --- */
    .apropos-container,
    .cabinet-container {
        flex-direction: column; /* Empile les éléments */
        gap: 30px; /* Espacement réduit */
    }

    .apropos-image img,
    .cabinet-image img {
        max-width: 100%; /* Images en pleine largeur */
        height: auto;
    }

    /* --- SOINS GRID --- */
    .soins-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 30px;
    }

    .soin-card {
        padding: 20px; /* Réduit le padding des cartes */
    }

    /* --- CONTACT --- */
    .contact-info {
        flex-direction: column; /* Empile les infos de contact */
        align-items: center;
    }

    /* --- BOUTONS --- */
    .btn-primary,
    .btn-secondary {
        width: 100%; /* Boutons en pleine largeur */
        padding: 12px;
    }
}

/* ===== TRES PETITS ECRANS (< 480px) ===== */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        height: 50vh;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 30px 15px;
    }

    .popup-content {
        padding: 20px 15px;
    }
}

