/*
Theme Name: ThemeFantasià
Theme URI: https://fantasià.cc
Author: Fantasià
Author URI: https://fantasià.cc
Description: Thème WordPress custom pour l'association Fantasià — Laboratoire d'idées autour de la culture vidéoludique en Corse.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-fantasia
Tags: gaming, association, custom-colors, custom-logo, featured-images, responsive-layout
*/

/* ==========================================================================
   CSS Custom Properties (configurées via le Customizer)
   ========================================================================== */

:root {
    --color-primary: #03a9f4;
    --color-secondary: #f79007;
    --color-accent-1: #00bf87;
    --color-accent-2: #6632ff;
    --color-dark: #17252a;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;
    --color-text: #333333;
    --color-text-light: #cccccc;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --max-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior handled by JS for better easing */
    font-size: 16px;
}

body {
    font-family: var(--font-body, 'Heebo', sans-serif);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings, 'High Tower Text', Georgia, serif);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-light);
}

.section--gray {
    background-color: var(--color-gray);
    color: var(--color-text);
}

.section--gray h2,
.section--gray h3 {
    color: var(--color-dark);
}

.section--gray .section__header p {
    color: #555;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header h2 {
    margin-bottom: 0.5rem;
}

.section__header p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section__header p {
    color: var(--color-text-light);
}

.accent-text {
    font-family: var(--font-headings, 'High Tower Text', Georgia, serif);
    color: var(--color-primary);
}

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn--primary:hover {
    background-color: var(--color-primary);
    filter: brightness(0.85);
    color: var(--color-light);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.btn--secondary:hover {
    background-color: var(--color-secondary);
    filter: brightness(0.85);
    color: var(--color-light);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
}

.btn--outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn--accent {
    background-color: var(--color-accent-1);
    color: var(--color-light);
}

.btn--discord {
    background-color: #5865F2;
    color: var(--color-light);
}

.btn--discord:hover {
    background-color: #4752c4;
    color: var(--color-light);
}

.btn--sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-headings, 'High Tower Text', Georgia, serif);
    font-size: 1.5rem;
    color: var(--color-light);
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--color-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

/* Dropdown sub-menus */
.main-nav li {
    position: relative;
    list-style: none;
}

/* Bridge: invisible zone between parent link and dropdown to keep hover alive */
.main-nav .menu-item-has-children {
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.main-nav .sub-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Invisible bridge before dropdown to prevent hover gap */
.main-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .sub-menu li {
    padding-bottom: 0;
    margin-bottom: 0;
}

.main-nav .sub-menu a {
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: 0;
}

.main-nav .sub-menu a:hover {
    background: rgba(3, 169, 244, 0.15);
    color: var(--color-primary);
}

/* Nested sub-menus (level 3+) */
.main-nav .sub-menu .sub-menu {
    top: -0.4rem;
    left: 100%;
    transform: translateX(8px) translateY(0);
}

.main-nav .sub-menu .sub-menu::before {
    top: 0;
    left: -0.75rem;
    right: auto;
    width: 0.75rem;
    height: 100%;
}

.main-nav .sub-menu li:hover > .sub-menu {
    transform: translateX(0) translateY(0);
}

/* Arrow indicator for parent items */
.main-nav .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.6;
}

.main-nav .sub-menu .menu-item-has-children > a::after {
    content: '›';
    float: right;
    font-size: 0.9rem;
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--color-light);
    background-color: transparent;
    border: 2px solid var(--btn-color, var(--color-primary));
    color: var(--btn-color, var(--color-primary));
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: var(--btn-color, var(--color-primary));
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-light);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    overflow: hidden;
}

/* Slideshow */
.hero__slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* Mobile: fixed attachment not supported, fallback to scroll */
@supports not (background-attachment: fixed) {
    .hero__slide {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero__slide {
        background-attachment: scroll;
    }
}

.hero__slide.active {
    opacity: 1;
}

/* Overlay voile coloré — couleur et opacité contrôlées via Customizer */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color, #17252a);
    opacity: var(--hero-overlay-opacity, 0.7);
    z-index: 1;
}

