/* USCM Badminton — feuille de style du site public
   Palette validee : anthracite quasi noir, orange en accent, blanc.
   Conception mobile-first : les media queries elargissent, jamais l'inverse. */

:root {
  --anthracite: #17181c;
  --anthracite-carte: #1f2126;
  --anthracite-relief: #282b32;
  --bord: rgba(255, 255, 255, 0.09);
  --bord-fort: rgba(255, 255, 255, 0.16);

  --orange: #ff6b1a;
  --orange-clair: #ff8a4c;
  --orange-sourd: rgba(255, 107, 26, 0.14);
  --jaune: #ffc83c;

  --blanc: #ffffff;
  --texte: #eceef2;
  --texte-doux: #a9aeb9;

  --rayon: 14px;
  --rayon-petit: 8px;
  --largeur: 1120px;
  --transition: 160ms ease;

  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Typos reprises du logo du club : bloc capitales pour "USCM", script pour "Monéteau". */
  --police-affichage: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --police-script: "Caveat Brush", "Segoe Script", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--anthracite);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-clair); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1, h2 {
  font-family: var(--police-affichage);
  font-weight: 400; /* Bebas Neue n'existe qu'en une graisse */
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  background: var(--orange);
  color: var(--anthracite);
  padding: 10px 16px;
  border-radius: var(--rayon-petit);
  font-weight: 600;
}
.lien-evitement:focus { left: 12px; top: 12px; z-index: 100; }

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

/* ---------- En-tete ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 24, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blanc);
  text-decoration: none;
}
.marque:hover { text-decoration: none; }
.marque__logo { display: block; width: auto; height: 40px; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.05; }
.marque__texte strong {
  font-family: var(--police-affichage);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.marque__texte em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.bouton-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--bord-fort);
  border-radius: var(--rayon-petit);
  cursor: pointer;
}
.bouton-menu span {
  display: block;
  height: 2px;
  background: var(--texte);
  transition: var(--transition);
}
.bouton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bouton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navigation {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}
.navigation.est-ouverte { display: flex; }
.navigation a {
  color: var(--texte);
  padding: 11px 4px;
  border-bottom: 1px solid var(--bord);
  font-weight: 500;
}
.navigation a:hover { color: var(--orange-clair); text-decoration: none; }
.navigation__cta {
  margin-top: 10px;
  /* Or du logo, pas l'orange générique : c'est l'action la plus importante
     du site, elle mérite un traitement à part plutôt que de se fondre avec
     les autres liens/boutons orange. */
  background: var(--degrade-or);
  color: #3a2205 !important;
  text-align: center;
  border-radius: var(--rayon-petit);
  border-bottom: none !important;
  font-weight: 700;
  padding: 11px 22px;
}

@media (min-width: 860px) {
  .bouton-menu { display: none; }
  .navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    width: auto;
    padding-bottom: 0;
  }
  .navigation a { border-bottom: none; padding: 8px 0; }
  .navigation__cta { margin-top: 0; padding: 9px 20px; }
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section--sourde { background: var(--anthracite-carte); border-block: 1px solid var(--bord); }
.section__intro { max-width: 62ch; color: var(--texte-doux); }

.surtitre {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Accroche sous un h1 (ex. "Compagnon intelligent") : distincte du
   .surtitre (qui precede le h1), reste discrete plutot que de rivaliser
   avec le titre. */
.sous-titre-app {
  margin: -8px 0 16px;
  font-style: italic;
  color: var(--texte-doux);
}

@media (min-width: 860px) {
  .section { padding: 84px 0; }
}

/* ---------- Banniere d'accueil ---------- */

.banniere {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(255, 107, 26, 0.22), transparent 62%),
    linear-gradient(180deg, #1b1d22 0%, var(--anthracite) 100%);
  border-bottom: 1px solid var(--bord);
}
.banniere h1 { max-width: 16ch; }
.banniere h1 .accent {
  color: var(--orange);
  font-family: var(--police-script);
  text-transform: none;
  font-size: 1.25em;
  display: inline-block;
  line-height: 1;
}
.banniere__accroche {
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--texte-doux);
}
.banniere__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.banniere__etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texte);
  background: var(--anthracite-relief);
  border: 1px solid var(--bord-fort);
  border-radius: 999px;
}
.etiquette--accent {
  color: var(--orange-clair);
  background: var(--orange-sourd);
  border-color: rgba(255, 107, 26, 0.35);
}

/* Niveau dispute d'un set (voir MatchModele::niveauSet, seuils provisoires) :
   facile = discret, dispute = met en avant comme etiquette--accent,
   equilibre = neutre, inconnu = duree non chronometree. */
