/* Site du district UNSS Orléans Sud. Portage de la maquette 3 du 8 septembre 2026.
   Le code couleur est celui de Cédric : sable, crème, marine, bleu d'action, district en sable,
   départemental en rouge, académique en violet. Une seule famille, Archivo, le contraste vient de l'échelle. */

/* ============================================================ polices, hébergées ici */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-black-latin.woff2") format("woff2");
}

/* ============================================================ tokens */

:root {
  color-scheme: light;

  --fond:        #F3F6FB;
  --blanc:       #FFFFFF;
  --gris-doux:   #E9EDF5;
  --trait:       #DDE3EE;
  --trait-fort:  #BCC5D6;
  --encre:       #101521;
  --encre-2:     #59627A;

  --marine:      #002060;
  --marine-nuit: #00133A;
  --marine-clair:#0B3A8F;
  --sur-marine:  #F1EEE7;

  --action:      #1E7FE0;
  --action-vive: #3D97F0;

  --sable:       #D6B992;
  --sable-vif:   #E8CBA0;
  --sable-encre: #8A6A34;
  --creme:       #FEF2CD;
  --creme-trait: #EEDCA6;
  --sur-sable:   #23190A;

  --district:    #C79A4B;
  --departement: #D93A28;
  --academie:    #7030A0;
  --national:    #0B3A8F;

  /* releves sur la maquette d accueil du 10 septembre 2026 : le bleu nuit de la page, l or du bouton et des chiffres */
  --nuit:        #01153C;
  --or:          #D4AB68;
  --or-clair:    #F3D78F;

  --fait:        #2F8A46;
  --fait-fond:   #E4F2E7;
  --manque:      #C0301F;
  --manque-fond: #FBE7E3;
  --neutre-fond: #E9EDF5;

  /* trésorier et secrétaire d'AS, le vert et le rose du classeur de Cédric */
  --statut-t:    #C2D69B;
  --statut-s:    #D99594;

  /* états d'avancement, jamais utilisés comme couleurs de niveau */
  --st-bon:      #24702F;
  --st-attente:  #A2650F;
  --st-bloque:   #A82818;
  --st-marine:   #0B3A8F;

  --r-carte:     16px;
  --r-bouton:    10px;
  --ombre:       0 2px 4px rgba(16,21,33,.04), 0 20px 44px -28px rgba(16,21,33,.4);
  --ombre-forte: 0 4px 10px rgba(16,21,33,.07), 0 34px 60px -30px rgba(0,20,58,.55);

  --trame: repeating-linear-gradient(60deg, rgba(214,185,146,.10) 0 1px, transparent 1px 46px),
           repeating-linear-gradient(-60deg, rgba(214,185,146,.10) 0 1px, transparent 1px 46px),
           repeating-linear-gradient(0deg, rgba(214,185,146,.07) 0 1px, transparent 1px 40px);
}

/* ============================================================ socle */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1; }

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.black {
  font-family: "Archivo Black", "Archivo", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.num { font-variant-numeric: tabular-nums; }

.large { width: 100%; max-width: 1220px; margin: 0 auto; padding-inline: 28px; }

.zone { padding-block: 84px; }
.zone-courte { padding-block: 56px; }
.zone-blanche { background: var(--blanc); }
.zone-douce   { background: var(--fond); }
.zone-nuit    { background: var(--marine-nuit); color: var(--sur-marine); position: relative; overflow: hidden; }
.zone-nuit::before { content: ""; position: absolute; inset: 0; background: var(--trame); opacity: .8; pointer-events: none; }
.zone-nuit .large { position: relative; }

/* en-tête de zone */
.tete-zone { margin-bottom: 40px; max-width: 760px; }
.tete-zone.avec-action { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tete-zone.avec-action > div { max-width: 760px; }
.sur-titre {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sable-encre); margin-bottom: 14px;
}
.sur-titre::before { content: ""; width: 32px; height: 3px; background: var(--sable); display: block; }
.zone-nuit .sur-titre { color: var(--sable); }
.titre-zone { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.sous-titre { margin-top: 14px; font-size: 17.5px; color: var(--encre-2); max-width: 62ch; }
.zone-nuit .sous-titre { color: rgba(241,238,231,.72); }

/* ============================================================ barre */

.barre {
  position: sticky; top: 0; z-index: 60;
  background: var(--marine-nuit); color: var(--sur-marine);
  box-shadow: 0 1px 0 rgba(214,185,146,.22), 0 10px 30px -22px rgba(0,0,0,.9);
}
.barre-int { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; min-height: 72px; padding-block: 12px; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; color: var(--sur-marine);
  border: 1px solid rgba(241,238,231,.28);
  cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: rgba(214,185,146,.18); border-color: var(--sable); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .ecu {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, var(--sable-vif), var(--district));
  color: var(--sur-sable); display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif; font-size: 15px;
}
.logo .nom { font-family: "Archivo Black", sans-serif; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.logo .nom i {
  display: block; font-style: normal; font-family: "Archivo", sans-serif;
  font-weight: 600; font-size: 11.5px; letter-spacing: .14em; color: var(--sable);
}

.nav { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .78; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a.ici { opacity: 1; border-bottom-color: var(--sable); }

/* le compte, et son menu : un details, qui s'ouvre donc sans script */
.moi { position: relative; padding-left: 24px; border-left: 1px solid rgba(241,238,231,.16); }
.moi > summary {
  display: flex; align-items: center; gap: 11px;
  list-style: none; cursor: pointer; padding: 4px 0;
}
.moi > summary::-webkit-details-marker { display: none; }
.moi > summary:focus-visible { outline: 2px solid var(--sable); outline-offset: 4px; border-radius: 8px; }
.moi .init {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--sable); color: var(--sur-sable);
  display: grid; place-items: center; font-family: "Archivo Black", sans-serif; font-size: 13px;
}
.moi strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.moi .moi-id span { display: block; font-size: 12.5px; opacity: .7; white-space: nowrap; }
.chev-compte {
  width: 8px; height: 8px; flex-shrink: 0; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); opacity: .7; transition: transform .16s;
}
.moi[open] .chev-compte { transform: rotate(-135deg) translate(-2px, -2px); }

.compte-menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 70;
  min-width: 280px; max-width: calc(100vw - 32px);
  background: var(--blanc); color: var(--encre);
  border-radius: 14px; padding: 8px; box-shadow: var(--ombre-forte);
}
.compte-menu::before {
  content: ""; position: absolute; right: 22px; top: -7px;
  width: 14px; height: 14px; background: var(--blanc); transform: rotate(45deg); border-radius: 2px;
}
.compte-menu a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit;
}
.compte-menu a:hover { background: var(--fond); }
.compte-menu a[aria-current] { background: var(--fond); }
.compte-menu a[aria-current]::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--sable);
}
.compte-menu a svg {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--marine);
  fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.compte-menu a > span { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.compte-menu a i { display: block; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--encre-2); }
.compte-menu form { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--trait); }
.compte-menu .quitter { width: 100%; }

.quitter {
  background: none; border: 1px solid var(--trait-fort); color: var(--encre);
  border-radius: 8px; padding: 9px 11px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.quitter:hover { border-color: var(--manque); color: var(--manque); }

@media (max-width: 900px) {
  .barre-int { gap: 14px; min-height: 62px; }
  .menu-btn { display: grid; order: 3; }
  .moi { order: 2; margin-left: auto; padding-left: 0; border-left: 0; }
  .moi .moi-id { display: none; }
  .nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    display: none; flex-direction: column; gap: 0;
    border-top: 1px solid rgba(241,238,231,.16);
    margin-top: 4px; padding-top: 6px;
  }
  .nav.ouvert { display: flex; }
  .nav a {
    padding: 12px 4px; font-size: 16px; opacity: .9;
    border-bottom: 1px solid rgba(241,238,231,.08); border-top: 0;
  }
  .nav a.ici { border-bottom-color: var(--sable); }
  .logo .ecu { width: 34px; height: 34px; font-size: 13px; }
  .logo .nom { font-size: 16px; }
}

/* ============================================================ hero */

