/* ============================================================
   COSMIC RADIS — main.css  v2.0
   Structure : variables → reset → typographie → layout →
               header/nav → boutons → hero → sections →
               formulaires → footer → utilitaires
   ============================================================ */


/* ------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------ */
:root {
    /* Palette cosmique */
    --color-bg:           #03080f;
    --color-surface:      #07111f;
    --color-surface-2:    #0c1a2e;
    --color-surface-3:    #112038;

    --color-primary:      #00d4f5;   /* cyan vif */
    --color-primary-glow: rgba(0, 212, 245, 0.25);
    --color-primary-dim:  rgba(0, 212, 245, 0.08);
    --color-secondary:    #5ecb2a;   /* vert radis */
    --color-secondary-dim:rgba(94, 203, 42, 0.12);

    --color-text:         #dde8f5;
    --color-text-muted:   #6a88a8;
    --color-text-faint:   #3a5270;
    --color-white:        #ffffff;

    --color-border:       rgba(0, 212, 245, 0.10);
    --color-border-hover: rgba(0, 212, 245, 0.35);

    /* Glassmorphism */
    --glass-bg:           rgba(7, 17, 31, 0.65);
    --glass-border:       rgba(0, 212, 245, 0.15);
    --glass-blur:         blur(18px);
    --glass-blur-heavy:   blur(32px);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #00d4f5 0%, #0077b6 100%);
    --grad-secondary: linear-gradient(135deg, #5ecb2a 0%, #2d8a00 100%);
    --grad-hero: radial-gradient(ellipse 80% 60% at 50% 30%,
                     rgba(0, 80, 140, 0.55) 0%,
                     rgba(3, 8, 15, 0) 70%);
    --grad-card: linear-gradient(145deg,
                     rgba(12, 26, 46, 0.9) 0%,
                     rgba(7, 17, 31, 0.6) 100%);
    --grad-text-primary: linear-gradient(135deg, #00d4f5, #a8eeff);

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg:   0 8px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(0, 212, 245, 0.2),
                   0 0 48px rgba(0, 212, 245, 0.08);
    --shadow-glow-strong: 0 0 32px rgba(0, 212, 245, 0.35),
                          0 0 80px rgba(0, 212, 245, 0.12);

    /* Typographie */
    --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

    --size-xs:   0.75rem;
    --size-sm:   0.875rem;
    --size-base: 1rem;
    --size-md:   1.125rem;
    --size-lg:   1.375rem;
    --size-xl:   1.75rem;
    --size-2xl:  2.5rem;
    --size-3xl:  4rem;
    --size-4xl:  6rem;

    --weight-regular: 400;
    --weight-medium:  500;
    --weight-bold:    700;

    /* Espacements */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 10rem;

    /* Conteneur */
    --container-max:     1140px;
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base:   280ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   450ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Bordures */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Scrollbar custom */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-surface);
}

html::-webkit-scrollbar       { width: 6px; }
html::-webkit-scrollbar-track { background: var(--color-surface); }
html::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--size-base);
    font-weight: var(--weight-regular);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

svg { max-width: 100%; overflow: visible; }

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

ul, ol { list-style: none; }

button, input, textarea, select { font-family: inherit; font-size: inherit; }

p { max-width: 65ch; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ------------------------------------------------------------
   3. Typographie
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
}

h1 { font-size: clamp(3rem, 8vw, var(--size-4xl)); }
h2 { font-size: clamp(2rem, 5vw, var(--size-3xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--size-2xl)); }
h4 { font-size: var(--size-xl); }

/* Titre avec dégradé */
.heading-gradient {
    background: var(--grad-text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-primary); }
.text-center { text-align: center; }


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

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

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

/* Séparateur */
.section-divider {
    width: 48px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    margin-block: var(--space-sm);
    box-shadow: var(--shadow-glow);
}

.section-divider--center { margin-inline: auto; }

/* Intro de section */
.section-intro {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
}

.section-intro h2    { margin-bottom: var(--space-sm); }
.section-intro p     { color: var(--color-text-muted); margin-inline: auto; }