.etiquette--facile { color: var(--texte-doux); background: var(--anthracite-relief); }
.etiquette--maitrise { color: var(--orange-clair); background: var(--orange-sourd); border-color: rgba(255, 107, 26, 0.35); }
.etiquette--dispute { color: #ffb495; background: rgba(255, 120, 80, 0.12); border-color: rgba(255, 120, 80, 0.35); }
.etiquette--equilibre { color: var(--texte); background: var(--anthracite-relief); }
.etiquette--inconnu { color: var(--texte-doux); background: transparent; border-style: dashed; }

/* Degre d'un bon plan (voir BonPlanModele::TEMPERATURES), du plus froid au plus chaud. */
.etiquette--froid { color: #8ec5ff; background: rgba(120, 170, 255, 0.12); border-color: rgba(120, 170, 255, 0.35); }
.etiquette--tiede { color: var(--texte); background: var(--anthracite-relief); }
.etiquette--chaud { color: var(--orange-clair); background: var(--orange-sourd); border-color: rgba(255, 107, 26, 0.35); }
.etiquette--bouillant { color: #ff6b6b; background: rgba(255, 80, 80, 0.14); border-color: rgba(255, 80, 80, 0.4); }

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--rayon-petit);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
/* Sans ca, l'attribut hidden d'un bouton (ex. #bouton-installer-pwa,
   affiche seulement au bon moment en JS) est ignore : "display" pose
   par cette classe (origine auteur) l'emporte sur le "display: none" de
   l'agent utilisateur pour [hidden] — meme piege deja corrige ailleurs
   avec .invite-push:not([hidden]). */
.bouton[hidden] { display: none; }
.bouton:hover { text-decoration: none; transform: translateY(-1px); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.bouton--principal { background: var(--orange); color: #17181c; }
.bouton--principal:hover { background: var(--orange-clair); }
.bouton--fantome {
  background: transparent;
  color: var(--texte);
  border-color: var(--bord-fort);
}
.bouton--fantome:hover { border-color: var(--orange); color: var(--orange-clair); }
.bouton--or { background: var(--degrade-or); color: #3a2205; }
.bouton--or:hover { filter: brightness(1.08); }
.bouton--or svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Petit rebond de la fleche + pulsation du bouton au clic, pour confirmer
   le geste avant que le bouton ne disparaisse (l'invite d'installation du
   navigateur prend le relais). */
@keyframes rebond-telechargement {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(5px); }
  60% { transform: translateY(-2px); }
}
@keyframes pulse-bouton-or {
  0% { box-shadow: 0 0 0 0 rgba(224, 180, 90, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(224, 180, 90, 0); }
}
.bouton--or.est-clique { animation: pulse-bouton-or 0.5s ease-out; }
.bouton--or.est-clique svg { animation: rebond-telechargement 0.5s ease; }

/* ---------- Grilles et cartes ---------- */

.grille { display: grid; gap: 18px; }
@media (min-width: 700px) { .grille--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

.carte {
  padding: 22px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}
.carte h3 { margin-bottom: 8px; }
.carte p:last-child { margin-bottom: 0; }

.carte--creneau { display: flex; flex-direction: column; gap: 4px; }
.carte--creneau .jour {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blanc);
}
.carte--creneau .heure {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.carte--creneau .lieu,
.carte--creneau .public { color: var(--texte-doux); font-size: 0.92rem; }

.carte--tarif { display: flex; flex-direction: column; }
.carte--tarif .montant {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin: 6px 0 16px;
}
.carte--tarif .montant small { font-size: 1rem; color: var(--texte-doux); font-weight: 600; }
.liste-cochee { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.liste-cochee li {
  position: relative;
  padding-left: 26px;
  color: var(--texte-doux);
  font-size: 0.94rem;
}
.liste-cochee li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Sponsors ---------- */

.bandeau-sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.vignette-sponsor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  text-align: center;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  color: var(--texte);
  transition: var(--transition);
}
.vignette-sponsor:hover {
  text-decoration: none;
  border-color: var(--orange);
  transform: translateY(-2px);
}
.vignette-sponsor strong { font-size: 0.98rem; }
.vignette-sponsor span { font-size: 0.78rem; color: var(--texte-doux); }

.fiche-sponsor {
  padding: 26px 0;
  border-top: 1px solid var(--bord);
  scroll-margin-top: 90px;
}
.fiche-sponsor:first-of-type { border-top: none; }
.fiche-sponsor__entete { margin-bottom: 14px; }
.fiche-sponsor__secteur {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

/* ---------- Promotions partenaires (logo + nom du sponsor) ---------- */

.carte--promo__entete { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.carte--promo__entete .fiche-sponsor__secteur { margin-bottom: 0; }
.carte--promo__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 44px;
  flex-shrink: 0;
  padding: 6px;
  background: #ffffff;
  border-radius: var(--rayon-petit);
}
.carte--promo__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fiche-sponsor h2 { margin-bottom: 4px; }
.fiche-sponsor__accroche { color: var(--texte-doux); font-size: 1.02rem; }
.fiche-sponsor__texte p { max-width: 72ch; }
.fiche-sponsor__coordonnees {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  font-size: 0.93rem;
}
.fiche-sponsor__coordonnees dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.fiche-sponsor__coordonnees dd { margin: 0 0 8px; }
.fiche-sponsor__coordonnees dd:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  /* Colonne de gauche etroite : logo puis photo, empiles.
     Colonne de droite large : texte puis coordonnees, empiles
     (le texte fait 300 mots, il lui faut la colonne large pour rester lisible). */
  .fiche-sponsor {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .fiche-sponsor__entete { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
  .fiche-sponsor__plaque { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .fiche-sponsor__photo { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .fiche-sponsor__texte { grid-column: 2; grid-row: 2; }
  .fiche-sponsor__coordonnees { grid-column: 2; grid-row: 3; margin-top: 0; align-self: start; }
}

/* ---------- Sommaire des partenaires ---------- */

.sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.sommaire a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texte);
  background: var(--anthracite-relief);
  border: 1px solid var(--bord-fort);
  border-radius: 999px;
}
.sommaire a:hover { text-decoration: none; border-color: var(--orange); color: var(--orange-clair); }

/* ---------- Contact ---------- */

.bloc-contact { display: grid; gap: 18px; }
.bloc-contact dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}
.bloc-contact dd { margin: 0 0 14px; font-size: 1.05rem; }

.appel-final {
  margin-top: 34px;
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.16), rgba(255, 107, 26, 0.04));
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: var(--rayon);
}
.appel-final h2 { margin-bottom: 8px; }
.appel-final p { color: var(--texte-doux); max-width: 52ch; margin-inline: auto; }

/* ---------- Texte long (mentions legales) ---------- */

.texte-long { max-width: 74ch; }
.texte-long h2 { margin-top: 34px; }
.texte-long h2:first-child { margin-top: 0; }

.a-completer {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.85em;
  font-weight: 600;
  color: #ffd7a8;
  background: rgba(255, 107, 26, 0.16);
  border: 1px dashed rgba(255, 107, 26, 0.5);
  border-radius: 4px;
}

.alerte {
  padding: 12px 16px;
  margin: 18px 0 0;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord-fort);
  background: var(--anthracite-carte);
}
.alerte--info { border-color: rgba(255, 107, 26, 0.4); }

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

.pied {
  padding: 40px 0 22px;
  background: #101116;
  border-top: 1px solid var(--bord);
  color: var(--texte-doux);
  font-size: 0.92rem;
}
.pied__interieur { display: grid; gap: 22px; }
.pied__titre { color: var(--blanc); font-weight: 700; margin-bottom: 4px; }
.pied p { margin: 0 0 3px; }
.pied__liens { display: flex; flex-direction: column; gap: 8px; }
.pied__liens a { color: var(--texte-doux); }
.pied__liens a:hover { color: var(--orange-clair); }
.pied__bas {
  max-width: var(--largeur);
  margin: 26px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid var(--bord);
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .pied__interieur { grid-template-columns: 1fr auto; align-items: start; }
  .pied__liens { flex-direction: row; gap: 22px; }
}

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

/* ---------- Panneaux et formulaires ---------- */

.panneau {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}
.panneau--plein { max-width: none; margin: 0; }
.panneau__titre { font-size: 1.5rem; margin-bottom: 10px; }
.panneau__intro { color: var(--texte-doux); font-size: 0.95rem; margin-bottom: 22px; }
.panneau__pied {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bord);
  font-size: 0.92rem;
  color: var(--texte-doux);
  text-align: center;
}
.panneau__pied span { margin: 0 8px; color: var(--bord-fort); }

/* Avatar (photo de profil adulte, voir docs/DONNEES-PERSONNELLES.md, ou
   initiales par defaut) : meme rond partout (licence, dashboard, comptes). */
.avatar-membre { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-membre--initiales {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-sourd);
  color: var(--orange-clair);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Recadrage cote client de la photo de profil, avant tout envoi au
   serveur (voir profil.php/site.js) : cercle fixe, deplacement au doigt/
   a la souris + zoom, exporte en carre pret a l'emploi. */
.rogneur-viewport {
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--anthracite-relief);
  border: 1px solid var(--bord-fort);
  touch-action: none;
  cursor: grab;
}
.rogneur-viewport.est-en-glissement { cursor: grabbing; }
.rogneur-viewport img {
  position: absolute;
  left: 0;
  top: 0;
  /* Neutralise le reset global "img { max-width: 100%; height: auto; }" :
     sans ça, la largeur (calculee en JS, parfois > 220px) etait plafonnee
     a la largeur du cercle alors que la hauteur ne l'etait pas, ce qui
     deformait l'image verticalement. */
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

/* Curseur de zoom du recadrage : jamais .saisie (pensee pour du texte —
   son padding/fond/bordure ecrasait le rendu natif du curseur, au point
   de le rendre difficile a saisir). Piste + pouce redessines a la main
   pour un curseur explicite, aux couleurs de l'appli. */
.curseur-zoom {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.curseur-zoom::-webkit-slider-runnable-track { height: 4px; background: var(--bord-fort); border-radius: 999px; }
.curseur-zoom::-moz-range-track { height: 4px; background: var(--bord-fort); border-radius: 999px; }
.curseur-zoom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--anthracite-carte);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.curseur-zoom::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--anthracite-carte);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.curseur-zoom:focus { outline: none; }
.curseur-zoom:focus::-webkit-slider-thumb,
.curseur-zoom:focus::-moz-range-thumb { box-shadow: 0 0 0 4px var(--orange-sourd); }

.champ { margin-bottom: 16px; }
.champ__etiquette {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--texte);
}
.champ__aide { margin: 6px 0 0; font-size: 0.82rem; color: var(--texte-doux); }
.champ__erreur { margin: 6px 0 0; font-size: 0.85rem; color: #ff9f6e; font-weight: 600; }

.saisie {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--texte);
  background: var(--anthracite);
  border: 1px solid var(--bord-fort);
  border-radius: var(--rayon-petit);
  transition: var(--transition);
}
.saisie:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-sourd);
}
.champ--en-erreur .saisie { border-color: #ff9f6e; }

.champ__enveloppe-mdp { position: relative; }
.champ__enveloppe-mdp .saisie { padding-right: 44px; }
.bouton-oeil {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
  border-radius: var(--rayon-petit);
  transition: var(--transition);
}
.bouton-oeil:hover,
.bouton-oeil:focus-visible { color: var(--orange); }
.bouton-oeil:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange-sourd); }
.bouton-oeil svg { width: 20px; height: 20px; }

