/*
 * Gaymer Festival 2026 — feuille de style de l'édition
 * ====================================================
 * Direction artistique « borne d'arcade queer » : fond sombre dégradé, cartes
 * « Boîte » à bordure crème, plaques de nom, palette arc-en-ciel et petits cœurs pixel.
 *
 * Organisation du fichier :
 *   1. Variables (couleurs, rayons, ombres, motion, typographie, espacements)
 *   2. Base de page et titres
 *   3. Boutons
 *   4. Sections, dans l'ordre de la page (hero, présentation, billetterie,
 *      programme, infos, cartes « Boîte », réseaux, partenaires…)
 *   5. Fond animé, barre arc-en-ciel, pied de page, page teaser
 *   6. Système d'animation (entrée, interaction, ambiant) et mouvement réduit
 *
 * Toutes les valeurs passent par les variables ci-dessous ; les animations
 * n'utilisent que transform/opacity/filter et sont neutralisées en mouvement réduit.
 */

:root {
    /* Palette DA 2026 (réutilisée par les carrés du fond en JS) */
    --gf-rouge:  #cb332b;
    --gf-corail: #e46e56;
    --gf-creme:  #f6d791;
    --gf-vert:   #4bad49;
    --gf-bleu:   #476ba7;
    --gf-violet: #693983;
    --gf-orange: #f5821f;
    --gf-jaune:  #ffc619;
    --gf-bleu-clair: #8fb6e8;
    --gf-violet-clair: #a878c9;
    --gf-argent: #bebac7;
    --gf-bord: var(--gf-creme);
    --gf-lueur:   rgba(246, 215, 145, 0.18);
    --gf-arc-en-ciel: linear-gradient(to right,
        var(--gf-rouge) 0% 16.667%, var(--gf-corail) 16.667% 33.333%,
        var(--gf-creme) 33.333% 50%, var(--gf-vert) 50% 66.667%,
        var(--gf-bleu) 66.667% 83.333%, var(--gf-violet) 83.333% 100%);
    --degrade-ambre: linear-gradient(to right, var(--gf-orange), var(--gf-jaune) 50%, var(--gf-orange));

    /* Surfaces & texte */
    --gf-encre:          #1a1422;
    --gf-panneau:        #251a46;
    --gf-panneau-doux:   rgba(255, 255, 255, 0.04);
    --gf-panneau-doux-bord: rgba(255, 255, 255, 0.10);
    --gf-panneau-doux-survol: rgba(255, 255, 255, 0.10);
    --gf-filet:     rgba(255, 255, 255, 0.16);
    --txt-clair:     #ffffff;
    --txt-attenue:       #e2e2ea;
    --txt-legal:       #a7a7ae;

    /* Rayons */
    --rayon-interne: 14px;
    --rayon-carte:  24px;
    --rayon-boite:   28px;
    --rayon-pilule:  999px;

    /* Ombres */
    --ombre-boite:   0 8px 18px rgba(0, 0, 0, 0.38);
    --ombre-carte:  0 8px 24px rgba(0, 0, 0, 0.22);
    --ombre-survol: 0 0 24px rgba(246, 215, 145, 0.45);
    --ombre-pressee: 0 5px 0 rgba(0, 0, 0, 0.35);
    --ombre-pressee-profonde:  0 1px 0 rgba(0, 0, 0, 0.35);
    --ombre-survol-ambre: 0 8px 20px rgba(245, 130, 31, 0.40);

    /* Motion */
    --duree-rapide:    240ms;
    --duree-base:    380ms;
    --duree-lente:    820ms;
    --courbe-sortie:    cubic-bezier(.22, .61, .36, 1);
    --courbe-pop:    cubic-bezier(.34, 1.2, .64, 1);
    --courbe-douce: cubic-bezier(.65, .05, .36, 1);
    --elevation-survol:  -4px;

    /* Motion -- extensions (borne d'arcade) */
    --courbe-ressort: cubic-bezier(.34, 1.15, .5, 1);
    --duree-tres-lente:   6000ms;

    /* Typographie */
    --police-titre: 'Righteous', system-ui, sans-serif;
    --police-texte:    'Work Sans', system-ui, sans-serif;
    --tp-geant:  clamp(38px, 7vw, 64px);
    --tp-titre:    clamp(24px, 4vw, 32px);
    --tp-sous-titre: clamp(19px, 2.4vw, 24px);
    --tp-etiquette:    clamp(18px, 2.2vw, 22px);
    --tp-corps:     16px;
    --tp-lecture:     18px;
    --tp-corps-petit:  14px;
    --tp-legende:  12px;
    --tp-micro:    13px;
    --tp-menu:      17px;
    --tp-bouton-accueil: 22px;

    --gf-fond-haut:    #1D1240;
    --gf-fond-milieu:    #2D1E5A;
    --gf-fond-bas: #0F0E0F;

    /* Espacement (échelle 4 / 8) */
    --esp-1: 4px;  --esp-2: 8px;  --esp-3: 12px; --esp-4: 16px; --esp-5: 20px;
    --esp-6: 24px; --esp-8: 32px; --esp-10: 40px; --esp-12: 48px; --esp-16: 64px;

    /* Largeurs de conteneur */
    --largeur-page:   1560px;
    --largeur-large:   1400px;
    --largeur-texte:    760px;
}

/* ============================================================
   BASE DE PAGE
   ============================================================ */

body {
    background: linear-gradient(10deg, var(--gf-fond-haut) 0%, var(--gf-fond-milieu) 43%, var(--gf-fond-bas) 100%);
    overflow-x: hidden;
}

main {
    width: 92%;
    max-width: var(--largeur-page);
    margin: auto;
    padding-top: var(--esp-6);
}

/* Lien d'évitement (accessibilité clavier) */
.lien-evitement {
    position: fixed;
    left: var(--esp-4);
    top: -60px;
    z-index: 2000;
    padding: var(--esp-2) var(--esp-4);
    font-family: var(--police-texte);
    font-weight: 700;
    color: var(--gf-encre);
    background: var(--gf-jaune);
    border-radius: var(--rayon-pilule);
    box-shadow: var(--ombre-boite);
    transition: top var(--duree-base) var(--courbe-sortie);
}

.lien-evitement:focus {
    top: var(--esp-4);
}

main > section {
    width: 100%;
    margin: auto;
    padding: var(--esp-16) 0;
    text-align: center;
    scroll-margin-top: var(--esp-6);
}

p {
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Sprite SVG hors flux (via <use>) */
.sprite-svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================================
   TITRES & TEXTES
   ============================================================ */

.section-titre {
    display: block;
    position: relative;
    font-family: var(--police-titre);
    font-style: normal;
    text-transform: uppercase;
    font-weight: 400;
    font-size: var(--tp-geant);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--txt-clair);
    margin: 0 0 var(--esp-8);
    padding: 0 0 var(--esp-6);
}

.section-titre::after {
    display: block;
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 4px;
    content: '';
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: url(../images/interface/separateur.svg) center no-repeat;
    background-size: contain;
}

.hors-ecran {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.section-intro {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--esp-4);
    max-width: var(--largeur-texte);
    margin: 0 auto;
    font-family: var(--police-texte);
    font-style: normal;
    font-weight: 500;
    font-size: var(--tp-sous-titre);
    line-height: 1.3;
    padding: var(--esp-2) 0;
    color: var(--gf-creme);
}

/* Tirets ambre encadrants (rappel du separateur des titres) */
.section-intro::before,
.section-intro::after {
    content: '';
    flex: 0 0 auto;
    width: 46px;
    height: 4px;
    background: url(../images/interface/separateur.svg) center / cover no-repeat;
    opacity: 0.9;
}

/* Mobile etroit : les tirets encombrent, on les retire */
@media (max-width: 479.98px) {
    .section-intro::before,
    .section-intro::after { display: none; }
}

h3 {
    font-family: var(--police-titre);
    font-style: normal;
    font-weight: 400;
    font-size: var(--tp-titre);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--txt-clair);
    margin: 0;
}

h4 {
    font-family: var(--police-titre);
    font-style: normal;
    font-weight: 400;
    font-size: var(--tp-etiquette);
    line-height: 1.25;
    color: var(--gf-creme);
    margin: 0;
}

