/* K'danse — feuille de style du site public.
   Conçue d'abord pour le téléphone (support principal des danseuses et danseurs),
   puis enrichie pour les écrans plus larges (640 px, 960 px). */

/* ---------- Polices hébergées avec le site (licence OFL) ---------- */
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-600-italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* ---------- Charte : toutes les couleurs et mesures passent par ces variables ---------- */
:root {
    --fond: #120b0f;            /* prune presque noir */
    --surface: #1d1318;
    --surface-2: #2a1c22;
    --texte: #f4e9ec;
    --texte-doux: #d9c4ca;
    --texte-discret: #bfa9b0;
    --trait: rgba(244, 233, 236, 0.16);
    --rouge: #d61f3a;           /* rouge du logo : fonds, boutons, grands titres */
    --rouge-fonce: #b0122c;
    --rouge-clair: #ff6b78;     /* rouge lisible pour les petits textes sur fond sombre */
    --rose-pale: #f0c9d0;
    --fond-rgb: 18 11 15;       /* --fond en composantes, pour les voiles transparents (en-tête, photo d'accueil) */
    --texte-rgb: 244 233 236;   /* --texte en composantes, pour les bordures légères */
    --initiales: #6f5960;       /* initiales des enseignants sans photo */
    --etiquette: var(--rose-pale);
    --sombre: #120b0f;          /* toujours sombre, quel que soit le thème (texte des bandeaux clairs) */
    --clair: #f4e9ec;           /* toujours clair, quel que soit le thème */
    --vert-texte: #8fdcae;
    --ombre: rgba(0, 0, 0, 0.4);
    --lueur: rgb(255 107 120 / 0.38);  /* halo rouge (survol des dates du planning) */

    --police-titres: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --police-texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --largeur: 1280px;
    --marge: clamp(16px, 5vw, 64px);
    --hauteur-entete: 72px;
    --rayon: 6px;
    --cible: 44px;              /* taille minimale d'une zone tactile */
}

/* Thème clair (interrupteur de l'en-tête, choix gardé par theme.js) : mêmes rouges, fond crème rosé */
:root[data-theme="clair"] {
    color-scheme: light;
    --fond: #faf6f7;
    --surface: #ffffff;
    --surface-2: #f1e6e9;
    --texte: #23161c;
    --texte-doux: #4a3840;
    --texte-discret: #6a5560;
    --trait: rgba(35, 22, 28, 0.14);
    --rouge-clair: #b3142e;     /* sur fond clair, le « rouge des petits textes » doit être plus foncé */
    --fond-rgb: 250 246 247;
    --texte-rgb: 35 22 28;
    --initiales: #b49aa3;
    --etiquette: #9a2c45;
    --vert-texte: #1a6b3e;
    --ombre: rgba(35, 22, 28, 0.16);
    --lueur: rgb(214 31 58 / 0.24);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--hauteur-entete);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--texte);
    text-underline-offset: 0.2em;
}
a:hover {
    color: var(--rouge-clair);
}
:focus-visible {
    outline: 3px solid var(--rouge-clair);
    outline-offset: 3px;
    border-radius: 2px;
}
h1, h2, h3,
.groupes tbody th {
    font-variant-numeric: lining-nums; /* chiffres alignés : « Niveau 1 » et non un chiffre « à l'ancienne » */
}
h1, h2, h3 {
    font-family: var(--police-titres);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
}
p {
    margin: 0;
}
.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* Groupe de mots à ne jamais couper en fin de ligne (Saint-Dié-des-Vosges, 2026 – 2027…) */
.insecable {
    white-space: nowrap;
}
.lien-evitement {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100;
    padding: 12px 16px;
    background: var(--texte);
    color: var(--fond);
    border-radius: var(--rayon);
}
.lien-evitement:focus {
    top: 8px;
}
.conteneur {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--marge);
}
.surtitre {
    font-family: var(--police-texte); /* même rendu quand le surtitre est un titre <h2> */
    font-weight: 400;
    line-height: 1.6;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rouge-clair);
    margin-bottom: 10px;
}
em.accent {
    color: var(--rouge-clair);
}

