/* ═══════════════════════════════════════════════════════════════
   AquaBobble — Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties (Design Tokens) ──────────────────────── */
:root {
    /* Colors */
    --color-primary:     #0367B2;
    --color-primary-dark:#024E8A;
    --color-primary-light:#0580D8;
    --color-accent:      #4DC89A;
    --color-accent-light:#6FD9B0;

    /* Legacy — alias vers --color-text / --color-primary-dark, à ne plus utiliser */
    --color-dark:        var(--color-text);
    --color-dark-soft:   var(--color-primary-dark);
    --color-text:        #1A2E3B;
    --color-text-light:  #5A7A8A;
    --color-light:       #F0F5FA;
    --color-white:       #FFFFFF;
    --color-border:      #D0DEE5;
    --color-border-light:#E8F0F4;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;
    --text-7xl:  4.5rem;

    --leading-tight:  1.15;
    --leading-normal: 1.55;
    --leading-loose:  1.75;

    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-6xl: 10rem;

    /* Border Radius */
    --radius-sm:   0.375rem;
    --radius-md:   0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(11, 29, 38, 0.05);
    --shadow-md:  0 4px 12px rgba(11, 29, 38, 0.08);
    --shadow-lg:  0 8px 30px rgba(11, 29, 38, 0.12);
    --shadow-xl:  0 20px 60px rgba(11, 29, 38, 0.15);

    /* Transitions */
    --duration-fast:   0.15s;
    --duration-normal: 0.3s;
    --duration-slow:   0.5s;
    --ease-out:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out:     cubic-bezier(0.42, 0, 0.58, 1);
    --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-base:    1;
    --z-above:   10;
    --z-header:  100;
    --z-overlay: 500;
    --z-modal:   1000;

    /* Layout */
    --container-max: 75rem;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);
    --grid-gap: 1.5rem;
    --header-height: 5rem;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-lg));
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
}

/* ─── Section Spacing ────────────────────────────────────────── */
.section {
    padding-block: var(--space-5xl);
}

.section--sm {
    padding-block: var(--space-3xl);
}

.section--lg {
    padding-block: var(--space-6xl);
}

/* ─── Typography Utilities ───────────────────────────────────── */
.text-primary   { color: var(--color-primary); }
.text-accent    { color: var(--color-accent); }
.text-light     { color: var(--color-text-light); }
.text-white     { color: var(--color-white); }

.text-center    { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875em 2em;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    transition-delay: 100ms;
}

.btn--accent {
    background: var(--color-accent-light);
    color: var(--color-text);
}

.btn--accent:hover {
    background: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transition-delay: 100ms;
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.btn__arrow {
    width: 1.25em;
    height: 1.25em;
    transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ─── Header ─────────────────────────────────────────────────── */
.ab-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    transition: background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.ab-header--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.ab-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    height: 100%;
}

.ab-header__logo {
    display: flex;
    align-items: center;
}

.ab-header__logo-img {
    height: 2.55rem;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--duration-normal) var(--ease-out);
}

.ab-header--scrolled .ab-header__logo-img {
    filter: none;
}

.ab-header__menu {
    display: flex;
    gap: var(--space-xl);
}

.ab-header__menu > li {
    display: flex;
    align-items: center;
}
.ab-header__menu > li > a {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--duration-fast) var(--ease-out);
    padding-block: var(--space-sm);
}

.ab-header__menu > li > a:hover {
    color: var(--color-white);
}

.ab-header--scrolled .ab-header__menu > li > a {
    color: var(--color-text-light);
}

.ab-header--scrolled .ab-header__menu > li > a:hover {
    color: var(--color-primary);
}

/* Menu items with dropdown */
.ab-menu-item {
    position: relative;
}
.has-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1rem;
}
/* Dropdown panel */
.ab-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg) var(--space-xl) calc(var(--space-lg) + 18px);
    min-width: 17rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal);
    z-index: 200;
    overflow: hidden;
}
.ab-dropdown__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 18px;
    overflow: hidden;
    line-height: 0;
}
.ab-dropdown__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}
.ab-dropdown__wave .dd-wave__parallax > use {
    animation: ddWaveMove 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.ab-dropdown__wave .dd-wave__parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 4s; }
.ab-dropdown__wave .dd-wave__parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 6s; }
.ab-dropdown__wave .dd-wave__parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 8s; }
@keyframes ddWaveMove {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}
.ab-dropdown--single {
    min-width: 14rem;
    padding: var(--space-lg) var(--space-xl) calc(var(--space-lg) + 18px);
}
.ab-menu-item:hover > .ab-dropdown,
.ab-menu-item:focus-within > .ab-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ab-dropdown__heading {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    white-space: nowrap;
}
.ab-dropdown ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.ab-dropdown ul li a {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}
.ab-dropdown ul li a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Burger (mobile) */
.ab-header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-white);
}