h1 {
    font-family: var(--police-titre);
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--tp-geant);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--txt-clair);
    margin: 0 0 var(--esp-4);
}

/* ============================================================
   BOUTONS
   ============================================================ */

.bouton-primaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 14px 28px;
    margin: var(--esp-2);

    background: var(--degrade-ambre);
    border-radius: var(--rayon-interne);
    color: var(--gf-encre);
    box-shadow: var(--ombre-boite), var(--ombre-pressee);

    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-etiquette);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.25);

    transition: transform var(--duree-rapide) var(--courbe-pop), box-shadow var(--duree-base) var(--courbe-sortie), filter var(--duree-base) var(--courbe-sortie);
}

.bouton-primaire:hover {
    text-decoration: none;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: var(--ombre-survol-ambre), 0 7px 0 rgba(0, 0, 0, 0.35);
}

.bouton-primaire:active {
    text-decoration: none;
    transform: translateY(3px);
    box-shadow: var(--ombre-boite), var(--ombre-pressee-profonde);
    transition-duration: var(--duree-rapide);
}

.bouton-secondaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 26px;          /* -2px vs primaire : compense la bordure 2px */
    margin: var(--esp-2);

    background: transparent;
    border: 2px solid var(--gf-creme);
    border-radius: var(--rayon-interne);
    color: var(--gf-creme);

    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-etiquette);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;

    transition: background var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie), transform var(--duree-rapide) var(--courbe-pop);
}

.bouton-secondaire:hover {
    text-decoration: none;
    background: var(--gf-creme);
    color: var(--gf-encre);
    transform: translateY(-2px);
}

.bouton-secondaire:active {
    text-decoration: none;
    transform: translateY(1px);
}

/* Focus clavier visible (WCAG 2.4.7) */
.bouton-primaire:focus-visible,
.bouton-secondaire:focus-visible,
#programme-filtres button:focus-visible,
#menu-contenu a:focus-visible,
#menu-burger:focus-visible,
#menu-fermer:focus-visible,
.artiste-resume:focus-visible,
main a:focus-visible,
footer a:focus-visible {
    outline: 3px solid var(--gf-creme);
    outline-offset: 3px;
}

/* ============================================================
   HERO
   ============================================================ */

#accueil {
    max-width: none;
}

/* Hero 2 colonnes : texte + action a gauche, illustration a droite, bande dessous */
.accueil-haut {
    display: grid;
    grid-template-columns: 1fr 664px;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    max-width: var(--largeur-large);
    margin-inline: auto;
}

.accueil-texte {
    min-width: 0;
    text-align: left;
}

.accueil-texte #logo-gf {
    width: 100%;
    max-width: 664px;
    margin: 0 0 var(--esp-6);
}

.accueil-texte .accueil-concept { margin: 0 0 var(--esp-5); max-width: 664px; text-align: center; }
.accueil-texte #accueil-dates { margin: 0 0 var(--esp-6); max-width: 664px; box-sizing: border-box; }

.accueil-texte .accueil-actions {
    text-align: left;
    margin-top: var(--esp-6);
    max-width: 664px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--esp-3);
}

.accueil-texte .accueil-actions a { margin: 0; white-space: nowrap; flex-shrink: 0; }
.accueil-actions .bouton-primaire { padding: 22px 28px; font-size: var(--tp-bouton-accueil); }
.accueil-actions .bouton-secondaire { padding: 20px 26px; font-size: var(--tp-bouton-accueil); }

.accueil-haut #accueil-illustration { margin: 0; min-width: 0; }
.accueil-haut #accueil-illustration img { width: 100%; max-width: 100%; }

.accueil-bandeau {
    margin-top: clamp(28px, 5vw, 56px);
    max-width: var(--largeur-large);
    margin-inline: auto;
    text-align: center;
}

@media (max-width: 1239.98px) {
    .accueil-haut { grid-template-columns: 1fr; }
    .accueil-texte { text-align: center; }
    .accueil-texte #logo-gf,
    .accueil-texte .accueil-concept,
    .accueil-texte #accueil-dates,
    .accueil-texte .accueil-actions { margin-inline: auto; }
    .accueil-haut #accueil-illustration { margin: 0 auto var(--esp-4); }
    .accueil-haut #accueil-illustration img { max-width: clamp(340px, 55vw, 480px); }
}

#logo-gf {
    width: clamp(240px, 70vw, 520px);
    max-width: 86%;
    height: auto;
    margin: 0 auto var(--esp-6);
    filter: drop-shadow(var(--ombre-boite));
}

/* Pilule ambre : base commune (dates hero, heures programme, titres infos) */
.marche-note,
#accueil-dates,
.programme-colonne .programme-heure,
#infos-grille .bloc-titre {
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-etiquette);
    line-height: 1.1;
    padding: var(--esp-1) var(--esp-5) 6px;
    color: var(--gf-encre);
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
    border-radius: var(--rayon-pilule);
    box-shadow: var(--ombre-pressee);
    background: var(--degrade-ambre);
}

#accueil-dates {
    display: block;
    margin: 0 auto var(--esp-8);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding: var(--esp-4) var(--esp-8);
    border-radius: var(--rayon-interne);
}

#accueil .barre-arc-en-ciel {
    margin: var(--esp-3) auto var(--esp-8);
    box-shadow: var(--ombre-carte);
}

.accueil-slogan {
    max-width: none;
    margin: 0 auto var(--esp-4);
    font-family: var(--police-texte);
    font-weight: 600;
    font-size: var(--tp-lecture);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--gf-creme);
}

.accueil-affiche-titre {
    margin: var(--esp-8) 0 var(--esp-3);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gf-jaune);
}

.accueil-affiche {
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--esp-2) var(--esp-5);
    font-family: var(--police-titre);
    font-size: var(--tp-sous-titre);
    line-height: 1.3;
    color: var(--txt-clair);
}

.accueil-affiche-nom {
    display: inline-flex;
    align-items: center;
    gap: var(--esp-2);
    white-space: nowrap;
}

.accueil-affiche-nom::before {
    content: '';
    width: 0.5em;
    height: 0.5em;
    background: var(--gf-jaune);
    flex: 0 0 auto;
}

.accueil-concept {
    max-width: 42ch;
    margin: 0 auto var(--esp-6);
    font-family: var(--police-texte);
    font-weight: 600;
    font-size: var(--tp-sous-titre);
    line-height: 1.3;
    color: var(--txt-clair);
}

@media (min-width: 960px) {
    #accueil {
        padding-top: var(--esp-8);
    }
}

/* Sous 720px : CTA pleine largeur ; logo/accroche/dates ramenes a la meme largeur */
@media (max-width: 719.98px) {
    #accueil .bouton-primaire,
    #accueil .bouton-secondaire {
        display: flex;
        width: 100%;
        max-width: 340px;
        margin: var(--esp-2) auto;
        box-sizing: border-box;
    }
    .accueil-texte #accueil-dates,
    .accueil-texte #logo-gf,
    .accueil-texte .accueil-concept { max-width: 340px; }
}

/* ============================================================
   PRÉSENTATION
   ============================================================ */

#presentation .presentation-boite {
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
}

#presentation .presentation-coeurs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--esp-4);
    margin-top: var(--esp-8);
}

#presentation .presentation-coeurs .bientot-coeur {
    width: 48px;
    height: 48px;
}

#presentation .presentation-texte {
    font-family: var(--police-texte);
    font-size: var(--tp-lecture);
    line-height: 1.6;
    color: var(--txt-clair);
    text-align: center;
}

#presentation .presentation-texte p {
    margin: 0 0 var(--esp-5);
}

#presentation .presentation-texte p:last-child {
    margin-bottom: 0;
}

@media (min-width: 720px) {
    #presentation .presentation-texte {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--esp-4) var(--esp-10);
        align-items: start;
        text-align: left;
    }
    #presentation .presentation-texte p {
        margin: 0;
    }
}

/* ============================================================
   BILLETTERIE
   ============================================================ */

#billetterie {
    --transition: var(--duree-lente) var(--courbe-sortie);
}

#billetterie .billets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-6);
    justify-content: center;
    perspective: 1500px;
    max-width: var(--largeur-large);
    margin-inline: auto;
    margin-top: var(--esp-8);
}

