/* ==========================================================================
   Dr. Ana Maria Costea - CSS Stylesheet
   Design: Premium, Serene, Integrative & Humanist Psychiatry
   Colors: Warm Cream, Deep Forest Green, Soft Bronze/Gold, Muted Charcoal
   ========================================================================== */

/* Utility */
.hidden {
    display: none;
}

/* 1. Design System & CSS Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-bg-primary: #FAF7F2;      /* Soft warm cream background */
    --clr-bg-secondary: #F4EFEA;    /* Slightly darker cream for alt sections */
    --clr-primary: #1E3D3A;         /* Deep forest green/teal */
    --clr-primary-light: #2A534F;   /* Light primary for hover states */
    --clr-primary-dark: #122624;    /* Deeper primary for active states/dark text */
    --clr-accent: #C5A880;          /* Soft gold/bronze for highlights and borders */
    --clr-accent-light: #E2D4C1;    /* Lighter gold for subtle backgrounds */
    --clr-text-primary: #2C302E;    /* Soft charcoal/black for readability */
    --clr-text-secondary: #444A47;  /* High-contrast muted grey-green for metadata & secondary info */
    --clr-white: #FFFFFF;
    --clr-danger: #C05C5C;          /* Soft red for errors */
    --clr-success: #5CA08E;         /* Soft green for success */

    /* Typography */
    --ff-headings: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'Inter', system-ui, sans-serif;

    /* Transitions & Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-quick: all 0.2s ease-in-out;
    
    /* Layout Spacing */
    --container-max-width: 1200px;
    --section-spacing: 100px;
    --section-spacing-mobile: 60px;
    
    /* Shadow & Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(30, 61, 58, 0.04);
    --shadow-medium: 0 20px 40px rgba(30, 61, 58, 0.08);
    --shadow-lift: 0 28px 60px -18px rgba(30, 61, 58, 0.18);

    /* Focus ring for keyboard accessibility */
    --focus-ring: 0 0 0 3px rgba(197, 168, 128, 0.55);
}

/* 2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    background-color: var(--clr-bg-primary);
    background-image:
        radial-gradient(1100px 700px at 82% -8%, rgba(197, 168, 128, 0.14), transparent 60%),
        radial-gradient(900px 600px at -10% 12%, rgba(30, 61, 58, 0.05), transparent 55%);
    background-attachment: fixed;
    color: var(--clr-text-primary);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Accessible keyboard focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.booking-option-card:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--border-radius-sm);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-headings);
    font-weight: 500;
    line-height: 1.25;
    color: var(--clr-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--ff-body);
}

p {
    color: var(--clr-text-secondary);
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

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

/* 3. Utility Components (Buttons, Container, Dividers)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

@media (max-width: 768px) {
    .section-padding {
        padding: var(--section-spacing-mobile) 0;
    }
}

.alt-bg {
    background-color: var(--clr-bg-secondary);
    background-image:
        radial-gradient(800px 500px at 100% 0%, rgba(197, 168, 128, 0.10), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(30, 61, 58, 0.04), transparent 55%);
}

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

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--ff-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--clr-primary);
    background-image: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary) 55%, var(--clr-primary-dark));
    color: var(--clr-bg-primary);
    box-shadow: 0 6px 18px -6px rgba(30, 61, 58, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(30, 61, 58, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -6px rgba(30, 61, 58, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--clr-accent);
    color: var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-accent);
    color: var(--clr-primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.text-center .section-subtitle {
    justify-content: center;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 28px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.5;
}

.section-title {
    margin-bottom: 20px;
}

.title-divider {
    width: 60px;
    height: 2px;
    background-color: var(--clr-accent);
    margin: 0 auto;
}

/* 4. Header & Navigation Menu
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
    background-color: rgba(250, 247, 242, 0.98);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: var(--transition-smooth);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--clr-primary);
}

.logo-svg {
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-svg {
    transform: rotate(5deg) scale(1.05);
}

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

.doctor-name {
    font-family: var(--ff-headings);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.doctor-specialty {
    font-family: var(--ff-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--clr-accent);
    margin-top: 2px;
}

/* Desktop navigation link styles */
.nav-menu ul {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-family: var(--ff-body);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-primary);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--clr-primary);
    transition: var(--transition-quick);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Keep the logo intact while the desktop nav is visible; below the burger
   breakpoint it may shrink so it never pushes the toggle off-screen. */