/* ---------- Boutons ---------- */
.bouton {
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bouton--plein {
    background: var(--rouge);
    color: #fff;
}
.bouton--plein:hover {
    background: var(--rouge-fonce);
    color: #fff;
}
.bouton--contour {
    background: transparent; /* une balise <button> a sinon le fond blanc du navigateur */
    border-color: rgb(var(--texte-rgb) / 0.5);
    color: var(--texte);
    font-weight: 500;
}
.bouton--contour:hover {
    border-color: var(--texte);
    color: var(--texte);
}
.bouton--sombre {
    background: var(--sombre);
    color: #fff;
}
.bouton--sombre:hover {
    background: #000;
    color: #fff;
}

/* ---------- En-tête et menu ---------- */
.entete {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--hauteur-entete);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.entete--solide,
.menu-ouvert .entete {
    background: rgb(var(--fond-rgb) / 0.94);
    box-shadow: 0 1px 0 var(--trait);
}
@supports (backdrop-filter: blur(8px)) {
    .entete--solide {
        background: rgb(var(--fond-rgb) / 0.8);
        backdrop-filter: blur(10px);
    }
    /* Menu ouvert : pas de flou. Un backdrop-filter fait de l'en-tête le cadre de ses éléments « fixed » :
       le menu plein écran serait réduit à la hauteur de l'en-tête (bug vu sur téléphone après défilement) */
    .menu-ouvert .entete--solide {
        background: rgb(var(--fond-rgb) / 0.94);
        backdrop-filter: none;
    }
}
.entete__barre {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.entete__logo {
    display: block;
    line-height: 0;
    position: relative;
    z-index: 2;
}
.entete__logo img {
    height: 48px;
    width: auto;
}
/* Interrupteur thème clair / sombre : soleil en thème sombre (passer au clair), lune en thème clair */
.bascule-theme {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cible);
    height: var(--cible);
    margin-left: auto;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--texte);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.bascule-theme:hover {
    border-color: var(--trait);
    color: var(--rouge-clair);
}
.no-js .bascule-theme,
.bascule-theme__lune,
[data-theme="clair"] .bascule-theme__soleil {
    display: none;
}
[data-theme="clair"] .bascule-theme__lune {
    display: block;
}
.logo-theme-clair,
[data-theme="clair"] .logo-theme-sombre {
    display: none !important;
}
[data-theme="clair"] .logo-theme-clair {
    display: block !important;
}
.burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: var(--cible);
    min-height: var(--cible);
    padding: 0 6px;
    background: none;
    border: 0;
    color: var(--texte);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}
.burger__icone {
    position: relative;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: background-color 0.2s;
}
.burger__icone::before,
.burger__icone::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s;
}
.burger__icone::before { top: -7px; }
.burger__icone::after { top: 7px; }
.burger[aria-expanded="true"] .burger__icone { background: transparent; }
.burger[aria-expanded="true"] .burger__icone::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__icone::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu sur téléphone : panneau plein écran, gros liens faciles à toucher */
.menu__liste {
    list-style: none;
    margin: 0;
    padding: 0;
}
.js .menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    padding: calc(var(--hauteur-entete) + 24px) var(--marge) 32px;
    background: var(--fond);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0s 0.25s;
}
.js .menu--ouvert {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s;
}
.menu__lien {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--police-titres);
    font-size: 2rem;
    text-decoration: none;
    border-bottom: 1px solid var(--trait);
}
.menu__lien[aria-current="page"] {
    color: var(--rouge-clair);
}
.menu__action {
    margin-top: 28px;
}
.menu__action .bouton {
    width: 100%;
}
.menu-ouvert {
    overflow: hidden; /* bloque le défilement de la page sous le menu ouvert */
}
/* Sans JavaScript : menu affiché sous l'en-tête, toujours utilisable */
.no-js .burger {
    display: none;
}
.no-js .entete {
    position: absolute;
    height: auto;
}
.no-js .entete__barre {
    flex-wrap: wrap;
    padding-block: 12px;
}
.no-js .menu__liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}
.no-js .menu__lien {
    font-family: var(--police-texte);
    font-size: 1rem;
    min-height: var(--cible);
    border: 0;
}

/* ---------- Accueil : haut de page ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100vh, 920px);
    min-height: min(100svh, 920px); /* hauteur réelle visible sur téléphone, barre d'adresse comprise */
    padding-top: var(--hauteur-entete);
    overflow: hidden;
    isolation: isolate;
}
.hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 60%;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Téléphone : voile du bas vers le haut, le texte est en bas de l'écran */
    background: linear-gradient(to top, var(--fond) 8%, rgb(var(--fond-rgb) / 0.86) 42%, rgb(var(--fond-rgb) / 0.25) 75%, rgb(var(--fond-rgb) / 0.45) 100%);
}
.hero__contenu {
    padding-bottom: 40px;
}
.hero__surtitre {
    color: var(--etiquette);
    letter-spacing: 0.24em;
}
.hero__titre {
    font-size: clamp(2.9rem, 12vw, 7.25rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    max-width: 14ch;
}
.hero__texte {
    margin: 20px 0 28px;
    max-width: 34rem;
    font-size: 1.0625rem;
    color: var(--texte-doux);
}
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Le haut de l'accueil reste invisible le temps que l'animation d'entrée démarre (voir amorce.js et animations.js) */
.anime .hero__contenu > * {
    opacity: 0;
}

/* ---------- Accueil : à la une ---------- */
.une {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--trait);
}
.une__element {
    padding: 22px 0;
    border-bottom: 1px solid var(--trait);
}
.une__titre {
    font-family: var(--police-titres);
    font-size: 1.625rem;
    line-height: 1.2;
}
.une__detail {
    margin-top: 4px;
    font-size: 0.9375rem;
    color: var(--texte-discret);
}

