/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: padding 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-pill);
    transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.navbar.scrolled .navbar-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 8px 30px;
    width: 95%;
}

/* Logo SVG animé */
.nav-logo-text {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.4s var(--bezier-global);
}

.nav-logo-text:hover {
    transform: scale(1.04) translateY(-2px);
}

.logo-svg {
    height: 55px;
    /* On agrandit la hauteur du logo */
    width: auto;
    overflow: visible;
}

.svg-text-base {
    font-family: var(--font-script);
    font-size: 44px;
    /* On augmente la taille de la police */
}

/* Logo Dual-Layer Animation */
/* --- Default: brand colors (subpages with light backgrounds) --- */
.logo-stroke {
    fill: transparent;
    stroke: var(--primary, #4A4A4A);
    stroke-width: 1.2px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: logoDrawStroke 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: stroke 0.4s ease;
}

.logo-dot-stroke {
    stroke: var(--accent-main, #bca6b9);
    transition: stroke 0.4s ease;
}

.logo-fill {
    fill: var(--primary, #4A4A4A);
    stroke: none;
    transition: fill 0.4s ease;
}

.logo-dot-fill {
    fill: var(--accent-main, #bca6b9);
    transition: fill 0.4s ease;
}

/* --- Homepage (colored hero): white logo when not scrolled --- */
.hero-accent .navbar:not(.scrolled) .logo-stroke {
    stroke: white;
}

.hero-accent .navbar:not(.scrolled) .logo-dot-stroke {
    stroke: white;
}

.hero-accent .navbar:not(.scrolled) .logo-fill {
    fill: white;
}

.hero-accent .navbar:not(.scrolled) .logo-dot-fill {
    fill: white;
}

.logo-reveal-rect {
    animation: logoRevealSweep 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes logoDrawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes logoRevealSweep {
    0% {
        width: 0;
    }

    100% {
        width: 180px;
    }
}

.nav-links {
    display: flex;
    gap: 35px;
    /* Un peu plus resserré pour faire plus "pill" compact */
    align-items: center;
}

/* --- Nav default state (subpages: light background) --- */
.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.btn-nav-contact {
    background: var(--accent-main);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(188, 166, 185, 0.3);
    transition: transform 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.btn-nav-contact:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-nav-contact::after {
    display: none;
}

/* --- Homepage: white nav on colored hero (not scrolled) --- */
.hero-accent .navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.hero-accent .navbar:not(.scrolled) .nav-links a.active,
.hero-accent .navbar:not(.scrolled) .nav-links a:hover {
    color: white;
}

.hero-accent .navbar:not(.scrolled) .nav-links a::after {
    background: white;
}

.hero-accent .navbar:not(.scrolled) .btn-nav-contact {
    background: white;
    color: var(--accent-main) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease, background 0.4s ease;
}

.hero-accent .navbar:not(.scrolled) .hamburger span {
    background: white;
}

/* ===== WAVE SEPARATORS ===== */
.wave-separator {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1; /* Changed from 5 to 1 */
    pointer-events: none;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 60px;
}

@media (min-width: 768px) {
    .wave-separator svg {
        height: 90px;
    }
}

.wave-separator.bottom {
    bottom: -1px;
}

.wave-separator.top {
    top: -1px;
    transform: rotate(180deg);
}

/* Color utilities for waves */
.fill-body {
    fill: var(--bg-body) !important;
}

.fill-section {
    fill: var(--bg-section) !important;
}

.fill-pink {
    fill: var(--bg-pink) !important;
}

.fill-dark {
    fill: var(--text-dark) !important;
}

.fill-contact {
    fill: var(--bg-warm) !important;
}

.fill-white {
    fill: var(--white) !important;
}

.fill-accent {
    fill: var(--accent-main) !important;
}

/* Wave Animation (Slow Tide) */
.wave-anim {
    animation: wave-drift 6s ease-in-out infinite alternate;
}

@keyframes wave-drift {
    0% {
        d: path("M0,80 C200,10 600,120 900,40 C1100,0 1300,100 1440,60 V120 H0 Z");
    }

    33% {
        d: path("M0,40 C250,100 500,20 800,80 C1050,110 1250,10 1440,50 V120 H0 Z");
    }

    66% {
        d: path("M0,60 C300,110 700,10 1000,70 C1200,100 1350,30 1440,80 V120 H0 Z");
    }

    100% {
        d: path("M0,50 C180,0 550,110 850,30 C1080,0 1280,90 1440,45 V120 H0 Z");
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: var(--accent-main);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-col .footer-logo {
    font-family: var(--font-script);
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.brand-col .footer-logo span {
    color: var(--accent-main);
}

.brand-col p {
    color: #aaa;
    font-family: var(--font-body);
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-main);
    transform: translateY(-3px);
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s var(--ease);
    display: block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-family: var(--font-body);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-info-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.footer-info-list svg {
    color: var(--accent-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #888;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legal-links a,
.credit {
    color: #888;
    font-size: 0.85rem;
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

.credit {
    color: var(--accent-main);
}