/* ==========================================================================
   Feuille de style commune : taichi-baisieux.fr et qigong-lille.fr
   Charte conservee : papier creme #fffaeb, encre #181818,
   vert #377e47 (Tai Chi Baisieux) ou bleu #163f9f (Qi Gong Lille),
   police Brygada 1918, ideogrammes.
   <html data-site="taichi|qigong" data-variante="a|b">
   ========================================================================== */

:root {
  --papier: #fffaeb;
  --blanc: #ffffff;
  --encre: #181818;
  --texte: #2b2a26;
  --doux: #5d5a50;
  --trait: #e4dcc3;
  --accent: #377e47;
  --accent-fonce: #1d4225;
  --accent-pale: #e9f1e6;
  --alerte: #ae1e2c;
  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --han: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", "PMingLiU", "Brygada 1918", serif;
  --rail: 7.5rem;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --largeur: 72rem;
}

html[data-site="qigong"] {
  --accent: #163f9f;
  --accent-fonce: #0e2a6b;
  --accent-pale: #e6ebf7;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--encre); line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
p, li, dd { max-width: 68ch; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-fonce); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.han { font-family: var(--han); font-weight: 700; }
.insecable { white-space: nowrap; }

.visuellement-masque {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.evitement {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 0.6rem 1rem;
}
.evitement:focus { top: 0.5rem; color: var(--blanc); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--blanc);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: var(--blanc); }
.btn-ligne { background: transparent; color: var(--accent); }
.btn-ligne:hover { background: var(--accent); border-color: var(--accent); color: var(--blanc); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn small { display: block; font-weight: 400; font-size: 0.82rem; opacity: 0.9; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- En-tete ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}
.entete-cadre {
  max-width: var(--largeur); margin-inline: auto; padding: 0.5rem var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marque { display: flex; align-items: center; gap: 0.75rem; color: var(--encre); text-decoration: none; }
.marque:hover { color: var(--encre); }
.marque img { width: 3.25rem; height: 3.25rem; object-fit: contain; }
.marque-nom { font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.marque-sous { display: block; font-weight: 400; font-size: 0.85rem; color: var(--doux); }

.nav-bouton {
  display: none;
  font: inherit; font-weight: 600; color: var(--encre);
  background: transparent; border: 1px solid var(--encre); border-radius: 3px;
  padding: 0.45rem 0.9rem; cursor: pointer;
}
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.nav li { max-width: none; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 600; padding: 0.4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--encre); }

@media (max-width: 52rem) {
  .nav-bouton { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--trait); padding: 0.5rem var(--gouttiere) 1rem; }
  .nav.est-ouvert { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--trait); }
}

/* ---------- Heros ---------- */
.heros { border-bottom: 1px solid var(--trait); }
.heros-cadre {
  max-width: var(--largeur); margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gouttiere);
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 3rem); align-items: center;
}
.heros-han {
  writing-mode: vertical-rl; margin: 0; align-self: start;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.1; letter-spacing: 0.1em;
  color: var(--accent); max-width: none;
}
.heros-han span { color: var(--encre); font-weight: 400; font-size: 0.62em; }
.heros h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.heros-lieu { font-size: 1.15rem; color: var(--doux); }
.heros-lieu strong { color: var(--encre); }
.heros-image { margin: 0; }
.heros-image img { width: 100%; }

@media (max-width: 52rem) {
  .heros-cadre { grid-template-columns: auto minmax(0, 1fr); }
  .heros-image { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); border-bottom: 1px solid var(--trait); }
.cadre {
  max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 2rem;
}
.rail {
  grid-column: 1; margin: 0; max-width: none;
  writing-mode: vertical-rl;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: 0.12em;
  color: var(--accent);
}
.contenu { grid-column: 2; min-width: 0; }
.contenu > :last-child { margin-bottom: 0; }
.chapeau { font-size: 1.3rem; line-height: 1.5; color: var(--encre); }

@media (max-width: 52rem) {
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-column: 1; writing-mode: horizontal-tb; font-size: 1.9rem; margin-bottom: 0.4rem; }
  .contenu { grid-column: 1; }
}

