/* ========================================
   ABS91 - Amicale Badminton Spinolienne
   Style principal
   ======================================== */

/* === VARIABLES CSS === */
:root {
    /* Couleurs ABS91 — tigre bleu */
    --color-cyan: #00B7E3;
    --color-cyan-hover: #009BC5;
    --color-teal: #005564;
    --color-teal-hover: #003D4A;

    /* Accent chaud — petites touches */
    --color-accent: #FF6B35;
    --color-accent-hover: #e55a2b;

    /* Aliases utilises dans les composants */
    --primary-cyan: var(--color-cyan);
    --primary-cyan-hover: var(--color-cyan-hover);
    --primary-dark: var(--color-teal);
    --primary-teal: var(--color-teal);
    --primary-teal-hover: var(--color-teal-hover);
    --accent-light: var(--color-cyan);
    --accent-light-soft: rgba(0, 183, 227, 0.1);

    --bg-light: #EFF9FC;
    --bg-warm: #E4F5FA;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #E5E9EB;
    --gray-medium: #5F6B72;
    --gray-dark: #1A2B30;

    /* Typographie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Bordures */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 50px;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 86, 100, 0.07);
    --shadow-md: 0 4px 20px rgba(0, 86, 100, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 86, 100, 0.14);
    --shadow-xl: 0 16px 48px rgba(0, 86, 100, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(0, 183, 227, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* clip (et non hidden) : empeche tout debordement horizontal
       sans casser position: sticky */
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    /* Pas d'overflow-x: hidden ici : combine a l'overflow-x: clip du html,
       il transformerait le body en conteneur de scroll et casserait
       les position: sticky (header, banniere d'accueil) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* clip les transforms hors-champ des reveals .observe-left/right
       sans creer de conteneur de scroll (le sticky continue de marcher) */
    overflow-x: clip;
}

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

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

a:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul, ol {
    list-style: none;
}

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

button:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.3px;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    max-width: 70ch;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-cyan); }
.text-cyan { color: var(--color-cyan); }
.text-teal { color: var(--color-teal); }
.text-dark { color: var(--primary-dark); }
.text-muted { color: var(--gray-medium); }
.text-accent { color: var(--color-accent); }
.text-lg { font-size: 1.25rem; }
.fw-600 { font-weight: 600; }
.link-highlight { color: var(--primary-cyan); font-size: 1.25rem; font-weight: 600; }