.hero {
  position: relative;
  background:
    var(--trame),
    radial-gradient(120% 120% at 78% 8%, var(--marine-clair) 0%, var(--marine) 42%, var(--marine-nuit) 100%);
  color: var(--sur-marine);
  overflow: hidden;
}
.hero.niv-district {
  color: var(--sur-sable);
  background:
    repeating-linear-gradient(60deg, rgba(35,25,10,.07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-60deg, rgba(35,25,10,.07) 0 1px, transparent 1px 46px),
    radial-gradient(120% 120% at 78% 8%, #EBD3A8 0%, #D6B992 45%, #B99253 100%);
}
.hero.niv-departemental {
  background:
    var(--trame),
    radial-gradient(120% 120% at 78% 8%, #E3573F 0%, #B92A18 45%, #6E170B 100%);
}
.hero.niv-academique {
  background:
    var(--trame),
    radial-gradient(120% 120% at 78% 8%, #8E4CBE 0%, #5E2A85 45%, #2E0D45 100%);
}
.piste {
  position: absolute; right: -140px; top: -170px;
  width: 880px; height: 880px; pointer-events: none; opacity: .9;
}
.hero.niv-district .piste { opacity: .55; }
.hero-picto {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; pointer-events: none; opacity: .12;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.hero-int {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px);
  gap: 56px;
  align-items: center;
  padding-block: 74px 92px;
}
.hero-int.large-droite { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); align-items: start; }
.hero-int.seul { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 940px) {
  .hero-int, .hero-int.large-droite { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; }
  .piste { opacity: .28; }
  .hero-picto { display: none; }
}

.fanion {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(214,185,146,.16);
  border: 1px solid rgba(214,185,146,.42);
  color: var(--sable-vif);
  border-radius: 999px; padding: 7px 16px 7px 12px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}
.fanion .point {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sable-vif);
  box-shadow: 0 0 0 4px rgba(232,203,160,.22);
}
.fanion.fait { color: #CFEBD6; border-color: rgba(207,235,214,.4); background: rgba(47,138,70,.22); }
.fanion.fait .point { background: #CFEBD6; box-shadow: 0 0 0 4px rgba(207,235,214,.2); }
.hero.niv-district .fanion { background: rgba(35,25,10,.1); border-color: rgba(35,25,10,.28); color: var(--sur-sable); }
.hero.niv-district .fanion .point { background: var(--sur-sable); box-shadow: 0 0 0 4px rgba(35,25,10,.12); }

.hero h1 {
  margin-top: 22px;
  font-family: "Archivo Black", sans-serif; font-weight: 400;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: .92; letter-spacing: -.04em; text-transform: uppercase;
}
.hero h1 span { color: var(--sable); }
.hero.niv-district h1 span { color: var(--marine); }
.vue-evenement .hero h1 { font-size: clamp(34px, 5vw, 64px); }

.hero-quand { margin-top: 22px; font-size: 19px; max-width: 44ch; color: rgba(241,238,231,.86); }
.hero-quand b { color: var(--sur-marine); font-weight: 700; }
.hero.niv-district .hero-quand { color: rgba(35,25,10,.8); }
.hero.niv-district .hero-quand b { color: var(--sur-sable); }

.hero-faits { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.fait-hero { border-left: 3px solid rgba(214,185,146,.45); padding-left: 14px; }
.fait-hero.urgent { border-left-color: var(--sable); }
.fait-hero.urgent .v { color: var(--sable-vif); }
.fait-hero .v { font-family: "Archivo Black", sans-serif; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.fait-hero .l { font-size: 13.5px; color: rgba(241,238,231,.7); margin-top: 5px; }
.hero.niv-district .fait-hero { border-left-color: rgba(35,25,10,.25); }
.hero.niv-district .fait-hero.urgent { border-left-color: var(--marine); }
.hero.niv-district .fait-hero.urgent .v { color: var(--marine); }
.hero.niv-district .fait-hero .l { color: rgba(35,25,10,.7); }

.hero-liens { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-liens a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-bouton);
  border: 1.5px solid rgba(241,238,231,.32); color: var(--sur-marine);
  text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.hero-liens a:hover { border-color: var(--sable); color: var(--sable-vif); }
.hero-liens a.plein { background: var(--action); border-color: var(--action); color: #FFFFFF; }
.hero-liens a.plein:hover { background: var(--action-vive); border-color: var(--action-vive); color: #FFFFFF; }
.hero.niv-district .hero-liens a { border-color: rgba(35,25,10,.3); color: var(--sur-sable); }
.hero.niv-district .hero-liens a:hover { border-color: var(--marine); color: var(--marine); }

/* ---------------------------------------------------- carte réponse */

.carte-reponse {
  background: var(--blanc);
  color: var(--encre);
  border-radius: 20px;
  box-shadow: var(--ombre-forte);
  overflow: hidden;
}
.cr-tete {
  background: linear-gradient(120deg, var(--sable-vif), var(--district));
  color: var(--sur-sable);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.cr-tete strong { font-family: "Archivo Black", sans-serif; font-size: 16px; letter-spacing: -.01em; }
.cr-tete span { font-size: 13px; font-weight: 600; }
.cr-tete .choix-as { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0; }
.cr-tete select {
  border: 1px solid rgba(35,25,10,.3); background: rgba(255,255,255,.55); color: var(--sur-sable);
  border-radius: 8px; padding: 5px 8px; font-size: 13px; font-weight: 600;
}

.cr-corps { padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.si-present { display: flex; flex-direction: column; gap: 22px; }
.champ { display: flex; flex-direction: column; gap: 10px; }
.champ .lib { font-size: 13.5px; font-weight: 700; color: var(--encre-2); letter-spacing: .02em; }
.champ .oblig { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--departement); margin-left: 4px; }
.champ .aide-champ { font-size: 13px; color: var(--encre-2); margin-top: -4px; }
.duo-champs { display: flex; gap: 20px; flex-wrap: wrap; }
.duo-champs > .champ { flex: 1 1 200px; }
.choix { display: flex; gap: 9px; flex-wrap: wrap; position: relative; }

/* un bouton de choix est l'étiquette d'une case radio : sans script, ça reste une case */
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt {
  font-size: 15px; font-weight: 600;
  padding: 11px 18px;
  border: 1.5px solid var(--trait);
  background: var(--blanc); color: var(--encre);
  border-radius: var(--r-bouton);
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.opt:hover { border-color: var(--action); color: var(--action); }
.choix input:checked + .opt { background: var(--marine); border-color: var(--marine); color: var(--sur-marine); }
.choix input:focus-visible + .opt { outline: 3px solid var(--action); outline-offset: 3px; }

.compteur {
  display: flex; align-items: stretch; width: max-content;
  border: 1.5px solid var(--trait); border-radius: var(--r-bouton); overflow: hidden;
}
.compteur button { border: 0; background: transparent; color: var(--encre); font-size: 21px; width: 44px; cursor: pointer; }
.compteur button:hover { background: var(--gris-doux); }
.compteur input {
  width: 68px; border: 0; background: transparent; color: var(--encre); text-align: center;
  font-family: "Archivo Black", sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; padding: 9px 0;
  -moz-appearance: textfield; appearance: textfield;
}
.compteur input::-webkit-outer-spin-button, .compteur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.compteur input:focus { outline: none; background: var(--gris-doux); }

.entree {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--trait); border-radius: var(--r-bouton);
  background: var(--blanc); color: var(--encre); font-size: 15.5px;
}
.entree:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(30,127,224,.18); }
textarea.entree { resize: vertical; min-height: 84px; }

.envoyer {
  width: 100%;
  background: var(--action); color: #FFFFFF;
  border: 0; border-radius: var(--r-bouton);
  padding: 16px 24px; font-size: 16.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(30,127,224,.9);
  transition: background .14s, transform .14s;
  text-decoration: none; text-align: center; display: block;
}
.envoyer:hover { background: var(--action-vive); }
.envoyer:active { transform: translateY(1px); }
.envoyer.ligne { width: auto; display: inline-block; padding: 12px 20px; font-size: 15px; }
.cr-pied { font-size: 13.5px; color: var(--encre-2); text-align: center; }
.cr-pied a { color: var(--action); font-weight: 600; text-decoration: none; }
.cr-pied a:hover { text-decoration: underline; }

.cr-merci { padding: 32px 24px 28px; text-align: center; }
.cr-merci .rond {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--fait-fond); color: var(--fait);
  display: grid; place-items: center; font-size: 27px; font-weight: 700;
}
.cr-merci .rond.gris { background: var(--neutre-fond); color: var(--encre-2); }
.cr-merci h3 { font-family: "Archivo Black", sans-serif; font-size: 21px; letter-spacing: -.02em; }
.cr-merci p { margin-top: 8px; color: var(--encre-2); font-size: 15px; }
.relien {
  display: inline-block; margin-top: 18px; background: none; border: 1.5px solid var(--trait);
  border-radius: var(--r-bouton); padding: 11px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--encre); cursor: pointer; text-decoration: none;
}
.relien:hover { border-color: var(--action); color: var(--action); }

/* ============================================================ messages */

.message { padding: 12px 16px; border-radius: var(--r-bouton); font-size: 15px; }
.message.succes { background: var(--fait-fond); color: var(--st-bon); }
.message.erreur { background: var(--manque-fond); color: var(--manque); }
.message.avertissement { background: var(--creme); color: var(--sable-encre); border: 1px solid var(--creme-trait); }
.message b { color: var(--encre); }

/* ============================================================ bandes */

.bande-suivi { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.suivi-int { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 18px; }
.suivi-fait { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.suivi-fait .coche {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--fait-fond); color: var(--fait);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.suivi-fait .coche.gris { background: var(--neutre-fond); color: var(--encre-2); }
.suivi-fait b { font-weight: 700; }
.suivi-fait a { text-decoration: none; }
.suivi-fait a:hover { text-decoration: underline; }
.suivi-fait span { color: var(--encre-2); }
.suivi-lien {
  margin-left: auto; font-size: 14.5px; font-weight: 600; color: var(--action);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.suivi-lien:hover { border-bottom-color: var(--action); }

/* bande crème sous un en-tête : la note d'un événement */
.bande-note { background: var(--creme); border-bottom: 1px solid var(--creme-trait); color: var(--encre); }
.bande-note .large { padding-block: 16px; font-size: 15px; display: flex; gap: 14px; align-items: flex-start; }
.bande-note b { color: var(--sable-encre); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: 3px; }

/* ============================================================ calendrier */

.legende { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--encre-2); margin-bottom: 26px; }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.puce { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.p-district { background: var(--district); }
.p-departemental { background: var(--departement); }
.p-academique { background: var(--academie); }
.p-national { background: var(--national); }

/* les cinq échelles du calendrier : une bande de panneaux biseautés posée sur le bas du hero.
   Tout, district, département, académie, national, chacun dans sa couleur, un clic par échelle */
.zone-calendrier { padding-top: 0; }
.echelles {
  position: relative; z-index: 2; margin-top: -38px;
  display: flex;
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--ombre-forte);
}
.echelle {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 24px 14px 18px;
  color: #FFFFFF; text-decoration: none; text-align: center;
  transition: filter .14s;
}
.echelle + .echelle { margin-left: -22px; padding-left: 30px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); }
.echelle::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.075) 0 1px, transparent 1px 16px);
}
.echelle > * { position: relative; }
.ech-tout { background: linear-gradient(135deg, var(--marine) 0%, var(--marine-nuit) 100%); }
.ech-district { background: linear-gradient(135deg, #E0BB78 0%, #B4823A 100%); color: var(--sur-sable); }
.ech-district::before { background: repeating-linear-gradient(60deg, rgba(35,25,10,.07) 0 1px, transparent 1px 16px); }
.ech-departemental { background: linear-gradient(135deg, #E3573F 0%, #A6220F 100%); }
.ech-academique { background: linear-gradient(135deg, #8E4CBE 0%, #4B1F6E 100%); }
.ech-national { background: linear-gradient(135deg, #2457B8 0%, #072A6B 100%); }
.echelle svg {
  width: 34px; height: 34px;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.ech-lib { font-family: "Archivo Black", sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.ech-nb { font-size: 12.5px; font-weight: 600; opacity: .78; }
.echelle::after { content: ""; position: relative; width: 28px; height: 3px; border-radius: 2px; background: transparent; margin-top: 2px; }
.echelle.actif::after { background: var(--sable); }
.ech-district.actif::after { background: var(--marine); }
.echelle:hover { filter: brightness(1.08); }
.echelles.filtree .echelle:not(.actif) { filter: brightness(.7) saturate(.8); }
.echelles.filtree .echelle:not(.actif):hover { filter: brightness(.9); }
@media (max-width: 900px) {
  .echelle { padding: 20px 10px 16px; }
  .echelle + .echelle { padding-left: 24px; }
  .ech-lib { font-size: 12px; }
  .ech-nb { font-size: 12px; }
  .echelle svg { width: 28px; height: 28px; }
}

/* la recherche du calendrier, même champ que l'annuaire */
.recherche-cal {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px; align-items: center;
  margin: 28px 0 36px;
}
.recherche-cal .recherche-champ input { background: var(--blanc); }
#vide-calendrier { margin-bottom: 24px; }
.bilan-cal { text-align: center; margin-top: 34px; font-size: 14.5px; }

/* ============================================================ le récap d'une AS */

/* la bascule des deux pages reprend les panneaux biseautés du calendrier, à deux au lieu de cinq */
.zone-mon-as { padding-top: 0; }
.bascule-as { margin-bottom: 54px; }
.ech-inscriptions { background: linear-gradient(135deg, var(--marine) 0%, var(--marine-nuit) 100%); }
.ech-historique { background: linear-gradient(135deg, #5C6884 0%, #2E374A 100%); }

.bloc-as + .bloc-as { margin-top: 66px; }
.bloc-as .suite { margin-top: 26px; }
.bloc-as .mois-bloc:first-of-type { margin-top: 26px; }

.repli-as { border-top: 1px solid var(--trait); }
.repli-as > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none; cursor: pointer; padding: 18px 2px;
  font-size: 15.5px; font-weight: 600; color: var(--encre-2);
}
.repli-as > summary::-webkit-details-marker { display: none; }
.repli-as > summary:hover { color: var(--action); }
.repli-as > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.chev-repli {
  width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .16s;
}
.repli-as[open] .chev-repli { transform: rotate(-135deg) translate(-2px, -2px); }
.repli-mot { font-size: 14.5px; color: var(--encre-2); max-width: 62ch; }

.bilan-as { text-align: center; margin-top: 44px; font-size: 14.5px; }

.vitrine { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.rencontre {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  overflow: hidden;
  box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.rc-visuel {
  position: relative;
  aspect-ratio: 16 / 8;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 20px;
  color: #FFFFFF;
  background:
    repeating-linear-gradient(60deg, rgba(255,255,255,.09) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.09) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #0B3A8F, #00133A);
}
.rc-visuel.niv-district {
  color: var(--sur-sable);
  background:
    repeating-linear-gradient(60deg, rgba(35,25,10,.08) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-60deg, rgba(35,25,10,.08) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #EBD3A8, #B99253);
}
.rc-visuel.niv-district .ico-vignette { color: var(--sur-sable); opacity: .2; }
.rc-visuel.niv-district .rc-niveau { background: rgba(35,25,10,.14); border-color: rgba(35,25,10,.3); }
.rc-visuel.niv-departemental { background:
    repeating-linear-gradient(60deg, rgba(255,255,255,.10) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.10) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #E3573F, #8E1E10); }
.rc-visuel.niv-academique { background:
    repeating-linear-gradient(60deg, rgba(255,255,255,.10) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.10) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #8E4CBE, #3E1259); }

.rc-date { line-height: .95; }
.rc-date .j { font-family: "Archivo Black", sans-serif; font-size: 52px; letter-spacing: -.05em; }
.rc-date .m { font-size: 14px; font-weight: 700; letter-spacing: .1em; opacity: .9; text-transform: uppercase; }
.rc-niveau {
  align-self: flex-start; margin-left: auto;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px; padding: 5px 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.rc-corps { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rc-corps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.rc-corps h3 a { text-decoration: none; }
.rc-corps h3 a:hover { color: var(--action); }
.rc-lieu { font-size: 15px; color: var(--encre-2); }
.rc-pied {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--trait);
}
.rc-action {
  margin-left: auto; background: none; border: 0; padding: 0;
  font-size: 14.5px; font-weight: 700; color: var(--action); cursor: pointer;
  border-bottom: 2px solid transparent; text-decoration: none;
}
.rc-action:hover { border-bottom-color: var(--action); }

/* pastilles d'état : couleurs d'avancement, distinctes des couleurs de niveau, toujours avec un libellé */
.etat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.e-inscriptions_ouvertes { background: var(--fait-fond); color: var(--fait); }
.e-cars_commandes { background: var(--manque-fond); color: var(--manque); }
.e-a_venir { background: var(--neutre-fond); color: var(--encre-2); }
.e-en_cours { background: var(--marine); color: var(--sur-marine); }
.e-resultats_attendus { background: var(--creme); color: var(--sable-encre); }
.e-clos { background: var(--neutre-fond); color: var(--encre-2); }
.e-annule { background: var(--neutre-fond); color: var(--manque); }
.e-repondu { background: var(--fait-fond); color: var(--fait); }
.e-absent { background: var(--neutre-fond); color: var(--encre-2); }
.e-a_repondre { background: var(--action); color: #FFFFFF; }
.e-info { background: var(--neutre-fond); color: var(--academie); }

/* la suite du calendrier, en liste sobre */
.suite { margin-top: 34px; border-top: 1px solid var(--trait); }
.suite-ligne {
  position: relative;
  display: grid; grid-template-columns: 230px minmax(0, 1fr) auto auto;
  gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--trait);
}
.suite-ligne .quand { font-size: 15px; font-weight: 700; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.suite-ligne .quoi { font-size: 16.5px; font-weight: 600; }
.suite-ligne .quoi a { text-decoration: none; }
.suite-ligne .quoi a::after { content: ""; position: absolute; inset: 0; } /* toute la ligne mène à l'événement */
.suite-ligne:hover .quoi a { color: var(--action); }
.suite-ligne .quoi small { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 400; color: var(--encre-2); }
.suite-ligne .repere { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; opacity: .9; }
.suite-ligne .etat { position: relative; z-index: 1; }
.suite-ligne.passe { opacity: .5; }
.suite-ligne.annule .quoi a { text-decoration: line-through; }
.barre-niveau { width: 4px; height: 34px; border-radius: 2px; flex-shrink: 0; background: var(--national); }
.barre-niveau.niv-district { background: var(--district); }
.barre-niveau.niv-departemental { background: var(--departement); }
.barre-niveau.niv-academique { background: var(--academie); }
.suite-gauche { display: flex; align-items: center; gap: 14px; }
.chevron { width: 22px; height: 22px; color: var(--trait-fort); }
.chevron svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.suite-ligne:hover .chevron { color: var(--action); }
@media (max-width: 620px) {
  .suite-ligne { grid-template-columns: 1fr; gap: 8px; }
  .chevron { display: none; }
}

/* le calendrier complet : un mois, c'est un titre qui file jusqu'au bord et une carte de lignes */
.mois-bloc + .mois-bloc { margin-top: 34px; }
.mois-titre {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 14px;
  font-family: "Archivo Black", sans-serif; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
}
.mois-titre::after { content: ""; flex: 1; height: 1px; background: var(--trait-fort); }
.mois-nb {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Archivo", sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--action);
}
.mois-nb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mois-carte {
  margin-top: 0; border-top: 0;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-carte);
  box-shadow: var(--ombre); overflow: hidden;
}
.mois-carte .suite-ligne { padding: 14px 18px 14px 0; }
.mois-carte .suite-ligne:last-child { border-bottom: 0; }
.mois-carte .suite-ligne:hover { background: var(--fond); }
.mois-carte .barre-niveau { position: absolute; left: 0; top: 0; bottom: 0; height: auto; border-radius: 0; }
.mois-carte .suite-gauche { padding-left: 18px; }

/* ============================================================ district */

.sante { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 26px; }
.tuile {
  border-radius: var(--r-carte);
  padding: 22px 24px 20px;
  color: #FFFFFF;
  display: flex; flex-direction: column; gap: 4px;
}
.tuile.bon     { background: var(--st-bon); }
.tuile.attente { background: var(--st-attente); }
.tuile.bloque  { background: var(--st-bloque); }
.tuile.marine  { background: var(--st-marine); }
.tuile-etat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.tuile-etat .signe {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.24);
  display: grid; place-items: center; font-size: 11px;
}
.tuile-n {
  font-family: "Archivo Black", sans-serif; font-size: 44px; line-height: .9;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.tuile-n span { font-size: 20px; opacity: .8; }
.tuile-l { font-size: 14.5px; opacity: .92; }
.tuile-jauge { margin-top: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.tuile-jauge i { display: block; height: 100%; border-radius: 3px; background: #FFFFFF; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 940px) { .duo { grid-template-columns: 1fr; } }

.panneau {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre);
  padding: 28px;
}
.panneau h3 { font-family: "Archivo Black", sans-serif; font-size: 22px; letter-spacing: -.02em; }
.panneau h3 a { text-decoration: none; }
.panneau h3 a:hover { color: var(--action); }
.panneau .contexte { font-size: 14.5px; color: var(--encre-2); margin-top: 4px; }
.panneau + .panneau, .panneau-alerte + .panneau { margin-top: 26px; }

.jauge { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.jauge .gros { font-family: "Archivo Black", sans-serif; font-size: 62px; line-height: .82; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.jauge .sur { font-size: 17px; font-weight: 600; color: var(--encre-2); }

.rail { display: flex; gap: 4px; margin: 20px 0 22px; }
.rail i { flex: 1; height: 12px; border-radius: 3px; background: var(--gris-doux); }
.rail i.ok { background: var(--fait); }
.rail i.non { background: var(--trait-fort); }

.etabs { list-style: none; margin: 0; padding: 0; }
.etabs li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 15px;
}
.etabs li:last-child { border-bottom: 0; }
.etabs .marque { width: 20px; text-align: center; font-weight: 700; flex-shrink: 0; color: var(--fait); }
.etabs li.absent { color: var(--encre-2); }
.etabs li.absent .marque { color: var(--encre-2); }
.etabs li.attente { color: var(--manque); font-weight: 600; }
.etabs li.attente .marque { color: var(--manque); }
.etabs li.tien { font-weight: 700; }
.etabs .note { margin-left: auto; font-size: 13.5px; font-weight: 400; color: var(--encre-2); text-align: right; }
.etabs .note a { color: var(--action); text-decoration: none; font-weight: 600; }
.etabs .note a:hover { text-decoration: underline; }

.bouton-plein {
  display: block; margin-top: 22px; width: 100%;
  background: var(--marine); color: var(--sur-marine);
  border: 0; border-radius: var(--r-bouton);
  padding: 14px 18px; font-size: 15.5px; font-weight: 700; cursor: pointer;
  transition: background .14s; text-decoration: none; text-align: center;
}
.bouton-plein:hover { background: var(--marine-clair); }

.panneau-alerte {
  background: var(--creme);
  border: 1px solid var(--creme-trait);
  border-radius: var(--r-carte);
  padding: 28px;
  box-shadow: var(--ombre);
}
.marqueur-urgent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--departement); color: #FFFFFF;
  border-radius: 999px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.marqueur-urgent.doux { background: var(--sable-encre); }
.panneau-alerte h3 { font-family: "Archivo Black", sans-serif; font-size: 22px; letter-spacing: -.02em; color: var(--encre); }
.panneau-alerte p { font-size: 15px; color: var(--encre); margin-top: 6px; }
.tableau-cadre { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; color: var(--encre); }
.tableau th {
  text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sable-encre); padding: 0 10px 8px 0; border-bottom: 1px solid var(--creme-trait);
}
.tableau td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--creme-trait); vertical-align: top; }
.tableau td.n, .tableau th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tableau td.n { font-weight: 700; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tfoot th { border-bottom: 0; border-top: 2px solid var(--creme-trait); padding-top: 10px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--encre); }
.panneau .tableau th { color: var(--encre-2); border-bottom-color: var(--trait); }
.panneau .tableau td { border-bottom-color: var(--trait); }
.panneau .tableau tr.attente td { color: var(--encre-2); }
.panneau .tableau tfoot th { border-top-color: var(--trait); }
.tableau .commentaire { max-width: 260px; font-size: 14px; color: var(--encre-2); }
.tableau a { color: var(--action); font-weight: 600; text-decoration: none; }
.tableau a:hover { text-decoration: underline; }

.ensuite { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--creme-trait); }
.panneau .ensuite { border-top-color: var(--trait); }
.ensuite:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ensuite h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sable-encre); margin-bottom: 12px;
}
.ensuite ul { list-style: none; margin: 0; padding: 0; }
.ensuite li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 9px 0; font-size: 15px; color: var(--encre);
}
.ensuite li + li { border-top: 1px solid var(--creme-trait); }
.panneau .ensuite li + li { border-top-color: var(--trait); }
.ensuite .jour { font-weight: 700; color: var(--sable-encre); flex-shrink: 0; width: 84px; }
.ensuite .jour.passe { color: var(--manque); }
.ensuite a { text-decoration: none; }
.ensuite a:hover { color: var(--action); }
.ensuite small { display: block; color: var(--encre-2); font-size: 13.5px; }

/* ============================================================ contacts */

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.contact {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre);
  padding: 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.contact.vedette { border-color: var(--sable); border-width: 2px; }
.contact .role { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sable-encre); margin-bottom: 8px; }
.contact h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.contact .quoi { font-size: 15px; color: var(--encre-2); }
.contact .voie {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait);
  display: flex; flex-direction: column; gap: 10px;
}
.contact .voie a {
  font-size: 15px; font-weight: 600; color: var(--action);
  text-decoration: none; width: max-content; max-width: 100%;
  border-bottom: 2px solid transparent;
}
.contact .voie a:hover { border-bottom-color: var(--action); }
.contact .voie .delai { font-size: 13.5px; color: var(--encre-2); }

/* ============================================================ annuaire */

.hero-court .hero-int { padding-block: 56px 60px; }
.hero-court h1 { font-size: clamp(38px, 5.6vw, 72px); }

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

/* la barre de recherche reste sous la barre du haut pendant qu'on descend */
.bande-recherche {
  position: sticky; top: 72px; z-index: 40;
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 12px 30px -24px rgba(16,21,33,.5);
}
.recherche {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 12px; align-items: center;
  padding-block: 14px;
}
.recherche-champ { position: relative; display: block; }
.recherche-champ svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--encre-2); pointer-events: none;
}
.recherche-champ input {
  width: 100%; padding: 12px 14px 12px 44px;
  border: 1.5px solid var(--trait); border-radius: var(--r-bouton);
  background: var(--fond); color: var(--encre); font-size: 16px;
}
.recherche-champ input:focus { outline: none; border-color: var(--action); background: var(--blanc); box-shadow: 0 0 0 3px rgba(30,127,224,.18); }
.recherche-champ input::-webkit-search-cancel-button { -webkit-appearance: none; }
.recherche select.entree { width: auto; max-width: 220px; padding-block: 11px; background: var(--fond); }
.recherche-ok {
  background: var(--marine); color: var(--sur-marine);
  border: 0; border-radius: var(--r-bouton);
  padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.recherche-ok:hover { background: var(--marine-clair); }
.recherche-raz { font-size: 14.5px; font-weight: 600; color: var(--action); text-decoration: none; white-space: nowrap; }
.recherche-raz:hover { text-decoration: underline; }
.js .recherche-ok { display: none; }

.zone-annuaire { padding-block: 40px 84px; }

/* aller droit à son collège */
.acces { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acces-lib { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sable-encre); margin-right: 6px; }
.chip {
  display: inline-block; padding: 6px 13px;
  border: 1.5px solid var(--trait); border-radius: 999px;
  background: var(--blanc); color: var(--encre);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: border-color .14s, color .14s, opacity .14s;
}
.chip:hover { border-color: var(--action); color: var(--action); }
.chip.tien { background: var(--marine); border-color: var(--marine); color: var(--sur-marine); }
.chip.tien:hover { background: var(--marine-clair); }
.chip.hors { opacity: .35; }

.bilan-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 16px; }
.bilan { font-size: 15px; color: var(--encre-2); }
.legende-statuts { display: inline-flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--encre-2); }
.legende-statuts .statut + .statut { margin-left: 10px; }
#vide { margin-bottom: 20px; }

.fiches { display: flex; flex-direction: column; gap: 22px; }

.fiche {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre);
  scroll-margin-top: 150px;
}
.fiche.tien { border: 2px solid var(--sable); }
.fiche-tete {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px; align-items: start;
  padding: 22px 26px 20px;
  border-bottom: 1px solid var(--trait);
}
.ecu-as {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(145deg, var(--marine-clair), var(--marine-nuit));
  color: var(--sur-marine); display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif; font-size: 18px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(214,185,146,.35);
}
.fiche.tien .ecu-as { background: linear-gradient(145deg, var(--sable-vif), var(--district)); color: var(--sur-sable); }
.fiche-titre h2 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tien-lib {
  font-family: "Archivo", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sable); color: var(--sur-sable); border-radius: 999px; padding: 3px 10px;
}
.fiche-sous { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sable-encre); margin-top: 3px; }
.fiche-adresse { font-size: 15px; color: var(--encre-2); margin-top: 6px; }
.fiche-adresse a { color: var(--action); font-weight: 600; text-decoration: none; }
.fiche-adresse a:hover { text-decoration: underline; }
.fiche-marques { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.numero-as {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  background: var(--gris-doux); color: var(--encre-2);
  border-radius: 8px; padding: 5px 10px;
}

.fiche-corps { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.fiche-bloc { padding: 20px 26px 24px; }
.fiche-bloc + .fiche-bloc { border-left: 1px solid var(--trait); }
.fiche-bloc h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sable-encre); margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.fiche-bloc h3 small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--encre-2); }
.fiche-vide { font-size: 14px; color: var(--encre-2); font-style: italic; }

.installations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.installations li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--sable); font-size: 14.5px; }
.installations b { font-weight: 700; }
.installations span { color: var(--encre-2); font-size: 13.5px; }
.installations i { font-style: normal; font-weight: 700; color: var(--marine); font-size: 13.5px; }

.collegues { list-style: none; margin: 0; padding: 0; }
.collegue {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 290px;
  gap: 6px 22px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--trait);
  font-size: 15px;
  transition: opacity .14s;
}
.collegue:last-child { border-bottom: 0; padding-bottom: 0; }
.collegue:first-child { padding-top: 0; }
.collegue.hors { opacity: .32; }
.collegue.moi .qui b { color: var(--marine); }
.collegue .qui { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.collegue .qui b { font-weight: 700; }
.collegue .qui .nom { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.note-collegue { font-size: 12.5px; color: var(--encre-2); font-style: italic; }
.collegue .quoi { color: var(--encre-2); font-size: 14.5px; }
.collegue .joindre { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; text-align: right; }
.collegue .joindre a { color: var(--action); text-decoration: none; font-weight: 600; word-break: break-all; }
.collegue .joindre a:hover { text-decoration: underline; }

.statut {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--sur-sable);
  flex-shrink: 0; position: relative; top: -1px;
}
.statut-t { background: var(--statut-t); }
.statut-s { background: var(--statut-s); }

.note-annuaire { margin-top: 30px; font-size: 14.5px; color: var(--encre-2); max-width: 70ch; }
.note-annuaire a { color: var(--action); font-weight: 600; text-decoration: none; }
.note-annuaire a:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .recherche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .recherche-champ { grid-column: 1 / -1; }
  .recherche select.entree { max-width: none; width: 100%; }
  .recherche-ok, .recherche-raz { grid-column: 1 / -1; justify-self: start; }
  .fiche-corps { grid-template-columns: 1fr; }
  .fiche-bloc + .fiche-bloc { border-left: 0; border-top: 1px solid var(--trait); }
}
@media (max-width: 900px) {
  .bande-recherche { top: 62px; }
}
@media (max-width: 620px) {
  .zone-annuaire { padding-block: 26px 52px; }
  .fiche-tete { grid-template-columns: auto minmax(0, 1fr); padding: 18px 18px 16px; }
  .fiche-marques { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .fiche-titre h2 { font-size: 20px; }
  .fiche-bloc { padding: 16px 18px 20px; }
  .collegue { grid-template-columns: 1fr; gap: 3px; }
  .collegue .joindre { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .fiche { scroll-margin-top: 200px; }
}

/* ============================================================ chiffres */

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; }
.chiffre .v {
  font-family: "Archivo Black", sans-serif; font-size: 54px; line-height: .9;
  letter-spacing: -.045em; color: var(--sable); font-variant-numeric: tabular-nums;
}
.chiffre .l { font-size: 15px; margin-top: 10px; color: rgba(241,238,231,.78); max-width: 22ch; }

/* ============================================================ pied */

footer.pied { background: var(--marine-nuit); color: var(--sur-marine); }
.pied-int {
  display: flex; gap: 56px; flex-wrap: wrap;
  padding-block: 44px 52px;
  border-top: 1px solid rgba(241,238,231,.14);
}
.pied-col { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.pied-col b { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--sable); margin-bottom: 5px; }
.pied-col a { text-decoration: none; opacity: .8; width: max-content; }
.pied-col a:hover { opacity: 1; color: var(--sable-vif); }
.pied-col button { background: none; border: 0; padding: 0; color: inherit; opacity: .8; cursor: pointer; text-align: left; font-size: 15px; }
.pied-col button:hover { opacity: 1; color: var(--sable-vif); }
.signature { margin-left: auto; max-width: 26ch; font-size: 14.5px; opacity: .72; }

/* ============================================================ pictogrammes */

.ico-vignette, .ico-liste svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-vignette {
  position: absolute; right: 16px; top: 50%; transform: translateY(-58%);
  width: 122px; height: 122px; color: #FFFFFF; opacity: .26; pointer-events: none;
}
.ico-liste {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: var(--gris-doux); color: var(--marine);
  display: grid; place-items: center;
}
.ico-liste svg { width: 26px; height: 26px; }
/* dans une liste, le carré prend la couleur de l'échelle */
.ico-liste.niv-district { background: var(--district); color: #FFFFFF; }
.ico-liste.niv-departemental { background: var(--departement); color: #FFFFFF; }
.ico-liste.niv-academique { background: var(--academie); color: #FFFFFF; }
.ico-liste.niv-national { background: var(--national); color: #FFFFFF; }

/* ============================================================ retour en haut */

.haut {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--marine); color: var(--sur-marine);
  border: 1px solid rgba(214,185,146,.4);
  box-shadow: 0 10px 30px -10px rgba(0,20,58,.7);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s, transform .2s, background .14s;
}
.haut.vu { opacity: 1; transform: none; pointer-events: auto; }
.haut:hover { background: var(--marine-clair); }
.haut svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .haut { right: 16px; bottom: 16px; } }

/* ============================================================ formulaires pleine page */

.formulaire-page { max-width: 760px; margin: 0 auto; }
.formulaire-page .cr-corps { padding: 32px; gap: 24px; }
.formulaire-page h1 { font-family: "Archivo Black", sans-serif; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.formulaire-page .intro { color: var(--encre-2); font-size: 15.5px; margin-top: -8px; }
.groupe { border: 0; padding: 20px; margin: 0; background: var(--fond); border-radius: 12px; display: flex; flex-direction: column; gap: 18px; }
.groupe legend { float: left; width: 100%; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-encre); padding: 0; margin-bottom: 4px; }
.lien-discret { font-size: 14px; color: var(--encre-2); }
.lien-discret a { color: var(--action); text-decoration: none; font-weight: 600; }
.lien-discret a:hover { text-decoration: underline; }
.centre { text-align: center; }

/* la convocation sportive : cases à cocher des choses à prévoir, et le logo de l'AS */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.coche {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: var(--r-bouton); background: var(--blanc);
  font-size: 14.5px; font-weight: 600; transition: border-color .14s, background .14s;
}
.coche:hover { border-color: var(--action); }
.coche input { width: 18px; height: 18px; margin: 0; accent-color: var(--marine); }
.coche:has(input:checked) { background: var(--marine); border-color: var(--marine); color: var(--sur-marine); }
.logo-ligne { display: flex; gap: 18px; align-items: flex-start; }
.logo-ligne > .champ { flex: 1; }
.logo-apercu {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--blanc); border: 1.5px solid var(--trait);
  display: grid; place-items: center; font-family: "Archivo Black", sans-serif; font-size: 22px; color: var(--marine);
}
.logo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.envoyer.secondaire { background: var(--blanc); color: var(--marine); border: 1.5px solid var(--marine); box-shadow: none; }
.envoyer.secondaire:hover { background: var(--marine); color: var(--sur-marine); }
.relien.plein { background: var(--marine); border-color: var(--marine); color: var(--sur-marine); margin-right: 8px; }
.relien.plein:hover { background: var(--marine-clair); border-color: var(--marine-clair); color: var(--sur-marine); }

/* hors connexion : la page entière prend le fond du hero */
body.hors-connexion { background: var(--trame), radial-gradient(120% 120% at 78% 8%, var(--marine-clair) 0%, var(--marine) 42%, var(--marine-nuit) 100%); color: var(--sur-marine); }
body.hors-connexion .barre { box-shadow: none; background: transparent; position: static; }
body.hors-connexion > main { display: grid; place-items: center; padding: 40px 20px 80px; }
body.hors-connexion .carte-reponse { width: 100%; max-width: 440px; }
body.hors-connexion h1 { font-family: "Archivo Black", sans-serif; font-size: 26px; letter-spacing: -.02em; }
body.hors-connexion .intro { color: var(--encre-2); font-size: 15px; margin-top: -10px; }
body.hors-connexion footer.pied { background: transparent; }
body.hors-connexion .pied-int { border-top-color: rgba(241,238,231,.1); padding-block: 24px 32px; justify-content: center; }

/* ============================================================ mobile */

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .large { padding-inline: 18px; }
  .zone { padding-block: 52px; }
  .zone-courte { padding-block: 40px; }
  .tete-zone { margin-bottom: 28px; }
  .sous-titre { font-size: 16px; }

  .hero-int, .hero-int.large-droite { padding-block: 40px 48px; gap: 30px; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-quand { font-size: 16.5px; }
  .hero-faits { gap: 18px 22px; }
  .fait-hero .v { font-size: 25px; }

  .cr-corps, .formulaire-page .cr-corps { padding: 20px; gap: 18px; }
  .duo-champs { gap: 16px; }
  .groupe { padding: 16px; }

  .suivi-int { padding-block: 14px; gap: 12px; }
  .suivi-lien { margin-left: 0; }

  .echelles { display: grid; grid-template-columns: 1fr 1fr; margin-top: -26px; }
  .ech-tout { grid-column: 1 / -1; }
  .echelle, .echelle + .echelle { margin-left: 0; padding: 16px 10px 12px; clip-path: none; }
  .echelle svg { width: 24px; height: 24px; }
  .recherche-cal { grid-template-columns: 1fr; margin: 22px 0 28px; }
  .recherche-cal .recherche-raz { justify-self: start; }
  .mois-carte .suite-ligne { padding: 14px 16px 14px 0; }
  .mois-carte .suite-gauche { padding-left: 16px; }
  .mois-carte .quoi { padding-left: 16px; }
  .mois-carte .etat { margin-left: 16px; }

  .panneau, .panneau-alerte { padding: 22px 20px; }
  .jauge .gros { font-size: 48px; }
  .tableau { min-width: 340px; }
  .titre-zone { font-size: 28px; }
  .chiffre .v { font-size: 42px; }
  .pied-int { gap: 30px; padding-block: 34px 40px; }
  .signature { margin-left: 0; }
}

/* ------------------------------------------------------------------ les engagements de district
   La grille que chaque AS remplit, et la vue du coordonnateur. Un tableau large qui défile dans son
   propre cadre plutôt que de pousser la page : sur téléphone, la colonne des activités reste collée
   à gauche pour qu'on sache toujours quelle ligne on coche. */

.carte-grille, .carte-fin, .bloc-coordo {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre);
  margin-bottom: 24px;
  overflow: hidden;
}
.bloc-coordo { padding: 28px; }
.bloc-coordo h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 21px; letter-spacing: -.02em; margin-bottom: 6px;
}
.bloc-coordo .intro { color: var(--encre-2); font-size: 15px; margin-bottom: 18px; max-width: 70ch; }

.grille-defile { overflow-x: auto; }
.grille-eng { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.grille-eng th, .grille-eng td { border-bottom: 1px solid var(--trait); padding: 10px 12px; text-align: left; }
.grille-eng thead th {
  background: var(--gris-doux);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--encre-2); vertical-align: bottom; white-space: nowrap;
}
.grille-eng .num { font-variant-numeric: tabular-nums; }

.grille-pied { padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.grille-pied .aide { flex: 1 1 320px; font-size: 13.5px; color: var(--encre-2); margin: 0; }

/* --- S'engager dans une activité : les tuiles, le panneau, le récapitulatif ---------------------
   Porté sur la maquette de Cédric du 10 septembre 2026. Les tuiles sont des liens, le panneau est
   rendu par le serveur d'après l'URL : tout marche sans script. */

.titre-section {
  font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: -.02em;
  margin: 8px 0 16px;
}

.tuiles-activites {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px;
}
.tuile-act {
  position: relative; aspect-ratio: 179 / 102; border-radius: 12px;
  background: var(--marine) center/cover no-repeat;
  border: 2px solid transparent; box-shadow: var(--ombre);
  display: flex; align-items: flex-end;
  overflow: hidden; transition: transform .12s, border-color .12s, box-shadow .12s;
}
/* La photo est assombrie vers le bas, pour que le nom se lise sur n'importe quelle image. */
.tuile-act::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,19,58,.05) 30%, rgba(0,19,58,.72) 100%);
  transition: background .12s;
}
.tuile-act:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.tuile-act:hover::before { background: linear-gradient(180deg, rgba(0,19,58,.15) 30%, rgba(0,19,58,.8) 100%); }
.tuile-act:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.tuile-act.ouverte { border-color: var(--sable); }
/* Une activité déjà engagée : un liseré sable en bas, plus la pastille du nombre. */
.tuile-act.engagee::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sable);
}
.tuile-compte {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--action); color: #FFFFFF;
  font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