.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 3rem; }
.avec-image { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.avec-image figure { margin: 0; }
.avec-image--inverse > figure { order: -1; }
@media (max-width: 52rem) { .avec-image { grid-template-columns: minmax(0, 1fr); } }

figcaption { font-size: 0.9rem; color: var(--doux); margin-top: 0.5rem; }

/* ---------- Horaires et tableaux ---------- */
.tableau { width: 100%; border-collapse: collapse; }
.tableau caption { text-align: left; color: var(--doux); font-size: 0.95rem; padding-bottom: 0.5rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-top: 1px solid var(--trait); }
.tableau thead th { border-top: 0; font-weight: 400; font-size: 0.95rem; color: var(--doux); padding-bottom: 0.4rem; }
.tableau tbody th { font-size: 1.2rem; color: var(--encre); white-space: nowrap; }
.tableau tbody tr:last-child > * { border-bottom: 1px solid var(--trait); }
.tableau .prix { font-size: 1.35rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

@media (max-width: 40rem) {
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr { display: block; padding: 0.8rem 0; border-top: 1px solid var(--trait); }
  .tableau th, .tableau td { display: block; padding: 0.1rem 0; border: 0; }
  .tableau tbody tr:last-child > * { border-bottom: 0; }
}

.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2.5rem; margin-top: 2.5rem; }
.atouts dt { font-weight: 700; color: var(--encre); font-size: 1.15rem; }
.atouts dd { margin: 0.2rem 0 0; color: var(--doux); }

.discipline h3 { font-size: 1.45rem; }
.discipline .han { display: block; font-size: 2.4rem; line-height: 1.2; color: var(--accent); margin-bottom: 0.3rem; }

/* ---------- Devise (ideogrammes + traduction) ---------- */
.devise { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--trait); margin: 0; }
.devise .han { font-size: clamp(2.4rem, 7vw, 4.2rem); letter-spacing: 0.2em; margin: 0 0 0.4rem; max-width: none; color: var(--encre); line-height: 1.2; text-indent: 0.2em; }
.devise figcaption { font-size: 1.1rem; margin: 0; }
.devise figcaption i { display: block; color: var(--accent); font-weight: 600; }

