/* Paris Trampo 12 — feuille de style unique (site public + intranet) */

/* Titres : Fredoka ; texte : Public Sans (licences OFL, hébergées sur le site). */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-italic-latin.woff2") format("woff2");
}

:root {
  --orange: #ee7a21;
  --orange-fonce: #b4530a; /* texte et liens orange : 4,7:1 sur le fond */
  --orange-pale: #fff1e4;
  --anthracite: #3d3e40;
  --gris: #5b5c5e;
  --gris-clair: #8a8b8e;
  --fond: #fbf8f4;
  --surface: #ffffff;
  --bordure: #eadfd3;
  --vert: #2e9e5b;
  --rouge: #d6453d;
  --ambre: #f0a531;
  --neutre: #d9d6d2;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(61 62 64 / 6%), 0 8px 24px rgb(61 62 64 / 8%);
  /* Couleur secondaire (sarcelle) : --sarcelle pour le texte (4,9:1 sur le fond), dégradé pour les bandeaux. */
  --sarcelle: #127a76;
  --sarcelle-pale: #e7f3f2;
  --sarcelle-degrade: linear-gradient(100deg, #0f5452 0%, #17716e 55%, #1f8a86 100%);
  --police: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titres: "Fredoka", "Public Sans", system-ui, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--fond);
}

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

a { color: var(--orange-fonce); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3 { font-family: var(--police-titres); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.conteneur--etroit { width: min(760px, 100% - 32px); }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icone { flex: none; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.bouton:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); color: #fff; transform: translateY(-1px); }
.bouton--contour { background: transparent; color: var(--orange-fonce); }
.bouton--contour:hover { background: var(--orange-pale); color: var(--orange-fonce); }
.bouton--petit { padding: .35em .9em; font-size: .9rem; }
.bouton--secondaire { background: transparent; border-color: var(--sarcelle); color: var(--sarcelle); }
.bouton--secondaire:hover { background: var(--sarcelle-pale); border-color: var(--sarcelle); color: var(--sarcelle); }

.bouton-icone {
  border: 0; background: none; color: var(--gris-clair); cursor: pointer;
  font-size: 1rem; padding: .3em .5em; border-radius: 8px;
}
.bouton-icone:hover { color: var(--rouge); background: #fdecea; }

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

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgb(251 248 244 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.entete__barre { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.marque {
  display: flex; align-items: center; gap: 10px;
  color: var(--anthracite); text-decoration: none;
  font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
}
.marque strong { color: var(--orange); font-weight: 800; }
.marque:hover { color: var(--anthracite); }

.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu__groupe { position: relative; }
.menu__lien, .menu__titre {
  font: inherit; font-weight: 600; color: var(--anthracite); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
}
.menu__lien:hover, .menu__titre:hover { background: var(--orange-pale); color: var(--orange-fonce); }
.menu__lien[aria-current], .menu__titre--actif { color: var(--orange-fonce); }
.menu__lien[aria-current] { background: var(--orange-pale); }
.menu__titre::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu__groupe ul {
  position: absolute; top: 100%; left: -16px; min-width: 200px;
  padding: 8px; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.menu__groupe:hover ul, .menu__groupe:focus-within ul, .menu__groupe.ouvert ul { opacity: 1; visibility: visible; transform: none; }
.menu__groupe a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--anthracite); text-decoration: none;
}
.menu__groupe a:hover, .menu__groupe a[aria-current] { background: var(--orange-pale); color: var(--orange-fonce); }
.menu__insta {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  color: var(--anthracite); text-decoration: none; font-weight: 600;
  padding: 8px; border-radius: 999px;
}
.menu__insta:hover { background: var(--orange-pale); color: var(--orange-fonce); }
@media (max-width: 1080px) and (min-width: 881px) { .menu__insta-texte { display: none; } }

.menu-bouton { display: none; }

@media (max-width: 880px) {
  .menu-bouton {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  }
  .menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after {
    display: block; width: 22px; height: 2px; background: var(--anthracite); border-radius: 2px; position: relative; transition: .2s;
  }
  .menu-bouton__barres::before, .menu-bouton__barres::after { content: ""; position: absolute; left: 0; }
  .menu-bouton__barres::before { top: -7px; }
  .menu-bouton__barres::after { top: 7px; }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres { background: transparent; }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres::before { top: 0; transform: rotate(45deg); }
  .menu-bouton[aria-expanded="true"] .menu-bouton__barres::after { top: 0; transform: rotate(-45deg); }

  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 16px 20px; background: var(--fond); border-bottom: 1px solid var(--bordure);
  }
  .menu.ouvert { display: flex; }
  .menu__lien { padding: 10px 12px; border-radius: 10px; }
  .menu__titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-clair); cursor: default; padding: 12px 12px 4px; }
  .menu__titre:hover { background: none; color: var(--gris-clair); }
  .menu__titre::after { display: none; }
  .menu__groupe ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; background: none; min-width: 0; }
  .menu__groupe a { padding: 10px 12px; }
  .menu__insta { padding: 10px 12px; margin-left: 0; }
}