/* ------------------------------------------------------------
   5. Header / Navigation
   Classes HTML : .site-header > .container > .site-logo + nav.site-nav + button.nav-toggle
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding-block: 1rem;
    transition: background var(--transition-slow),
                padding var(--transition-slow),
                box-shadow var(--transition-slow);
}

.site-header.is-scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding-block: 0.625rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4),
                0 1px 0 var(--glass-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: nowrap;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.site-logo:hover { opacity: 0.85; transform: scale(1.03); }

.site-logo img {
    height: 84px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 212, 245, 0.3));
}

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: flex-end;
}

.site-nav > a {
    position: relative;
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);   /* blanc doux au lieu de muted */
    white-space: nowrap;
    transition: color var(--transition-fast);
    padding-bottom: 2px;
}

/* Soulignement animé — exclu sur .btn */
.site-nav > a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn):focus-visible {
    color: var(--color-primary);
    outline: none;
}

.site-nav > a:not(.btn):hover::after { width: 100%; }

/* Le .btn dans la nav garde ses propres styles */
.site-nav > a.btn {
    color: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;        /* annule le line-height hérité qui décale le texte */
    padding-bottom: 0.8em; /* symétrique avec padding-top */
}

/* Icônes sociales */
.site-nav__socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.site-nav__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: color var(--transition-fast),
                border-color var(--transition-fast),
                background var(--transition-fast),
                box-shadow var(--transition-fast);
}

.site-nav__socials a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
    box-shadow: var(--shadow-glow);
}

/* SVG dans le header */
.site-header svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.site-nav__socials svg { fill: currentColor; stroke: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
    position: relative; /* crée un contexte d'empilement */
    z-index: 220;        /* au-dessus du menu (205) et du header (200) */
    transition: border-color var(--transition-fast),
                color var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    display: block;
    color: var(--color-text);
}

/* La croix est masquée par défaut via style inline dans le HTML.
   On s'assure qu'elle hérite bien de la couleur et de la taille
   sans être écrasée par la règle générique .site-header svg. */
#icon-close,
#icon-menu {
    width: 22px !important;
    height: 22px !important;
    stroke: var(--color-text) !important;
    fill: none !important;
    flex-shrink: 0;
}

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

    /*
     * Le menu mobile est un overlay fullscreen.
     * z-index: 205 : entre le header (200) et le toggle (220).
     * Le toggle doit être AU-DESSUS du menu pour rester cliquable
     * et visible (croix de fermeture).
     */
    .site-nav {
        position: fixed;
        inset: 0;
        background-color: #03080f;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 205;

        /* Caché par défaut via opacity + pointer-events */
        display: flex;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav > a {
        font-size: var(--size-2xl);
        color: var(--color-text);
        opacity: 0;
        transform: translateY(12px);
        transition: opacity var(--transition-base),
                    transform var(--transition-base);
    }

    /* Quand ouvert : révéler les liens avec délai croissant */
    .site-nav.is-open > a:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
    .site-nav.is-open > a:nth-child(2) { opacity:1; transform:none; transition-delay: 0.10s; }
    .site-nav.is-open > a:nth-child(3) { opacity:1; transform:none; transition-delay: 0.15s; }
    .site-nav.is-open > a:nth-child(4) { opacity:1; transform:none; transition-delay: 0.20s; }
    .site-nav.is-open > a:nth-child(5) { opacity:1; transform:none; transition-delay: 0.25s; }
    .site-nav.is-open > a:nth-child(6) { opacity:1; transform:none; transition-delay: 0.30s; }
    .site-nav.is-open .site-nav__socials { opacity:1; transform:none; transition-delay: 0.35s; }

    .site-nav__socials {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 1.5rem;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity var(--transition-base),
                    transform var(--transition-base);
    }
}


/* ------------------------------------------------------------
   6. Boutons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.8em 2em;
    font-family: var(--font-display);
    font-size: var(--size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-fast),
                background var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
}

/* Effet de brillance au hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.12),
        transparent);
    transform: skewX(-20deg);
    transition: left var(--transition-slow);
    pointer-events: none;
}

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

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

/* Primaire */
.btn--primary {
    background: var(--grad-primary);
    color: var(--color-bg);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 212, 245, 0.25);
}

.btn--primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-1px);
}

/* Fantôme */
.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-dim);
    box-shadow: var(--shadow-glow);
}

.btn--lg { font-size: var(--size-base); padding: 1em 2.5em; }


