/* ============================================
   Variables et Reset
   ============================================ */
:root {
    /* Primary Brand Colors - Vivid Blue Update */
    --bleu-ardoise: #2E7DAF;        /* Vivid blue - headers, titles, navigation */
    --bleu-clair-brume: #E3F2FD;    /* Light blue - section backgrounds */
    --beige-rose-clair: #D6E9F5;    /* Light blue accent - blocks, quotes */
    --vert-sauge-doux: #2E7DAF;     /* Vivid blue (replaces muted blue) */
    --gris-ardoise-fonce: #333333;  /* Text - main body text */
    --blanc-pur: #FFFFFF;           /* Base - backgrounds, whitespace */
    
    /* Legacy variable names for compatibility */
    --sage-green: var(--vert-sauge-doux);
    --text-dark: var(--gris-ardoise-fonce);
    --white: var(--blanc-pur);
    
    /* Section background variations */
    --section-bg-light: #F0F8FF;        /* Very light vivid blue */
    --section-bg-beige: #E8F4FA;
    --section-bg-blue: var(--bleu-clair-brume);
    --section-bg-white: var(--blanc-pur);
    
    /* Accent variations for subtle elements */
    --accent-light: rgba(46, 125, 175, 0.15);  /* Vivid blue light */
    --accent-blue: rgba(46, 125, 175, 0.1);     /* Vivid blue light */
    --accent-beige: rgba(214, 233, 245, 0.5);   /* Light blue */
    
    /* Typographie */
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    height: -webkit-fill-available;
}

/* Fix iOS viewport height issues */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Keyword highlighting with brand color */
.keyword-highlight {
    color: #2E7DAF;
    font-weight: 600;
}

/* Blue color for keywords in Mon Approche and HPI sections (body text only) */
#mon-approche .text-column .keyword-highlight,
#hpi-hypersensibilite .text-column .keyword-highlight {
    color: #2E7DAF;
}

/* Respecter les préférences utilisateur pour les animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Désactiver l'animation de gradient pour ces utilisateurs */
    .section-light,
    .section-beige,
    .section-blue,
    .section-white,
    .section-contact {
        animation: none !important;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.56), rgba(227, 242, 253, 0.56));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(46, 125, 175, 0.06);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scrolled state - slightly more opaque */
.navbar.navbar-scrolled {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.64), rgba(227, 242, 253, 0.64));
    box-shadow: 0 2px 15px rgba(46, 125, 175, 0.10);
}

/* Navigation Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--bleu-ardoise);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 1002;
    position: relative;
}

.nav-brand:hover {
    opacity: 0.8;
}

/* Desktop Menu */
.nav-menu-desktop {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bleu-ardoise);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--bleu-ardoise);
}

/* Contact CTA Button */
.nav-link-cta {
    background: var(--bleu-ardoise);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(139, 157, 131, 0.3);
    transition: all 0.3s ease;
}

.nav-link-cta::after {
    display: none !important;
}

.nav-link-cta:hover {
    background: #7d8a6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.4);
}

/* Mobile Menu Button (Apple Style) */
.menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 10000;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    pointer-events: auto;
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: var(--bleu-ardoise);
    transition: color 0.3s ease;
    pointer-events: none;
    display: block;
}

.menu-button:hover .menu-icon {
    color: #7d8a6e;
}

.menu-line {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

/* Menu button active state (X icon) */
.menu-button.active .menu-line-top {
    transform: translateY(5px) rotate(45deg);
}

.menu-button.active .menu-line-middle {
    opacity: 0;
}

.menu-button.active .menu-line-bottom {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Menu Overlay (Apple Style) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(227, 242, 253, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Overlay Header with Close Button */
.menu-overlay-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1003;
    background: transparent;
}

.menu-overlay-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--bleu-ardoise);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.menu-overlay.active .menu-overlay-brand {
    opacity: 1;
    transform: translateX(0);
}

.menu-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s, background 0.3s ease;
}