/* Slide dots */
.hero__dots {
    display: none;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero__dot.active,
.hero__dot:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Hero Particles Canvas */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Hero content — 2 colonnes */
.hero__content--split {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem;
    max-width: var(--max-width);
    width: 100%;
}

.hero__text {
    flex: 1;
    text-align: left;
}

.hero__title {
    color: var(--color-light);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero__title .accent-text {
    display: block;
    font-size: 1.2em;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.hero__subtitle {
    color: var(--color-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
}

.hero__logo {
    flex: 0 0 auto;
    max-width: 500px;
    animation: heroFloat 4s ease-in-out infinite;
}

.hero__logo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    filter: drop-shadow(0 0 30px rgba(3, 169, 244, 0.3));
    transition: filter 0.5s ease;
}

.hero__logo img:hover {
    filter: drop-shadow(0 0 50px rgba(3, 169, 244, 0.5));
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero scroll hint */
.hero__scroll-hint {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    cursor: pointer;
    animation: scrollBounce 2s ease-in-out infinite;
    text-decoration: none;
}

.hero__scroll-hint span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__scroll-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.hero__scroll-hint:hover span,
.hero__scroll-hint:hover .hero__scroll-arrow {
    color: var(--color-primary);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Buttons — under text column, centered */
.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.8rem;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--btn-hero-color, #ffffff);
    background-color: transparent;
    border: 2px solid var(--btn-hero-color, #ffffff);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--btn-hero-color, #ffffff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-hero:hover {
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.btn-hero:hover::before {
    opacity: 1;
}

/* SVG icons inside buttons */
.btn-cta svg,
.btn-hero svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delay for cards */
.cards-grid .card:nth-child(1) { transition-delay: 0s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.24s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.36s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.48s; }
.cards-grid .card:nth-child(6) { transition-delay: 0.6s; }

.card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(3, 169, 244, 0.15);
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card__image--placeholder {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 3rem;
}

.card__body {
    padding: 1.5rem;
}

.card__meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.card__title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card__title a {
    color: var(--color-dark);
}

.card__title a:hover {
    color: var(--color-primary);
}

.card__excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card__link {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card__link::after {
    content: '→';
    transition: transform var(--transition);
}

.card__link:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Team Grid
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-member__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--color-primary);
}

.team-member__photo--placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 2.5rem;
    font-weight: 900;
}

.team-member__name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.team-member__role {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.team-member__bio {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Event Section — Modern Card Design
   ========================================================================== */

/* ==========================================================================
   Event Section — Timeline
   ========================================================================== */

.event-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.event-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 169, 244, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Timeline container */
.events-timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    padding-left: 140px;
}

/* Vertical line */
.events-timeline::before {
    content: '';
    position: absolute;
    left: 130px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent-2), transparent);
}

/* Timeline item */
.events-timeline__item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}

.events-timeline__item:last-child {
    padding-bottom: 0;
}

/* Date badge — carré arrondi */
.events-timeline__date {
    position: absolute;
    left: -140px;
    top: 0;
    width: 110px;
    text-align: center;
}

.events-timeline__date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s ease;
}

.events-timeline__date-badge--highlight {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.2), rgba(102, 50, 255, 0.2));
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.2);
}

.events-timeline__item:hover .events-timeline__date-badge {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.15);
}

.events-timeline__day {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary);
}

.events-timeline__month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.events-timeline__year {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Dot on the line */
.events-timeline__dot {
    position: absolute;
    left: -7px;
    top: 28px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-dark);
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.events-timeline__item--next .events-timeline__dot {
    width: 16px;
    height: 16px;
    left: -9px;
    top: 26px;
    box-shadow: 0 0 12px rgba(3, 169, 244, 0.6);
}

.events-timeline__item:hover .events-timeline__dot {
    box-shadow: 0 0 12px rgba(3, 169, 244, 0.5);
}

/* Event card */
.events-timeline__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.events-timeline__item:hover .events-timeline__card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(3, 169, 244, 0.25);
    transform: translateX(4px);
}

.events-timeline__item--next .events-timeline__card {
    border-color: rgba(3, 169, 244, 0.2);
}

.events-timeline__badge-next {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    background: var(--color-primary);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.events-timeline__card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.events-timeline__icon {
    font-size: 1.3rem;
}

.events-timeline__name {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: #fff;
}

.events-timeline__meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.6rem;
}

.events-timeline__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.events-timeline__cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.events-timeline__cta:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Agenda Page — événements à venir + passés
   ========================================================================== */

.agenda-page {
    padding: 3rem 0;
}

.agenda-page--past {
    padding-top: 0;
}

.agenda-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.agenda-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    transition: all 0.4s ease;
}