/* ---------- Sections ---------- */
.section {
    padding-block: 72px;
}
.section__entete {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.section__titre {
    font-size: clamp(2.25rem, 7vw, 4rem);
}
.section__intro {
    color: var(--texte-discret);
    max-width: 30rem;
}

/* Disciplines (jamais numérotées : ce sont des disciplines égales) */
.disciplines {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.discipline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid rgb(var(--texte-rgb) / 0.1);
    border-radius: var(--rayon);
}
.discipline::before {
    content: "";
    width: 48px;
    height: 2px;
    background: var(--rouge);
}
.discipline__nom {
    font-size: 2rem;
    font-weight: 600;
}
.discipline__texte {
    color: var(--texte-doux);
}
.discipline__prof {
    font-size: 0.875rem;
    color: var(--texte-discret);
}
.discipline__tarif {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--trait);
    font-size: 0.9375rem;
}
.discipline--suspendue {
    background: transparent;
    border-style: dashed;
    border-color: rgb(var(--texte-rgb) / 0.25);
}
.discipline--suspendue::before {
    background: var(--texte-discret);
}
.discipline--suspendue .discipline__nom {
    color: var(--texte-doux);
}
.discipline__etat {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--etiquette);
}
.disciplines__accroche {
    margin: -8px 0 20px;
    font-family: var(--police-titres);
    font-style: italic;
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    color: var(--texte-doux);
}
/* Mot propre à chaque discipline (« Le geste »…), qui apparaît en haut à droite de la carte au survol */
.discipline__mot {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--police-titres);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1; /* même marge visuelle en haut et à droite */
    color: var(--rouge-clair);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease, text-shadow 0.6s ease;
    pointer-events: none;
}
.discipline:hover .discipline__mot,
.discipline:focus-within .discipline__mot {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 18px var(--lueur);
}
.discipline--suspendue .discipline__mot {
    color: var(--texte-discret);
    text-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .discipline__mot {
        transform: none;
        transition: opacity 0.2s;
    }
}
.disciplines__pied {
    margin-top: 20px;
    font-size: 0.9375rem;
    color: var(--texte-discret);
}

/* Association et prochains cours */
.duo {
    display: grid;
    gap: 48px;
}
.citation {
    font-family: var(--police-titres);
    font-size: clamp(1.625rem, 5vw, 2.25rem);
    line-height: 1.3;
}
.prochains {
    list-style: none;
    margin: 0;
    padding: 0;
}
.prochains__element {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--trait);
}
.prochains__date {
    font-weight: 700;
}
.prochains__cours {
    color: var(--texte-doux);
    text-align: right;
}
.lien-fleche {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
    margin-top: 8px;
}

/* Enseignants : liste compacte sur téléphone, portraits sur grand écran */
.profs {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.prof {
    display: flex;
    align-items: center;
    gap: 18px;
}
.prof__photo {
    flex-shrink: 0;
    width: 88px;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: var(--rayon);
    font-family: var(--police-titres);
    font-size: 1.75rem;
    color: var(--initiales);
    object-fit: cover;
}
.prof__nom {
    font-size: 1.5rem;
    font-weight: 600;
}
.prof__parcours {
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--texte-discret);
}

/* Bandeau du spectacle, avec l'emblème K en filigrane */
.spectacle {
    position: relative;
    overflow: hidden;
    background: var(--rouge);
    color: #fff;
    isolation: isolate;
}
.spectacle__embleme {
    position: absolute;
    right: -24px;
    top: 50%;
    z-index: -1;
    height: 300px;
    width: auto;
    opacity: 0.16;
    transform: translateY(-50%) rotate(-6deg);
}
.spectacle__contenu {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-block: 64px;
}
.spectacle .surtitre {
    color: #fff;
}
.spectacle__date {
    font-family: var(--police-titres);
    font-style: italic;
    font-size: clamp(2.75rem, 11vw, 6rem);
    line-height: 1;
}
.spectacle__lieu {
    margin-top: 12px;
    font-size: 1.0625rem;
}

/* ---------- Pied de page ---------- */
.pied {
    padding-block: 56px 32px;
}
.pied__grille {
    display: grid;
    gap: 32px;
}
.pied__logo {
    height: 84px;
    width: auto;
}
.pied__titre {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--texte-discret);
    margin-bottom: 6px;
}
.pied__liens {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}
/* Liens du pied de page : pas de soulignement, changement de couleur au survol */
.pied a {
    text-decoration: none;
    transition: color 0.2s;
}
.pied a:hover,
.pied a:focus-visible,
.pied__mentions a:hover {
    color: var(--rouge-clair);
}
.pied__liens a,
.pied__courriel {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
}
.pied__courriel {
    font-size: 1.0625rem;
}
.avec-picto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.avec-picto .picto {
    flex-shrink: 0;
}
.pied__mentions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--trait);
    font-size: 0.8125rem;
    color: var(--texte-discret);
}
.pied__mentions a {
    color: var(--texte-discret);
}
.pied__mentions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
}
.pied__mentions p {
    margin: 0;
}
.pied__mentions .pied__signature {
    margin-left: auto; /* tout à droite, même quand la ligne passe en dessous sur mobile */
}