.menu-overlay.active .menu-close-button {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.menu-close-button:hover {
    background: rgba(139, 157, 131, 0.1);
    transform: scale(1.1) rotate(90deg);
}

.menu-close-button:active {
    background: rgba(139, 157, 131, 0.2);
    transform: scale(0.95) rotate(90deg);
}

.menu-close-icon {
    width: 24px;
    height: 24px;
    color: var(--bleu-ardoise);
    transition: color 0.3s ease;
}

.menu-close-button:hover .menu-close-icon {
    color: #7d8a6e;
}

.menu-overlay-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-overlay-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-overlay.active .menu-overlay-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
.menu-overlay.active .menu-overlay-list li:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-overlay-list li:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.active .menu-overlay-list li:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.active .menu-overlay-list li:nth-child(4) { transition-delay: 0.25s; }
.menu-overlay.active .menu-overlay-list li:nth-child(5) { transition-delay: 0.3s; }
.menu-overlay.active .menu-overlay-list li:nth-child(6) { transition-delay: 0.35s; }

.menu-overlay-link {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.4;
    transition: color 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid rgba(139, 157, 131, 0.2);
}

.menu-overlay-list li:last-child .menu-overlay-link:not(.menu-overlay-link-contact) {
    border-bottom: none;
}

.menu-overlay-link:hover {
    color: var(--bleu-ardoise);
    padding-left: 1rem;
}

/* Contact CTA in overlay */
.menu-overlay-cta {
    margin-top: 3rem;
}

.menu-overlay-link-contact {
    background: var(--bleu-ardoise);
    color: var(--white) !important;
    padding: 1.5rem 2.5rem !important;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    border-bottom: none !important;
    box-shadow: 0 8px 24px rgba(139, 157, 131, 0.35);
    transition: all 0.3s ease;
    display: block;
}

.menu-overlay-link-contact:hover {
    background: #7d8a6e;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 157, 131, 0.45);
    padding-left: 2.5rem !important;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 6rem var(--spacing-md);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* Shimmer effect on container for extra emphasis */
.section:not(.hero-section) .container::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.22) 0%,
        transparent 50%
    );
    animation: shimmerPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
    opacity: 0;
}

@keyframes shimmerPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.section-content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced animations for specific elements */
.section-icon {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-content.reveal .section-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.1s;
}

.section-title {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal .section-title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

/* Paragraph animations */
.section-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.reveal p {
    opacity: 1;
    transform: translateY(0);
}

.section-content.reveal p:nth-of-type(1) {
    transition-delay: 0.3s;
}

.section-content.reveal p:nth-of-type(2) {
    transition-delay: 0.4s;
}

.section-content.reveal p:nth-of-type(3) {
    transition-delay: 0.5s;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
    margin: var(--spacing-md) auto 0;
    color: var(--text-dark);
    opacity: 0.9;
}

.section-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--bleu-ardoise);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

/* Couleurs de fond des sections avec gradients animés subtils - Enhanced visibility */
.section-light {
    background: linear-gradient(135deg, var(--section-bg-light), #E3F2FD);
    background-size: 200% 200%;
    animation: gentleGradient 15s ease infinite;
}

.section-beige {
    background: linear-gradient(135deg, #E8F4FA, rgba(227, 242, 253, 0.7));
    background-size: 200% 200%;
    animation: gentleGradient 18s ease infinite;
}

.section-blue {
    background: linear-gradient(135deg, var(--bleu-clair-brume), rgba(227, 242, 253, 0.7));
    background-size: 200% 200%;
    animation: gentleGradient 20s ease infinite;
}

.section-white {
    background: linear-gradient(135deg, var(--blanc-pur), var(--section-bg-light));
    background-size: 200% 200%;
    animation: gentleGradient 16s ease infinite;
}

.section-contact {
    background: linear-gradient(135deg, #E3F2FD, #D6E9F5);
    background-size: 200% 200%;
    animation: gentleGradient 17s ease infinite;
}

/* ============================================
   Living Background Effects - Wind, Sunlight, Waves
   ============================================ */

/* Breathing light overlay for all sections except hero */
.section:not(.hero-section)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 157, 131, 0.55) 0%,
        rgba(174, 204, 217, 0.40) 25%,
        rgba(182, 123, 110, 0.35) 45%,
        transparent 70%
    );
    animation: breathingLight 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    filter: blur(35px);
}

/* Soft wave overlay - creates gentle movement */
.section:not(.hero-section)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            45deg,
            rgba(139, 157, 131, 0.14) 0%,
            rgba(174, 204, 217, 0.18) 25%,
            rgba(182, 123, 110, 0.16) 50%,
            rgba(174, 204, 217, 0.18) 75%,
            rgba(139, 157, 131, 0.14) 100%
        );
    background-size: 400% 400%;
    animation: gentleWaves 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

/* Ensure section content is above animated backgrounds */
.section-content {
    position: relative;
    z-index: 3;
}