/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-block: var(--space-2xl) var(--space-xl);
}

/* Canvas starfield */
.hero > canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Dégradé radial */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 1;
}

/* Ligne de lumière en bas */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-primary),
        transparent);
    box-shadow: 0 0 20px var(--color-primary);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding-inline: var(--container-padding);
}

/* Eyebrow avec capsule */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-full);
    padding: 0.4em 1.2em;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-glow);
}

.hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 60px rgba(0, 212, 245, 0.2);
    hyphens: auto;
    overflow-wrap: break-word;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(var(--size-lg), 3vw, var(--size-2xl));
    font-weight: var(--weight-regular);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-faint);
    font-size: var(--size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    box-shadow: 0 0 8px var(--color-primary);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}


/* ------------------------------------------------------------
   8. Cards verre (glassmorphism)
   ------------------------------------------------------------ */
.glass-card {
    background: var(--grad-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-base);
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow),
                var(--shadow-md);
    transform: translateY(-3px);
}


/* ------------------------------------------------------------
   9. Section À propos
   ------------------------------------------------------------ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about__text h2  { margin-bottom: var(--space-md); }

.about__text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.75;
}

.about__text p:last-of-type { margin-bottom: 0; }

/* Tags */
.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.about__tag {
    display: inline-block;
    padding: 0.35em 1em;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.about__tag:hover {
    background: rgba(0, 212, 245, 0.18);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Gear items */
.about__gear { display: grid; gap: 0.875rem; }

.about__gear-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.about__gear-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-sm);
    transform: translateX(4px);
}

.about__gear-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--size-lg);
    box-shadow: inset 0 0 12px var(--color-primary-dim);
}

.about__gear-label {
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--color-white);
    margin-bottom: 3px;
}

.about__gear-desc {
    font-size: var(--size-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

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


/* ------------------------------------------------------------
   10. Compteurs / Stats
   ------------------------------------------------------------ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.stat-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.stat-card__number {
    font-family: var(--font-display);
    font-size: var(--size-3xl);
    font-weight: var(--weight-bold);
    line-height: 1;
    background: var(--grad-text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-card__label {
    font-size: var(--size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------
   11. Section Vidéo
   ------------------------------------------------------------ */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    margin-top: var(--space-lg);   /* gap explicite avec l'intro */
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: box-shadow var(--transition-base);
}

.video-wrapper:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ------------------------------------------------------------
   12. Formules
   ------------------------------------------------------------ */
.formules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-sm);
}

.formule-card {
    padding: var(--space-md);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Lueur en haut de la card */
.formule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-primary),
        transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.formule-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    transform: translateY(-4px);
}

.formule-card:hover::before { opacity: 1; }

.formule-card--featured {
    border-color: rgba(0, 212, 245, 0.35);
    background: linear-gradient(145deg,
        rgba(0, 212, 245, 0.06) 0%,
        rgba(7, 17, 31, 0.9) 100%);
    box-shadow: var(--shadow-glow);
}

.formule-card--featured::before { opacity: 1; }

.formule-card__badge {
    display: inline-block;
    font-size: var(--size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--grad-primary);
    padding: 0.3em 0.9em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-glow);
}

.formule-card__title {
    font-family: var(--font-display);
    font-size: var(--size-xl);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.formule-card__sub {
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.formule-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.formule-card__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--size-sm);
    color: var(--color-text-muted);
}

.formule-card__feature::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   13. Références
   ------------------------------------------------------------ */
.references__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-sm);
}

.reference-card {
    padding: var(--space-sm) var(--space-md);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.reference-card:hover {
    border-color: var(--color-border-hover);
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-glow), var(--shadow-sm);
    transform: translateX(4px);
}

.reference-card__type {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.reference-card__name {
    font-family: var(--font-display);
    font-size: var(--size-lg);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2px;
}

.reference-card__detail {
    font-size: var(--size-xs);
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------
   14. Contact
   ------------------------------------------------------------ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact__info h2     { margin-bottom: var(--space-sm); }
.contact__info > p    { color: var(--color-text-muted); margin-bottom: var(--space-md); }

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--size-sm);
    color: var(--color-text-muted);
}

.contact__detail > span[aria-hidden] {
    font-size: var(--size-lg);
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: var(--color-primary);
}