.intro-text {
    font-size: 1.125rem;
    color: var(--gray-medium);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* Section heading with decorative underline */
.section h2.text-center,
.section-alt h2.text-center {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section h2.text-center::after,
.section-alt h2.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

/* === HEADER & NAVIGATION === */
.header {
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

/* Le flou est porte par un pseudo-element : un backdrop-filter sur
   .header en ferait le containing block des descendants fixed
   (.nav-wrap) qui se caleraient sur le header au lieu du viewport */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    z-index: -1;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-medium);
}

/* Sur desktop le wrapper est transparent pour le layout (le ul reste
   enfant flex direct de la navbar) ; sur mobile il devient un cadre
   fixe plein ecran qui clippe le panneau hors-champ — sans lui, le
   panneau cache elargirait le viewport mobile (page dezoomee) */
.nav-wrap {
    display: contents;
}

.nav-menu {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.nav-link {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

/* Soulignement anime des liens de nav (sauf bouton Contact) */
.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.nav-link:not(.btn):hover::after,
.nav-link:not(.btn).active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    background-color: rgba(0, 183, 227, 0.06);
    color: var(--primary-cyan);
    border-radius: var(--radius-sm);
}

.nav-link.active {
    color: var(--primary-cyan);
    font-weight: 600;
    background-color: rgba(0, 183, 227, 0.08);
    border-radius: var(--radius-sm);
}

.nav-menu .btn.btn-primary {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
    z-index: 1002;
}

.nav-toggle:hover span {
    background-color: var(--primary-cyan);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile menu backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    /* Indispensable : invisible, le voile ne doit pas intercepter
       les taps sur le contenu (liens morts sur mobile sinon) */
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

/* Reflet qui balaie le bouton au survol */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.btn:hover::before {
    left: 130%;
}

/* Onde au clic (injectee par JS) */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: btnRipple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btnRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: linear-gradient(135deg, #FF8A50, var(--color-accent));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.45);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: var(--gray-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.btn-outline:hover {
    background-color: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* CTA section buttons (white on dark bg) */
.btn-cta-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-cta-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-cta-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-cta-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* === HERO BANNER (index — logo roulant) === */
.hero-banner-wrapper {
    height: 250vh;
    margin-top: calc(-1 * var(--header-h, 0px));
}

.hero-banner {
    position: sticky;
    top: var(--header-h, 0px);
    height: calc(100vh - var(--header-h, 0px));
    overflow: hidden;
}

.hero-banner-scene {
    position: absolute;
    inset: 0;
}

/* Image arriere (revelee par le logo) */
.hero-banner-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-banner-img--back {
    background: linear-gradient(rgba(0, 85, 100, 0.4), rgba(0, 40, 50, 0.5)), url('../media/equipe-coupe-essonne.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Image avant (cachee progressivement) — par-dessus la back */
.hero-banner-img--front {
    background: linear-gradient(rgba(0, 85, 100, 0.4), rgba(0, 40, 50, 0.5)), url('../media/gymnasemil.webp');
    background-size: cover;
    background-position: center;
    z-index: 2;
    clip-path: inset(0 0 0 0);
    will-change: clip-path;
}

/* Logo qui roule — prend toute la hauteur du bandeau */
.hero-banner-logo {
    position: absolute;
    top: -1%;
    height: 102%;
    width: auto;
    aspect-ratio: 1;
    left: 100%;
    border-radius: 50%;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

/* Contenu texte — vit dans chaque image, clip avec elle */
.hero-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-banner-content h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-banner-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 600px;
}

.hero-banner-content .hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Entree animee du texte de la banniere (image avant uniquement) */
.hero-banner-img--front h1 {
    animation: heroRise 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-banner-img--front p {
    animation: heroRise 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-banner-img--front .hero-buttons {
    animation: heroRise 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Indicateur de scroll en bas de la banniere — clic = sauter l'intro */
.scroll-cue {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.85;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 6;
    cursor: pointer;
    /* zone de tap confortable (~44px) */
    padding: 10px 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: opacity var(--transition-fast);
}

.scroll-cue:hover {
    opacity: 1;
}

.scroll-cue:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@media (max-width: 768px) {
    /* Course de scroll raccourcie : l'animation du logo se joue
       sur ~90vh au lieu de ~150vh */
    .hero-banner-wrapper {
        height: 190vh;
    }

    /* Banniere plein ecran : evite le bandeau blanc sous la banniere
       sticky pendant l'animation */
    .hero-banner {
        height: calc(100vh - var(--header-h, 0px));
        height: calc(100svh - var(--header-h, 0px));
    }

    /* Logo reduit en simple detail decoratif qui roule le long du sol */
    .hero-banner-logo {
        top: auto;
        bottom: 16px;
        height: auto;
        width: min(36vw, 160px);
    }

    .hero-banner-content {
        text-align: center;
    }

    .hero-banner-content .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-banner-content .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === HERO SECTION (pages internes) === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-teal);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 75%, rgba(0, 183, 227, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 50%);
    animation: heroGlow 9s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from {
        opacity: 0.7;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.12);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1200 60'%3E%3Cpath fill='%23FFFFFF' d='M0,60 L0,30 Q300,0 600,30 T1200,30 L1200,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 60px;
    z-index: 2;
}

.hero-inner {
    min-height: 400px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 100%;
    animation: heroRise 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .hero-buttons {
    animation: heroRise 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* === CTA SECTION === */
.section-cta {
    background-color: var(--color-teal);
    color: var(--white);
    text-align: center;
    position: relative;
}

.section-cta h2 {
    color: var(--white);
}

.section-cta .btn-cta-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-cta p {
    font-size: 1.25rem;
    max-width: 100%;
    margin: 0 auto var(--spacing-lg);
}

.section-cta .intro-text {
    color: rgba(255, 255, 255, 0.9);
}

.section-cta .cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.cards-grid-sm {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Barre degradee revelee au survol */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(0, 183, 227, 0.2);
}

/* Pendant le tilt 3D (JS), le transform doit suivre la souris sans latence */
.card.is-tilting {
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
    will-change: transform;
}

.card-featured {
    border: 2px solid var(--primary-cyan);
    background-color: var(--bg-light);
}

.card-featured:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 32px rgba(0, 183, 227, 0.15);
}

.card-center {
    text-align: center;
}

.card-center p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card-center > i {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    color: var(--color-cyan);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-cyan), #0090B8);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 6px 18px rgba(0, 183, 227, 0.3);
    transition: var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 10px 26px rgba(0, 183, 227, 0.4);
}

.card:nth-child(3n+2) .card-icon {
    background: linear-gradient(135deg, #007A91, var(--primary-dark));
    box-shadow: 0 6px 18px rgba(0, 85, 100, 0.3);
}

.card:nth-child(3n) .card-icon {
    background: linear-gradient(135deg, #FF8A50, var(--color-accent));
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

.card-icon-blue {
    background: var(--primary-dark) !important;
}

.card-icon-center {
    margin: 0 auto var(--spacing-sm);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.card-text {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Card dark variant (newsletter, social) */
.card-dark {
    background-color: var(--color-teal);
    color: var(--white);
    border: none;
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
}

.card-dark:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-dark h2,
.card-dark h3 {
    color: var(--white);
}

.card-dark p,
.card-dark .card-text,
.card-dark .intro-text,
.card-dark a:not(.btn) {
    color: rgba(255, 255, 255, 0.9);
}

.card-dark p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card-dark .social-links {
    justify-content: center;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--accent-light-soft);
    color: var(--gray-dark);
}

.badge-primary {
    background-color: var(--color-accent);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.badge-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Filter badges */
.badge-filter {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.badge-filter:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.badge-filter:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* === STATS === */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    background: linear-gradient(135deg, #FF8A50, var(--color-accent) 60%, #E04A1A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-medium);
    font-weight: 500;
}

/* === FOOTER === */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    color: var(--white);
}

.social-link:hover {
    background-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 183, 227, 0.4);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* === FORMS === */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem var(--spacing-sm);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    background-color: var(--bg-light);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:hover {
    border-color: var(--accent-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 183, 227, 0.15);
    background-color: var(--white);
}

.form-control.error {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-error {
    display: none;
    color: var(--primary-cyan);
    font-size: 0.875rem;
    margin-top: 4px;
    align-items: center;
    gap: 4px;
}

.form-error.visible {
    display: flex;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea.form-control {
    min-height: 150px;
    max-height: 400px;
    resize: vertical;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 90px;
    right: var(--spacing-md);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    max-width: 400px;
    border-left: 4px solid var(--primary-dark);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-left-color: var(--primary-cyan);
}

.toast-error .toast-icon {
    color: var(--primary-cyan);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.925rem;
}

.toast-close {
    color: var(--gray-medium);
    font-size: 1.25rem;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--gray-dark);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom, 0px));
    right: calc(var(--spacing-md) + env(safe-area-inset-right, 0px));
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.45);
}

.scroll-top:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--primary-cyan);
}

/* === UTILITIES === */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.pt-3 { padding-top: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-md); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Inline flex helpers */
.d-flex { display: flex; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.flex-wrap { flex-wrap: wrap; }

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--spacing-xs);
    }

    .nav-link {
        padding: var(--spacing-xs) 0.6rem;
        font-size: 0.925rem;
    }

    .grid-2 {
        gap: var(--spacing-md);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-backdrop {
        display: block;
    }

    .nav-wrap {
        display: block;
        position: fixed;
        /* Le backdrop-filter du header en fait le containing block des
           descendants fixed : inset: 0 se calerait sur le header (75px).
           On dimensionne donc explicitement — le header sticky etant
           toujours en haut du viewport, top: 0 + 100dvh = plein ecran */
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        pointer-events: none;
        z-index: 999;
    }

    .nav-menu {
        position: absolute;
        top: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: auto;
        flex-direction: column;
        background-color: var(--white);
        width: min(280px, 82vw);
        height: 100%;
        padding: 80px var(--spacing-md) var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: transform var(--transition-normal), visibility var(--transition-normal);
        gap: var(--spacing-sm);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu .nav-link {
        /* block : en inline, le padding vertical ne pousse pas la ligne
           et les zones cliquables se chevauchent */
        display: block;
        padding: var(--spacing-sm);
        font-size: 1.05rem;
        border-radius: var(--radius-md);
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background-color: var(--bg-light);
    }

    .nav-menu .btn.btn-primary {
        background-color: var(--primary-cyan);
        color: var(--white);
        text-align: center;
        margin-top: var(--spacing-sm);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 450px;
        text-align: center;
    }

    .hero-inner {
        min-height: 350px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .toast-container {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .toast {
        max-width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 400px;
    }

    .hero-inner {
        min-height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* === ANIMATIONS (reveal au scroll) === */
/* Les elements .observe sont masques uniquement si le JS est actif (classe .js sur <html>),
   puis reveles avec un decalage en cascade via --stagger (defini par le JS) */
.js .observe {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stagger, 0) * 90ms);
}

.js .observe-left {
    transform: translateX(-44px);
}

.js .observe-right {
    transform: translateX(44px);
}

.js .observe-zoom {
    transform: scale(0.92);
}

.js .observe.fade-in {
    opacity: 1;
    transform: none;
}

/* Le soulignement des titres de section grandit a l'apparition */
.js h2.observe.text-center::after {
    transform: scaleX(0);
    transition: transform 0.6s 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.js h2.observe.text-center.fade-in::after {
    transform: scaleX(1);
}

/* === PREFERS REDUCED MOTION === */
@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;
    }

    .js .observe {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js h2.observe.text-center::after {
        transform: scaleX(1);
    }

    .marquee-track {
        animation: none;
    }

    .float-deco,
    .scroll-cue {
        display: none;
    }

    .card:hover,
    .stat-item:hover,
    .btn:hover,
    .social-link:hover,
    .scroll-top:hover {
        transform: none;
    }
}

/* === ADRESSE COPIABLE === */
.copyable-address {
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin: -4px;
}

.copyable-address:hover {
    background-color: var(--accent-light-soft);
}

/* === GALLERY (galerie.html) === */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.photo-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.photo-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-xl);
}

.photo-item:focus-visible {
    outline: 3px solid var(--primary-teal);
    outline-offset: 3px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Reflet qui balaie la photo au survol */
.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.photo-item:hover::after {
    left: 135%;
}

/* ========================================
   GLOW UP — nouveaux composants visuels
   ======================================== */

/* === BARRE DE PROGRESSION DE SCROLL === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1100;
    pointer-events: none;
}

/* === MARQUEE (bandeau defilant) === */
.marquee {
    background: linear-gradient(90deg, var(--color-teal), #007A91, var(--color-teal));
    color: var(--white);
    overflow: hidden;
    padding: 0.8rem 0;
    position: relative;
    z-index: 3;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
    white-space: nowrap;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marquee-track i {
    color: var(--color-cyan);
    font-size: 0.7rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === DECORATIONS FLOTTANTES (injectees par JS dans hero et CTA) === */
.float-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatDrift ease-in-out infinite alternate;
}

.float-deco--dot {
    background: radial-gradient(circle, rgba(0, 183, 227, 0.35), rgba(0, 183, 227, 0.05));
    filter: blur(2px);
}

.float-deco--ring {
    border: 2px solid rgba(255, 255, 255, 0.14);
}

.float-deco--glow {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 70%);
    filter: blur(4px);
}

@keyframes floatDrift {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(14px, -26px) rotate(10deg); }
}

/* === SECTION CTA (fond anime) === */
.section-cta {
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(0, 183, 227, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(255, 107, 53, 0.15) 0%, transparent 45%);
    animation: heroGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.section-cta .container {
    position: relative;
    z-index: 1;
}

/* === LIGHTBOX (apparition animee) === */
.lightbox {
    animation: lightboxFade 0.25s ease-out;
}

.lightbox-content img {
    animation: lightboxZoom 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightboxFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === LOGO (rotation au survol) === */
.logo-img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-img {
    transform: rotate(360deg);
}

/* === FOOTER (liseret degrade) === */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal), var(--color-cyan));
}

/* === SCROLLBAR PERSONNALISEE === */
::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-cyan), var(--color-teal));
    border-radius: 6px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-hover);
}

/* === SELECTION DE TEXTE === */
::selection {
    background: var(--color-cyan);
    color: var(--white);
}

/* === LIEN D'EVITEMENT (accessibilite) === */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
    z-index: 1200;
}

.skip-link:focus {
    left: 0;
}

/* === BADGES SUPPLEMENTAIRES === */
.badge-cyan {
    background-color: var(--color-cyan);
    color: var(--white);
}

/* Cartes masquees par les filtres d'actualites */
.is-hidden {
    display: none !important;
}

/* === FAQ ACCORDEON === */
.faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }

.faq-question:hover {
    color: var(--color-cyan);
}

.faq-question > .fa-question-circle {
    color: var(--color-teal);
    flex-shrink: 0;
}

.faq-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-medium);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 3rem;
    color: var(--gray-medium);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
    max-width: 100%;
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }
}

