/*
Theme Name: Asso RIDE
Theme URI: https://assoride.fr
Author: Asso RIDE
Author URI: https://assoride.fr
Description: Thème officiel de l'association Asso RIDE — skate de descente depuis 2005.
Version: 2.2.0
Requires at least: 5.8
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assoride
*/

/*
  Palette Paul Tol
  Fig. 2.7 Light : #77AADD #99DDFF #44BB99 #BBCC33 #AAAA00 #EEDD88 #EE8866 #FFAABB #DDDDDD
  Dark contrasté : fond quasi-noir, accents tirés du Light saturés pour tenir sur sombre
*/

/* ===== THÈME SOMBRE — haut contraste ===== */
:root,
[data-theme="dark"] {
    /* Fonds — noir charbon, surfaces légèrement relevées */
    --c-bg:        #0e0e0e;
    --c-surface:   #161616;
    --c-surface2:  #1e1e1e;
    --c-border:    #2c2c2c;

    /*
      Accents tirés de la palette Light 2.7, assombris de ~15%
      pour rester lisibles tout en restant reconnaissables.
      Accent principal : #44BB99 (teal) → lumineux sur noir
      Secondaire       : #77AADD (bleu doux)
      Highlight        : #EEDD88 (jaune paille)
    */
    --c-green:     #44BB99;   /* teal light — accent principal */
    --c-green-dim: #77AADD;   /* bleu doux — accent secondaire */
    --c-green-dark:#BBCC33;   /* olive vif — tertiary */
    --c-yellow:    #EEDD88;   /* jaune paille — highlight */
    --c-orange:    #EE8866;   /* saumon — warning / accent chaud */

    /* Textes — blanc légèrement chaud pour moins fatiguer */
    --c-white:     #e6e6e0;
    --c-gray:      #666660;
    --c-gray-light:#999990;
    --c-dark:      #0e0e0e;

    /* Boutons */
    --c-btn-bg:    #44BB99;
    --c-btn-fg:    #0e0e0e;
    --c-btn-hover: #77AADD;

    --transition: 0.2s ease;
    --f-display:  'Bebas Neue', 'Impact', sans-serif;
    --f-body:     'Barlow Condensed', sans-serif;
    --f-mono:     'Space Mono', monospace;
}

/* ===== THÈME CLAIR — palette 2.7 Light ===== */
[data-theme="light"] {
    /*
      Fonds neutres clairs, surfaces teintées très doucement
      avec les tons les plus pâles de la palette Light.
    */
    --c-bg:        #f8f7f4;   /* blanc cassé chaud */
    --c-surface:   #ffffff;
    --c-surface2:  #f0f0ea;   /* gris très chaud */
    --c-border:    #d8d8cc;

    /*
      Accents — couleurs Light 2.7 directement,
      suffisamment saturées pour tenir sur blanc.
      Accent principal : #44BB99 (teal) — lisible, accessible
      Secondaire       : #77AADD (bleu)
      Highlight        : #BBCC33 (olive)
    */
    --c-green:     #3aaa88;   /* #44BB99 légèrement foncé pour contraste AA */
    --c-green-dim: #5599cc;   /* #77AADD légèrement foncé */
    --c-green-dark:#99aa22;   /* #BBCC33 légèrement foncé */
    --c-yellow:    #cc9900;   /* #EEDD88 → doré accessible */
    --c-orange:    #cc6644;   /* #EE8866 → saumon accessible */

    /* Textes — quasi-noir doux */
    --c-white:     #111111;
    --c-gray:      #666655;
    --c-gray-light:#444433;
    --c-dark:      #f8f7f4;

    /* Boutons */
    --c-btn-bg:    #3aaa88;
    --c-btn-fg:    #ffffff;
    --c-btn-hover: #5599cc;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-white);
    background: var(--c-bg);
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

/* Grain subtil — opacité réduite */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9998;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-green-dim); }