.contact__detail a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.contact__detail a:hover { color: var(--color-primary); }

.contact__socials {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact__social-link {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.contact__social-link:hover { color: var(--color-primary); }

/* Formulaire */
.contact__form-wrapper {
    background: var(--grad-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

/* Champs génériques + GF */
.contact__form-wrapper input[type="text"],
.contact__form-wrapper input[type="email"],
.contact__form-wrapper input[type="tel"],
.contact__form-wrapper textarea,
.contact__form-wrapper select,
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
    width: 100%;
    background: rgba(3, 8, 15, 0.6);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.8em 1em;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
    appearance: none;
}

.contact__form-wrapper input:focus,
.contact__form-wrapper textarea:focus,
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 212, 245, 0.04);
    box-shadow: 0 0 0 3px var(--color-primary-dim);
}

.contact__form-wrapper input::placeholder,
.contact__form-wrapper textarea::placeholder,
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: var(--color-text-faint);
}

.contact__form-wrapper textarea,
.gform_wrapper textarea { min-height: 140px; resize: vertical; }

/* Labels GF */
.contact__form-wrapper label,
.gform_wrapper label,
.gform_wrapper .gfield_label,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gfield_label_before_complex {
    display: block;
    font-size: var(--size-xs) !important;
    font-weight: var(--weight-medium) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted) !important;
    margin-bottom: 0.4em;
}

.gform_wrapper .gfield_required_text,
.gform_wrapper .gfield_required_asterisk {
    color: #ff6b6b !important;
}

/* Submit GF */
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 0.8em 2em;
    font-family: var(--font-display);
    font-size: var(--size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--grad-primary);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 245, 0.25);
    transition: box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-1px);
}

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


/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.site-footer {
    padding-block: var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: linear-gradient(to bottom,
        var(--color-surface) 0%,
        var(--color-bg) 100%);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--color-primary), transparent);
    box-shadow: 0 0 12px var(--color-primary);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

.site-footer__copy {
    font-size: var(--size-xs);
    color: var(--color-text-faint);
}

.site-footer__copy a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.site-footer__copy a:hover { color: var(--color-primary); }


/* ------------------------------------------------------------
   16. Gabarits blog / pages statiques (SEO)
   ------------------------------------------------------------ */

/* Layout de base article + sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-lg);
    align-items: start;
}

/* Article */
.article-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: var(--size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.article-meta a { color: var(--color-primary); }
.article-meta a:hover { text-decoration: underline; }

.article-category {
    display: inline-block;
    padding: 0.25em 0.75em;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

/* Contenu riche de l'article */
.entry-content {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.entry-content p  { margin-bottom: var(--space-sm); }
.entry-content ul,
.entry-content ol { margin-bottom: var(--space-sm); padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; list-style: revert; }

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--color-text); }

.entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    margin-block: var(--space-md);
    background: var(--color-primary-dim);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin-block: var(--space-sm);
    border: 1px solid var(--color-border);
}

.entry-content code {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.5em;
    font-size: 0.9em;
    color: var(--color-primary);
}

/* Archive : grille d'articles */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.post-card {
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    transform: translateY(-4px);
}

.post-card__thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

.post-card__body {
    padding: var(--space-sm) var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--size-xs);
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.post-card__title {
    font-family: var(--font-display);
    font-size: var(--size-lg);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
    line-height: 1.2;
}

.post-card:hover .post-card__title { color: var(--color-primary); }

.post-card__excerpt {
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__link {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-fast);
}

.post-card__link::after { content: '→'; }
.post-card:hover .post-card__link { gap: 0.7rem; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-dim);
}

.pagination .current {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--color-bg);
    font-weight: var(--weight-bold);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: var(--space-md); }

