/* ACODAF — styles spécifiques à la page d’accueil
   Extraits de l’ancien index.php lors de la modularisation. */

        /* Petit filtre événements — accueil */
        .home-event-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin: 18px 0 22px;
        }

        .home-event-filter {
            appearance: none;
            border: 1px solid #d8e5f0;
            background: #fff;
            color: #082C53;
            border-radius: 999px;
            padding: 7px 13px;
            font: inherit;
            font-size: .76rem;
            font-weight: 700;
            cursor: pointer;
            transition: background .2s ease, color .2s ease, border-color .2s ease;
        }

        .home-event-filter:hover {
            border-color: #1689F5;
            color: #1689F5;
        }

        .home-event-filter.is-active {
            background: #082C53;
            border-color: #082C53;
            color: #fff;
        }

        .event-row.home-filter-hidden {
            display: none;
        }

        .home-events-filter-empty {
            display: none;
            margin: 0 0 18px;
            padding: 16px 18px;
            border-radius: 14px;
            background: #F3F8FC;
            color: #5f748b;
            font-size: .88rem;
        }

        .home-events-filter-empty.is-visible {
            display: block;
        }

        @media (max-width: 620px) {
            .home-event-filters {
                gap: 6px;
                margin: 15px 0 18px;
            }

            .home-event-filter {
                padding: 7px 11px;
                font-size: .73rem;
            }
        }

        /* =========================================================
           ACODAF — POPUPS CONTACT + NEWSLETTER
        ========================================================= */

        .acodaf-toast-stack {
            position: fixed;
            z-index: 99999;
            top: 96px;
            right: 24px;
            width: min(420px, calc(100% - 32px));
            display: grid;
            gap: 12px;
            pointer-events: none;
        }

        .acodaf-toast {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 17px 18px;
            border-radius: 16px;
            background: #fff;
            border: 1px solid rgba(12,57,104,.12);
            box-shadow: 0 18px 55px rgba(4,31,58,.18);
            opacity: 0;
            transform: translateY(-12px);
            transition: opacity .25s ease, transform .25s ease;
            pointer-events: auto;
        }

        .acodaf-toast.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .acodaf-toast-icon {
            flex: 0 0 38px;
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            font-weight: 800;
            font-size: 1rem;
        }

        .acodaf-toast-success .acodaf-toast-icon {
            background: #e9f8ef;
            color: #198754;
        }

        .acodaf-toast-error .acodaf-toast-icon {
            background: #fff0f0;
            color: #c83e3e;
        }

        .acodaf-toast-copy {
            min-width: 0;
            flex: 1;
        }

        .acodaf-toast-copy strong {
            display: block;
            margin-bottom: 4px;
            color: #082c53;
            font-size: .96rem;
        }

        .acodaf-toast-copy p {
            margin: 0;
            color: #5e7184;
            font-size: .84rem;
            line-height: 1.55;
        }

        .acodaf-toast-close {
            border: 0;
            background: none;
            color: #6c7e90;
            font-size: 1.25rem;
            line-height: 1;
            cursor: pointer;
            padding: 2px 3px;
        }

        /* =========================================================
           NEWSLETTER ACODAF — VERSION ANIMÉE
        ========================================================= */

        .nl-overlay {
            --nl-navy: #082C53;
            --nl-blue: #1689F5;
            --nl-soft: #F3F8FC;
            --nl-white: #FFFFFF;
            --nl-text: #1d3552;
            --nl-muted: #5f748b;

            position: fixed;
            inset: 0;
            z-index: 99990;
            display: grid;
            place-items: center;
            padding: max(20px, env(safe-area-inset-top))
                     max(20px, env(safe-area-inset-right))
                     max(20px, env(safe-area-inset-bottom))
                     max(20px, env(safe-area-inset-left));
            background: rgba(4,22,44,.66);
            backdrop-filter: blur(7px);
            -webkit-backdrop-filter: blur(7px);
            opacity: 0;
            visibility: hidden;
            transition: opacity .5s ease, visibility .5s;
        }

        .nl-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

        .nl-card {
            position: relative;
            display: grid;
            grid-template-columns: .88fr 1.12fr;
            width: min(700px, 100%);
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px);
            overflow: hidden;
            border-radius: 28px;
            background: var(--nl-white);
            box-shadow: 0 40px 100px -20px rgba(2,14,30,.60),
                        0 0 0 1px rgba(255,255,255,.08);
            transform: translateY(28px) scale(.96);
            opacity: 0;
            transition: transform .8s cubic-bezier(.16,1.1,.3,1), opacity .6s ease;
        }

        .nl-overlay.is-open .nl-card {
            transform: none;
            opacity: 1;
        }

        .nl-visual {
            position: relative;
            min-height: 380px;
            overflow: hidden;
            display: grid;
            place-items: center;
            background: linear-gradient(155deg, #041e39 0%, var(--nl-navy) 52%, #0c5aa2 100%);
        }

        .nl-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(34px);
            opacity: .75;
            animation: nl-drift 9s ease-in-out infinite alternate;
        }

        .nl-orb.a {
            width: 190px;
            height: 190px;
            background: var(--nl-blue);
            top: -60px;
            left: -60px;
        }

        .nl-orb.b {
            width: 160px;
            height: 160px;
            background: #4b8fcf;
            bottom: -50px;
            right: -40px;
            animation-delay: -4s;
        }

        .nl-orb.c {
            width: 96px;
            height: 96px;
            background: #F3F8FC;
            top: 55%;
            left: 55%;
            opacity: .28;
            animation-delay: -2s;
        }

        @keyframes nl-drift {
            to { transform: translate(40px,30px) scale(1.15); }
        }

        .nl-ring {
            position: absolute;
            width: 235px;
            height: 235px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,.18);
        }

        .nl-ring.r2 {
            width: 310px;
            height: 310px;
            border-color: rgba(255,255,255,.10);
        }

        .nl-envelope {
            position: relative;
            width: 150px;
            animation: nl-float 5s ease-in-out infinite;
            filter: drop-shadow(0 22px 30px rgba(2,14,30,.38));
        }

        @keyframes nl-float {
            50% { transform: translateY(-14px) rotate(-1.5deg); }
        }

        .nl-envelope .e1 { fill: #041e39; }
        .nl-envelope .e3 { fill: #06284a; }
        .nl-envelope .e4 { fill: #0b5fa8; }
        .nl-envelope .e5 { fill: var(--nl-blue); }
        .nl-envelope .e-acc { fill: var(--nl-blue); }
        .nl-envelope .e-light { fill: #BFE0FF; }

        .nl-flap {
            transform-origin: 105px 62px;
            animation: nl-flap 5s ease-in-out infinite;
        }

        @keyframes nl-flap {
            0%,15% { transform: scaleY(1); }
            35%,70% { transform: scaleY(-.55); }
            90%,100% { transform: scaleY(1); }
        }

        .nl-letter { animation: nl-letter 5s ease-in-out infinite; }

        @keyframes nl-letter {
            0%,15% { transform: translateY(0); }
            40%,70% { transform: translateY(-38px); }
            90%,100% { transform: translateY(0); }
        }

        .nl-spark {
            position: absolute;
            color: #BFE0FF;
            animation: nl-twinkle 3.2s ease-in-out infinite;
        }

        .nl-spark svg { display: block; width: 100%; height: 100%; }
        .nl-spark.s1 { width: 26px; height: 26px; top: 20%; left: 18%; }
        .nl-spark.s2 { width: 16px; height: 16px; top: 28%; right: 20%; animation-delay: -1s; color: #fff; }
        .nl-spark.s3 { width: 20px; height: 20px; bottom: 22%; left: 24%; animation-delay: -2s; color: var(--nl-blue); }
        .nl-spark.s4 { width: 14px; height: 14px; bottom: 30%; right: 16%; animation-delay: -.5s; }

        @keyframes nl-twinkle {
            0%,100% { transform: scale(.6) rotate(0); opacity: .4; }
            50% { transform: scale(1.15) rotate(40deg); opacity: 1; }
        }

        .nl-badge {
            position: absolute;
            left: 22px;
            right: 22px;
            bottom: 22px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 16px;
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.18);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            font-size: .82rem;
            line-height: 1.35;
        }

        .nl-badge svg {
            flex: none;
            width: 22px;
            height: 22px;
            color: #BFE0FF;
        }

        .nl-body {
            padding: 34px 30px 28px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: auto;
        }

        .nl-body > * {
            opacity: 0;
            transform: translateY(14px);
            transition: opacity .6s ease, transform .6s ease;
        }

        .nl-overlay.is-open .nl-body > * {
            opacity: 1;
            transform: none;
        }

        .nl-overlay.is-open .nl-body > *:nth-child(1) { transition-delay: .35s; }
        .nl-overlay.is-open .nl-body > *:nth-child(2) { transition-delay: .45s; }

        .nl-title {
            font-family: 'Fraunces', Georgia, serif;
            font-weight: 600;
            font-size: 1.95rem;
            line-height: 1.08;
            color: var(--nl-navy);
            margin: 0 0 10px;
            letter-spacing: -.02em;
        }

        .nl-text {
            margin: 0 0 16px;
            color: var(--nl-muted);
            font-size: .84rem;
            line-height: 1.65;
            max-width: 38ch;
        }

        .nl-perks {
            list-style: none;
            margin: 0 0 18px;
            padding: 0;
            display: grid;
            gap: 8px;
        }

        .nl-perks li {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: .84rem;
            font-weight: 600;
            color: var(--nl-text);
        }

        .nl-perks .ic {
            flex: none;
            width: 28px;
            height: 28px;
            border-radius: 10px;
            display: grid;
            place-items: center;
            background: var(--nl-soft);
            color: var(--nl-blue);
        }

        .nl-perks svg { width: 17px; height: 17px; }

        .nl-field {
            position: relative;
            margin-bottom: 6px;
        }

        .nl-field > svg {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 19px;
            height: 19px;
            color: #8CA3BA;
            pointer-events: none;
            transition: color .25s;
        }

        .nl-field input {
            width: 100%;
            box-sizing: border-box;
            padding: 13px 14px 13px 42px;
            font: inherit;
            font-size: 16px;
            color: var(--nl-text);
            background: #fff;
            border: 1.5px solid #D5E3F1;
            border-radius: 14px;
            outline: none;
            transition: border-color .25s, box-shadow .25s;
        }

        .nl-field input::placeholder { color: #9FB2C6; }
        .nl-field input:focus {
            border-color: var(--nl-blue);
            box-shadow: 0 0 0 4px rgba(22,137,245,.14);
        }
        .nl-field:focus-within > svg { color: var(--nl-blue); }
        .nl-field.has-error input { border-color: #d23b5f; animation: nl-shake .4s; }

        @keyframes nl-shake {
            25% { transform: translateX(-6px); }
            75% { transform: translateX(6px); }
        }

        .nl-error {
            min-height: 18px;
            margin: 0 0 6px;
            font-size: .80rem;
            color: #c02d52;
        }

        .nl-btn {
            position: relative;
            width: 100%;
            padding: 14px 18px;
            border: 0;
            border-radius: 14px;
            cursor: pointer;
            font: inherit;
            font-weight: 700;
            font-size: .94rem;
            color: #fff;
            overflow: hidden;
            background: linear-gradient(110deg, #1689F5, #0B69BD 60%, #1689F5);
            background-size: 200% 100%;
            box-shadow: 0 14px 28px -10px rgba(22,137,245,.65);
            transition: transform .25s, box-shadow .25s, background-position .6s;
        }

        .nl-btn:hover {
            transform: translateY(-2px);
            background-position: 100% 0;
            box-shadow: 0 18px 34px -10px rgba(22,137,245,.78);
        }

        .nl-btn:active { transform: translateY(0); }
        .nl-btn:disabled { opacity: .75; cursor: wait; }

        .nl-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -60%;
            width: 40%;
            height: 100%;
            background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
            transform: skewX(-20deg);
            animation: nl-shine 3.6s ease-in-out 1.6s infinite;
        }

        @keyframes nl-shine {
            0% { left: -60%; }
            35%,100% { left: 140%; }
        }

        .nl-fine {
            margin: 10px 0 0;
            text-align: center;
            font-size: .78rem;
            color: var(--nl-muted);
        }

        .nl-skip {
            align-self: center;
            margin-top: 8px;
            background: none;
            border: 0;
            padding: 8px 10px;
            font: inherit;
            font-size: .82rem;
            color: var(--nl-muted);
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-color: rgba(95,116,139,.35);
        }

        .nl-skip:hover { color: var(--nl-navy); }

        .nl-close {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 3;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 0;
            cursor: pointer;
            display: grid;
            place-items: center;
            background: rgba(8,44,83,.07);
            color: var(--nl-navy);
            transition: transform .35s, background .25s;
        }

        .nl-close:hover {
            background: rgba(8,44,83,.14);
            transform: rotate(90deg);
        }

        .nl-close svg { width: 18px; height: 18px; }
        .nl-overlay :focus-visible { outline: 3px solid var(--nl-blue); outline-offset: 2px; }

        .nl-success {
            display: none;
            text-align: center;
            padding: 20px 0;
        }

        .nl-card.nl-done .nl-form-zone { display: none; }
        .nl-card.nl-done .nl-success { display: block; }
        .nl-card.nl-done .nl-skip { display: none; }

        .nl-check { width: 74px; height: 74px; margin: 0 auto 22px; }
        .nl-check circle {
            fill: none;
            stroke: var(--nl-blue);
            stroke-width: 3;
            stroke-dasharray: 252;
            stroke-dashoffset: 252;
            animation: nl-check-draw .7s ease forwards;
        }
        .nl-check path {
            fill: none;
            stroke: var(--nl-navy);
            stroke-width: 4;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 60;
            stroke-dashoffset: 60;
            animation: nl-check-draw .5s ease .6s forwards;
        }

        @keyframes nl-check-draw { to { stroke-dashoffset: 0; } }

        @media (max-width: 1024px) {
            .nl-card { width: min(680px,100%); }
            .nl-visual { min-height: 360px; }
            .nl-body { padding: 30px 26px 24px; }
            .nl-title { font-size: 1.85rem; }
            .nl-envelope { width: 140px; }
            .nl-ring { width: 220px; height: 220px; }
            .nl-ring.r2 { width: 290px; height: 290px; }
        }

        @media (max-width: 760px) {
            .acodaf-toast-stack {
                top: 82px;
                right: 16px;
                left: 16px;
                width: auto;
            }

            .nl-overlay { align-items: end; padding: 0; }
            .nl-card {
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr;
                width: 100%;
                max-height: 92vh;
                max-height: 92dvh;
                border-radius: 26px 26px 0 0;
                overflow-y: auto;
                overscroll-behavior: contain;
                transform: translateY(100%);
                opacity: 1;
            }
            .nl-overlay.is-open .nl-card { transform: none; }
            .nl-visual { min-height: 128px; height: 128px; }
            .nl-envelope { width: 96px; }
            .nl-ring, .nl-badge, .nl-spark.s3, .nl-spark.s4 { display: none; }
            .nl-orb.a { width: 160px; height: 160px; }
            .nl-orb.b { width: 140px; height: 140px; }
            .nl-body { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); overflow: visible; }
            .nl-title { font-size: 1.75rem; margin-bottom: 10px; }
            .nl-text { font-size: .92rem; margin-bottom: 16px; max-width: none; }
            .nl-perks { gap: 9px; margin-bottom: 18px; }
            .nl-perks li { font-size: .87rem; }
            .nl-perks .ic { width: 30px; height: 30px; }
            .nl-close { top: 10px; right: 10px; width: 42px; height: 42px; background: rgba(255,255,255,.18); color: #fff; }
            .nl-skip { padding: 12px; font-size: .85rem; }
        }

        @media (max-width: 380px) {
            .nl-title { font-size: 1.55rem; }
            .nl-body { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
            .nl-perks li:nth-child(2) { display: none; }
        }

        @media (max-height: 520px) and (orientation: landscape) {
            .nl-overlay { align-items: center; padding: 10px; }
            .nl-card {
                grid-template-columns: .7fr 1.3fr;
                grid-template-rows: none;
                max-height: calc(100dvh - 20px);
                border-radius: 20px;
                transform: translateY(30px);
            }
            .nl-overlay.is-open .nl-card { transform: none; }
            .nl-visual { min-height: 0; height: auto; }
            .nl-envelope { width: 110px; }
            .nl-body { padding: 20px 24px; overflow: auto; }
            .nl-title { font-size: 1.5rem; }
            .nl-perks, .nl-text { display: none; }
            .nl-close { background: rgba(8,44,83,.08); color: var(--nl-navy); }
        }

        @media (prefers-reduced-motion: reduce) {
            .nl-overlay *, .nl-overlay *::after {
                animation: none !important;
                transition-duration: .01s !important;
                transition-delay: 0s !important;
            }