/* ---------- Page « Nous rejoindre » ---------- */
.etat-inscriptions {
    display: inline-block;
    margin: 0 0 20px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.etat-inscriptions--ouvertes {
    background: rgba(70, 170, 110, 0.16);
    color: var(--vert-texte);
}
.inscriptions-fermees {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--rouge-clair);
    border-left-width: 6px;
    border-radius: var(--rayon);
    background: rgba(255, 107, 120, 0.12);
}
.inscriptions-fermees p {
    margin: 0;
}
.inscriptions-fermees p + p {
    margin-top: 8px;
}
.inscriptions-fermees__titre {
    font-family: var(--police-titres);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--texte);
}
.inscriptions-fermees--court {
    padding: 12px 16px;
    border-left-width: 4px;
}
.inscriptions-fermees a {
    color: var(--texte);
}
.etapes-inscription {
    padding-block: 48px 64px;
}
.etapes ol {
    list-style: none;
    counter-reset: etape;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.etapes li {
    counter-increment: etape;
    position: relative;
    padding: 20px 20px 20px 76px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    background: var(--surface);
}
.etapes-inscription .section__titre {
    margin-bottom: 28px; /* comme les autres titres de section : les cartes ne touchent plus le titre */
}
.prose.etapes li + li {
    margin-top: 0; /* plus fort que « .prose li + li » : les trois cartes alignées en haut */
}
.etapes li::before {
    content: counter(etape);
    position: absolute;
    left: 20px;
    top: 14px;
    font-family: var(--police-titres);
    font-size: 2.6rem;
    line-height: 1;
    font-variant-numeric: lining-nums;
    color: var(--rouge-clair);
}
.etapes li strong {
    font-size: 1.0625rem;
}
.section-infos .documents + .surtitre,
.section-infos .prose + .surtitre {
    margin-top: 28px;
}
@media (min-width: 900px) {
    .etapes ol {
        grid-template-columns: repeat(3, 1fr);
    }
    .etapes li {
        padding: 72px 24px 24px;
    }
    .etapes li::before {
        left: 24px;
        top: 20px;
    }
}

/* ---------- Encart citation (page Cours : « L'esprit K'danse ») ---------- */
.encart-citation {
    position: relative;
    overflow: hidden;
    margin: 28px 0 32px;
    max-width: 44rem;
    padding: 26px 72px 28px 34px; /* place à droite pour le guillemet décoratif */
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, var(--lueur), transparent 70%) no-repeat,
        var(--surface);
    border: 1px solid var(--trait);
    border-left: 3px solid var(--rouge);
    border-radius: var(--rayon);
}
/* Grand guillemet décoratif en filigrane */
.encart-citation::before {
    content: "»";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--police-titres);
    font-size: 8rem;
    line-height: 1;
    color: var(--rouge);
    opacity: 0.14;
    pointer-events: none;
}
.encart-citation__titre {
    margin-bottom: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rouge-clair);
}
.encart-citation__texte {
    margin: 0;
}
.encart-citation__texte p {
    margin: 0;
    font-family: var(--police-titres);
    font-style: italic;
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    line-height: 1.25;
    color: var(--texte);
}

/* ---------- Éléments communs aux pages intérieures ---------- */
picture {
    display: contents; /* l'image garde sa place dans la mise en page (cartes, portraits) */
}
.discret {
    color: var(--texte-discret);
}
/* Lien qui rend toute la carte cliquable (zone tactile confortable sur téléphone) */
.lien-carte {
    text-decoration: none;
}
.lien-carte::after {
    content: "";
    position: absolute;
    inset: 0;
}
.discipline,
.prof {
    position: relative;
}
.lien-carte:hover {
    color: var(--rouge-clair);
}
.page-entete {
    padding-top: calc(var(--hauteur-entete) + 40px);
    padding-bottom: 32px;
}
.page-entete__titre {
    font-size: clamp(2.75rem, 11vw, 5.5rem);
    line-height: 1;
}
.page-entete__intro {
    margin-top: 20px;
    max-width: 44rem;
    color: var(--texte-doux);
}
.prose {
    max-width: 44rem;
    color: var(--texte-doux);
}
.prose p + p,
.prose p + ul,
.prose ul + p {
    margin-top: 1em;
}
.prose ul {
    margin: 0;
    padding-left: 1.2em;
}
.prose li + li {
    margin-top: 0.4em;
}
.prose strong {
    color: var(--texte);
}
.prose--large {
    padding-bottom: 72px;
}
.prose--sections h2 {
    margin: 2em 0 0.6em;
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    font-weight: 600;
    color: var(--texte);
}
.prose--sections h2:first-child {
    margin-top: 0;
}
.prose--sections h3 {
    margin: 1.5em 0 0.5em;
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--texte);
}
.sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.pastille-lien {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
    padding: 0 18px;
    border: 1px solid rgb(var(--texte-rgb) / 0.3);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9375rem;
}
.pastille-lien:hover {
    border-color: var(--rouge-clair);
}
.etiquette {
    display: inline-block;
    padding: 4px 12px;
    border: 1px dashed var(--etiquette);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--etiquette);
}

/* ---------- Page Cours et tarifs ---------- */
.bloc-discipline {
    padding-block: 48px;
    border-top: 1px solid var(--trait);
}
.bloc-discipline__entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 20px;
    margin-bottom: 20px;
}
.bloc-discipline__titre {
    position: relative;
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    font-weight: 600;
    color: var(--rouge-clair); /* nom de la danse en couleur de contraste, comme dans le planning */
    transition: text-shadow 0.6s ease, transform 0.4s ease;
}
/* Survol d'une discipline (souris) : le nom s'allume d'une lueur rouge, avec une courte pulsation à l'arrivée
   (même famille d'effet que les dates du planning et les photos des enseignants) */