.jauge-boutique__barre {
  height: 10px;
  border-radius: 999px;
  background: var(--anthracite);
  border: 1px solid var(--bord-fort);
  overflow: hidden;
}
.jauge-boutique__remplie { height: 100%; background: var(--orange); transition: var(--transition); }
.jauge-boutique__texte { margin: 8px 0 0; font-size: 0.86rem; color: var(--texte-doux); }

.champ-recherche { max-width: 320px; margin: 20px 0 0; }
.ligne-filtree-masquee { display: none !important; }

/* Recherche + filtre par categorie (ex. catalogue d'exercices) : la
   recherche reutilise .champ-recherche, les pastilles sont propres a ce
   bloc. */
.filtre-exercices__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-filtre {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bord-fort);
  background: var(--anthracite-relief);
  color: var(--texte-doux);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.pill-filtre:hover { border-color: var(--orange); color: var(--texte); }
.pill-filtre.est-actif { background: var(--orange-sourd); border-color: rgba(255, 107, 26, 0.5); color: var(--orange-clair); }

select.saisie { appearance: none; cursor: pointer; }
select.saisie option { background: var(--anthracite-carte); }

.case { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.93rem; }
.case input { width: 17px; height: 17px; accent-color: var(--orange); cursor: pointer; }

.champs-cote-a-cote { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .champs-cote-a-cote { grid-template-columns: 1fr 1fr; } }