@media (min-width: 1151px) {
    .logo-link {
        flex-shrink: 0;
    }
}

@media (max-width: 1150px) {
    .logo-link {
        min-width: 0;
    }
}

.btn-header {
    white-space: nowrap;
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hamburger active transformation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer style */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--clr-bg-primary);
    z-index: 99;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
    border-left: 1px solid rgba(197, 168, 128, 0.2);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--ff-headings);
    font-size: 1.5rem;
    color: var(--clr-primary);
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
}

.mobile-nav-link:hover {
    padding-left: 8px;
    color: var(--clr-accent);
}

/* Seven nav items no longer fit alongside the logo and the CTA below ~1150px,
   so the burger menu takes over earlier than the original 992px. */
@media (max-width: 1150px) {
    .nav-menu, .btn-header {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* 5. Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--clr-text-secondary);
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-cta {
    margin-bottom: 48px;
}

/* Mini Badges inside Hero */
/* Three equal columns: a flex-wrap layout left the third badge orphaned
   on its own row. */
.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(197, 168, 128, 0.3);
    padding-top: 30px;
}

@media (max-width: 480px) {
    .hero-badges {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

.badge-item:hover .badge-icon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-primary);
    line-height: 1.4;
}

/* Visual Wrapper & Quote */
.hero-visual {
    position: relative;
}

/* Soft decorative halo + arch outline behind the portrait */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -6% -8% -10% -8%;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(197, 168, 128, 0.30), transparent 70%);
    filter: blur(10px);
    z-index: -1;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 26px;
    right: -26px;
    bottom: -26px;
    border: 1px solid rgba(197, 168, 128, 0.45);
    border-radius: 350px 350px var(--border-radius-lg) var(--border-radius-lg);
    z-index: -1;
    pointer-events: none;
}

.image-wrapper {
    position: relative;
    border-radius: 350px 350px 0 0; /* Elegant arch style matching premium aesthetic */
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    aspect-ratio: 4 / 5;
    background-color: var(--clr-bg-secondary);
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover .hero-img {
    scale: 1.06;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(30, 61, 58, 0.95) 20%, rgba(30, 61, 58, 0.7) 70%, transparent);
    padding: 40px 30px 30px;
    color: var(--clr-bg-primary);
    backdrop-filter: blur(2px);
}

.quote-text {
    font-family: var(--ff-headings);
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.4;
    color: var(--clr-bg-primary);
    margin-bottom: 12px;
    font-weight: 300;
}

.quote-author {
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 20px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .image-wrapper {
        border-radius: var(--border-radius-lg);
        aspect-ratio: 16 / 10;
    }

    .hero-visual::after {
        display: none;
    }
}

/* 6. Quick Info Banner
   ========================================================================== */
.quick-info-banner {
    background-color: var(--clr-primary);
    background-image: linear-gradient(120deg, var(--clr-primary-dark), var(--clr-primary) 45%, var(--clr-primary-light));
    color: var(--clr-bg-primary);
    padding: 30px 0;
    border-top: 1px solid rgba(197, 168, 128, 0.35);
    border-bottom: 1px solid rgba(197, 168, 128, 0.35);
}

.banner-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-item:not(:last-child) {
    border-right: 1px solid rgba(197, 168, 128, 0.2);
    padding-right: 20px;
}