@media (hover: hover) and (pointer: fine) {
    .bloc-discipline:not(.bloc-discipline--suspendue):hover .bloc-discipline__titre {
        transform: translateY(-2px);
        text-shadow: 0 0 6px var(--lueur), 0 0 22px var(--lueur), 0 0 48px var(--lueur);
        animation: lueur-titre 1.2s ease-out;
    }
}
@keyframes lueur-titre {
    0% { text-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; }
    45% { text-shadow: 0 0 10px var(--lueur), 0 0 34px var(--lueur), 0 0 70px var(--lueur); }
    100% { text-shadow: 0 0 6px var(--lueur), 0 0 22px var(--lueur), 0 0 48px var(--lueur); }
}
@media (prefers-reduced-motion: reduce) {
    .bloc-discipline__titre {
        transition: none;
    }
    .bloc-discipline:hover .bloc-discipline__titre {
        transform: none !important;
        animation: none !important;
    }
}
.bloc-discipline__prof {
    width: 100%;
    color: var(--texte-discret);
}
.bloc-discipline__prof a {
    display: inline-block;
    padding-block: 10px; /* zone tactile de 44 px */
}
.bloc-discipline--suspendue .bloc-discipline__titre {
    color: var(--texte-doux);
}
.groupes {
    width: 100%;
    margin-top: 28px;
    border-collapse: collapse;
}
.groupes th,
.groupes td {
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--trait);
    vertical-align: baseline;
}
.groupes thead th {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--texte-discret);
}
.groupes tbody th {
    font-family: var(--police-titres);
    font-size: 1.5rem;
    font-weight: 600;
}
.groupes__public {
    display: block;
    font-family: var(--police-texte);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--texte-discret);
}
.groupes__tarif {
    font-weight: 700;
    white-space: nowrap;
}
/* Téléphone : chaque groupe devient une petite carte */
@media (max-width: 639px) {
    .groupes thead {
        display: none;
    }
    .groupes,
    .groupes tbody,
    .groupes tr,
    .groupes th,
    .groupes td {
        display: block;
    }
    .groupes tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--trait);
    }
    .groupes th,
    .groupes td {
        padding: 0;
        border: 0;
    }
    .groupes td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-top: 6px;
    }
    .groupes td::before {
        content: attr(data-libelle);
        color: var(--texte-discret);
        font-size: 0.875rem;
        font-weight: 400;
    }
}
.section-infos {
    padding-block: 64px 80px;
    border-top: 1px solid var(--trait);
}
.section-infos .section__titre {
    margin-bottom: 28px;
}
.documents {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.document {
    display: block;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid rgb(var(--texte-rgb) / 0.1);
    border-radius: var(--rayon);
    text-decoration: none;
}
.document:hover {
    border-color: var(--rouge-clair);
    color: var(--texte);
}
.document__titre {
    display: block;
    font-weight: 700;
}
.document--inactif {
    background: transparent;
    border-style: dashed;
    color: var(--texte-discret);
}
.document--inactif .document__titre {
    text-decoration: line-through;
}
.document__infos {
    display: block;
    font-size: 0.875rem;
    color: var(--texte-discret);
}
.actions-texte {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Page Enseignants ---------- */
.portraits {
    display: grid;
    gap: 56px;
    padding-bottom: 80px;
}
.portrait {
    display: grid;
    gap: 20px;
}
.portrait__visuel {
    width: fit-content;
    max-width: 100%;
    border-radius: var(--rayon);
    transition: box-shadow 0.5s ease;
}
.portrait__photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--rayon);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Survol (souris) : la photo zoome à peine dans son cadre, entourée du halo rouge des dates du planning */
@media (hover: hover) and (pointer: fine) {
    .portrait__visuel {
        overflow: hidden;
    }
    .portrait:hover .portrait__visuel {
        box-shadow: 0 0 0 1px var(--lueur), 0 10px 34px var(--lueur);
    }
    .portrait:hover img.portrait__photo {
        transform: scale(1.04);
    }
}
@media (prefers-reduced-motion: reduce) {
    .portrait:hover img.portrait__photo {
        transform: none;
    }
}
.portrait__photo--vide {
    max-width: 140px; /* sans photo, une petite vignette suffit sur téléphone */
    font-size: 2.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    font-family: var(--police-titres);
    font-size: 4rem;
    color: var(--initiales);
}
.portrait__nom {
    font-size: clamp(2.25rem, 8vw, 3.25rem);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---------- Page Contact ---------- */
.contact {
    padding-bottom: 80px;
}
.formulaire-contact {
    display: grid;
    gap: 20px;
}
.champ {
    display: grid;
    gap: 6px;
}
.champ label {
    font-weight: 600;
}
.champ input,
.champ select,
.champ textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid rgb(var(--texte-rgb) / 0.28);
    border-radius: var(--rayon);
    color: var(--texte);
    font: inherit;
    font-size: 1rem; /* 16 px : pas de zoom automatique sur iPhone */
}
.champ textarea {
    resize: vertical;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    border-color: var(--rouge-clair);
    outline: 2px solid var(--rouge-clair);
    outline-offset: 0;
}
.champ--invalide input,
.champ--invalide select,
.champ--invalide textarea {
    border-color: var(--rouge-clair);
}
.champ__erreur {
    color: var(--rouge-clair);
    font-size: 0.9375rem;
    font-weight: 600;
}
.champ__aide {
    color: var(--texte-discret);
    font-size: 0.875rem;
}
.formulaire-contact .bouton {
    justify-self: start;
}
.piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.alerte {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--rayon);
    border-left: 4px solid;
}
.alerte--succes {
    background: rgba(70, 170, 110, 0.14);
    border-color: #59c184;
}
.alerte--erreur {
    background: rgba(255, 107, 120, 0.12);
    border-color: var(--rouge-clair);
}
.coordonnees .surtitre {
    margin-top: 24px;
}
.coordonnees .surtitre:first-child {
    margin-top: 0;
}
.lien-tel {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
    margin-right: 16px;
}

