/* ============================================================
   DESIGN SYSTEM — Flip Flap Circus
   Palette : Rouge Chapiteau #B22222 | Or #FFD700 | Noir #0A0A0A
   ============================================================ */
:root {
    --color-primary:      #B22222;
    --color-primary-dark: #8b1919;
    --color-accent:       #FFD700;
    --color-accent-hover: #e6c200;
    --color-dark:         #1A1A1A;
    --color-darker:       #0A0A0A;
    --color-dark-card:    #242424;
    --color-light:        #F5F5F5;
    --color-body-text:    #A0A0A0;
    --color-white:        #ffffff;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --max-width: 1280px;
    --gutter:    32px;

    --transition-fast:   0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: 1.125rem;       /* 18px */
    line-height: 1.618;        /* Nombre d'Or */
    color: var(--color-body-text);
    background-color: var(--color-darker);
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── CONTAINER ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── GRID 12 ── */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

/* Petite grille 2 colonnes utilisée pour des paires de blocs de texte
   (ex. "Le matin / L'après-midi", "Au programme") — repasse à 1
   colonne sur mobile. */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .two-col-grid { grid-template-columns: 1fr; }
}
/* min-width:0 annule le comportement par défaut des cases de grille
   CSS, qui refusent de rétrécir en dessous de la taille "naturelle" de
   leur contenu (ex. une image) — sans ça, une image ou un long texte
   peut forcer TOUTE la grille (donc aussi les colonnes voisines) à
   dépasser la largeur de l'écran, même en une seule colonne sur
   mobile. */
.col-span-12 { grid-column: span 12; min-width: 0; }
.col-span-8  { grid-column: span 8;  min-width: 0; }
.col-span-6  { grid-column: span 6;  min-width: 0; }
.col-span-5  { grid-column: span 5;  min-width: 0; }
.col-span-4  { grid-column: span 4;  min-width: 0; }
.col-span-3  { grid-column: span 3;  min-width: 0; }

/* ── UTILITIES ── */
.flex-center   { display: flex; justify-content: center; align-items: center; }
.section-padding { padding: 100px 0; }
.bg-dark       { background-color: var(--color-dark); }
.bg-darker     { background-color: var(--color-darker); }
.text-light    { color: var(--color-light); }

.img-crisp {
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.05) saturate(1.1);
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-header h2 {
    font-size: 2.5rem;          /* 40px */
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 640px;
    margin: 20px auto 0;
    opacity: 0.75;
}

/* ── BUTTONS ── */
.cta-button, .btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-darker);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
    transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
}

.cta-button:hover, .btn-primary:hover {
    transform: scale(1.05);
    filter: saturate(1.2);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.45);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 300ms ease, background 300ms ease, color 300ms ease;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-darker);
    transform: scale(1.05);
}

/* ── HEADER ── */
#header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 96px;
    padding-inline: 64px;
}

/* Logo +40% — 60px × 1.4 = 84px */
.logo-img {
    height: 84px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.15) contrast(1.1);
    transition: transform 0.8s ease-in-out;
}

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

/* Navigation centrée */
.main-nav { display: flex; align-items: center; }

.nav-links {
    display: flex;
    gap: 3rem;              /* espacement respiratoire */
}

.nav-links li a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 21px;
    background: transparent; border: none;
    cursor: pointer; z-index: 1001;
}
.menu-toggle span {
    width: 100%; height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: var(--transition-fast);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── HERO ── */
.hero-section {
    position: relative;
    height: 55vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 60% 40%, #1A1A1A 0%, #0A0A0A 100%);
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fallback-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25;
}

.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10,10,10,0.92) 0%,
        rgba(10,10,10,0.70) 55%,
        rgba(178,34,34,0.12) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;            /* 64px */
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,215,0,0.7); }
    70%  { transform: scale(1.04); box-shadow: 0 0 0 18px rgba(255,215,0,0);   }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,215,0,0);   }
}
.pulse-anim          { animation: pulse 2.5s infinite; }

.pulse-anim:hover    { animation: none; transform: scale(1.05); filter: saturate(1.2); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.page-header p {
    font-size: 1.125rem;
    color: var(--color-body-text);
    margin-top: 12px;
}

/* ── ADN CARDS (pédagogie / offre) ── */
.adn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gutter);
}

.adn-card {
    background-color: #ffffff;
    padding: 2.5rem;            /* uniform 40px */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-bottom-color var(--transition-fast);
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

/* Cartes "Nos Activités" : hauteur mini pour aligner les boutons sur
   une même ligne quand les 3 cartes sont côte à côte (desktop) —
   inutile en pile mobile, où ça ne fait que créer du vide. */
.offre-card { min-height: 400px; }

.adn-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-bottom-color: var(--color-primary);
}