.banner-icon {
    font-size: 1.6rem;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.banner-text h4 {
    color: var(--clr-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.banner-text p {
    color: rgba(250, 247, 242, 0.8);
    font-size: 0.8rem;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .banner-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .banner-item:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .banner-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .banner-item {
        border-right: none !important;
        padding-right: 0 !important;
    }
}

/* 7. Le Cabinet (About) Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.philosophy-box {
    margin-top: 36px;
    background-color: var(--clr-bg-secondary);
    padding: 32px 34px 32px 30px;
    border-left: 3px solid var(--clr-accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative watermark: pushed to the corner so it never sits under the text. */
.philosophy-quote-icon {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 3.5rem;
    color: rgba(197, 168, 128, 0.16);
    z-index: 0;
    pointer-events: none;
}

/* Scoped to .philosophy-box so it outranks `.about-text p`, which otherwise
   wins on specificity and forces this back down to 1.05rem. */
.philosophy-box .philosophy-text {
    position: relative;
    z-index: 1;
    font-family: var(--ff-headings);
    /* Cormorant has a small x-height: it needs more size than Inter to read
       at the same visual weight. */
    font-size: 1.45rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--clr-primary);
    margin-bottom: 0;
    /* Keeps the text clear of the decorative quote mark in the corner. */
    padding-right: 52px;
}

/* Feature Cards list */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background-color: var(--clr-white);
    padding: 24px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.1);
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(197, 168, 128, 0.3);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.feature-info h4 {
    margin-bottom: 6px;
    color: var(--clr-primary);
}

.feature-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* 8. Specialisations Section
   ========================================================================== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.spec-card {
    position: relative;
    background-color: var(--clr-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Accent bar that grows across the top on hover */
.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: var(--clr-accent);
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--clr-bg-primary);
    border: 1.5px solid var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--clr-primary);
    font-size: 1.5rem;
    transition: var(--transition-quick);
}

.spec-card:hover .spec-icon-wrapper {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

.spec-card h3 {
    margin-bottom: 12px;
    font-weight: 500;
}

.spec-short-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.spec-details {
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    padding-top: 20px;
}

.spec-details li {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.spec-details li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--clr-accent);
    font-size: 1.1rem;
}

.spec-details li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .spec-card {
        padding: 30px;
    }
}

/* 9. Approche (Timeline) Section
   ========================================================================== */
.steps-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 19px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--clr-accent-light);
}

.step-item {
    position: relative;
    margin-bottom: 50px;
}

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

.step-number {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-bg-primary);
    border: 2px solid var(--clr-accent);
    color: var(--clr-primary);
    font-family: var(--ff-headings);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition-quick);
}

.step-item:hover .step-number {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

.step-content {
    background-color: var(--clr-white);
    padding: 30px 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.15);
    transition: var(--transition-smooth);
}

.step-item:hover .step-content {
    transform: translateX(5px);
    border-color: rgba(197, 168, 128, 0.3);
    box-shadow: var(--shadow-medium);
}

.step-content h4 {
    margin-bottom: 12px;
    color: var(--clr-primary);
}

.step-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .steps-timeline {
        padding-left: 20px;
    }
    
    .steps-timeline::before {
        left: 9px;
    }
    
    .step-number {
        left: -20px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px 24px;
    }
}

/* 10. Section Description Helper
   ========================================================================== */
.section-description {
    max-width: 680px;
    margin: 16px auto 0 auto;
    font-size: 1.05rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   10. Parcours & Diplômes — timeline éditoriale (sans boîtes imbriquées)
   ========================================================================== */
.cv-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 72px;
    margin-top: 10px;
}

.cv-col-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 34px;
    border-bottom: 1px solid rgba(30, 61, 58, 0.14);
}

.cv-col-head i {
    font-size: 1rem;
    color: var(--clr-accent);
}

.cv-col-head h3 {
    font-family: var(--ff-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--clr-primary);
    margin-bottom: 0;
}

.cv-rail {
    list-style: none;
}

.cv-entry {
    display: grid;
    grid-template-columns: 76px 1fr;
}

.cv-year {
    font-family: var(--ff-headings);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--clr-primary);
    text-align: right;
    padding-right: 20px;
}

/* Les périodes ("2006 → 2025") passent sur une seconde ligne plutôt que de
   déborder de la colonne des années. */
