/* Panel fondateur : le style du dashboard KobraLost (demande d'Azmor du 11/10/2026), repris du panel staff (relevé au
   pixel le 10/10/2026) : fond #101A30 et halos, cartes en verre, Public Sans, bleu #005AE2, pilules. Les ajouts du panel
   fondateur sont en bas du fichier. */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(vendor/fonts/public-sans-latin-300-normal.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: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/fonts/public-sans-latin-400-normal.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: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(vendor/fonts/public-sans-latin-500-normal.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: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/fonts/public-sans-latin-600-normal.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: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/fonts/public-sans-latin-700-normal.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: 'Public Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(vendor/fonts/public-sans-latin-ext-500-normal.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(vendor/fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); }

:root {
  --fond: #101a30;
  --barre: rgba(20, 30, 54, 0.95);
  --carte: rgba(24, 35, 60, 0.72);
  --carte-pleine: #18233c;
  --carte-haute: #1d2a47;
  --menu: #1a2540;
  --filet: rgba(255, 255, 255, 0.1);
  --filet-doux: rgba(255, 255, 255, 0.065);
  --texte: #dbe1ec;
  --titre: #eef1f7;
  --doux: #949eb3;
  --tres-doux: #6f7a92;
  --bleu: #005ae2;
  --bleu-clair: #4d8dff;
  --bleu-titre: #6ea2ff;
  --bleu-voile: rgba(0, 90, 226, 0.16);
  --vert: #28c76f;
  --vert-voile: rgba(40, 199, 111, 0.16);
  --orange: #ff9f43;
  --orange-voile: rgba(255, 159, 67, 0.16);
  --rouge: #ee4848;
  --rouge-voile: rgba(238, 72, 72, 0.16);
  --or: #ffc94d;
  --or-voile: rgba(255, 171, 0, 0.18);
  --violet: #a66bff;
  --cyan: #00cfe8;
  --rayon: 10px;
  --ombre: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.5);
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 500 15px/1.47 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--texte);
  background-color: var(--fond);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Le fond (halos + grille de points) vit sur un calque fixe à part : rien n'est repeint pendant le défilement */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 12, 24, 0.6), rgba(7, 12, 24, 0)),
    linear-gradient(0deg, rgba(6, 11, 20, 0.85), rgba(6, 11, 20, 0)),
    radial-gradient(at 0 0, rgba(0, 90, 226, 0.32), rgba(0, 0, 0, 0) 55%),
    radial-gradient(at 100% 0, rgba(200, 130, 232, 0.22), rgba(0, 0, 0, 0) 60%),
    radial-gradient(at 100% 100%, rgba(255, 149, 0, 0.16), rgba(0, 0, 0, 0) 65%),
    radial-gradient(at 0 100%, rgba(73, 223, 123, 0.12), rgba(0, 0, 0, 0) 65%),
    radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.4px);
  background-size: 100% 280px, 100% 260px, cover, cover, cover, cover, 28px 28px;
  background-position: top, bottom, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  transform: translateZ(0);
}
a { color: var(--bleu-clair); text-decoration: none; }
a:hover { color: #7aa9ff; }
h1, h2, h3, h4, h5 { color: var(--titre); font-weight: 600; margin: 0; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 90, 226, 0.45); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.doux { color: var(--doux); }
.tres-doux { color: var(--tres-doux); }
.petit { font-size: 13px; }
.gras { font-weight: 600; color: var(--titre); }
.nowrap { white-space: nowrap; }
.chiffre { font-variant-numeric: tabular-nums; }

/* ─── Mise en page ─────────────────────────────────────────────────────────── */
.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { padding: 22px 0 40px; }
.page-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.page-tete h4 { font-size: 25.3px; }
.page-tete p { margin: 6px 0 0; color: var(--texte); font-size: 14.4px; }
.grille { display: grid; gap: 24px; }
.g-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; } .c-6 { grid-column: span 6; }
.c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; }
@media (max-width: 1100px) { .c-8, .c-7, .c-5, .c-4 { grid-column: span 12; } .c-6 { grid-column: span 12; } .c-3 { grid-column: span 6; } }
@media (max-width: 640px) { .conteneur { padding: 0 16px; } .c-3 { grid-column: span 12; } .grille { gap: 16px; } }
.rangee { display: flex; align-items: center; gap: 10px; }
.rangee.espace { justify-content: space-between; }
.pile > * + * { margin-top: 24px; }
.pile-s > * + * { margin-top: 12px; }