.adn-card h3 { color: var(--color-primary); font-size: 1.2rem; }
.adn-card p  { color: #555; font-size: 0.95rem; margin-top: 8px; }

/* SVG icon wrapper */
.adn-icon-svg {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}

.adn-icon-svg svg {
    width: 100%; height: 100%;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.course-card {
    background-color: var(--color-dark-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex; flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}

.age-badge {
    background-color: var(--color-accent);
    color: var(--color-darker);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.focus {
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── PLANNING TABLE ── */
.planning-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.planning-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background-color: var(--color-dark-card);
    color: var(--color-light);
    font-size: 0.95rem;
}

.planning-table thead tr {
    background-color: var(--color-primary);
}

.planning-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.planning-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    vertical-align: middle;
}

.planning-table tbody tr:last-child td { border-bottom: none; }

.planning-table tbody tr:hover { background-color: rgba(255,215,0,0.04); }

.planning-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.badge-eveil   { background: rgba(255,215,0,0.15); color: var(--color-accent); }
.badge-enfants { background: rgba(178,34,34,0.15);  color: #e87070; }
.badge-mono    { background: rgba(100,200,255,0.12); color: #7de0ff; }
.badge-anniv   { background: rgba(150,255,150,0.12); color: #7dffa0; }

.tarif-accent { color: var(--color-accent); font-weight: 700; }

/* ── TARIFS TABLE ── */
.tarifs-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 24px;
}

.tarifs-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background-color: var(--color-dark-card);
    color: var(--color-light);
}

.tarifs-table thead tr { background-color: var(--color-primary); }

.tarifs-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.tarifs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tarifs-table tbody tr:last-child td { border-bottom: none; }

/* ── ÉQUIPE (PROF) ── */
.prof-card {
    background-color: var(--color-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.prof-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    border: 2px dashed rgba(255,215,0,0.3);
    background-color: rgba(255,255,255,0.03);
    margin-bottom: 18px;
}

.prof-card p {
    font-size: 0.95rem;
    color: var(--color-light);
    line-height: 1.6;
}

/* ── GALERIE VIDEO ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--gutter);
}

.yt-embed-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.yt-thumb-container {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
}

.yt-thumb-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.yt-thumb-container:hover img {
    transform: scale(1.04);
    filter: brightness(0.65);
}

.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background-color: rgba(178,34,34,0.92);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.yt-play-btn svg {
    width: 28px; height: 28px;
    fill: white;
    margin-left: 4px;
}

.yt-thumb-container:hover .yt-play-btn {
    background-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.12);
}

.yt-thumb-container:hover .yt-play-btn svg { fill: var(--color-darker); }

.yt-embed-wrap .yt-iframe-container {
    aspect-ratio: 16 / 9;
}

.yt-embed-wrap .yt-iframe-container iframe {
    width: 100%; height: 100%;
    border: none;
    display: block;
}

.yt-caption {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--color-light);
    background: #111;
}

/* ── INSCRIPTION WIDGET ── */
.inscription-widget {
    background-color: var(--color-white);
    color: var(--color-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.widget-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 22px 32px;
    text-align: center;
}

.widget-header h3 { margin: 0; color: var(--color-white); font-size: 1.2rem; }

.widget-form { padding: 24px; }

.helloasso-badge {
    text-align: center;
    padding: 14px;
    background: #f4f4f4;
    font-size: 0.875rem;
    color: #555;
    border-top: 1px solid #e5e5e5;
}

.helloasso-badge strong { color: #4CAF50; }

/* ── REDUCTIONS BOX ── */
.reductions-box {
    background-color: var(--color-dark-card);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    margin-top: 24px;
}

.reductions-box h4 { color: var(--color-body-text); font-size: 0.9rem; margin-bottom: 12px; }

.reductions-box ul {
    margin-left: 0;
    display: flex; flex-direction: column; gap: 6px;
}

.reductions-box li { font-size: 0.9rem; color: #ccc; }
.reductions-box li strong { color: var(--color-light); }

/* ── STAGES PAGE ── */
.stages-info-box {
    background-color: var(--color-dark-card);
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 32px;
}

.stages-info-box h3 {
    color: var(--color-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stages-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stage-date-card {
    background: var(--color-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-top: 3px solid var(--color-primary);
}

.stage-date-card h4 {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stage-date-card ul { display: flex; flex-direction: column; gap: 4px; }
.stage-date-card li { font-size: 0.9rem; color: #ccc; }

/* ── CIRCUS GRID (stages présentation) ── */
.circus-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.circus-fig {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border-left: 4px solid var(--color-accent);
    margin: 0;
}

.circus-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.circus-fig:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Image 1 */
.circus-fig--1 {
    grid-column: 1 / 7;
    grid-row: 1;
    aspect-ratio: 16 / 9;
    align-self: start;
}

/* Image 2 */
.circus-fig--2 {
    grid-column: 7 / 13;
    grid-row: 1;
    aspect-ratio: 16 / 9;
}

/* Panneaux texte — glassmorphism dans le negative space */
.circus-panel {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 2.25rem;
}

/* Panel 1 */
.circus-panel--1 {
    grid-column: 1 / 7;
    grid-row: 2;
    align-self: start;
}

/* Panel 2 */
.circus-panel--2 {
    grid-column: 7 / 13;
    grid-row: 2;
    aspect-ratio: 15 / 5;
}

@media (max-width: 768px) {
    .circus-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .circus-fig--1,
    .circus-fig--2,
    .circus-fig--3 {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin-top: 0;
        border-radius: 16px;
    }
    /* Oublié lors des précédents correctifs : un panneau (flex item de
       .circus-grid) refuse par défaut de rétrécir sous la taille
       naturelle de son contenu — ici la grille matin/après-midi. */
    .circus-panel { width: 100%; min-width: 0; }
}

/* ── FOOTER ── */
.footer {
    background: linear-gradient(180deg, #111 0%, rgba(178,34,34,0.08) 100%);
    color: var(--color-white);
    padding: 70px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
    text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; }

.footer-logo {
    height: 80px; width: auto;
    object-fit: contain;
    opacity: 0.92;
    border-radius: 8px;
    margin-bottom: 14px;
}

.footer-brand p { font-size: 0.95rem; opacity: 0.6; }

.footer h4 {
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-contact-item svg {
    width: 16px; height: 16px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a svg {
    width: 22px; height: 22px;
    fill: var(--color-light);
    transition: fill var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-links a:hover svg { fill: var(--color-darker); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-bottom a:hover { color: var(--color-accent); opacity: 1; }

/* ── ANIMATIONS ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ── HERO NAME ── */
.hero-name {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0;
    text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
@media (max-width: 768px) {
    .hero-name { font-size: 3.5rem; letter-spacing: 0.08em; }
}

/* ── CONTACT PAGE ── */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    min-height: 500px;
}
.contact-split-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.contact-split-right {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 480px;
    min-width: 0;
}
.contact-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: none;
    display: block;
    filter: invert(90%) hue-rotate(180deg) saturate(0.85) brightness(0.9);
    border-radius: 12px;
}
@media (max-width: 768px) {
    .contact-split { display: flex; flex-direction: column; }
    .contact-split-right { min-height: 300px; }
    .contact-map-iframe { min-height: 300px; }
}

.contact-info-card {
    background: var(--color-dark-card);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 100%;
}

.contact-info-card h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--color-light); }

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--color-light);
    opacity: 0.9;
}

.contact-line svg {
    width: 20px; height: 20px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-line a:hover { color: var(--color-accent); }

/* ── YOUTUBE MODAL ── */
.yt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.yt-modal-overlay.active { opacity: 1; visibility: visible; }

.yt-modal-inner {
    position: relative;
    width: 92%;
    max-width: 920px;
}
.yt-modal-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.yt-modal-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}
.yt-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.yt-modal-close:hover { opacity: 1; }
.yt-modal-ytlink {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}
.yt-modal-ytlink:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .nav-links  { gap: 2rem; }
}

@media (max-width: 768px) {
    /* Toutes les tailles du site sont en rem : réduire la taille de
       référence rétrécit proportionnellement textes ET paddings. */
    html { font-size: 15px; }

    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 90px; left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(10,10,10,0.98);
        backdrop-filter: blur(12px);
        transition: left var(--transition-smooth);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav.active { left: 0; }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links li a { font-size: 1.4rem; }

    .hero-title { font-size: 2.25rem; letter-spacing: -0.01em; }

    .section-padding { padding: 64px 0; }

    .page-header { padding-top: 130px; padding-bottom: 48px; }
    .page-header h1 { font-size: 2rem; }

    /* Abandonne complètement la grille CSS sur mobile au profit d'un
       simple empilement flex — même technique que .circus-panel--1
       ("Public & Organisation"), qui elle n'a jamais eu ce bug. */
    .grid-12 { display: flex; flex-direction: column; }
    .grid-12 > [class*="col-span-"] { width: 100%; min-width: 0; }

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

    .stages-dates-grid { grid-template-columns: 1fr; }

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

    .offre-card { min-height: auto; }

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

    /* Titres/paddings de section : la réduction du root font-size les
       réduit déjà proportionnellement (tout est en rem) ; ces
       overrides resserrent encore un peu plus l'espace vertical. */
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.9rem; }
    .section-header p { font-size: 1rem; }

    .adn-card, .course-card .card-content, .circus-panel,
    .contact-info-card, .stages-info-box, .reductions-box {
        padding: 1.5rem;
    }

    .logo-img { height: 64px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    :root { --gutter: 20px; }
    .hero-title { font-size: 1.9rem; }
}