#billetterie .billet {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 2 / 1;
    margin-top: 0;

    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    overflow: hidden;
    background-color: var(--gf-panneau);
    box-shadow: var(--ombre-boite);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

#billetterie .billet:hover,
#billetterie .billet:focus-within {
    box-shadow: var(--ombre-survol);
    filter: brightness(1.15);
}

@media (min-width: 960px) {
    #billetterie .billets {
        flex-wrap: nowrap;
        gap: var(--esp-10);
    }
    #billetterie .billet {
        width: calc(50% - var(--esp-5));
        max-width: none;
        margin-top: 0;
    }
    #billetterie .billet:nth-child(1):hover {
        transform: rotateX(5deg) rotateY(12deg) rotateZ(-5deg);
    }
    #billetterie .billet:nth-child(2):hover {
        transform: rotateX(5deg) rotateY(-12deg) rotateZ(5deg);
    }
}

#billetterie .billet > * {
    position: absolute;
}

#billetterie .billet > div {
    pointer-events: none;
}

#billetterie .billet a {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 10;
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--rayon-boite) - 3px);
}

/* Reflet qui balaye le ticket au survol */
#billetterie .billet a::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition: left var(--transition), right var(--transition);
}

#billetterie .billet:nth-child(1) a::before {
    left: 130%;
    background: linear-gradient(65deg, rgba(233, 207, 255, 0) 21%, rgba(255, 255, 255, 0.1) 26%, rgba(255, 255, 255, 0) 76%) no-repeat;
}
#billetterie .billet:nth-child(2) a::before {
    right: 80%;
    background: linear-gradient(125deg, rgba(233, 207, 255, 0) 31%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0) 86%) no-repeat;
}

#billetterie .billet:nth-child(1) a:hover::before { left: 30%; }
#billetterie .billet:nth-child(2) a:hover::before { right: -20%; }

#billetterie .billet .billet-image {
    width: 100%;
    height: 200%;
    left: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: calc(var(--rayon-boite) - 3px);
    z-index: 10;
}

#billetterie .billet img {
    width: 100%;
    display: block;
    transition: transform var(--transition);
}

#billetterie .billet:hover img {
    transform: scale(1.02);
}

#billetterie .billet:nth-child(1) img { transform-origin: 0% 75%; }
#billetterie .billet:nth-child(2) img { transform-origin: 100% 75%; }

/* pointer-events:none → le clic va au <a> */
#billetterie .billet-action {
    position: absolute;
    right: var(--esp-4);
    top: var(--esp-4);
    z-index: 11;
    pointer-events: none;

    padding: var(--esp-1) var(--esp-4) 6px;
    border-radius: var(--rayon-pilule);
    background: var(--degrade-ambre);
    color: var(--gf-encre);
    box-shadow: var(--ombre-pressee);

    font-family: var(--police-titre);
    font-size: var(--tp-legende);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);

    transition: transform var(--duree-rapide) var(--courbe-pop), box-shadow var(--duree-base) var(--courbe-sortie);
}

#billetterie .billet a:hover .billet-action,
#billetterie .billet a:focus-visible .billet-action {
    transform: translateY(-2px);
    box-shadow: var(--ombre-survol-ambre);
}

/* ============================================================
   PROGRAMME & PLANNING JDR
   ============================================================ */

#programme {
    width: 100%;
    --programme-couleur: var(--gf-creme);
    --programme-degrade: var(--gf-arc-en-ciel);
}

.programme-colonne {
    width: 100%;
    margin-top: var(--esp-5);
}

/* En-tête de jour : plaque argentée + lisérés ambre */
.programme-colonne .programme-date {
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-etiquette);
    text-transform: uppercase;
    padding: var(--esp-1) var(--esp-6);
    margin-bottom: var(--esp-4);
    border-radius: var(--rayon-interne);
    border-left: 5px solid var(--gf-orange);
    border-right: 5px solid var(--gf-orange);
    background: linear-gradient(to right, var(--gf-argent), var(--txt-clair), var(--gf-argent));
    color: var(--gf-encre);
    box-shadow: var(--ombre-boite);
}

.programme-colonne .programme-date span {
    display: inline-block;
    transform: translateY(-2px);
}

.programme-colonne .programme-date strong {
    display: inline-block;
    font-size: var(--tp-titre);
    font-weight: 400;
    margin-left: 6px;
}

/* Pilule heure : label ambre flottant sur le bord supérieur de la carte */
.programme-colonne .programme-heure {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 20;
    white-space: nowrap;
    transform: translateX(-50%) translateY(-50%);
}

#programme-grille {
    margin: var(--esp-8) auto 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: var(--esp-6);
    justify-items: center;
    max-width: var(--largeur-large);
}

@media (min-width: 600px) {
    #programme-grille {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    #programme-grille {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Carte programme = « Boîte » DA, liseré coloré en bas */
.programme-carte {
    position: relative;
    margin: 0 auto var(--esp-5);
    width: 100%;
    max-width: 400px;
    background-color: var(--gf-panneau);
    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    box-shadow: var(--ombre-boite);
    padding-bottom: var(--esp-1);
    transition: box-shadow var(--duree-base) var(--courbe-sortie);
}

.programme-carte:hover {
    box-shadow: var(--ombre-survol);
}

.programme-carte.type-evenement,
.programme-carte.type-ouverture,
.programme-carte.type-table {
    margin-top: var(--esp-10);   /* place pour la pilule heure qui dépasse */
    padding-top: var(--esp-4);
}

/* Liseré coloré du bas, nesté dans le contour */
.programme-carte .programme-lisere {
    position: absolute;
    z-index: 0;
    border-bottom-left-radius: calc(var(--rayon-boite) - 3px);
    border-bottom-right-radius: calc(var(--rayon-boite) - 3px);
    background: var(--gf-creme);
    width: 100%;
    height: 32px;
    bottom: 0;
}

.programme-carte.type-evenement .programme-lisere {
    background: var(--programme-degrade);
}

.programme-carte.type-table .programme-lisere {
    background: var(--gf-violet-clair);
}

/* surface opaque au-dessus du liseré */
.programme-carte .programme-contenu {
    z-index: 5;
    position: relative;
    border-radius: calc(var(--rayon-boite) - 3px);
    overflow: hidden;
    background-color: var(--gf-panneau);
}

.programme-carte.type-ouverture .programme-contenu,
.programme-carte.type-table .programme-contenu {
    padding-bottom: var(--esp-3);
}

/* Carte finissant par une image : au ras du bas */
.programme-carte.type-ouverture .programme-contenu:has(> img:last-child),
.programme-carte.type-table .programme-contenu:has(> img:last-child) {
    padding-bottom: 0;
}

.programme-carte .programme-titre {
    display: block;
    width: 100%;
    margin: var(--esp-4) 0 var(--esp-3);
    font-family: var(--police-titre);
    font-style: normal;
    text-transform: uppercase;
    font-weight: 400;
    font-size: var(--tp-sous-titre);
    line-height: 1.15;
    position: relative;
    padding: 0 var(--esp-3) var(--esp-4);
    box-sizing: border-box;
}

/* Pastille de catégorie en haut de carte */
.programme-carte.type-evenement .programme-titre::before,
.programme-carte.type-table .programme-titre::before {
    display: block;
    width: fit-content;
    margin: 0 auto var(--esp-3);
    padding: 3px var(--esp-3);
    border-radius: var(--rayon-pilule);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gf-encre);
}

.programme-carte.type-evenement .programme-titre::before {
    content: 'Évènement';
    background: var(--gf-jaune);
}

.programme-carte.type-evenement .programme-titre.spectacle::before {
    content: 'Spectacle';
}

.programme-carte.type-table .programme-titre::before {
    content: 'Table ronde';
    background: var(--gf-violet-clair);
}

.programme-carte .programme-titre::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    content: '';
    bottom: 0;
    left: 0;
    background: url(../images/interface/separateur.svg) center no-repeat;
    background-size: contain;
}

.programme-carte.type-ouverture .programme-titre,
.programme-carte.type-table .programme-titre {
    font-size: var(--tp-sous-titre);
    line-height: 1.25;
    padding-bottom: 0;
}