/* ---------- Prochains cours (accueil) ---------- */
.prochains__element--annule .prochains__date {
    text-decoration: line-through;
    color: var(--texte-discret);
}
.prochains__element--annule strong {
    color: var(--rouge-clair);
}
.prochains__vide {
    color: var(--texte-discret);
}

/* ---------- Page Planning ---------- */
.filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 28px;
    max-width: 34rem;
}
.filtre .champ {
    flex: 1 1 16rem;
}
.planning {
    padding-bottom: 80px;
}
.planning__vide {
    padding: 24px 0;
    color: var(--texte-discret);
}
.planning__mois + .planning__mois {
    margin-top: 40px;
}
.planning__titre-mois {
    font-size: 2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--trait);
}
.seances {
    list-style: none;
    margin: 0;
    padding: 0;
}
.seance {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--trait);
}
.seance__date {
    flex: 0 0 56px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    background: var(--surface);
    border-radius: var(--rayon);
    line-height: 1.1;
}
.seance__jour-semaine {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texte-discret);
}
.seance__numero {
    font-family: var(--police-titres);
    font-variant-numeric: lining-nums;
    font-size: 1.75rem;
    font-weight: 600;
}
.seance__contenu {
    flex: 1;
    min-width: 0;
}
.seance__titre {
    font-family: var(--police-texte);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rouge-clair); /* nom de la danse : repère visuel dans la liste */
}
.seance--annulee .seance__titre {
    color: var(--texte-discret);
}
.seance__horaire {
    margin-top: 2px;
    font-size: 1.125rem;
    color: var(--texte-doux);
}
.seance__groupes {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-width: 24rem;
    color: var(--texte-doux);
}
.seance__groupes li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
}
.seance__groupes li + li {
    border-top: 1px solid var(--trait);
}
.seance__heure {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.seance__remarque {
    margin-top: 6px;
    font-size: 0.9375rem;
    color: var(--etiquette);
}
.seance--annulee .seance__numero,
.seance--annulee .seance__horaire,
.seance--annulee .seance__groupes {
    text-decoration: line-through;
    color: var(--texte-discret);
}
.seance--passee {
    opacity: 0.55;
}

/* Survol d'une date (souris seulement) : la pastille s'élève et s'allume d'un halo rouge, une lueur douce éclaire la ligne */
.seance {
    position: relative;
    isolation: isolate;
}
.seance::before {
    content: "";
    position: absolute;
    inset: 4px -12px;
    z-index: -1;
    border-radius: var(--rayon);
    background: radial-gradient(ellipse 85% 140% at 40px 50%, var(--lueur), transparent 75%); /* lueur sur presque toute la largeur */
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.seance__date {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.seance__numero {
    transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .seance:not(.seance--annulee):hover::before {
        opacity: 0.55;
    }
    .seance:not(.seance--annulee):hover .seance__numero {
        color: var(--rouge-clair);
    }
    .seance:not(.seance--annulee):hover .seance__date {
        transform: translateY(-2px);
        box-shadow: 0 0 0 1px var(--lueur), 0 6px 22px var(--lueur);
        animation: lueur-date 1.1s ease-out;
    }
}
@keyframes lueur-date {
    0% { box-shadow: 0 0 0 0 var(--lueur), 0 0 0 transparent; }
    40% { box-shadow: 0 0 0 5px transparent, 0 6px 30px var(--lueur); }
    100% { box-shadow: 0 0 0 1px var(--lueur), 0 6px 22px var(--lueur); }
}
@media (prefers-reduced-motion: reduce) {
    .seance::before,
    .seance__date {
        transition: none;
    }
    .seance:hover .seance__date {
        transform: none !important;
        animation: none !important;
    }
}
.etiquette--annulee {
    margin-left: 6px;
    border-style: solid;
    border-color: var(--rouge-clair);
    color: var(--rouge-clair);
    vertical-align: middle;
}
.planning__emporter {
    margin-top: 20px;
}
.planning__emporter .actions-texte {
    margin-top: 0;
}
.planning__aide {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: var(--texte-discret);
    max-width: 38rem;
}
.planning__aide a {
    color: inherit;
}
.planning__pied {
    margin-top: 32px;
    color: var(--texte-discret);
    font-size: 0.9375rem;
}
.groupes__dates {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
    margin-left: 8px;
    font-size: 0.875rem;
}

/* ---------- Bas de l'écran : bandeaux d'annonce et alertes du calendrier, empilés ---------- */
.bas-ecran {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    box-shadow: 0 -6px 24px var(--ombre);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--rose-pale);
}
.bandeau {
    background: var(--rose-pale);
    color: var(--sombre);
}
.bandeau + .bandeau {
    border-top: 1px solid rgba(18, 11, 15, 0.15);
}
.bandeau--annonce {
    background: var(--clair);
}
.bandeau__contenu {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    padding-block: 12px;
}
.bandeau__liste {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}
.bandeau a {
    color: var(--sombre);
    font-weight: 700;
}
.bandeau__lien {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
}
.bandeau__fermer {
    flex-shrink: 0;
    width: var(--cible);
    height: var(--cible);
    border: 0;
    border-radius: 50%;
    background: rgba(18, 11, 15, 0.12);
    color: var(--sombre);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.avec-bandeau .pied {
    padding-bottom: 140px; /* le bas de page reste lisible au-dessus du bandeau */
}

/* ---------- Galerie ---------- */
.galerie {
    padding-bottom: 80px;
}
.note-adherents {
    margin-top: 16px;
    color: var(--etiquette);
    font-size: 0.9375rem;
}
.fil-public {
    margin-bottom: 16px;
}
.fil-public a {
    display: inline-flex;
    align-items: center;
    min-height: var(--cible);
}
.cartes-evenements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 32px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cartes-evenements--compactes {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 16px 0 32px;
}
.carte-evenement {
    position: relative;
}
.carte-evenement__visuel {
    position: relative;
    margin-bottom: 14px;
    aspect-ratio: 3 / 2;
    border-radius: var(--rayon);
    overflow: hidden;
    background: var(--surface-2);
}
.carte-evenement__visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .carte-evenement:hover .carte-evenement__visuel img {
        transform: scale(1.04);
    }
}
.carte-evenement__vide {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--surface-2) url("../images/emblem-rouge.svg") center / auto 45% no-repeat;
    opacity: 0.5;
}
.carte-evenement .surtitre {
    margin-bottom: 4px;
}
.carte-evenement__titre {
    font-size: 1.75rem;
    font-weight: 600;
}
/* Verrou après le titre d'une galerie réservée aux adhérents : à la taille du titre, sans passer seul à la ligne */
.titre-verrou {
    display: inline-block;
    margin-left: 0.3em;
    color: var(--rouge-clair);
    white-space: nowrap;
}
.titre-verrou .picto {
    width: 0.68em;
    height: 0.68em;
    vertical-align: -0.02em;
}
.carte-evenement__compte {
    margin-top: 4px;
    color: var(--texte-discret);
    font-size: 0.9375rem;
}
.badge-adherents {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(18, 11, 15, 0.82);
    color: var(--rose-pale); /* sur la photo : toujours sombre */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
}
.photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.photo {
    position: relative;
}
.photo a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-2);
}
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}
.photo a:hover img {
    opacity: 0.85;
}
.pswp__legende {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: min(90vw, 40rem);
    padding: 8px 14px;
    border-radius: var(--rayon);
    background: rgba(18, 11, 15, 0.75);
    color: var(--texte);
    font-size: 0.9375rem;
    text-align: center;
}
.galerie__videos-titre {
    margin: 56px 0 24px;
}
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.video {
    position: relative;
}
.video__cadre {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--rayon);
    overflow: hidden;
    background: #000;
}
.video__lanceur {
    display: block;
    width: 100%;
    height: 100%;
}
.video__lanceur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.video__bouton {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    background: rgba(18, 11, 15, 0.75);
    border: 2px solid #fff;
}
.video__bouton::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 20px;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
}
.video__lanceur:hover .video__bouton {
    background: var(--rouge);
}
.video__lecteur {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video__titre {
    margin-top: 10px;
    font-family: var(--police-titres);
    font-size: 1.5rem;
}
.note-videos {
    margin-top: 20px;
    color: var(--texte-discret);
    font-size: 0.875rem;
}

/* ---------- Espace adhérents ---------- */
.espace-adherents {
    padding-bottom: 80px;
}
.connexion-adherents {
    max-width: 30rem;
}
.case-publique {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--cible);
}
.case-publique input {
    width: 22px;
    height: 22px;
    accent-color: var(--rouge);
}
.info-adherents {
    padding: 22px 0;
    border-bottom: 1px solid var(--trait);
}
.info-adherents__titre {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.info-adherents__theme {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--texte-discret);
}
.info-adherents__picto {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--rouge-clair);
}
.info-adherents .documents {
    margin: 16px 0 0;
}
.info-adherents__lien {
    margin-top: 16px;
}
/* Infos et documents de plus de 12 mois : un bloc repliable par saison */
.archives {
    margin-top: 20px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    background: var(--surface);
}
.archives summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--cible);
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.archives summary::-webkit-details-marker {
    display: none;
}
.archives summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s;
}
.archives[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -1px);
}
.archives__nombre {
    font-weight: 400;
    color: var(--texte-discret);
}
.archives > .info-adherents,
.archives > .documents {
    margin: 0 16px;
}
.archives > .info-adherents:last-child {
    border-bottom: 0;
}
.archives > .documents {
    margin-bottom: 16px;
}
.espace-adherents .surtitre {
    margin-top: 28px;
}
.deconnexion-adherents {
    margin-top: 32px;
}