.bouton--large { width: 100%; margin-top: 6px; }

.alerte--erreur { border-color: rgba(255, 120, 80, 0.5); color: #ffb495; }
.alerte--succes { border-color: rgba(120, 220, 150, 0.4); color: #a8e6bd; }

.navigation__compte {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}
.navigation__compte .separateur { color: var(--bord-fort); }

/* ---------- Effet or (repris du wordmark du logo du club) ---------- */

:root {
  --degrade-or: linear-gradient(180deg, #f6e7a8 0%, #e0b45a 42%, #8a5a1e 78%, #5c3a12 100%);
}

.texte-or {
  background: var(--degrade-or);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.filet-or {
  height: 3px;
  border: none;
  border-radius: 999px;
  background: var(--degrade-or);
}

/* ---------- Creneaux par jour (mise en carte façon affiche) ---------- */

.jours-creneaux {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
@media (min-width: 760px) { .jours-creneaux { grid-template-columns: repeat(3, 1fr); } }

.jour-carte {
  overflow: hidden;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}
.jour-carte__entete {
  padding: 12px 20px;
  background: var(--orange);
  color: var(--anthracite);
  font-family: var(--police-affichage);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.jour-carte__lignes { padding: 16px 20px 20px; display: grid; gap: 12px; }
.jour-carte__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bord);
}
.jour-carte__ligne:last-child { border-bottom: none; padding-bottom: 0; }
.jour-carte__categorie { font-weight: 700; color: var(--texte); }
.jour-carte__horaire {
  font-variant-numeric: tabular-nums;
  color: var(--orange-clair);
  font-weight: 700;
  white-space: nowrap;
}
.jour-carte__lieu {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--texte-doux);
}
.jour-carte--pleine .jour-carte__lignes { text-align: center; padding: 20px; }
.jour-carte--pleine .jour-carte__ligne { border-bottom: none; padding-bottom: 0; justify-content: center; }

/* Adresse unique du gymnase, sous la grille des creneaux (evite de la
   repeter sur chaque carte de jour : meme adresse pour tous). */
.creneaux__lieu {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--texte-doux);
  text-align: center;
}

/* ---------- Sponsors : plaque blanche (les logos ont des fonds variés) ---------- */

.vignette-sponsor {
  padding: 0;
  overflow: hidden;
}
.vignette-sponsor__plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  padding: 10px 14px;
  background: #ffffff;
}
.vignette-sponsor__plaque img { max-height: 100%; max-width: 100%; object-fit: contain; }
.vignette-sponsor__legende {
  display: block;
  padding: 10px 12px 12px;
  text-align: center;
}
.vignette-sponsor__legende strong { display: block; font-size: 0.92rem; }
.vignette-sponsor__legende span { font-size: 0.76rem; color: var(--texte-doux); }

.fiche-sponsor__plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 16px;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--rayon-petit);
}
.fiche-sponsor__plaque img { max-height: 100%; max-width: 100%; object-fit: contain; }

