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

:root {
    /* Charte graphique */
    --beige-clair: #F0E1D4;
    --terracotta: #af7059;
    --brun-fonce: #88553e;
    --beige-rose: #DCBBA1;
    
    /* Couleurs complémentaires */
    --blanc: #FFFFFF;
    --noir-doux: #2C2421;
    
    /* Typographie */
    --font-titre: 'Cormorant Garamond', serif;
    --font-texte: 'Lato', sans-serif;
    
    /* Espacements */
    --section-padding: 6rem 0;
    --container-max: 900px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-texte);
    line-height: 1.8;
    color: var(--brun-fonce);
    background-color: var(--blanc);
    font-size: 17px;
    font-weight: 300;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titre);
    font-weight: 400;
    line-height: 1.3;
    color: var(--brun-fonce);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.first-letter::first-letter {
    font-size: 3.5rem;
    font-family: var(--font-titre);
    font-weight: 400;
    line-height: 1;
    float: left;
    margin-right: 0.5rem;
    color: var(--terracotta);
}

/* ========================================
   CONTAINERS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-text {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding);
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background: var(--blanc);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--beige-clair);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    color: var(--brun-fonce);
    margin: 0;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--brun-fonce);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--terracotta);
}

.btn-nav {
    background: var(--terracotta);
    color: var(--blanc) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 400;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--brun-fonce);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--brun-fonce);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION - PHOTO EN AVANT ✨
   ======================================== */

.hero {
    position: relative;
    padding: 0;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: flex-end; /* Bouton en bas */
    justify-content: center;
    overflow: hidden;
    background: var(--beige-clair);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* OPTION A : Overlay léger uniforme (RECOMMANDÉ) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(240, 225, 212, 0.15) 0%,
        rgba(240, 225, 212, 0.20) 50%,
        rgba(136, 85, 62, 0.30) 100%
    );
    z-index: 1;
}

/* OPTION B : Overlay uniquement en bas (décommenter pour utiliser) */
/*
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(240, 225, 212, 0) 0%,
        rgba(240, 225, 212, 0) 60%,
        rgba(136, 85, 62, 0.45) 100%
    );
    z-index: 1;
}
*/

/* OPTION C : Overlay très minimal (5-10%) - Pour photos parfaites */
/*
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(240, 225, 212, 0.05) 0%,
        rgba(240, 225, 212, 0.08) 50%,
        rgba(136, 85, 62, 0.20) 100%
    );
    z-index: 1;
}
*/

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    width: 100%;
}

/* Style du bouton - VERSION 1 : Simple et épuré */
.hero .btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--terracotta);
    color: var(--blanc);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(136, 85, 62, 0.4);
}

.hero .btn-primary:hover {
    background: var(--brun-fonce);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(136, 85, 62, 0.5);
}

/* VERSION 2 : Bouton avec petit texte (décommenter pour utiliser) */
/*
.hero-cta-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-cta-text {
    font-size: 1rem;
    color: var(--blanc);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--terracotta);
    color: var(--blanc);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(136, 85, 62, 0.4);
}

.hero-cta-button:hover {
    background: var(--brun-fonce);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(136, 85, 62, 0.5);
}
*/

/* VERSION 3 : Bouton style premium avec bordure (décommenter pour utiliser) */
/*
.hero .btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brun-fonce);
    border: 2px solid var(--terracotta);
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.hero .btn-primary:hover {
    background: var(--terracotta);
    color: var(--blanc);
    border-color: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(136, 85, 62, 0.4);
}
*/

/* Ancien styles hero à supprimer si présents */
.hero-subtitle,
.hero-title,
.hero-description {
    display: none; /* Masquer l'ancien contenu texte */
}

/* ========================================
   BUTTONS (pour le reste du site)
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-primary-light,
.btn-primary-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--blanc);
}

.btn-primary:hover {
    background: var(--brun-fonce);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(175, 112, 89, 0.3);
}

.btn-secondary {
    background: var(--brun-fonce);
    color: var(--blanc);
}

.btn-secondary:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
}

.btn-primary-light {
    background: var(--blanc);
    color: var(--brun-fonce);
}

.btn-primary-light:hover {
    background: var(--beige-clair);
    transform: translateY(-3px);
}

.btn-primary-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: var(--terracotta);
    color: var(--blanc);
}

.btn-primary-large:hover {
    background: var(--brun-fonce);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(175, 112, 89, 0.4);
}

/* ========================================
   SECTIONS
   ======================================== */
.section-light {
    background: var(--blanc);
}

.section-dark {
    background: var(--beige-clair);
}

.section-bienfaits {
    background: var(--beige-rose);
}

.section-final {
    background: linear-gradient(to bottom, var(--blanc), var(--beige-clair));
}

.section-contact {
    background: var(--blanc);
    border-top: 1px solid var(--beige-clair);
}

/* ========================================
   SECTION GALERIE
   ======================================== */
.section-galerie {
    background: var(--beige-clair);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 20px rgba(136, 85, 62, 0.15);
    transition: var(--transition);
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(136, 85, 62, 0.25);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   OPTIMISATION DES IMAGES
   ======================================== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   SECTION INTRO
   ======================================== */
.section-intro {
    text-align: left;
    margin-bottom: 3rem;
}

.section-intro.centered {
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--brun-fonce);
    font-weight: 300;
    line-height: 1.7;
    margin-top: 1.5rem;
}

/* ========================================
   TEXT CONTENT
   ======================================== */
.text-content {
    margin-bottom: 3rem;
}

.text-content.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-content p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.text-content strong {
    font-weight: 500;
    color: var(--brun-fonce);
}

.legal-content h3 {
    color: var(--terracotta);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-content h4 {
    color: var(--brun-fonce);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.legal-content a {
    color: var(--terracotta);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--brun-fonce);
    text-decoration: underline;
}

/* ========================================
   CTA CENTER
   ======================================== */
.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   RITUEL STEPS
   ======================================== */
.rituel-steps {
    display: grid;
    gap: 3rem;
    margin: 3rem 0;
}

.step {
    background: var(--beige-clair);
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(136, 85, 62, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titre);
    font-size: 1.5rem;
    font-weight: 500;
}

.step h3 {
    margin-top: 1rem;
    color: var(--brun-fonce);
    margin-bottom: 1rem;
}

.step p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.step p:last-child {
    margin-bottom: 0;
}

/* ========================================
   BIENFAITS GRID
   ======================================== */
.bienfaits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.bienfait-card {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.bienfait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(175, 112, 89, 0.15);
}

.bienfait-card h3 {
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.bienfait-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--brun-fonce);
    color: var(--beige-clair);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--beige-rose);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: var(--beige-clair);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--terracotta);
}

.footer-bottom {
    border-top: 1px solid rgba(240, 225, 212, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--beige-clair);
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-brand h1 {
        font-size: 1.6rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .container-text {
        padding: 4rem 1.5rem;
    }
    
    /* Hero optimisé mobile */
    .hero {
        min-height: 70vh;
        background-attachment: scroll;
        align-items: flex-end;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero .btn-primary {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .bienfaits-grid,
    .contact-info,
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        left: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--terracotta);
    color: var(--blanc);
}

/* ========================================
   PERFORMANCE & ACCESSIBILITÉ
   ======================================== */
@font-face {
    font-display: swap;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
}