.cv-year small {
    display: block;
    font-family: var(--ff-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--clr-accent);
    margin-top: 3px;
}

.cv-body {
    position: relative;
    padding: 0 0 32px 26px;
    border-left: 1px solid rgba(197, 168, 128, 0.45);
}

.cv-entry:last-child .cv-body {
    padding-bottom: 0;
}

.cv-body::before {
    content: '';
    position: absolute;
    left: -4.5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--clr-accent);
    box-shadow: 0 0 0 4px var(--clr-bg-secondary);
    transition: var(--transition-quick);
}

/* Jalons de carrière : pastille pleine, plus marquée */
.cv-entry.is-key .cv-body::before {
    background-color: var(--clr-primary);
    width: 11px;
    height: 11px;
    left: -6px;
    top: 6px;
}

.cv-entry:hover .cv-body::before {
    transform: scale(1.3);
}

.cv-kind {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8A6B3A;
    margin-bottom: 5px;
}

.cv-body h4 {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--clr-primary);
    margin-bottom: 3px;
}

.cv-org {
    font-size: 0.86rem;
    color: var(--clr-text-secondary);
    margin-bottom: 0;
}


/* ==========================================================================
   11. Informations pratiques — plaque à deux volets
   ========================================================================== */
.plaque {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background-color: var(--clr-white);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.plaque-col {
    display: flex;
    flex-direction: column;
    padding: 46px 48px;
}

.plaque-col + .plaque-col {
    border-left: 1px solid rgba(197, 168, 128, 0.25);
    background-color: rgba(244, 239, 234, 0.45);
}

.plaque-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--clr-text-secondary);
    margin-bottom: 30px;
}

.plaque-eyebrow i {
    font-size: 0.9rem;
    color: var(--clr-accent);
}

/* Horaires : lignes à pointillés, comme une carte imprimée */
.schedule {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex-grow: 1;
}

.schedule-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.schedule-days {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-primary);
}

.leader {
    flex: 1 1 auto;
    min-width: 18px;
    border-bottom: 1px dotted rgba(30, 61, 58, 0.28);
    transform: translateY(-4px);
}

.schedule-time {
    font-family: var(--ff-headings);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
    white-space: nowrap;
}

.schedule-mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--clr-text-secondary);
}

.schedule-mode i {
    font-size: 0.8rem;
    color: var(--clr-primary);
}

.schedule-mode.is-gold i {
    color: var(--clr-accent);
}

.schedule-row.is-closed .schedule-days {
    color: #8D918F;
}

.schedule-row.is-closed .schedule-time {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #8D918F;
}

.plaque-note {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 61, 58, 0.08);
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
}

.plaque-note i {
    margin-right: 7px;
    color: var(--clr-accent);
}

/* Volet cabinet */
.plaque-address {
    font-family: var(--ff-headings);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-primary);
    margin-bottom: 28px;
}

.plaque-address span {
    display: block;
    margin-top: 8px;
    font-family: var(--ff-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

.plaque-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plaque-facts li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--clr-text-secondary);
}

.plaque-facts i {
    width: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--clr-accent);
}

.plaque-facts strong {
    font-weight: 600;
    color: var(--clr-primary);
}

/* Honoraires : liste tarifaire, pas de cartes « pricing » */
.fees {
    margin-top: 64px;
}

.fees-head {
    text-align: center;
    margin-bottom: 34px;
}

.fees-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--clr-accent);
}

.fees-title {
    font-family: var(--ff-headings);
    font-size: 2.1rem;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: 0;
}

.fees-list {
    list-style: none;
    max-width: 860px;
    margin: 0 auto 36px;
    border-top: 1px solid rgba(197, 168, 128, 0.4);
}

.fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 10px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.4);
    transition: var(--transition-quick);
}

.fee:hover {
    background-color: rgba(255, 255, 255, 0.7);
    padding-left: 18px;
}

.fee-text h4 {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 4px;
}

.fee-text p {
    font-size: 0.88rem;
    color: var(--clr-text-secondary);
    margin-bottom: 0;
}