/* ---------- Actualites ---------- */
.actus { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.actu { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem 1.75rem; padding: 1.6rem 0; border-top: 1px solid var(--trait); max-width: none; }
.actus > .actu:last-child { border-bottom: 1px solid var(--trait); }
.actu-date { color: var(--accent); line-height: 1.1; font-weight: 700; }
.actu-jour { display: block; font-size: 2.7rem; }
.actu-jour.han { font-size: 2.1rem; line-height: 1.15; }
.actu-jour sup { font-size: 0.45em; }
.actu-mois { display: block; font-size: 1rem; font-weight: 400; color: var(--doux); margin-top: 0.15rem; }
.actu-etat { display: inline-block; margin-top: 0.5rem; padding: 0.1rem 0.55rem; font-size: 0.82rem; font-weight: 600; color: var(--accent-fonce); background: var(--accent-pale); border-radius: 2px; }
.actu-corps h3 { margin-bottom: 0.35em; }
.actu-corps > :last-child { margin-bottom: 0; }
.actu-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.actu-photos img { width: 15rem; max-width: 100%; }
.actu-lien { font-weight: 600; }
.actus-vide { color: var(--doux); }

@media (max-width: 40rem) {
  .actu { grid-template-columns: minmax(0, 1fr); }
  .actu-jour, .actu-mois { display: inline; }
  .actu-jour { font-size: 1.6rem; }
  .actu-jour.han { font-size: 1.5rem; }
  .actu-mois { font-size: 1rem; }
}

/* ---------- Bandeau de lien vers l'autre site ---------- */
.passerelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 3rem; align-items: center; }
.passerelle figure { margin: 0; }
@media (max-width: 52rem) { .passerelle { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inscription ---------- */
.inscription { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.inscription-logo { margin: 0; background: var(--blanc); border: 1px solid var(--trait); padding: 1rem; }
@media (max-width: 40rem) {
  .inscription { grid-template-columns: minmax(0, 1fr); }
  .inscription-logo { max-width: 11rem; }
}

/* ---------- Formulaire ---------- */
.formulaire { background: var(--blanc); border: 1px solid var(--trait); padding: clamp(1.25rem, 3vw, 2rem); }
.formulaire h3 { margin-bottom: 0.3em; }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 600; color: var(--encre); margin-bottom: 0.3rem; }
.champ .facultatif { font-weight: 400; color: var(--doux); font-size: 0.9rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: var(--blanc); border: 1px solid #a9a28b; border-radius: 3px; padding: 0.65rem 0.8rem;
}
.champ textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.champ [aria-invalid="true"] { border-color: var(--alerte); }
.champ-erreur { color: var(--alerte); font-size: 0.92rem; margin: 0.3rem 0 0; }
.champ-aide { color: var(--doux); font-size: 0.88rem; margin: 0.3rem 0 0; display: flex; justify-content: space-between; gap: 1rem; }
.champ-aide [data-compteur] { white-space: nowrap; }
.champs-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1.25rem; }
.piege { position: absolute; left: -9999px; }
.formulaire-etat { margin: 1rem 0 0; padding: 0.9rem 1rem; border-left: 4px solid var(--accent); background: var(--accent-pale); color: var(--encre); }
.formulaire-etat.est-erreur { border-left-color: var(--alerte); background: #fbeceb; }
.formulaire-etat:empty { display: none; }
.formulaire-note { font-size: 0.88rem; color: var(--doux); margin: 1rem 0 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem 3rem; align-items: start; }
@media (max-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr); } }
.coordonnees { font-style: normal; margin-bottom: 1.5rem; }
.coordonnees p { margin-bottom: 0.7em; }
.coordonnees .gros { font-size: 1.4rem; font-weight: 700; }
.carte { position: relative; margin: 0; background: var(--blanc); border: 1px solid var(--trait); }
.carte img { width: 100%; }
.carte iframe { display: block; width: 100%; height: 22rem; border: 0; }
.carte-actions { padding: 0.9rem 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.carte-actions .btn { padding: 0.5rem 1rem; }
.carte-note { font-size: 0.82rem; color: var(--doux); margin: 0; flex-basis: 100%; }

/* ---------- Galerie ---------- */
.galerie { columns: 3 12rem; column-gap: 0.75rem; margin-bottom: 1.1em; }
.galerie figure { break-inside: avoid; margin: 0 0 0.75rem; }
.galerie img { width: 100%; }
.galerie--grille { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem 1rem; }
.galerie--grille figure { margin: 0; }

/* ---------- Pages evenement ---------- */
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem 2.5rem; }
.reperes dt { color: var(--doux); font-size: 0.95rem; }
.reperes dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--encre); font-size: 1.15rem; line-height: 1.4; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem 2.5rem; text-align: left; margin: 0; }
.chiffres dt { font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.chiffres dd { margin: 0.2rem 0 0; }
.portrait { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; padding-block: 1.75rem; border-top: 1px solid var(--trait); }
.portrait figure { margin: 0; }
.portrait h3 { font-size: 1.5rem; }
@media (max-width: 40rem) { .portrait { grid-template-columns: minmax(0, 1fr); } .portrait figure { max-width: 11rem; } }
.notion { padding-block: 1.5rem; border-top: 1px solid var(--trait); display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.5rem 1.5rem; }
.notion .han { font-size: 2rem; line-height: 1.25; color: var(--accent); margin: 0; }
.notion > div > :last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .notion { grid-template-columns: minmax(0, 1fr); } }
.directions { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.4rem 1.25rem; text-align: center; margin: 1rem 0 1.25rem; font-weight: 600; }
.directions span { padding: 0.4rem 0.8rem; border: 1px solid var(--trait); background: var(--blanc); }
.directions small { display: block; font-weight: 400; color: var(--doux); }
.directions .d-haut { grid-column: 2; grid-row: 1; }
.directions .d-gauche { grid-column: 1; grid-row: 2; }
.directions .d-centre { grid-column: 2; grid-row: 2; border-color: var(--accent); }
.directions .d-droite { grid-column: 3; grid-row: 2; }
.directions .d-bas { grid-column: 2; grid-row: 3; }
.fil { font-size: 0.95rem; margin-bottom: 1.25rem; }
.avis { padding: 0.9rem 1rem; border-left: 4px solid var(--accent); background: var(--accent-pale); color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #d9d6cc; padding-block: 3rem 2rem; font-size: 1rem; }
.pied-cadre { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 3rem; }
.pied h2 { color: var(--blanc); font-size: 1.15rem; margin-bottom: 0.7rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.35rem; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--blanc); text-decoration-thickness: 2px; }
.pied :focus-visible { outline-color: var(--blanc); }
.pied-embleme { width: 5rem; height: 5rem; border-radius: 50%; background: var(--papier); padding: 0.55rem; margin-bottom: 0.9rem; }
.pied-embleme img { width: 100%; height: 100%; object-fit: contain; }
.pied-devise .han { display: block; font-size: 1.5rem; color: var(--blanc); letter-spacing: 0.15em; }
.pied-bas { max-width: var(--largeur); margin: 2.5rem auto 0; padding: 1.25rem var(--gouttiere) 0; border-top: 1px solid #3a3a36; color: #a9a69c; font-size: 0.9rem; }
.pied-bas p { margin: 0; max-width: none; }

/* ==========================================================================
   VARIANTE B « Encre » : heros photo plein cadre, sections alternees,
   ideogrammes a l'horizontale, actualites en panneaux.
   ========================================================================== */
html[data-variante="b"] .entete { background: var(--blanc); }
html[data-variante="b"] .nav { background: var(--blanc); }

html[data-variante="b"] .heros { position: relative; background: var(--encre); border-bottom: 0; overflow: hidden; }
html[data-variante="b"] .heros-cadre {
  position: relative; z-index: 1;
  grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  min-height: min(78vh, 40rem); padding-block: clamp(3rem, 8vw, 5rem);
}
html[data-variante="b"] .heros-image { position: absolute; inset: 0; z-index: -1; grid-column: auto; }
html[data-variante="b"] .heros-image img { width: 100%; height: 100%; object-fit: cover; }
html[data-variante="b"] .heros-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3) 70%); }
html[data-variante="b"] .heros-texte { grid-column: 1; grid-row: 1; }
html[data-variante="b"] .heros-han { grid-column: 2; grid-row: 1; color: var(--blanc); align-self: end; }
html[data-variante="b"] .heros-han span { color: var(--blanc); }
html[data-variante="b"] .heros h1,
html[data-variante="b"] .heros-lieu,
html[data-variante="b"] .heros-lieu strong { color: var(--blanc); }
html[data-variante="b"] .heros .btn-ligne { color: var(--blanc); border-color: var(--blanc); }
html[data-variante="b"] .heros .btn-ligne:hover { background: var(--blanc); color: var(--encre); }
html[data-variante="b"] .heros :focus-visible { outline-color: var(--blanc); }