.ab-header--scrolled .ab-header__burger {
    color: var(--color-text);
}

.ab-burger__svg {
    width: 28px;
    height: 20px;
}

.ab-burger__wave {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 16px 10px;
}

.ab-header__burger.is-active .ab-burger__wave--1 {
    transform: translateY(5px) rotate(45deg);
}

.ab-header__burger.is-active .ab-burger__wave--2 {
    transform: translateY(-5px) rotate(-45deg);
}

.ab-nav__wave {
    display: none;
}

/* ─── Carte IDF (composant global) ───────────────────────────── */
.idf-map {
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    background: transparent;
}
.idf-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.idf-map__marker {
    cursor: pointer;
    text-decoration: none;
}
.idf-map__marker > circle:first-child {
    transition: fill var(--duration-normal) var(--ease-out);
}
.idf-map__marker:hover > circle:first-child {
    fill: rgba(3, 103, 178, 0.22);
}

/* Variante fond sombre (homepage gradient bleu) */
.idf-map--on-dark .idf-map__marker:hover > circle:first-child {
    fill: rgba(255, 255, 255, 0.28);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.ab-footer {
    position: relative;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding-block: var(--space-4xl) var(--space-xl);
    overflow: hidden;
}

.ab-footer .container {
    position: relative;
    z-index: 2;
}

.ab-footer__bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.ab-footer__bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    cursor: grab;
    will-change: transform, opacity;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.15);
    user-select: none;
    -webkit-user-select: none;
}
.ab-footer__bubble:active {
    cursor: grabbing;
}

.ab-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ab-footer__logo {
    display: block;
    margin-bottom: var(--space-md);
}
.ab-footer__logo-img {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.ab-footer__credentials {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--leading-snug);
    letter-spacing: 0.02em;
    margin: 0 0 var(--space-lg);
    max-width: 32ch;
}

.ab-footer__tagline {
    max-width: 28ch;
    line-height: var(--leading-loose);
}

.ab-footer__socials {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.ab-footer__socials a {
    color: #ffffff;
    transition: color var(--duration-fast) var(--ease-out);
}
.ab-footer__socials a:hover {
    color: var(--color-accent);
}

.ab-footer__heading {
    display: block;
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
}
.ab-footer__heading,
.ab-footer h4 {
    color: var(--color-white);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.ab-footer__links ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-xl);
    list-style: none;
    padding: 0;
    margin: 0;
}
.ab-footer__links ul li a {
    transition: color var(--duration-fast) var(--ease-out);
}
.ab-footer__links ul li a:hover {
    color: var(--color-accent);
}

.ab-footer__contact {
    margin-top: var(--space-2xl);
}
.ab-footer__contact ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-xl);
    list-style: none;
    padding: 0;
    margin: 0;
}
.ab-footer__contact ul li a {
    transition: color var(--duration-fast) var(--ease-out);
}
.ab-footer__contact ul li a:hover {
    color: var(--color-accent);
}
.ab-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.ab-footer__ancv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    max-width: 28ch;
}
.ab-footer__ancv-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: var(--leading-snug);
}
.ab-footer__ancv-logos {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.ab-footer__ancv-logos img {
    height: 2rem;
    width: auto;
    background: var(--color-white);
    padding: 0.3em 0.45em;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.ab-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: var(--text-sm);
}
.ab-footer__credit {
    text-align: right;
}
.ab-footer__legal {
    color: inherit;
    text-decoration: none;
}
.ab-footer__legal:hover {
    color: inherit;
    text-decoration: none;
}

/* ─── Wave Link Hover ────────────────────────────────────────── */
[data-wave-link] {
    position: relative;
    text-decoration: none;
    display: inline-block;
}
[data-wave-link] .wave-link-dot {
    position: absolute;
    left: 50%;
    bottom: -0.25em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
[data-wave-link]:hover .wave-link-dot,
.has-dropdown:hover > [data-wave-link] .wave-link-dot {
    opacity: 0;
}
[data-wave-link] .wave-link-svg {
    position: absolute;
    bottom: -0.35em;
    left: -4px;
    width: calc(100% + 8px);
    height: 10px;
    overflow: hidden;
    pointer-events: none;
}
[data-wave-link] .wave-link-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.16, 0, 0.1, 0.99);
}
[data-wave-link]:hover .wave-link-svg path {
    stroke-dashoffset: 0;
    transition-duration: 1s;
}

.ab-footer [data-wave-link] .wave-link-dot {
    bottom: -0.5em;
}
.ab-footer [data-wave-link] .wave-link-svg {
    bottom: -0.6em;
}