.fee-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.fee-dur {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: var(--clr-text-secondary);
}

.fee-price {
    font-family: var(--ff-headings);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--clr-primary);
    min-width: 96px;
    text-align: right;
}

.fees-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 860px;
    margin: 0 auto;
}

.fees-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fees-note i {
    font-size: 1rem;
    margin-top: 4px;
    color: var(--clr-accent);
}

.fees-note p {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--clr-text-secondary);
    margin-bottom: 0;
}

.fees-note strong {
    font-weight: 600;
    color: var(--clr-primary);
}


/* ==========================================================================
   11b. Café Philo
   ========================================================================== */
.philo {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--clr-white);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.philo-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 48px 30px;
    background: linear-gradient(160deg, #FAF7F2, #F1E9DC);
    border-right: 1px solid rgba(197, 168, 128, 0.3);
}

.philo-aside > i {
    font-size: 2.1rem;
    color: var(--clr-primary);
}

.philo-rhythm {
    font-family: var(--ff-headings);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--clr-primary);
}

.philo-rhythm small {
    display: block;
    margin-top: 6px;
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--clr-accent);
}

.philo-with {
    padding-top: 14px;
    border-top: 1px solid rgba(197, 168, 128, 0.4);
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
}

.philo-main {
    padding: 48px 52px;
}

.philo-main h3 {
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: 18px;
}

.philo-main p {
    margin-bottom: 14px;
}

.philo-lead {
    font-size: 1.05rem;
    color: var(--clr-text-primary);
}

.philo-note {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 61, 58, 0.08);
    font-size: 0.86rem;
    font-style: italic;
    color: var(--clr-text-secondary);
}

.philo-note a {
    font-style: normal;
    font-weight: 600;
    color: var(--clr-primary);
    border-bottom: 1px solid var(--clr-accent);
}

.philo-note a:hover {
    color: var(--clr-accent);
}