.agenda-card--upcoming:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(3, 169, 244, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.agenda-card--past {
    opacity: 0.5;
}

.agenda-card--past:hover {
    opacity: 0.75;
}

/* Date circle → carré arrondi */
.agenda-card__date-col {
    display: flex;
    justify-content: center;
}

.agenda-card__date-circle {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15), rgba(102, 50, 255, 0.15));
    border: 1px solid rgba(3, 169, 244, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-card__date-circle--past {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.agenda-card__day {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.agenda-card__month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.agenda-card__type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.agenda-card__icon {
    font-size: 1.1rem;
}

.agenda-card__type-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    font-weight: 600;
}

.agenda-card__title {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.agenda-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.agenda-card__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.agenda-card__cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.agenda-card__cta:hover {
    color: var(--color-secondary);
}

.agenda-card__image {
    width: 140px;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    align-self: stretch;
}

/* Show image column when present */
.agenda-card:has(.agenda-card__image) {
    grid-template-columns: 90px 1fr 140px;
}

/* ==========================================================================
   Single Event — Info Bar
   ========================================================================== */

.event-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(3, 169, 244, 0.06);
    border: 1px solid rgba(3, 169, 244, 0.15);
    border-radius: var(--radius-sm);
}

.event-info-bar__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.event-info-bar__icon {
    font-size: 1.1rem;
}

.event-badge--past {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
}

/* Agenda card title links */
.agenda-card__title a,
.events-timeline__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agenda-card__title a:hover,
.events-timeline__name a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Join / CTA Section
   ========================================================================== */

.join-section {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 5rem 0;
}

.join-section h2 {
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.join-section p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-message--error {
    background-color: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--color-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

/* ==========================================================================
   Blog Hero (with particles background)
   ========================================================================== */

.blog-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    color: #fff;
    background-color: var(--color-dark);
    overflow: hidden;
    min-height: 280px;
}

.blog-hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.1), rgba(102, 50, 255, 0.1));
    z-index: 2;
    pointer-events: none;
}

.blog-hero__content {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   Blog Listing Page
   ========================================================================== */

.blog-listing {
    background-color: var(--color-dark);
    padding: 3rem 0 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(3, 169, 244, 0.5);
    box-shadow: 0 0 25px rgba(3, 169, 244, 0.15);
}

.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card__image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.06);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15), rgba(102, 50, 255, 0.15));
    color: rgba(255, 255, 255, 0.3);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.7rem;
}

.blog-card__title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card__read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__read-more {
    color: var(--color-secondary);
}

/* ==========================================================================
   Single Post — Full-page particles + framed article
   ========================================================================== */

.single-page-wrap {
    position: relative;
    background-color: var(--color-dark);
    min-height: 100vh;
    color: #fff;
}

.single-page-wrap__particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.single-page-wrap__inner {
    position: relative;
    z-index: 1;
    padding: 4rem 0 4rem;
}