/* Cartes lieux homepage — la font des h3 est ~16px (var(--text-base)),
   la wave SVG fait 10px (= 0.625em) de hauteur ; il faut donc descendre
   le dot et la wave plus bas que les valeurs par défaut (calibrées sur
   du texte ~14px). */
.lieu-card h3 [data-wave-link] {
    padding-block: 0.6em;
}
.lieu-card h3 [data-wave-link] .wave-link-dot {
    bottom: -0.45em;
}
.lieu-card h3 [data-wave-link] .wave-link-svg {
    bottom: -0.55em;
}

/* ─── Goo Bubble Buttons ────────────────────────────────────── */
.btn-goo {
    position: relative;
    display: inline-flex;
}
.btn-goo > .btn {
    position: relative;
    z-index: 2;
}
.btn-goo__fx {
    position: absolute;
    width: 200%;
    height: 400%;
    top: -150%;
    left: -50%;
    filter: url(#goo-filter);
    pointer-events: none;
    z-index: 1;
}
.btn-goo__circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    opacity: 0;
}
.btn-goo__circle--tl {
    top: 40%;
    left: 27%;
}
.btn-goo__circle--br {
    bottom: 40%;
    right: 27%;
}
.btn-goo__bg {
    position: absolute;
    width: 50%;
    height: 25%;
    top: 50%;
    left: 25%;
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    opacity: 0;
}
@media (max-width: 768px) {
    .btn-goo__fx { display: none; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-height: 4rem;
        --z-header: 9999;
    }

    /* Header bar sits above the full-screen overlay */
    .ab-header__inner {
        position: relative;
        z-index: 2;
    }

    /* ── Full-screen nav overlay ─────────────────────────────── */
    .ab-header__nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: linear-gradient(170deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
        padding: calc(var(--header-height) + var(--space-2xl)) var(--space-xl) var(--space-3xl);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s;
    }

    .ab-header__nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* ── Menu list ── */
    .ab-header__menu {
        flex-direction: column;
        gap: 0;
    }

    /* Override desktop flex-row on li → stack link + dropdown vertically */
    .ab-header__menu > li {
        flex-direction: column;
        align-items: stretch;
        opacity: 0;
        transform: translateY(1.2rem);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .ab-header__nav.is-open .ab-header__menu > li {
        opacity: 1;
        transform: translateY(0);
    }
    .ab-header__nav.is-open .ab-header__menu > li:nth-child(1) { transition-delay: 0.06s; }
    .ab-header__nav.is-open .ab-header__menu > li:nth-child(2) { transition-delay: 0.12s; }
    .ab-header__nav.is-open .ab-header__menu > li:nth-child(3) { transition-delay: 0.18s; }
    .ab-header__nav.is-open .ab-header__menu > li:nth-child(4) { transition-delay: 0.24s; }
    .ab-header__nav.is-open .ab-header__menu > li:nth-child(5) { transition-delay: 0.30s; }

    /* ── Menu items ── */
    .ab-header__menu > li > a {
        color: var(--color-white) !important;
        font-size: 1.35rem;
        font-weight: var(--weight-medium);
        letter-spacing: 0.02em;
        text-transform: none;
        padding-block: var(--space-lg);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Dropdown chevron */
    .has-dropdown > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, 0.4);
        border-bottom: 2px solid rgba(255, 255, 255, 0.4);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: var(--space-md);
    }
    .has-dropdown.is-open > a::after {
        transform: rotate(-135deg);
    }

    .has-dropdown::after {
        display: none;
    }

    /* ── Dropdown accordion (opens DOWNWARD) ── */
    .ab-dropdown {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        min-width: 0 !important;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        padding: 0 !important;
        margin: 0;
        visibility: visible;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        transition: max-height 0.45s ease, opacity 0.3s ease;
    }

    .ab-menu-item.is-open > .ab-dropdown {
        max-height: 30rem;
        opacity: 1;
        padding: var(--space-md) 0 var(--space-md) var(--space-sm) !important;
    }

    .ab-dropdown__wave {
        display: none;
    }

    .ab-dropdown__heading {
        color: rgba(255, 255, 255, 0.4);
        font-size: var(--text-xs);
        margin-top: var(--space-md);
    }

    .ab-dropdown ul {
        gap: 0;
    }

    .ab-dropdown ul li a {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: var(--text-base);
        font-weight: var(--weight-regular);
        padding: var(--space-sm) var(--space-sm) !important;
        border-radius: var(--radius-sm);
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        white-space: normal !important;
        background: transparent !important;
    }

    .ab-dropdown ul li a:hover,
    .ab-dropdown ul li a:active {
        color: var(--color-white) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-left-color: var(--color-accent);
    }

    /* ── Mobile wave decoration (animated) ── */
    .ab-nav__wave {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.5s ease 0.15s;
    }
    .ab-header__nav.is-open .ab-nav__wave {
        opacity: 1;
    }
    .ab-nav__wave svg {
        display: block;
        width: 100%;
        height: 100%;
    }
    .ab-nav__wave .dd-wave__parallax > use {
        animation: ddWaveMove 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    }
    .ab-nav__wave .dd-wave__parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 4s; }
    .ab-nav__wave .dd-wave__parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 6s; }
    .ab-nav__wave .dd-wave__parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 8s; }

    /* ── Wave underline always visible + animated in mobile nav ── */
    .ab-header__menu [data-wave-link] .wave-link-dot {
        display: none !important;
    }
    .ab-header__menu [data-wave-link] .wave-link-svg {
        opacity: 1;
    }
    .ab-header__menu [data-wave-link] .wave-link-svg path {
        stroke: rgba(255, 255, 255, 0.5);
        stroke-dashoffset: 0 !important;
        animation: mobileWaveFlow 3s linear infinite;
    }
    @keyframes mobileWaveFlow {
        from { transform: translate(0, -5px); }
        to   { transform: translate(-63.12px, -5px); }
    }

    /* ── Burger ── */
    .ab-header__burger {
        display: flex;
        z-index: 3;
    }

    /* Keep logo + burger white when overlay is open */
    .is-menu-open .ab-header__logo-img {
        filter: brightness(0) invert(1) !important;
    }
    .is-menu-open .ab-header__burger {
        color: var(--color-white) !important;
    }
    /* Quand le menu mobile est ouvert, on doit retirer backdrop-filter
       du header. Sinon, `backdrop-filter` (ajouté par .ab-header--scrolled
       quand on a scrollé vers le bas) crée un containing block pour les
       descendants `position: fixed`, ce qui clippe .ab-header__nav à la
       hauteur du header (~60px) au lieu de couvrir tout l'écran.
       (Idem pour `filter` / `transform` → on neutralise les 3 par sécurité.) */
    .is-menu-open.ab-header--scrolled {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .is-menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        transform: none !important;
    }

    /* ── Other responsive ── */
    .ab-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .section {
        padding-block: var(--space-3xl);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE CARD (shared between homepage & blog listing)
   ═══════════════════════════════════════════════════════════════ */
.article-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
}
.article-card:hover { box-shadow: var(--shadow-lg); }
.article-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-light); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__img--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-border-light) 60%, hsl(202 40% 88%) 100%);
    color: var(--color-primary);
    opacity: .45;
}
.article-card__body { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.article-card__date {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}
.article-card__title {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: var(--leading-tight);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}
.article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: var(--leading-normal);
    margin-bottom: auto;
}
.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG LISTING PAGE (/actualites/)
   ═══════════════════════════════════════════════════════════════ */