/* Responsive des sections Parcours / Infos pratiques / Café philo */
@media (max-width: 992px) {
    .cv-columns {
        grid-template-columns: 1fr;
        gap: 46px;
    }

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

    .plaque-col + .plaque-col {
        border-left: none;
        border-top: 1px solid rgba(197, 168, 128, 0.25);
    }

    .fees-notes {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .philo-aside {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 22px;
        padding: 26px 32px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(197, 168, 128, 0.3);
    }

    .philo-with {
        padding-top: 0;
        border-top: none;
    }

    .philo-rhythm small {
        margin-top: 2px;
    }
}

@media (max-width: 640px) {
    .cv-entry {
        grid-template-columns: 62px 1fr;
    }

    .cv-year {
        font-size: 1.3rem;
        padding-right: 14px;
    }

    .cv-body {
        padding-left: 20px;
    }

    .plaque-col {
        padding: 34px 26px;
    }

    .schedule-time {
        font-size: 1.25rem;
    }

    .plaque-address {
        font-size: 1.5rem;
    }

    .fees-title {
        font-size: 1.7rem;
    }

    .fee {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .fee-meta {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .fee-price {
        min-width: 0;
        font-size: 1.9rem;
    }

    .philo-main {
        padding: 32px 26px;
    }

    .philo-main h3 {
        font-size: 1.55rem;
    }
}

/* 11. Contact Section & Form
   ========================================================================== */
.contact-wrapper {
    display: grid;
    /* minmax(0, …) lets the tracks shrink below their content's min-content
       width, otherwise the long e-mail address widens the whole grid. */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 50px;
}

.contact-form-container,
.contact-info {
    min-width: 0;
}

.contact-lead {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}

/* Premium Form Elements */
.contact-form-container {
    background-color: var(--clr-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.15);
}

/* Form card header — sets expectations before the visitor starts typing */
.form-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.form-card-header-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    font-size: 1.1rem;
}

.form-card-header-text h3 {
    font-size: 1.15rem;
    color: var(--clr-primary);
    margin-bottom: 2px;
}

.form-card-header-text p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    margin-bottom: 0;
}

.form-row {
    display: grid;
    /* minmax(0, 1fr) keeps the long <select> option labels from forcing the
       track wider than the form on narrow screens. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group select {
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-primary);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--clr-danger);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--border-radius-sm);
    background-color: var(--clr-bg-primary);
    color: var(--clr-text-primary);
    outline: none;
    transition: var(--transition-quick);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(30, 61, 58, 0.05);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3D3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--clr-primary);
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.8rem;
    text-transform: none;
    color: var(--clr-text-secondary);
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(197, 168, 128, 0.6);
}

.checkbox-group label a:hover {
    color: var(--clr-accent);
}

/* Privacy reminder above the consent checkbox */
.form-privacy-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: var(--clr-bg-secondary);
    border-left: 2px solid var(--clr-accent);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.form-privacy-note i {
    color: var(--clr-accent);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-privacy-note p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--clr-text-secondary);
}

/* Submit Button & Response states */
.btn-submit {
    min-width: 200px;
    height: 50px;
}

.btn-submit .spinner {
    display: none;
    font-size: 1.2rem;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

.form-response {
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(92, 160, 142, 0.1);
    border: 1px solid var(--clr-success);
    color: var(--clr-success);
}

.form-response.error {
    display: block;
    background-color: rgba(192, 92, 92, 0.1);
    border: 1px solid var(--clr-danger);
    color: var(--clr-danger);
}

/* Floating-label fields (contact form) */
.contact-form .form-group:not(.checkbox-group) {
    position: relative;
    margin-bottom: 26px;
}

.contact-form .form-group:not(.checkbox-group) > label {
    position: absolute;
    top: 16px;
    left: 44px;
    margin: 0;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--clr-text-secondary);
    pointer-events: none;
    padding: 0 5px;
    background: transparent;
    transition: var(--transition-quick);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    padding: 22px 16px 10px 44px;
}

.contact-form .form-group select {
    padding-right: 40px;
}

/* Leading icon inside each field */
.form-field-icon {
    position: absolute;
    left: 16px;
    top: 30px;
    transform: translateY(-50%);
    color: var(--clr-accent);
    font-size: 0.9rem;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition-quick);
}

.form-field-icon.icon-top {
    top: 30px;
    transform: none;
}

/* Raise the label when the field is focused or filled */
.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:not(:placeholder-shown) ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:not(:placeholder-shown) ~ label,
.contact-form .form-group select:focus ~ label,
.contact-form .form-group select:valid ~ label {
    top: -9px;
    left: 11px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--clr-primary);
    background: var(--clr-white);
}

/* Inline validation feedback */
.field-msg {
    display: block;
    font-size: 0.74rem;
    line-height: 1.3;
    margin-top: 6px;
    min-height: 1em;
    color: var(--clr-danger);
    opacity: 0;
    transform: translateY(-3px);
    transition: var(--transition-quick);
}

.form-group.invalid .field-msg,
.form-group.valid .field-msg {
    opacity: 1;
    transform: translateY(0);
}

.form-group.valid .field-msg {
    color: var(--clr-success);
}

/* Character counter (message field only) */
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--clr-text-secondary);
    margin-top: 4px;
}

.char-counter.is-near-limit {
    color: var(--clr-accent);
}

.char-counter.is-at-limit {
    color: var(--clr-danger);
}

.contact-form .form-group.invalid input,
.contact-form .form-group.invalid select,
.contact-form .form-group.invalid textarea {
    border-color: var(--clr-danger);
    background-color: rgba(192, 92, 92, 0.04);
}

.contact-form .form-group.valid input,
.contact-form .form-group.valid select,
.contact-form .form-group.valid textarea {
    border-color: var(--clr-success);
}

/* Success checkmark for filled, valid fields (skipped on the select, whose
   dropdown arrow already occupies the right edge) */
.contact-form .form-group.valid:not(.form-group-select)::after {
    content: '\2713';
    position: absolute;
    top: 18px;
    right: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-success);
    pointer-events: none;
}