.programme-carte.type-ouverture .programme-titre::after,
.programme-carte.type-table .programme-titre::after {
    display: none;
}

/* Carte évènement sans description : pas de séparateur de titre */
.programme-carte.type-evenement .programme-contenu:not(:has(.programme-desc)) .programme-titre::after {
    display: none;
}

.programme-carte.type-ouverture .programme-titre {
    background: url(../images/programme/activites.png) center no-repeat;
    background-size: contain;
}

.programme-carte .programme-desc:last-child { margin-bottom: 0; }
.programme-carte .programme-desc {
    font-size: var(--tp-lecture);
    line-height: 1.6;
    margin: var(--esp-3) 0;
    padding: 0 var(--esp-3);
}

.programme-carte .programme-sous-titre {
    font-size: var(--tp-corps-petit);
}

.programme-carte span.casting {
    font-family: var(--police-texte);
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0 2px;
}

.programme-carte span.casting::before {
    content: '\25A0';
    color: var(--programme-couleur);
    padding-right: var(--esp-1);
}

.programme-carte img {
    width: 100%;
    display: block;
    border-radius: calc(var(--rayon-boite) - 3px);
}

/* Filtre du programme */
#programme-filtres {
    margin: var(--esp-6) 0;
}

#programme-filtres button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--esp-2) var(--esp-4);
    margin: var(--esp-1);
    background: transparent;
    border: 1.5px solid var(--gf-panneau-doux-bord);
    border-radius: var(--rayon-pilule);
    color: var(--txt-clair);

    font-family: var(--police-texte);
    font-weight: 600;
    font-size: var(--tp-corps);
    line-height: 1.1;
    cursor: pointer;
    transition: background var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

#programme-filtres button.filtre-tout:hover    { background: var(--gf-panneau-doux-survol); }
#programme-filtres button.filtre-evenements:hover,
#programme-filtres button.filtre-evenements.selectionne { background: var(--gf-jaune); color: var(--gf-encre); }
#programme-filtres button.filtre-tables:hover,
#programme-filtres button.filtre-tables.selectionne { background: var(--gf-violet-clair); color: var(--gf-encre); }

#programme-filtres button.filtre-tout.selectionne { background: var(--txt-clair); color: var(--gf-encre); box-shadow: 0 0 10px var(--txt-clair); }
#programme-filtres button.filtre-evenements.selectionne { box-shadow: 0 0 10px var(--gf-jaune); }
#programme-filtres button.filtre-tables.selectionne { box-shadow: 0 0 10px var(--gf-violet-clair); }

/* en-têtes de jour collants quand les colonnes s'empilent (mobile) */
@media (max-width: 959.98px) {
    .programme-colonne .programme-date {
        position: sticky;
        top: var(--esp-2);
        z-index: 120;
    }
}

/* Scroll-reveal (opt-in, piloté par JS) -- geste rise + scale */
.apparition { opacity: 0; transform: translateY(14px) scale(.985); }
.apparition.est-visible {
    opacity: 1;
    transform: none;
    transition: opacity var(--duree-lente) var(--courbe-sortie), transform var(--duree-lente) var(--courbe-sortie);
    transition-delay: var(--delai-apparition, 0ms);
}
/* Éléments signature : ressort contenu */
.section-titre.apparition { transform: translateY(18px) scale(.97); }
.section-titre.apparition.est-visible,
.affiche-carte.apparition.est-visible,
.archive-carte.apparition.est-visible {
    transition: opacity var(--duree-lente) var(--courbe-sortie), transform var(--duree-lente) var(--courbe-ressort);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    /* Exceptions : états statiques voulus par la DA */
    .coeur-fond { animation: none !important; opacity: 0.08; }
    .apparition, .apparition.est-visible { opacity: 1 !important; transform: none !important; }
    /* Neutralise l'état final du tilt billet */
    #billetterie .billet:hover,
    #billetterie .billet:nth-child(1):hover,
    #billetterie .billet:nth-child(2):hover,
    #billetterie .billet:hover img { transform: none !important; }
    #billetterie .billet:hover { filter: none !important; }

    /* Nouveaux patterns motion : états finaux visibles */
    html.js #accueil #logo-gf, html.js #accueil .accueil-concept, html.js #accueil #accueil-dates,
    html.js #accueil #accueil-illustration, html.js #accueil .accueil-slogan,
    html.js #accueil .accueil-affiche-titre, html.js #accueil .accueil-actions,
    html.js #accueil .accueil-affiche-nom, html.js #menu {
        opacity: 1 !important; transform: none !important;
    }
    #accueil .barre-arc-en-ciel, .barre-arc-en-ciel { opacity: 1 !important; transform: none !important; animation: none !important; background-position: 0 0 !important; }
    #accueil-illustration img { animation: none !important; }
    .accueil-actions .bouton-primaire { animation: none !important; }
    .bientot-coeur { animation: none !important; transform: none !important; }
    .programme-titre::before, .acces-badge, .regime-etiquette { animation: none !important; transform: none !important; }
    .programme-carte.programme-entree { animation: none !important; opacity: 1 !important; transform: none !important; }
    #menu-contenu, #menu-contenu a { transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */

#infos-grille {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-6);
    justify-content: center;
    align-items: flex-start;
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
}

.infos-carte {
    max-width: 688px;
    text-align: left;
}

/* Paragraphes justifiés (cohérent avec les cartes JDR/Marché), hors titre du lieu */
.infos-carte p:not(.lieu-nom) {
    text-align: justify;
    -webkit-hyphens: none;
    hyphens: none;
}

.infos-carte p {
    max-width: 68ch;
}

.infos-carte .lieu-nom {
    margin: 0;
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-titre);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--txt-clair);
}

.pmr-picto {
    display: block;
    margin: var(--esp-4) 0 0;
}

/* Étiquettes régime (restauration) */
.regime-etiquettes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-2);
    margin: var(--esp-4) 0;
    padding: 0;
}

.regime-etiquette {
    display: inline-flex;
    align-items: center;
    padding: var(--esp-1) var(--esp-4);
    border-radius: var(--rayon-pilule);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-vert);
    color: var(--gf-creme);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-corps-petit);
}

/* Colonnes égales */
#infos-grille > * {
    flex: 1 1 360px;
    min-width: 0;
    max-width: 688px;
}

#infos-grille > div > .infos-carte + .infos-carte {
    margin-top: var(--esp-6);
}

/* Titre de bloc = label ambre */
#infos-grille .bloc-titre {
    display: inline-block;
    margin: 0 0 var(--esp-4);
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

#carte-cadre {
    text-align: center;
    margin-top: var(--esp-4);
}

#carte-cadre a {
    display: block;
}

#carte-bulle {
    display: block;
    width: 100%;
    aspect-ratio: 640 / 496;
    box-sizing: border-box;
    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    background: #fff;
    box-shadow: var(--ombre-boite);
    transition: box-shadow var(--duree-base) var(--courbe-sortie);
}

#carte-cadre a:hover #carte-bulle,
#carte-cadre a:focus-visible #carte-bulle {
    box-shadow: var(--ombre-survol);
}

/* Bloc « Comment venir » : badges de lignes + CTA */
.acces {
    margin: var(--esp-5) 0 var(--esp-4);
}

.acces-titre {
    margin: 0 0 var(--esp-3);
    font-family: var(--police-titre);
    font-size: var(--tp-etiquette);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--gf-creme);
}

.acces-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--esp-3);
}

.acces-ligne {
    display: flex;
    align-items: center;
    gap: var(--esp-3);
}

.acces-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 var(--esp-3);
    box-sizing: border-box;
    border-radius: var(--rayon-interne);
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: var(--tp-corps);
    line-height: 1;
    box-shadow: var(--ombre-pressee);
}

.acces-badge.ligne-metro {
    min-width: 34px;
    width: 34px;
    padding: 0;
    border-radius: var(--rayon-pilule);
    background: var(--degrade-ambre);
    color: var(--gf-encre);
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
}

.acces-badge.ligne-bus {
    background: var(--gf-bleu);
    color: var(--txt-clair);
}

.acces-texte {
    font-size: var(--tp-corps-petit);
    line-height: 1.6;
    color: var(--txt-clair);
}