.fiche-sponsor__photo {
  margin-bottom: 16px;
  border-radius: var(--rayon-petit);
  overflow: hidden;
  border: 1px solid var(--bord);
}
.fiche-sponsor__photo img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ---------- Trombinoscope du bureau ---------- */

.trombinoscope {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.membre-bureau {
  padding: 24px 18px;
  text-align: center;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}

.membre-bureau__photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.membre-bureau__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange-sourd);
  border: 1px solid rgba(255, 107, 26, 0.35);
  color: var(--orange-clair);
  font-size: 2rem;
  font-weight: 800;
}

.membre-bureau__nom { font-size: 1.05rem; margin-bottom: 2px; }
.membre-bureau__fonction {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.membre-bureau__contact { font-size: 0.88rem; }

/* ---------- Barre de navigation basse (PWA, connecte uniquement) ---------- */

body:has(.nav-bas) main { padding-bottom: 84px; }

.nav-bas {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 68px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(23, 24, 28, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bord);
}

.nav-bas__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 10px 4px 8px;
  color: var(--texte-doux);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-bas__item:hover { color: var(--texte); text-decoration: none; }
.nav-bas__item svg { width: 22px; height: 22px; }

.nav-bas__item--central {
  color: var(--anthracite);
  margin-top: -26px;
}
.nav-bas__item--central span:last-child { color: var(--texte); margin-top: 2px; }
.nav-bas__bulle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.45);
  border: 3px solid var(--anthracite);
}
.nav-bas__bulle svg { width: 24px; height: 24px; }
.nav-bas__bulle img { width: 32px; height: auto; display: block; }

/* Invitation a activer les alertes push, proposee juste apres connexion
   (voir site.js) : une bannière au-dessus de la barre du bas, jamais un
   appel silencieux — Safari/iOS exige un vrai clic pour la demande de
   permission du navigateur, ce bouton en est justement le geste. */
.invite-push {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin-inline: auto;
  padding: 16px 18px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord-fort);
  border-radius: var(--rayon) var(--rayon) 0 0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
}
.invite-push:not([hidden]) { display: flex; }
.invite-push p { margin: 0; font-size: 0.9rem; }
.invite-push__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.invite-push__actions .bouton { padding: 8px 14px; font-size: 0.88rem; }

.nav-bas__badge {
  position: absolute;
  top: 4px;
  right: 22%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--anthracite);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 860px) {
  /* La barre basse reste utile en PWA installee ; sur desktop classique,
     la navigation du haut suffit deja. */
  .nav-bas { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 18px 18px 0 0; border-inline: 1px solid var(--bord); }
}

/* ---------- Cartes evenements / promotions ---------- */

.carte--evenement { padding-top: 0; overflow: hidden; }

/* Deux colonnes moitie-moitie, en permanence y compris sur mobile (demande
   explicite : la fiche doit etre grande et imposante, pas une vignette).
   L'affiche remplit toute la hauteur de la carte (colonne etiree), quitte a
   recadrer une affiche dont les proportions ne collent pas exactement —
   priorite donnee a une fiche pleine et sans zone vide plutot qu'a l'affiche
   jamais rognee (choix revu suite retour utilisateur). */
.carte--evenement__corps { display: flex; flex-direction: row; gap: 14px; align-items: stretch; min-height: 240px; }

.carte--evenement__colonne-affiche {
  /* padding-top de .carte--evenement est deja a 0 : bas et gauche ont besoin
     d'une marge negative pour affleurer les bords de la carte, la colonne
     etant etiree (align-items: stretch) sur toute la hauteur de la carte. */
  flex: 1 1 0;
  margin: 0 0 -22px -22px;
  background: var(--anthracite-relief);
}
.carte--evenement__affiche {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carte--evenement__colonne-contenu {
  padding-top: 22px;
  flex: 1 1 0;
  min-width: 0;
}

.carte--evenement__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
/* Mots-cles a icone : remplace la description en prose, plus rapide a lire
   sur la petite colonne de droite. */
.carte--evenement__meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.carte--evenement__meta li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--texte-doux); }
.carte--evenement__meta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--orange-clair); }
.carte--evenement__meta li.carte--evenement__meta--alerte { color: var(--orange-clair); }

/* ---------- Catalogue d'exercices (mode "coach sportif") ---------- */