/* ─── Barre du haut ────────────────────────────────────────────────────────── */
.barre {
  position: sticky; top: 0; z-index: 40;
  background: var(--barre);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.barre-haut { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.marque { display: flex; align-items: center; gap: 9px; color: #fff; }
.marque img { width: 32px; height: 32px; }
.marque span { font-family: 'Bebas Neue', 'Public Sans', sans-serif; font-size: 24px; letter-spacing: 0.6px; line-height: 1; padding-top: 3px; color: #f4f6fb; }
.marque:hover { color: #fff; }
.barre-outils { display: flex; align-items: center; gap: 6px; }
.icone-bouton {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent;
  color: #e8ecf4; font-size: 22px; cursor: pointer; position: relative;
}
.icone-bouton:hover { background: rgba(255, 255, 255, 0.07); }
.point-vivant { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 2px var(--barre); }
.avatar-bouton { border: 0; padding: 0; background: none; cursor: pointer; position: relative; border-radius: 50%; }
.avatar-bouton img { width: 36px; height: 36px; border-radius: 50%; display: block; object-fit: cover; }
.avatar-bouton .point-vivant { right: -1px; top: auto; bottom: 0; }

.menu { display: flex; align-items: center; gap: 4px; height: 50px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu-lien {
  display: inline-flex; align-items: center; gap: 7px; padding: 7.2px 16px; border-radius: 999px; white-space: nowrap;
  color: rgba(255, 255, 255, 0.9); font-size: 14.4px; font-weight: 500; border: 0; background: none; cursor: pointer;
}
.menu-lien i { font-size: 19px; }
.menu-lien:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu-lien.actif { background: var(--bleu); color: #eef1f7; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 90, 226, 0.26); }
.menu-lien .chevron { font-size: 15px; margin-left: -2px; opacity: 0.8; }

.deroulant { position: relative; }
.deroulant-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; z-index: 60; padding: 6px;
  background: var(--menu); border: 1px solid var(--filet); border-radius: var(--rayon);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.deroulant-menu.droite { left: auto; right: 0; }
.deroulant-lien {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; color: var(--texte); font-size: 14px;
  width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
}
.deroulant-lien i { font-size: 18px; color: var(--doux); }
.deroulant-lien:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.deroulant-sep { height: 1px; background: var(--filet-doux); margin: 6px 4px; }
.deroulant-tete { padding: 8px 12px 10px; display: flex; gap: 10px; align-items: center; }
.deroulant-tete img { width: 38px; height: 38px; border-radius: 50%; }

/* ─── Cartes ───────────────────────────────────────────────────────────────── */
.carte {
  background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); min-width: 0;
}
.carte-tete { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.carte-tete.filet { padding-bottom: 20px; border-bottom: 1px solid var(--filet-doux); }
.carte-titre { font-size: 20.7px; font-weight: 600; color: var(--titre); }
.carte-titre.s { font-size: 18px; }
.carte-corps { padding: 24px; }
.carte-corps.serre { padding: 16px 24px; }
.carte-pied { padding: 14px 24px; border-top: 1px solid var(--filet-doux); }
.section-titre { font-size: 12.5px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--doux); margin: 0 0 12px; }

.bienvenue { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; min-height: 128px; position: relative; overflow: hidden; }
.bienvenue h5 { color: var(--bleu-titre); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.bienvenue p { margin: 0; font-size: 14.4px; max-width: 420px; color: var(--texte); }
.bienvenue p b { color: #fff; font-weight: 600; }
.bienvenue .embleme { width: 104px; height: 104px; flex: none; margin-right: 30px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)); }
.bienvenue .halo { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 90, 226, 0.22), transparent); pointer-events: none; }
@media (max-width: 640px) { .bienvenue .embleme { width: 72px; height: 72px; margin-right: 0; } }

/* ─── Boutons, pastilles, onglets ─────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 20px; border-radius: 999px;
  background: var(--bleu); color: #eef1f7; border: 0; cursor: pointer; font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 90, 226, 0.26); transition: background 0.15s, transform 0.1s;
}
.bouton:hover { background: #0b66f0; color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: 0.55; cursor: default; }
.bouton i { font-size: 18px; }
.bouton.second { background: rgba(255, 255, 255, 0.07); box-shadow: none; color: var(--texte); }
.bouton.second:hover { background: rgba(255, 255, 255, 0.11); }
.bouton.danger { background: var(--rouge-voile); color: #ff8a8a; box-shadow: none; }
.bouton.danger:hover { background: rgba(238, 72, 72, 0.26); }
.bouton.petit { padding: 5px 14px; font-size: 13.5px; }
.bouton.steam { padding: 11px 26px; font-size: 16px; background: linear-gradient(180deg, #1b6fea, #005ae2); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase; line-height: 1.6; border: 1px solid transparent; white-space: nowrap;
}
.badge.or { background: var(--or-voile); color: var(--or); border-color: rgba(255, 171, 0, 0.45); }
.badge.rouge { background: var(--rouge-voile); color: #ff7a7a; border-color: rgba(238, 72, 72, 0.4); }
.badge.vert { background: var(--vert-voile); color: #4fe08f; border-color: rgba(40, 199, 111, 0.4); }
.badge.bleu { background: var(--bleu-voile); color: #7aa9ff; border-color: rgba(0, 90, 226, 0.45); }
.badge.orange { background: var(--orange-voile); color: #ffb26b; border-color: rgba(255, 159, 67, 0.42); }
.badge.gris { background: rgba(255, 255, 255, 0.06); color: var(--doux); border-color: var(--filet); }
.badge.plein-rouge { background: #a83535; color: #fff; border-color: #c94444; }

.grade { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--doux); font-weight: 500; }
.grade .pastille { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.onglet {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 999px; border: 0; background: none;
  color: var(--texte); font-size: 14.4px; font-weight: 500; cursor: pointer;
}
.onglet i { font-size: 17px; }
.onglet:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.onglet.actif { background: var(--bleu); color: #eef1f7; box-shadow: 0 2px 10px rgba(0, 90, 226, 0.26); }
.bascule { display: inline-flex; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--filet); border-radius: 999px; padding: 3px; }
.bascule button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--texte); }
.bascule button.actif { background: var(--bleu); color: #fff; }

/* ─── Chiffres ─────────────────────────────────────────────────────────────── */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.chiffre-carte { padding: 16px 18px; border-radius: 9px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--filet-doux); min-width: 0; }
.chiffre-carte .etiquette { font-size: 12.5px; color: var(--doux); display: flex; align-items: center; gap: 6px; }
.chiffre-carte .etiquette i { font-size: 16px; }
.chiffre-carte .valeur { font-size: 22px; font-weight: 600; color: var(--titre); margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiffre-carte .sous { font-size: 12.5px; color: var(--tres-doux); margin-top: 2px; }
.icone-ronde { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; font-size: 22px; flex: none; }
.icone-ronde.bleu { background: var(--bleu-voile); color: #6ea2ff; }
.icone-ronde.vert { background: var(--vert-voile); color: #4fe08f; }
.icone-ronde.orange { background: var(--orange-voile); color: #ffb26b; }
.icone-ronde.rouge { background: var(--rouge-voile); color: #ff7a7a; }
.icone-ronde.violet { background: rgba(166, 107, 255, 0.16); color: #c29bff; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.kpi .valeur { font-size: 22px; font-weight: 600; color: var(--titre); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .etiquette { font-size: 13px; color: var(--doux); }

.temps-total { padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; min-height: 128px; position: relative; }
.temps-total h5 { font-size: 18px; margin-bottom: 6px; }
.temps-total .grand { font-size: 15px; font-weight: 600; color: var(--titre); margin-top: 16px; }
.temps-total .graphe-mini { width: 160px; height: 70px; flex: none; }

/* ─── Tableaux (façon DataTables) ─────────────────────────────────────────── */
.table-outils { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; flex-wrap: wrap; }
.recherche { background: rgba(10, 16, 32, 0.45); border: 1px solid var(--filet); border-radius: 8px; padding: 8px 12px; width: 220px; outline: none; color: var(--titre); font-size: 14px; }
.recherche::placeholder { color: var(--doux); }
.recherche:focus { border-color: rgba(0, 90, 226, 0.7); box-shadow: 0 0 0 3px rgba(0, 90, 226, 0.18); }
.table-defile { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.4px; }
.table thead th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--doux);
  padding: 13px 16px; border-top: 1px solid var(--filet-doux); border-bottom: 1px solid var(--filet); white-space: nowrap; user-select: none;
}
.table thead th.triable { cursor: pointer; }
.table thead th.triable:hover { color: var(--texte); }
.table thead th .fleche { font-size: 14px; vertical-align: -2px; opacity: 0.55; margin-left: 4px; }
.table thead th:first-child, .table tbody td:first-child { padding-left: 24px; }
.table thead th:last-child, .table tbody td:last-child { padding-right: 24px; }
.table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--filet-doux); vertical-align: middle; color: var(--titre); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.cliquable { cursor: pointer; }
.table tbody tr.cliquable:hover td { background: rgba(255, 255, 255, 0.025); }
.table .vide { text-align: center; color: var(--doux); padding: 34px 16px; }
.table-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; flex-wrap: wrap; font-size: 14.4px; }
.pagination { display: flex; gap: 4px; align-items: center; }
.pagination button { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--texte); cursor: pointer; font-size: 13.5px; }
.pagination button.actif { background: var(--bleu); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: default; }

.qui { display: flex; align-items: center; gap: 11px; min-width: 0; }
.qui img, .qui .sans-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: #243154; }
.qui.grand img { width: 40px; height: 40px; }
.qui .nom { font-weight: 600; color: var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.4px; line-height: 1.3; }
.qui .sous { font-size: 12.5px; color: var(--doux); white-space: nowrap; line-height: 1.35; }
.sans-avatar { display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #cfd6e6; }

/* ─── Profil (en-tête façon KobraLost) ─────────────────────────────────────── */
.profil-tete { overflow: hidden; padding: 0; }
.profil-banniere { height: 204px; background-size: cover; background-position: center 38%; position: relative; }
.profil-banniere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 26, 48, 0.05) 30%, rgba(16, 26, 48, 0.55)); }
.profil-bas { display: flex; align-items: flex-end; gap: 22px; padding: 0 24px 22px; margin-top: -34px; position: relative; flex-wrap: wrap; }
.profil-avatar { width: 98px; height: 98px; border-radius: 10px; border: 3px solid #273657; object-fit: cover; background: #1b2744; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); flex: none; }
.profil-nom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profil-nom h4 { font-size: 22px; }
.profil-infos { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; font-size: 14px; color: var(--titre); font-weight: 600; }
.profil-infos span { display: inline-flex; align-items: center; gap: 6px; }
.profil-infos i { font-size: 17px; color: var(--doux); }
.profil-actions { margin-left: auto; display: flex; gap: 8px; align-self: center; padding-top: 30px; }

.liste-infos { list-style: none; margin: 0 0 22px; padding: 0; }
.liste-infos li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14.4px; min-width: 0; }
.liste-infos li > i { font-size: 17px; color: var(--doux); align-self: center; flex: none; }
.liste-infos .cle { font-weight: 600; color: var(--titre); white-space: nowrap; }
.liste-infos .val { color: var(--texte); min-width: 0; overflow-wrap: anywhere; }

/* ─── Formulaires ──────────────────────────────────────────────────────────── */
.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-size: 13px; color: var(--doux); margin-bottom: 6px; font-weight: 500; }
.saisie, select.saisie, textarea.saisie {
  width: 100%; background: rgba(10, 16, 32, 0.5); border: 1px solid var(--filet); border-radius: 8px; padding: 9px 12px;
  color: var(--titre); outline: none; font-size: 14.4px;
}
textarea.saisie { min-height: 120px; resize: vertical; line-height: 1.5; }
.saisie:focus { border-color: rgba(0, 90, 226, 0.75); box-shadow: 0 0 0 3px rgba(0, 90, 226, 0.18); }
select.saisie option { background: #1a2540; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .deux { grid-template-columns: 1fr; } }
.case { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.4px; }
.case input { width: 17px; height: 17px; accent-color: var(--bleu); }
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choix button { border: 1px solid var(--filet); background: rgba(255, 255, 255, 0.03); border-radius: 9px; padding: 12px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--texte); font-size: 14px; }
.choix button i { font-size: 24px; }
.choix button.favorable.actif { background: var(--vert-voile); border-color: rgba(40, 199, 111, 0.6); color: #6ae9a3; }
.choix button.mitige.actif { background: var(--orange-voile); border-color: rgba(255, 159, 67, 0.6); color: #ffbd80; }
.choix button.defavorable.actif { background: var(--rouge-voile); border-color: rgba(238, 72, 72, 0.6); color: #ff8f8f; }
.erreur-form { background: var(--rouge-voile); border: 1px solid rgba(238, 72, 72, 0.4); color: #ffb0b0; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.info-form { background: var(--bleu-voile); border: 1px solid rgba(0, 90, 226, 0.4); color: #b9d2ff; padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* ─── Fenêtre ──────────────────────────────────────────────────────────────── */
.voile { position: fixed; inset: 0; z-index: 80; background: rgba(5, 9, 18, 0.72); display: grid; place-items: center; padding: 16px; animation: apparait 0.14s ease-out; }
.fenetre { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; background: var(--carte-pleine); border: 1px solid var(--filet); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.fenetre-tete { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--filet-doux); }
.fenetre-tete h5 { font-size: 18px; }
.fenetre-corps { padding: 22px 24px; }
.fenetre-pied { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--filet-doux); }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* ─── Divers ───────────────────────────────────────────────────────────────── */
.chargement-page { min-height: 70vh; display: grid; place-items: center; }
.rond { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(110, 162, 255, 0.25); border-top-color: #4d8dff; animation: tourne 0.8s linear infinite; display: inline-block; }
.charge { display: grid; place-items: center; padding: 40px 0; }
@keyframes tourne { to { transform: rotate(360deg); } }
.vide-bloc { text-align: center; color: var(--doux); padding: 30px 16px; font-size: 14.4px; }
.vide-bloc i { font-size: 34px; display: block; margin-bottom: 8px; color: var(--tres-doux); }
.attente-jeu { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 9px; background: rgba(255, 159, 67, 0.08); border: 1px solid rgba(255, 159, 67, 0.28); color: #ffd0a6; font-size: 14px; }
.attente-jeu i { font-size: 22px; color: var(--orange); }
.pied-page { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; font-size: 14px; color: var(--titre); }
.pied-page .version { color: #ff5c8a; font-family: var(--mono); font-size: 12px; }
.barre-progres { height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; display: flex; }
.barre-progres span { display: block; height: 100%; }
.toast-zone { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--carte-haute); border: 1px solid var(--filet); border-left: 3px solid var(--vert); border-radius: 9px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 14px; max-width: 360px; animation: apparait 0.15s; }
.toast.erreur { border-left-color: var(--rouge); }
.infobulle { position: relative; }
.infobulle[data-bulle]:hover::after {
  content: attr(data-bulle); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: pre;
  background: #0c1426; border: 1px solid var(--filet); color: var(--texte); padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 500;
  z-index: 70; pointer-events: none; text-transform: none; letter-spacing: 0;
}
.etoiles { color: var(--or); letter-spacing: 1px; font-size: 13px; }
.lien-icone { color: var(--bleu-clair); font-size: 19px; display: inline-grid; place-items: center; }
.separateur { height: 1px; background: var(--filet-doux); margin: 18px 0; }
.compte-avis { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.liste-evenements .ev { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--filet-doux); }
.liste-evenements .ev:last-child { border-bottom: 0; }
.ev-date { width: 46px; flex: none; text-align: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); padding: 5px 0; line-height: 1.15; }
.ev-date b { display: block; font-size: 18px; color: var(--titre); }
.ev-date small { font-size: 11px; color: var(--doux); text-transform: uppercase; }
.avis-carte { padding: 18px 20px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--filet-doux); }
.avis-carte + .avis-carte { margin-top: 12px; }
.avis-carte p { margin: 10px 0 0; white-space: pre-wrap; line-height: 1.55; color: var(--texte); }
.chronologie { list-style: none; margin: 0; padding: 0; position: relative; }
.chronologie li { position: relative; padding: 0 0 18px 26px; }
.chronologie li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -6px; width: 2px; background: rgba(255, 255, 255, 0.08); }
.chronologie li:last-child::before { display: none; }
.chronologie li .puce { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--fond); }

/* ─── Connexion ────────────────────────────────────────────────────────────── */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.connexion-carte { width: 100%; max-width: 440px; padding: 34px 32px 30px; text-align: center; }
.connexion-carte .logo { width: 84px; height: 84px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)); }
.connexion-carte .titre-marque { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 0.8px; color: #fff; line-height: 1.1; }
.connexion-carte h4 { margin: 18px 0 8px; font-size: 20px; }
.connexion-carte p { margin: 0 0 22px; color: var(--doux); font-size: 14.4px; }
.candidats { display: grid; gap: 8px; max-height: 320px; overflow: auto; text-align: left; margin: 0 0 16px; }
.candidat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--filet); background: rgba(255, 255, 255, 0.03); cursor: pointer; width: 100%; text-align: left; color: inherit; }
.candidat:hover, .candidat.actif { border-color: rgba(0, 90, 226, 0.7); background: var(--bleu-voile); }
.candidat img { width: 36px; height: 36px; border-radius: 50%; }
.code-saisie { font-family: var(--mono); font-size: 24px; letter-spacing: 8px; text-align: center; }

