/* =====================================================================
   AboutMyRuns — feuille de style

   Système graphique repris des maquettes (septembre 2026) : fond bleu
   très pâle, cartes blanches à bords nets, une seule couleur d'accent
   (bleu #2f86c7), l'or pour les classements à points, titres en
   Bebas Neue, texte en Archivo. Les polices sont hébergées ici : pas
   d'appel à Google à chaque page.

   Les classes d'avant (.carte, .grille, .chiffre, .bouton, .flash…)
   restent toutes valables : les pages qui les emploient héritent du
   nouveau dessin sans être réécrites.
   ===================================================================== */

@font-face {
  font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/bebas-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/bebas-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Le nom de la marque, et lui seul : la graisse 800 de Montserrat est
   celle qui s'approche le plus du dessin du logo. */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #f5f8fb;
  --surface:   #ffffff;
  --card:      #eef3f8;
  --ink:       #1f2b38;
  --ink-soft:  #5b6b78;
  --ink-faint: #90a0ab;
  --line:      #dde6ee;
  --line-soft: #e9eff5;
  --accent:    #01a7c2;
  --accent-d:  #0781a0;
  --accent-l:  #e3f6fa;
  --green:     #3a5568;
  --green-d:   #2c4152;
  --gold:      #b8933f;
  --gold-d:    #8f6e26;
  --gold-soft: rgba(184,147,63,.10);
  --ok:        #1b9e6b;
  --warn:      #c8920b;
  --no:        #d14444;
  --radius:    2px;
  --shadow:    none;
  --marque:    'Montserrat', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --display:   'Bebas Neue', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --texte:     'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.55 var(--texte);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  /* Les bandeaux pleine largeur mesurent 100vw, barre de défilement comprise :
     sans ceci, un ascenseur horizontal apparaît. */
  overflow-x: hidden;
}

a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid #6fb3e0; outline-offset: 3px; }

/* ---------- typographie ------------------------------------------------ */

.display, h1, h2, .card-head h3, .board-head h4, .chiffre b, .stat-num, .indice-num, .rank {
  font-family: var(--display);
  letter-spacing: .01em;
  line-height: .95;
  font-weight: 400;
}
.label, .section-tag, .card-tag, .board-tag, .section-title, thead th, .chiffre span {
  font-family: var(--texte);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 .35rem; color: var(--ink); }
h2 { font-size: 26px; margin: 2rem 0 .8rem; color: var(--ink); }
h3 { font-size: 15px; font-weight: 700; margin: 1.2rem 0 .5rem; color: var(--ink); }
.sous-titre { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 15px; max-width: 70ch; }
.section-title { font-size: 12px; color: var(--ink-soft); margin: 2.6rem 0 .8rem; }
h1 .badge, h2 .badge { font-family: var(--texte); letter-spacing: 0; text-transform: none; vertical-align: middle; }

/* ---------- structure ---------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px);
  /* La marque occupe sa propre ligne, le menu la sienne : côte à côte,
     l'enseigne n'était plus qu'un lien de plus dans la barre. */
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}

/* ---------- la marque ------------------------------------------------
   Le nom se lit comme le logo : « About » et « Runs » en bleu de nuit,
   « My » en cyan, dans une graisse à part. Il a sa propre ligne, le
   sigle à sa gauche, et se centre sur lui : coller le nom au menu
   faisait une enseigne qu'on ne voyait plus.
   ------------------------------------------------------------------- */
.marque {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  line-height: 1; text-decoration: none;
  min-height: 92px;                    /* le nom se centre dans sa bande */
  border-bottom: 1px solid var(--line-soft);
}
.marque:hover { text-decoration: none; }
.marque img { height: 44px; width: auto; display: block; }
.marque-texte,
.amr {
  font-family: var(--marque); font-weight: 800; letter-spacing: -.015em;
  color: var(--ink);
}
.marque-texte { font-size: 34px; }
.marque-texte span,
.amr span { color: var(--accent); }
/* Dans un titre, le nom garde sa police mais prend la taille du titre. */
h1 .amr, h2 .amr, h3 .amr { font-size: .84em; letter-spacing: -.02em; }