.blog-hero {
    position: relative;
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    background: var(--color-primary-dark) var(--blog-hero-bg, none) center 5% / cover no-repeat;
    overflow: hidden;
}
.blog-hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--color-primary-dark) 88%, transparent) 0%,
        color-mix(in srgb, var(--color-primary) 62%, transparent) 100%);
}
.blog-hero__inner { max-width: 42rem; position: relative; z-index: 2; }
.blog-hero__badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs); font-weight: var(--weight-semibold);
    color: var(--color-accent-light);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}
.blog-hero__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}
.blog-hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.7);
    line-height: var(--leading-normal);
}
.blog-listing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.blog-listing__pagination {
    margin-top: var(--space-3xl);
    text-align: center;
}
.blog-listing__pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}
.blog-listing__pagination a,
.blog-listing__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}
.blog-listing__pagination a {
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
}
.blog-listing__pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.blog-listing__pagination span.current {
    background: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}
.blog-listing__empty {
    text-align: center;
    color: var(--color-text-light);
    padding: var(--space-4xl) 0;
    font-size: var(--text-lg);
}
@media (max-width: 1024px) {
    .blog-listing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-listing__grid { grid-template-columns: 1fr; }
    .blog-hero { padding-top: calc(var(--header-height) + var(--space-2xl)); padding-bottom: var(--space-2xl); }
}

/* ─── WhatsApp link (global) ──────────────────────────────────── */
/* L'icône hérite de la couleur du parent (currentColor) :
   - dans le footer (texte blanc) → icône blanche
   - dans une carte/section claire → icône bleue (--color-primary) */
.ab-wa-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
    vertical-align: middle;
    flex-shrink: 0;
}
.ab-wa-link:hover {
    color: var(--color-accent);
}
.ab-wa-link .ab-wa-svg { display: block; }