/* Breathing light animation - sunlight effect */
@keyframes breathingLight {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(-15%, -8%) scale(1.25) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translate(-8%, 15%) scale(1.15) rotate(-5deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(15%, -15%) scale(1.3) rotate(10deg);
        opacity: 1;
    }
}

/* Gentle waves animation - wind/water feeling */
@keyframes gentleWaves {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 60%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 40%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating sunlight particles - subtle light rays */
.section:not(.hero-section) .section-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 157, 131, 0.28) 0%, rgba(139, 157, 131, 0.12) 10%, transparent 25%),
        radial-gradient(circle at 60% 30%, rgba(182, 123, 110, 0.26) 0%, rgba(182, 123, 110, 0.12) 10%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(174, 204, 217, 0.27) 0%, rgba(174, 204, 217, 0.12) 10%, transparent 25%);
    animation: floatingSunlight 35s linear infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

@keyframes floatingSunlight {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(150px) translateX(50px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(300px) translateX(0);
        opacity: 0;
    }
}

/* Variation for different section types */
.section-light::before {
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(46, 125, 175, 0.35) 0%,
        rgba(227, 242, 253, 0.25) 25%,
        rgba(46, 125, 175, 0.18) 50%,
        transparent 75%
    );
}

.section-blue::before {
    background: radial-gradient(
        ellipse at 70% 50%,
        rgba(227, 242, 253, 0.45) 0%,
        rgba(46, 125, 175, 0.28) 25%,
        rgba(227, 242, 253, 0.22) 50%,
        transparent 75%
    );
    animation-duration: 20s;
}

.section-contact::before {
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(214, 233, 245, 0.40) 0%,
        rgba(227, 242, 253, 0.25) 25%,
        rgba(214, 233, 245, 0.20) 50%,
        transparent 75%
    );
    animation-duration: 19s;
}

/* ============================================
   Section Accueil / Hero
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bleu-clair-brume) 0%, #D6E9F5 100%);
    text-align: center;
    padding-top: calc(var(--spacing-xl) + 80px);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Ensure video is visible */
.hero-video-background video {
    opacity: 1;
    visibility: visible;
}

/* Desktop video - visible by default */
.hero-video-desktop {
    display: block;
}

/* Mobile video - hidden by default */
.hero-video-mobile {
    display: none;
}

/* Video overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(227, 242, 253, 0.4) 0%, 
        rgba(214, 233, 245, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content above video */
.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero spacer - maintains spacing where icon was */
.hero-spacer {
    height: 80px;
    margin-bottom: var(--spacing-md);
}

/* Floating animation for concept images */

/* Breathing animation for trauma illustration */
@keyframes breatheImage {
    0%, 100% { 
        transform: scale(1) translateY(0px); 
    }
    50% { 
        transform: scale(1.02) translateY(-10px); 
    }
}

/* Hero phrase animation - show one by one in loop */
@keyframes heroPhraseLoop {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    8% { 
        opacity: 1;
        transform: translateY(0);
    }
    25% { 
        opacity: 1;
        transform: translateY(0);
    }
    33% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Animation de gradient subtile pour les sections */
@keyframes gentleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--bleu-ardoise);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero phrase styles - sequential animation */
.hero-phrase {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    animation: heroPhraseLoop 12s ease-in-out infinite;
    will-change: opacity, transform;
}

.hero-phrase-1 {
    animation-delay: 0s;
}

.hero-phrase-2 {
    animation-delay: 4s;
}

.hero-phrase-3 {
    animation-delay: 8s;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    opacity: 0.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Hook (phrase d'accroche avant le bouton) */
.cta-hook {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New dynamic animations for scroll reveals */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(46, 125, 175, 0.25);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(46, 125, 175, 0.35);
    }
}

/* Floating animation for icons */
@keyframes floatSlow {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-2deg); 
    }
}

/* Apply floating to painted icons */
.painted-icon {
    animation: floatSlow 6s ease-in-out infinite;
}

/* ============================================
   Boutons CTA
   ============================================ */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bleu-ardoise);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 125, 175, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

/* Ripple effect on CTA button */
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:active::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: #1E5A8A;
    box-shadow: 0 6px 20px rgba(46, 125, 175, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.cta-button:focus {
    outline: 3px solid rgba(46, 125, 175, 0.4);
    outline-offset: 3px;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(46, 125, 175, 0.3);
}

.button-icon {
    font-size: 1.2rem;
}

/* Painted icon images */
.painted-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Phone icon in Contact section - 2x bigger */
#contact .painted-icon {
    width: 160px;
    height: 160px;
}

