/* Police Academy — style « Clay » (pâte à modeler) : volumes doux, reflet blanc en haut à gauche,
   ombre colorée en bas à droite. Palette police : bleu marine, bleu, or du badge.
   Deux thèmes : html[data-theme="clair"] (défaut) et html[data-theme="sombre"].
   Les composants ne lisent que des variables : aucune couleur de surface codée en dur. */

:root, :root[data-theme="clair"] {
  color-scheme: light;
  --fond: #e9eef8;
  --surface: #ffffff;
  --encre: #0f1a33;
  --texte: #2a3654;
  --texte-doux: #5a6684;
  --bordure: #dbe3f3;
  --accent: #1f4fd8;
  --accent-fonce: #143aa8;
  --accent-doux: #e3eaff;
  --sur-accent: #ffffff;
  --or: #f2b21b;
  --or-texte: #7a5200;
  --or-doux: #fff3d1;
  --vert: #16a05a;
  --vert-doux: #dcf6e8;
  --vert-texte: #0b6b3b;
  --orange: #e8890c;
  --orange-doux: #ffefd6;
  --orange-texte: #8a4c00;
  --rouge: #d93a3a;
  --rouge-doux: #ffe3e3;
  --rouge-texte: #9b1c1c;
  --gris-doux: #eef1f8;
  --gris-texte: #46526e;

  --clay-dehors: 14px 18px 34px -14px rgba(31, 79, 216, 0.32), -8px -8px 20px -12px rgba(255, 255, 255, 0.95);
  --clay-dedans: inset 5px 7px 12px rgba(255, 255, 255, 0.9), inset -6px -8px 16px rgba(31, 79, 216, 0.08);
  --clay-creux: inset 4px 4px 10px rgba(31, 79, 216, 0.15), inset -4px -4px 10px rgba(255, 255, 255, 0.95);
  --clay-hausse: 18px 26px 44px -16px rgba(31, 79, 216, 0.4), -8px -8px 20px -12px rgba(255, 255, 255, 0.95);
  --halo: 0 0 0 4px rgba(31, 79, 216, 0.22);
  --coussin: linear-gradient(150deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.78) 100%);
  --pilule: linear-gradient(150deg, #ffffff 0%, #eef2fc 100%);
  --creux-fond: #f2f5fc;
  --champ-focus: #ffffff;
  --barre-laterale: linear-gradient(170deg, #142a63 0%, #0d1c45 100%);
  --barre-texte: #c9d6ff;
  --barre-actif: rgba(255, 255, 255, 0.12);
  --fond-page:
    radial-gradient(900px 600px at 6% -10%, rgba(31, 79, 216, 0.22) 0%, transparent 62%),
    radial-gradient(760px 560px at 104% 6%, rgba(120, 180, 255, 0.35) 0%, transparent 60%),
    radial-gradient(700px 520px at 90% 104%, rgba(242, 178, 27, 0.2) 0%, transparent 62%),
    linear-gradient(160deg, #eef2fb 0%, #e8edf8 50%, #e1e8f6 100%);
}

:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #0a1124;
  --surface: #131c36;
  --encre: #eef3ff;
  --texte: #d3dcf3;
  --texte-doux: #9aa8cb;
  --bordure: #24325a;
  --accent: #5b86ff;
  --accent-fonce: #7a9dff;
  --accent-doux: #1b2a5c;
  --sur-accent: #ffffff;
  --or: #f5c04a;
  --or-texte: #ffd77a;
  --or-doux: #3a2e10;
  --vert: #2fc27a;
  --vert-doux: #113524;
  --vert-texte: #7fe2ae;
  --orange: #f2a33a;
  --orange-doux: #3a2811;
  --orange-texte: #ffc77a;
  --rouge: #f06161;
  --rouge-doux: #3d1717;
  --rouge-texte: #ff9d9d;
  --gris-doux: #1b2645;
  --gris-texte: #b5c0dd;

  --clay-dehors: 14px 18px 34px -14px rgba(0, 0, 0, 0.75), -6px -6px 18px -12px rgba(91, 134, 255, 0.25);
  --clay-dedans: inset 4px 6px 12px rgba(255, 255, 255, 0.06), inset -6px -8px 16px rgba(0, 0, 0, 0.4);
  --clay-creux: inset 4px 4px 10px rgba(0, 0, 0, 0.55), inset -3px -3px 8px rgba(255, 255, 255, 0.04);
  --clay-hausse: 18px 26px 44px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(91, 134, 255, 0.3);
  --halo: 0 0 0 4px rgba(91, 134, 255, 0.3);
  --coussin: linear-gradient(150deg, rgba(34, 48, 92, 0.95) 0%, rgba(20, 29, 58, 0.92) 100%);
  --pilule: linear-gradient(150deg, #253563 0%, #182447 100%);
  --creux-fond: #0d1530;
  --champ-focus: #111a38;
  --barre-laterale: linear-gradient(170deg, #0f1c44 0%, #070e26 100%);
  --barre-texte: #b8c7f5;
  --barre-actif: rgba(255, 255, 255, 0.1);
  --fond-page:
    radial-gradient(900px 600px at 6% -10%, rgba(61, 105, 255, 0.3) 0%, transparent 62%),
    radial-gradient(760px 560px at 104% 6%, rgba(40, 90, 200, 0.22) 0%, transparent 60%),
    radial-gradient(700px 520px at 90% 104%, rgba(242, 178, 27, 0.1) 0%, transparent 62%),
    linear-gradient(160deg, #0a1124 0%, #0b1329 50%, #0e1733 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  background-image: var(--fond-page);
  background-attachment: fixed;
  color: var(--texte);
  font: 15px/1.55 "Nunito", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
h1, h2, h3 { color: var(--encre); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; }
p { margin: 0 0 .8em; }
a { color: var(--accent); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--halo); border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doux { color: var(--texte-doux); }
.petit { font-size: .85rem; }
.droite { text-align: right; }
.ligne { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ligne.entre { justify-content: space-between; }
.pile > * + * { margin-top: 18px; }
.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 960px) { .grille-2 { grid-template-columns: 1fr; } }
.pre { white-space: pre-wrap; }

/* ---------- Structure : barre latérale + contenu ---------- */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.barre {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--barre-laterale); color: var(--barre-texte);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
  border-radius: 0 28px 28px 0;
  box-shadow: inset -6px -8px 18px rgba(0, 0, 0, 0.25), inset 4px 6px 12px rgba(255, 255, 255, 0.06), 10px 0 30px -12px rgba(15, 26, 51, 0.5);
}
.marque { display: flex; align-items: center; gap: 12px; color: #fff; padding: 4px 6px 10px; }
.marque:hover { text-decoration: none; }
.marque strong { display: block; font-size: 1.05rem; font-weight: 900; letter-spacing: .02em; }
.marque span { display: block; font-size: .75rem; color: var(--barre-texte); font-weight: 600; }
.insigne {
  width: 46px; height: 50px; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, #ffd56a 0%, #f2b21b 55%, #c98a00 100%);
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
  color: #3a2700; font-weight: 900; font-size: .9rem;
}
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu .titre-menu { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; opacity: .6; padding: 12px 12px 4px; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  color: var(--barre-texte); font-weight: 700;
}
.menu a:hover { background: var(--barre-actif); text-decoration: none; color: #fff; }
.menu a[aria-current="page"] {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%); color: #fff;
  box-shadow: inset 3px 4px 8px rgba(255, 255, 255, 0.12), inset -3px -4px 8px rgba(0, 0, 0, 0.2);
}
.menu svg { width: 18px; height: 18px; flex: none; }
.moi { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: var(--barre-actif); }
.moi .ligne { gap: 10px; flex-wrap: nowrap; }
.moi strong { color: #fff; display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moi .roles { font-size: .72rem; }
.moi form { margin: 0; }
.moi .actions { display: flex; gap: 8px; }
.moi button { white-space: nowrap;
  flex: 1; border: 0; border-radius: 999px; padding: 7px 10px; font: inherit; font-size: .8rem; font-weight: 800;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
}
.moi button:hover { background: rgba(255, 255, 255, 0.2); }
.contenu { padding: 32px clamp(16px, 4vw, 44px) 60px; min-width: 0; }
.entete-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.entete-page h1 { margin: 0; }
.fil { font-size: .85rem; color: var(--texte-doux); margin-bottom: 6px; }
.fil a { font-weight: 700; }

.barre-mobile, .voile { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; align-content: start; }
  .barre { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 20; transform: translateX(-105%); transition: transform .2s ease; }
  .app.menu-ouvert .barre { transform: none; }
  .barre-mobile {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 10; padding: 10px 16px;
    background: var(--barre-laterale); color: #fff; border-radius: 0 0 20px 20px;
  }
  .barre-mobile .marque { padding: 0; }
  .barre-mobile .insigne { width: 34px; height: 38px; font-size: .7rem; }
  .barre-mobile button { background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 800; }
  .voile { display: none; }
  .app.menu-ouvert .voile { display: block; position: fixed; inset: 0; background: rgba(5, 10, 25, 0.45); z-index: 15; }
  .contenu { padding-top: 20px; }
}

/* ---------- Matière clay ---------- */
.carte {
  background: var(--coussin);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  box-shadow: var(--clay-dehors), var(--clay-dedans);
  padding: 22px;
  min-width: 0;
}
:root[data-theme="sombre"] .carte { border-color: rgba(255, 255, 255, 0.06); }
.carte > h2:first-child, .carte > .ligne:first-child h2 { margin-bottom: 14px; }
.carte.serree { padding: 16px; }
a.carte { display: block; color: inherit; font-weight: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.carte:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--clay-hausse), var(--clay-dedans); }
.creux { background: var(--creux-fond); border-radius: 18px; box-shadow: var(--clay-creux); padding: 14px 16px; }

.stat { display: flex; align-items: center; gap: 16px; }
.stat .bulle {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none;
  box-shadow: var(--clay-dedans), 6px 8px 16px -8px rgba(15, 26, 51, 0.35);
}
.stat .bulle svg { width: 24px; height: 24px; }
.stat .val { font-size: 1.9rem; font-weight: 900; color: var(--encre); line-height: 1; }
.stat .lib { font-size: .85rem; color: var(--texte-doux); font-weight: 700; }
.bulle.bleu { background: linear-gradient(150deg, #6f95ff, #1f4fd8); color: #fff; }
.bulle.or { background: linear-gradient(150deg, #ffd86e, #f2b21b); color: #4a3300; }
.bulle.vert { background: linear-gradient(150deg, #6be3a5, #16a05a); color: #fff; }
.bulle.rouge { background: linear-gradient(150deg, #ff9a9a, #d93a3a); color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .92rem; line-height: 1.2;
  background: var(--pilule); color: var(--encre);
  box-shadow: 8px 10px 20px -10px rgba(15, 26, 51, 0.35), var(--clay-dedans);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: var(--clay-creux); }
.btn.principal {
  background: linear-gradient(150deg, #5d86ff 0%, var(--accent) 55%, var(--accent-fonce) 100%); color: var(--sur-accent);
  box-shadow: 10px 14px 24px -10px rgba(31, 79, 216, 0.65), inset 4px 5px 10px rgba(255, 255, 255, 0.35), inset -4px -6px 12px rgba(0, 0, 0, 0.18);
}
.btn.or {
  background: linear-gradient(150deg, #ffe08a 0%, var(--or) 60%, #d99a00 100%); color: #3a2700;
  box-shadow: 10px 14px 24px -10px rgba(217, 154, 0, 0.6), inset 4px 5px 10px rgba(255, 255, 255, 0.5), inset -4px -6px 12px rgba(120, 70, 0, 0.18);
}
.btn.danger { color: var(--rouge-texte); }
.btn.danger.plein { background: linear-gradient(150deg, #ff8b8b, var(--rouge)); color: #fff; }
.btn.petit { padding: 7px 14px; font-size: .82rem; }
.btn.discord {
  background: linear-gradient(150deg, #8c95ff 0%, #5865f2 60%, #4450d6 100%); color: #fff; padding: 14px 26px; font-size: 1rem;
  box-shadow: 10px 14px 28px -10px rgba(88, 101, 242, 0.7), inset 4px 5px 10px rgba(255, 255, 255, 0.35), inset -4px -6px 12px rgba(0, 0, 0, 0.2);
}
.btn svg { width: 18px; height: 18px; flex: none; }
button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Formulaires ---------- */
form { margin: 0; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label, .etiquette { font-weight: 800; font-size: .85rem; color: var(--encre); }
.champ .aide { font-size: .8rem; color: var(--texte-doux); }
input[type=text], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: var(--creux-fond); border: 1px solid transparent; border-radius: 14px;
  box-shadow: var(--clay-creux); padding: 10px 14px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--champ-focus); border-color: var(--accent); box-shadow: var(--halo); }
.champs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.champs .large { grid-column: 1 / -1; }
.case { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--accent); }
.actions-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.filtres { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filtres .champ { flex: 1 1 180px; }

/* Choix Bon / Moyen / Mauvais : trois pastilles en relief */
.choix { display: flex; gap: 8px; flex-wrap: wrap; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  font-weight: 800; font-size: .88rem; background: var(--pilule); color: var(--texte-doux);
  box-shadow: 6px 8px 16px -10px rgba(15, 26, 51, 0.35), var(--clay-dedans);
  transition: transform .12s ease;
}
.choix span small { font-weight: 700; opacity: .75; }
.choix label:hover span { transform: translateY(-1px); color: var(--encre); }
.choix input:focus-visible + span { box-shadow: var(--halo); }
.choix input:checked + span { transform: translateY(1px); }
.choix .bon input:checked + span { background: linear-gradient(150deg, #7de8b0, var(--vert)); color: #fff; box-shadow: inset 3px 4px 8px rgba(255,255,255,.35), inset -3px -5px 10px rgba(0,0,0,.18); }
.choix .moyen input:checked + span { background: linear-gradient(150deg, #ffc56b, var(--orange)); color: #fff; box-shadow: inset 3px 4px 8px rgba(255,255,255,.35), inset -3px -5px 10px rgba(0,0,0,.18); }
.choix .mauvais input:checked + span { background: linear-gradient(150deg, #ff9a9a, var(--rouge)); color: #fff; box-shadow: inset 3px 4px 8px rgba(255,255,255,.35), inset -3px -5px 10px rgba(0,0,0,.18); }
.choix .aucun input:checked + span { background: var(--creux-fond); box-shadow: var(--clay-creux); color: var(--encre); }

/* ---------- Pastilles, messages, progression ---------- */
.pastille {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
  background: var(--gris-doux); color: var(--gris-texte);
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5), inset -2px -3px 6px rgba(0, 0, 0, 0.06);
}
.pastille.vert, .pastille.admis, .pastille.titularise, .pastille.bon { background: var(--vert-doux); color: var(--vert-texte); }
.pastille.orange, .pastille.ajourne, .pastille.moyen { background: var(--orange-doux); color: var(--orange-texte); }
.pastille.rouge, .pastille.refuse, .pastille.abandon, .pastille.mauvais { background: var(--rouge-doux); color: var(--rouge-texte); }
.pastille.bleu, .pastille.en_cours, .pastille.formation { background: var(--accent-doux); color: var(--accent-fonce); }
.pastille.or, .pastille.role-admin { background: var(--or-doux); color: var(--or-texte); }
.pastille.role-lead { background: var(--accent-doux); color: var(--accent-fonce); }
.pastille.role-instructeur { background: var(--vert-doux); color: var(--vert-texte); }
.pastille.role-fto { background: var(--orange-doux); color: var(--orange-texte); }

.msg { border-radius: 18px; padding: 12px 16px; font-weight: 700; margin-bottom: 18px; box-shadow: var(--clay-dedans); }
.msg.ok { background: var(--vert-doux); color: var(--vert-texte); }
.msg.erreur { background: var(--rouge-doux); color: var(--rouge-texte); }
.msg.info { background: var(--accent-doux); color: var(--accent-fonce); }
.msg.alerte { background: var(--or-doux); color: var(--or-texte); }
.msg ul { margin: 0; padding-left: 18px; }

.progression { height: 14px; border-radius: 999px; background: var(--creux-fond); box-shadow: var(--clay-creux); overflow: hidden; min-width: 90px; }
.progression > span {
  display: block; height: 100%; border-radius: 999px; min-width: 14px;
  background: linear-gradient(90deg, #6f95ff, var(--accent));
  box-shadow: inset 2px 3px 5px rgba(255, 255, 255, 0.4);
}
.progression.fini > span { background: linear-gradient(90deg, #6be3a5, var(--vert)); }
.progression.vide > span { min-width: 0; }

/* Grosse note sur 20 */
.note-globale { text-align: center; }
.note-globale .chiffre {
  width: 150px; height: 150px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-content: center;
  background: var(--coussin); box-shadow: var(--clay-dehors), var(--clay-dedans);
}
.note-globale .chiffre b { font-size: 2.6rem; font-weight: 900; color: var(--encre); line-height: 1; }
.note-globale .chiffre small { font-weight: 800; color: var(--texte-doux); }
.note-globale.reussi .chiffre b { color: var(--vert); }
.note-globale.echec .chiffre b { color: var(--rouge); }
.formule { font-size: .8rem; color: var(--texte-doux); }

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; border-radius: 20px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); font-weight: 800; padding: 10px 12px; }
td { padding: 12px; border-top: 1px solid var(--bordure); vertical-align: middle; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.35); }
:root[data-theme="sombre"] tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
td .ligne { flex-wrap: nowrap; }

.personne { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--encre); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; display: inline-grid; place-items: center;
  background: linear-gradient(150deg, #8fb0ff, var(--accent)); color: #fff; font-size: .75rem; font-weight: 900;
  box-shadow: inset 2px 3px 5px rgba(255, 255, 255, 0.4), 3px 4px 8px -4px rgba(15, 26, 51, 0.4);
}
.avatar.grand { width: 40px; height: 40px; font-size: .9rem; }

/* Notation : une ligne par épreuve */
.epreuve { padding: 18px 0; border-top: 1px solid var(--bordure); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.epreuve:first-of-type { border-top: 0; padding-top: 4px; }
.epreuve .titre { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.epreuve .titre strong { color: var(--encre); font-size: 1rem; }
.epreuve .commentaire { grid-column: 1 / -1; }
.epreuve .commentaire input { padding: 8px 12px; font-size: .9rem; }
@media (max-width: 700px) { .epreuve { grid-template-columns: 1fr; } }

/* Compétences */
.competence { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--bordure); }
.competence:first-of-type { border-top: 0; }
.coche {
  width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--creux-fond); box-shadow: var(--clay-creux); color: transparent;
}
.competence.validee .coche { background: linear-gradient(150deg, #7de8b0, var(--vert)); color: #fff; box-shadow: inset 3px 4px 8px rgba(255,255,255,.35), 4px 6px 12px -6px rgba(22, 160, 90, .6); }
.coche svg { width: 18px; height: 18px; }
.competence .corps { flex: 1; min-width: 0; }
.competence .corps strong { color: var(--encre); }
.competence form.valider { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.competence form.valider input { flex: 1 1 200px; padding: 7px 12px; font-size: .88rem; }

details.plier > summary { cursor: pointer; font-weight: 800; color: var(--accent); list-style: none; }
details.plier > summary::-webkit-details-marker { display: none; }
details.plier > summary::before { content: "＋ "; }
details.plier[open] > summary::before { content: "－ "; }
details.plier[open] > summary { margin-bottom: 14px; }

.liste-config > .carte + .carte { margin-top: 14px; }
.vide { text-align: center; padding: 34px 20px; color: var(--texte-doux); }
.vide strong { display: block; color: var(--encre); font-size: 1.05rem; margin-bottom: 4px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

/* Page de connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.connexion .carte { max-width: 440px; width: 100%; text-align: center; padding: 36px 30px; }
.connexion .insigne { width: 84px; height: 92px; font-size: 1.4rem; margin: 0 auto 18px; filter: drop-shadow(8px 12px 14px rgba(160, 110, 0, 0.35)); }
.connexion h1 { font-size: 1.6rem; }
.dev { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--bordure); text-align: left; }
.dev .ligne { gap: 6px; }

.interrupteur-theme { display: inline-flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.ligne-config { padding: 12px 0; border-top: 1px solid var(--bordure); }
.ligne-config > summary { color: var(--encre); }
.utilisateur { display: grid; gap: 14px; grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) auto; align-items: center; padding: 16px 0; border-top: 1px solid var(--bordure); }
.utilisateur:first-of-type { border-top: 0; }
.utilisateur .roles-choix { display: flex; gap: 8px; flex-wrap: wrap; }
.utilisateur.inactif { opacity: .6; }
@media (max-width: 900px) { .utilisateur { grid-template-columns: 1fr; } }