.acces-texte b {
    color: var(--gf-creme);
}

.acces-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-2);
    margin-top: var(--esp-4);
}

.acces-actions .bouton-secondaire {
    margin: 0;
}

.acces-legende {
    margin: var(--esp-3) 0 0;
    font-size: var(--tp-corps-petit);
    color: var(--txt-attenue);
}

/* ============================================================
   CARTE « BOÎTE » DA + ARCHIVES
   ============================================================ */

.boite {
    display: block;
    box-sizing: border-box;
    padding: var(--esp-6);
    background: var(--gf-panneau);
    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    box-shadow: var(--ombre-boite);
}

/* Éditions précédentes : cartes cliquables */
.archives-grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--esp-6);
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
}

.archive-carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--esp-2);
    box-sizing: border-box;
    flex: 1 1 260px;
    max-width: 688px;
    aspect-ratio: 3 / 2;
    padding: var(--esp-8);
    background: center / cover no-repeat var(--gf-panneau);
    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    box-shadow: var(--ombre-boite);
    text-decoration: none;
    transition: transform var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

.archive-carte:hover,
.archive-carte:focus-visible {
    text-decoration: none;
    transform: translateY(var(--elevation-survol));
    box-shadow: var(--ombre-survol);
}

.archive-carte--a2025 {
    background-image: url("../images/archives/2025.webp");
}

.archive-carte--a2024 {
    background-image: url("../images/archives/2024.webp");
}

.archive-carte-annee {
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.01em;
    background: var(--degrade-ambre);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gf-jaune);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.archive-carte-action {
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-corps-petit);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--txt-clair);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   NOUS SOUTENIR
   ============================================================ */

#nous-soutenir > div {
    max-width: var(--largeur-large);
    margin: 0 auto;
}

/* ============================================================
   NOS RÉSEAUX
   ============================================================ */

#nos-reseaux .reseaux-grille {
    display: grid;
    gap: var(--esp-6);
    grid-template-columns: 1fr;
    max-width: var(--largeur-large);   /* même largeur que les autres blocs ; 3 colonnes = 6 tuiles en 3+3 */
    margin: var(--esp-8) auto 0;
}
@media (min-width: 480px) {
    #nos-reseaux .reseaux-grille { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
    #nos-reseaux .reseaux-grille { grid-template-columns: repeat(3, 1fr); }
}

.reseau {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 130px;
    box-sizing: border-box;
    font-family: var(--police-titre);
    font-weight: 400;
    font-size: clamp(26px, 6vw, 38px);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--txt-attenue);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-panneau-doux-bord);
    border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-carte);
    cursor: pointer;
    transition: background var(--duree-base) var(--courbe-sortie), border-color var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie);
}

#nos-reseaux a:hover {
    text-decoration: none;
}

.reseau:hover,
#nos-reseaux a:focus-visible .reseau {
    background: color-mix(in srgb, var(--gf-violet) 85%, transparent);
    border-color: var(--gf-creme);
    box-shadow: var(--ombre-survol);
    color: var(--txt-clair);
}

/* ============================================================
   PARTENAIRES
   ============================================================ */

.partenaires-logos {
    margin: var(--esp-8) auto 0;
    max-width: var(--largeur-large);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--esp-6);
}

@media (min-width: 880px) {
    .partenaires-logos {
        justify-content: space-between;
    }
}

/* cellules homogènes */
.partenaires-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 84px;
    box-sizing: border-box;
    transition: transform var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

#partenaires-boites img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(246, 215, 145, 0.35));
    transition: filter var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

.partenaires-logos a:hover img {
    filter: drop-shadow(0 0 12px rgba(246, 215, 145, 0.7));
}

/* Plaque blanche pour logos en texte sombre */
.partenaires-logos a.sur-fond-clair {
    background: #fff;
    border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-carte);
    padding: var(--esp-3) var(--esp-4);
}

#partenaires-boites a.sur-fond-clair img {
    max-height: 48px;
    filter: none;
}

#partenaires-boites img.centre-lgbti {
    max-height: 72px;
}

/* Logo « badge » sur fond (Game'n Chill) */
#partenaires-boites img.partenaire-badge {
    max-height: none;
    width: 80px;
    height: 80px;
    border-radius: var(--rayon-interne);
    box-shadow: var(--ombre-carte);
    filter: none;
    transition: transform var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

.partenaires-logos a.sur-fond-clair:hover,
.partenaires-logos a.sur-fond-clair:focus-visible {
    transform: translateY(var(--elevation-survol));
    box-shadow: var(--ombre-survol);
}

/* Logos sans plaque : lift au survol/focus, sans halo */
.partenaires-logos a:not(.sur-fond-clair):hover,
.partenaires-logos a:not(.sur-fond-clair):focus-visible {
    transform: translateY(var(--elevation-survol));
}

/* ============================================================
   LIENS DE TEXTE & UTILITAIRES
   ============================================================ */

/* liens de corps soulignés (WCAG 1.4.1) */
main p a,
footer nav a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alerte {
    color: var(--gf-creme);
}

/* Padding desktop pour dégager la nav fixe */
@media (min-width: 960px) {
    main {
        padding-top: var(--menu-degagement, 112px);
    }
    main > section {
        scroll-margin-top: var(--menu-degagement, 108px);   /* mesuré par JS (setNavClear), repli 108px */
    }
}

/* ============================================================
   FOND ANIMÉ
   ============================================================ */

#fond {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(215, 202, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 202, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
}

.coeur-fond {
    position: absolute;
    background: var(--couleur, var(--gf-violet));
    /* Cœur DA (masque data-URI) */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M1 0h2v1H1zM4 0h2v1H4zM0 1h7v3H0zM1 4h5v1H1zM2 5h3v1H2zM3 6h1v1H3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M1 0h2v1H1zM4 0h2v1H4zM0 1h7v3H0zM1 4h5v1H1zM2 5h3v1H2zM3 6h1v1H3z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 4px var(--couleur, var(--gf-violet)));
    opacity: 0;
    animation-name: coeur-scintille;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes coeur-scintille {
    0%, 100% { opacity: 0; }
    50%      { opacity: var(--opacite, 0.2); }
}

/* Barre arc-en-ciel (hero + footer) */
.barre-arc-en-ciel {
    height: var(--esp-3);
    width: min(90%, 540px);
    margin: var(--esp-5) auto;
    border-radius: var(--rayon-pilule);
    /* Bandes dures DA doublées -> défilement sans couture */
    background: linear-gradient(to right,
        var(--gf-rouge) 0 8.333%, var(--gf-corail) 8.333% 16.667%, var(--gf-creme) 16.667% 25%,
        var(--gf-vert) 25% 33.333%, var(--gf-bleu) 33.333% 41.667%, var(--gf-violet) 41.667% 50%,
        var(--gf-rouge) 50% 58.333%, var(--gf-corail) 58.333% 66.667%, var(--gf-creme) 66.667% 75%,
        var(--gf-vert) 75% 83.333%, var(--gf-bleu) 83.333% 91.667%, var(--gf-violet) 91.667% 100%);
    background-size: 200% 100%;
    animation: arc-en-ciel-defile 7s linear infinite;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.programme-carte .programme-titre.spectacle {
    font-size: var(--tp-sous-titre);
    line-height: 1.25;
    padding-bottom: 0;
}

.programme-carte .programme-titre.spectacle::after {
    display: none;
}

/* Encart « pas d'évènement de ce type ce jour » (affiché par le filtre) */
.programme-vide {
    display: none;
    margin: var(--esp-6) auto;
    padding: var(--esp-4) var(--esp-6);
    max-width: 460px;
    border-radius: var(--rayon-boite);
    border: 1.5px dashed rgba(246, 215, 145, 0.45);
    background: var(--gf-panneau-doux);
    color: var(--txt-attenue);
    font-style: italic;
}

[hidden] {
    display: none !important;
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */

footer {
    position: relative;
    overflow: hidden;
    margin: var(--esp-8);   /* pleine largeur : marge sp-8 partout (côtés = haut/bas) */
    border: 1.5px solid var(--gf-filet);
    border-radius: var(--rayon-boite);
    background-color: var(--gf-panneau);
    box-shadow: var(--ombre-boite);
    padding-top: var(--esp-8);
    padding-bottom: var(--esp-8);
}

footer .barre-arc-en-ciel {
    position: static;
    margin: 0 auto var(--esp-5);
}

.pied-dates {
    font-family: var(--police-titre);
    font-size: clamp(22px, 4.5vw, 34px);
    color: var(--gf-creme);
    text-align: center;
    margin: var(--esp-2) var(--esp-4) var(--esp-1);
    text-shadow: 0 0 14px var(--gf-lueur);
}

.pied-dates-note {
    font-family: var(--police-texte);
    font-weight: 600;
    font-size: var(--tp-corps);
    color: var(--txt-attenue);
    text-align: center;
    margin: 0 var(--esp-4) var(--esp-3);
}

/* Liens footer : token --tp-menu ; copyright/credits pilotes par --tp-micro (13px) */
#pied-liens > div:last-child {
    font-size: var(--tp-menu, 17px);
}

/* Icônes footer/header : halo crème */
footer img,
header img {
    transition: filter var(--duree-base) var(--courbe-sortie);
    filter: drop-shadow(0 0 5px rgba(246, 215, 145, 0.30));
}

footer img:hover, footer img:active,
header img:hover, header img:active {
    filter: drop-shadow(0 0 10px rgba(246, 215, 145, 0.70));
}

/* Cibles tactiles ≥44px pour les liens-icônes du footer */
#pied-liens a:has(.reseau-icone) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Burger / fermeture : neutralise le style natif des <button> */
#menu-burger,
#menu-fermer {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

#menu-burger {
    background: var(--gf-panneau);
    border: 3px solid var(--gf-creme);
    box-shadow: var(--ombre-pressee);
}