/* Le pictogramme dans un disque et le nom, posés en bas à gauche de la photo comme sur la maquette. */
.tuile-etiquette {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; min-width: 0;
}
.tuile-picto {
  flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45);
  fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  backdrop-filter: blur(3px);
}
.tuile-act .tuile-nom {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); line-height: 1.15;
}
/* Une activité sans photo garde le fond de sa famille, avec la même étiquette. */
.tuile-act.f-sport_co { background-color: #14324F; }
.tuile-act.f-individuel { background-color: #3A2140; }

.panneau-act {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-carte);
  box-shadow: var(--ombre); padding: 26px 28px; margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.pa-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pa-tete h3 { font-family: "Archivo Black", sans-serif; font-size: 24px; letter-spacing: -.02em; }
.badge-famille {
  background: var(--creme); border: 1px solid var(--creme-trait); color: var(--sable-encre);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.pa-fermer { margin-left: auto; font-size: 14px; color: var(--encre-2); }
.pa-intro { color: var(--encre-2); font-size: 15px; margin-top: 10px; max-width: 75ch; }

.pa-soustitre { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 22px 0 12px; }
.pa-soustitre h4 { font-size: 16px; font-weight: 700; }
.pa-soustitre span { color: var(--encre-2); font-size: 13.5px; margin-left: auto; }

.cartes-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.carte-cat {
  border: 1.5px solid var(--trait); border-radius: 12px; background: var(--blanc);
  transition: border-color .12s, background .12s;
}
.carte-cat.prise { border-color: var(--action); background: rgba(30,127,224,.05); }
.carte-cat.hors-district { background: var(--fond); }
.carte-cat.hors-district.prise { background: rgba(30,127,224,.05); }
.cc-tete { display: flex; align-items: flex-start; gap: 10px; padding: 14px; cursor: pointer; }
.cc-id { flex: 1; min-width: 0; }
.cc-id b { display: block; font-family: "Archivo Black", sans-serif; font-size: 15px; letter-spacing: -.01em; }
.cc-id strong { display: block; font-size: 13.5px; font-weight: 700; margin-top: 3px; }
.cc-id i { display: block; font-style: normal; font-size: 12px; color: var(--encre-2); margin-top: 2px; }
/* La seule catégorie qui qualifie pour la suite porte un tag sable. */
.cc-qualif {
  display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 20px;
  background: var(--creme); border: 1px solid var(--creme-trait); color: var(--sable-encre);
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.cc-case { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-marque {
  flex: none; width: 22px; height: 22px; border: 2px solid var(--trait-fort); border-radius: 6px;
  background: var(--blanc); transition: background .12s, border-color .12s;
}
.cc-case:checked ~ .cc-marque {
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 L10 17.5 L19 7'/%3E%3C/svg%3E") center/15px no-repeat;
  border-color: var(--action);
}
.cc-case:focus-visible ~ .cc-marque { box-shadow: 0 0 0 3px rgba(30,127,224,.25); }
.cc-case:disabled ~ .cc-marque { background: var(--gris-doux); border-color: var(--trait); cursor: not-allowed; }

.pa-rappel {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--r-bouton);
  background: var(--creme); border: 1px solid var(--creme-trait);
  color: var(--sable-encre); font-size: 14px;
}
/* `.envoyer` est pleine largeur par défaut, ce qui a du sens dans une carte de réponse mais pas
   dans une barre d'actions : ici les deux boutons se rangent à droite, côte à côte. */
.pa-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.pa-actions .secondaire { text-decoration: none; display: inline-block; }
.pa-actions .envoyer { width: auto; display: inline-block; }
.re-fin .envoyer, .re-fin .secondaire { width: auto; display: inline-block; }

.recap-eng {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-carte);
  box-shadow: var(--ombre); padding: 26px 28px;
}
.re-tete { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.re-tete h3 { font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.re-tete span { color: var(--encre-2); font-size: 13.5px; margin-left: auto; }
.re-liste { list-style: none; display: grid; gap: 8px; }
.re-liste li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--fond); border-radius: 10px; padding: 10px 14px;
}
.re-liste li > a { font-weight: 700; }
.re-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.re-cat {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px;
  padding: 2px 10px; font-size: 12.5px; color: var(--encre-2);
}
.re-fin {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--trait);
}
.re-fin p { flex: 1 1 420px; font-size: 15px; color: var(--encre-2); margin: 0; }
.re-fin p strong { color: var(--encre); }

.secondaire {
  border: 1px solid var(--trait-fort); background: var(--blanc); color: var(--encre);
  font: inherit; font-weight: 700; padding: 12px 20px; border-radius: var(--r-bouton); cursor: pointer;
}
.secondaire:hover { background: var(--gris-doux); }

/* La proposition de dates : la date d'abord, les réserves en dernier et en petit. */
.table-propositions .col-date { white-space: nowrap; min-width: 150px; }
.table-propositions th[scope="row"] { font-weight: 700; }
.table-propositions i { display: block; font-style: normal; font-size: 12px; color: var(--encre-2); margin-top: 2px; }
.table-propositions .col-reserves { max-width: 280px; }
.reserve {
  display: block; font-size: 12px; color: var(--sable-encre);
  background: var(--creme); border: 1px solid var(--creme-trait);
  border-radius: 6px; padding: 3px 8px; margin-bottom: 4px;
}
.ligne-sans-date td, .ligne-sans-date th { background: var(--manque-fond); color: var(--manque); }

.liste-as, .liste-ecartees, .liste-categories { list-style: none; display: grid; gap: 8px; }
.liste-as li, .liste-ecartees li, .liste-categories li {
  background: var(--fond); border-radius: 9px; padding: 10px 14px; font-size: 14.5px;
}
.liste-as i, .liste-ecartees i, .liste-categories i {
  font-style: normal; color: var(--encre-2); font-size: 12.5px; display: block; margin-top: 2px;
}
.liste-as { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.detail-activite { border-top: 1px solid var(--trait); padding: 10px 0; }
.detail-activite summary { cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.detail-activite summary span { color: var(--encre-2); font-size: 13.5px; }
.detail-activite .liste-categories { margin: 10px 0 14px; }

.grille-responsables {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 20px;
}

@media (max-width: 900px) {
  .tuiles-activites { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .bloc-coordo, .panneau-act, .recap-eng { padding: 20px; }
  .grille-pied { padding: 18px 20px; }
  .grille-eng th, .grille-eng td { padding: 8px 9px; }
  .tuiles-activites { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cartes-cat { grid-template-columns: repeat(2, 1fr); }
  .pa-actions { justify-content: stretch; }
  .pa-actions .secondaire, .pa-actions .envoyer { flex: 1; text-align: center; }
  .re-cats { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ============================================================ accueil, sur la maquette de Cédric du 10 septembre 2026 */
/* Tout le haut de page est sur le bleu nuit de la maquette : le hero avec son montage d'athlètes et
   sa bande de chiffres, les trois cartes, les accès rapides. Le clair revient avec « Mon AS ». Les
   couleurs sont relevées sur la maquette : le fond, l'or du bouton et des chiffres. */
.accueil-nuit { background: var(--nuit); color: var(--sur-marine); }

.hero-accueil {
  background:
    radial-gradient(60% 90% at 100% 30%, rgba(11,58,143,.5) 0%, rgba(11,58,143,0) 70%),
    linear-gradient(180deg, #011A4F 0%, #01173F 100%);
}
/* Le montage est découpé dans la maquette, avec son propre fond bleu : le masque fond son bord
   gauche dans le hero, et le voile en ::after fond son bas dans la bande de chiffres. */
.hero-montage {
  position: absolute; right: 0; top: 0; bottom: 104px; z-index: 0;
  width: min(66%, 940px); height: calc(100% - 104px); max-height: none;
  object-fit: cover; object-position: left top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%);
  mask-image: linear-gradient(90deg, transparent 0, #000 20%);
}
.hero-accueil::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 80px; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(1,23,63,0) 0%, #01173F 100%);
}
.hero-accueil > .hero-int, .hero-accueil > .large { position: relative; z-index: 1; }
.hero-accueil-int {
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 0; min-height: 560px; align-items: center; padding-block: 56px 40px;
}
.hero-accueil h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: .96; letter-spacing: -.035em; }
.hero-trait { display: block; width: 44px; height: 2px; background: var(--or); margin-top: 22px; }
.hero-accueil .hero-quand { margin-top: 20px; font-size: 16.5px; max-width: 36ch; color: rgba(241,238,231,.82); }
.hero-liens a.or { background: var(--or); border-color: var(--or); color: #1B1300; font-weight: 700; }
.hero-liens a.or:hover { background: var(--or-clair); border-color: var(--or-clair); color: #1B1300; }
.hero-liens a.or span { margin-left: 6px; }

.hero-chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(241,238,231,.14); padding: 22px 0 32px;
}
.hc {
  display: flex; align-items: center; gap: 14px; padding: 6px 24px; min-width: 0;
  border-left: 1px solid rgba(241,238,231,.14);
  font-size: 15px; line-height: 1.3; color: rgba(241,238,231,.9);
}
.hc:first-child { border-left: 0; padding-left: 0; }
.hc svg {
  flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%;
  border: 1px solid rgba(212,171,104,.55); color: var(--or-clair);
  fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
}
.hc b { color: var(--or-clair); font-weight: 800; font-size: 17px; }

/* Les trois cartes sur le bleu nuit : prochaines dates, prochaine échéance, le district. */
.zone-trio { padding-block: 36px 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.carte-nuit {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  padding: 24px 24px 22px; display: flex; flex-direction: column; min-width: 0;
}
.cn-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cn-tete h2, .carte-nuit > h2 { font-size: 18px; font-weight: 700; }
.cn-tete span { font-size: 12.5px; color: rgba(241,238,231,.6); white-space: nowrap; }
.cn-vide, .cn-texte { font-size: 14px; line-height: 1.55; color: rgba(241,238,231,.75); }
.cn-vide a { color: var(--or-clair); }
.cn-texte { margin-bottom: 18px; }
.cn-lien {
  margin-top: auto; display: block; text-align: center; padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--sur-marine);
}
.cn-lien:hover { border-color: var(--or); color: var(--or-clair); }
.chev {
  width: 9px; height: 9px; justify-self: end; flex: none;
  border-right: 1.5px solid rgba(241,238,231,.6); border-bottom: 1.5px solid rgba(241,238,231,.6);
  transform: rotate(-45deg);
}

/* les dates : un bloc de date dans la couleur de l'échelle, comme la seconde maquette */
.rdv { list-style: none; margin: 0 0 16px; padding: 0; }
.rdv-ligne {
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 12px; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.rdv-ligne:first-child { border-top: 0; padding-top: 0; }
.rdv-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 50px; height: 52px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,.08); color: var(--sur-marine);
}
.rdv-date b { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 19px; line-height: 1; }
.rdv-date span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; opacity: .85; }
.rdv-date.niv-district { background: var(--district); color: #FFFFFF; }
.rdv-date.niv-departemental { background: var(--departement); color: #FFFFFF; }
.rdv-date.niv-academique { background: var(--academie); color: #FFFFFF; }
.rdv-date.niv-national { background: var(--marine-clair); color: #FFFFFF; }
.rdv-date.grand { width: 62px; height: 66px; border-radius: 12px; }
.rdv-date.grand b { font-size: 25px; }
.rdv-date.grand span { font-size: 10.5px; }
.rdv-quoi { min-width: 0; }
.rdv-quoi a { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.rdv-quoi a::after { content: ""; position: absolute; inset: 0; } /* toute la ligne mène à l'événement */
.rdv-ligne:hover .rdv-quoi a { color: var(--or-clair); }
.rdv-quoi small { display: block; font-size: 12px; color: rgba(241,238,231,.62); margin-top: 2px; }
.rdv-ligne .etat { position: relative; z-index: 1; font-size: 11.5px; padding: 4px 10px; }

/* la prochaine échéance : un en-tête d'or, puis la date en grand et l'encart d'état */
.carte-echeance { padding: 0; overflow: hidden; }
.ce-tete {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(120deg, var(--or-clair), var(--or) 60%, #B8894A); color: #1B1300;
  padding: 18px 24px;
}
.ce-tete b { display: block; font-size: 17px; font-weight: 700; }
.ce-tete span { display: block; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.ce-tete svg { flex: none; width: 40px; height: 40px; opacity: .55; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ce-vide { padding: 24px; }
.ce-corps { padding: 22px 24px 8px; display: flex; flex-direction: column; gap: 14px; }
.ce-quoi { display: flex; align-items: center; gap: 16px; }
.ce-quoi h3 { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.ce-quoi h3 a { text-decoration: none; }
.ce-quoi h3 a:hover { color: var(--or-clair); }
.ce-infos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(241,238,231,.8); }
.ce-infos li { display: flex; align-items: center; gap: 10px; }
.ce-infos svg { flex: none; width: 17px; height: 17px; color: var(--or-clair); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ce-texte { font-size: 14.5px; line-height: 1.5; color: rgba(241,238,231,.88); }
.ce-etat { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid; }
.ce-etat.bon { background: rgba(47,138,70,.18); border-color: rgba(47,138,70,.45); }
.ce-etat.attente { background: rgba(214,185,146,.12); border-color: rgba(214,185,146,.4); }
.ce-etat.neutre { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.ce-etat svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ce-etat.bon svg { background: rgba(47,138,70,.35); color: #CFEBD6; }
.ce-etat.attente svg { background: rgba(214,185,146,.25); color: var(--or-clair); }
.ce-etat.neutre svg { background: rgba(255,255,255,.1); color: rgba(241,238,231,.8); }
.ce-etat b { display: block; font-size: 14.5px; }
.ce-etat span { display: block; font-size: 13px; color: rgba(241,238,231,.72); margin-top: 2px; line-height: 1.45; }
.ce-bouton {
  display: block; text-align: center; padding: 13px 16px; border-radius: 8px;
  background: var(--action); color: #FFFFFF; font-weight: 700; font-size: 15px; text-decoration: none;
}
.ce-bouton:hover { background: var(--action-vive); }
.carte-echeance .cn-lien { margin: 10px 24px 22px; }

/* le district : ses actions, et les liens utiles */
.actions { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.actions li { display: flex; align-items: flex-start; gap: 12px; }
.actions .rond { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.actions .rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.actions .rond.bleu { background: rgba(30,127,224,.28); color: #9CCBFF; }
.actions .rond.or { background: rgba(212,171,104,.28); color: var(--or-clair); }
.actions .rond.vert { background: rgba(47,138,70,.3); color: #CFEBD6; }
.actions .rond.violet { background: rgba(112,48,160,.4); color: #DDBFF5; }
.actions b { display: block; font-size: 14px; }
.actions span { display: block; font-size: 12.5px; line-height: 1.45; color: rgba(241,238,231,.65); margin-top: 1px; }
.liens-titre { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair); margin: 4px 0 8px; }
.liens { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.liens a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-decoration: none; min-width: 0;
}
.liens a:hover { border-color: var(--or); }
.liens svg { flex: none; width: 18px; height: 18px; color: var(--or-clair); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.liens span { min-width: 0; }
.liens b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liens small { display: block; font-size: 11px; color: rgba(241,238,231,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Les accès rapides : une seule barre partagée en quatre, comme la maquette. */
.acces { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; padding-bottom: 44px; }
.acces a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-left-width: 0;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--sur-marine);
}
.acces a:first-child { border-left-width: 1px; border-radius: 10px 0 0 10px; }
.acces a:last-child { border-radius: 0 10px 10px 0; }
.acces a:hover { background: rgba(255,255,255,.09); color: var(--or-clair); }
.acces svg { flex: none; width: 20px; height: 20px; color: var(--or-clair); fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }

/* Mon AS : la carte de réponse, et ce qui a déjà été répondu. */
.zone-mon-as { padding-block: 64px; }
.mon-as { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 32px; align-items: start; }
.deja { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--r-carte); padding: 22px 24px; }
.deja h3 { font-family: "Archivo Black", sans-serif; font-size: 18px; letter-spacing: -.02em; margin-bottom: 12px; }
.deja ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.deja-vide { font-size: 14.5px; color: var(--encre-2); }
.deja .ba-lien { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; }

@media (max-width: 1100px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .acces { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acces a, .acces a:first-child, .acces a:last-child { border-left-width: 1px; border-radius: 10px; }
}
@media (max-width: 940px) {
  /* le montage passe sous le texte, en pleine largeur */
  .hero-accueil { display: flex; flex-direction: column; }
  .hero-accueil > .hero-int { order: 1; }
  .hero-montage {
    order: 2; position: relative; inset: auto; width: 100%; height: auto; display: block;
    margin-top: -16px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%);
  }
  .hero-accueil > .large:last-child { order: 3; }
  .hero-accueil::after { display: none; }
  .hero-accueil-int { grid-template-columns: 1fr; min-height: 0; padding-block: 44px 8px; }
  .hero-chiffres { grid-template-columns: 1fr 1fr; gap: 14px 0; padding-bottom: 32px; }
  .hc:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mon-as { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .trio { grid-template-columns: 1fr; }
  .acces { grid-template-columns: 1fr 1fr; }
  .hc { padding: 4px 14px; font-size: 14px; }
  .hc svg { width: 42px; height: 42px; padding: 10px; }
  .rdv-ligne { grid-template-columns: 50px minmax(0, 1fr) 12px; }
  .rdv-ligne .etat { grid-column: 2; justify-self: start; }
  .zone-mon-as { padding-block: 48px; }
}