.carte--exercice__visuel {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--rayon-petit);
  margin-bottom: 14px;
}
.carte--exercice__visuel--vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--anthracite-relief);
  border: 1px dashed var(--bord-fort);
  color: var(--texte-doux);
  font-size: 0.82rem;
}
.carte--exercice__visuel--vide svg { width: 32px; height: 32px; }

/* ---------- Suivi de match (chrono) ---------- */

.chrono__affichage {
  font-family: var(--police-affichage);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 4px 0 10px;
}

.bloc-set {
  border: 1px solid var(--bord-fort);
  border-radius: 10px;
  padding: 14px 14px 4px;
  margin: 0 0 16px;
}
.bloc-set legend {
  padding: 0 6px;
  font-family: var(--police-affichage);
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.set-ligne { display: flex; align-items: center; gap: 8px; }
.set-ligne + .set-ligne { margin-top: 4px; }

/* ---------- Liens de tuile (back-office) ---------- */

.lien-admin { color: inherit; display: block; transition: var(--transition); }
.lien-admin:hover { text-decoration: none; border-color: var(--orange); transform: translateY(-2px); }
.lien-admin h3 { color: var(--orange-clair); display: flex; align-items: center; gap: 8px; }
.lien-admin p { margin: 0; color: var(--texte-doux); font-size: 0.9rem; }
.carte-icone { flex: none; width: 20px; height: 20px; }

/* ---------- Tableaux d'administration ---------- */

.tableau-scroll { overflow-x: auto; margin-top: 20px; }
.tableau-admin { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tableau-admin th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
  border-bottom: 1px solid var(--bord-fort);
  white-space: nowrap;
}
.tableau-admin td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bord);
  vertical-align: middle;
}
.tableau-admin tr:last-child td { border-bottom: none; }

/* Met en evidence la ligne du membre courant dans un classement (ex. Le
   Volant d'Or) : se retrouver soi-meme dans une longue liste sans avoir
   a chercher. */
.tableau-admin tr.ligne-courante td { background: var(--orange-sourd); }
.tableau-admin tr.ligne-courante td:first-child { border-radius: 6px 0 0 6px; }
.tableau-admin tr.ligne-courante td:last-child { border-radius: 0 6px 6px 0; }

/* ---------- Liste de pointage (tap rapide, mobile) ---------- */

.liste-pointage { display: flex; flex-direction: column; gap: 8px; }
.liste-pointage__ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.liste-pointage__ligne:has(input:checked) {
  background: var(--orange-sourd);
  border-color: rgba(255, 107, 26, 0.4);
}
.liste-pointage__ligne input { position: absolute; opacity: 0; pointer-events: none; }
.liste-pointage__nom { flex: 1; font-weight: 600; }
.liste-pointage__coche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bord-fort);
  color: transparent;
  font-weight: 800;
  flex-shrink: 0;
}
.liste-pointage__ligne:has(input:checked) .liste-pointage__coche {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--anthracite);
}

/* ---------- Notifications ---------- */

.notif--non-lue { border-color: rgba(255, 107, 26, 0.4); }
.notif__compte-a-rebours { margin: 2px 0 0; font-size: 0.72rem; color: var(--texte-doux); font-style: italic; }

/* ---------- Carte de licence virtuelle ---------- */

.carte-licence {
  position: relative;
  overflow: hidden;
  max-width: 380px;
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--anthracite-relief) 0%, var(--anthracite-carte) 55%, var(--anthracite) 100%);
  border: 1px solid var(--bord-fort);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
/* Lueur orange en coin, echo du contour du fuse de la mascotte du logo :
   un simple degrade radial, aucune image necessaire. */
.carte-licence::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.3) 0%, rgba(255, 107, 26, 0) 70%);
  pointer-events: none;
}
.carte-licence--a-jour {
  border-color: rgba(255, 107, 26, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 26, 0.15) inset;
}

.carte-licence__entete {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}
.carte-licence__logo { display: block; height: 57px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }

.carte-licence__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--bord-fort);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
}
.carte-licence__badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.carte-licence--a-jour .carte-licence__badge {
  background: var(--orange-sourd);
  border-color: rgba(255, 107, 26, 0.5);
  color: var(--orange-clair);
}

.carte-licence__identite { position: relative; margin-bottom: 20px; }
.carte-licence__nom { font-size: 1.6rem; font-weight: 700; margin: 0 0 10px; line-height: 1.15; }
.carte-licence__categorie {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--bord-fort);
  font-size: 0.75rem;
  color: var(--texte-doux);
}

.carte-licence__separateur {
  position: relative;
  height: 2px;
  margin: 0 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 180, 90, 0) 0%, rgba(224, 180, 90, 0.65) 50%, rgba(224, 180, 90, 0) 100%);
}

.carte-licence__bas { position: relative; display: flex; justify-content: space-between; gap: 16px; }
.carte-licence__bloc { display: flex; flex-direction: column; gap: 3px; }
.carte-licence__bloc:last-child { text-align: right; }
.carte-licence__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texte-doux); }
.carte-licence__numero { font-family: monospace; font-size: 0.95rem; letter-spacing: 0.03em; }