/* ---------- le bandeau de compte, au-dessus de l'en-tete ------------ */
.barre-compte {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.barre-compte-in {
  max-width: 1180px; margin: 0 auto; padding: .35rem clamp(18px, 4vw, 48px);
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.1rem; flex-wrap: wrap; min-height: 34px;
}
.barre-compte a { color: rgba(255,255,255,.78); font-weight: 600; }
.barre-compte a:hover { color: #fff; text-decoration: none; }
.barre-compte .bouton { padding: .3rem .8rem; font-size: 12.5px; }
.barre-compte .barre-qui { color: rgba(255,255,255,.55); }

/* Le choix de la langue, à gauche de la barre : c'est le premier geste
   de qui ne comprend pas la page, il ne se cherche pas. */
.langues { margin-right: auto; display: inline-flex; gap: .1rem; align-items: center; }
.langues a, .langues span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: .18rem .42rem; border-radius: 4px; line-height: 1;
}
.langues a { color: rgba(255,255,255,.55); }
.langues a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.langues .actif { color: #14110c; background: var(--accent); }
.barre-compte .vue-bascule { border-color: rgba(255,255,255,.35); }
.barre-compte a.vue-bascule[href$="/vue/admin"] { color: #14110c; }
.pied-marque img { height: 26px; width: auto; display: block; opacity: .8; }
.topbar nav {
  display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center;
  justify-content: center; min-height: 46px;
}
.topbar nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 14px; padding: .2rem 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar nav a.actif { color: var(--ink); border-bottom-color: var(--accent); }
.topbar nav a.bouton { border-bottom: 0; color: #fff; padding: .55rem 1rem; }
.topbar nav a.bouton:hover { color: #fff; }


main { max-width: 1180px; margin: 0 auto; padding: 2.2rem clamp(18px, 4vw, 48px) 5rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0;
  color: var(--ink-faint); font-size: 13px;
}
.pied {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.pied-marque { font-family: var(--display); font-size: 20px; color: var(--ink-soft); }
.pied-liens { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.pied-liens a { color: var(--ink-faint); }
.pied-liens a:hover { color: var(--ink-soft); text-decoration: none; }
.pied-note { flex-basis: 100%; font-size: 12px; margin: 0; }

/* ---------- blocs ---------------------------------------------------- */

.carte, .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  margin-bottom: 1.1rem;
}
.carte > :first-child { margin-top: 0; }
.carte h2 { margin-top: 0; font-size: 22px; letter-spacing: .02em; }

.grille { display: grid; gap: 1rem; }
.grille.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille.c4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* Les chiffres-clés : une grille serrée, un filet entre les cellules. */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.grille.c4, .stats-grid {
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.1rem;
}
.chiffre, .stat-cell {
  background: var(--surface); padding: 1.3rem 1.5rem; border: 0; border-radius: 0;
}
.chiffre b, .stat-num { display: block; font-size: 34px; color: var(--ink); }
.chiffre span, .stat-cap { display: block; color: var(--ink-soft); font-size: 12px; margin-top: .2rem; }
.stat-cap { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Grille de cartes accolées (références + indice). */
.grid-2 {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 1.1rem;
}
.grid-2 .card { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.card-head {
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.card-head h3 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.card-tag { font-size: 10.5px; color: var(--ink-faint); }
.card-body { padding: 1rem 1.3rem; }
.grid-2 table th:first-child, .grid-2 table td:first-child { padding-left: 1.3rem; }
.grid-2 table th:last-child, .grid-2 table td:last-child { padding-right: 1.3rem; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- messages -------------------------------------------------- */

.flash { border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: 14px; border: 1px solid var(--line); }
.flash.ok     { background: #e7f7f0; border-color: #b7e4cf; color: #146b4a; }
.flash.info   { background: var(--accent-l); border-color: #bcd9ef; color: #1b4f75; }
.flash.erreur { background: #fdecec; border-color: #f3c2c2; color: #922; }

.note { color: var(--ink-soft); font-size: 13px; }
.note-rgpd {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; color: var(--ink-soft); font-size: 12.5px;
}

/* ---------- formulaires ----------------------------------------------- */

label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: .3rem; font-weight: 600; }
input[type=text], input[type=number], input[type=date], input[type=password],
input[type=email], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); font: inherit; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,134,199,.16);
}
textarea { min-height: 130px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.champ { margin-bottom: .9rem; }
.ligne-champs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ligne { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.bouton, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer;
  padding: .6rem 1.1rem; font: inherit; font-weight: 700; font-size: 13.5px;
  background: var(--accent); color: #fff; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bouton:hover, button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(47,134,199,.22); }
.bouton.sobre, button.sobre { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.bouton.sobre:hover, button.sobre:hover { color: var(--ink); border-color: var(--ink-soft); box-shadow: none; }
.bouton.contour { background: transparent; color: var(--green); border-color: var(--green); }
.bouton.contour:hover { background: rgba(58,85,104,.08); box-shadow: none; }
.bouton.danger, button.danger { background: #fdecec; color: #922; border-color: #f3c2c2; }
.bouton:disabled, button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* La recherche en tête : un long champ arrondi, comme sur la maquette. */
.recherche-coureur {
  display: flex; align-items: center; gap: .9rem;
  border: 2px solid var(--green); border-radius: 100px;
  padding: .95rem 1.5rem; background: var(--surface);
  box-shadow: 0 10px 34px rgba(31,43,56,.14);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.recherche-coureur:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(47,134,199,.16), 0 12px 38px rgba(31,43,56,.18); }
.recherche-coureur svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--green); }
.recherche-coureur input[type=text] {
  flex: 1; min-width: 0; border: 0; padding: 0; background: transparent;
  font-size: 17px; font-weight: 500; box-shadow: none;
}
.recherche-coureur input[type=text]:focus { box-shadow: none; }
.recherche-coureur input::placeholder { color: var(--ink-faint); font-weight: 400; }
.recherche-coureur .bouton { border-radius: 100px; padding: .55rem 1.2rem; }

/* ---------- tableaux --------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: 10.5px; color: var(--ink-faint); white-space: nowrap;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(47,134,199,.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.temps { font-variant-numeric: tabular-nums; font-weight: 700; }
table.serre { font-size: 13px; }
table.serre th, table.serre td { padding: .35rem .5rem; }

.badge {
  display: inline-block; padding: .12rem .55rem; border-radius: 100px;
  font-size: 11px; font-weight: 700; background: var(--card); color: var(--ink-soft);
  border: 1px solid var(--line); vertical-align: middle;
}
.badge.dnf { background: #fdecec; color: #922; border-color: #f3c2c2; }
.badge.dsq { background: #f5e8fb; color: #6b2a86; border-color: #e3cdef; }
.badge.dns { background: #f0f1f2; color: #667; }
.badge.ok  { background: var(--accent); color: #fff; border-color: var(--accent); }

.pastille { color: var(--ink-faint); font-size: 12px; font-weight: 400; }

/* La place, en pastille : podium en bleu plein, le reste discret. */
.place-tag {
  display: inline-block; font-weight: 700; font-size: 12px; padding: .15rem .55rem;
  border-radius: 100px; background: var(--card); color: var(--ink-soft); border: 1px solid var(--line);
}
.place-tag.podium { color: #fff; background: var(--accent); border-color: var(--accent); }
.perf-cell { color: var(--accent); font-family: var(--display); font-size: 18px; letter-spacing: .02em; }

/* Références : le temps en gras, la course en petit dessous. */
.ref-label { color: var(--ink-soft); font-size: 12.5px; }
.ref-time { font-weight: 700; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.ref-race { color: var(--ink-faint); font-size: 11.5px; display: block; margin-top: 1px; }
td.ref-race { display: table-cell; }
a.ref-race:hover { color: var(--accent-d); }
tr.last-result td { background: rgba(58,85,104,.05); }
tr.last-result .ref-label { color: var(--green); }

/* Tableaux de classement : le rang en Bebas, coloré sur le podium. */
.rank { font-size: 19px; color: var(--ink-soft); width: 34px; }
tbody tr:nth-child(1) .rank { color: var(--accent); }
tbody tr:nth-child(2) .rank { color: var(--ink); }
tbody tr:nth-child(3) .rank { color: var(--green); }
.boards-points tbody tr:nth-child(1) .rank { color: var(--gold); }
.boards-points tbody tr:nth-child(2) .rank { color: var(--gold-d); }
.boards-points tbody tr:nth-child(3) .rank { color: var(--ink-soft); }
.runner-name { font-weight: 600; }
.runner-club { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.pts { font-weight: 700; color: var(--ink); }
.boards-points .pts { color: var(--gold-d); }
.boards-indice .pts { color: #e8590c; font-weight: 800; font-size: 15.5px; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.board { background: var(--surface); border: 1px solid var(--line); }
.boards-points .board { border-top: 3px solid var(--gold); }
.boards-points .board-head { background: rgba(184,147,63,.08); }
.boards-indice .board { border-top: 3px solid var(--accent); }
.boards-indice .board-head { background: rgba(47,134,199,.06); }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.board-head h4 { margin: 0; font-size: 22px; letter-spacing: .02em; }
.board-tag { font-size: 11px; color: var(--ink-faint); }
.board table th:first-child, .board table td:first-child { padding-left: 1.3rem; }
.board table th:last-child, .board table td:last-child { padding-right: 1.3rem; }
.board-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-faint); font-size: 14px; }
.board-empty strong { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: .4rem; }
@media (max-width: 820px) { .boards { grid-template-columns: 1fr; } }

/* Sur mobile, on masque les colonnes secondaires. */
@media (max-width: 720px) {
  .col-secondaire { display: none; }
  main { padding: 1.2rem .9rem 3rem; }
  .topbar-in { padding: .5rem .9rem; gap: .6rem; }
  .topbar nav { gap: .8rem; font-size: 13px; width: 100%; margin-left: 0; }
  .marque { min-height: 64px; gap: .6rem; }
  .marque img { height: 30px; }
  .marque-texte { font-size: 24px; }
  h1 { font-size: 30px; }
}

/* ---------- accueil : l'en-tête ------------------------------------------ */

/* Pleine largeur, photo en fond, voile clair pour garder le texte lisible. */
.hero {
  position: relative; isolation: isolate; text-align: center;
  margin: -2.2rem calc(50% - 50vw) 2.6rem; padding: 5rem clamp(18px, 4vw, 48px) 5.5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
.hero-veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(245,248,251,.86) 0%, rgba(245,248,251,.78) 55%, var(--bg) 100%); }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-kicker { color: var(--green-d); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .9rem; }
.hero h1 { font-size: clamp(50px, 8vw, 92px); margin: 0 0 1.1rem; line-height: .92; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 58ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 auto 1rem; }
.hero .recherche-coureur { max-width: 640px; margin: 1.4rem auto 0; text-align: left; }
.hero .note { color: var(--ink-soft); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin: 3rem 0 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.section-head .section-note { max-width: 40ch; font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.section-tag { display: inline-block; font-size: 11px; padding: .3rem .6rem; margin-bottom: .6rem; color: #fff; background: var(--green); }
.section-tag.or { background: var(--gold); }
.section-tag.bleu { background: var(--accent); }

.explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.explain-card { background: var(--surface); padding: 2.2rem; }
.explain-card h3 { font-family: var(--display); font-size: 30px; font-weight: 400; margin: 0 0 .8rem; letter-spacing: .01em; }
.explain-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0 0 .9rem; }
.explain-card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; margin-bottom: 1.1rem; color: #fff; background: var(--accent); }
.explain-card .tag.or { background: var(--gold); }
.tier-list-title { font-weight: 700; color: var(--ink); font-size: 14px; margin: 1.1rem 0 .3rem; }
.tier-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tier-list li { display: flex; justify-content: space-between; gap: .6rem; font-size: 13.5px; padding: .55rem .75rem; background: var(--card); border-left: 4px solid var(--green-d); }
.tier-list li:nth-child(1) { border-left-color: #7c3aed; background: rgba(124,58,237,.09); }
.tier-list li:nth-child(2) { border-left-color: #2563eb; background: rgba(37,99,235,.09); }
.tier-list li:nth-child(3) { border-left-color: #059669; background: rgba(5,150,105,.09); }
.tier-list li:nth-child(4) { border-left-color: #d97706; background: rgba(217,119,6,.09); }
.tier-list li:nth-child(5) { border-left-color: #6b7280; background: rgba(107,114,128,.09); }
.tier-name { color: var(--ink); font-weight: 600; }
.tier-name em { font-style: normal; font-weight: 500; color: var(--ink-faint); font-size: 12px; }
.tier-pts { color: var(--ink-faint); font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .explain-grid { grid-template-columns: 1fr; } .explain-card { padding: 1.4rem; } }

/* ---------- la fiche : l'en-tête de profil -------------------------------- */

.profile-hero { display: flex; gap: 2.2rem; align-items: flex-end; margin: 0 0 2rem; flex-wrap: wrap; }
.photo-frame {
  width: 150px; height: 150px; border-radius: 50%; flex: 0 0 auto;
  background: var(--card); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 58px; color: var(--green); letter-spacing: .04em;
}
.profile-id { flex: 1 1 260px; }
.profile-id .province { font-size: 12.5px; color: var(--green); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.profile-id h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 .4rem; }
.profile-id .meta { font-size: 13.5px; color: var(--ink-soft); }
.profile-id .meta span.sep { color: var(--ink-faint); margin: 0 .4rem; }
.profile-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }

/* ---------- la pastille de discipline -------------------------------------
   Mon jogging, Mon triathlon et Mon biathlon se ressemblent trop pour se
   distinguer au premier regard : une pastille sur l'avatar dit laquelle
   on lit, et sa couleur se retrouve sur le sous-titre.

   Le dessin est un masque, pas une image : la couleur vient donc du CSS,
   et une seule feuille suffit pour les trois disciplines. */
.photo-bloc { position: relative; flex: 0 0 auto; }
.sport-pastille {
  position: absolute; right: -6px; bottom: 2px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(31,43,56,.16);
}
/* Les pictogrammes de sport, en masque : la couleur vient du CSS, et le
   même fichier sert sur fond clair comme sur fond sombre. */
.ico-sport {
  display: block; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.ico-jogging   { -webkit-mask-image: url(sports/jogging.svg);   mask-image: url(sports/jogging.svg); }
.ico-triathlon { -webkit-mask-image: url(sports/triathlon.svg); mask-image: url(sports/triathlon.svg); }
.ico-biathlon  { -webkit-mask-image: url(sports/biathlon.svg);  mask-image: url(sports/biathlon.svg); }
.ico-velo      { -webkit-mask-image: url(sports/velo.svg);      mask-image: url(sports/velo.svg); }
.ico-natation  { -webkit-mask-image: url(sports/natation.svg);  mask-image: url(sports/natation.svg); }

.sport-pastille i { width: 30px; height: 30px; }

/* Une couleur par discipline, portée par le bloc : la pastille et le
   sous-titre la prennent ensemble, par héritage. */
.profile-hero.sport-cap       .sport-pastille,
.profile-hero.sport-cap       .province { color: var(--accent); }
.profile-hero.sport-triathlon .sport-pastille,
.profile-hero.sport-triathlon .province { color: var(--gold); }
.profile-hero.sport-biathlon  .sport-pastille,
.profile-hero.sport-biathlon  .province { color: var(--ok); }

/* ---------- le voile d'attente ---------------------------------------
   Certaines pages interrogent neuf cent mille résultats : deux secondes
   s'y passent sans que rien ne bouge, et on reclique. Le voile dit que
   le site travaille.

   Il ne paraît qu'au bout de 350 ms (voir chargement.js) : au-dessous,
   la page est déjà là et un éclair blanc ferait plus de mal que de
   bien. */
.voile {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(245, 248, 251, .82);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.voile.actif { opacity: 1; pointer-events: all; }
/* Une carte, parce que le voile passe aussi au-dessus de la photo du
   bandeau : sans elle, le texte se posait sur des chaussures de course. */
.voile-boite {
  text-align: center; color: var(--ink-soft); font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 1.6rem 2.4rem 1.3rem;
  box-shadow: 0 6px 28px rgba(31, 43, 56, .14);
}

/* La piste d'attente : un stade, et un trait qui en fait le tour.

   Le tour dure 1,15 s. C'est court a dessein — le voile parait au bout
   de 350 ms, et l'attente la plus courante est de l'ordre d'une demi-
   seconde : il faut qu'a cet instant le trait ait deja franchi un quart
   de piste, sinon le dessin a l'air arrete.

   Le trace mesure 269 unites, mesurees sur la page meme par
   getTotalLength() : le calcul a la main (2 x 56 + 2 x pi x 25 = 274)
   tombe a cote, l'arrondi des virages n'est pas tout a fait un cercle.
   Le trait en couvre 57, le vide les 212 restantes — et la somme fait
   exactement un tour, sans quoi le trait saute a chaque passage. */
.piste { position: relative; width: 120px; height: 64px; margin: 0 auto .7rem; }
.piste svg { position: absolute; inset: 0; width: 120px; height: 64px; }
.piste path { fill: none; stroke-width: 3; stroke-linecap: round; }
.piste-fond { stroke: var(--line-soft); }
.piste-trait {
  stroke: var(--accent); stroke-dasharray: 57 212;
  animation: piste-tour 1.15s linear infinite;
}
@keyframes piste-tour {
  from { stroke-dashoffset: 269; }
  to   { stroke-dashoffset: 0; }
}
/* Le coureur au centre, avec un appui : deux pixels suffisent. Plus, et
   il saute ; moins, et il est immobile au milieu d'une piste qui tourne. */
.piste i {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  color: var(--accent); animation: piste-appui .575s ease-in-out infinite alternate;
}
@keyframes piste-appui {
  from { transform: translateY(1px); }
  to   { transform: translateY(-2px); }
}
/* Qui a demandé moins d'animations n'en reçoit pas : la piste et le
   coureur restent, immobiles. Le trait couvre alors un quart de tour,
   pour que le dessin garde sa forme. */
@media (prefers-reduced-motion: reduce) {
  .piste-trait { animation: none; stroke-dashoffset: 0; stroke-dasharray: 67 202; }
  .piste i { animation: none; }
}

/* La visite guidee du nouvel arrivant : un projecteur, et une bulle.

   L'anneau ne perce pas un calque — il porte une ombre de 9 999 px qui
   couvre l'ecran SAUF lui. Un seul element a placer, et le projecteur
   suit l'element eclaire quand la page bouge. */
.visite-voile { position: fixed; inset: 0; z-index: 940; cursor: pointer; }
.visite-anneau {
  position: absolute; z-index: 941; pointer-events: none;
  border-radius: 7px; border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(20, 30, 40, .55);
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}
.visite-bulle {
  position: absolute; z-index: 942;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 1rem 1.1rem; box-shadow: 0 10px 34px rgba(31, 43, 56, .26);
  font-size: 14px; line-height: 1.5;
}
.visite-compte {
  margin: 0 0 .3rem; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.visite-texte { margin: 0 0 .9rem; }
.visite-actions { margin: 0; display: flex; gap: .5rem; align-items: center; }
/* Qui a demande moins d'animations garde le projecteur, sans glissement. */
@media (prefers-reduced-motion: reduce) {
  .visite-anneau { transition: none; }
}

/* Le numero de l'etape, devant le titre de son bloc : le meme chiffre
   que dans le bandeau de depart, pour qu'on retrouve ou l'on va. */
.etape-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; margin-right: .5rem; vertical-align: -.25rem;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
}

/* Le bloc vise par le lien du bandeau s'allume. « :target » designe
   l'element dont l'identifiant est dans l'adresse : le navigateur le
   sait tout seul, il n'y a rien a brancher. L'aide se deplace donc avec
   le clic, et disparait des qu'on va ailleurs. */
.carte.etape { scroll-margin-top: 1.5rem; }
.carte.etape:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(1, 167, 194, .16);
}

/* La colonne des cases, teintee de haut en bas : c'est la seule chose a
   faire dans un tableau de huit colonnes, et elle etait la plus etroite
   et la plus a gauche. */
.col-cocher { background: rgba(1, 167, 194, .07); width: 1%; white-space: nowrap; }
/* « Tout cocher » : la case maitresse n'avait qu'une infobulle, que
   personne ne survole. */
.tout-cocher-lib { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.tout-cocher-lib span { font-size: 10.5px; letter-spacing: .04em; }

/* Oui et Non, en pastilles : deux boutons radio de douze pixels ne se
   lisent pas comme un choix. La reponse retenue se voit de loin. */
.question label {
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: .22rem .75rem; margin-right: .5rem; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.question label:hover { border-color: var(--accent); }
.question label:has(input:checked) {
  border-color: var(--accent); background: rgba(1, 167, 194, .1);
  font-weight: 600; color: var(--ink);
}
/* Faute de « :has » — les navigateurs d'avant 2023 — la pastille reste
   lisible : c'est le bouton radio lui-meme qui marque la reponse. */

/* Le bandeau de depart, pour le compte qui n'a encore rien coche. Il
   emprunte la couleur d'accent sans crier : c'est une aide, pas une
   alerte. */
.depart { border-left: 3px solid var(--accent); }
.depart-etapes { margin: .4rem 0 0; padding-left: 1.4rem; line-height: 1.6; }
.depart-etapes li { margin-bottom: .35rem; }
.depart-etapes a { text-decoration: none; }
.depart-etapes a strong { color: var(--accent); }

/* Une question fermee : la demande, puis Oui et Non sur une ligne. */
.question { border: 0; padding: 0; margin: 0 0 .7rem; }
.question legend { padding: 0; margin-bottom: .2rem; }
.question label { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1.2rem; }

/* Lu par les lecteurs d'écran, invisible à l'oeil. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 720px) {
  .photo-frame { width: 104px; height: 104px; font-size: 40px; }
  .profile-hero { gap: 1.2rem; }
  .sport-pastille { width: 40px; height: 40px; right: -4px; }
  .sport-pastille i { width: 22px; height: 22px; }
}

.indice-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.8rem 1.3rem 2rem; text-align: center; }
.indice-num { font-size: 86px; color: var(--accent); line-height: .9; }
.indice-num a { color: inherit; }
.indice-cap { font-size: 12px; color: var(--ink-soft); margin-top: .2rem; }
.indice-attente { font-size: 14px; color: var(--ink-soft); max-width: 30ch; }
.indice-attente strong { display: block; font-family: var(--display); font-size: 34px; color: var(--green); font-weight: 400; margin-bottom: .3rem; }

/* ---------- assistant d'import ------------------------------------------ */

.etapes { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; font-size: 12.5px; }
.etapes span {
  padding: .4rem .9rem; border-radius: 100px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600;
}
.etapes span.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.etapes span.faite { background: var(--accent-l); border-color: #bcd9ef; color: var(--accent-d); }

.apercu { font-size: 12px; }
.apercu th, .apercu td { padding: .3rem .45rem; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.apercu thead th { background: var(--card); }
.apercu select { font-size: 12px; padding: .25rem; }

.barre { height: 8px; background: var(--card); border-radius: 100px; overflow: hidden; }
.barre > div { height: 100%; background: var(--accent); width: 0; transition: width .25s; }

.journal {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  background: #1f2b38; color: #dbe7f0; border-radius: var(--radius);
  padding: .8rem 1rem; max-height: 240px; overflow: auto; white-space: pre-wrap;
}

.connexion { max-width: 400px; margin: 2rem auto 6vh; }
.bandeau-course {
  margin: -2.2rem calc(50% - 50vw) 0; height: 220px; position: relative; overflow: hidden; isolation: isolate;
}
.bandeau-course img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.bandeau-course::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,43,56,.10) 0%, rgba(245,248,251,.55) 70%, var(--bg) 100%); }
.bandeau-course .marque-grande { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; height: 64px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
@media (max-width: 720px) { .bandeau-course { height: 140px; } .bandeau-course .marque-grande { height: 44px; } }
.connexion .carte { padding: 2rem 2rem 1.6rem; }
.connexion h1 { font-size: 38px; }

/* ---------------------------------------------------------------------
   Les places, colorees selon ce qu'elles valent.

   Or, argent, bronze : les trois places qui se nomment. Au-dela, la
   couleur ne peut plus etre absolue — 40e sur 45 n'est pas 40e sur 3 000
   — alors on teinte selon la part du peloton devancee, en degres de
   bleu de plus en plus pales.
   --------------------------------------------------------------------- */
.rang {
  display: inline-block; min-width: 2.1rem; padding: .06rem .4rem;
  border-radius: 100px; font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; font-size: 12.5px;
}
.rang-or     { background: #fbf0c9; color: #7a5a00; box-shadow: inset 0 0 0 1px #e8cf7e; }
.rang-argent { background: #eceff1; color: #4a5560; box-shadow: inset 0 0 0 1px #c8ced4; }
.rang-bronze { background: #f6e3d3; color: #7a4a26; box-shadow: inset 0 0 0 1px #dcb894; }
.rang-d1     { background: #d6e8f6; color: #1b4f75; }   /* dans les 5 % de tete   */
.rang-d2     { background: #e2eef8; color: #1f6ea8; }   /* dans les 15 %          */
.rang-d3     { background: #ecf3fa; color: #2f86c7; }   /* dans les 30 %          */
.rang-d4     { background: #f3f7fb; color: #5b7f9c; }   /* premiere moitie        */

@media print {
  .rang { background: none !important; box-shadow: none !important; color: #000 !important; }
  .rang-or, .rang-argent, .rang-bronze { font-weight: 700; }
}

/* ---------------------------------------------------------------------
   Sous-menu de la barre de navigation — CSS seul, survol et clavier.
   --------------------------------------------------------------------- */
.menu { position: relative; display: inline-flex; align-items: center; }
.menu > ul {
  position: absolute; top: 100%; left: 0; z-index: 40; display: none;
  min-width: 15rem; margin: .4rem 0 0; padding: .3rem 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(31,43,56,.16);
}
/* Le panneau est detache du bouton de .4rem : joli, mais la souris
   traverse un trou ou ni l'un ni l'autre n'est survole, et le menu se
   referme avant qu'on ait atteint la premiere ligne. Ce pont invisible
   rend le trou survolable — il appartient au <ul>, donc le survol ne
   quitte jamais .menu. */
.menu > ul::before {
  content: ""; position: absolute; left: 0; right: 0; top: -.4rem; height: .4rem;
}
.menu:hover > ul, .menu:focus-within > ul { display: block; }
.menu > ul li { margin: 0; }
.menu > ul a { display: block; padding: .45rem 1rem; color: var(--ink); font-weight: 500; white-space: nowrap; border: 0; }
.menu > ul a:hover, .menu > ul a:focus { background: var(--accent-l); color: var(--accent-d); }
@media print { .menu > ul { display: none !important; } }

/* « C'est la même course que … » */
.reunir { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .1rem 0 .7rem; font-size: 13.5px; color: var(--ink-soft); }
.reunir select { max-width: 26rem; padding: .3rem .5rem; font-size: 13.5px; }
.reunir .bouton { padding: .35rem .8rem; font-size: 13px; }

/* Connexion par un fournisseur d'identité. */
.separateur-ou { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .8rem; color: var(--ink-faint); font-size: 12.5px; }
.separateur-ou::before, .separateur-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bouton-identite { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-bottom: .5rem; text-decoration: none; }

/* ---------- profil : avatars, photo --------------------------------------- */

.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatars { display: flex; flex-wrap: wrap; gap: .6rem; }
.avatar-choix { position: relative; width: 64px; height: 64px; border-radius: 50%; cursor: pointer; margin: 0;
  border: 3px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.avatar-choix:hover { transform: translateY(-2px); }
.avatar-choix.actif, .avatar-choix:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,167,194,.18); }
.avatar-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-choix img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.avatar-initiales { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; background: var(--card); color: var(--green); font-family: var(--display); font-size: 26px; }
input[type=file] { font: inherit; font-size: 13px; }

/* ---------- badges ---------------------------------------------------------- */

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .9rem .5rem; }
.badge-item { text-align: center; font-size: 12px; line-height: 1.25; }
.badge-item img { width: 84px; height: auto; display: block; margin: 0 auto .3rem; filter: drop-shadow(0 4px 8px rgba(31,43,56,.18)); transition: transform .15s ease; }
.badge-item:hover img { transform: translateY(-3px) scale(1.04); }
.badge-nom { display: block; font-weight: 700; color: var(--ink); }
.badge-quand { display: block; color: var(--ink-faint); font-size: 11px; margin-top: .1rem; }
.badge-item.verrouille img { filter: grayscale(1); opacity: .32; }
.badge-item.verrouille .badge-nom { color: var(--ink-faint); font-weight: 600; }
.badge-item.verrouille:hover img { opacity: .5; }
.badges-mini { display: flex; gap: .2rem; margin-top: .6rem; align-items: center; flex-wrap: wrap; }
.badges-mini img { width: 38px; height: auto; filter: drop-shadow(0 2px 4px rgba(31,43,56,.2)); display: block; }
.badges-mini a { display: block; line-height: 0; }
.badges-mini a:hover img { filter: drop-shadow(0 3px 7px rgba(31,43,56,.35)); }
/* « +6 » : le reste de la collection, d'un clic. */
.badges-mini .badges-reste,
.badges-mini .badges-tous {
  line-height: 1; margin-left: .35rem; padding: .3rem .55rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: var(--surface);
}
.badges-mini .badges-reste:hover,
.badges-mini .badges-tous:hover { color: var(--ink); border-color: var(--accent); text-decoration: none; }
/* L'en-tête collant ne doit pas masquer la section visée par le lien. */
#badges { scroll-margin-top: 110px; }

/* ---------- triathlon : les trois efforts, en barre ------------------------- */

.segments { display: flex; gap: 2px; min-width: 260px; }
.seg { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: .25rem .4rem; border-radius: 2px; font-size: 11px; color: #fff; }
.seg b { font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-natation_s { background: #0781a0; }
.seg-t1_s, .seg-t2_s { background: var(--ink-faint); }
.seg-velo_s { background: var(--green); }
.seg-cap_s { background: #b8933f; }

/* ---------------------------------------------------------------------
   La bascule de vue, pour les administrateurs seulement.

   Quand elle est active, le lien du retour se voit de loin : sans cela on
   oublie qu'on regarde le site en visiteur, et on croit à une régression.
   --------------------------------------------------------------------- */
.vue-bascule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .15rem .5rem;
}
.vue-bascule[href$="/vue/admin"] {
  background: var(--gold);
  border-color: var(--gold-d);
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Vos prochains rendez-vous.

   Trois colonnes suffisent : quand, quoi, où. Le nom sous lequel la
   course est annoncée et la liste de ses épreuves passent en infobulle
   — ils répondaient à une question qu'on ne se pose qu'une fois, et
   noyaient la date, qui est ce qu'on vient chercher.
   --------------------------------------------------------------------- */
.agenda .agenda-quand { white-space: nowrap; }
.agenda .agenda-quand strong { display: block; font-size: 15px; color: var(--ink); }
.agenda .agenda-reste {
  display: inline-block; margin-top: .15rem;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-faint);
}
/* Le petit « ? » qui annonce une infobulle. */
.aide {
  display: inline-block; width: 14px; height: 14px; line-height: 14px;
  text-align: center; border-radius: 50%;
  background: var(--line); color: var(--ink-soft);
  font-family: var(--texte); font-size: 10px; font-weight: 700;
  vertical-align: middle; cursor: help; letter-spacing: 0;
}
h2 .aide { vertical-align: .25em; }

/* ---------------------------------------------------------------------
   Le bandeau d'un compte regardé en lecture seule : cinq pages, et de
   quoi passer de l'une à l'autre sans repasser par la liste.
   --------------------------------------------------------------------- */
.compte-nav { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.compte-nav-liens { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.compte-nav .bouton.actif {
  background: var(--ink); border-color: var(--ink); color: #fff; cursor: default;
}
.compte-nav .bouton.eteint {
  opacity: .45; cursor: not-allowed; text-decoration: line-through;
}

/* La marque du mode « nouveau venu » : un mode où la fiche paraît vide
   se doit d'être annoncé, sinon on croit à une perte de données. */
.barre-compte .barre-essai {
  background: var(--accent); color: #06232c; font-weight: 700;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 4px;
}

/* Le choix de l'affichage des resultats — par evenement ou par date —
   dans le titre de la section. Meme habillage que l'ancien selecteur de
   mise en page, qui occupait le bandeau de test : deux pastilles, celle
   en cours en plein. */
.vues { display: inline-flex; align-items: center; gap: .1rem; flex-wrap: wrap;
        margin-left: .6rem; vertical-align: middle; }
.vues a, .vues span.actif {
  padding: .14rem .5rem; border-radius: 3px; line-height: 1.4;
  font-size: 11.5px; font-weight: 600;
}
.vues a { color: var(--ink-soft); }
.vues a:hover { background: rgba(0,0,0,.06); color: var(--ink); text-decoration: none; }
.vues span.actif { background: var(--ink); color: #fff; }
@media print { .vues { display: none; } }