h1,h2,h3,h4 {
    font-family: var(--f-display);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-white);
}
h1 { font-size: clamp(2.8rem, 9vw, 6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
p  { margin-bottom: 1rem; font-size: 1.05rem; }

/* ===== BOUTON JOUR/NUIT ===== */
.theme-toggle {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 99997;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.theme-toggle:hover {
    border-color: var(--c-green);
    transform: scale(1.08) rotate(15deg);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    transition: transform 0.35s ease, background 0.35s ease;
}
[data-theme="light"] .site-header {
    background: rgba(248, 247, 244, 0.96);
    border-bottom-color: var(--c-border);
}
.site-header.scrolled { transform: translateY(-100%); }

.header-container {
    max-width: 1400px; margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}

.site-logo img {
    width: 56px; height: 56px; object-fit: contain;
}
[data-theme="light"] .site-logo img { filter: brightness(0); }
.site-logo:hover img { transform: rotate(8deg) scale(1.08); }
.logo-text { font-family: var(--f-display); font-size: 1.7rem; color: var(--c-white); }

/* NAV */
.main-navigation { flex: 1; }
.nav-menu { display:flex; gap:0.2rem; list-style:none; margin:0; padding:0; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.nav-menu li { margin: 0; }

.main-navigation a {
    color: var(--c-gray-light) !important;
    font-family: var(--f-display);
    font-size: 1.1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    display: block;
    position: relative;
    text-decoration: none !important;
    transition: color var(--transition);
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0.7rem; right: 0.7rem;
    height: 1px; background: var(--c-green);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--c-green) !important; }
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after { transform: scaleX(1); }

.mobile-menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-menu-toggle span { display:block; width:26px; height:1px; background:var(--c-white); transition: all 0.2s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ===== CONTENU ===== */
#content { padding-top: 86px; }

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: flex-end;
    padding: 0 2rem 6rem;
    overflow: hidden;
    background: var(--c-bg);
}
.hero-section:not(.hero-with-bg) {
    background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
[data-theme="light"] .hero-section:not(.hero-with-bg) {
    background: linear-gradient(160deg, #d8f0e8 0%, #f0f0e8 100%);
}

.hero-with-bg {
    /* pas de background-image ici — c'est le ::before qui porte l'image */
}

/* Image spécifique par page — sur le ::before */
.hero-home::before {
    background-image: url('/wp-content/uploads/kq-5-1-scaled.jpg');
}

/* Pseudo-élément pour le fondu de l'image */
.hero-with-bg::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1)   0%,
        rgba(0,0,0,0.9) 30%,
        rgba(0,0,0,0.5) 65%,
        rgba(0,0,0,0)   100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1)   0%,
        rgba(0,0,0,0.9) 30%,
        rgba(0,0,0,0.5) 65%,
        rgba(0,0,0,0)   100%
    );
}

/* Overlay teinté par-dessus — plus léger car le mask fait déjà le travail */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.25) 0%,
        rgba(14,14,14,0.50) 50%,
        rgba(14,14,14,0.92) 85%,
        rgba(14,14,14,1.00) 100%
    );
}
/* Sans image, overlay quasi invisible */
.hero-section:not(.hero-with-bg) .hero-overlay {
    background: none;
}
[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.15) 0%,
        rgba(14,14,14,0.40) 50%,
        rgba(14,14,14,0.82) 85%,
        rgba(14,14,14,0.95) 100%
    );
}
[data-theme="light"] .hero-section:not(.hero-with-bg) .hero-overlay {
    background: none;
}
.hero-overlay::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; }

