/* ============================================================
   Escrime Stuff — thème « La piste »
   Marine plus profond, papier clair, titres Montserrat en gras, cartes arrondies, voyants lisibles, et un petit repère de piste
   (point rouge — trait central — point vert) sous le titre de chaque page.
   Le liseré bleu-blanc-rouge sous la barre du haut est conservé.
   Ne change que l'apparence : aucun texte, aucune action, aucune donnée.
   À charger EN DERNIER (après plateforme.css). Retour arrière : retirer sa ligne <link> de index.html.
   ============================================================ */
:root{
  --brand-navy:     #142E62;   /* barre du haut et menu : le marine de la charte */
  --tri-bleu-fonce: #142E62;
  --tri-bleu:       #1F4BB0;
  --accent:         #1F4BB0;
  --accent-soft:    #E5ECFA;
  --paper:          #F2F4F9;
  --line:           #DDE3EF;
  --ink:            #101828;
  --steel:          #475467;
  --red:            #B8332F;  --red-soft:   #FCEBEB;
  --green:          #1B7A45;  --green-soft: #E3F2E9;
  --amber:          #8A5A0B;  --amber-soft: #FDF1DD;
  --blue:           #1F4BB0;  --blue-soft:  #E5ECFA;
  --bt-rayon:       8px;
  --bt-rayon-carte: 12px;
}

/* ---------- Barre du haut ---------- */
.topbar{ padding-top: 12px; padding-bottom: 12px; }
.brand h1{ font-weight: 700; }

/* ---------- Menu : marine, titres de familles en italique, lame rouge sur l'onglet actif ---------- */
.menu-nav{ background-color: var(--brand-navy); }
.menu-titre{ color: rgba(255,255,255,.5); }
.menu-nav .tab-btn.active{ background: rgba(255,255,255,.14); font-weight: 600; }
.menu-nav .tab-btn.active::before{ background: #E5484D; }

/* ---------- Titre de page + repère de piste ---------- */
.detail-head{
  position: relative;
  padding-bottom: 16px; margin-bottom: 14px;
  background:
    linear-gradient(var(--tri-bleu), var(--tri-bleu)) center bottom / 2px 12px no-repeat,
    linear-gradient(#B9C4DD, #B9C4DD) left bottom 5px / 100% 1.5px no-repeat;
}
.detail-head::before, .detail-head::after{
  content: ''; position: absolute; bottom: 0; width: 10px; height: 10px; border-radius: 50%;
}
.detail-head::before{ left: 0;  background: #E5484D; }
.detail-head::after{  right: 0; background: #3DB36B; }
.detail-head h2{ font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--brand-navy); }
.detail-head .sub{ color: var(--steel); }
.main-empty h2{ font-weight: 700; color: var(--brand-navy); }

/* ---------- Cartes, tableaux et fiches : coins arrondis, bordure fine ---------- */
.stat-card, .subvention-card, .contact-card{ border-radius: 10px; border-color: var(--line); }
.stat-card{ border-top: 3px solid var(--tri-bleu); }
.stat-card .num{ font-weight: 700; color: var(--brand-navy); }
.grid-fields{ border-radius: 10px; overflow: hidden; }
.table-scroll{ border-radius: 10px; }
.sidebar{ background: #fff; }
.eq-item.active{ background: var(--accent-soft); border-left-color: var(--tri-bleu); }
.eq-item .name{ color: var(--ink); }

/* ---------- Voyants : pastilles d'état plus lisibles ---------- */
.dot.ok{   background: #3DB36B; }
.dot.due{  background: #E5A23A; }
.dot.over{ background: #E5484D; }
.dot.arret{ background: var(--tri-bleu); }
.status-pill{ font-size: 12.5px; padding: 6px 13px; }
.status-pill.ok{   background: var(--green-soft); color: var(--green); }
.status-pill.due{  background: var(--amber-soft); color: var(--amber); }
.status-pill.over{ background: var(--red-soft);   color: var(--red); }
.status-pill.arret{ background: var(--blue-soft); color: var(--blue); }
.menu-badge{ background: #E5484D; }

/* ---------- Divers ---------- */
.toast{ background: var(--brand-navy); }
.section-block h3{ color: var(--steel); }

@media (max-width: 900px){
  .detail-head h2{ font-size: 26px; }
}
@media print{
  .detail-head{ background: none; padding-bottom: 6px; }
  .detail-head::before, .detail-head::after{ display: none; }
}
