/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --color-primary: #6B8E6F;
    --color-primary-dark: #4A6B4D;
    --color-primary-light: #A8C5AA;
    --color-secondary: #D4A574;
    --color-text: #2C3E2F;
    --color-text-light: #5A6E5C;
    --color-bg: #FDFAF5;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F2ED;
    --color-gray: #E0DCD5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.4s ease;
    height: 80px; /* Hauteur fixe standard */
}

.navbar {
    padding: 0; /* Reset padding pour utiliser height */
    height: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* LOGO DYNAMIQUE */
.logo {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px; /* Logo plus grand par défaut */
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 40px; /* Le fait déborder vers le bas */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Logo quand on scroll */
.header.scrolled .logo img {
    height: 60px;
    margin-top: 0;
    filter: none;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px; /* Header un peu plus compact au scroll */
}

/* Mobile Logo dans le menu */
.mobile-logo-item {
    display: none; /* Caché sur desktop */
    margin-bottom: 1rem;
}

.mobile-logo-item img {
    height: 80px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-light);
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

.hero-quote p {
    margin: 0;
    display: inline;
}

.hero-quote cite {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: normal;
    color: var(--color-text);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

/* MODIF : Gestion de la pile d'images Hero */
.hero-image {
    /* Ancienne classe conservée si besoin, mais remplacée par le stack */
    position: relative;
}

.hero-image-stack {
    position: relative;
    width: 100%;
    height: 600px; /* Même hauteur qu'avant */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden; /* Important pour les coins arrondis */
    animation: fadeInRight 1s ease-out;
}

.hero-image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* L'image du dessus, animée */
.img-overlay {
    opacity: 0;
    transition: opacity 2s ease-in-out; /* FONDU TRES FLUIDE (2 secondes) */
    z-index: 2;
}

.img-overlay.visible {
    opacity: 1;
}

.img-base {
    z-index: 1;
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    font-family: var(--font-body);
}

.cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.certifications {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-gray-light);
    border-radius: 15px;
    border-left: 4px solid var(--color-primary);
}

.certifications h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.certifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-images img {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-images img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   NATUROPATHY INFO SECTION
   ======================================== */
.naturopathy-info {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.naturopathy-info .section-title,
.naturopathy-info .intro-text {
    color: var(--color-white);
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pillar:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pillar h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.pillar p {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   SERVICES SECTION (avec Ken Burns)
   ======================================== */
.services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Effet Ken Burns */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ken-burns img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

.service-card:nth-child(2) .ken-burns img {
    animation-delay: -5s;
}

.service-card:nth-child(3) .ken-burns img {
    animation-delay: -10s;
}

.service-card:nth-child(4) .ken-burns img {
    animation-delay: -15s;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.05) translate(-2%, -1%);
    }
    100% {
        transform: scale(1.08) translate(2%, 1%);
    }
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.service-content p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    background: var(--color-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--color-gray-light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.price-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.price-card.featured {
    background: var(--color-primary);
    color: var(--color-white);
    position: relative;
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured li,
.price-card.featured .price-subtitle {
    color: var(--color-white);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem; /* Légèrement réduit pour accomoder 100€ */
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0;
    font-family: var(--font-heading);
}

.price-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.price-card ul {
    text-align: left;
    margin-top: 1.5rem;
}

.price-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.price-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.price-card.featured li::before {
    color: var(--color-white);
}

.gift-voucher {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 20px;
    text-align: center;
    color: var(--color-white);
}

.gift-voucher h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ========================================
   QUOTE SECTION
   ======================================== */
.quote-section {
    background: var(--color-gray-light);
    padding: 4rem 0;
}

.large-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.6;
}

.large-quote p {
    margin: 0;
}

.large-quote cite {
    display: block;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    font-style: normal;
    color: var(--color-primary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.contact-item .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--color-text-light);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* --- NOUVEAU FORMULAIRE DE CONTACT --- */
.contact-form-container {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 600;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-gray-light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(107, 142, 111, 0.1);
}

.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--color-gray-light);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
}

.captcha-input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    text-align: center;
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
}

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    /* Simplifié : Centré */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Suppression des anciens styles complexes du footer */
.footer-contact h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* STYLES RESEAUX SOCIAUX AJOUTES */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.legal-notice {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
FIX MOBILE ZOOM SUR INPUT
======================================== */
@media screen and (max-width: 968px) {
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important; /* Empêche le zoom sur iOS */
    }
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    /* Navigation mobile */
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        z-index: 999;
    }

    /* Afficher le logo dans le menu mobile */
    .mobile-logo-item {
        display: block;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem; /* Plus d'espace car logo déborde */
        gap: 3rem;
    }
    
    .hero-image-stack {
        order: -1;
        height: 400px; /* Ajustement mobile */
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-image-stack {
        height: 350px; /* Ajustement mobile */
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pillars {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 90px;
        margin-top: 30px;
    }
    
    .header.scrolled .logo img {
        height: 50px;
    }
}