/* Article header (above the frame) */
.article-frame__header {
    text-align: center;
    padding: 2rem 0 2.5rem;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-hero__cat {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-hero__title {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* The framed article card */
.article-frame {
    background: rgba(23, 37, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(3, 169, 244, 0.05);
}

.article-frame__featured {
    margin: -1rem -1rem 2.5rem -1rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.article-frame__featured-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

/* Article body (inside the frame) */
.article-frame__body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
}

.article-frame__body h2 {
    font-family: var(--font-headings);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.8rem;
}

.article-frame__body h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.4rem;
}

.article-frame__body p {
    margin-bottom: 1.3rem;
    font-size: 1.15rem;
}

.article-frame__body img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    max-width: 100%;
}

.article-frame__body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(3, 169, 244, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.article-frame__body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-frame__body a:hover {
    color: var(--color-secondary);
}

.article-frame__body ul,
.article-frame__body ol {
    margin: 1rem 0 1.3rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
}

.article-frame__body li {
    margin-bottom: 0.4rem;
}

/* Tags */
.article-content__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(3, 169, 244, 0.3);
    border-radius: 20px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(3, 169, 244, 0.15);
    border-color: var(--color-primary);
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-nav__prev {
    text-align: left;
}

.article-nav__next {
    text-align: right;
}

.article-nav__link {
    display: block;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(3, 169, 244, 0.3);
}

.article-nav__label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.article-nav__title {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.article-content__back {
    margin-top: 2.5rem;
    text-align: center;
}

/* single-post styles removed — WordPress uses .single-post on body,
   new template uses .article-content / .article-hero classes instead */

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-404__code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h1 {
    margin-bottom: 1rem;
}

.error-404 p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Team Section (Enhanced)
   ========================================================================== */

.team-section {
    padding: 5rem 0;
}

.team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    text-align: center;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card__image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.3);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.team-card:hover .team-card__image {
    box-shadow: 0 0 40px rgba(3, 169, 244, 0.6);
    border-color: var(--color-secondary);
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__image img {
    transform: scale(1.1);
}

.team-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.team-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
}

.team-card:hover .team-card__overlay {
    opacity: 1;
}

.team-card__bio {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.team-card__info {
    padding: 1rem 0;
}

.team-card__name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: inherit;
}

.team-card__role {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
}

/* ==========================================================================
   Gallery Masonry + Lightbox
   ========================================================================== */

.gallery-section {
    padding: 5rem 0;
}

.gallery-masonry {
    columns: 3;
    column-gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    display: block;
    position: relative;
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.gallery-item:hover .gallery-item__hover {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
    line-height: 1;
}

.lightbox__close:hover {
    transform: scale(1.2);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10001;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   Activities Section
   ========================================================================== */

.activities-section {
    padding: 5rem 0;
}

.activities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.activity-card {
    flex: 1 1 280px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.activity-card--link {
    cursor: pointer;
}

.activity-card--link:hover {
    border-color: rgba(3, 169, 244, 0.3);
}

.activity-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15), rgba(247, 144, 7, 0.15));
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.activity-card:hover .activity-card__icon {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.3), rgba(247, 144, 7, 0.3));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.3);
}

.activity-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.activity-card__desc {
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.7;
}

.activity-card__arrow {
    display: block;
    margin-top: 0.6rem;
    font-size: 1.1rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Animations (scroll reveal)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-dark);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }

    .main-nav .sub-menu a {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .main-nav .sub-menu .sub-menu {
        left: 0;
    }

    .main-nav .menu-item-has-children > a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .main-nav.active .header-cta--mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-cta--mobile .btn-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-bottom: 6rem;
    }

    .hero__content--split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero__text {
        text-align: center;
    }

    .hero__logo {
        max-width: 300px;
    }

    .hero__buttons {
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Events timeline responsive */
    .events-timeline {
        padding-left: 0;
    }

    .events-timeline::before {
        display: none;
    }

    .events-timeline__date {
        position: static;
        width: auto;
        margin-bottom: 0.8rem;
    }

    .events-timeline__dot {
        display: none;
    }

    .events-timeline__item {
        padding-left: 0;
    }

    .events-timeline__card {
        padding: 1.2rem 1.5rem;
    }

    .events-timeline__item:hover .events-timeline__card {
        transform: none;
    }

    /* Agenda page responsive */
    .agenda-card {
        grid-template-columns: 70px 1fr;
        padding: 1.2rem;
        gap: 1rem;
    }

    .agenda-card__date-circle {
        width: 60px;
        height: 60px;
    }

    .team-card__image {
        width: 150px;
        height: 150px;
    }

    .team-section .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .gallery-masonry {
        columns: 2;
    }

    .lightbox__prev,
    .lightbox__next {
        padding: 0.6rem;
        font-size: 1.5rem;
    }

    .activities-grid {
        gap: 0.8rem;
    }

    .activity-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 1.2rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Page Hero Banner (pages intérieures)
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.15), rgba(102, 50, 255, 0.15));
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-family: var(--font-headings);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero__desc {
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Team Page — Profils détaillés
   ========================================================================== */

.team-page {
    background-color: var(--color-dark);
    color: #fff;
    padding: 4rem 0;
}

.team-page__grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.team-profile:hover::before {
    transform: scaleX(1);
}

.team-profile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(3, 169, 244, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.team-profile--reverse {
    direction: rtl;
}

.team-profile--reverse > * {
    direction: ltr;
}

.team-profile__visual {
    display: flex;
    justify-content: center;
}

.team-profile__image-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-profile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.team-profile:hover .team-profile__image {
    transform: scale(1.05);
    border-color: var(--color-secondary);
}

.team-profile__placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    border: 3px solid var(--color-primary);
}

.team-profile__glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary),
        var(--color-accent-2),
        var(--color-secondary),
        var(--color-primary)
    );
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.5s ease;
}

.team-profile:hover .team-profile__glow {
    opacity: 0.6;
}

.team-profile__header {
    margin-bottom: 1rem;
}

.team-profile__name {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-profile__role {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 0.3rem 1rem;
    border: 1px solid rgba(3, 169, 244, 0.4);
    border-radius: 20px;
    background: rgba(3, 169, 244, 0.1);
    letter-spacing: 0.5px;
}

.team-profile__bio {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
}

.team-profile__bio p {
    margin-bottom: 0.8rem;
}

.team-profile__bio p:last-child {
    margin-bottom: 0;
}

.team-profile__bar {
    width: 60px;
    height: 3px;
    margin-top: 1.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-2));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.team-profile:hover .team-profile__bar {
    width: 120px;
}

/* Team Page Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 0 3rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .team-profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .team-profile--reverse {
        direction: ltr;
    }

    .team-profile__image-wrap {
        width: 180px;
        height: 180px;
    }

    .team-profile__bio {
        max-width: 100%;
    }

    .team-profile__bar {
        margin-left: auto;
        margin-right: auto;
    }

    /* Blog responsive */
    .blog-hero {
        padding: 4rem 0 2.5rem;
        min-height: 200px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card__image-wrap {
        height: 180px;
    }

    .article-frame {
        padding: 2rem 1.5rem;
    }

    .article-frame__header {
        padding: 1.5rem 0 2rem;
    }

    .article-hero__title {
        font-size: 1.8rem;
    }

    .article-frame__body p,
    .article-frame__body ul,
    .article-frame__body ol {
        font-size: 1rem;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .join-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gallery-masonry {
        columns: 1;
    }
}