/* === PLANNING HEBDOMADAIRE (horaires) === */
.planning {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.planning-day {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.planning-day-name {
    font-family: var(--font-heading);
    font-weight: 800;
    text-align: center;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--bg-light);
}

.planning-slot {
    border-radius: var(--radius-md);
    padding: 0.75rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: var(--transition-normal);
}

.planning-slot + .planning-slot {
    margin-top: var(--spacing-xs);
}

.planning-slot:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.planning-slot--loisir {
    background: linear-gradient(135deg, var(--color-cyan), #0090B8);
}

.planning-slot--jeunes {
    background: linear-gradient(135deg, #FF8A50, var(--color-accent));
}

.planning-slot--compet {
    background: linear-gradient(135deg, #007A91, var(--color-teal));
}

.planning-hours {
    font-weight: 700;
    font-family: var(--font-heading);
}

.planning-label {
    font-size: 0.85rem;
    opacity: 0.95;
}

.planning-place {
    font-size: 0.78rem;
    opacity: 0.85;
}

.planning-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -1px;
}

.legend-dot--loisir { background: var(--color-cyan); }
.legend-dot--jeunes { background: var(--color-accent); }
.legend-dot--compet { background: var(--color-teal); }

@media (max-width: 1024px) {
    .planning {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .planning {
        grid-template-columns: 1fr;
    }
}

/* === TIMELINE (a propos) === */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--color-cyan), var(--color-teal));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 var(--spacing-lg) var(--spacing-lg) 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding: 0 0 var(--spacing-lg) var(--spacing-lg);
}

/* Resserre l'alternance gauche/droite pour limiter les vides */
.timeline-item:not(:first-child) {
    margin-top: -5.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(50%);
    background: var(--color-teal);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 1;
    white-space: nowrap;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: 0;
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    margin-top: 2.8rem;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--gray-medium);
    margin-bottom: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 0 0 var(--spacing-lg) calc(var(--spacing-lg) + 10px);
    }

    /* En pile : pas de chevauchement */
    .timeline-item:not(:first-child) {
        margin-top: 0;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        /* Cale a gauche sans translateX(-50%) : les pastilles larges
           ("Annees 2000") sortiraient de l'ecran */
        left: 0;
        transform: none;
    }
}