/* ---------- Accueil ---------- */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; color: var(--sarcelle); margin-bottom: .75em; }
.accent { color: #e06d14; } /* titre en gros caractères : 3,1:1 sur le fond */
.hero__intro { font-size: 1.2rem; color: var(--gris); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.hero .seances { margin: 24px 0 28px; max-width: 460px; }

/* Tableau des séances (accueil, nous rejoindre, horaires) */
.seances { width: 100%; border-collapse: collapse; font-size: 1rem; }
.seances th, .seances td { text-align: left; padding: 9px 12px 9px 0; border-block: 1px solid var(--bordure); vertical-align: baseline; }
.seances th { font-weight: 600; width: 7.5em; }
.seances td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.seances__public { color: var(--gris); font-size: .92rem; padding-right: 0 !important; }
.seances__public--enfants { color: var(--sarcelle); font-style: italic; font-weight: 500; }
@media (max-width: 420px) {
  /* Sur petit écran, la mention « enfants » passe sous l'horaire. */
  .seances tr { display: grid; grid-template-columns: 6.2em 1fr; border-bottom: 1px solid var(--bordure); }
  .seances tr:first-child { border-top: 1px solid var(--bordure); }
  .seances th, .seances td { border: 0; padding: 7px 8px 7px 0; }
  .seances td.seances__public { grid-column: 2; padding-top: 0; font-size: .85rem; }
  .seances td.seances__public:empty { display: none; }
}

.hero__visuel { position: relative; }
.hero__logo {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb26b, var(--orange) 60%, var(--orange-fonce));
  display: grid; place-items: center;
  box-shadow: 0 30px 60px rgb(238 122 33 / 30%);
  max-width: 420px; margin-inline: auto;
  animation: rebond 3.2s ease-in-out infinite;
}
.hero__logo .logo-anime { width: 78%; }
.hero__logo img { filter: brightness(0) invert(1); }

@keyframes rebond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 820px) {
  .hero { padding-top: 24px; }
  /* Mobile : le logo se place à droite du titre (les éléments du texte deviennent des cases de la grille). */
  .hero__grille { grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; align-items: center; }
  .hero__texte { display: contents; }
  .hero__texte > * { grid-column: 1 / -1; }
  .hero__texte > h1 { grid-column: 1; grid-row: 2; }
  .hero__texte > .hero__statut { justify-self: start; }
  .hero__visuel { grid-column: 2; grid-row: 2; align-self: center; }
  .hero__logo { width: clamp(84px, 24vw, 120px); max-width: none; margin-inline: 0; animation: none; box-shadow: 0 10px 24px rgb(238 122 33 / 30%); }
}
@media (max-width: 420px) { .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2rem); } }
/* Mobile : les trois boutons de l'accueil sur une seule ligne */
@media (max-width: 600px) {
  .hero__actions { flex-wrap: nowrap; gap: 8px; }
  .hero__actions .bouton { flex: 0 1 auto; min-width: 0; padding: .6em clamp(.7em, 3vw, 1.1em); font-size: clamp(.85rem, 3.8vw, 1rem); white-space: nowrap; }
}

.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--claire { background: var(--surface); border-block: 1px solid var(--bordure); }
.titre-section { margin-bottom: 24px; }
.titre-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cartes--deux { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.carte {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 24px; box-shadow: var(--ombre);
}
.carte h2 { font-size: 1.15rem; }
.carte p:last-child { margin-bottom: 0; }
.carte--lien { display: block; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.carte--lien:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 2px 4px rgb(61 62 64 / 6%), 0 12px 28px rgb(61 62 64 / 12%); }
.carte--lien h3 { color: var(--anthracite); }
.carte--lien:hover h3 { color: var(--orange-fonce); }
.hero__statut {
  display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--sarcelle-pale); color: #0f5e5b; font-weight: 600; font-size: .95rem;
}
.hero__statut a { color: inherit; }
.carte__pastille {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--orange-pale); color: var(--orange-fonce); font-weight: 700; font-size: .85rem;
}

.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta__item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--neutre); }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.insta__item:hover img { transform: scale(1.05); }
.insta__video { position: absolute; top: 8px; right: 10px; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / 50%); }
@media (max-width: 640px) { .insta { grid-template-columns: repeat(2, 1fr); } }

.insta-appel {
  display: flex; align-items: center; gap: 20px; padding: 28px;
  border-radius: var(--rayon); text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #f58529, #dd2a7b 55%, #8134af);
  font-size: 1.1rem;
}
.insta-appel:hover { color: #fff; filter: brightness(1.05); }
.insta-appel .icone { width: 44px; height: 44px; }

.actus { display: grid; gap: 16px; }
.actu {
  background: var(--surface); border: 1px solid var(--bordure); border-left: 4px solid var(--orange);
  border-radius: var(--rayon); padding: 20px 24px;
}
.actu time { font-size: .85rem; font-weight: 600; color: var(--orange-fonce); }
.actu h3 { margin: 4px 0 8px; }
.actu__texte p:last-child { margin-bottom: 0; }
.actu--archive { border-left-color: var(--neutre); }
.archives { margin-top: 24px; }
.archives summary { cursor: pointer; font-weight: 600; color: var(--orange-fonce); margin-bottom: 16px; }

/* ---------- Pages internes ---------- */

.bandeau {
  background: var(--sarcelle-degrade); color: #fff;
  padding: clamp(32px, 6vw, 56px) 0;
}
.bandeau h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.75rem); }

.contenu { padding: clamp(32px, 6vw, 56px) 0 clamp(48px, 8vw, 80px); }
.contenu h2 { margin-top: 1.6em; }
.contenu ul { padding-left: 1.2em; }
.contenu li { margin-bottom: .35em; }
.chapo { font-size: 1.2rem; color: var(--gris); }
.note { font-size: .95rem; color: var(--gris-clair); }

.contenu > .seances { margin: 24px 0 28px; }

.liste-fermetures { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.liste-fermetures li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--surface); border-radius: 10px; border: 1px solid var(--bordure); }
.liste-fermetures em { color: var(--gris-clair); font-style: normal; }