.button-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.mobile-cta-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* ============================================
   Layouts à deux colonnes
   ============================================ */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.two-columns.reverse {
    direction: rtl;
}

.two-columns.reverse > * {
    direction: ltr;
}

.text-column {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal .text-column {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.text-column p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-column strong {
    color: var(--bleu-ardoise);
    font-weight: 600;
}

/* Read More functionality for text columns */
.text-column.collapsed,
.about-bio.collapsed {
    max-height: 300px;
    overflow: hidden;
}

.text-column.expanded,
.about-bio.expanded {
    max-height: none;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(46, 125, 175, 0.1);
    color: var(--bleu-ardoise);
    border: 1px solid var(--bleu-ardoise);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--bleu-ardoise);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 175, 0.3);
}

.read-more-btn svg {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded svg {
    transform: rotate(180deg);
}



/* Mon Approche profile photo styling */
.about-photo {
    width: 90%;
    max-height: 420px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(46, 125, 175, 0.15);
    margin: 0 auto;
    display: block;
}





/* ============================================
   Section Traumas (texte centré + illustration)
   ============================================ */
.trauma-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
}

.centered-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trauma-illustration {
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-content.reveal .trauma-illustration {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.trauma-illustration-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(46, 125, 175, 0.2);
    transition: box-shadow 0.3s ease;
    animation: breatheImage 12s ease-in-out infinite;
    will-change: transform;
}

.trauma-illustration-img:hover {
    box-shadow: 0 15px 45px rgba(46, 125, 175, 0.3);
}

.trauma-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.quote-text {
    font-size: 1.2rem;
    color: var(--bleu-ardoise);
    font-weight: 300;
    margin-top: var(--spacing-lg);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-content.reveal .quote-text {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.7s;
}

/* ============================================
   Section Services (grid)
   ============================================ */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 238, 0.95));
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 125, 175, 0.15);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.section-content.reveal .service-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-content.reveal .service-card:nth-child(1) {
    transition-delay: 0.2s;
}

.section-content.reveal .service-card:nth-child(2) {
    transition-delay: 0.4s;
}

.section-content.reveal .service-card:nth-child(3) {
    transition-delay: 0.6s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 45px rgba(46, 125, 175, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 242, 253, 0.98));
    cursor: pointer;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-icon-img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Service watercolor illustrations */
.service-illustration {
    width: 100%;
    max-width: 280px;
    margin: 0 auto var(--spacing-md);
}

.service-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-illustration-img {
    transform: scale(1.05);
    opacity: 0.95;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--bleu-ardoise);
    margin-bottom: var(--spacing-sm);
}

/* Green color for couple/family therapy titles */
.service-title-green {
    color: var(--bleu-ardoise) !important;
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.closing-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--bleu-ardoise);
    margin-top: var(--spacing-lg);
}

/* ============================================
   Section À propos
   ============================================ */

/* Two-column layout for À Propos */
.about-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

/* Text column (left side) */
.about-bio {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal .about-bio {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.about-bio p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

/* Image column (right side) */
.about-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.95) translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal .about-image-column {
    opacity: 1;
    transform: scale(1) translateX(0);
    transition-delay: 0.4s;
}

/* Portrait image styling - rectangular with rounded corners */
.about-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(46, 125, 175, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-portrait:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 125, 175, 0.25);
}

/* ============================================
   Office Gallery Section
   ============================================ */
.office-gallery-section {
    margin-top: 5rem;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-top: 1px solid rgba(46, 125, 175, 0.15);
}

.office-gallery-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--bleu-ardoise);
}

.office-gallery-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.office-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.office-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.reveal .office-card {
    opacity: 1;
    transform: translateY(0);
}

.section-content.reveal .office-card:nth-child(1) {
    transition-delay: 0.2s;
}

.section-content.reveal .office-card:nth-child(2) {
    transition-delay: 0.3s;
}

.section-content.reveal .office-card:nth-child(3) {
    transition-delay: 0.4s;
}

.office-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(46, 125, 175, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.office-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(46, 125, 175, 0.3);
}

.testimonials {
    margin-top: 6rem;
    padding-top: var(--spacing-lg);
}

.testimonials-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--bleu-ardoise);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.95), rgba(214, 233, 245, 0.95));
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--bleu-ardoise);
    box-shadow: 0 3px 15px rgba(46, 125, 175, 0.12);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(46, 125, 175, 0.18);
}