/* ============================================================
   PAGE TEASER (save the date)
   ============================================================ */

#teaser-visuel img {
    max-width: 100%;
    height: auto;
}

.rediffusions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-6);
    justify-content: center;
    margin-top: var(--esp-8);
}

.rediffusions a {
    display: inline-block;
    max-width: 460px;
}

.rediffusions img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--gf-bord);
    border-radius: var(--rayon-boite);
    box-shadow: var(--ombre-boite);
    transition: transform var(--duree-base) var(--courbe-sortie), box-shadow var(--duree-base) var(--courbe-sortie);
}

.rediffusions a:hover img,
.rediffusions a:focus-visible img {
    transform: translateY(var(--elevation-survol));
    box-shadow: var(--ombre-survol);
}

/* ============================================================
   HERO — illustration mascottes (Cécé)
   ============================================================ */
#accueil-illustration {
    margin: var(--esp-6) auto var(--esp-4);
}

#accueil-illustration img {
    width: clamp(300px, 80vw, 760px);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

/* ============================================================
   MARCHÉ GEEK
   ============================================================ */
.marche-note {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: var(--esp-8) auto 0;
    padding: var(--esp-2) var(--esp-6) 10px;
    line-height: 1.15;
    text-align: center;
}

.marche-grille,
.jdr-grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--esp-6);
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
    align-items: flex-start;
    text-align: center;
}

/* Sous-titre « jeux » d'une carte MJ */
.jdr-jeux {
    max-width: 100%;
    min-height: 2.4em; /* reserve 2 lignes : toutes les cartes JDR ont la meme hauteur */
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--police-titre);
    font-size: var(--tp-etiquette);
    line-height: 1.2;
    color: var(--gf-creme);
}

/* Carte placeholder « bientôt » */
.bientot {
    max-width: var(--largeur-texte);
    margin: var(--esp-8) auto 0;
    padding: var(--esp-10) var(--esp-8);
    text-align: center;
}

/* JDR : notice « Bientôt » en bandeau pleine largeur */
.jdr-bientot {
    max-width: var(--largeur-large);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--esp-6) var(--esp-10);
}

.jdr-bientot .bientot-texte {
    flex: 0 1 auto;
    max-width: 640px;
}

.jdr-bientot .bientot-coeurs {
    flex: 0 0 auto;
}

@media (min-width: 720px) {
    .jdr-bientot {
        justify-content: space-between;
        text-align: left;
    }
    .jdr-bientot .bientot-texte p {
        max-width: none;
        margin: var(--esp-2) 0 0;
    }
}

/* « Nous soutenir » en 2 colonnes (bénévolat | adhésion) */
.soutenir-grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--esp-6);
    margin-top: var(--esp-8);
}

.soutenir-colonne {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 688px;
    display: flex;
    flex-direction: column;
    padding: var(--esp-10) var(--esp-8);
    text-align: center;
}

.soutenir-colonne h3 {
    margin-bottom: var(--esp-3);
}

.soutenir-colonne > p,
.bientot p {
    max-width: 46ch;
    margin: 0 auto var(--esp-6);
    color: var(--txt-attenue);
}

/* footer de carte collé en bas → cartes équilibrées */
.soutenir-colonne .bientot-coeurs,
.soutenir-colonne .soutenir-actions {
    margin-top: auto;
}

.soutenir-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--esp-3);
}

.bientot-etiquette,
.tournoi-partenaire-titre {
    display: block;
    margin-bottom: var(--esp-3);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gf-jaune);
}

.bientot h3 {
    margin-bottom: var(--esp-3);
}

.bientot-coeurs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--esp-4);
}

.bientot-coeur {
    display: block;
    width: 30px;
    height: 30px;
    shape-rendering: crispEdges;
}

/* ============================================================
   CARTES ARTISTES (JDR & Marché)
   ============================================================ */

/* Carte = <details> sur la surface « Boîte » DA */
.artiste-carte {
    padding: var(--esp-5);
    box-sizing: border-box;
    flex: 1 1 calc((100% - 3 * var(--esp-6)) / 4);
    max-width: calc((100% - 3 * var(--esp-6)) / 4);
    min-width: 0;
    transition: box-shadow var(--duree-base) var(--courbe-sortie);
}

/* Grilles JDR/Marche : colonnes de largeur EGALE (la derniere rangee garde la
   meme largeur, juste centree, au lieu de grossir pour remplir). Paliers 4/3/2/1. */
@media (max-width: 1200px) {
    .artiste-carte {
        flex-basis: calc((100% - 2 * var(--esp-6)) / 3);
        max-width: calc((100% - 2 * var(--esp-6)) / 3);
    }
}
@media (max-width: 860px) {
    .artiste-carte {
        flex-basis: calc((100% - var(--esp-6)) / 2);
        max-width: calc((100% - var(--esp-6)) / 2);
    }
}
@media (max-width: 560px) {
    .artiste-carte {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.artiste-carte:hover,
.artiste-carte[open] {
    box-shadow: var(--ombre-survol);
}

/* En-tête cliquable (icône + plaque de nom + pseudo + chevron) */
.artiste-resume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--esp-3);
    cursor: pointer;
    list-style: none;
}

.artiste-resume::-webkit-details-marker { display: none; }
.artiste-resume::marker { content: ''; }

.artiste-icone {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: var(--rayon-interne);
    border: 2px solid var(--gf-creme);
    box-shadow: var(--ombre-carte);
    transition: transform var(--duree-rapide) var(--courbe-pop);
}

.artiste-resume:hover .artiste-icone { transform: scale(1.03); }

.artiste-identite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--esp-2);
    width: 100%;
}

.artiste-pseudo {
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-corps-petit);
    letter-spacing: 0.03em;
    color: var(--gf-bleu-clair);
}

/* Bascule = bouton « Détails / Réduire » clairement cliquable (pilule DA) */
.artiste-bascule {
    display: inline-flex;
    align-items: center;
    gap: var(--esp-2);
    padding: 6px var(--esp-4);
    border-radius: var(--rayon-pilule);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-creme);
    color: var(--gf-creme);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie), transform var(--duree-rapide) var(--courbe-pop);
}

/* Libellé : change selon l'état ouvert/fermé */
.artiste-bascule::before {
    content: 'Détails';
}
.artiste-carte[open] .artiste-bascule::before {
    content: 'Réduire';
}

/* Chevron dessiné, qui pivote à l'ouverture (vers le bas -> vers le haut) */
.artiste-bascule::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--duree-base) var(--courbe-pop);
}
.artiste-carte[open] .artiste-bascule::after {
    margin-top: 2px;
    transform: rotate(-135deg);
}