.hero-title {
    color: var(--c-white) !important;
    line-height: 0.92; margin-bottom: 0.5rem;
    text-shadow: none;
}
/* Sur hero avec image de fond, on force le blanc pour la lisibilité */
.hero-with-bg .hero-title,
.hero-with-bg .hero-counter-label { color: #f0ede8 !important; text-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.hero-with-bg .hero-subtitle  { color: rgba(240,237,232,0.6) !important; }
.hero-with-bg .hero-description { color: rgba(240,237,232,0.75) !important; }

/* Compteur — allégé */
.hero-counter-wrap { display:flex; align-items:baseline; gap:0.2em; margin-bottom:1.5rem; line-height:1; }
.hero-counter {
    font-family: var(--f-display);
    font-size: clamp(6rem, 20vw, 12rem);
    color: var(--c-green);
    line-height: 0.85;
    text-shadow: none;
    min-width: 2ch; text-align: right; display: inline-block;
}
.hero-with-bg .hero-counter { text-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.hero-counter-label {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    color: var(--c-white);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-subtitle {
    font-family: var(--f-mono); font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    color: var(--c-gray); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem;
}
.hero-subtitle::before { content: '— '; color: var(--c-green); }
.hero-description { font-size:1.1rem; color:var(--c-gray-light); max-width:580px; line-height:1.75; margin-bottom:2.5rem; }
.hero-badge {
    display: inline-block;
    background: var(--c-green); color: #1a1a28;
    font-family: var(--f-display); font-size: 0.9rem; letter-spacing: 0.1em;
    padding: 0.25rem 0.9rem; margin-bottom: 1rem;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--f-display); font-size: 1.2rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.7rem 1.8rem; border: none; cursor: pointer;
    text-decoration: none !important; margin: 0.3rem;
    transition: all 0.15s ease;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.btn-primary { background: var(--c-btn-bg); color: var(--c-btn-fg) !important; font-weight: 700; }
.btn-primary:hover { background: var(--c-btn-hover); color: var(--c-btn-fg) !important; transform: translate(-1px,-1px); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }
.btn-secondary { background:transparent; color:var(--c-white) !important; border:1px solid rgba(255,255,255,0.5); clip-path:none; }
.btn-secondary:hover { background:rgba(255,255,255,0.08); color:var(--c-white) !important; transform:translate(-1px,-1px); }

/* ===== SECTIONS ===== */
.section { padding: 5.5rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align:left; margin-bottom:2.5rem; position:relative; display:inline-block; }
.section-title::after { content:''; display:block; height:2px; background:var(--c-green); margin-top:0.4rem; width:50%; opacity:0.7; }
.section-title-center { text-align:center; display:block; }
.section-title-center::after { margin:0.4rem auto 0; }
.section-dark    { background: var(--c-bg); }
.section-surface { background: var(--c-surface); }
.section-divider {
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--c-border) 0, var(--c-border) 8px, transparent 8px, transparent 16px);
    opacity: 0.6;
}

/* ===== VIDÉO ===== */
.video-container { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; max-width:900px; margin:3rem auto; border:1px solid var(--c-border); }
.video-container iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }

/* ===== EVENT CARDS ===== */
.events-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:1.25rem; margin-top:2.5rem; }
.event-card {
    background: var(--c-surface); border:1px solid var(--c-border);
    border-left: 3px solid var(--c-green);
    padding: 1.5rem; position:relative; overflow:hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.event-card::before { content:''; position:absolute; top:0; right:0; width:0; height:0; border-style:solid; border-width:0 18px 18px 0; border-color:transparent var(--c-bg) transparent transparent; }
.event-card:hover { transform:translate(-2px,-2px); border-left-color:var(--c-green-dim); }
.event-card h3 { color:var(--c-green); margin-bottom:0.75rem; font-size:1.7rem; }
.event-card p  { color:var(--c-gray-light); font-size:1rem; }
.event-info { background:var(--c-surface2); border-left:2px solid var(--c-border); padding:0.7rem 1rem; margin:0.75rem 0; font-family:var(--f-mono); font-size:0.8rem; color:var(--c-gray); line-height:1.8; }
.event-point { color:var(--c-green); font-size:0.88rem; margin:0.2rem 0; }

/* ===== ATHLETES ===== */
.athletes-section { background: var(--c-surface); }
.athlete { margin-bottom:4.5rem; border-top:1px solid var(--c-border); padding-top:2.5rem; }
.athlete h3 { color:var(--c-green); margin-bottom:0.5rem; }
.athlete p  { color:var(--c-gray-light); max-width:600px; }

/* ===== ADHÉSION ===== */
.membership-section { background: var(--c-surface); }
.membership-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.25rem; margin-top:2.5rem; }
.membership-card { background:var(--c-surface2); border:1px solid var(--c-border); border-top:2px solid var(--c-green); padding:2rem 1.75rem; text-align:center; transition:transform 0.15s ease; }
.membership-card:hover { transform:translate(-2px,-2px); }
.membership-card h3 { color:var(--c-white); margin-bottom:1rem; }
.membership-card ul { list-style:none; padding:0; margin:1.25rem 0; text-align:left; }
.membership-card li { padding:0.3rem 0; color:var(--c-gray-light); font-size:1rem; }
.membership-card li::before { content:'› '; color:var(--c-green); }
.price { font-family:var(--f-display); font-size:4rem; color:var(--c-green); line-height:1; margin:0.5rem 0; }
.price-label { font-family:var(--f-mono); font-size:0.78rem; color:var(--c-gray); text-transform:uppercase; letter-spacing:0.15em; }