html[data-variante="b"] .section { border-bottom: 0; }
html[data-variante="b"] .section--clair { background: var(--blanc); }
html[data-variante="b"] .cadre { grid-template-columns: minmax(0, 1fr); max-width: 64rem; }
html[data-variante="b"] .rail { grid-column: 1; writing-mode: horizontal-tb; font-size: 2rem; margin-bottom: 0.3rem; }
html[data-variante="b"] .contenu { grid-column: 1; }

html[data-variante="b"] .devise { background: var(--encre); border-bottom: 0; color: #d9d6cc; }
html[data-variante="b"] .devise .han { color: var(--blanc); }
html[data-variante="b"] .devise figcaption { color: #d9d6cc; }
html[data-variante="b"] .devise figcaption i { color: var(--blanc); }

html[data-variante="b"] .actus { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
html[data-variante="b"] .actu,
html[data-variante="b"] .actus > .actu:last-child { display: block; background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--accent); padding: 1.4rem 1.5rem; }
html[data-variante="b"] .actu-date { display: block; margin-bottom: 0.8rem; }
html[data-variante="b"] .actu-jour, html[data-variante="b"] .actu-mois { display: inline; }
html[data-variante="b"] .actu-jour { font-size: 1.7rem; }
html[data-variante="b"] .actu-jour.han { font-size: 1.5rem; }
html[data-variante="b"] .actu-etat { margin-left: 0.5rem; vertical-align: 0.2em; }
html[data-variante="b"] .formulaire,
html[data-variante="b"] .carte,
html[data-variante="b"] .inscription-logo { background: var(--papier); }
html[data-variante="b"] .section:not(.section--clair) .formulaire,
html[data-variante="b"] .section:not(.section--clair) .carte,
html[data-variante="b"] .section:not(.section--clair) .inscription-logo,
html[data-variante="b"] .section:not(.section--clair) .actu { background: var(--blanc); }

/* ---------- Logo WulinTao animé (assets/js/wulintao-anime.js) ---------- */
.wt-cadre { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.wt-cadre svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wt-cadre[role="button"] { cursor: pointer; }
.marque .wt-cadre { width: 3.25rem; height: 3.25rem; flex: none; }
.pied-embleme .wt-cadre { width: 100%; height: 100%; }
.inscription-logo .wt-cadre { width: 100%; }
.wt-cadre--logo svg { height: auto; }
.wt-bulle {
  position: absolute; left: 50%; top: 100%; z-index: 5;
  transform: translate(-50%, 0.35rem);
  padding: 0.15rem 0.55rem; border: 1px solid var(--trait); border-radius: 2px;
  background: var(--papier); color: var(--accent-fonce);
  font: 600 0.82rem/1.3 var(--serif); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.wt-bulle.est-visible { opacity: 1; }
.pied .wt-bulle { color: var(--encre); }

/* ---------- Fêtes de fin d'année (assets/js/fetes.js) ---------- */
.fete-message { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.65rem; margin: 0 0 1rem; color: var(--accent-fonce); font-size: 1.05rem; }
.fete-message .han { font-size: 1.35rem; letter-spacing: 0.08em; color: var(--accent); }
.fete-annee { font-weight: 700; white-space: nowrap; }
.fete-annee span { display: inline-block; animation: fete-chiffre 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.5) both; }
@keyframes fete-chiffre { 0% { opacity: 0; transform: translateY(0.45em) scale(0.6); } 100% { opacity: 1; transform: none; } }
.fete-toile { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
html[data-variante="b"] .heros .fete-message,
html[data-variante="b"] .heros .fete-message .han { color: var(--blanc); }
@media (prefers-reduced-motion: reduce) { .fete-annee span { animation: none; } }

/* ---------- Impression ---------- */
@media print {
  .entete, .pied, .formulaire, .carte, .nav-bouton { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 1rem; }
}