/* === CARTES GOOGLE MAPS === */
.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-sm);
    aspect-ratio: 16 / 10;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* === PAGE LOADER (ecran de chargement) === */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--color-teal) 0%, #007A91 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-logo {
    width: 90px;
    height: 90px;
    animation: loaderPulse 1.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.page-loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.page-loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-logo { animation: none; opacity: 1; }
    .page-loader-bar::after { animation: none; transform: translateX(0); }
    .page-loader { transition-duration: 0.01ms; }
}

/* === PAGE 404 === */
.error-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(6rem, 20vw, 11rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s, color 0.3s;
    flex-shrink: 0;
    margin-right: var(--spacing-xs);
    border-color: var(--color-teal);
}

.theme-toggle:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    background-color: rgba(28, 203, 245, 0.1);
    transform: rotate(20deg);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }

html.dark .theme-toggle .fa-sun { display: inline; }
html.dark .theme-toggle .fa-moon { display: none; }
html.dark .theme-toggle { color: var(--color-cyan); border-color: var(--color-cyan); }

@media (max-width: 768px) {
    .theme-toggle {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .theme-toggle:hover {
        transform: translateY(-50%) rotate(20deg);
    }
}

/* ========================================
   DARK MODE
   Cohesive dark navy/charcoal theme matching the teal brand identity.
   Placed after all other rules including prefers-reduced-motion.
   Does NOT touch page-loader or hero-banner images/overlays.
   ======================================== */
html.dark {
    --bg-light: #141425;
    --bg-warm: #1a1a2e;
    --white: #121220;
    --black: #e0e0e0;
    --gray-light: #2a2a3d;
    --gray-medium: #a0aab0;
    --gray-dark: #e8ecee;

    --color-cyan: #1ccbf5;
    --color-cyan-hover: #10b5dc;
    --color-teal: #007A91;
    --color-teal-hover: #005E70;
    --color-accent: #FF7D4D;
    --color-accent-hover: #ff6530;

    --accent-light-soft: rgba(28, 203, 245, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);

    --focus-ring: 0 0 0 3px rgba(28, 203, 245, 0.45);

    color: var(--gray-dark);
    background-color: var(--white);
}

html.dark body { color: var(--gray-dark); background-color: var(--white); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: #f0f2f4; }
html.dark .intro-text { color: var(--gray-medium); }
html.dark .text-dark { color: #d0d8dc; }
html.dark ::selection { background: var(--color-teal); color: #f0f4f6; }
html.dark ::-webkit-scrollbar-track { background: var(--bg-light); }
html.dark ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--color-cyan), var(--color-teal)); border-color: var(--bg-light); }
html.dark ::-webkit-scrollbar-thumb:hover { background: var(--color-cyan); }
html.dark .header { background-color: rgba(18, 18, 32, 0.85); }
html.dark .header.scrolled { background-color: rgba(18, 18, 32, 0.95); }
html.dark .nav-link:hover { color: var(--color-cyan); }
html.dark .nav-link.active { color: var(--color-cyan); }
html.dark .section-alt { background-color: var(--bg-light); }
html.dark .card { background-color: var(--bg-warm); border-color: transparent; }
html.dark .card:hover { border-color: rgba(28, 203, 245, 0.2); }
html.dark .card-featured { background-color: var(--bg-light); border-color: var(--color-cyan); }
html.dark .card-featured:hover { border-color: var(--color-accent); }
html.dark .card-title { color: #f0f2f4; }
html.dark .card-text { color: var(--gray-medium); }
html.dark .card-icon { box-shadow: 0 6px 18px rgba(28, 203, 245, 0.2); }
html.dark .card:hover .card-icon { box-shadow: 0 10px 26px rgba(28, 203, 245, 0.3); }
html.dark .card:nth-child(3n+2) .card-icon { box-shadow: 0 6px 18px rgba(0, 85, 100, 0.25); }
html.dark .card:nth-child(3n) .card-icon { box-shadow: 0 6px 18px rgba(255, 107, 53, 0.2); }
html.dark .card-dark { background-color: var(--color-teal); }
html.dark .badge { background-color: var(--accent-light-soft); color: var(--gray-dark); }
html.dark .badge-primary { background-color: var(--color-accent); color: #fff; }
html.dark .badge-secondary { background-color: var(--color-teal); color: #fff; }
html.dark .badge-dark { background-color: #2a2a3d; color: var(--gray-dark); }
html.dark .badge-cyan { background-color: var(--color-cyan); color: #0a0a14; }
html.dark .badge-filter { background-color: var(--bg-warm); color: var(--gray-dark); border-color: var(--gray-light); }
html.dark .badge-filter:hover { background-color: var(--accent-light-soft); color: var(--color-cyan); }
html.dark .btn-secondary { background-color: var(--color-teal); }
html.dark .btn-secondary:hover { background-color: var(--color-teal-hover); }
html.dark .btn-outline { color: var(--color-cyan); border-color: var(--color-cyan); }
html.dark .btn-outline:hover { background-color: var(--color-cyan); color: #0a0a14; }
html.dark .btn-cta-primary { background-color: #f0f2f4; color: var(--color-teal); }
html.dark .btn-cta-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
html.dark .btn-cta-outline:hover { background-color: rgba(255, 255, 255, 0.15); }
html.dark .form-control { background-color: var(--bg-light); border-color: var(--gray-light); color: var(--gray-dark); }
html.dark .form-control::placeholder { color: #5a6570; }
html.dark .form-control:hover { border-color: var(--color-cyan); }
html.dark .form-control:focus { border-color: var(--color-cyan); background-color: var(--bg-warm); box-shadow: 0 0 0 3px rgba(28, 203, 245, 0.15); }
html.dark .form-label { color: #d0d8dc; }
html.dark select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aab0' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); }
html.dark .stat-item { background-color: var(--bg-warm); }
html.dark .stat-item:hover { border-color: var(--color-cyan); }
html.dark .stat-label { color: var(--gray-medium); }
html.dark .toast { background-color: var(--bg-warm); border-left-color: var(--color-teal); color: var(--gray-dark); }
html.dark .toast-close { color: var(--gray-medium); }
html.dark .toast-close:hover { color: var(--gray-dark); }
html.dark .scroll-top { background-color: var(--color-accent); color: #fff; box-shadow: 0 4px 15px rgba(255, 125, 77, 0.25); }
html.dark .scroll-top:hover { box-shadow: 0 6px 25px rgba(255, 125, 77, 0.4); }
html.dark .hero h1 { color: #fff; }
html.dark .hero::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1200 60'%3E%3Cpath fill='%23121220' d='M0,60 L0,30 Q300,0 600,30 T1200,30 L1200,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 60px;
}
html.dark .section-cta { background-color: var(--color-teal); }
html.dark .marquee { background: linear-gradient(90deg, var(--color-teal), #006A7E, var(--color-teal)); }
html.dark .marquee-track i { color: var(--color-cyan); }
html.dark .footer { background-color: #0a0a14; }
html.dark .footer-section h3 { color: #f0f2f4; }
html.dark .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }
html.dark .timeline-content { background: var(--bg-warm); border-color: var(--gray-light); }
html.dark .timeline-content h3 { color: #f0f2f4; }
html.dark .timeline-marker { background: var(--color-teal); }
html.dark .planning-day { background: var(--bg-warm); }
html.dark .planning-day-name { color: #f0f2f4; border-bottom-color: var(--gray-light); }
html.dark .photo-item { box-shadow: var(--shadow-md); }
html.dark .map-embed { box-shadow: var(--shadow-md); }
html.dark .lightbox { background: rgba(0, 0, 0, 0.95); }
html.dark .copyable-address:hover { background-color: var(--accent-light-soft); }
html.dark .skip-link { background: var(--color-teal); color: #fff; }
html.dark table th,
html.dark table td { border-color: var(--gray-light) !important; color: var(--gray-dark); }
html.dark table th { background-color: var(--bg-light) !important; }
html.dark table tr:nth-child(even) td { background-color: rgba(26, 26, 46, 0.5) !important; }
html.dark .error-code { background: linear-gradient(135deg, var(--color-cyan), var(--color-teal)); -webkit-background-clip: text; background-clip: text; }
html.dark .social-link { background-color: rgba(255, 255, 255, 0.08); }
html.dark .social-link:hover { background-color: var(--color-cyan); }
html.dark .logo-text { color: var(--gray-dark); }
html.dark hr { border-color: var(--gray-light); }
html.dark img:not([src*=".svg"]):not(.logo-img):not(.hero-banner-logo):not(.page-loader-logo) { filter: brightness(0.92); }

/* Hero banner text: stronger overlay for readability in dark mode */
html.dark .hero-banner-img--front,
html.dark .hero-banner-img--back { filter: brightness(0.85); }
html.dark .hero-banner-content h1,
html.dark .hero-banner-content p { color: #fff; text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6); }

/* FAQ accordion */
html.dark .faq-item { background: var(--bg-warm); }
html.dark .faq-question { color: #f0f2f4; }
html.dark .faq-question:hover { color: var(--color-cyan); }
html.dark .faq-answer { color: var(--gray-medium); }

/* Mobile nav panel */
@media (max-width: 768px) {
    html.dark .nav-menu { background-color: var(--bg-warm); }
    html.dark .nav-menu .nav-link:hover,
    html.dark .nav-menu .nav-link.active { background-color: var(--bg-light); }
    html.dark .nav-menu .btn.btn-primary { background-color: var(--color-cyan); }
}