/* ===== À PROPOS ===== */
.about-content { max-width:800px; font-size:1.1rem; line-height:1.85; color:var(--c-gray-light); }
.about-content strong { color:var(--c-white); }
.about-content a { color:var(--c-green); }

/* ===== VIDÉO GALLERY ===== */
.video-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:1.75rem; margin-top:2.5rem; }
.video-card { background:var(--c-surface); border:1px solid var(--c-border); transition:transform 0.15s ease; }
.video-card:hover { transform:translate(-2px,-2px); }
.video-wrapper { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; background:#000; }
.video-wrapper iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }
.video-info { padding:1.1rem; }
.video-event { display:inline-block; background:var(--c-green); color:#1a1a28; font-family:var(--f-display); font-size:0.85rem; letter-spacing:0.07em; padding:0.12rem 0.55rem; margin-bottom:0.5rem; clip-path:polygon(3px 0%,100% 0%,calc(100% - 3px) 100%,0% 100%); }
.video-title { font-family:var(--f-body); font-size:1.05rem; font-weight:700; color:var(--c-white); text-transform:none; letter-spacing:0; margin-bottom:0.3rem; }
.video-description { color:var(--c-gray); font-size:0.88rem; margin:0; }
.video-counter { font-family:var(--f-mono); font-size:0.82rem; color:var(--c-gray); margin-bottom:1.75rem; }

/* ===== PODCASTS ===== */
.podcast-gallery { display:grid; grid-template-columns:1fr; gap:2.5rem; margin-top:2.5rem; max-width:860px; }
.podcast-card { background:var(--c-surface); border:1px solid var(--c-border); border-left:3px solid var(--c-green-dim); overflow:hidden; }
.podcast-header { padding:1.25rem; background:var(--c-surface2); border-bottom:1px solid var(--c-border); }
.podcast-event { display:inline-block; background:var(--c-green-dim); color:var(--c-bg); font-family:var(--f-display); font-size:0.82rem; letter-spacing:0.07em; padding:0.12rem 0.55rem; margin-bottom:0.5rem; clip-path:polygon(3px 0%,100% 0%,calc(100% - 3px) 100%,0% 100%); }
.podcast-title { font-family:var(--f-display); font-size:1.7rem; color:var(--c-white) !important; margin:0.25rem 0; }
.podcast-meta { display:flex; gap:1.5rem; font-family:var(--f-mono); font-size:0.76rem; color:var(--c-gray); margin-top:0.5rem; }
.podcast-body { padding:1.25rem; }
.podcast-body p { color:var(--c-gray-light); }

/* ===== PHOTOS ===== */
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:0.4rem; margin-top:2rem; }
.photo-item { position:relative; overflow:hidden; cursor:pointer; aspect-ratio:1/1; background:var(--c-surface); }
.photo-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s ease; filter:grayscale(20%); }
.photo-item:hover img { transform:scale(1.05); filter:grayscale(0%); }
.photo-overlay { position:absolute; inset:0; background:rgba(24,24,32,0.5); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.25s ease; }
.photo-item:hover .photo-overlay { opacity:1; }
.photo-zoom { font-size:2rem; color:#fff; font-family:var(--f-display); }
.photo-caption { position:absolute; bottom:0; left:0; right:0; background:rgba(24,24,32,0.85); color:var(--c-white); font-family:var(--f-mono); font-size:0.76rem; padding:0.45rem; text-align:center; transform:translateY(100%); transition:transform 0.25s ease; }
.photo-item:hover .photo-caption { transform:translateY(0); }
.photo-placeholder { text-align:center; padding:4rem 2rem; background:var(--c-surface); border:1px dashed var(--c-border); max-width:500px; margin:0 auto; color:var(--c-gray); }

/* ===== LIGHTBOX ===== */
.lightbox { position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; }
.lightbox-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.92); }
.lightbox-content { position:relative; z-index:2; max-width:90vw; text-align:center; }
.lightbox-content img { max-width:90vw; max-height:80vh; object-fit:contain; }
.lightbox-caption { color:var(--c-gray); font-family:var(--f-mono); font-size:0.78rem; margin-top:0.75rem; }
.lightbox-close,.lightbox-prev,.lightbox-next { position:fixed; z-index:3; background:var(--c-green); color:#1a1a28; border:none; cursor:pointer; font-size:1.2rem; width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-weight:700; transition:background var(--transition); }
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover { background:var(--c-green-dim); }
.lightbox-close { top:1rem; right:1rem; font-size:0.9rem; }
.lightbox-prev  { left:1rem; top:50%; transform:translateY(-50%); font-size:1.6rem; }
.lightbox-next  { right:1rem; top:50%; transform:translateY(-50%); font-size:1.6rem; }

/* ===== FORMULAIRE ===== */
.adhesion-form { background:var(--c-surface); border:1px solid var(--c-border); border-top:2px solid var(--c-green); padding:2.75rem 2.25rem; }
.form-group { margin-bottom:1.5rem; }
.form-group label { display:block; font-family:var(--f-display); font-size:1.15rem; color:var(--c-white); margin-bottom:0.35rem; letter-spacing:0.04em; }
.form-group input[type="text"],.form-group input[type="email"],.form-group input[type="tel"],.form-group select { width:100%; background:var(--c-surface2); border:1px solid var(--c-border); border-bottom:1px solid var(--c-green); color:var(--c-white); padding:0.8rem 0.9rem; font-family:var(--f-body); font-size:1.05rem; outline:none; transition:border-color var(--transition); appearance:none; }
.form-group input:focus,.form-group select:focus { border-bottom-color:var(--c-green-dim); }
.form-group select option { background:var(--c-surface2); color:var(--c-white); }
.radio-label,.checkbox-label { display:flex; align-items:center; cursor:pointer; margin-bottom:0.5rem; color:var(--c-gray-light); font-size:1rem; }
.radio-label input,.checkbox-label input { margin-right:0.75rem; accent-color:var(--c-green); width:auto; }
.notice { padding:0.9rem 1.1rem; font-family:var(--f-mono); font-size:0.88rem; margin-bottom:1.75rem; border-left:3px solid; }
.notice-success { background:rgba(204,221,170,0.07); border-color:var(--c-green); color:var(--c-green); }
.notice-error   { background:rgba(102,51,51,0.12); border-color:#663333; color:#cc8888; }

/* ===== FOOTER ===== */
.site-footer { background:var(--c-surface); border-top:1px solid var(--c-border); padding:3.5rem 2rem 2rem; transition:background 0.35s ease; }
.footer-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr auto; gap:2rem; align-items:end; }
.footer-social { display:flex; gap:0.6rem; margin-bottom:1.25rem; }
.social-link { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid var(--c-border); color:var(--c-gray) !important; transition:all var(--transition); clip-path:polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%); }
.social-link:hover { background:var(--c-green); border-color:var(--c-green); color:#1a1a28 !important; }
.footer-copyright { font-family:var(--f-mono); font-size:0.76rem; line-height:1.85; }
.footer-copyright p { margin:0; color:var(--c-gray); }
.footer-tagline { color:var(--c-border) !important; }
.footer-photo-credit { color:var(--c-gray) !important; font-style:italic; }
.footer-wordmark { font-family:var(--f-display); font-size:3.5rem; color:var(--c-border); line-height:1; letter-spacing:-0.02em; text-align:right; opacity:0.5; }

/* ===== TIMELINE ===== */
.timeline { position:relative; padding:2rem 0; max-width:700px; }
.timeline::before { content:''; position:absolute; left:90px; top:0; bottom:0; width:1px; background:repeating-linear-gradient(to bottom, var(--c-green) 0, var(--c-green) 6px, transparent 6px, transparent 14px); opacity:0.6; }
.timeline-item { display:grid; grid-template-columns:80px 28px 1fr; align-items:center; gap:1rem; margin-bottom:2rem; }
.timeline-year { font-family:var(--f-display); font-size:1.4rem; color:var(--c-green); text-align:right; }
.timeline-dot { width:10px; height:10px; background:var(--c-green); border:2px solid var(--c-bg); justify-self:center; position:relative; z-index:1; transform:rotate(45deg); }
.timeline-text { font-size:1rem; color:var(--c-gray-light); line-height:1.55; }

/* ===== HERO MINI ===== */
.hero-mini { min-height:38vh; display:flex; align-items:flex-end; padding:0 2rem 3.5rem; background:linear-gradient(160deg, var(--c-surface) 0%, var(--c-bg) 100%); position:relative; overflow:hidden; }
.hero-mini::before { content:attr(data-label); position:absolute; right:-1rem; top:50%; transform:translateY(-60%) rotate(90deg); font-family:var(--f-display); font-size:clamp(4rem,12vw,8rem); color:rgba(255,255,255,0.018); white-space:nowrap; letter-spacing:0.1em; pointer-events:none; }
.hero-mini .hero-content { position:relative; z-index:2; max-width:1200px; width:100%; margin:0 auto; }

/* ===== UTILITAIRES ===== */
.text-center { text-align:center; }
.text-mono { font-family:var(--f-mono); font-size:0.82rem; color:var(--c-gray); }
.mt-lg { margin-top:3.5rem; }
.tag { display:inline-block; background:var(--c-green); color:var(--c-dark); font-family:var(--f-display); font-size:0.82rem; letter-spacing:0.07em; padding:0.12rem 0.6rem; clip-path:polygon(3px 0%,100% 0%,calc(100% - 3px) 100%,0% 100%); }
.tag-dim { background:var(--c-green-dim); color:var(--c-bg); }

/* ===== PDF VIEWER ===== */
.pdf-block {
    margin: 3rem 0;
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-green);
    background: var(--c-surface);
}
.pdf-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
}
.pdf-block__title {
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--c-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.pdf-block__actions { display: flex; gap: 0.5rem; }
.pdf-block__viewer {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
    background: #222;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    background: transparent;
}

@media (max-width: 768px) {
    .pdf-block__viewer { height: 400px; }
    .pdf-block__header { flex-direction: column; align-items: flex-start; }
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width:900px) { .video-gallery { grid-template-columns:1fr; } }
@media (max-width:768px) {
    .main-navigation { position:fixed; top:74px; left:0; right:0; background:rgba(14,14,14,0.98); border-bottom:1px solid var(--c-border); padding:1.25rem 2rem; transform:translateX(-100%); transition:transform 0.3s ease; }
    [data-theme="light"] .main-navigation { background:rgba(248,247,244,0.98); }
    .main-navigation.active { transform:translateX(0); }
    .nav-menu { flex-direction:column; align-items:flex-start; gap:0.2rem; }
    .mobile-menu-toggle { display:flex; }
    .hero-section { padding-bottom:3.5rem; }
    .hero-counter { font-size:clamp(4.5rem,17vw,7rem); }
    .events-grid,.membership-cards { grid-template-columns:1fr; }
    .photo-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:0.25rem; }
    .adhesion-form { padding:1.75rem 1.1rem; }
    .section { padding:3.5rem 1.25rem; }
    .footer-inner { grid-template-columns:1fr; }
    .timeline::before { left:70px; }
    .timeline-item { grid-template-columns:60px 22px 1fr; }
    .lightbox-prev { left:0.25rem; }
    .lightbox-next { right:0.25rem; }
    .theme-toggle { bottom:1.25rem; right:1.25rem; }
}