/* Passeo — image de marque : vert terrain, craie, cartons jaune et rouge. Outfit (titres) + Barlow (texte), SIL OFL. */
@font-face{font-family:"Barlow";src:url("polices/Barlow-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url("polices/Barlow-600.woff2") format("woff2");font-weight:600 700;font-display:swap}
@font-face{font-family:"Outfit";src:url("polices/outfit-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Outfit";src:url("polices/outfit-latin-800-normal.woff2") format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("polices/BarlowCondensed-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("polices/BarlowCondensed-800.woff2") format("woff2");font-weight:800;font-display:swap}
:root{--vert:#0F5132;--vert-f:#14231B;--chasuble:#FFC81F;--fond:#f4f7f5;--carte:#fff;--texte:#16241b;--gris:#56665c;--ligne:#dde5df;--rouge:#c62828;--ambre:#8a5a00;--titre:"Outfit","Barlow",sans-serif}
*{box-sizing:border-box}
body{margin:0;font-family:Barlow,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.45;color:var(--texte);background:var(--fond)}
a{color:var(--vert)}
.entete{background:var(--vert);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;position:sticky;top:0;z-index:5}
.marque{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.marque img{height:32px;width:auto;display:block}
.marque span{font-size:14px;font-weight:600;opacity:.85;border-left:1px solid rgba(255,255,255,.35);padding-left:10px;line-height:1.2}
.menu-btn{background:none;border:0;color:#fff;font-size:24px;line-height:1;padding:4px 8px;cursor:pointer}
.lien{background:none;border:0;cursor:pointer;font:inherit;width:100%}
.contenu{max-width:980px;margin:0 auto;padding:16px}
h1{font-family:var(--titre);font-weight:700;font-size:32px;line-height:1.1;margin:8px 0 16px}
h2{font-family:var(--titre);font-weight:700;font-size:22px;margin:24px 0 10px}
.carte{background:var(--carte);border:1px solid var(--ligne);border-radius:10px;padding:16px;margin-bottom:16px}
.grille{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:16px}
.stat{background:var(--carte);border:1px solid var(--ligne);border-radius:10px;padding:14px}
.stat b{display:block;font-family:var(--titre);font-weight:800;font-size:36px;line-height:1.1;color:var(--vert)}
.stat span{color:var(--gris);font-size:14px}
label{display:block;font-weight:600;font-size:14px;margin:12px 0 4px}
input[type=text],input[type=email],input[type=password],input[type=tel],input[type=date],input[type=number],select,textarea{width:100%;padding:11px 12px;border:1px solid #b9c6bd;border-radius:8px;font:inherit;background:#fff}
textarea{min-height:80px}
.case{display:flex;align-items:center;gap:8px;font-weight:400;margin-top:12px}
.case input{width:20px;height:20px}
.rangee{display:grid;gap:0 12px;grid-template-columns:1fr}
.btn{display:inline-block;background:var(--vert);color:#fff;border:0;border-radius:8px;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;margin-top:14px}
.btn.sec{background:#fff;color:var(--vert);border:1px solid var(--vert)}
.btn.danger{background:#fff;color:var(--rouge);border:1px solid var(--rouge)}
.btn.petit{padding:6px 12px;font-size:14px;margin-top:0}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.actions form{margin:0}
table{width:100%;border-collapse:collapse;background:var(--carte);border:1px solid var(--ligne);border-radius:10px;overflow:hidden}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--ligne);vertical-align:top}
th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:var(--gris);background:#fafcfb}
tr:last-child td{border-bottom:0}
.droite{text-align:right}
.alerte{padding:12px 14px;border-radius:8px;margin:0 0 16px}
.alerte.ok{background:#e3f3ea;color:var(--vert-f)}
.alerte.err{background:#fbe9e7;color:var(--rouge)}
.champ-err{border:2px solid var(--rouge)!important;background:#fff6f5}
.pastille{display:inline-block;padding:2px 10px;border-radius:99px;font-size:13px;font-weight:600;white-space:nowrap;flex-shrink:0;align-self:flex-start;line-height:1.5}
.pastille.actif{background:#e3f3ea;color:var(--vert-f)}
.pastille.inactif{background:#eceff0;color:#55615a}
.pastille.invite{background:#fdf1d8;color:var(--ambre)}
.onglets{display:flex;gap:8px;margin-bottom:16px}
.onglets a{padding:8px 16px;border-radius:99px;border:1px solid var(--vert);text-decoration:none;font-weight:600}
.onglets a.actif{background:var(--vert);color:#fff}
.note{color:var(--gris);font-size:14px}
.pied{text-align:center;color:var(--gris);font-size:13px;padding:24px 16px}
details.carte summary{font-weight:700;cursor:pointer}
.auth{max-width:420px;margin:24px auto}
.auth-logo{display:block;margin:28px auto 8px;height:56px;width:auto}
.auth-slogan{text-align:center;color:var(--gris);margin:0 0 4px}
@media (max-width:899px){
  table.fiches thead{display:none}
  table.fiches,table.fiches tbody,table.fiches tr,table.fiches td{display:block;width:100%}
  table.fiches tr{border-bottom:1px solid var(--ligne);padding:8px 0}
  table.fiches td{border:0;padding:4px 12px}
  table.fiches td[data-t]::before{content:attr(data-t) " : ";color:var(--gris);font-size:13px}
  .droite{text-align:left}
}
@media (min-width:641px){
  .rangee{grid-template-columns:1fr 1fr}
}
@media (min-width:900px){
  .menu-btn{display:none}
}
.pastille.alerte{background:#fbe9e7;color:var(--rouge)}
.cal-barre{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-bottom:10px}
.legende{font-size:13px;margin:0 0 12px}
.puce{display:inline-block;border-radius:6px;padding:2px 7px;font-size:12.5px;text-decoration:none;border-left:4px solid;margin:2px 0;line-height:1.3}
a.puce{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.puce.confirme{background:#e3f3ea;color:var(--vert-f);border-color:var(--vert)}
.puce.attente{background:#fdf1d8;color:#6b4700;border-color:#d9940a}
.puce.nonpourvu{background:#fbe9e7;color:var(--rouge);border-color:var(--rouge)}
.puce.brouillon{background:#eceff0;color:#55615a;border-color:#8a968f}
.puce.annulee{background:#f4f4f4;color:#8a968f;border-color:#c5ccc8;text-decoration:line-through}
.cal-grille{display:none}
.cal-liste .cal-ligne{display:flex;justify-content:space-between;align-items:center;gap:10px;text-decoration:none;color:inherit;margin-bottom:8px;padding:12px 14px}
.cal-liste h2{font-size:15px;margin:16px 0 8px;color:var(--gris)}
.gros{font-size:18px;padding:16px 22px;width:100%}
.kv{margin:0}
.kv dt{color:var(--gris);font-size:13px;margin-top:8px}
.kv dd{margin:0;font-weight:600}
.stat.rouge b{color:var(--rouge)}
.stat.ambre b{color:var(--ambre)}
a.stat{text-decoration:none;color:inherit;display:block}
.ligne-paie{border-top:1px solid var(--ligne);padding:12px 0}
.ligne-paie:first-child{border-top:0}
.mini{display:grid;gap:0 10px;grid-template-columns:repeat(2,1fr)}
.mini label{margin-top:8px;font-size:13px}
@media (min-width:641px){.mini{grid-template-columns:repeat(5,1fr)}}
@media (min-width:760px){
  .cal-grille{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--ligne);border-radius:10px;overflow:hidden;background:var(--ligne);gap:1px}
  .cal-tete{background:#fafcfb;padding:6px;text-align:center;font-size:13px;color:var(--gris);font-weight:600}
  .cal-case{background:#fff;min-height:104px;padding:4px 5px;min-width:0}
  .cal-case.hors{background:#f6f8f7}
  .cal-case.hors .cal-num{color:#a9b3ad}
  .cal-case.auj .cal-num{background:var(--vert);color:#fff;border-radius:99px;padding:1px 7px}
  .cal-num{display:inline-block;font-size:13px;text-decoration:none;color:var(--texte);margin-bottom:2px}
  .cal-liste.mobile{display:none}
}
@media print{
  .entete,.nav,.pied,.no-print,.btn{display:none!important}
  body{background:#fff}
  .contenu{max-width:none;padding:0}
}

.pied img{height:16px;vertical-align:-3px;margin-right:4px}
/* Évaluations : bouton de sélection (vert + coche + texte, jamais la couleur seule) */
.btn-selection{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:10px;border:2px solid #b9c6bd;background:#fff;color:var(--texte);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.btn-selection.oui{background:#e3f3ea;border-color:#1e7d46;color:#0f5132}
.btn-selection:disabled{opacity:.6}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
[hidden]{display:none!important}
/* Menu par groupes : 1re barre = groupes, 2e barre = options du groupe ouvert */
.sousnav{display:none}
@media(min-width:900px){
  .sousnav{display:flex;flex-wrap:wrap;align-items:center;gap:2px;background:#fff;border-bottom:1px solid var(--ligne);padding:0 14px}
  .sousnav-titre{font-family:var(--titre);font-weight:700;color:var(--vert);padding:10px 14px 10px 6px;margin-right:6px;border-right:1px solid var(--ligne)}
  .sousnav a{color:var(--texte);text-decoration:none;padding:10px 12px;font-size:15px}
  .sousnav a:hover{color:var(--vert)}
  .sousnav a[aria-current=page]{box-shadow:inset 0 -3px 0 var(--vert);font-weight:600;color:var(--vert)}
}
.dossard{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 6px;border-radius:6px;background:var(--chasuble);color:#14231b;font-family:var(--titre);font-weight:800;font-size:16px;vertical-align:middle}
.recherche-rapide input{flex:1;min-width:220px;max-width:520px}
.raccourcis{margin:10px 0 6px;flex-wrap:wrap}
.barres{display:grid;gap:6px}.barres div{display:grid;grid-template-columns:150px 1fr 48px;gap:10px;align-items:center;font-size:14px}
.barres i{display:block;height:12px;border-radius:6px;background:var(--vert);min-width:2px}
.barres a{color:inherit}
.deux{display:grid;gap:16px}@media(min-width:900px){.deux{grid-template-columns:1fr 1fr}}
input[type=search]{padding:11px 12px;border:1px solid #b9c6bd;border-radius:8px;font:inherit;background:#fff}
form.actions[role=search]{align-items:center;margin:12px 0}form.actions[role=search]>.btn{margin-top:0}form.actions[role=search]>input{margin:0}
/* ===== Calendrier : événements façon feuille de match =====
   Confirmé = pastille pleine avec crochet · En attente = carton jaune · Non pourvu = carton rouge · Brouillon = contour pointillé */
.ico{display:inline-block;flex:none;width:12px;height:12px;position:relative;box-sizing:border-box}
.confirme>.ico{border-radius:50%;background:#fff}
.confirme>.ico::after{content:"";position:absolute;left:3.5px;top:1.5px;width:3px;height:6px;border:solid var(--vert);border-width:0 2px 2px 0;transform:rotate(45deg)}
.attente>.ico{width:9px;height:13px;border-radius:2px;background:var(--chasuble);transform:rotate(-10deg);box-shadow:0 0 0 1px #a87b00}
.nonpourvu>.ico{width:9px;height:13px;border-radius:2px;background:#d32f2f;transform:rotate(10deg);box-shadow:0 0 0 1px #8e1c1c}
.brouillon>.ico{border-radius:50%;border:2px dashed #7b8780}
.evt{display:flex;align-items:center;gap:5px;margin:3px 0;padding:3px 6px;border-radius:5px;font-size:12.5px;line-height:1.25;text-decoration:none;min-width:0;border:1.5px solid transparent}
.evt b{font-family:var(--titre);font-weight:700;flex:none}
.evt .t{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.evt.confirme{background:var(--vert);color:#fff}
.evt.attente{background:#fff8e1;color:#4d3900;border-color:#e0b53a}
.evt.nonpourvu{color:#8e1c1c;font-weight:600;border-color:#d32f2f;background:repeating-linear-gradient(135deg,#fff,#fff 6px,#fde3e0 6px,#fde3e0 12px)}
.evt.brouillon{background:transparent;color:#55615a;border:1.5px dashed #9aa59f;font-style:italic}
.evt:hover,.evt:focus-visible{outline:2px solid var(--vert-f);outline-offset:1px}
.legende{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;margin:0 0 12px}
.evt-cle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px;font-weight:600;color:var(--texte)}
.evt-cle.confirme>.ico{background:var(--vert)}.evt-cle.confirme>.ico::after{border-color:#fff}
.evt-ligne{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--ligne);border-radius:12px;margin-bottom:8px;text-decoration:none;color:inherit;overflow:hidden;min-height:60px;padding-right:12px}
.evt-ligne .h{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;min-width:72px;padding:8px 6px;font-family:var(--titre);line-height:1.15}
.evt-ligne .h b{font-size:17px}.evt-ligne .h small{font-size:12px;opacity:.85}
.evt-ligne .c{display:flex;flex-direction:column;min-width:0;padding:8px 0}
.evt-ligne .c strong{overflow:hidden;text-overflow:ellipsis}
.evt-ligne.confirme .h{background:var(--vert);color:#fff}
.evt-ligne.attente .h{background:var(--chasuble);color:#14231b}
.evt-ligne.nonpourvu .h{background:#d32f2f;color:#fff}
.evt-ligne.nonpourvu{border-color:#d32f2f}
.evt-ligne.brouillon .h{background:repeating-linear-gradient(135deg,#eceff0,#eceff0 6px,#fff 6px,#fff 12px);color:#55615a}
.evt-ligne.brouillon{border-style:dashed}
@media(max-width:480px){.evt-ligne{grid-template-columns:auto 1fr}.evt-ligne>.evt-cle{grid-column:2;padding-bottom:8px;margin-top:-6px}}
/* ===== Téléphone et tablette ===== */
html{-webkit-text-size-adjust:100%}
img,svg,canvas{max-width:100%}
.contenu{overflow-wrap:anywhere}
@media screen and (max-width:1023px){table:not(.fiches):not(.impr-notes){display:block;overflow-x:auto;max-width:100%}}
@media(max-width:899px){
  /* Cibles tactiles confortables (44 px) et pas de zoom automatique d'iOS sur les champs (16 px) */
  .btn,.btn.petit,.btn-selection{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
  .btn.petit{padding:8px 14px;font-size:15px}
  input[type=text],input[type=email],input[type=password],input[type=tel],input[type=date],input[type=time],input[type=number],input[type=search],select,textarea{min-height:44px;font-size:16px}
  input[type=file]{min-height:44px;padding:8px 0;max-width:100%}
  .case{min-height:44px}
  .menu-btn{min-width:44px;min-height:44px}
  table.fiches tr{background:#fff;border:1px solid var(--ligne);border-radius:12px;margin-bottom:8px;padding:8px 2px}
  table.fiches td form{display:inline-block;margin:2px 0}
  .cal-barre{flex-direction:column;align-items:stretch}
  .cal-barre .actions{justify-content:space-between}
  .cal-barre .actions strong{flex:1;text-align:center}
  h1{font-size:28px}
  .contenu{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .entete{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
}
/* Tablette : les fiches se rangent en grille plutôt qu'en une longue colonne */
@media(min-width:641px) and (max-width:899px){
  table.fiches tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 8px;padding:10px 6px}
  table.fiches td{width:auto}
  table.fiches td:first-child,table.fiches td[colspan]{grid-column:1/-1}
  table.fiches td:last-child:not([data-t]){grid-column:1/-1}
  .rangee{grid-template-columns:1fr 1fr}
  .grille{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  .contenu{max-width:none;padding-left:24px;padding-right:24px}
}
@media(max-width:640px){
  .actions>.btn:only-child{width:100%}
  .raccourcis .btn{flex:1 1 46%}
  .grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat b{font-size:30px}
  .barres div{grid-template-columns:110px 1fr 40px}
  form.actions[role=search]>input{flex:1 1 100%;max-width:none}
  form.actions[role=search]>.btn{flex:1}
}
@media(min-width:900px) and (max-width:1100px){
  .contenu{max-width:none;padding-left:24px;padding-right:24px}
}
/* ===== Alignement des champs et des boutons (toutes tailles) ===== */
input[type=time],input[type=url],input[type=month]{width:100%;padding:11px 12px;border:1px solid #b9c6bd;border-radius:8px;font:inherit;background:#fff}
.actions .btn,.actions>form>.btn{margin-top:0}
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:middle}
.actions{align-items:center}
.actions:has(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select) .btn{min-height:47px}
.actions:has(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select) :is(input,select){min-height:47px}
.actions>form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mini,.rangee{align-items:end}
.actions>input,.actions>select{margin:0;width:auto;flex:1 1 180px;min-width:0}
td form.actions{flex-wrap:wrap}
/* Raccourcis : grille régulière, boutons de même hauteur même quand le texte passe sur deux lignes */
.raccourcis{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;align-items:stretch}
.raccourcis .btn{width:100%;height:100%;min-height:46px;padding:10px 12px}
@media(max-width:640px){.raccourcis{grid-template-columns:1fr 1fr}.raccourcis .btn{flex:none}}
@media(max-width:640px){.actions>form:has(input:not([type=hidden]):not([type=checkbox]),select){flex:1 1 100%;flex-wrap:nowrap}.actions>form:has(input:not([type=hidden]):not([type=checkbox]),select)>:is(input,select){flex:1;min-width:0;max-width:none!important}}
/* ===== Espace de l'entraîneur =====
   Pratique = vert (rond) · Match = jaune (losange) · Autre = ardoise (anneau) : forme + couleur, jamais la couleur seule. */
.pt{display:inline-block;flex:none;width:11px;height:11px;margin-right:6px;box-sizing:border-box;vertical-align:-1px}
.pt.pratique{border-radius:50%;background:var(--vert)}
.pt.match{background:var(--chasuble);transform:rotate(45deg) scale(.86);box-shadow:0 0 0 1px #a87b00}
.pt.autre{border-radius:50%;border:3px solid #3d4f45;background:#fff}
.eq-tete{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--ligne);border-left:6px solid var(--vert);border-radius:10px;padding:10px 14px;margin-bottom:10px}
.eq-tete strong{font-family:var(--titre);font-size:20px}
.eq-onglets{flex-wrap:wrap;gap:6px}
.eq-onglets a{padding:8px 14px;font-size:15px;min-height:40px;display:inline-flex;align-items:center}
.eq-choix{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));margin-bottom:16px}
.eq-carte{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit;margin:0;border-left:6px solid var(--vert)}
.eq-carte strong{font-family:var(--titre);font-size:20px}
.eq-carte:hover,.eq-carte:focus-visible{outline:2px solid var(--vert);outline-offset:1px}
.eq-proch{font-size:14px;margin-top:6px}
.eq-titre-ligne{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;justify-content:space-between}
.eq-type{margin:0;font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:.04em;color:var(--gris)}
.eq-fiche{border-left:6px solid var(--vert)}.eq-fiche.match{border-left-color:var(--chasuble)}.eq-fiche.autre{border-left-color:#3d4f45}
/* Calendrier d'équipe : grille à toutes les tailles (points seulement sur téléphone) */
.cal-eq{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--ligne);border-radius:10px;overflow:hidden;background:var(--ligne);gap:1px;margin-bottom:14px}
.cal-eq .cal-tete{background:#fafcfb;padding:6px 2px;text-align:center;font-size:13px;color:var(--gris);font-weight:600}
.cal-eq .cal-case{background:#fff;min-height:96px;padding:4px 5px;min-width:0;position:relative}
.cal-eq .cal-case.hors{background:#f6f8f7}.cal-eq .cal-case.hors .cal-num{color:#a9b3ad}
.cal-eq .cal-num{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:99px;font-size:13px;font-weight:600;text-decoration:none;color:var(--texte);margin-bottom:2px}
.cal-eq .cal-num:hover{background:#e3f3ea}
.cal-eq .cal-case.auj .cal-num{background:var(--vert);color:#fff}
.cal-eq .cal-case.choisi{box-shadow:inset 0 0 0 2px var(--vert)}
.evt.eq .pt{margin-right:0}
.evt.eq.pratique{background:var(--vert);color:#fff}.evt.eq.pratique .pt{background:#fff}
.evt.eq.match{background:var(--chasuble);color:#14231b}.evt.eq.match .pt{background:#14231b;box-shadow:none}
.evt.eq.autre{background:#fff;color:#14231b;border-color:#3d4f45}
.evt-ligne.eq.pratique .h{background:var(--vert);color:#fff}
.evt-ligne.eq.match .h{background:var(--chasuble);color:#14231b}
.evt-ligne.eq.autre .h{background:#3d4f45;color:#fff}
.evt-ligne.eq .evt-cle .pt{margin-right:0}
.actions.trois{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.trois .btn{height:100%;padding-left:6px;padding-right:6px}
@media(max-width:759px){
  .cal-eq .cal-tete{font-size:11px;padding:5px 0}
  .cal-eq .cal-case{min-height:58px;padding:3px 2px;display:flex;flex-direction:column;align-items:center}
  .cal-eq .cal-num{min-width:36px;height:36px;font-size:15px;margin:0}
  .cal-eq .cal-case .evt{display:inline-flex;width:12px;height:12px;padding:0;margin:1px;border:0;background:none;justify-content:center}
  .cal-eq .cal-case .evt b,.cal-eq .cal-case .evt .t{display:none}
  .cal-eq .cal-case .evt .pt{margin:0}
  .cal-eq .cal-case .evt.pratique .pt{background:var(--vert)}.cal-eq .cal-case .evt.match .pt{background:var(--chasuble);box-shadow:0 0 0 1px #a87b00}
  .cal-eq .cal-case:has(.evt){background:#f1f8f4}
}
/* Choix segmentés (type d'activité, présences) */
.seg-champ{border:0;padding:0;margin:0}.seg-champ legend{font-weight:600;font-size:14px;margin:0 0 4px;padding:0}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg label{margin:0;flex:1 1 0;min-width:0}
.seg input{position:absolute;opacity:0;width:1px;height:1px}
.seg span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;border:1px solid #b9c6bd;border-radius:8px;background:#fff;cursor:pointer;font-weight:600;font-size:15px;text-align:center;line-height:1.2}
.seg input:checked+span{background:var(--vert);border-color:var(--vert);color:#fff}
.seg input:checked+span .pt{background:#fff;border-color:#fff;box-shadow:none}
.seg input:focus-visible+span{outline:3px solid var(--chasuble);outline-offset:2px}
.seg input:disabled+span{opacity:.6;cursor:default}
.seg.pres input:checked+span.retard{background:var(--chasuble);border-color:#a87b00;color:#14231b}
.seg.pres input:checked+span.motive{background:#3d4f45;border-color:#3d4f45}
.seg.pres input:checked+span.absent{background:var(--rouge);border-color:var(--rouge)}
.pres-ligne{border:0;border-top:1px solid var(--ligne);margin:0;padding:10px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px 14px;align-items:center}
.pres-ligne legend{float:left;width:100%;padding:0;font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pres-ligne .seg span{font-size:14px;padding:6px 4px}
@media(max-width:700px){.pres-ligne{grid-template-columns:1fr}.pres-ligne legend{float:none}.pres-ligne .seg label{flex:1 1 22%}}
.invite-ligne{display:flex;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid var(--ligne);padding:8px 0;margin:0}
.invite-ligne>span{min-width:0}
@media(min-width:641px){.rangee.trois-col{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:640px){.rangee.trois-col{grid-template-columns:1fr 1fr}.rangee.trois-col>div:first-child{grid-column:1/-1}}
.pointage{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:end;max-width:460px}
.pointage>span{font-family:var(--titre);font-size:28px;font-weight:800;padding-bottom:8px}
.pointage input{font-family:var(--titre);font-size:28px;font-weight:800;text-align:center;padding:8px}
.pointage label{min-height:2.6em;display:flex;align-items:flex-end}
.buteurs{display:grid;gap:6px 16px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.buteurs label{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;align-items:center;margin:0;font-weight:400;font-size:15px}
.buteurs input{text-align:center;padding:8px}
.cahier input,.cahier select{padding:8px 10px}
.champ-no{max-width:84px;text-align:center;font-family:var(--titre);font-weight:700}
@media(max-width:899px){.cahier td[data-t]{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:8px}.cahier td[data-t]::before{content:attr(data-t)}}
.confirmation{background:#fdf1d8;border:1px solid #e0b53a;border-radius:8px;padding:10px 12px;margin-top:10px}
.confirmation p{margin:0 0 8px}.confirmation.carte{background:#fdf1d8}
.forum-sujet{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:inherit;margin-bottom:8px}
.forum-sujet strong{font-size:17px}.forum-sujet:hover{border-color:var(--vert)}
.forum-msg{margin-bottom:8px}.forum-msg p{margin:0 0 8px}.forum-auteur{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pastille.coach{background:#fff3bf;color:#4d3900;box-shadow:inset 0 0 0 1px #e0b53a}
/* Alignement : terrain + remplaçants sur le côté */
.align-barre{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:end;margin-bottom:12px}
.align-barre>div{flex:0 1 260px}.align-barre label{margin-top:0}.align-barre p{flex:1 1 260px;margin:0}
.align{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
@media(min-width:860px){.align{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);align-items:start}}
.terrain{position:relative;width:100%;max-width:620px;margin:0 auto;aspect-ratio:3/4;border-radius:12px;overflow:hidden;border:3px solid #0b3d26;
  background:repeating-linear-gradient(180deg,#249152 0,#249152 12.5%,#1e8449 12.5%,#1e8449 25%);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.terrain i{position:absolute;border:2px solid rgba(255,255,255,.9);pointer-events:none}
.terrain::before{content:"";position:absolute;inset:2.5%;border:2px solid rgba(255,255,255,.9);pointer-events:none}
.t-centre{left:2.5%;right:2.5%;top:50%;height:0;border-width:2px 0 0!important}
.t-rond{left:50%;top:50%;width:24%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}
.t-surface{left:26%;width:48%;height:14%}.t-surface.haut{top:2.5%;border-top:0}.t-surface.bas{bottom:2.5%;border-bottom:0}
.t-but{left:39%;width:22%;height:5.5%}.t-but.haut{top:2.5%;border-top:0}.t-but.bas{bottom:2.5%;border-bottom:0}
.place{position:absolute;transform:translate(-50%,-50%);width:23%;max-width:128px;display:flex;flex-direction:column;align-items:center;gap:0;background:none;border:0;padding:0;font:inherit;cursor:pointer;color:#14231b;touch-action:manipulation}
.place .no{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.35);border:2px dashed #fff;color:#fff;font-family:var(--titre);font-weight:800;font-size:16px;margin-bottom:-6px;position:relative;z-index:1}
.place.occupee .no{background:#143ca0;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.place .nom{display:block;width:100%;background:#fff;border-radius:7px 7px 0 0;padding:7px 3px 0;font-weight:700;font-size:12.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place .poste{display:block;width:100%;background:#fff;border-radius:0 0 7px 7px;padding:0 3px 3px;font-size:9.5px;line-height:1.2;color:var(--gris);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place:not(.occupee) .nom{color:var(--gris);font-weight:600;background:rgba(255,255,255,.82)}.place:not(.occupee) .poste{background:rgba(255,255,255,.82)}
.place.choisi .no,.joueur.choisi .no{outline:3px solid var(--chasuble);outline-offset:1px}
.place.choisi .nom,.place.choisi .poste{background:#fff3bf}
.place:focus-visible{outline:3px solid var(--chasuble);outline-offset:2px;border-radius:8px}
.banc{background:#fff;border:1px solid var(--ligne);border-radius:12px;padding:12px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.banc h2{margin:0 0 8px;font-size:18px}
#banc-liste{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.joueur{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 10px;background:#f4f7f5;border:1px solid var(--ligne);border-radius:10px;font:inherit;text-align:left;cursor:pointer;color:inherit;touch-action:manipulation}
.joueur .no{display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--chasuble);font-family:var(--titre);font-weight:800;font-size:15px;color:#14231b}
.joueur .txt{display:flex;flex-direction:column;min-width:0;line-height:1.2}.joueur strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.joueur small{color:var(--gris);font-size:12px}
.joueur.choisi{background:#fff3bf;border-color:#e0b53a}
.fantome{position:fixed;z-index:50;pointer-events:none;transform:translate(-50%,-130%);background:#143ca0;color:#fff;font-weight:700;padding:8px 12px;border-radius:99px;box-shadow:0 4px 12px rgba(0,0,0,.35);white-space:nowrap}
body.glisse{cursor:grabbing;user-select:none;-webkit-user-select:none}
@media(max-width:480px){.place .no{width:28px;height:28px;font-size:14px}.place .nom{font-size:11px}.place .poste{font-size:8.5px}.place{width:24%}}
.trois .btn{overflow-wrap:normal;white-space:nowrap;font-size:15px}
@media(max-width:640px){.actions.align-actions{display:grid;grid-template-columns:1fr 1fr}.align-actions .btn{width:100%;padding-left:8px;padding-right:8px}}
@media(min-width:860px){.terrain{max-width:min(620px,max(330px,calc((100vh - 190px)*.75)))}.banc{position:sticky;top:70px}}
/* Alignement : chandails, titres complets des positions (aide-mémoire), légende et consignes */
.place .no,.joueur .no{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;isolation:isolate;position:relative;width:40px;height:38px;padding-top:3px;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.place .no::before,.joueur .no::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(255,255,255,.55);clip-path:polygon(24% 0,39% 0,50% 12%,61% 0,76% 0,100% 20%,88% 42%,78% 34%,78% 100%,22% 100%,22% 34%,12% 42%,0 20%)}
.place:not(.occupee) .no{color:#3d4f45}
.place.occupee .no::before{background:#143ca0}
.place.gardien.occupee .no::before,.joueur .no::before{background:var(--chasuble)}
.place.gardien.occupee .no{color:#14231b}
.joueur .no{width:36px;height:34px}
.place .poste{white-space:normal;font-size:10px;line-height:1.15;padding-bottom:4px;color:#3d4f45;font-weight:600}
.place.choisi .no,.joueur.choisi .no{outline:0}.place.choisi .no::before,.joueur.choisi .no::before{background:#e89b00}
.cote{display:grid;gap:12px;align-content:start}
@media(min-width:860px){.cote{position:sticky;top:70px}.banc{position:static}}
.legende-pos{background:var(--vert-f);color:#fff;border-radius:12px;padding:12px}
.legende-pos h2{margin:0 0 8px;font-size:16px;color:var(--chasuble)}
.legende-pos ol{list-style:none;margin:0;padding:0;display:grid;gap:3px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.legende-pos li{display:grid;grid-template-columns:34px 1fr;align-items:center;background:#fff;color:#14231b;border-radius:5px;overflow:hidden;font-size:14px;font-weight:600}
.legende-pos li b{background:#143ca0;color:#fff;text-align:center;padding:5px 0;font-family:var(--titre)}
.legende-pos li span{padding:3px 8px}
@media(max-width:480px){.place .no{width:34px;height:32px;font-size:14px}.place .poste{font-size:8.5px}}
@media(min-width:860px){.cote{position:static}.banc{position:sticky;top:64px;z-index:2;max-height:calc(100vh - 80px);overflow-y:auto;box-shadow:0 6px 14px -8px rgba(0,0,0,.35)}#banc-liste{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
.invite-ligne .btn{flex:none;white-space:nowrap;overflow-wrap:normal}
@media(min-width:900px){.rangee.equipes-coach{grid-template-columns:repeat(3,1fr)}}
/* Menu du téléphone et de la tablette : fixé sous l'en-tête, peu importe où l'on est dans la page */
@media(max-width:899px){
  .entete{z-index:30}
  body.menu-ouvert{overflow:hidden}
  body.menu-ouvert::after{content:"";position:fixed;inset:0;background:rgba(10,20,15,.45);z-index:28}
}
/* ===== Tableau de bord : compact, « à traiter » d'abord, puis un volet à la fois ===== */
.tb-tete{display:grid;gap:12px;align-items:center;margin:4px 0 12px}
@media(min-width:900px){.tb-tete{grid-template-columns:auto minmax(0,1fr)}.tb-tete .recherche-rapide{justify-content:flex-end;margin:0}}
.tb-bonjour{display:flex;align-items:center;gap:12px}
.tb-bonjour img{width:52px;height:52px;border-radius:13px;flex:none;box-shadow:0 4px 12px rgba(15,81,50,.25)}
.tb-bonjour strong{display:block;font-family:var(--titre);font-size:24px;line-height:1.1}
.tb-bonjour span{color:var(--gris);font-size:14px}
main:has(.tb-tete)>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.tb-tete form.actions[role=search]{margin:0}
.tb-rac{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 -2px 6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.tb-rac a{flex:none;display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;border-radius:99px;border:1px solid #b9c6bd;background:#fff;color:var(--vert-f);text-decoration:none;font-weight:600;font-size:15px;white-space:nowrap;scroll-snap-align:start}
.tb-rac a.fort{background:var(--vert);border-color:var(--vert);color:#fff}
.tb-rac a:hover,.tb-rac a:focus-visible{border-color:var(--vert);box-shadow:0 0 0 2px #e3f3ea}
@media(min-width:900px){.tb-rac{flex-wrap:wrap;overflow:visible}}
.tb-alertes{background:#fff;border:1px solid var(--ligne);border-radius:14px;padding:14px 16px;margin-bottom:16px}
.tb-alertes h2{margin:0 0 10px;font-size:20px;display:flex;align-items:center;gap:10px}
.tb-compte{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:99px;background:var(--rouge);color:#fff;font-size:14px;font-family:Barlow,sans-serif}
.tb-ok{margin:0;color:var(--vert);font-weight:600;display:flex;gap:8px;align-items:center}
.tb-ok span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e3f3ea}
.tb-alertes-liste{display:grid;gap:8px;grid-template-columns:1fr}
@media(min-width:700px){.tb-alertes-liste{grid-template-columns:1fr 1fr}}
@media(min-width:1100px){.tb-alertes-liste{grid-template-columns:1fr 1fr 1fr}}
.tb-alerte{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;min-height:48px;padding:6px 12px 6px 8px;border-radius:10px;text-decoration:none;color:var(--texte);background:#fff8e1;border:1px solid #edd08a;line-height:1.2;font-size:15px}
.tb-alerte b{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 6px;border-radius:9px;background:var(--chasuble);color:#14231b;font-family:var(--titre);font-size:18px}
.tb-alerte.rouge{background:#fdecea;border-color:#f0b4ae}.tb-alerte.rouge b{background:var(--rouge);color:#fff}
.tb-alerte i{font-style:normal;color:var(--gris);font-size:20px}
.tb-alerte:hover,.tb-alerte:focus-visible{outline:2px solid var(--vert-f);outline-offset:1px}
.tb-onglets{display:flex;gap:4px;overflow-x:auto;border-bottom:2px solid var(--ligne);margin-bottom:14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tb-onglets::-webkit-scrollbar{display:none}
.tb-onglets button{flex:none;min-height:46px;padding:8px 16px;border:0;background:none;font:inherit;font-weight:600;color:var(--gris);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.tb-onglets button[aria-selected=true]{color:var(--vert);border-bottom-color:var(--vert)}
.tb-onglets button:focus-visible{outline:3px solid var(--chasuble);outline-offset:-3px;border-radius:6px}
.tb-volets.js .tb-titre-volet{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.tb-volet h2{margin-top:8px}.tb-volet h3{font-family:var(--titre);font-size:17px;margin:16px 0 8px}
.tb-tuiles{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:700px){.tb-tuiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1000px){.tb-tuiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.tb-tuile{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;background:#fff;border:1px solid var(--ligne);border-radius:12px;text-decoration:none;color:var(--texte);line-height:1.2;transition:transform .12s,box-shadow .12s}
.tb-tuile b{font-family:var(--titre);font-weight:800;font-size:24px;color:var(--vert);min-width:1.4em;text-align:right}
.tb-tuile span{font-size:14px;color:#3d4f45}
.tb-tuile:hover,.tb-tuile:focus-visible{border-color:var(--vert);box-shadow:0 4px 12px rgba(15,81,50,.12);transform:translateY(-1px)}
.tb-ligne{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--ligne);border-radius:12px;margin-bottom:8px;text-decoration:none;color:inherit;overflow:hidden;min-height:56px;padding-right:12px}
.tb-ligne .quand{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;min-width:70px;padding:6px;background:var(--vert);color:#fff;font-size:12.5px;line-height:1.15}
.tb-ligne .quand b{font-family:var(--titre);font-size:15px}
.tb-ligne .quand.match{background:var(--chasuble);color:#14231b}.tb-ligne .quand.autre{background:#3d4f45}
.tb-ligne .quoi{display:flex;flex-direction:column;min-width:0;padding:6px 0}.tb-ligne .quoi strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ligne .quoi small{color:var(--gris);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ligne .fl{color:var(--gris);font-size:22px}.tb-ligne .btn{margin:0}
.tb-ligne:hover,.tb-ligne:focus-visible{border-color:var(--vert)}
.tb-suite{margin:6px 0 0;font-weight:600}
@media(max-width:480px){.tb-ligne.fort{grid-template-columns:auto minmax(0,1fr)}.tb-ligne.fort .btn{grid-column:1/-1;margin:0 0 8px 12px;justify-self:start}}
@media(prefers-reduced-motion:reduce){.tb-tuile{transition:none}}
/* ===== Connexion et pages d'accès : terrain de soccer qui se fond dans le vert Passeo puis l'ardoise ===== */
body:has(.auth){background:#14231B;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body:has(.auth)::before{content:"";position:fixed;inset:0;background:url("site/terrain.svg") center/cover no-repeat;z-index:0}
body:has(.auth)::after{content:"";position:fixed;inset:0;z-index:0;background:linear-gradient(100deg,rgba(20,35,27,.10) 0%,rgba(15,81,50,.45) 34%,rgba(15,81,50,.93) 58%,#14231B 96%)}
body:has(.auth)>*{position:relative;z-index:1}
body:has(.auth) .entete{background:transparent;position:static}
body:has(.auth-logo) .entete{display:none}
body:has(.auth) .contenu{flex:1;width:100%;max-width:1180px;display:flex;flex-direction:column;justify-content:center}
body:has(.auth) .contenu>h1{color:#fff;text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.35)}
body:has(.auth) .contenu>p,body:has(.auth) .contenu>p a{color:#fff}
body:has(.auth) .pied{color:rgba(255,255,255,.78)}
.auth{border:0;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.38);padding:26px 26px 20px;width:100%}
.cx{display:grid;gap:24px;align-items:center;grid-template-columns:minmax(0,1fr)}
.cx-message{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.4)}
.cx-slogan{font-family:var(--titre);font-weight:800;font-size:clamp(30px,6vw,56px);line-height:1.05;margin:0 0 10px}
.cx-slogan span{color:var(--chasuble)}
.cx-sous{font-size:clamp(15px,2vw,19px);margin:0;max-width:34em;opacity:.95}
.cx-carte{margin:0 auto}
.cx-carte .auth-logo{margin:2px auto 14px;height:52px}
.cx-titre{font-size:24px;margin:0 0 4px;text-align:center}
.cx-carte .btn.gros{margin-top:18px}
.cx-oubli{text-align:center;margin:14px 0 0}
@media(min-width:900px){.cx{grid-template-columns:minmax(0,1.15fr) minmax(360px,430px);gap:48px;min-height:70vh}.cx-carte{margin:0}}
@media(max-width:899px){
  body:has(.auth)::after{background:linear-gradient(180deg,rgba(20,35,27,.12) 0%,rgba(15,81,50,.62) 30%,rgba(15,81,50,.94) 52%,#14231B 88%)}
  body:has(.auth) .contenu{justify-content:flex-start;padding-top:max(28px,6vh)}
  .cx-message{text-align:center}.cx-sous{margin:0 auto}
}
/* ===== Corrections téléphone (22 nov.) ===== */
/* iPhone : les champs date et heure dépassaient à droite et changeaient de hauteur quand ils étaient vides */
input[type=date],input[type=time],input[type=month]{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;text-align:left;line-height:1.3;min-height:47px}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value{text-align:left;min-height:1.3em;margin:0}
.rangee>div,.mini>div{min-width:0}
/* Bandeau d'équipe sur une ligne, onglets d'équipe sur une seule rangée qui défile */
.eq-tete{flex-wrap:nowrap;align-items:center}
.eq-tete>div{min-width:0}.eq-tete .btn{flex:none;white-space:nowrap}
.eq-onglets{display:flex;flex-wrap:nowrap;gap:2px;overflow-x:auto;border-bottom:2px solid var(--ligne);margin:0 0 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.eq-onglets::-webkit-scrollbar{display:none}
.eq-onglets a{flex:none;display:inline-flex;align-items:center;min-height:46px;padding:8px 14px;border:0;border-radius:0;border-bottom:3px solid transparent;margin-bottom:-2px;text-decoration:none;font-weight:600;font-size:15px;color:var(--gris);white-space:nowrap;background:none}
.eq-onglets a.actif{background:none;color:var(--vert);border-bottom-color:var(--vert)}
/* Espaces d'équipe : liste compacte */
.eq-liste{display:grid;gap:6px;margin-bottom:16px}
@media(min-width:900px){.eq-liste{grid-template-columns:1fr 1fr}}
.eq-ligne{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-height:54px;padding:8px 12px 8px 14px;background:#fff;border:1px solid var(--ligne);border-left:5px solid var(--vert);border-radius:10px;text-decoration:none;color:inherit}
.eq-nom{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.eq-nom strong{font-size:15.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eq-nom small{color:var(--gris);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eq-ligne .fl{color:var(--gris);font-size:22px}
.eq-ligne:hover,.eq-ligne:focus-visible{border-color:var(--vert);background:#f6fbf8}
#filtre-eq{flex:1;max-width:520px}
@media(max-width:899px){
  .eq-tete strong{font-size:17px;line-height:1.2;display:block}
  .eq-tete{padding:8px 10px 8px 12px}
  /* Barre du calendrier : mois sur une ligne, vues en trois boutons égaux, ajout sur toute la largeur */
  .cal-barre .actions:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px}
  .cal-barre .actions:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cal-barre .actions:last-child>.btn{width:100%}
  .cal-barre .actions:last-child>.btn:last-child{grid-column:1/-1}
}
@media(max-width:640px){
  /* Fiches plus courtes : titre à gauche, bouton à droite, les détails sur une même ligne */
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea)){display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:10px 12px}
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea))>td{display:block;width:auto;padding:0;flex:0 1 auto;order:2;min-width:0}
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea))>td:first-child{order:0;flex:1 1 calc(100% - 130px)}
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea))>td:last-child:not(:first-child):not([data-t]){order:1;flex:none;margin-left:auto}
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea))>td[colspan]{flex:1 1 100%}
  table.fiches tr:not(:has(input:not([type=hidden]),select,textarea))>td[data-t]{font-size:15px}
  table.fiches td .btn.petit{min-height:40px;padding:6px 14px}
}
.eq-nom strong{white-space:normal;overflow:visible;font-size:15px;line-height:1.25}
/* Aucune bordure d'accent à gauche : cartes et lignes ont un contour uniforme */
.eq-tete,.eq-carte,.eq-fiche,.eq-fiche.match,.eq-fiche.autre,.eq-ligne,.puce{border-left:1px solid var(--ligne)}
.eq-ligne{padding-left:12px}.eq-tete{padding-left:14px}
/* Paie : refus d'une feuille de temps (fenêtre de confirmation) */
.refus{color:var(--rouge)}
dialog.fenetre{border:0;border-radius:16px;padding:22px;width:min(480px,calc(100vw - 28px));box-shadow:0 24px 60px rgba(0,0,0,.4);color:var(--texte)}
dialog.fenetre::backdrop{background:rgba(10,20,15,.55)}
dialog.fenetre input[type=text]{margin-top:2px}
.actions-paie .btn{white-space:normal}
@media(max-width:640px){.actions-paie{display:grid;grid-template-columns:1fr}.actions-paie .btn{width:100%}dialog.fenetre .actions{display:grid;grid-template-columns:1fr 1fr}}
/* Titres de colonnes sur une seule ligne */
th{white-space:nowrap}
a.pastille{text-decoration:none}a.pastille:hover{text-decoration:underline}
/* Recherche d'athlètes : nom, lettres et année */
.recherche-ath{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:end;margin:12px 0 4px}
.recherche-ath label{font-size:13px;margin:0 0 4px;white-space:nowrap}
.recherche-ath .boutons{display:flex;gap:8px}
@media(max-width:1000px){.recherche-ath{grid-template-columns:1fr 1fr 1fr}.recherche-ath .large,.recherche-ath .boutons{grid-column:1/-1}.recherche-ath label{white-space:normal}}
@media(max-width:560px){.recherche-ath{grid-template-columns:1fr 1fr}}
/* Boutons d'arrivée d'avance et de rangement (activité technique) */
.choix-min{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pastille-choix{display:inline-flex;align-items:center;margin:0;font-weight:600;cursor:pointer}
.pastille-choix input{position:absolute;opacity:0;width:1px;height:1px}
.pastille-choix{padding:8px 14px;min-height:40px;border:1px solid var(--ligne);border-radius:999px;background:#fff;color:var(--texte);white-space:nowrap}
.pastille-choix:has(input:checked){background:var(--vert);border-color:var(--vert);color:#fff}
.pastille-choix:has(input:focus-visible){outline:2px solid var(--chasuble);outline-offset:2px}
.bandeau-lecture{margin:0;padding:8px 16px;background:var(--chasuble);color:var(--vert-f);font-weight:600}
.bandeau-lecture a{color:var(--vert-f)}
/* Évaluation rapide des essais : cartes compactes, gros boutons, 1 colonne au téléphone, 2-3 sur tablette */
.er-barre{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px;position:sticky;top:56px;z-index:3;background:var(--fond);padding:6px 0}
.er-tours{display:flex;gap:6px;flex:1 1 auto}
.er-tours a{flex:1;display:flex;flex-direction:column;align-items:center;padding:6px 8px;border:1px solid var(--ligne);border-radius:10px;background:#fff;text-decoration:none;color:var(--texte);font-weight:700;font-size:14px;white-space:nowrap}
.er-tours a small{font-weight:400;color:var(--gris);font-size:12px}
.er-tours a[aria-current]{background:var(--vert);border-color:var(--vert);color:#fff}
.er-tours a[aria-current] small{color:#dfeee6}
#er-filtre{max-width:160px;margin:0}
.er-legende{margin:4px 0 10px;font-size:14px}
.er-legende p{margin:4px 0}
.er-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px}
.er-carte{background:#fff;border:1px solid var(--ligne);border-radius:12px;padding:8px 10px}
.er-carte header{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.er-carte header strong{flex:1;font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.er-moy{min-width:38px;text-align:center;font-family:var(--titre);font-weight:800;font-size:18px;color:var(--vert)}
.er-ligne{display:flex;align-items:center;gap:6px;padding:3px 0;border-top:1px solid #eef2ef}
.er-lib{flex:1;font-size:13px;line-height:1.15;color:var(--gris)}
.er-notes{display:flex;gap:4px}
.er-n{width:46px;height:40px;border:1px solid var(--ligne);border-radius:8px;background:#fff;font-family:var(--titre);font-weight:800;font-size:17px;color:var(--texte);padding:0;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.er-n.choisi{background:var(--vert);border-color:var(--vert);color:#fff}
.er-n:disabled{opacity:.6}
.er-ligne.envoi .er-n.choisi{opacity:.7}
.er-ligne.erreur .er-n.choisi{background:var(--rouge);border-color:var(--rouge)}
@media (max-width:420px){.er-n{width:40px;height:38px;font-size:16px}.er-lib{font-size:12px}}
.er-seuil{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:2px 0 6px;font-size:14px}
.er-seuil select{width:auto;margin:0}
.er-compte{color:var(--vert);font-size:15px}
.er-qualif{margin:0 0 2px;font-size:13px;font-weight:700;min-height:0}
.er-qualif:empty{display:none}
.er-carte.qualifie{border-color:var(--vert);box-shadow:inset 0 0 0 1px var(--vert)}
.er-carte.qualifie .er-qualif{color:var(--vert)}
.er-carte.non-qualifie .er-qualif{color:var(--gris)}
.er-fiche{display:block;text-align:right;font-size:13px;font-weight:600;margin-top:4px;padding:4px 0}
.filtres-ligne{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
.filtres-ligne>div{flex:1 1 180px}
.filtres-ligne>div:last-child{flex:0 0 auto}
.filtres-ligne input,.filtres-ligne select{margin:0}
.entete .lien-langue{color:#fff;font-weight:600;text-decoration:none;font-size:15px;opacity:.9}
.entete .lien-langue:hover{opacity:1;text-decoration:underline}

/* ---------- Barre latérale vitrée (menu vertical) ---------- */
body.avec-cote{background:radial-gradient(900px 600px at -10% -10%,rgba(15,81,50,.22),transparent 60%),radial-gradient(700px 500px at 110% 0%,rgba(255,200,31,.14),transparent 60%),radial-gradient(800px 700px at 50% 120%,rgba(15,81,50,.12),transparent 60%),var(--fond);background-attachment:fixed;min-height:100vh}
.cote{display:none;flex-direction:column;position:fixed;z-index:29;left:0;top:var(--entete-h,56px);bottom:0;width:min(300px,86vw);padding:14px 12px;overflow-y:auto;color:#fff;
  background:linear-gradient(160deg,rgba(15,81,50,.82),rgba(20,35,27,.88));backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);
  border-right:1px solid rgba(255,255,255,.14);box-shadow:8px 0 32px rgba(20,35,27,.22),inset -1px 0 0 rgba(255,255,255,.06)}
.menu-ouvert .cote{display:flex}
.cote-marque{display:none;align-items:center;gap:10px;flex-wrap:wrap;color:#fff;text-decoration:none;padding:6px 10px 16px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.12)}
.cote-marque img{height:30px;width:auto}
.cote-marque span{font-size:13px;font-weight:600;opacity:.8;line-height:1.25;width:100%}
.cote-titre{margin:14px 10px 6px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.cote .item,.cote summary{display:flex;min-height:44px;align-items:center;gap:11px;width:100%;padding:10px 12px;margin:2px 0;border-radius:12px;color:rgba(255,255,255,.88);text-decoration:none;font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s}
.cote .item:hover,.cote summary:hover{background:rgba(255,255,255,.08);color:#fff}
.cote .item[aria-current=page],.cote summary.courant{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.18);color:#fff;box-shadow:inset 3px 0 0 var(--chasuble),0 4px 14px rgba(0,0,0,.12)}
.ico-menu{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.cote summary{list-style:none}
.cote summary::-webkit-details-marker{display:none}
.cote summary::after{content:"";margin-left:auto;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg);opacity:.6;transition:transform .15s}
.cote details[open] summary::after{transform:rotate(45deg)}
.cote .sous{display:flex;flex-direction:column;margin:2px 0 8px 21px;padding-left:12px;border-left:1px solid rgba(255,255,255,.16)}
.cote .sous a{color:rgba(255,255,255,.75);text-decoration:none;font-size:14.5px;padding:7px 10px;border-radius:9px}
.cote .sous a:hover{color:#fff;background:rgba(255,255,255,.07)}
.cote .sous a[aria-current=page]{color:var(--vert-f);background:var(--chasuble);font-weight:700}
.cote-bas{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
.cote form{margin:0}
/* Cartes en verre dépoli léger, sur le fond dégradé */
.avec-cote .carte,.avec-cote .stat{background:rgba(255,255,255,.72);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);border:1px solid rgba(255,255,255,.75);box-shadow:0 6px 24px rgba(20,35,27,.07)}
@media (min-width:900px){
  .avec-cote .entete{display:none}
  body.avec-cote{padding-left:264px}
  .cote{display:flex;top:12px;left:12px;bottom:12px;width:240px;border-radius:20px;border:1px solid rgba(255,255,255,.16)}
  .cote-marque{display:flex}
  .cote .item,.cote summary{min-height:40px;padding:8px 12px;margin:1px 0}
  .cote-bas .item{min-height:36px;padding:6px 12px;font-size:14.5px}
  .avec-cote .contenu{max-width:1100px;padding:24px 24px 16px}
  .avec-cote .bandeau-lecture{border-radius:12px;margin:12px 24px 0}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.cote{background:var(--vert-f)}.avec-cote .carte,.avec-cote .stat{background:#fff}}
@media print{.cote{display:none!important}body.avec-cote{padding-left:0;background:#fff}}
/* ---------- Sélecteur multiple avec recherche (pastilles) ---------- */
.multi{position:relative;margin:4px 0 14px;max-width:640px}
.multi-boite{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:48px;padding:6px 8px;border:1px solid #b9c6bd;border-radius:12px;background:rgba(255,255,255,.85);cursor:text}
.multi-boite:focus-within{border-color:var(--vert);box-shadow:0 0 0 3px rgba(15,81,50,.15)}
.multi-puces{display:contents}
.multi-puce{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 11px;border-radius:99px;background:#e3f3ea;color:var(--vert-f);font-weight:600;font-size:15px;border:1px solid rgba(15,81,50,.18)}
.multi-x{border:0;background:none;color:var(--vert);font-size:18px;line-height:1;width:26px;height:26px;border-radius:99px;cursor:pointer}
.multi-x:hover{background:rgba(15,81,50,.12)}
.multi-boite .multi-champ{flex:1 1 180px;min-width:140px;border:0!important;outline:0;background:transparent;box-shadow:none!important;padding:6px 4px;margin:0;min-height:34px;font:inherit}
.multi-liste{position:absolute;z-index:15;left:0;right:0;top:calc(100% - 22px);margin:4px 0 0;padding:6px;list-style:none;max-height:300px;overflow-y:auto;border-radius:14px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--ligne);box-shadow:0 14px 34px rgba(20,35,27,.16)}
.multi-liste li{display:flex;flex-direction:column;padding:8px 12px;border-radius:9px;cursor:pointer}
.multi-liste li span{font-size:13px;color:var(--gris)}
.multi-liste li:hover,.multi-liste li.actif{background:#e3f3ea}
.multi-liste li.multi-vide{cursor:default;color:var(--gris)}
.multi-liste li.multi-vide:hover{background:none}
.multi-compte{margin:4px 2px 0;min-height:1em}
/* =====================================================================
   Thème « verre » (glassmorphism) de l'interface connectée
   Fond dégradé aux couleurs Passeo, surfaces translucides floutées.
   ===================================================================== */
.avec-cote{--verre:rgba(255,255,255,.58);--verre-fort:rgba(255,255,255,.74);--verre-bord:rgba(255,255,255,.72);--verre-ombre:0 8px 32px rgba(20,35,27,.08),inset 0 1px 0 rgba(255,255,255,.6);--flou:blur(16px) saturate(150%)}
body.avec-cote{background:
  radial-gradient(1000px 700px at 0% 0%,rgba(15,81,50,.30),transparent 60%),
  radial-gradient(800px 600px at 100% 5%,rgba(255,200,31,.22),transparent 60%),
  radial-gradient(900px 800px at 85% 100%,rgba(15,81,50,.20),transparent 60%),
  radial-gradient(700px 600px at 20% 95%,rgba(227,243,234,.9),transparent 70%),
  linear-gradient(160deg,#eef5f0,#f6f4ea);background-attachment:fixed}
/* Surfaces vitrées */
.avec-cote .carte,.avec-cote .stat,.avec-cote table,.avec-cote .tb-alertes,.avec-cote .eq-tete,.avec-cote .banc,.avec-cote .er-carte,.avec-cote .sousnav,
.avec-cote .evt-ligne,.avec-cote .tb-ligne,.avec-cote .eq-ligne,.avec-cote .tb-tuile{
  background:var(--verre);backdrop-filter:var(--flou);-webkit-backdrop-filter:var(--flou);border:1px solid var(--verre-bord);box-shadow:var(--verre-ombre)}
.avec-cote .carte,.avec-cote table,.avec-cote .tb-alertes,.avec-cote .eq-tete,.avec-cote .banc{border-radius:18px}
.avec-cote .stat,.avec-cote .tb-tuile,.avec-cote .tb-ligne,.avec-cote .eq-ligne,.avec-cote .evt-ligne,.avec-cote .er-carte{border-radius:14px}
.avec-cote table{border-collapse:separate;border-spacing:0;overflow:hidden}
.avec-cote th{background:rgba(255,255,255,.45);color:#3f5247}
.avec-cote td,.avec-cote th{border-bottom:1px solid rgba(20,35,27,.07)}
.avec-cote tbody tr:hover td{background:rgba(255,255,255,.35)}
.avec-cote .sousnav{border-radius:16px;margin:12px 0 0}
/* Champs */
.avec-cote input[type=text],.avec-cote input[type=email],.avec-cote input[type=password],.avec-cote input[type=tel],.avec-cote input[type=date],.avec-cote input[type=number],
.avec-cote input[type=time],.avec-cote input[type=url],.avec-cote input[type=month],.avec-cote input[type=search],.avec-cote select,.avec-cote textarea{
  background:var(--verre-fort);border:1px solid rgba(20,35,27,.16);border-radius:12px;box-shadow:inset 0 1px 2px rgba(20,35,27,.05)}
.avec-cote input:focus,.avec-cote select:focus,.avec-cote textarea:focus{outline:0;border-color:var(--vert);box-shadow:0 0 0 3px rgba(15,81,50,.16);background:rgba(255,255,255,.9)}
.avec-cote .multi-boite .multi-champ{background:transparent!important;border:0!important;box-shadow:none!important}
.avec-cote .multi-boite{background:var(--verre-fort);border-color:rgba(20,35,27,.16)}
/* Boutons */
.avec-cote .btn{border-radius:12px;background:linear-gradient(180deg,#17704a,var(--vert));box-shadow:0 6px 18px rgba(15,81,50,.25),inset 0 1px 0 rgba(255,255,255,.22);transition:transform .12s,box-shadow .12s}
.avec-cote .btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,81,50,.30),inset 0 1px 0 rgba(255,255,255,.22)}
.avec-cote .btn.sec,.avec-cote .btn.danger,.avec-cote .btn-selection{background:var(--verre-fort);backdrop-filter:var(--flou);-webkit-backdrop-filter:var(--flou);box-shadow:0 4px 14px rgba(20,35,27,.07),inset 0 1px 0 rgba(255,255,255,.7)}
.avec-cote .btn.sec:hover{background:rgba(255,255,255,.92)}
/* Pastilles, onglets, raccourcis */
.avec-cote .onglets a,.avec-cote .tb-rac a,.avec-cote .pastille-choix,.avec-cote .er-tours a{background:var(--verre);backdrop-filter:var(--flou);-webkit-backdrop-filter:var(--flou);border-color:var(--verre-bord);box-shadow:0 4px 14px rgba(20,35,27,.06)}
.avec-cote .onglets a.actif{background:linear-gradient(180deg,#17704a,var(--vert));color:#fff;border-color:transparent}
/* Messages */
.avec-cote .alerte{border-radius:14px;backdrop-filter:var(--flou);-webkit-backdrop-filter:var(--flou);border:1px solid rgba(255,255,255,.6);box-shadow:var(--verre-ombre)}
.avec-cote .alerte.ok{background:rgba(227,243,234,.78)}
.avec-cote .alerte.err{background:rgba(251,233,231,.82)}
/* Calendriers */
.avec-cote .cal-grille,.avec-cote .cal-eq{border-radius:16px;background:rgba(20,35,27,.06);border-color:var(--verre-bord);box-shadow:var(--verre-ombre)}
.avec-cote .cal-case{background:rgba(255,255,255,.62)}
.avec-cote .cal-tete{background:rgba(255,255,255,.45)}
/* Liste en fiches (téléphone) */
@media (max-width:899px){.avec-cote table.fiches{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .avec-cote table.fiches tr{background:var(--verre);backdrop-filter:var(--flou);-webkit-backdrop-filter:var(--flou);border:1px solid var(--verre-bord);border-radius:14px}
  .avec-cote .entete{background:rgba(15,81,50,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.avec-cote{--verre:rgba(255,255,255,.94);--verre-fort:#fff}}
@media print{.avec-cote .carte,.avec-cote table,.avec-cote .stat{background:#fff;box-shadow:none;backdrop-filter:none}}
.avec-cote .tb-rac a.fort{background:linear-gradient(180deg,#17704a,var(--vert));color:#fff;border-color:transparent;box-shadow:0 6px 18px rgba(15,81,50,.25),inset 0 1px 0 rgba(255,255,255,.22)}
.multi-champ::-webkit-search-cancel-button{display:none}

/* Titres des encadrés (fieldset) : dans la carte, alignés à gauche, plus sur la bordure */
fieldset.carte{min-width:0}
fieldset.carte>legend{float:left;width:100%;padding:0!important;margin:0 0 6px;line-height:1.2}
fieldset.carte>legend+*{clear:both}

.besoin summary .retirer-poste{width:auto;float:right;color:#b42318;font-size:.9em;padding:0;text-decoration:underline}
.liste-dates{list-style:none;padding:0;margin:0 0 10px}.liste-dates li{padding:6px 0;border-bottom:1px solid var(--ligne)}.liste-dates li:last-child{border-bottom:0}
.liste-dates .retirer-date{width:auto;color:#b42318;font-size:.9em;text-decoration:underline;margin-left:8px;padding:0}
.ligne-date{margin-bottom:4px}
@media(min-width:760px){.ligne-date{grid-template-columns:1.2fr 1fr 1fr 1.6fr}}
.fiches tr.eval-recente td{background:#fff6cc}
.pastille.recent{background:#ffe680;color:#4d3d00}
.recent-cle{display:inline-block;width:14px;height:14px;border-radius:4px;background:#ffe680;border:1px solid #e0c34d;margin-right:6px;vertical-align:-2px}
.nom-recent{background:#ffe680;border-radius:4px;padding:0 4px}
.carte.rejets{border:2px solid #d92d20;background:#fff1f0}
.carte.rejets h2{color:#b42318}