/* Info cards side panel */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background-color: var(--clr-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    gap: 20px;
    /* Top-aligned: centring left the icon floating below its own heading on
       cards whose content runs to several lines. */
    align-items: flex-start;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    font-size: 1.3rem;
}

.info-card-content h4 {
    margin-bottom: 4px;
    color: var(--clr-primary);
}

.info-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-primary);
    /* The e-mail address is a single long token: let it break on narrow screens. */
    overflow-wrap: anywhere;
}

.info-link:hover {
    color: var(--clr-accent);
}

.info-note {
    font-size: 0.75rem;
    color: var(--clr-text-secondary);
    display: block;
    margin-top: 2px;
}

.emergency-box {
    background-color: rgba(192, 92, 92, 0.05);
    border: 1.5px dashed var(--clr-danger);
    padding: 24px 30px;
    border-radius: var(--border-radius-md);
}

.emergency-box h4 {
    color: var(--clr-danger);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-box p {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

/* 12. Footer
   ========================================================================== */
.main-footer {
    background-color: var(--clr-primary-dark);
    color: rgba(250, 247, 242, 0.75);
    padding: 80px 0 0;
    border-top: 2px solid var(--clr-accent);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    /* Four columns: the three-column layout left a large dead zone on the
       right and made the tall navigation list look lopsided. */
    grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
    gap: 48px;
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
    }
}

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

.footer-brand .doctor-name {
    color: var(--clr-white);
    font-size: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(250, 247, 242, 0.6);
    max-width: 320px;
}

.footer-address {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(250, 247, 242, 0.75);
}

.footer-container h4 {
    color: var(--clr-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links ul,
.footer-legal ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    white-space: nowrap;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    font-size: 0.85rem;
    color: rgba(250, 247, 242, 0.7);
    overflow-wrap: anywhere;
}

.footer-hours {
    margin-top: 20px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-hours dt {
    color: rgba(250, 247, 242, 0.55);
    letter-spacing: 0.03em;
}

.footer-hours dd {
    color: rgba(250, 247, 242, 0.9);
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-hours dd span {
    display: block;
    font-weight: 400;
    font-size: 0.76rem;
    color: rgba(250, 247, 242, 0.5);
}

.footer-note {
    margin-top: 4px;
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(250, 247, 242, 0.5);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--clr-accent);
    padding-left: 4px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 24px 0;
    border-top: 1px solid rgba(250, 247, 242, 0.05);
    font-size: 0.8rem;
}

.footer-bottom-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
}

.footer-credits {
    color: rgba(250, 247, 242, 0.5);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 13. Interactive Modal (Booking)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 38, 36, 0.4);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Landscape phones / short viewports: let the overlay scroll instead of
       clipping the bottom of the modal when its content is taller than the
       window (e.g. 320px-tall viewports in landscape orientation). */
    overflow-y: auto;
    padding: 24px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--clr-bg-primary);
    width: 90%;
    max-width: 550px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--clr-accent);
    padding: 40px;
    position: relative;
    margin: auto;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    border: none;
    color: var(--clr-text-secondary);
    cursor: pointer;
    transition: var(--transition-quick);
}

.modal-close:hover {
    color: var(--clr-primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
    padding-right: 20px;
}

.modal-header h3 {
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
}

/* Modal booking options */
.booking-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.booking-option-card {
    background-color: var(--clr-white);
    border: 1.5px solid rgba(197, 168, 128, 0.25);
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.booking-option-card:hover {
    transform: translateY(-2px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-soft);
}

.booking-option-card .option-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-quick);
}

.booking-option-card:hover .option-icon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.booking-option-card .option-info {
    flex-grow: 1;
}

.booking-option-card .option-info h4 {
    color: var(--clr-primary);
    margin-bottom: 2px;
}

.booking-option-card .option-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.booking-option-card .option-arrow {
    font-size: 0.9rem;
    color: var(--clr-accent);
    transition: var(--transition-quick);
}

.booking-option-card:hover .option-arrow {
    transform: translateX(4px);
    color: var(--clr-primary);
}