/* ---------- Assiduité (jeu de paliers de présence) ---------- */

.carte-assiduite {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: var(--rayon);
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
}
.carte-assiduite__chiffres { display: flex; gap: 28px; flex-wrap: wrap; }
.carte-assiduite__chiffre { display: flex; flex-direction: column; gap: 2px; }
.carte-assiduite__chiffre strong { font-family: var(--police-affichage); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.carte-assiduite__chiffre span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); }
.carte-assiduite__objectif { margin: 14px 0 0; font-size: 0.82rem; color: var(--texte-doux); }

.badge-palier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.badge-palier__icone { flex: none; filter: drop-shadow(0 0 5px currentColor); }

/* Detail transparent du calcul du score "Le Volant d'Or" : chaque
   composante affichee, meme a 0, plutot que noyee dans un seul total. */
.liste-detail-score { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bord); }
.liste-detail-score__titre { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); }
.liste-detail-score__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.88rem; }
.liste-detail-score__ligne strong { color: var(--orange-clair); font-weight: 600; }

.badge-palier--bronze  { background: rgba(205, 127, 50, 0.18);  color: #cd7f32; }
.badge-palier--argent  { background: rgba(192, 192, 200, 0.18); color: #c0c0c8; }
.badge-palier--or      { background: rgba(255, 200, 60, 0.18);  color: #ffc83c; }
.badge-palier--platine { background: rgba(180, 210, 220, 0.18); color: #b4d2dc; }
.badge-palier--titane  { background: rgba(255, 107, 26, 0.2);   color: var(--orange-clair); }

/* ---------- Dashboard membre : grille d'icones type ecran d'accueil ---------- */

.dash-icones { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }

.dash-icone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.dash-icone:hover { text-decoration: none; }

.dash-icone__pastille {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  transition: var(--transition);
}
.dash-icone:hover .dash-icone__pastille { border-color: var(--orange); transform: translateY(-2px); }
.dash-icone__pastille svg { width: 28px; height: 28px; color: var(--orange-clair); }

/* Le Volant d'Or : icone doree, meme teinte que le palier "Or"
   (badge-palier--or), pour se distinguer des autres tuiles orange. */
.dash-icone__pastille--or svg { color: #ffc83c; }

.dash-icone__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--anthracite);
  font-size: 0.66rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--anthracite);
}

/* Anneau colore autour de la pastille "Ma presence" quand un palier
   d'assiduite est atteint — meme mapping de couleurs que .badge-palier,
   seul affichage de ce palier depuis que le dashboard est en grille d'icones. */
.dash-icone__anneau {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid currentColor;
  pointer-events: none;
}
.dash-icone__anneau--bronze  { color: #cd7f32; }
.dash-icone__anneau--argent  { color: #c0c0c8; }
.dash-icone__anneau--or      { color: #ffc83c; }
.dash-icone__anneau--platine { color: #b4d2dc; }
.dash-icone__anneau--titane  { color: var(--orange-clair); }

.dash-icone__libelle { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.dash-icone__detail { font-size: 0.72rem; color: var(--texte-doux); }

/* Apercu d'une fonctionnalite pas encore construite (voir
   docs/USCM-levelup.md) : meme tuile, en <button> puisqu'elle n'ouvre
   aucune page (juste un popup "bientot"), reinitialisee des styles de
   bouton par defaut du navigateur pour rester identique a .dash-icone. */
button.dash-icone {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  background-color: transparent;
  border: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
/* Certains navigateurs (Safari iOS notamment) gardent un fond clair
   natif sur <button> malgre background:none tant que l'apparence n'est
   pas explicitement retiree : on le force aussi sur la pastille elle-meme. */
button.dash-icone .dash-icone__pastille {
  background: var(--anthracite-carte);
}
.dash-icone--bientot { opacity: 0.5; }
.dash-icone--bientot:hover .dash-icone__pastille { border-color: var(--bord); transform: none; }

/* ---------- Popup "bientot disponible" ---------- */

.modale-fond {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}
.modale-fond.est-visible { display: flex; }
.modale-boite {
  background: var(--anthracite-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}
.modale-boite h2 { margin-bottom: 10px; }
.modale-boite .section__intro { margin: 0 0 18px; }

/* ---------- Tableau de bord back-office ---------- */

.carte--chiffre { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 24px 16px; }
.carte--chiffre strong { font-family: var(--police-affichage); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.carte--chiffre__accent { color: var(--orange); }
.carte--chiffre span { font-size: 0.85rem; color: var(--texte-doux); }

/* Ligne de chiffres cote a cote, meme sur mobile (contrairement a .grille,
   qui n'ouvre plusieurs colonnes qu'a partir de 860px) : chaque carte
   s'etire sur au moins 150px puis retombe a la ligne s'il en faut plus. */
.stats-ligne { display: flex; flex-wrap: wrap; gap: 14px; }
.stats-ligne > .carte--chiffre { flex: 1 1 150px; }

/* Accordeon (<details>/<summary>) : replie par defaut pour ne pas pousser
   le reste de la page (historique...) trop bas, sans dependance JS. */
.accordeon summary.accordeon__entete {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--police-affichage);
  font-size: 1.3rem;
  letter-spacing: 0.015em;
}
.accordeon summary.accordeon__entete::-webkit-details-marker { display: none; }
.accordeon__fleche { width: 20px; height: 20px; flex: none; transition: transform 160ms ease; }
.accordeon[open] .accordeon__fleche { transform: rotate(180deg); }
.accordeon__contenu { margin-top: 16px; }

/* ---------- En-tete simplifie de l'application (hors site public) ---------- */

.entete--app .entete__interieur { justify-content: space-between; }

.vignette-logo-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  background: #fff;
  border-radius: 4px;
  padding: 3px;
}
.vignette-logo-admin img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pastille-notif {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--anthracite);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------- Bandeau de prise en main (previsualisation admin) ---------- */

.bandeau-prevision {
  /* Volontairement pas collant : l'en-tete l'est deja au meme point (top:0)
     et les deux se disputeraient la place au defilement. Ce bandeau defile
     avec la page, le lien de retour reste accessible via le haut de page. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--anthracite);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.bandeau-prevision a { color: var(--anthracite); text-decoration: underline; font-weight: 700; }

/* ---------- Etapes numerotees (page d'installation de l'application) ---------- */

.liste-etapes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: etape;
}
.liste-etapes li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--texte-doux);
  font-size: 0.92rem;
}
.liste-etapes li::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-sourd);
  color: var(--orange-clair);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.liste-etapes strong { color: var(--texte); }

/* ---------- Presentation interne au bureau (page ponctuelle) ---------- */

.presentation { background: var(--anthracite); }
.diapo-presentation {
  padding: 72px 6vw;
  border-bottom: 1px solid var(--bord);
}
.diapo-presentation__cadre { max-width: 1100px; margin: 0 auto; }
.diapo-presentation--centree { text-align: center; padding-top: 110px; padding-bottom: 110px; }

.diapo-presentation h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; text-wrap: balance; }
.diapo-presentation__intro { color: var(--texte-doux); font-size: 1.08rem; max-width: 680px; margin-bottom: 34px; }

.cadre-iframe {
  border: 1px solid var(--bord-fort);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--anthracite-carte);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.cadre-iframe--telephone { width: 100%; max-width: 380px; height: 640px; margin: 0 auto; }
.cadre-iframe--large { width: 100%; height: 520px; }
.cadre-iframe iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--anthracite); }
.legende-iframe { margin-top: 12px; font-size: 0.85rem; color: var(--texte-doux); }

.grille-telephones { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .grille-telephones { grid-template-columns: 1fr; } }

.bandeau-demo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 10px 16px; margin-bottom: 28px;
  border: 1px dashed var(--bord-fort); border-radius: var(--rayon-petit);
  color: var(--texte-doux); font-size: 0.85rem; text-align: center;
}
.bandeau-demo strong { color: var(--orange-clair); }

.encart-budget {
  max-width: 620px; margin: 0 auto; padding: 30px 34px; text-align: center;
  border-radius: var(--rayon); border: 1px solid rgba(255, 107, 26, 0.4);
  background: linear-gradient(160deg, rgba(255, 107, 26, 0.14), rgba(255, 107, 26, 0.02));
}
.encart-budget__label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-doux); font-weight: 700; }
.encart-budget__montant { font-family: var(--police-affichage); font-size: 3rem; color: var(--orange-clair); margin: 8px 0; }
.encart-budget__detail { color: var(--texte-doux); font-size: 0.92rem; }
.note-budget { max-width: 620px; margin: 18px auto 0; text-align: center; color: var(--texte-doux); font-size: 0.88rem; font-style: italic; }

.encart-lien {
  max-width: 700px; margin: 0 auto; padding: 22px 26px; text-align: center;
  border-radius: var(--rayon); border: 1px solid rgba(255, 107, 26, 0.4);
  background: linear-gradient(160deg, rgba(255, 107, 26, 0.14), rgba(255, 107, 26, 0.02));
}
.encart-lien a { font-family: var(--police-affichage); font-size: 1.3rem; letter-spacing: 0.02em; color: var(--orange-clair); word-break: break-all; }

.liste-icones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.liste-icones li { display: flex; gap: 16px; align-items: flex-start; }
.liste-icones .icone { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--orange-sourd); display: flex; align-items: center; justify-content: center; }
.liste-icones .icone svg { width: 19px; height: 19px; color: var(--orange-clair); }
.liste-icones h4 { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.liste-icones p { color: var(--texte-doux); font-size: 0.94rem; margin: 0; }

.liste-etapes h4 { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; color: var(--texte); }
.liste-etapes p { color: var(--texte-doux); font-size: 0.92rem; margin: 0; }