.table-defilante { overflow-x: auto; margin: 24px 0 8px; }
.tableau-tarifs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tableau-tarifs th, .tableau-tarifs td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--bordure); }
.tableau-tarifs thead th { background: var(--anthracite); color: #fff; font-weight: 600; }
.tableau-tarifs tbody th { text-align: left; font-weight: 600; }
.tableau-tarifs td { font-weight: 700; color: var(--orange-fonce); font-size: 1.1rem; white-space: nowrap; }
.tableau-tarifs tbody tr:last-child > * { border-bottom: 0; }

.adresse { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.adresse__nom { font-weight: 700; font-size: 1.3rem; margin-bottom: .2em; }
.adresse__liens { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }

.transports { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.transports li { display: flex; align-items: center; gap: 12px; }
.ligne {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: .95rem; color: #fff;
}
.ligne--m1 { background: #ffcd00; color: #3d3e40; }
.ligne--m6 { background: #6eca97; color: #3d3e40; }
.ligne--m8 { background: #d282be; }
.ligne--m14 { background: #62259d; }
.ligne--rer { border-radius: 8px; background: #3d3e40; }
.ligne--rer-a { background: #e2231a; } /* couleurs officielles des lignes RER (IDFM) */
.ligne--rer-d { background: #00814f; }

.etapes { display: grid; gap: 20px; margin-top: 24px; }
.etape { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; }
.etape h2 { margin-top: 0 !important; display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.etape h2 span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 1rem;
}
.etape ul { margin: 0; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 32px; text-align: center; }
.chiffres div { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 12px; }
.chiffres strong { display: block; font-size: 2.5rem; line-height: 1; color: var(--orange); }
.chiffres span { font-size: .9rem; color: var(--gris); }

.encadre { background: var(--orange-pale); border-radius: var(--rayon); padding: 24px; margin: 32px 0; }
.encadre h2 { margin-top: 0 !important; }
.encadre ul { margin: 0; }

.clubs { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.clubs li { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 16px; }
.clubs a { font-weight: 600; }
.clubs span { display: block; font-size: .92rem; color: var(--gris-clair); }

/* ---------- Pied de page ---------- */

.pied { background: var(--anthracite); color: #e7e3de; padding: 48px 0 24px; }
.pied a { color: #fff; }
.pied__nom { font-weight: 800; font-size: 1.2rem; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.pied__titre { font-weight: 700; color: #fff; }
.pied__insta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pied__affiliation img { background: #fff; border-radius: 10px; padding: 6px; }
.pied__bas { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .9rem; }
.pied__bas a { color: #bdb8b2; }

/* ---------- Intranet ---------- */

.intranet .entete__barre { flex-wrap: wrap; }
.onglets { margin-left: auto; display: flex; gap: 4px; }
.onglets a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--anthracite); font-weight: 600;
}
.onglets a:hover { background: var(--orange-pale); }
.onglets a[aria-current] { background: var(--anthracite); color: #fff; }
.onglets a { white-space: nowrap; }
@media (max-width: 720px) {
  .onglets { margin-left: 0; width: 100%; padding-bottom: 10px; flex-wrap: wrap; }
  .onglets a { padding: 6px 12px; }
}

.intranet__contenu { padding: 32px 0 64px; }
.intranet h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.intro { color: var(--gris); }

.pagination { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0; flex-wrap: wrap; }

.planning-conteneur {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--bordure);
  border-radius: var(--rayon); box-shadow: var(--ombre);
}
.planning { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; }
.planning th, .planning td { padding: 6px; text-align: center; border-bottom: 1px solid var(--bordure); }
.planning thead th { font-weight: 600; vertical-align: bottom; background: var(--surface); }
.planning tbody th, .planning tfoot th, .planning__coin {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  text-align: left; padding-left: 14px; padding-right: 12px; white-space: nowrap;
  border-right: 1px solid var(--bordure);
}
.planning tbody th { font-weight: 600; }
.planning tbody tr:hover th, .planning tbody tr:hover td { background: #fdf8f3; }
.planning__jour { display: block; font-size: .8rem; color: var(--gris-clair); text-transform: uppercase; letter-spacing: .04em; }
.planning__date { display: block; }
.planning__aujourdhui { color: var(--orange-fonce); }
.planning tfoot th, .planning tfoot td { border-bottom: 0; font-weight: 700; }
.planning__total { color: var(--vert); }
.planning__total[data-faible] { color: var(--rouge); }

.dispo {
  display: inline-block; width: 44px; height: 32px; border-radius: 8px; border: 0;
  background: var(--neutre); cursor: pointer; position: relative; vertical-align: middle;
  transition: transform .1s, background .15s;
}
button.dispo:hover { transform: scale(1.08); }
button.dispo:active { transform: scale(.95); }
.dispo::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .95rem;
}
.dispo[data-statut="present"] { background: var(--vert); }
.dispo[data-statut="present"]::after { content: "✓"; }
.dispo[data-statut="absent"] { background: var(--rouge); }
.dispo[data-statut="absent"]::after { content: "✕"; }
.dispo[data-statut="retard"] { background: var(--ambre); }
.dispo[data-statut="retard"]::after { content: "⏱"; font-size: .85rem; }
.dispo[data-statut=""] { background: var(--neutre); }
.dispo[data-statut=""]::after { color: var(--gris); }
.dispo.enregistrement { opacity: .6; }

.legende { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; font-size: .95rem; }
.legende li { display: flex; align-items: center; gap: 12px; }
.legende .dispo { cursor: default; flex: none; width: 36px; height: 26px; }

.erreur-reseau, .flash { padding: 12px 16px; border-radius: 10px; }
.erreur-reseau, .flash--erreur { background: #fdecea; color: #a1271f; }
.flash--ok { background: #e7f6ed; color: #1e6b3d; }

.vide { background: var(--surface); border: 1px dashed var(--bordure); border-radius: var(--rayon); padding: 24px; }

.grille-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; align-items: start; }
.panneau { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; margin-bottom: 24px; }
.panneau h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.panneau h2:not(:first-child) { margin-top: 1.5em; }
.grille-admin .panneau--large { grid-column: 1 / -1; }
.panneau--alerte { border-color: #f3c8a4; background: #fffaf5; }
.compteur { background: var(--orange-pale); color: var(--orange-fonce); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }

.formulaire { display: grid; gap: 14px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.formulaire fieldset { border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.formulaire legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.formulaire .case { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.champs-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
input[type="text"], input[type="date"], textarea {
  font: inherit; font-size: 1rem; padding: 8px 12px; border: 1px solid #d8cdc2; border-radius: 10px; background: #fff; color: inherit;
}
textarea { width: 100%; font-size: .95rem; }

.liste-seances, .liste-coachs { list-style: none; padding: 0; margin: 0; }
.liste-seances { max-height: 560px; overflow-y: auto; }
.liste-seances li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.liste-seances li span { flex: 1; }
.liste-seances small, .liste-coachs small { color: var(--gris-clair); }
.liste-coachs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-coachs li form:first-child { flex: 1; }
.liste-coachs li.masque input { color: var(--gris-clair); }

/* Filtres (stats, tâches) */
.filtre { margin: 0 0 20px; }
.filtre label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
select {
  font: inherit; font-size: 1rem; padding: 8px 12px; border: 1px solid #d8cdc2; border-radius: 10px; background: #fff; color: inherit;
}

/* Tâches : tableau kanban */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 24px; }
@media (max-width: 860px) { .kanban { grid-template-columns: 1fr; } }
.kanban__colonne { background: #f3ede6; border-radius: var(--rayon); padding: 14px; min-height: 120px; border-top: 4px solid var(--neutre); }
.kanban__colonne--en_cours { border-top-color: var(--orange); }
.kanban__colonne--termine { border-top-color: var(--vert); }
.kanban__colonne h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kanban__vide { color: var(--gris-clair); font-size: .95rem; text-align: center; margin: 16px 0; }
.tache { background: var(--surface); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgb(61 62 64 / 10%); }
.tache h3 { font-size: 1rem; margin: 0 0 6px; }
.kanban__colonne--termine .tache h3 { text-decoration: line-through; color: var(--gris); }
.tache__description { font-size: .92rem; color: var(--gris); margin: 0 0 8px; }
.tache__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.tache__meta small { color: var(--gris-clair); }
.tache__personne { background: var(--orange-pale); color: var(--orange-fonce); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 600; }
.tache__personne--vide { background: #eee; color: var(--gris-clair); }
.tache__actions { display: flex; gap: 2px; justify-content: flex-end; margin-top: 8px; border-top: 1px solid var(--bordure); padding-top: 6px; }
.tache__actions form { margin: 0; }
.tache__actions .bouton-icone { text-decoration: none; }
.tache__actions .bouton-icone:hover { color: var(--orange-fonce); background: var(--orange-pale); }

/* Tâches : filtre par coach (menu à choix multiple) */
.filtre-coachs { position: relative; display: inline-block; margin: 0 0 14px; max-width: 100%; }
.filtre-coachs summary {
  list-style: none; cursor: pointer; padding: 7px 34px 7px 14px; border: 1px solid #d8cdc2; border-radius: 10px;
  background: #fff; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
}
.filtre-coachs summary::-webkit-details-marker { display: none; }
.filtre-coachs summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gris); }
.filtre-coachs[open] summary::after { content: "▴"; }
.filtre-coachs form {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: min(340px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre); padding: 10px;
}
.filtre-coachs fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.filtre-coachs label { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.filtre-coachs label:hover { background: var(--orange-pale); }
.filtre-coachs label .personne { min-width: 0; }
.filtre-coachs label .personne__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filtre-coachs input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.filtre-coachs__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bordure); }

/* Tâches : plusieurs personnes */
.personnes { display: inline-flex; flex: none; }
.tache .personne { max-width: 45%; }
.tache .personne__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personnes .pastille { width: 24px; height: 24px; font-size: .75rem; box-shadow: 0 0 0 2px var(--surface); }
.personnes .pastille + .pastille { margin-left: -6px; }
.formulaire .choix-personnes { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.formulaire .choix-personnes legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.formulaire .choix-personnes legend small { font-weight: 400; color: var(--gris); }
.formulaire .choix-personnes__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 2px 8px; max-height: 240px; overflow-y: auto; }
.formulaire .choix-personnes label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; cursor: pointer; min-height: 38px; font-weight: 400; }
.formulaire .choix-personnes label:hover { background: var(--orange-pale); }
.formulaire .choix-personnes input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.formulaire .choix-personnes .personne { min-width: 0; }
.formulaire .choix-personnes .personne__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Statistiques */
.chiffres--stats { margin-top: 8px; }
.tableau-stats { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau-stats th, .tableau-stats td { padding: 8px 10px; border-bottom: 1px solid var(--bordure); text-align: center; white-space: nowrap; }
.tableau-stats thead th { font-size: .85rem; color: var(--gris); font-weight: 600; }
.tableau-stats tbody th { text-align: left; }
.tableau-stats__taux { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-weight: 700; }
.barre { display: inline-block; width: 80px; height: 8px; background: #eee; border-radius: 999px; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--vert); border-radius: 999px; }
.stats__court { display: none; }
.stats__explications { margin-top: 8px; }
@media (max-width: 600px) {
  .panneau--large:has(.tableau-stats) { padding: 16px 10px; }
  .tableau-stats { font-size: .88rem; }
  .tableau-stats th, .tableau-stats td { padding: 7px 4px; }
  .tableau-stats thead th:first-child { text-align: left; }
  .tableau-stats tbody th { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .tableau-stats tbody th small { display: none; }
  .tableau-stats .stats__long, .tableau-stats .barre { display: none; }
  .tableau-stats .stats__court { display: inline; }
  .tableau-stats__taux { display: table-cell; text-align: right; }
}
.liste-stats { list-style: none; padding: 0; margin: 0 0 8px; }
.liste-stats li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.liste-stats small { color: var(--gris-clair); }
.liste-stats .alerte { color: var(--rouge); }

/* Séances annulées */
.planning__annulee { color: var(--gris-clair); }
.planning__etiquette { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rouge); }
.liste-seances li.annulee span { color: var(--gris-clair); text-decoration: line-through; }
.liste-seances li.annulee em { text-decoration: none; }

/* Bandeau d'information (toutes les pages) */
.alerte-info { background: var(--anthracite); color: #fff; font-size: .95rem; }
.alerte-info .conteneur { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 0; }
.alerte-info a { color: #ffb26b; font-weight: 600; }
.alerte-info a::after { content: " →"; }

/* Actualités sur l'accueil */
.section--actus { padding-top: 0; padding-bottom: 8px; }
.une { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .une { grid-template-columns: 1fr; } }
.actu--une { border-left-width: 6px; box-shadow: var(--ombre); }
.actu--une h3 { font-size: 1.35rem; }
.une__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.une__liste a {
  display: block; padding: 14px 16px; border-radius: var(--rayon); background: var(--surface);
  border: 1px solid var(--bordure); color: var(--anthracite); text-decoration: none;
}
.une__liste a:hover { border-color: var(--orange); }
.une__liste time { display: block; font-size: .8rem; font-weight: 600; color: var(--orange-fonce); }
.une__liste span { font-weight: 600; }
.contenu .actu h2 { margin: 4px 0 8px !important; font-size: 1.25rem; }

/* Pied de page : plan du site */
.pied__plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied__plan a { color: #e7e3de; text-decoration: none; }
.pied__plan a:hover { color: #fff; text-decoration: underline; }

/* Cartes (images OpenStreetMap) */
.carte-lieu { margin: 24px 0; }
.carte-lieu > a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.carte-lieu img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.carte-lieu > a:hover img { transform: scale(1.02); }
.carte-lieu__bouton {
  position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--anthracite); font-weight: 600; font-size: .9rem; box-shadow: var(--ombre);
}
.carte-lieu figcaption { margin-top: 8px; font-size: .95rem; color: var(--gris); }
.carte-lieu figcaption small { display: block; font-size: .78rem; color: var(--gris-clair); }
.carte-lieu figcaption small a { color: inherit; }
.cartes-google { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cartes-google .carte-lieu { margin: 24px 0 0; }
@media (max-width: 520px) { .carte-lieu img { aspect-ratio: 4 / 3; } }

/* ---------- Tâches v2 : glisser-déposer ---------- */
.pastille {
  --teinte: 25;
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: hsl(var(--teinte) 70% 88%); color: hsl(var(--teinte) 60% 28%);
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.pastille--vide { background: #eee; color: var(--gris-clair); }

.filtre-pastilles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.filtre-pastilles a { border-radius: 999px; text-decoration: none; padding: 2px; border: 2px solid transparent; }
.filtre-pastilles a.actif { border-color: var(--orange); }
.filtre-pastilles__tous { padding: 5px 12px !important; background: var(--surface); border: 1px solid var(--bordure) !important; color: var(--anthracite); font-weight: 600; font-size: .9rem; }
.filtre-pastilles__tous.actif { background: var(--anthracite); color: #fff; }

.kanban__colonne { transition: background .15s, box-shadow .15s; }
.kanban__colonne--survol { background: #fbe9d8; box-shadow: inset 0 0 0 2px var(--orange); }
.kanban__liste { list-style: none; margin: 0; padding: 0; min-height: 40px; display: grid; gap: 8px; }
.tache {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 12px 10px 6px; cursor: grab; user-select: none;
  transition: box-shadow .15s, transform .15s;
}
.tache:hover { box-shadow: 0 4px 14px rgb(61 62 64 / 14%); }
.tache__poignee { color: #cfc6bc; font-size: .8rem; letter-spacing: -2px; padding: 6px 4px; touch-action: none; cursor: grab; }
.tache__corps { flex: 1; min-width: 0; }
.tache h3 { margin: 0; font-size: .98rem; line-height: 1.3; }
.tache__description { margin: 3px 0 0; font-size: .85rem; }
.tache__modifier { position: absolute; inset: 0; }
.tache--source { opacity: .35; box-shadow: none; outline: 2px dashed var(--orange); outline-offset: -2px; }
.tache--fantome {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  box-shadow: 0 18px 40px rgb(61 62 64 / 28%); cursor: grabbing;
}
.glisse-en-cours, .glisse-en-cours * { cursor: grabbing !important; }
.kanban__colonne--termine .tache h3 { text-decoration: line-through; color: var(--gris); }

.ajout-rapide { margin-top: 10px; }
.ajout-rapide summary { cursor: pointer; color: var(--gris); font-weight: 600; font-size: .92rem; padding: 6px 4px; list-style: none; }
.ajout-rapide summary::-webkit-details-marker { display: none; }
.ajout-rapide summary:hover { color: var(--orange-fonce); }
.ajout-rapide form { display: grid; gap: 8px; background: var(--surface); padding: 10px; border-radius: 10px; margin-top: 4px; }
.ajout-rapide input[type="text"] { width: 100%; }
.ajout-rapide select { flex: 1; }

.dialogue { border: 0; border-radius: var(--rayon); padding: 24px; width: min(520px, 100% - 32px); box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.dialogue::backdrop { background: rgb(40 40 42 / 45%); }
.dialogue h2 { margin-top: 0; font-size: 1.3rem; }
.dialogue input[type="text"], .dialogue textarea { width: 100%; }
.dialogue__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bouton-texte { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 8px; margin-left: auto; }
.bouton-texte--danger { color: var(--rouge); }
.bouton-texte--danger:hover { text-decoration: underline; }

/* ---------- Coachs compact ---------- */
.barre-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 8px; }
.lien-discret { font-size: .9rem; color: var(--gris); }
.coachs-compact {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px 16px;
}
.coachs-compact__ligne {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px;
}
.coachs-compact__ligne input[type="text"] {
  flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; padding: 4px 8px; font-weight: 600;
}
.coachs-compact__ligne input[type="text"]:hover { border-color: var(--bordure); }
.coachs-compact__ligne input[type="text"]:focus { border-color: var(--orange); background: #fff; outline: none; }
.coachs-compact__ligne small { color: var(--gris-clair); font-size: .8rem; white-space: nowrap; }
.coachs-compact .masque .coachs-compact__ligne { background: transparent; border-style: dashed; }
.coachs-compact .masque input[type="text"], .coachs-compact .masque .pastille { opacity: .55; }

.interrupteur { position: relative; display: inline-flex; cursor: pointer; flex: none; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur__piste { width: 38px; height: 22px; border-radius: 999px; background: #d5cec6; position: relative; transition: background .15s; }
.interrupteur__piste::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .15s;
}
.interrupteur input:checked + .interrupteur__piste { background: var(--vert); }
.interrupteur input:checked + .interrupteur__piste::after { transform: translateX(16px); }
.interrupteur input:focus-visible + .interrupteur__piste { outline: 3px solid var(--orange); outline-offset: 2px; }
.personne { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.personne .pastille { width: 24px; height: 24px; font-size: .75rem; }
.personne__nom { font-size: .85rem; font-weight: 600; color: var(--gris); }
.filtre-pastilles a:not(.filtre-pastilles__tous) { padding: 3px 10px 3px 3px; background: var(--surface); border: 1px solid var(--bordure); color: inherit; }
.filtre-pastilles a.actif:not(.filtre-pastilles__tous) { border: 2px solid var(--orange); }
.carte-lieu--clubs img { aspect-ratio: 3 / 2; border-radius: var(--rayon); border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.clubs li { display: flex; align-items: center; gap: 12px; }
.clubs li > div { flex: 1; min-width: 0; }
.clubs .clubs__num {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--anthracite); color: #fff; font-weight: 700; font-size: .9rem;
}
.clubs__num--ici { background: var(--orange); }
.clubs__plan { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* Nous rejoindre */
.menu__lien--cta { background: var(--orange); color: #fff !important; margin-left: 6px; }
.menu__lien--cta:hover, .menu__lien--cta[aria-current] { background: var(--orange-fonce); color: #fff; }
@media (max-width: 880px) { .menu__lien--cta { margin: 6px 0 0; justify-content: center; } }
@media (max-width: 1080px) and (min-width: 881px) { .menu__lien { padding: 8px 9px; } }
.parcours { list-style: none; padding: 0 !important; margin: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: none; }
.parcours__etape { display: flex; gap: 18px; position: relative; padding-bottom: 28px; margin: 0 !important; }
.parcours__etape:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--orange); opacity: .55; }
.parcours__num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 6px 16px rgb(238 122 33 / 30%);
}
.parcours__etape h2 { margin: 8px 0 8px !important; font-size: 1.3rem; }
.parcours__etape p:last-child { margin-bottom: 0; }
.parcours__etape > div { flex: 1; min-width: 0; }
.parcours .seances { margin: 4px 0 16px; max-width: 460px; }
.encart-complet { background: var(--orange-pale); border: 1.5px solid #f3b27d; border-radius: var(--rayon); padding: 16px 20px; margin-bottom: 28px; }
.encart-complet p { margin: 0 0 12px; }
.encart-complet p:last-child { margin: 0; }
.encart-complet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.encart-complet__note { font-size: .92rem; color: var(--gris); }
.parcours__important { background: #fdecea; color: #8a2019; border-radius: 10px; padding: 10px 14px; }

/* Pied de page compact sur mobile */
@media (max-width: 880px) {
  .pied { padding: 28px 0 14px; font-size: .92rem; }
  .pied__nom { flex-basis: 100%; }
  .pied__titre { margin-bottom: 6px; }
  .pied__plan ul { gap: 4px; }
  .pied__bas { margin-top: 16px; padding-top: 12px; }
  .alerte-info { font-size: .88rem; }
  .alerte-info .conteneur { padding: 7px 0; }
}
.carte p { overflow-wrap: anywhere; }

/* Planning : choix du mode et menu de choix */
.mode-planning { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.segments { display: inline-flex; background: #efe8e0; border-radius: 999px; padding: 3px; }
.segments button { border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--gris); }
.segments button[aria-pressed="true"] { background: var(--surface); color: var(--anthracite); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.choix-dispo {
  position: absolute; z-index: 50; display: grid; gap: 2px; padding: 6px; min-width: 180px;
  background: var(--surface); border-radius: 12px; box-shadow: 0 12px 34px rgb(61 62 64 / 25%); border: 1px solid var(--bordure);
}
.choix-dispo[hidden] { display: none; }
.choix-dispo button {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--anthracite);
}
.choix-dispo button:hover, .choix-dispo button:focus-visible { background: var(--orange-pale); outline: none; }
.choix-dispo button.actif { background: #f3ede6; }
.choix-dispo .dispo { width: 30px; height: 22px; flex: none; cursor: inherit; }
.dispo--cible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Police de la marque : Impact si l'appareil l'a, sinon Anton (libre, très proche) */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
}
.marque span, .pied__nom {
  font-family: Impact, "Anton", "Arial Narrow", sans-serif;
  font-weight: 400; letter-spacing: .03em; text-transform: uppercase;
}
.marque span { font-size: 1.45rem; line-height: 1; }
.marque strong { font-weight: 400; }
.pied__nom { font-size: 1.4rem; }

/* Bandeau d'information : clair, visible sur les en-têtes sombres comme claires */
.alerte-info { background: #b4530a; color: #fff; font-weight: 600; }
.alerte-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.alerte-info a:hover { color: #ffe3c9; }

/* Intranet : réglages (admin) moins mis en avant */
.onglets { align-items: center; flex-wrap: wrap; }
.onglets__admin { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--bordure); }
.onglets__admin-titre { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-clair); margin-right: 4px; }
.onglets .onglets__admin a { font-size: .85rem; font-weight: 500; color: var(--gris); padding: 5px 9px; }
.onglets .onglets__admin a[aria-current] { background: #e9e2da; color: var(--anthracite); }
@media (max-width: 720px) { .onglets__admin { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; } }
.avertissement-admin { background: #fff4d6; border: 1px solid #f0d58a; color: #6b4e00; border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; font-size: .95rem; }

/* Planning compact (captures d'écran partagées sur mobile) */
.planning__periode { font-size: .85rem; color: var(--gris); margin: 0 0 8px; }
.pagination { margin: 14px 0; }
.legende__court { display: none; }
/* Sur mobile : 6 séances seulement (la pagination avance de 6), mais lisibles. */
.ecran-mobile { display: none; }
@media (max-width: 600px) {
  .ecran-large { display: none !important; }
  .ecran-mobile { display: initial; }
  a.ecran-mobile { display: inline-flex; }
  body.intranet .conteneur { width: calc(100% - 16px); }
  .intranet__contenu { padding-top: 14px; }
  .intranet h1 { font-size: 1.3rem; margin-bottom: 2px; }
  .intranet .intro { font-size: .85rem; margin-bottom: 4px; }
  .planning__periode { font-size: .8rem; margin-bottom: 6px; }
  .planning-conteneur { border-radius: 10px; }
  .planning { font-size: .85rem; }
  .planning th:nth-child(n+8), .planning td:nth-child(n+8) { display: none; }
  .planning th, .planning td { padding: 4px 2px; }
  .planning tbody th, .planning tfoot th, .planning__coin {
    padding-left: 8px; padding-right: 4px; max-width: 84px; overflow: hidden; text-overflow: ellipsis;
  }
  .planning__coin { font-size: 0; }
  .planning thead th { padding-top: 7px; padding-bottom: 6px; }
  .planning__jour { font-size: .66rem; letter-spacing: 0; }
  .planning__date { font-size: .82rem; }
  .planning tbody th { font-size: .88rem; }
  .planning__etiquette { font-size: .58rem; letter-spacing: 0; }
  .planning .dispo { width: 36px; height: 30px; border-radius: 7px; }
  .planning .dispo::after { font-size: .9rem; }
  .planning .dispo[data-statut="retard"]::after { font-size: .8rem; }
  .planning tfoot th, .planning tfoot td { font-size: .9rem; }
  .legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; margin: 10px 0; }
  .legende li { gap: 6px; }
  .legende .dispo { width: 28px; height: 22px; }
  .legende__court { display: inline; }
  .legende__long { display: none; }
  .pagination .bouton--petit { font-size: .85rem; padding: .35em .9em; }
}
@media (max-width: 360px) {
  .planning tbody th, .planning tfoot th, .planning__coin { padding-left: 5px; max-width: 70px; }
  .planning tbody th { font-size: .8rem; }
  .planning .dispo { width: 32px; height: 28px; }
  .planning__date { font-size: .74rem; }
}

/* Menu « S'inscrire » mis en avant */
.menu__groupe--cta > .menu__titre { background: var(--orange); color: #fff; margin-left: 6px; }
.menu__groupe--cta > .menu__titre:hover, .menu__groupe--cta.ouvert > .menu__titre { background: var(--orange-fonce); color: #fff; }
.menu__groupe--cta > .menu__titre--actif { background: var(--orange-fonce); color: #fff; }
.menu__groupe--cta ul { left: auto; right: 0; min-width: 260px; }
@media (max-width: 880px) {
  .menu__groupe--cta > .menu__titre { background: none; color: var(--orange-fonce); margin-left: 0; }
  .menu__groupe--cta > .menu__titre:hover { background: none; color: var(--orange-fonce); }
  .menu__groupe--cta { order: -1; background: var(--orange-pale); border-radius: 12px; padding-bottom: 6px; margin-bottom: 4px; }
}

/* Liens externes (ouverts dans un nouvel onglet) */
.contenu a.lien-externe:not(.bouton)::after, .actu__texte a.lien-externe::after { content: "\2197"; font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.carte-lieu a::after, a.lien-externe:has(img)::after { content: none !important; }

/* Accueil : liste d'actus à droite, ajustée à la hauteur de l'actu mise en avant */
.une__liste a { padding: 11px 16px; }
.une__liste li[hidden] { display: none; }
@media (max-width: 820px) { .une__liste li:nth-child(n+4) { display: none; } }
@media (min-width: 821px) {
  .une__liste { gap: 8px; }
  .une__liste a { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px; }
  .une__liste time { flex: none; font-size: .78rem; }
  .une__liste span { font-size: .98rem; line-height: 1.3; }
}

/* Tâches sur écran tactile (iPhone…) */
.tache { -webkit-user-select: none; -webkit-touch-callout: none; }
.tache__deplacer {
  position: relative; z-index: 1; flex: none; display: none; place-items: center;
  width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; border-radius: 10px;
  background: none; color: var(--gris); font-size: 1.25rem; cursor: pointer;
}
.tache__deplacer:active { background: var(--orange-pale); color: var(--orange-fonce); }
.aide-tactile { display: none; }
@media (pointer: coarse) {
  .tache__deplacer { display: grid; }
  .tache__poignee { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; min-height: 44px; margin: -8px 0 -8px -4px; font-size: 1rem; color: #b9aea3; }
  .tache .personne__nom { display: none; }
  .aide-souris { display: none; }
  .aide-tactile { display: block; }
}
.choix-colonne { min-width: 200px; }
.choix-colonne__titre { margin: 2px 10px 6px; font-size: .8rem; font-weight: 600; color: var(--gris-clair); text-transform: uppercase; letter-spacing: .06em; }
.choix-colonne button { padding: 12px 10px; }
.choix-colonne__puce { width: 12px; height: 12px; border-radius: 50%; background: var(--neutre); flex: none; }
.choix-colonne__puce--en_cours { background: var(--orange); }
.choix-colonne__puce--termine { background: var(--vert); }
.tache--deplacee { animation: arrivee .9s ease; }
@keyframes arrivee { 0% { box-shadow: 0 0 0 3px var(--orange); } 100% { box-shadow: 0 0 0 0 transparent; } }
.case-a-cocher { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--gris); cursor: pointer; }
.case-a-cocher[hidden] { display: none; }
.case-a-cocher input { width: 18px; height: 18px; accent-color: var(--orange); }
.coachs-compact small { white-space: nowrap; }

/* Pied de page : coordonnées, trois colonnes de liens, liens légaux */
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.pied__club p { margin-bottom: .7em; }
.pied__affiliation { display: inline-block; margin-top: 4px; }
.pied__affiliation img { width: 96px; }
.pied__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 880px) {
  .pied__grille { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .pied__club { grid-column: 1 / -1; }
  .pied__affiliation img { width: 72px; padding: 4px; }
}
@media (max-width: 520px) { .pied__grille { grid-template-columns: 1fr 1fr; } }

/* Questions fréquentes */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq__item { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  font-family: var(--police-titres); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--orange-fonce);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--orange-fonce); }
.faq__reponse { padding: 0 20px 16px; }
.faq__reponse p:last-child { margin-bottom: 0; }

/* Pages légales */
.texte-legal h2 { font-size: 1.3rem; }
.texte-legal li { margin-bottom: .6em; }

/* Notre matériel */
.materiel__photo { margin: 0 0 24px; }
.materiel__photo img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); }
.materiel__photo figcaption { font-size: .9rem; color: var(--gris); margin-top: 8px; }
.materiel__trampos, .materiel__modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 28px; }
.materiel .carte { padding: 20px; }
.materiel .carte h3 { margin-top: 4px; }
.materiel__dessin { display: block; width: 100%; max-width: 180px; height: auto; margin: 0 0 12px; background: var(--fond); border-radius: 12px; padding: 8px; }

/* En-tête : le menu tient sur une ligne (Instagram en icône, « FAQ » quand la place manque) */
.menu__lien, .menu__titre, .marque { white-space: nowrap; }
.menu__court { display: none; }
@media (min-width: 881px) {
  .menu__insta-texte { display: none; }
  .menu { gap: 2px; }
}
@media (max-width: 1180px) and (min-width: 881px) {
  .menu__long { display: none; }
  .menu__court { display: inline; }
  .menu__lien, .menu__titre { padding: 8px 9px; }
}
@media (max-width: 1000px) and (min-width: 881px) {
  .entete__barre { gap: 12px; }
  .marque span { font-size: 1.2rem; }
  .marque .logo-anime, .marque img { width: 40px; height: 40px; }
  .menu__lien, .menu__titre { padding: 8px 6px; font-size: .95rem; }
}

/* Tâches : date de mise à jour, historique des tâches terminées */
.tache__date { display: block; margin-top: 4px; font-size: .78rem; color: var(--gris-clair); }
.kanban__historique { margin: 10px 2px 0; font-size: .85rem; color: var(--gris); }
.kanban__historique a { font-weight: 600; white-space: nowrap; }
.lien-retour { font-weight: 600; text-decoration: none; }
.historique-taches { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.historique-taches li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--bordure); }
.historique-taches li:last-child { border-bottom: 0; }
.historique-taches time { flex: none; width: 6.5em; font-size: .9rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.historique-taches__corps { flex: 1; min-width: 0; }
.historique-taches__corps a { font-weight: 600; color: var(--anthracite); text-decoration: none; }
.historique-taches__corps a:hover { color: var(--orange-fonce); }
.historique-taches .tache__description { margin: 2px 0 0; }
@media (max-width: 600px) {
  .historique-taches li { flex-wrap: wrap; gap: 4px 12px; }
  .historique-taches__corps { flex-basis: 100%; order: 3; }
}

/* Logo : le personnage fait un salto arrière au survol (classe ajoutée en JS : le salto va toujours au bout) */
.logo-anime { position: relative; display: inline-block; width: var(--taille); max-width: 100%; aspect-ratio: 1; flex: none; }
.logo-anime img { width: 100%; height: 100%; }
.logo-anime__perso { position: absolute; inset: 0; transform-origin: 50% 50%; backface-visibility: hidden; }
.logo-anime--salto .logo-anime__perso { will-change: transform; animation: salto 1.1s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes salto { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-anime__perso { animation: none !important; } }

@media (max-width: 520px) { .pied__bas { flex-direction: column; gap: 8px; } }
@media (max-width: 600px) { .materiel__dessin { max-width: 130px; } }

.planning { transition: opacity .15s; }
.planning--chargement { opacity: .45; pointer-events: none; }

/* Planning : cases jointives, séances à risque (moins de 2 présents) visibles d'un coup d'œil */
.planning th, .planning td { padding: 3px 3px; }
.planning tbody th, .planning tfoot th, .planning__coin { padding-left: 14px; padding-right: 10px; }
.planning td .dispo { width: 100%; min-width: 34px; max-width: 64px; height: 34px; border-radius: 7px; }
.planning td.planning__risque, .planning th.planning__risque { background: #fdeceb; }
.planning thead th.planning__risque { background: var(--rouge); }
.planning thead th.planning__risque .planning__date, .planning thead th.planning__risque .planning__jour { color: #fff; }
.planning__total[data-faible] { color: var(--rouge); }
.planning__total[data-faible]::after { content: " ⚠"; font-size: .8em; }
.planning tbody tr:hover td.planning__risque { background: #fbe1df; }
@media (max-width: 600px) {
  .planning th, .planning td { padding: 2px 1px; }
  .planning tbody th, .planning tfoot th, .planning__coin { padding-left: 8px; padding-right: 4px; }
  .planning td .dispo { min-width: 0; height: 32px; border-radius: 6px; }
  .planning__total[data-faible]::after { content: "⚠"; }
}

/* Séances tout juste (2 coachs présents) : même principe, en orange */
.planning td.planning__juste, .planning th.planning__juste { background: #fff3e6; }
.planning thead th.planning__juste { background: #f59a3c; }
.planning thead th.planning__juste .planning__date, .planning thead th.planning__juste .planning__jour { color: #3d3e40; }
.planning__total[data-juste] { color: var(--orange-fonce); }
.planning tbody tr:hover td.planning__juste { background: #ffe9d4; }
