/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
    /* Color Palette */
    --color-bg-body: #FDFBF7; /* Off-White / Cream */
    --color-primary: #E8DAD4; /* Beige Rosé */
    --color-primary-dark: #D4Beb5;
    --color-accent: #C77A7A; /* Soft Terracotta / Vieux Rose */
    --color-accent-hover: #B06060;
    --color-text-main: #4A4A4A; /* Dark Grey */
    --color-text-light: #7A7A7A;
    --color-white: #FFFFFF;

    /* Typography */
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Garamond', 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hard: 0 15px 35px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.8rem;
    color: var(--color-accent);
}

h2 {
    font-size: 2.2rem;
    color: var(--color-accent);
    position: relative;
    padding-bottom: 0.5rem;
}
/* Default underline for h2 (can be overridden) */
h2:not(.no-underline)::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin-top: 0.5rem;
}

h3 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

/* =========================================
   4. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: #FFFFFF;
}

.text-center { text-align: center; }
.text-center h2::after { margin-left: auto; margin-right: auto; } /* Center underline */

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

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

/* =========================================
   6. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text-main);
}

.nav-desktop > ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-desktop a:not(.btn) {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-desktop a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-desktop a:not(.btn):hover::after,
.nav-desktop a.active:not(.btn)::after {
    width: 100%;
}

/* Dropdown */
.nav-desktop li { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content li { display: block; margin: 0; }

.dropdown-content a {
    color: var(--color-text-main);
    padding: 10px 20px;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--color-accent);
}

.dropdown:hover .dropdown-content { display: block; }
.dropdown > a::after { content: ' ▾'; font-size: 0.8em; }

/* Mobile Menu Trigger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    display: flex;
    right: 0;
}

.mobile-menu > ul {
    width: 100%;
    max-width: 400px;
    padding: 0 30px;
    overflow-y: auto;
    height: calc(100vh - 100px);
}

.mobile-menu > ul > li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu > ul > li > a {
    display: block;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-main);
}

.mobile-menu .submenu {
    padding: 5px 0 20px 20px;
    border-left: 2px solid rgba(199, 122, 122, 0.2);
    margin-left: 10px;
}

.submenu-label {
    display: block;
    padding: 20px 0 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-menu .submenu a {
    font-size: 1.1rem;
    color: #666;
    padding: 8px 0;
}

/* =========================================
   7. HERO SECTION V2 (NEW HOME)
   ========================================= */
.hero-v2 {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #fffcf5 0%, #fdfbf7 100%);
    overflow: visible;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }

.badge-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(199, 122, 122, 0.1);
    color: var(--color-accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 span { color: var(--color-text-main); }

.intro-lead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 550px;
}

.buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-hero-primary {
    background-color: var(--color-accent);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(199, 122, 122, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(199, 122, 122, 0.35);
    background-color: var(--color-accent-hover);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: white;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.google-logo { font-weight: bold; font-family: 'Product Sans', sans-serif; }
.stars { color: #fbbc05; letter-spacing: 2px; }
.review-score { font-weight: bold; color: #333; }
.review-count { font-size: 0.9rem; color: #777; }

/* Hero Image & Floating Elements */
.hero-image-container {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.hero-image-container > img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--color-primary);
    width: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: -40px;
    left: -40px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 260px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.check-icon {
    width: 44px;
    height: 44px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong { display: block; color: #333; }
.card-text span { font-size: 0.85rem; color: #777; }


/* =========================================
   8. SERVICES V2 (GRID)
   ========================================= */
.services-v2 {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fff5f5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon { width: 36px; height: auto; }

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.service-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
    position: relative;
}


/* =========================================
   9. TIMELINE / CARE PATH
   ========================================= */
.care-path {
    padding: 100px 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.timeline-line {
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    background: transparent;
    width: 30%;
    text-align: center;
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px #FFF; /* Creates gap around line */
}

.timeline-step h3 { margin-bottom: 10px; font-size: 1.2rem; }
.timeline-step p { font-size: 0.95rem; color: #666; }



/* =========================================
   10. REVIEWS & TESTIMONIALS
   ========================================= */

/* Check Lists & Icon Large (Used in Perinatalité/Adultes) */
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.icon-large img {
    max-width: 250px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.icon-large img:hover {
    transform: scale(1.05);
}

.reviews-widget-mockup {
    max-width: 800px;
    margin: 40px auto 0;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline-secondary {
    border: 1px solid #ccc;
    background: white;
    color: #555;
    border-radius: 4px;
}

.review-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.review-item:last-child { border: none; margin: 0; padding: 0; }

.review-author {
    font-size: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
}
.review-stars { color: #fbbc05; font-size: 0.8rem; margin: 5px 0; }


/* =========================================
   11. BOTTOM CTA (DARK SECTION)
   ========================================= */
.section-dark {
    background-color: #2C3E50;
    color: white;
    padding: 80px 0;
}

.section-dark h2 { color: white; margin-bottom: 15px; }
.section-dark h2::after { background-color: rgba(255,255,255,0.2); }

.section-dark p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-light-primary {
    background: white;
    color: #2C3E50;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
}
.btn-light-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline-light:hover {
    border-color: white;
    background: white;
    color: #2C3E50;
}

/* =========================================
   12. DOMICILE & OTHER PAGE SPECIFICS
   ========================================= */
.domicile-hero {
    background: linear-gradient(135deg, #fdfbf7 0%, #faeecf 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.domicile-hero h1 { font-size: 3rem; color: var(--color-accent); margin-bottom: 20px; }

.zone-highlight {
    background-color: #fff;
    border-left: 5px solid var(--color-accent);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.pricing-section { padding: 60px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}
.pricing-card:hover { transform: translateY(-10px); border-color: var(--color-accent); }

.distance-badge {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 10px 0;
}

/* Bio / Presentation specifics */
.bio-section {
    padding: 80px 0;
    overflow: visible;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.bio-text .lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 10px;
}

.bio-text h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.experience-list {
    margin-top: 30px;
}

.experience-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
}

.experience-list strong {
    color: var(--color-accent);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bio-image-card {
    position: relative;
}

.bio-image-card img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--color-primary);
    width: 100%;
}

@media (max-width: 900px) {
    .bio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bio-text .experience-list {
        text-align: left;
    }
    .bio-image-card {
        order: -1; /* Image first on mobile */
        margin-bottom: 40px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.section-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.section-flex.reverse { flex-direction: row-reverse; }
.text-content, .img-content { flex: 1; }
.img-content { display: flex; justify-content: center; }

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.tarifs-box {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-primary);
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
}
.price-row {
    display: flex; justify-content: space-between;
    font-size: 1.1rem; margin-bottom: 10px;
    border-bottom: 1px dashed #eee; padding-bottom: 5px;
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--color-white);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}
.faq-item details summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details[open] summary { color: var(--color-accent); border-bottom: 1px solid #eee; }
.faq-content { padding: 15px; color: #555; line-height: 1.6; }


/* =========================================
   13. FOOTER (DARK THEME)
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.95rem;
    margin-top: 0;
}

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

.footer-col h4 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    margin-top: 5px;
}

.footer-col p { color: #aaa; margin-bottom: 15px; }
.footer-col a { color: #ccc; transition: color 0.2s; }
.footer-col a:hover { color: white; }

/* City Links Cloud */
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links li { display: inline-block; }
.city-links a {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #bbb;
}
.city-links a:hover {
    background: var(--color-accent);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* =========================================
   14. MOBILE OPTIMIZATIONS
   ========================================= */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    gap: 10px;
}
.mobile-sticky-bar .btn { flex: 1; padding: 12px; border-radius: 8px; }

@media (max-width: 900px) {
    .hero-split, .section-flex, .section-flex.reverse, .contact-grid {
        flex-direction: column;
    }
    .hero-text { text-align: center; }
    .hero-image-container { max-width: 100%; margin-top: 40px; }
    .floating-card { bottom: -20px; left: 50%; transform: translateX(-50%); width: 90%; }
    .buttons-group { justify-content: center; }

    .timeline { flex-direction: column; gap: 30px; }
    .timeline-line { left: 24px; top: 0; bottom: 0; width: 2px; height: 100%; right: auto; margin: 0; }
    .timeline-step { width: 100%; text-align: left; padding-left: 70px; display: flex; flex-direction: column; align-items: flex-start; }
    .step-number { position: absolute; left: 0; top: 0; margin: 0; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: 70px; }

    h1 { font-size: 2.5rem; }
    .hero-v2 { padding-top: 40px; }
    .hero-text h1 { font-size: 2.2rem; }
}
