/* Charte reprise de NYBA Edu / NYBA Asso : bleu nuit, Inter pour le texte, Poppins pour les titres. */
:root {
  --nuit: #0b1a33;
  --bleu-fonce: #0F2D5B;
  --bleu: #0057B8;
  --bleu-vif: #2f6fd6;
  --ciel: #8fb4ff;
  --rouge: #D52B1E;          /* rouge du drapeau canadien */
  --vert: #16a34a;
  --orange: #b45309;
  --texte: #16233d;
  --gris: #6b7a93;
  --bordure: #e3e8f0;
  --fond: #f5f7fb;
  --titres: 'Poppins', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --corps: 'Inter', 'Segoe UI', Arial, sans-serif;
  --ombre: 0 1px 2px rgba(16,35,61,.04), 0 6px 20px rgba(16,35,61,.06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--corps); color: var(--texte); background: var(--fond); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--bleu); }
h1, h2, h3 { font-family: var(--titres); color: var(--bleu-fonce); line-height: 1.25; margin: 0; }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 1.05rem; font-weight: 600; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.doux { color: var(--gris); }
.petit { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- emblème et nom */
.embleme { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--rouge); box-shadow: 0 6px 18px rgba(0,0,0,.18); flex-shrink: 0; }
.embleme .ic { width: 24px; height: 24px; }
.nom-app { font-family: var(--titres); font-weight: 700; font-size: 16px; letter-spacing: .3px; line-height: 1.15; }
.nom-app span { font-weight: 600; color: #8fe24a; }  /* comme « Edu » de NYBA Edu */
.accroche-marque { display: block; font-size: 12px; color: var(--ciel); margin-top: 2px; }
.bande-canada { display: flex; width: 44px; height: 3px; border-radius: 3px; overflow: hidden; }
.bande-canada span { flex: 1; background: var(--rouge); }
.bande-canada span:nth-child(2) { flex: 2; background: #fff; }

/* ---------------------------------------------------------------- boutons, messages */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .7rem 1.25rem; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--titres); font-weight: 600; font-size: .95rem; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-vif) 100%); box-shadow: 0 8px 20px rgba(0,87,184,.25); transition: transform .15s, box-shadow .15s; }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,87,184,.32); }
.bouton.secondaire { background: #fff; color: var(--bleu); box-shadow: none; border: 1.5px solid var(--bordure); }
.bouton.secondaire:hover { border-color: var(--bleu-vif); }
.bouton.petit { padding: .45rem .85rem; font-size: .85rem; border-radius: 10px; }
.bouton.vert { background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 8px 20px rgba(22,163,74,.25); }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { display: flex; gap: 10px; align-items: center; padding: .75rem 1rem; border-radius: 12px; background: #ecfdf3; border: 1px solid #bbf7d0; color: #166534; font-size: .95rem; }
.messages li.error { background: #fff1f1; border-color: #f6c9c9; color: #a3231b; }

/* ---------------------------------------------------------------- cartes et formulaires */
.carte { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--ombre); }
.champs { display: grid; gap: 1rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.1rem; }
.champ label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: #2a3854; }
.champ input:not([type=checkbox]), .champ select, .champ textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--bordure); border-radius: 12px; font: inherit; font-size: .95rem; background: #fff; color: var(--texte);
  transition: border-color .15s, box-shadow .15s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu-vif); box-shadow: 0 0 0 4px rgba(47,111,214,.13); }