/* ---------- Fenêtre d'annonce ---------- */
.annonce {
    width: min(92vw, 34rem);
    max-height: 88vh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    color: var(--texte);
    overflow: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.annonce::backdrop {
    background: rgba(8, 4, 6, 0.75);
}
@media (prefers-reduced-motion: no-preference) {
    .annonce[open] {
        animation: annonce-entree 0.35s ease-out;
    }
    @keyframes annonce-entree {
        from { opacity: 0; transform: translateY(16px) scale(0.98); }
        to { opacity: 1; transform: none; }
    }
}
.annonce__boite {
    position: relative;
}
.annonce__image {
    width: 100%;
    max-height: 42vh;
    object-fit: cover;
}
.annonce__contenu {
    padding: 24px 22px 22px;
}
.annonce__apercu {
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: var(--etiquette);
}
.annonce__titre {
    font-size: clamp(1.875rem, 7vw, 2.5rem);
    font-weight: 600;
    padding-right: 36px;
}
.annonce__texte {
    margin-top: 12px;
    color: var(--texte-doux);
}
.annonce__texte p + p,
.annonce__texte ul {
    margin-top: 0.8em;
}
.annonce__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.annonce__croix {
    position: absolute;
    top: 10px;
    right: 10px;
    width: var(--cible);
    height: var(--cible);
    border: 0;
    border-radius: 50%;
    background: rgba(18, 11, 15, 0.7);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Page d'erreur ---------- */
.erreur {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-top: calc(var(--hauteur-entete) + 40px);
    padding-bottom: 60px;
}
.erreur__titre {
    font-size: clamp(2.5rem, 9vw, 5rem);
}

/* ============ Tablette (640 px et plus) ============ */
@media (min-width: 640px) {
    .photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .une {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-bottom: 1px solid var(--trait);
    }
    .une__element {
        padding: 30px 24px 30px 0;
        border-bottom: 0;
    }
    .une__element + .une__element {
        padding-left: 24px;
        border-left: 1px solid var(--trait);
    }
    .disciplines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pied__grille {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

/* ============ Ordinateur (960 px et plus) ============ */
@media (min-width: 960px) {
    :root {
        --hauteur-entete: 116px;
    }
    .entete__logo img {
        height: 96px;
    }
    .burger {
        display: none;
    }
    .menu {
        margin-left: auto;
    }
    .bascule-theme {
        order: 3;
        margin-left: -12px; /* près du bouton « Nous rejoindre » */
    }
    .js .menu {
        position: static;
        padding: 0;
        background: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transition: none;
    }
    .menu {
        display: flex;
        align-items: center;
        gap: 28px;
    }
    .menu__liste {
        display: flex;
        gap: 28px;
    }
    .menu__lien {
        min-height: var(--cible);
        font-family: var(--police-texte);
        font-size: 0.9375rem;
        letter-spacing: 0.03em;
        border: 0;
    }
    .menu__action {
        margin: 0;
    }
    .menu__action .bouton {
        width: auto;
        min-height: var(--cible);
        padding: 8px 22px;
        background: transparent;
        border-color: var(--rouge);
        color: var(--texte);
        font-weight: 500;
    }
    .menu__action .bouton:hover {
        background: var(--rouge);
        color: #fff;
    }
    .hero {
        align-items: center;
    }
    .hero::after {
        /* Grand écran : voile à gauche derrière le texte, photo dégagée à droite */
        background:
            linear-gradient(to top, var(--fond) 2%, rgb(var(--fond-rgb) / 0) 30%),
            linear-gradient(90deg, rgb(var(--fond-rgb) / 0.95) 0%, rgb(var(--fond-rgb) / 0.84) 38%, rgb(var(--fond-rgb) / 0.2) 72%, rgb(var(--fond-rgb) / 0.1) 100%);
    }
    .hero__image {
        object-position: 70% 70%;
    }
    .hero__contenu {
        padding-block: 80px;
    }
    .hero__texte {
        font-size: 1.1875rem;
    }
    .section {
        padding-block: 112px;
    }
    .section__entete {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 52px;
    }
    .disciplines {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
    .discipline {
        padding: 36px 32px;
    }
    .duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 72px;
    }
    .profs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
    }
    .prof {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .prof__photo {
        width: 100%;
        font-size: 4rem;
    }
    .prof__nom {
        font-size: 1.75rem;
    }
    .spectacle__contenu {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-block: 96px;
    }
    .spectacle__embleme {
        right: 6%;
        height: 440px;
    }
    .pied__logo {
        height: 104px;
    }
    .menu__lien[aria-current="page"] {
        color: var(--rouge-clair);
    }
    .page-entete {
        padding-bottom: 48px;
    }
    .bloc-discipline {
        padding-block: 72px;
    }
    .portrait {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }
    .portrait__visuel {
        position: sticky;
        top: calc(var(--hauteur-entete) + 24px);
    }
    .portraits {
        gap: 96px;
    }
    .contact.duo {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
    .photos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    .seances {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }
}

/* Petit écran d'ordinateur : un peu moins d'espace entre les rubriques du menu (6 rubriques + bouton) */
@media (min-width: 960px) and (max-width: 1099px) {
    .menu,
    .menu__liste {
        gap: 18px;
    }
}