/* ─── Calendrier (FullCalendar aux couleurs du panel) ────────────────────── */
.planning { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.planning-cote { border-right: 1px solid var(--filet-doux); }
.planning-cote .bloc { padding: 20px; border-bottom: 1px solid var(--filet-doux); }
.planning-cote .bloc:last-child { border-bottom: 0; }
@media (max-width: 900px) { .planning { grid-template-columns: 1fr; } .planning-cote { border-right: 0; border-bottom: 1px solid var(--filet-doux); } }
.mini-cal { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--filet-doux); border-radius: 9px; padding: 10px 8px; }
.mini-cal .tete { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; font-weight: 600; color: var(--titre); }
.mini-cal .tete button { width: 26px; height: 26px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--texte); cursor: pointer; display: grid; place-items: center; }
.mini-cal .jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; }
.mini-cal .jours .nom { color: var(--doux); font-size: 12px; padding: 4px 0; }
.mini-cal .jours button { border: 0; background: none; color: var(--titre); padding: 6px 0; border-radius: 7px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; }
.mini-cal .jours button.hors { color: var(--tres-doux); font-weight: 500; }
.mini-cal .jours button.auj { box-shadow: inset 0 0 0 1.5px var(--bleu-clair); }
.mini-cal .jours button:hover { background: rgba(255, 255, 255, 0.07); }
.mini-cal .jours button .pt { position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--vert); }
.filtre-type { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.4px; }
.filtre-type .carre { width: 17px; height: 17px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 14px; flex: none; }
.cal-zone { padding: 20px 22px; min-width: 0; }
.cal-zone .fc { --fc-border-color: rgba(255, 255, 255, 0.075); --fc-page-bg-color: transparent; --fc-neutral-bg-color: rgba(255, 255, 255, 0.03); --fc-today-bg-color: rgba(0, 90, 226, 0.14); --fc-event-text-color: #fff; --fc-list-event-hover-bg-color: rgba(255, 255, 255, 0.04); font-size: 14px; }
.cal-zone .fc .fc-toolbar { margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.cal-zone .fc .fc-toolbar-title { font-size: 19px; font-weight: 600; color: var(--titre); }
.cal-zone .fc .fc-button { background: rgba(255, 255, 255, 0.07); border: 0; border-radius: 999px; padding: 6px 15px; font-size: 14px; font-weight: 500; color: var(--texte); box-shadow: none; text-transform: none; }
.cal-zone .fc .fc-button:hover { background: rgba(255, 255, 255, 0.12); }
.cal-zone .fc .fc-button-primary:not(:disabled).fc-button-active, .cal-zone .fc .fc-button-primary:not(:disabled):active { background: var(--bleu); color: #fff; box-shadow: 0 2px 10px rgba(0, 90, 226, 0.26); }
.cal-zone .fc .fc-button-group > .fc-button { border-radius: 999px; margin-left: 6px; }
.cal-zone .fc .fc-prev-button, .cal-zone .fc .fc-next-button { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.cal-zone .fc .fc-col-header-cell-cushion { color: #7aa9ff; font-size: 12.5px; font-weight: 600; text-transform: uppercase; padding: 8px 4px; }
.cal-zone .fc .fc-daygrid-day-number { color: var(--titre); font-weight: 600; padding: 8px 10px; }
.cal-zone .fc .fc-day-other .fc-daygrid-day-number { color: var(--tres-doux); }
.cal-zone .fc .fc-day-today .fc-daygrid-day-number { color: #7aa9ff; }
.cal-zone .fc .fc-daygrid-event { border-radius: 5px; padding: 2px 6px; font-size: 12.5px; font-weight: 600; border: 0; margin: 1px 4px; }
.cal-zone .fc .fc-timegrid-event { border-radius: 6px; border: 0; }
.cal-zone .fc .fc-daygrid-day-frame { min-height: 96px; }
.cal-zone .fc .fc-list { border-radius: 8px; overflow: hidden; }
.cal-zone .fc .fc-list-day-cushion { background: rgba(255, 255, 255, 0.04); }
.cal-zone .fc .fc-timegrid-slot-label-cushion, .cal-zone .fc .fc-list-event-time { color: var(--doux); }
.cal-zone .fc .fc-scrollgrid { border-radius: 8px; overflow: hidden; }
.cal-zone .fc .ev-annule { opacity: 0.45; text-decoration: line-through; }

/* ─── Retouches après le premier banc (10/10) ─────────────────────────────── */
.grille > [class*="c-"]:not(.pile) > .carte:only-child { height: 100%; }
.chiffres { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.carte-tete .onglet { padding: 6px 14px; font-size: 13.5px; }
.table-defile { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.table-defile::-webkit-scrollbar { height: 8px; }
.table-defile::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 999px; }
.table-defile::-webkit-scrollbar-track { background: transparent; }
html { scrollbar-color: rgba(255, 255, 255, 0.16) #0d1528; }
.cal-zone .fc .fc-toolbar-chunk { display: flex; align-items: center; gap: 12px; }
.cal-zone .fc .fc-daygrid-day-top { flex-direction: row; }
.cal-zone .fc .fc-icon { font-size: 1.15em; }
.table-serree .table thead th { padding: 13px 10px; }
.table-serree .table tbody td { padding: 10px 10px; white-space: nowrap; }
.table-serree .table thead th:first-child, .table-serree .table tbody td:first-child { padding-left: 20px; }
.table-serree .table thead th:last-child, .table-serree .table tbody td:last-child { padding-right: 20px; }
