/* LEXIK — portail CFP « Illustré » (R20, étape 4). Tout est limité à body.gfx-illustrated :
   le style « Classique » garde l'apparence R19. Le choix est commun au portail et au jeu. */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../assets/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }

/* Sélecteur de style (les deux modes) */
.gfx-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0, 0, 0, 0.2); font-size: 0.85rem; }
.gfx-pick > span { padding: 0 6px 0 10px; color: #b4c2cc; }
.gfx-pick button { border: 0; border-radius: 999px; padding: 6px 12px; background: transparent; color: #eef4ff; font: inherit; font-weight: 700; cursor: pointer; }
.gfx-pick button[aria-pressed="true"] { background: #FECF0D; color: #111C26; }
.gfx-pick button:focus-visible { outline: 2px solid #FECF0D; outline-offset: 2px; }
.intro-card .gfx-pick { display: flex; width: fit-content; margin: 16px auto 0; }

body.gfx-illustrated.portal {
  --display: "Baloo 2", "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --edge: rgba(110, 178, 255, 0.72);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(70, 150, 255, 0.18), transparent 60%), linear-gradient(180deg, #102445, #0A1524 60%);
  background-attachment: fixed;
}
.gfx-illustrated .portal-top { background: linear-gradient(180deg, rgba(16, 36, 69, .96), rgba(10, 21, 36, .9)); border-bottom: 1.5px solid rgba(110, 178, 255, .35); }
.gfx-illustrated.portal h1, .gfx-illustrated.portal h2, .gfx-illustrated.portal h3,
.gfx-illustrated .student-tile strong, .gfx-illustrated .metric strong { font-family: var(--display); letter-spacing: .005em; }
.gfx-illustrated .auth-box, .gfx-illustrated .surface, .gfx-illustrated .student-tile, .gfx-illustrated .metric,
.gfx-illustrated .group-item, .gfx-illustrated .license-item, .gfx-illustrated .user-item, .gfx-illustrated .production,
.gfx-illustrated .assignment, .gfx-illustrated .mission-step, .gfx-illustrated .performance-section, .gfx-illustrated.portal dialog {
  background: linear-gradient(180deg, rgba(26, 52, 92, .94), rgba(10, 24, 46, .94));
  border: 1.5px solid var(--edge); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 16px rgba(70, 150, 255, .22), 0 12px 30px rgba(0, 0, 0, .35);
}
.gfx-illustrated .student-tile:hover { border-color: #FECF0D; box-shadow: 0 0 18px rgba(254, 207, 13, .35); }
.gfx-illustrated .tile-initials { background: linear-gradient(180deg, #FFE36A, #F2B200); border-radius: 50%; font-family: var(--display); font-size: 18px; }
.gfx-illustrated .tile-progress { background: rgba(4, 12, 24, .8); border: 1px solid rgba(120, 180, 250, .35); height: 8px; border-radius: 6px; }
.gfx-illustrated .tile-progress span { background: linear-gradient(180deg, #8FE0FF, #2F86FF 60%, #1F5FD0); box-shadow: 0 0 8px rgba(100, 190, 255, .8); }
.gfx-illustrated.portal .btn { background: linear-gradient(180deg, rgba(44, 82, 138, .95), rgba(22, 44, 80, .95)); border-color: var(--edge); color: #EEF4FF; border-radius: 999px; }
.gfx-illustrated.portal .btn:hover { border-color: #9FD4FF; box-shadow: 0 0 12px rgba(91, 184, 255, .45); }
.gfx-illustrated.portal .btn-primary { background: linear-gradient(180deg, #FFE36A, #FECF0D 55%, #F2B200); color: #10223F; border-color: #F2B200; font-weight: 800; box-shadow: 0 0 14px rgba(254, 207, 13, .35); }
.gfx-illustrated.portal .btn-ghost { background: transparent; }
.gfx-illustrated.portal input, .gfx-illustrated.portal select, .gfx-illustrated.portal textarea { background: rgba(6, 16, 32, .85); border: 1.5px solid rgba(110, 178, 255, .45); border-radius: 12px; }
.gfx-illustrated .form-tabs button, .gfx-illustrated .portal-nav button { font-family: var(--display); font-weight: 700; font-size: 16px; }
.gfx-illustrated .form-tabs .selected, .gfx-illustrated .portal-nav .selected { color: #FECF0D; border-color: #FECF0D; }
.gfx-illustrated .badge { border-radius: 999px; padding: 4px 10px; }
.gfx-illustrated .notice { background: rgba(30, 60, 100, .6); border-left-color: #FECF0D; border-radius: 0 12px 12px 0; }
.gfx-illustrated .statusline { background: linear-gradient(180deg, #FFE36A, #FECF0D); border-radius: 999px; }

/* Carte de connexion « verre bleu », la pointe suit la bordure */
.gfx-illustrated .intro-card { background: linear-gradient(180deg, rgba(26, 52, 92, .95), rgba(10, 24, 46, .95)); border: 1.5px solid var(--edge); border-top: 3px solid #FECF0D;
  border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 26px rgba(70, 150, 255, .35), 0 24px 60px rgba(0, 0, 0, .45); }
.gfx-illustrated .intro-card::before { border-right-color: rgba(110, 178, 255, .72); }
.gfx-illustrated .intro-card::after { border-right-color: rgba(20, 42, 76, .95); }
.gfx-illustrated .intro-card h1 { font-size: clamp(28px, 2.6vw, 38px); }
.gfx-illustrated .intro-canvas { image-rendering: auto; }
.gfx-illustrated .intro-skip { background: rgba(16, 36, 69, .75); border-color: rgba(110, 178, 255, .5); }

.gfx-illustrated.portal .gift-send{background:linear-gradient(180deg,#263d61,#152b46);color:#eef4ff;border-color:#dca757}
.gfx-pick button{min-height:44px}