.stars {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: #f5c518;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-source {
    font-size: 0.9rem;
    color: #666;
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonials-carousel {
    overflow: hidden;
    border-radius: 15px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    will-change: transform;
}

.testimonial-card-carousel {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.95), rgba(214, 233, 245, 0.95));
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border-left: 4px solid var(--bleu-ardoise);
    box-shadow: 0 3px 15px rgba(46, 125, 175, 0.12);
    box-sizing: border-box;
}

.testimonial-card-carousel blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

/* CTA Card (6th card) */
.testimonial-cta-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 242, 253, 0.98));
    border-left: none;
}

.testimonial-cta-card .google-icon {
    margin-bottom: var(--spacing-md);
}

.testimonial-cta-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bleu-ardoise);
    margin-bottom: var(--spacing-sm);
}

.testimonial-cta-card p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
}

.google-review-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-review-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.4);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--bleu-ardoise);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    color: var(--bleu-ardoise);
}

.carousel-btn:hover {
    background: var(--bleu-ardoise);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(46, 125, 175, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot:hover {
    background: rgba(46, 125, 175, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--bleu-ardoise);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   Section Contact
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-30px);
}

.section-content.reveal .contact-item {
    opacity: 1;
    transform: translateX(0);
}

.section-content.reveal .contact-item:nth-of-type(1) {
    transition-delay: 0.2s;
}

.section-content.reveal .contact-item:nth-of-type(2) {
    transition-delay: 0.4s;
}

.section-content.reveal .contact-item:nth-of-type(3) {
    transition-delay: 0.6s;
}

.contact-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-icon-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.contact-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--bleu-ardoise);
}

.contact-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--bleu-ardoise);
    text-decoration: underline;
}

.contact-item a:hover {
    color: #1E5A8A;
}

.contact-cta {
    margin-top: var(--spacing-md);
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 15px;
}

.contact-note {
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    margin-top: var(--spacing-md);
}

.contact-map {
    overflow: hidden;
    border-radius: 15px;
}

.contact-map iframe {
    border-radius: 15px;
    width: 100%;
    height: 100%;
    min-height: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Section Jung Quote
   ============================================ */
.section-jung {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    background: linear-gradient(135deg, #CFD8DC 0%, #ECEFF1 25%, #FAFAFA 50%, #E3F2FD 75%, #FFFFFF 100%);
    background-size: 300% 300%;
    animation: shadowToLight 10s ease-in-out infinite alternate;
    overflow: hidden;
}

@keyframes shadowToLight {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.section-jung::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 60%
    );
    animation: breathingLight 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.section-jung .container {
    position: relative;
    z-index: 2;
    text-align: center; /* Ensure text is centered */
}

/* Jung Quote Styles */
.jung-blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--bleu-ardoise);
    line-height: 1.5;
    margin: 0 auto 1.5rem;
    max-width: 900px;
    font-weight: 700;
    font-style: italic;
}

.jung-cite {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-style: normal;
    font-weight: 500;
    display: block;
    opacity: 0.8;
}

/* Responsive adjustments for Jung section */
@media (max-width: 768px) {
    .jung-blockquote {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-jung {
        min-height: 30vh;
    }
}

/* ============================================
   Service Modal
   ============================================ */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.service-modal.active {
    display: flex;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 175, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.98), rgba(227, 242, 253, 0.98));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(46, 125, 175, 0.3);
    z-index: 1;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(46, 125, 175, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-modal-close:hover {
    background: var(--bleu-ardoise);
    transform: rotate(90deg);
}

.service-modal-close svg {
    color: var(--bleu-ardoise);
    transition: color 0.3s ease;
}

.service-modal-close:hover svg {
    color: white;
}

.service-modal-body {
    padding: 3rem 2.5rem 2.5rem;
}

.service-modal-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--bleu-ardoise);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.service-modal-body p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.service-modal-body p:last-child {
    margin-bottom: 0;
}