.champ.case { display: flex; gap: .6rem; align-items: flex-start; grid-column: 1 / -1; padding: .65rem .8rem; border-radius: 12px; background: #f8fafd; border: 1px solid var(--bordure); }
.champ.case input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bleu); flex-shrink: 0; }
.champ.case label { font-weight: 500; margin: 0; cursor: pointer; }
.champ.large { grid-column: 1 / -1; }
.champ .erreur { color: #b42318; font-size: .82rem; margin-top: .3rem; }
.champ.en-erreur input, .champ.en-erreur select { border-color: #f04438; background: #fffbfa; }
.piege { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- PAGE PUBLIQUE (candidat) */
.public-entete { background: linear-gradient(160deg, var(--nuit) 0%, var(--bleu-fonce) 60%, #17407e 100%); color: #fff; position: relative; overflow: hidden; }
.public-entete::before { content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 70%); }
.public-entete .halo { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--rouge); opacity: .16; filter: blur(80px); right: -100px; top: -120px; }
.public-entete .interieur { position: relative; max-width: 860px; margin: 0 auto; padding: 22px 16px 70px; }
.public-entete .marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.public-entete .accroche { margin-top: 42px; max-width: 640px; }
.pastille-info { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #dbe6ff; }
.pastille-info .point { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.public-entete h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.8px; margin-top: 18px; }
.public-entete h1 em { font-style: normal; background: linear-gradient(90deg, #ffb4ab, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.public-entete p { color: #c5d3ee; font-size: 1.02rem; margin: 14px 0 0; }
.etapes-accroche { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .9rem; color: #dbe6ff; }
.etapes-accroche span { display: inline-flex; align-items: center; gap: 8px; }
.etapes-accroche .ic { color: #6ee7b7; }

.public-contenu { max-width: 860px; margin: -44px auto 0; padding: 0 16px 3rem; position: relative; }
.rubrique-formulaire { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; }
.rubrique-formulaire .numero { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-family: var(--titres); font-weight: 700;
  color: var(--bleu); background: #eaf1fd; }
.rubrique-formulaire .aide { margin: .15rem 0 0; font-size: .88rem; }
.rubrique-formulaire .champs { grid-column: 1 / -1; }
@media (min-width: 861px) { .rubrique-formulaire .champs { grid-column: 2; } }
.envoi { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.1rem; }

/* Formulaire par étapes */
.public-entete .accroche-courte { margin-top: 24px; }
.public-entete .accroche-courte h1 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 0; }
.progression { padding: 1rem 1.2rem; }
.progression-tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.progression-tete b { font-family: var(--titres); color: var(--bleu-fonce); }
.barre-progression { height: 6px; border-radius: 99px; background: #eef2f8; margin: .6rem 0 .9rem; overflow: hidden; }
.barre-progression span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--bleu-vif), #34d399); transition: width .3s; }
.liste-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.liste-etapes li, .liste-etapes a { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--gris); text-decoration: none; }
.liste-etapes .rond { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: #eef2f8; color: var(--gris); }
.liste-etapes .rond .ic { width: 13px; height: 13px; stroke-width: 3; }
.liste-etapes li.faite .rond { background: #dcfce7; color: #15803d; }
.liste-etapes li.courante { color: var(--bleu-fonce); font-weight: 600; }
.liste-etapes li.courante .rond { background: var(--bleu); color: #fff; }
.liste-etapes a:hover .nom { text-decoration: underline; }
@media (max-width: 640px) { .liste-etapes .nom { display: none; } .liste-etapes li.courante .nom { display: inline; } }
.liste-formulaire .aide { margin: .2rem 0 0; font-size: .88rem; }
.lignes { display: grid; gap: 12px; margin-top: 1rem; }
.ligne-liste { border: 1px solid var(--bordure); border-radius: 14px; padding: 1rem 1.1rem; background: #fafbfd; }
.ligne-liste .champs { margin-top: 0; }
.liste-formulaire .liste-vide { margin: .8rem 0; }
.liste-formulaire .ajouter { margin-top: .9rem; }
.retirer { display: inline-flex; gap: 6px; align-items: center; margin-top: .7rem; font-size: .85rem; color: #b42318; cursor: pointer; }
.aide-champ { color: var(--gris); font-size: .78rem; margin-top: .25rem; }
.navigation-etapes { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.navigation-etapes .bouton { padding: .8rem 1.5rem; }
.envoi .bouton { padding: .85rem 1.6rem; font-size: 1rem; }
.mention-legale { font-size: .82rem; color: var(--gris); text-align: center; margin-top: 1.5rem; }
.public-pied { text-align: center; color: #a4afc1; font-size: .8rem; padding: 0 16px 2rem; }

.merci { text-align: center; padding: 3rem 1.5rem; }
.merci .rond { width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: #ecfdf3; color: var(--vert); box-shadow: 0 0 0 10px #f3fdf6; }
.merci .rond .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.merci h1 { font-size: 1.7rem; }
.merci p { max-width: 460px; margin: .8rem auto 0; }
.verdict-pastille { display: inline-flex; align-items: center; gap: 6px; padding: .25rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.verdict-pastille.vert { background: rgba(52,211,153,.18); color: #6ee7b7; }
.verdict-pastille.orange { background: rgba(251,191,36,.18); color: #fcd34d; }
.verdict-pastille.rouge { background: rgba(143,180,255,.18); color: #bcd2ff; }
.rapports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .9rem; }

/* ---------------------------------------------------------------- PAGE DE CONNEXION */
.page-connexion { min-height: 100vh; display: flex; }
.vitrine { flex: 1.2; position: relative; overflow: hidden; color: #fff; padding: 44px 56px; display: flex; flex-direction: column;
  background: radial-gradient(1100px 600px at 10% -10%, #1f3f7a 0%, transparent 60%), linear-gradient(160deg, var(--nuit) 0%, var(--bleu-fonce) 55%, #1b3b78 100%); }
.vitrine .grille { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.vitrine .halo { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.vitrine .halo.un { width: 420px; height: 420px; background: #2f63d6; opacity: .35; right: -120px; top: 18%; }
.vitrine .halo.deux { width: 300px; height: 300px; background: var(--rouge); opacity: .2; left: -80px; bottom: -60px; }
.vitrine > * { position: relative; z-index: 1; }
.vitrine .marque { display: flex; align-items: center; gap: 14px; }
.vitrine .embleme { width: 48px; height: 48px; border-radius: 14px; }
.vitrine .embleme .ic { width: 28px; height: 28px; }
.vitrine .nom-app { font-size: 19px; }
.vitrine .baseline { font-size: 12px; color: var(--ciel); margin-top: 2px; }
.vitrine .bande-canada { margin-top: 18px; width: 54px; height: 4px; }
.vitrine .accroche { margin-top: auto; padding-top: 48px; max-width: 520px; }
.vitrine h1 { color: #fff; font-weight: 800; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -.8px; margin-top: 22px; }
.vitrine h1 em { font-style: normal; background: linear-gradient(90deg, #9cc0ff, #ffb4ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vitrine .accroche p { margin-top: 18px; font-size: 15.5px; line-height: 1.65; color: #c5d3ee; }
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.atout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: background .2s, transform .2s; }
.atout:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.atout .icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(143,180,255,.14); color: var(--ciel); flex-shrink: 0; }
.atout strong { display: block; font-family: var(--titres); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.atout span { font-size: 12.5px; line-height: 1.5; color: #aebfdf; }
.vitrine .pied-vitrine { margin-top: auto; padding-top: 34px; font-size: 12px; color: #8ea3c9; }
/* Aperçu flottant d'une candidature */
.apercu { position: absolute; z-index: 1; right: 46px; top: 140px; width: 240px; background: rgba(255,255,255,.97); color: var(--texte); border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 60px rgba(3,10,30,.45); transform: rotate(3deg); animation: flotter 7s ease-in-out infinite; }
.apercu .tete { display: flex; align-items: center; gap: 10px; }
.apercu .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--bleu), var(--bleu-vif)); }
.apercu .qui { font-weight: 600; font-size: 13.5px; }
.apercu .ou { font-size: 11.5px; color: var(--gris); }
.apercu .score { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.apercu .score b { font-family: var(--titres); font-size: 30px; font-weight: 800; color: var(--bleu); }
.apercu .score small { font-size: 12px; color: var(--gris); }
.apercu .jauge { height: 7px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.apercu .jauge span { display: block; height: 100%; width: 78%; border-radius: 99px; background: linear-gradient(90deg, var(--bleu-vif), #34d399); }
.apercu .etiquette { margin-top: 12px; display: inline-flex; font-size: 11.5px; font-weight: 600; color: #166534; background: #dcfce7; padding: 4px 10px; border-radius: 999px; }
@keyframes flotter { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.zone-connexion { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; background: var(--fond); }
.boite { width: 100%; max-width: 400px; animation: apparaitre .6s ease both; }
.boite .salutation { font-size: 13.5px; font-weight: 600; color: var(--bleu); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.boite h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.boite .intro { color: var(--gris); font-size: 14.5px; margin: 8px 0 28px; }
.erreur-connexion { display: flex; gap: 10px; align-items: flex-start; background: #fff1f1; border: 1px solid #f6c9c9; color: #a3231b; font-size: 13.5px; padding: 12px 14px; border-radius: 12px; margin-bottom: 20px; }
.saisie { position: relative; }
.saisie > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #93a1b8; pointer-events: none; }
.boite .champ .saisie input { width: 100%; font: inherit; font-size: 15px; color: var(--texte); padding: 13px 46px 13px 44px; border-radius: 12px; border: 1.5px solid var(--bordure); background: #fff; transition: border-color .15s, box-shadow .15s; }
.boite .champ .saisie input:focus { outline: none; border-color: var(--bleu-vif); box-shadow: 0 0 0 4px rgba(47,111,214,.14); }
.saisie:focus-within > .ic { color: var(--bleu-vif); }
.oeil { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: #93a1b8; padding: 8px; border-radius: 8px; display: flex; }
.oeil:hover { color: var(--bleu); background: #eef3fc; }
.majuscules { display: none; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: #8a5a00; background: #fff6dc; padding: 6px 10px; border-radius: 8px; }
.majuscules.visible { display: flex; }
.boite .champ { margin-bottom: 18px; }
.boite .bouton { width: 100%; padding: 14px 18px; font-size: 15.5px; margin-top: 6px; }
.boite .bouton .fleche { transition: transform .2s; }
.boite .bouton:hover .fleche { transform: translateX(3px); }
.rouage { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: tourner .8s linear infinite; }
.bouton.en-cours { opacity: .85; pointer-events: none; }
.bouton.en-cours .rouage { display: block; }
.bouton.en-cours .fleche { display: none; }
.securite { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: #8b98ae; }
.lien-formulaire { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px dashed var(--bordure); font-size: 13px; color: var(--gris); display: flex; gap: 10px; align-items: center; text-decoration: none; transition: border-color .15s; }
.lien-formulaire:hover { border-color: var(--bleu-vif); }
.lien-formulaire b { color: var(--bleu); }
.lien-formulaire .ic { color: var(--bleu-vif); }
@keyframes apparaitre { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tourner { to { transform: rotate(360deg); } }
@media (max-width: 1500px) { .apercu { display: none; } }
@media (max-width: 900px) {
  .page-connexion { flex-direction: column; }
  .vitrine { flex: none; padding: 26px 22px 30px; }
  .vitrine .accroche { padding-top: 24px; }
  .vitrine h1 { font-size: 26px; }
  .atouts, .vitrine .pied-vitrine { display: none; }
  .zone-connexion { padding: 32px 20px 48px; }
}

/* ---------------------------------------------------------------- ESPACE GESTIONNAIRE */
.gestion { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.barre-laterale { background: linear-gradient(180deg, var(--nuit) 0%, var(--bleu-fonce) 100%); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.barre-laterale .marque { display: flex; align-items: center; gap: 12px; padding: 22px 20px 0; color: #fff; text-decoration: none; }
.barre-laterale .bande-canada { margin: 14px 20px 0; }
.barre-laterale .portail { margin: 18px 14px 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 12.5px; color: #c5d3ee; display: flex; align-items: center; gap: 8px; }
.barre-laterale .portail .point { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.menu { flex: 1; padding: 8px 12px; }
.menu .titre-menu { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #6f86b3; padding: 16px 10px 6px; }
.menu a, .menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #c9d6ef; text-decoration: none; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.menu a .ic, .menu button .ic { color: #8ea3c9; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu a.actif { background: linear-gradient(90deg, rgba(47,111,214,.35), rgba(47,111,214,.12)); color: #fff; box-shadow: inset 3px 0 0 #6ea8ff; }
.menu a.actif .ic { color: #9cc0ff; }
.menu .compteur { margin-left: auto; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.barre-laterale .compte { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.barre-laterale .compte .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.barre-laterale .compte .qui { font-size: 13px; line-height: 1.2; flex: 1; min-width: 0; }
.barre-laterale .compte .qui small { display: block; color: #8ea3c9; font-size: 11.5px; }
.barre-laterale .compte button { background: none; border: 0; color: #8ea3c9; cursor: pointer; padding: 8px; border-radius: 8px; display: flex; }
.barre-laterale .compte button:hover { background: rgba(255,255,255,.08); color: #fff; }

.contenu { min-width: 0; }
.barre-haut { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 5; }
.barre-haut .fil { font-size: 13px; color: var(--gris); }
.barre-haut .fil b { color: var(--texte); font-weight: 600; }
.barre-haut .actions-haut { margin-left: auto; display: flex; gap: 8px; }
.ouvrir-menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--bleu-fonce); }
.page { padding: 26px 28px 48px; max-width: 1180px; }
.entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.entete-page p { margin: .25rem 0 0; }

/* Tuiles de chiffres */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 1.3rem; }
.tuile { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 16px 18px; box-shadow: var(--ombre); display: flex; gap: 14px; align-items: center; }
.tuile .icone { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.tuile .icone.bleu { background: #eaf1fd; color: var(--bleu); }
.tuile .icone.orange { background: #fff4e5; color: var(--orange); }
.tuile .icone.vert { background: #e9f9ef; color: var(--vert); }
.tuile .icone.rouge { background: #fdecec; color: var(--rouge); }
.tuile b { display: block; font-family: var(--titres); font-size: 1.5rem; font-weight: 700; color: var(--bleu-fonce); line-height: 1.1; }
.tuile span { font-size: .82rem; color: var(--gris); }

/* Filtres et tableau */
.filtres { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
.pastilles a { padding: .38rem .85rem; border-radius: 99px; background: #fff; border: 1px solid var(--bordure); text-decoration: none; color: var(--texte); font-size: .85rem; font-weight: 500; }
.pastilles a b { color: var(--gris); font-weight: 600; margin-left: 4px; }
.pastilles a.actif { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.pastilles a.actif b { color: #9cc0ff; }
.recherche { position: relative; margin-left: auto; }
.recherche .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #93a1b8; }
.recherche input, .filtres select { padding: .55rem .8rem .55rem 2.2rem; border: 1.5px solid var(--bordure); border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; min-width: 220px; }
.filtres select { padding-left: .8rem; min-width: 0; }
.tableau { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
.defilant { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); background: #f8fafd; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tr.cliquable { cursor: pointer; transition: background .12s; }
tr.cliquable:hover { background: #f5f9ff; }
.personne { display: flex; align-items: center; gap: 12px; }
.personne .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-vif)); }
.personne a { font-weight: 600; color: var(--texte); text-decoration: none; }
.personne small { display: block; color: var(--gris); font-size: .8rem; }
.statut { display: inline-flex; align-items: center; gap: 6px; padding: .2rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef1f5; color: var(--gris); white-space: nowrap; }
.statut::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.statut.nouveau { background: #eaf1fd; color: var(--bleu); }
.statut.en_etude { background: #f3ecfe; color: #7c3aed; }
.statut.a_recontacter { background: #fff4e5; color: var(--orange); }
.statut.retenu { background: #e9f9ef; color: #15803d; }
.statut.non_retenu { background: #fdecec; color: #b42318; }
.score { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titres); font-weight: 700; font-variant-numeric: tabular-nums; }
.score .mini-jauge { width: 54px; height: 6px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.score .mini-jauge span, .carte-score .jauge span { max-width: 100%; }
.score .mini-jauge span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--bleu-vif), #34d399); }
.nowrap { white-space: nowrap; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: #f1f4f9; padding: .1rem .4rem; border-radius: 6px; }
.carte-identifiants { border: 1.5px solid #bbf7d0; background: #f6fef9; }
.tete-identifiants { display: flex; gap: 14px; align-items: flex-start; }
.tete-identifiants .rond { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #dcfce7; color: #15803d; flex-shrink: 0; }
.identifiants { grid-template-columns: max-content 1fr; margin: 1rem 0; }
.identifiants code { font-size: 1.05rem; font-weight: 600; background: #fff; border: 1px solid #d1fadf; }
.personne small { white-space: nowrap; }
@media (max-width: 1150px) { .col-large { display: none; } }
.vide { text-align: center; padding: 3rem 1rem; color: var(--gris); }
.vide .ic { width: 40px; height: 40px; color: #c3cde0; }

/* Fiche */
.retour { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.profil-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profil-tete .avatar { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-family: var(--titres); font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--bleu), var(--bleu-vif)); box-shadow: 0 10px 22px rgba(0,87,184,.25); }
.coordonnees { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.coordonnees a, .coordonnees span { display: inline-flex; align-items: center; gap: 6px; padding: .3rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--bordure); font-size: .85rem; color: var(--texte); text-decoration: none; }
.coordonnees a:hover { border-color: var(--bleu-vif); color: var(--bleu); }
.coordonnees .ic { width: 15px; height: 15px; color: var(--gris); }
.grille-fiche { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: start; margin-top: 1.3rem; }
@media (max-width: 980px) { .grille-fiche { grid-template-columns: 1fr; } }
.carte-score { background: linear-gradient(160deg, var(--nuit), var(--bleu-fonce) 70%, #1b3b78); color: #fff; border: 0; position: relative; overflow: hidden; }
.carte-score::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: #2f63d6; opacity: .3; filter: blur(60px); right: -60px; top: -80px; }
.carte-score > * { position: relative; z-index: 1; }
.carte-score .libelle { font-size: .82rem; color: var(--ciel); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.carte-score .valeur { font-family: var(--titres); font-size: 3.4rem; font-weight: 800; line-height: 1; margin: .35rem 0 .6rem; letter-spacing: -1px; }
.carte-score .valeur small { font-size: 1rem; font-weight: 500; color: #9fb3d8; letter-spacing: 0; }
.carte-score .jauge { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.carte-score .jauge span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6ea8ff, #34d399); }
.carte-score .reperes { display: flex; justify-content: space-between; font-size: .72rem; color: #8ea3c9; margin-top: 6px; }
.blocs { margin-top: 1.2rem; display: grid; gap: 10px; }
.bloc { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 14px; }
.bloc .ligne-bloc { display: flex; justify-content: space-between; font-weight: 600; font-family: var(--titres); font-size: .92rem; }
.bloc ul { list-style: none; padding: 0; margin: 6px 0 0; }
.bloc li { display: flex; justify-content: space-between; font-size: .83rem; color: #c5d3ee; padding: 2px 0; }
.bloc li b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.langues-retenues { margin-top: 1rem; font-size: .8rem; color: #9fb3d8; }
.avertissement-score { margin-top: .6rem; font-size: .75rem; color: #8ea3c9; }
.remarques { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: 8px; }
.remarques li { display: flex; gap: 10px; padding: .65rem .8rem; border-radius: 12px; background: #fff8eb; border: 1px solid #fde7c2; font-size: .9rem; color: #7a4a00; }
.remarques li .ic { color: #d97706; margin-top: 2px; }
.rien { display: flex; gap: 10px; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: #ecfdf3; color: #166534; font-size: .9rem; margin-top: .9rem; }
.choix-statut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.choix-statut label { cursor: pointer; }
.choix-statut input { position: absolute; opacity: 0; pointer-events: none; }
.choix-statut .statut { padding: .4rem .85rem; font-size: .84rem; border: 1.5px solid transparent; transition: box-shadow .15s; }
.choix-statut input:checked + .statut { border-color: currentColor; box-shadow: 0 0 0 3px rgba(47,111,214,.1); }
.choix-statut input:focus-visible + .statut { outline: 2px solid var(--bleu-vif); outline-offset: 2px; }
.reponses { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: .8rem; }
dl { display: grid; grid-template-columns: minmax(110px, .9fr) minmax(0, 1.2fr); gap: .45rem 1rem; margin: .9rem 0 0; font-size: .9rem; }
dt { color: var(--gris); }
dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.navigation-fiche { display: flex; gap: 8px; }
.section-large { grid-column: 1 / -1; }
.reponses > *, .grille-fiche > * { min-width: 0; }  /* un large tableau défile dans sa carte sans élargir la page */
.titre-tableau { font-family: var(--titres); font-size: .9rem; color: var(--bleu-fonce); margin: 1rem 0 .4rem; }
.tableau-reponses { font-size: .85rem; border: 1px solid var(--bordure); border-radius: 10px; }
.tableau-reponses th, .tableau-reponses td { padding: .5rem .6rem; }

@media (max-width: 860px) {
  .gestion { grid-template-columns: 1fr; }
  .barre-laterale { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .25s; }
  .gestion.menu-ouvert .barre-laterale { transform: none; box-shadow: 0 0 0 100vmax rgba(5,12,28,.45); }
  .ouvrir-menu { display: flex; }
  .barre-haut { padding: 12px 16px; }
  .page { padding: 20px 16px 40px; }
  .recherche { margin-left: 0; width: 100%; }
  .recherche input { width: 100%; }
  .rubrique-formulaire { grid-template-columns: 1fr; }
  .rubrique-formulaire .numero { margin-bottom: .6rem; }
}