.modal-note {
    background-color: var(--clr-bg-secondary);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    border-left: 2px solid var(--clr-accent);
}

.modal-note p {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .modal-box {
        padding: 30px 20px;
    }
}

/* "Coming soon" toast (Maiia) — centered, fits any phone width via
   width: calc(100% - 32px) + max-width, no extra breakpoint needed */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    width: calc(100% - 32px);
    max-width: 420px;
    transform: translate(-50%, 16px);
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    cursor: pointer;
}

.toast i {
    color: var(--clr-accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 14. Scroll Reveal & Entrance Animations
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Entrance animations for hero on load */
@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(38px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroImage {
    from {
        opacity: 0;
        transform: translateY(34px) scale(1.06);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gentle continuous float for the decorative halo behind the portrait */
@keyframes haloFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.05); }
}

.animate-up {
    opacity: 0;
    animation: heroRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade {
    opacity: 0;
    animation: heroImage 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animate-up { animation-delay: 0.15s; }
.hero-description.animate-up.delay-1 { animation-delay: 0.35s; }
.hero-cta.animate-up.delay-2 { animation-delay: 0.55s; }
.hero-badges.animate-up.delay-3 { animation-delay: 0.75s; }
.hero-visual.animate-fade { animation-delay: 0.45s; }

.hero-visual::before {
    animation: haloFloat 9s ease-in-out infinite;
    animation-delay: 1.6s; /* start after entrance settles */
}

/* Stagger the individual hero badges for a softer cascade */
.hero-badges .badge-item {
    opacity: 0;
    animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badges .badge-item:nth-child(1) { animation-delay: 0.85s; }
.hero-badges .badge-item:nth-child(2) { animation-delay: 0.98s; }
.hero-badges .badge-item:nth-child(3) { animation-delay: 1.11s; }

/* 15. Legal Pages (Mentions légales / Politique de confidentialité)
   ========================================================================== */
.legal-header {
    background-color: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.legal-header .header-container {
    padding: 18px 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-primary);
}

.back-link:hover {
    color: var(--clr-accent);
}

.back-link i {
    transition: var(--transition-quick);
}

.back-link:hover i {
    transform: translateX(-4px);
}

.legal-section {
    padding: 70px 0 100px;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-title {
    margin: 8px 0 6px;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-bottom: 32px;
}

.legal-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: var(--clr-bg-secondary);
    border-left: 3px solid var(--clr-accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 18px 22px;
    margin-bottom: 40px;
}

.legal-notice i {
    color: var(--clr-accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.legal-notice p {
    margin: 0;
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

.legal-content p {
    font-size: 1rem;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.legal-content li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--clr-text-secondary);
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-accent);
}

.legal-content a {
    color: var(--clr-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(197, 168, 128, 0.6);
}

.legal-content a:hover {
    color: var(--clr-accent);
}

.legal-content code {
    background-color: var(--clr-bg-secondary);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 1px 6px;
    font-size: 0.85em;
    color: var(--clr-primary);
}

.legal-highlight {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: rgba(30, 61, 58, 0.04);
    border: 1px solid rgba(30, 61, 58, 0.12);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    margin: 8px 0 24px;
}

.legal-highlight i {
    color: var(--clr-primary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-highlight p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clr-text-primary);
}

@media (max-width: 576px) {
    .legal-header .back-link span,
    .back-link {
        font-size: 0.78rem;
    }

    .legal-section {
        padding: 50px 0 70px;
    }
}

/* 16. Accessibility & Graceful Degradation
   ========================================================================== */

/* Safety net: if JS is disabled, the IntersectionObserver never fires, so
   reveal-based content would stay invisible. Show it whenever JS is absent. */
html:not(.js) .scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Respect users who prefer reduced motion: no reveal offsets, no entrance
   animations, no hover lifts. Content is always fully visible. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal,
    .animate-up,
    .animate-fade,
    .hero-badges .badge-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .image-wrapper:hover .hero-img {
        scale: 1;
    }
}
