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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d2d2d;
    overflow-x: hidden;
    background: #f5f0eb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 45px;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.site-logo {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2d2d2d;
    transition: color 0.3s;
}

.site-logo:hover {
    color: #8b7355;
}

.main-nav {
    display: flex;
    gap: 38px;
    list-style: none;
    align-items: center;
}

.main-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2d2d2d;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #8b7355;
    transition: width 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: #8b7355;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: #2d2d2d;
    transition: all 0.3s;
    display: block;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO SPLIT SCREEN ========== */
.hero-split {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.hero-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px 80px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-panel:hover {
    flex: 1.12;
}

/* Background images */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-panel:hover .hero-bg {
    transform: scale(1.04);
}

/* Panel overlays */
.hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Panel PSY - Gauche */
.panel-psy {
    background: #ddd7cf;
}

.panel-psy .hero-bg {
    background-image: url('../../images/psy-cabinet.jpg');
}

.panel-psy::after {
    background: linear-gradient(
        180deg,
        rgba(221, 215, 207, 0.15) 0%,
        rgba(221, 215, 207, 0.05) 35%,
        rgba(221, 215, 207, 0.05) 65%,
        rgba(221, 215, 207, 0.20) 100%
    );
}

/* Panel Holistique - Droite */
.panel-holistique {
    background: #b8845e;
}

.panel-holistique .hero-bg {
    background-image: url('../../images/holistique-room.jpg');
}

.panel-holistique::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.10) 35%,
        rgba(0, 0, 0, 0.10) 65%,
        rgba(0, 0, 0, 0.20) 100%
    );
}

/* ========== PANEL CONTENT ========== */
.panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 480px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s ease forwards;
}

.panel-psy .panel-content {
    animation-delay: 0.2s;
}

.panel-holistique .panel-content {
    animation-delay: 0.4s;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 60%, transparent 80%);
    padding: 40px 30px;
    border-radius: 20px;
}

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

.panel-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.panel-psy .panel-subtitle {
    color: #5a5048;
}

.panel-holistique .panel-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.3);
}

.panel-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 38px;
    text-transform: uppercase;
}

.panel-psy .panel-title {
    font-size: 3.4rem;
    color: #2d2d2d;
    text-shadow: 0 1px 8px rgba(255,255,255,0.4);
}

.panel-holistique .panel-title {
    font-size: 3.4rem;
    color: #fff;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.4);
}

/* CTA Buttons */
.panel-cta {
    display: inline-block;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.panel-psy .panel-cta {
    background: #fff;
    color: #2d2d2d;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.panel-psy .panel-cta:hover {
    background: #2d2d2d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.panel-holistique .panel-cta {
    background: #fff;
    color: #2d2d2d;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.panel-holistique .panel-cta:hover {
    background: #2d2d2d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========== CENTER DIVIDER ========== */
.center-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.center-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.center-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.center-icon svg {
    width: 20px;
    height: 20px;
    color: #8b7355;
}

.center-icon-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ========== THERAPIST PHOTOS ========== */
.therapist-photo {
    position: absolute;
    bottom: 70px;
    width: 78px;
    height: 78px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.therapist-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.therapist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-psy .therapist-photo {
    left: 28px;
}

.panel-holistique .therapist-photo {
    right: 28px;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2.5s ease-in-out infinite;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.scroll-indicator svg {
    width: 15px;
    height: 15px;
    color: #8b7355;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ========== SACRED GEOMETRY ========== */
.sacred-geometry {
    position: absolute;
    top: 80px;
    right: 35px;
    z-index: 3;
    opacity: 0.35;
    animation: geo-float 6s ease-in-out infinite;
}

.sacred-geometry svg {
    width: 85px;
    height: 85px;
}

@keyframes geo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* ========== SPARKLE ========== */
.sparkle {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.55);
    font-size: 2.2rem;
    animation: sparkle-pulse 3.5s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.25) rotate(15deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-panel {
        min-height: 50vh;
        padding: 80px 30px 70px;
    }

    .hero-panel:hover {
        flex: 1;
    }

    .panel-title {
        font-size: 2.8rem !important;
    }

    .center-divider {
        flex-direction: row;
        gap: 15px;
    }

    .center-icon-label {
        display: none;
    }

    .site-header {
        padding: 15px 20px;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(245, 240, 235, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .panel-title {
        font-size: 2.2rem !important;
    }

    .panel-subtitle {
        font-size: 0.68rem;
        letter-spacing: 3px;
    }

    .panel-cta {
        padding: 13px 28px;
        font-size: 0.68rem;
    }

    .site-logo {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }

    .therapist-photo {
        width: 60px;
        height: 60px;
        bottom: 50px;
    }

    .center-icon {
        width: 42px;
        height: 42px;
    }

    .center-icon svg {
        width: 16px;
        height: 16px;
    }

    .sacred-geometry {
        top: 60px;
        right: 20px;
    }

    .sacred-geometry svg {
        width: 60px;
        height: 60px;
    }
}