/* Survol / focus clavier : la pilule s'allume -> montre clairement que c'est cliquable */
.artiste-resume:hover .artiste-bascule,
.artiste-resume:focus-visible .artiste-bascule {
    background: var(--gf-creme);
    color: var(--gf-encre);
    transform: translateY(-1px);
}

/* Corps révélé au clic */
.artiste-corps {
    margin-top: var(--esp-4);
    padding-top: var(--esp-4);
    border-top: 1.5px solid var(--gf-panneau-doux-bord);
}

.artiste-carte[open] .artiste-corps {
    animation: artiste-apparition var(--duree-base) var(--courbe-sortie) both;
}

@keyframes artiste-apparition {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.artiste-accroche {
    margin: 0 0 var(--esp-3);
    font-family: var(--police-titre);
    font-size: var(--tp-etiquette);
    line-height: 1.2;
    color: var(--gf-creme);
}

/* Paragraphes de contenu (lecture) agrandis, hors legendes/venue-name/UI */
.infos-carte p:not([class]),
.soutenir-colonne p:not([class]),
.bientot-texte p:not([class]) {
    font-size: var(--tp-lecture);
}

.artiste-description {
    margin: 0 0 var(--esp-4);
    font-size: var(--tp-lecture);
    line-height: 1.6;
    color: var(--txt-attenue);
    text-align: justify;
    -webkit-hyphens: none;
    hyphens: none;
}

/* Boutons réseaux (Instagram) dans la carte dépliée */
.artiste-reseaux {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-2);
    justify-content: center;
}

.artiste-reseau {
    display: inline-flex;
    align-items: center;
    gap: var(--esp-2);
    box-sizing: border-box;
    min-height: 44px;
    padding: var(--esp-2) var(--esp-4);
    border-radius: var(--rayon-pilule);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-panneau-doux-bord);
    color: var(--gf-creme);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-corps-petit);
    text-decoration: none;
    transition: background var(--duree-base) var(--courbe-sortie), border-color var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie), transform var(--duree-rapide) var(--courbe-pop);
}

.artiste-reseau .reseau-glyphe {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.artiste-reseau:hover {
    background: var(--gf-creme);
    border-color: var(--gf-creme);
    color: var(--gf-encre);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================================
   PLAQUE DE NOM
   ============================================================ */

/* Plaque de nom : forme fixe (ratio 521/147), texte ajusté par fitNamePlates() */
.plaque-nom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 521 / 147;
    margin: 0 auto;
    overflow: hidden;
    background: url(../images/interface/plaque-nom.svg) center / 100% 100% no-repeat;
}

.plaque-nom .plaque-texte {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 6px;
    font-family: var(--police-titre);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--gf-encre);
    font-size: 22px;               /* valeur de départ de fitNamePlates */
}

/* ============================================================
   TOURNOI DE JEUX VIDÉO
   ============================================================ */
.tournoi-boite {
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
    text-align: center;
}

.tournoi-banniere {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--rayon-boite);
    box-shadow: var(--ombre-boite);
    margin-bottom: var(--esp-6);
}


.tournoi-intro {
    max-width: 60ch;
    margin: 0 auto var(--esp-2);
    font-size: var(--tp-sous-titre);
    line-height: 1.4;
    color: var(--txt-clair);
}

.tournoi-phases {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--esp-6);
    margin: var(--esp-6) 0;
    text-align: left;
}

@media (min-width: 600px) {
    .tournoi-phases {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
    }
}

.tournoi-phase {
    padding: var(--esp-5);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-panneau-doux-bord);
    border-radius: var(--rayon-carte);
}

.tournoi-phase-jour {
    display: block;
    margin-bottom: var(--esp-2);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gf-jaune);
}

.tournoi-phase h3 {
    margin: 0 0 var(--esp-3);
}

.tournoi-phase p {
    margin: 0;
    font-size: var(--tp-lecture);
    line-height: 1.6;
    color: var(--txt-attenue);
}

.tournoi-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--esp-2) var(--esp-3);
    margin: var(--esp-4) 0 var(--esp-6);
    padding: 0;
    list-style: none;
}

.tournoi-stat {
    padding: var(--esp-1) var(--esp-4);
    border-radius: var(--rayon-pilule);
    background: var(--gf-panneau-doux);
    border: 1.5px solid var(--gf-panneau-doux-bord);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-legende);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gf-creme);
}

/* Fleche de progression entre les 2 phases (qualif -> finale) */
.tournoi-fleche {
    align-self: center;
    justify-self: center;
    color: var(--gf-orange);
    font-size: var(--tp-sous-titre);
    line-height: 1;
}
.tournoi-fleche::before { content: "\2193"; }
@media (min-width: 600px) {
    .tournoi-fleche::before { content: "\2192"; }
}

.tournoi-partenaire {
    margin-top: var(--esp-6);
}

.tournoi-partenaire img {
    width: 80px;
    height: 80px;
    border-radius: var(--rayon-interne);
    box-shadow: var(--ombre-carte);
}

/* ============================================================
   À L'AFFICHE
   ============================================================ */
.affiche-grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--esp-6);
    max-width: var(--largeur-large);
    margin: var(--esp-8) auto 0;
}

.affiche-carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 275px;
    max-width: 332px;              /* 4 par ligne dans la colonne 1200 */
}

.affiche-photo {
    width: 100%;
    aspect-ratio: 900 / 674;
    object-fit: cover;
    border-radius: var(--rayon-boite);
    border: 3px solid var(--gf-bord);
    box-shadow: var(--ombre-boite);
}

.affiche-carte .plaque-nom {
    margin-top: var(--esp-3);
    max-width: 92%;
}

.affiche-role {
    display: block;
    margin-top: var(--esp-3);
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: var(--tp-corps-petit);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gf-creme);
}

.affiche-plus {
    max-width: 60ch;
    margin: var(--esp-8) auto 0;
    color: var(--txt-attenue);
    font-size: var(--tp-corps-petit);
}

.affiche-plus b {
    color: var(--txt-clair);
    font-weight: 700;
}


/* ============================================================
   SYSTEME D'ANIMATION -- « la borne d'arcade qui s'allume »
   3 couches : ENTREE (rise+scale) . INTERACTION (pop) . AMBIANT (boucle lente).
   Uniquement transform/opacity/filter. Neutralise par le bloc reduced-motion.
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes accueil-flotte { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes arc-en-ciel-defile { from { background-position: 0 0; } to { background-position: -100% 0; } }
@keyframes bouton-respire { 0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 130, 31, 0)); } 50% { filter: drop-shadow(0 4px 12px rgba(245, 130, 31, 0.55)); } }
@keyframes coeur-bat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } }
@keyframes pastille-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes programme-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Sequence d'entree du hero au chargement (garde html.js obligatoire) ---- */
html.js #accueil #logo-gf,
html.js #accueil .accueil-concept,
html.js #accueil #accueil-dates,
html.js #accueil #accueil-illustration,
html.js #accueil .accueil-slogan,
html.js #accueil .accueil-affiche-titre,
html.js #accueil .accueil-actions {
    opacity: 0;
    transform: translateY(16px) scale(.985);
}
html.js #accueil #logo-gf { transform: translateY(24px) scale(.92); }
html.js #accueil .barre-arc-en-ciel { opacity: 0; transform: scaleX(0); transform-origin: 50% 50%; }
html.js #accueil .accueil-affiche-nom { opacity: 0; transform: translateY(10px) scale(.96); }