.service-more {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(46, 125, 175, 0.1);
    color: var(--bleu-ardoise);
    border: 1px solid var(--bleu-ardoise);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-more {
    background: var(--bleu-ardoise);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 175, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .service-modal-body {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .service-modal-body h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-note {
    opacity: 0.7;
    font-style: italic;
}

/* ============================================
   Bouton fixe mobile
   ============================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--bleu-ardoise);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.8rem;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(46, 125, 175, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.mobile-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 125, 175, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* iOS Safari viewport fix - handle bottom navigation bar */
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Navigation mobile */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
        color: var(--bleu-ardoise);
    }
    
    /* Hide desktop menu, show mobile button */
    .nav-menu-desktop {
        display: none;
    }
    
    .menu-button {
        display: block;
    }
    
    /* Adjust mobile overlay header */
    .menu-overlay-header {
        padding: 1rem 1.5rem;
    }
    
    .menu-overlay-brand {
        font-size: 1.3rem;
    }
    
    /* Adjust mobile overlay padding */
    .menu-overlay-content {
        padding: 100px 1.5rem 2rem;
    }
    
    /* Better spacing for mobile menu links */
    .menu-overlay-link {
        font-size: 1.5rem;
        padding: 1.25rem 0;
    }
    
    .menu-overlay-cta {
        margin-top: 2.5rem;
    }
    
    .menu-overlay-link-contact {
        font-size: 1.25rem;
        padding: 1.25rem 2rem !important;
    }
    
    .menu-overlay-link-contact:hover {
        padding-left: 2rem !important;
    }
    
    .nav-menu .nav-link[href="#contact"]:active {
        background: #1E5A8A !important;
        transform: scale(0.98) !important;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
        min-height: auto;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: var(--spacing-md);
        min-height: 100vh;
        min-height: -webkit-fill-available;
        height: 100vh;
        height: -webkit-fill-available;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Switch to mobile video on small screens */
    .hero-video-desktop {
        display: none !important;
    }
    
    .hero-video-mobile {
        display: block !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }
    
    /* Ensure video background covers full height */
    .hero-video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 3.5rem;
        min-height: 5rem;
        line-height: 1.2;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-icon {
        font-size: 2.5rem;
    }
    
    .painted-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Phone icon in Contact section - 2x bigger on mobile */
    #contact .painted-icon {
        width: 120px;
        height: 120px;
    }
    
    /* Phone icons in buttons - 2x on mobile */
    .button-icon-img {
        width: 32px;
        height: 32px;
    }
    
    .mobile-cta-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Colonnes */
    .two-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .two-columns.reverse {
        direction: ltr;
    }
    
    /* À Propos two-column mobile */
    .about-two-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-image-column {
        order: -1; /* Image appears first on mobile */
        margin-bottom: var(--spacing-md);
    }
    
    .about-portrait {
        max-width: 100%;
    }
    
    /* Read More mobile adjustments */
    .text-column.collapsed,
    .about-bio.collapsed {
        max-height: 200px; /* Smaller on mobile to show complete lines */
    }
    

    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon-img {
        width: 112px;
        height: 112px;
    }
    
    .service-illustration {
        max-width: 250px;
    }
    
    /* Office Gallery */
    .office-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .office-gallery-title {
        font-size: 1.5rem;
    }
    
    .office-gallery-subtitle {
        font-size: 1rem;
    }
    

    
    /* Testimonials Carousel */
    .testimonials-carousel-wrapper {
        padding: 0 35px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-card-carousel {
        padding: var(--spacing-md);
    }
    
    .testimonial-card-carousel blockquote {
        font-size: 1rem;
    }
    
    .testimonial-cta-card {
        padding: var(--spacing-lg);
    }
    
    .testimonial-cta-card h4 {
        font-size: 1.3rem;
    }
    
    .testimonial-cta-card p {
        font-size: 1rem;
    }
    
    .google-review-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-icon-img {
        width: 45px;
        height: 45px;
    }
    
    .contact-map iframe {
        min-height: 300px;
    }
    
    /* Bouton mobile visible */
    .mobile-cta {
        display: flex;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        min-height: 2.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Smaller menu on tiny screens */
    .menu-overlay-header {
        padding: 1rem;
    }
    
    .menu-overlay-brand {
        font-size: 1.2rem;
    }
    
    .menu-close-button {
        width: 40px;
        height: 40px;
    }
    
    .menu-close-icon {
        width: 20px;
        height: 20px;
    }
    
    .menu-overlay-content {
        padding: 90px 1rem 1.5rem;
    }
    
    .menu-overlay-link {
        font-size: 1.25rem;
        padding: 1rem 0;
    }
    
    .menu-overlay-link-contact {
        font-size: 1.125rem;
        padding: 1rem 1.5rem !important;
    }
}

/* ============================================
   Accessibilité
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    /* Disable breathing background animations for motion sensitivity */
    .section:not(.hero-section)::before,
    .section:not(.hero-section)::after,
    .section:not(.hero-section) .section-content::before {
        animation: none !important;
        opacity: 0.2 !important;
    }
}

/* Focus visible pour accessibilité clavier */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--bleu-ardoise);
    outline-offset: 3px;
}