.sidebar-widget {
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.sidebar-widget__title {
    font-family: var(--font-display);
    font-size: var(--size-md);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

/* Navigation entre articles */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.post-nav__item {
    padding: var(--space-sm);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.post-nav__item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.post-nav__item--next { text-align: right; }

.post-nav__label {
    font-size: var(--size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.post-nav__title {
    font-size: var(--size-sm);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.post-nav__item:hover .post-nav__title { color: var(--color-primary); }

@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; } /* sidebar masquée sur mobile, à adapter si besoin */
}

@media (max-width: 768px) {
    .post-nav { grid-template-columns: 1fr; }
}




/* ------------------------------------------------------------
   CPT Concert
   ------------------------------------------------------------ */
.concerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.concert-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.concert-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-sm);
    transform: translateX(4px);
}

.concert-card--avenir {
    border-left: 3px solid var(--color-primary);
}

.concert-card--passe {
    opacity: 0.65;
}

.concert-card--passe:hover {
    opacity: 1;
}

/* Bloc date */
.concert-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 64px;
    text-align: center;
}

.concert-card--avenir .concert-card__date {
    background: rgba(0, 212, 245, 0.15);
    border-color: rgba(0, 212, 245, 0.3);
}

.concert-card__day {
    font-family: var(--font-display);
    font-size: var(--size-2xl);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--color-primary);
}

.concert-card__month {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.concert-card__year {
    font-size: var(--size-xs);
    color: var(--color-text-faint);
}

/* Infos */
.concert-card__title {
    font-family: var(--font-display);
    font-size: var(--size-lg);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2px;
}

.concert-card__location {
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.concert-card__date-text {
    font-size: var(--size-xs);
    color: var(--color-text-faint);
}

/* Badge statut */
.concert-card__badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: var(--radius-full);
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.concert-card__badge--avenir {
    background: var(--color-primary-dim);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.concert-card__badge--passe {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .concert-card {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }
    .concert-card__action {
        grid-column: 2;
        margin-top: 0.25rem;
    }
}


/* ------------------------------------------------------------
   Archive Albums / Galerie
   ------------------------------------------------------------ */

/* Filtres */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    justify-content: center;
}

.gallery-filter {
    padding: 0.4em 1.2em;
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.gallery-filter:hover,
.gallery-filter.is-active {
    background: rgba(0, 212, 245, 0.18);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Grille albums */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.album-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--grad-card);
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-base);
}

.album-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    transform: translateY(-4px);
}

.album-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-card__cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-2);
}

.album-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.album-card:hover .album-card__cover img {
    transform: scale(1.05);
}

.album-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    font-size: var(--size-2xl);
}

/* Overlay compteur */
.album-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(3, 8, 15, 0.8) 0%,
        transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-sm);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.album-card:hover .album-card__overlay {
    opacity: 1;
}

.album-card__count {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    color: var(--color-white);
    background: rgba(0, 212, 245, 0.2);
    border: 1px solid rgba(0, 212, 245, 0.4);
    border-radius: var(--radius-full);
    padding: 0.25em 0.75em;
    backdrop-filter: blur(4px);
}

.album-card__body {
    padding: var(--space-sm) var(--space-md);
}

.album-card__title {
    font-family: var(--font-display);
    font-size: var(--size-lg);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    transition: color var(--transition-fast);
    line-height: 1.2;
}

.album-card:hover .album-card__title {
    color: var(--color-primary);
}

.album-card__meta {
    font-size: var(--size-xs);
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------
   Single Album — grille photos
   ------------------------------------------------------------ */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.album-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    cursor: zoom-in;
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.album-photo:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.album-photo:hover img {
    transform: scale(1.04);
}

.album-photo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 212, 245, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    color: var(--color-white);
}

.album-photo:hover .album-photo__overlay {
    opacity: 1;
}

/* Surcharges GLightbox pour coller à la charte */
.glightbox-clean .gslide-description {
    background: var(--color-surface);
}

.glightbox-clean .gdesc-inner .gslide-desc {
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

/* ------------------------------------------------------------
   Section Membres
   ------------------------------------------------------------ */
.membres-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: var(--space-md);
}

.membre-card__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    cursor: default;
}

.membre-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow),
                filter var(--transition-slow);
}

.membre-card:hover .membre-card__photo img {
    transform: scale(1.04);
    filter: brightness(0.55);
}

.membre-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
}

/* Overlay nom + instrument */
.membre-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-sm);
    background: linear-gradient(to top,
        rgba(3, 8, 15, 0.92) 0%,
        rgba(3, 8, 15, 0.3) 50%,
        transparent 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition-base),
                transform var(--transition-base);
    text-align: center;
}