body.demarre #accueil #logo-gf,
body.demarre #accueil .accueil-concept,
body.demarre #accueil #accueil-dates,
body.demarre #accueil #accueil-illustration,
body.demarre #accueil .accueil-slogan,
body.demarre #accueil .accueil-affiche-titre,
body.demarre #accueil .accueil-actions {
    opacity: 1;
    transform: none;
    transition: opacity var(--duree-lente) var(--courbe-sortie), transform var(--duree-lente) var(--courbe-ressort);
    transition-delay: var(--delai-demarrage, 0ms);
}
body.demarre #accueil .barre-arc-en-ciel {
    opacity: 1;
    transform: scaleX(1);
    transition: transform var(--duree-lente) var(--courbe-ressort), opacity var(--duree-base) linear;
    transition-delay: var(--delai-demarrage, 0ms);
}
body.demarre #accueil .accueil-affiche-nom {
    opacity: 1;
    transform: none;
    transition: opacity var(--duree-base) var(--courbe-sortie), transform var(--duree-base) var(--courbe-ressort);
    transition-delay: var(--delai-nom, 700ms);
}
#accueil #logo-gf            { --delai-demarrage:   0ms; }
#accueil .accueil-concept       { --delai-demarrage:  90ms; }
#accueil #accueil-dates      { --delai-demarrage: 170ms; }
#accueil #accueil-illustration  { --delai-demarrage: 230ms; }
#accueil .barre-arc-en-ciel        { --delai-demarrage: 480ms; }
#accueil .accueil-slogan       { --delai-demarrage: 560ms; }
#accueil .accueil-affiche-titre { --delai-demarrage: 620ms; }
#accueil .accueil-actions           { --delai-demarrage: 300ms; }   /* CTA tot : colonne gauche */

/* Barre nav desktop : entree douce au load */
@media (min-width: 960px) {
    html.js #menu { transform: translateY(-16px); opacity: 0; }
    body.demarre #menu {
        transform: none;
        opacity: 1;
        transition: transform var(--duree-lente) var(--courbe-ressort), opacity var(--duree-base) var(--courbe-sortie);
        transition-delay: 180ms;
    }
}

/* ---- Ambiants du hero ---- */
body.demarre #accueil-illustration img { animation: accueil-flotte var(--duree-tres-lente) ease-in-out infinite alternate; }
.accueil-actions .bouton-primaire { animation: bouton-respire var(--duree-tres-lente) ease-in-out infinite; }
.accueil-actions .bouton-primaire:hover { animation: none; }

/* ---- Coeurs pixel qui battent (vague decalee) ---- */
.bientot-coeur { animation: coeur-bat var(--duree-tres-lente) ease-in-out infinite; transform-origin: 50% 55%; }
.bientot-coeur:nth-child(1) { animation-delay:   0ms; }
.bientot-coeur:nth-child(2) { animation-delay: 130ms; }
.bientot-coeur:nth-child(3) { animation-delay: 260ms; }
.bientot-coeur:nth-child(4) { animation-delay: 390ms; }
.bientot-coeur:nth-child(5) { animation-delay: 520ms; }

/* ---- Hover / focus unifie : « la carte s'allume » ---- */
.affiche-carte, .tournoi-phase, .programme-carte, .soutenir-colonne, .infos-carte,
#jdr .artiste-carte, #marche .artiste-carte, #carte-bulle {
    transition: transform var(--duree-base) var(--courbe-pop), box-shadow var(--duree-base) var(--courbe-sortie);
}
.affiche-carte:hover, .affiche-carte:focus-within,
.tournoi-phase:hover, .tournoi-phase:focus-within,
.programme-carte:hover, .programme-carte:focus-within,
.soutenir-colonne:hover, .soutenir-colonne:focus-within,
.infos-carte:hover, .infos-carte:focus-within,
#jdr .artiste-carte:not([open]):hover, #jdr .artiste-carte:not([open]):focus-within,
#marche .artiste-carte:not([open]):hover, #marche .artiste-carte:not([open]):focus-within,
#carte-bulle:hover, #carte-bulle:focus-visible {
    transform: translateY(var(--elevation-survol));
    box-shadow: var(--ombre-survol);
}
.tournoi-phase:hover, .tournoi-phase:focus-within { box-shadow: var(--ombre-survol), inset 0 0 0 1px var(--gf-creme); }

/* Zoom d'image au survol de la carte affiche */
.affiche-photo { transition: transform var(--duree-base) var(--courbe-sortie); transform-origin: center; }
.affiche-carte:hover .affiche-photo, .affiche-carte:focus-within .affiche-photo { transform: scale(1.04); }

/* Archives : lift + micro-zoom */
.archive-carte { transition: transform var(--duree-base) var(--courbe-pop), box-shadow var(--duree-base) var(--courbe-sortie); }
.archive-carte:hover, .archive-carte:focus-within { transform: translateY(var(--elevation-survol)) scale(1.006); }

/* Tuiles reseaux : geste transform (le focus clavier est sur le <a>, pas le span) */
.reseau {
    transition: transform var(--duree-base) var(--courbe-pop), background var(--duree-base) var(--courbe-sortie),
        box-shadow var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie),
        border-color var(--duree-base) var(--courbe-sortie);
}
#nos-reseaux a:hover .reseau, #nos-reseaux a:focus-visible .reseau { transform: translateY(-3px) scale(1.02); }

/* Burger nav : touche arcade */
#menu-burger { transition: transform var(--duree-rapide) var(--courbe-pop); }
#menu-burger:hover, #menu-burger:focus-visible { transform: translateY(-1px) scale(1.05); }
#menu-burger:active { transform: translateY(1px) scale(.95); }

/* Logo partenaire tournoi + icones reseaux footer */
.tournoi-partenaire img, #pied-liens img.reseau-icone {
    transition: transform var(--duree-base) var(--courbe-pop), filter var(--duree-base) var(--courbe-sortie);
}
#pied-liens a:hover img.reseau-icone,
#pied-liens a:focus-visible img.reseau-icone { transform: translateY(-3px) scale(1.08); }

/* Boutons filtre programme : pop hover / press / selection */
#programme-filtres button {
    transition: transform var(--duree-rapide) var(--courbe-pop), background var(--duree-base) var(--courbe-sortie),
        box-shadow var(--duree-base) var(--courbe-sortie), color var(--duree-base) var(--courbe-sortie);
}
#programme-filtres button:hover { transform: translateY(-2px); }
#programme-filtres button:active { transform: translateY(1px) scale(.97); }
#programme-filtres button[aria-checked="true"], #programme-filtres button.selectionne { transform: translateY(-1px) scale(1.04); }

/* Micro-pops des pastilles / chips a l'apparition de la carte revelee */
.programme-carte.est-visible .programme-titre::before {
    animation: pastille-pop var(--duree-base) var(--courbe-pop) both;
    animation-delay: calc(var(--delai-apparition, 0ms) + 100ms);
}
.infos-carte.est-visible .acces-badge, .infos-carte.est-visible .regime-etiquette {
    animation: pastille-pop var(--duree-base) var(--courbe-pop) both;
}

/* Filtre programme : re-allumage des cartes restees visibles apres tri */
.programme-carte.programme-entree { animation: programme-pop var(--duree-base) var(--courbe-sortie) both; animation-delay: var(--delai-apparition, 0ms); }

/* Plaque de nom : survol = la plaque s'illumine SUR PLACE + léger pop.
   AUCUN halo/ombre/fond autour (la plaque est quasi rectangulaire -> tout effet
   extérieur lirait comme un rectangle). On n'anime QUE la plaque elle-même. */
.plaque-nom {
    transition: transform var(--duree-base) var(--courbe-pop), filter var(--duree-base) var(--courbe-sortie);
    filter: brightness(1);
}
.affiche-carte:hover .plaque-nom,
.affiche-carte:focus-within .plaque-nom,
.artiste-carte:hover .plaque-nom,
.artiste-carte:focus-within .plaque-nom {
    transform: scale(1.04);
    filter: brightness(1.13) saturate(1.1);
}

/* Cartes à l'affiche + JDR/Marché : SEULE la plaque s'anime au survol.
   On annule tout effet sur la CARTE elle-même (lift + halo box-shadow = « le rectangle
   autour ») et le zoom de la photo. Seule la plaque garde son scale + brightness. */
.affiche-carte:hover, .affiche-carte:focus-within {
    transform: none;
    box-shadow: none;
}
.affiche-carte:hover .affiche-photo, .affiche-carte:focus-within .affiche-photo {
    transform: none;
}
#jdr .artiste-carte:not([open]):hover, #jdr .artiste-carte:not([open]):focus-within,
#marche .artiste-carte:not([open]):hover, #marche .artiste-carte:not([open]):focus-within {
    transform: none;
    box-shadow: var(--ombre-boite);
}