.membre-card:hover .membre-card__overlay {
    opacity: 1;
    transform: none;
}

/* Toujours visible sur mobile (pas de hover) */
@media (hover: none) {
    .membre-card__overlay {
        opacity: 1;
        transform: none;
    }
    .membre-card__photo img {
        filter: brightness(0.6);
    }
}

.membre-card__nom {
    font-family: var(--font-display);
    font-size: var(--size-md);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.membre-card__instrument {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .membres-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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


/* ------------------------------------------------------------
   Slider references
   ------------------------------------------------------------ */
.ref-slider {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin-inline: auto;
    padding-bottom: var(--space-lg);
}

.ref-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ref-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding-inline: var(--space-sm);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ref-slide.is-active {
    opacity: 1;
}

.ref-slide__inner {
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
    isolation: isolate;
}

.ref-slide.is-active .ref-slide__inner {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

/* Citation */
.ref-slide__quote {
    position: relative;
    padding-inline: var(--space-md);
}

/* Guillemet : SVG inline dans front-page.php via .ref-slide__quote__icon */
.ref-slide__quote__icon {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: 0.5rem;
    margin-inline: auto;
}

.ref-slide__quote p {
    font-size: var(--size-md);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
    max-width: 56ch;
    margin-inline: auto;
}

/* Meta */
.ref-slide__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ref-slide__type {
    font-size: var(--size-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.ref-slide__name {
    font-family: var(--font-display);
    font-size: var(--size-xl);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
}

.ref-slide__detail {
    font-size: var(--size-xs);
    color: var(--color-text-muted);
}

/* Bullets */
.ref-slider__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.ref-slider__bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-base),
                width var(--transition-base),
                box-shadow var(--transition-base);
}

.ref-slider__bullet.is-active {
    background: var(--color-primary);
    width: 24px;
    box-shadow: var(--shadow-glow);
}

/* Fleches */
.ref-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast);
    z-index: 2;
}

.ref-slider__arrow:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.ref-slider__arrow svg { width: 20px; height: 20px; }

.ref-slider__arrow--prev { left: 0; }
.ref-slider__arrow--next { right: 0; }

@media (max-width: 600px) {
    .ref-slider__arrow { display: none; }
}


/* ------------------------------------------------------------
   Contact sticky
   ------------------------------------------------------------ */
.contact__info--sticky {
    position: sticky;
    top: calc(84px + var(--space-md));  /* hauteur header + marge */
    align-self: start;
}

/* Liens detail ameliores */
.contact__detail--link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--size-sm);
    text-decoration: none;
    transition: border-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

.contact__detail--link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.contact__detail-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--color-primary-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact__detail-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Boutons sociaux ameliores */
.contact__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6em 1.2em;
    background: var(--grad-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    transition: border-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.contact__social-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}


/* ------------------------------------------------------------
   Page Rider
   ------------------------------------------------------------ */
.rider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.rider-block {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.rider-block__icon {
    font-size: var(--size-2xl);
    line-height: 1;
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px var(--color-primary));
}

.rider-block__title {
    font-size: var(--size-lg);
    color: var(--color-white);
    margin: 0;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.rider-block__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0;
    margin: 0;
}

.rider-block__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    list-style: none;
    line-height: 1.5;
}

.rider-block__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
    flex-shrink: 0;
}

.rider-block__list li strong {
    color: var(--color-text);
    font-weight: var(--weight-medium);
}

/* Contact technique */
.rider-contact {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.rider-contact__title {
    font-size: var(--size-xl);
    color: var(--color-white);
}

.rider-contact__text {
    color: var(--color-text-muted);
    max-width: 56ch;
    margin-inline: auto;
}


/* ------------------------------------------------------------
   Album - Videos
   ------------------------------------------------------------ */
.album-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.album-video-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.album-video {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--color-surface-2);
    display: block;
}

.album-video-titre {
    font-size: var(--size-sm);
    color: var(--color-text-muted);
    text-align: center;
}

/* ------------------------------------------------------------
   17. Skip link accessibilité
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--grad-primary);
    color: var(--color-bg);
    font-weight: var(--weight-bold);
    border-radius: var(--radius-sm);
    z-index: 999;
    transition: top var(--transition-fast);
}

.skip-link:focus { top: var(--space-sm); }
