/* =========================================================================
   SERIOUS Games — identite visuelle "Police Integree"
   Palette officielle : ocre (Police Federale) / bleu clair (Police Locale)
   sur une base bleu marine (uniforme). Pas de framework externe : ce fichier
   redefinit intentionnellement les classes utilitaires deja presentes dans
   les vues (btn, card, table, badge, form-control, ...) sans devoir toucher
   au HTML existant.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #123156;
  --navy-700: #1c4272;
  --navy-100: #dfe6f0;

  /* Turquoise (demande du 10/09, suite au nouveau logo) : teinte extraite de
     l'anneau turquoise du logo (~#1cc8d5). Devient la couleur d'accent
     principale de l'appli (boutons, bordures de cartes/tableaux, langue
     active, graphiques...), a la place de l'ocre - decision explicite de
     l'utilisateur apres comparaison des deux prototypes, l'ocre restant
     uniquement reserve aux messages d'alerte/avertissement (voir
     .bg-warning / .alert-warning plus bas, qui continuent a utiliser
     --gold-xxx). --sidenav-teal-950 : version tres assombrie utilisee pour
     le fond du menu lateral. */
  --sidenav-teal-950: #08373b;
  --teal-700: #0e6c77;
  --teal-600: #128e9b;
  --teal-500: #16afc0;
  --teal-400: #52dceb;
  --teal-100: #d1f6fa;

  /* Ocre : aucun code hexadecimal officiel n'est publie par la Police Federale
     (confirme via police.be et la documentation d'identite visuelle) - valeur
     retenue = l'ocre pigmentaire de reference ("Yellow Ochre" / #CC7722),
     plus fidele a la teinte terreuse reelle qu'un jaune-or sature.
     Reserve desormais aux seuls messages d'alerte/avertissement (demande du
     10/09, l'ocre a ete remplace par le turquoise partout ailleurs) - ne pas
     reutiliser ces variables hors de .bg-warning / .alert-warning. */
  --gold-950: #4a2c0e;
  --gold-700: #a05c1a;
  --gold-600: #b8681d;
  --gold-500: #cc7722;
  --gold-400: #d99a52;
  --gold-100: #f6e7d3;

  --blue-700: #2467a0;
  --blue-600: #2f86c2;
  --blue-500: #4fa9dc;
  --blue-100: #e3f1fb;

  --ink-900: #131c27;
  --ink-700: #3a4655;
  --ink-500: #63707f;
  --ink-300: #9aa6b2;

  --line: #dfe3ea;
  --line-strong: #c3cbd6;
  --surface: #ffffff;
  --canvas: #eef1f6;

  --success-600: #1f7a5c;
  --success-100: #dcf1e8;
  --danger-600: #b3402f;
  --danger-100: #fbe6e2;
  --warning-ink: #6b4c05;

  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --font-display: 'Fredoka', 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--canvas);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy-900);
  margin: 0 0 .5em 0;
}

h2 { font-size: 1.5rem; }
h4 { font-size: 1.05rem; color: var(--ink-700); }
h5 { font-size: 1rem; font-weight: 700; }

a { color: var(--blue-700); }
a:hover { color: var(--navy-800); }

.text-muted { color: var(--ink-500) !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.small { font-size: .8125rem; }
.lead { font-size: 1.05rem; color: var(--ink-700); }
.display-6 { font-family: var(--font-display); font-size: 2rem; }
.text-decoration-none { text-decoration: none; }
.fw-normal { font-weight: 400; }

/* ---------------------------------------------------------------------
   Layout utilities (subset of Bootstrap grid actually used in the views)
   --------------------------------------------------------------------- */
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
.pb-5 { padding-bottom: 3rem; }
.p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .35rem; } .mb-2 { margin-bottom: .75rem; }
.mb-3 { margin-bottom: 1.1rem; } .mb-4 { margin-bottom: 1.75rem; }
.mt-3 { margin-top: 1.1rem; } .mt-4 { margin-top: 1.75rem; }
.me-2 { margin-right: .5rem; } .ms-1 { margin-left: .35rem; }
.ps-3 { padding-left: 1rem; }
.w-100 { width: 100%; }
.gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.border-start { border-left: 1px solid rgba(255,255,255,.25); }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; margin-bottom: 1rem; }
.col-md-4 { width: 33.3333%; }
.col-md-5 { width: 41.6666%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.3333%; }
.col-md-8 { width: 66.6666%; }
.g-3 { gap: 1rem 0; }
@media (max-width: 767px) {
  .row > [class*="col-"] { width: 100% !important; }
}

/* ---------------------------------------------------------------------
   Navigation laterale (repliee = icones seules, s'etend au survol souris
   ou au tap sur le bouton chevron pour le tactile / petites largeurs)
   --------------------------------------------------------------------- */
:root {
  --sidenav-collapsed: 68px;
  --sidenav-expanded: 234px;
}

.app-shell { display: flex; min-height: 100vh; }

.app-content {
  flex: 1 1 auto;
  margin-left: var(--sidenav-collapsed);
  min-width: 0;
  /* Colonne flex pour que le bas de page (.app-bottom) puisse etre pousse
     contre le bord inferieur de l'ecran meme quand le contenu est court -
     un simple margin-top le laisserait coller au contenu. */
  display: flex;
  flex-direction: column;
}
/* Pages sans session ouverte : meme mecanique, appliquee au conteneur qui
   remplace .app-content puisque .app-shell n'existe pas alors. */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; }

/* width: 100% est INDISPENSABLE ici (bug constate le 11/09/2026).
   .container porte "margin: 0 auto", et en contexte flex une marge
   automatique sur l'axe transversal empeche l'etirement : le conteneur se
   retractait alors a la largeur de son contenu au lieu de remplir la page.
   Effet visible : dans la salle de jeu, les boutons de mode de jeu et le
   tableau des scores passaient l'un sous l'autre au lieu d'etre cote a cote.
   Sans consequence sur la mise en page d'origine, box-sizing etant en
   border-box et max-width/margin continuant de s'appliquer. */
.app-content > .container,
.auth-page > .container { flex: 0 0 auto; width: 100%; }

/* Bas de page : bandeau de la vue (facultatif) puis copyright. "auto" sur la
   marge haute absorbe l'espace disponible et plaque le bloc en bas. */
.app-bottom { margin-top: auto; padding: 0 var(--pad-page, 1rem); }

.app-copyright {
  margin: 18px 0 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-300, #9aa6b2);
  letter-spacing: .02em;
}
.app-content .container { padding-top: 1.75rem; }

/* Fond visuel par defaut de tout le back-office (demande explicite du
   10/09) : le meme fond que la salle de jeu, applique a TOUS les ecrans qui
   n'ont pas deja le leur. Les 4 ecrans de jeu (salle de jeu, action, quiz,
   dilemme) definissent chacun leur propre fond dans un <style> propre a
   leur vue, charge dans le document APRES ce fichier (lien <link> place
   dans le <head>, avant le contenu de la page) : a specificite egale
   (.app-content), c'est cette regle plus tardive qui l'emporte - inutile
   de les exclure explicitement ici, ce fond par defaut ne s'y affiche
   jamais.
   Le motif geometrique abstrait de "salle-de-jeu.png" (sans contenu
   localise dans un coin) se prete bien a etre recadre/zoome par "cover"
   sur des pages de hauteurs tres variables (un ecran de jeu court comme un
   long tableau d'administration), contrairement a une illustration de
   scene comme celles de dilemme/action.
   "fixed" (et non "scroll", contrairement au choix initial du 09/09) :
   corrige un bug remonte le 10/09 sur l'ecran Dilemme (liste de videos
   longue) - avec "scroll", "cover" dimensionne l'image sur la hauteur
   TOTALE du contenu (tout ce qui defile), pas sur celle de la fenetre :
   plus la page est longue, plus l'image parait demesurement agrandie et
   repoussee vers le bas (il fallait "scroller a mort" pour l'apercevoir).
   Avec "fixed", l'image est dimensionnee sur la fenetre et reste immobile
   pendant que le contenu defile par-dessus - exactement le comportement
   demande ("qu'elle reste fixe et que ce soit la liste qui remonte").
   Le risque de "fixed" identifie le 09/09 (partie gauche de l'image
   poussee sous le menu lateral, invisible) ne s'est pas reproduit ici a la
   verification visuelle : le motif abstrait n'a pas de contenu localise a
   perdre sur une simple largeur de menu (68px), contrairement aux
   illustrations de scene d'origine.
   Egalement applique a "body" : les ecrans de connexion (admin et joueur)
   et le changement de mot de passe temporaire n'affichent ni menu lateral
   ni ".app-content" (voir le bloc "else" de app/Views/layouts/main.php,
   utilise tant qu'aucune session n'est ouverte) - sans ce doublon, ces
   ecrans-la resteraient sans fond. Aucun risque de superposition/conflit
   visuel : ".app-shell" (present uniquement une fois connecte) occupe
   toute la fenetre (min-height: 100vh) et masque alors entierement le fond
   de "body". */
.app-content, body {
  background-image:
    linear-gradient(rgba(238, 241, 246, .72), rgba(238, 241, 246, .72)),
    url('../img/backgrounds/salle-de-jeu.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.sidenav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidenav-collapsed);
  background: var(--sidenav-teal-950);
  border-right: 3px solid var(--teal-500);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  /* PAS d'overflow:hidden ici (corrige le 11/09) : le bouton de deploiement
     est volontairement decale de 13px vers l'exterieur (.sidenav-toggle,
     right: -13px) pour chevaucher la bordure, et un rognage au niveau du
     menu n'en laissait voir que la moitie gauche.
     Le masquage des libelles en position repliee est assure la ou il doit
     l'etre : .sidenav-brand, .sidenav-links et .sidenav-bottom ont chacun
     leur propre overflow. */
  overflow: visible;
  transition: width .17s ease;
  white-space: nowrap;
}
/* Contient les libelles du bas (compte, langue, deconnexion) quand le menu
   est replie - role auparavant tenu par l'overflow du menu lui-meme. */
.sidenav-bottom { overflow: hidden; }

/* ---------------------------------------------------------------------
   Menu lateral cote JOUEUR (demande du 11/09)
   ---------------------------------------------------------------------
   Replie, il ne reste que la ligne turquoise et la fleche sur laquelle
   appuyer. Le bandeau sombre et ses icones disparaissent : sur un
   telephone, ils ne font que reduire la largeur utile du contenu, alors
   qu'en back-office ils restent utiles pour naviguer d'un coup d'oeil.

   Le contenu du menu n'est pas supprime mais masque : deployer la fleche
   le rend a nouveau disponible, identique a celui du back-office.        */

.app-shell.is-player .sidenav:not(.expanded) {
  width: 0;
  background: transparent;
  box-shadow: none;
}
.app-shell.is-player .sidenav:not(.expanded) .sidenav-brand,
.app-shell.is-player .sidenav:not(.expanded) .sidenav-links,
.app-shell.is-player .sidenav:not(.expanded) .sidenav-bottom {
  display: none;
}
.app-shell.is-player .sidenav:not(.expanded) .sidenav-top {
  border-bottom: none;
  padding: 0;
}

/* Fleche entierement visible et confortable a toucher : posee a droite de
   la ligne turquoise plutot qu'a cheval sur elle. 34px, soit au-dessus du
   minimum recommande pour une cible tactile. */
.app-shell.is-player .sidenav:not(.expanded) .sidenav-toggle {
  left: 9px;
  right: auto;
  width: 34px;
  height: 34px;
}

/* La largeur liberee revient au contenu. */
.app-shell.is-player .app-content { margin-left: 0; }
@media (hover: hover) and (pointer: fine) {
  .sidenav:hover { width: var(--sidenav-expanded); box-shadow: 4px 0 18px rgba(2,10,22,.28); }
}
.sidenav.expanded { width: var(--sidenav-expanded); box-shadow: 4px 0 18px rgba(2,10,22,.28); }

.sidenav .label {
  opacity: 0;
  margin-left: .85rem;
  transition: opacity .12s ease .02s;
  font-size: .82rem;
}
.sidenav:hover .label, .sidenav.expanded .label { opacity: 1; }

.sidenav-top {
  display: flex;
  align-items: center;
  height: 68px;
  flex: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 0 0 0 22px;
  position: relative;
}
.sidenav-brand { display: flex; align-items: center; text-decoration: none; color: #fff; overflow: hidden; }
.brand-icon {
  /* Logo du jeu (demande du 10/09, remplace les "deux des" precedents) :
     ce nouveau logo est une image en couleurs (pas une simple silhouette),
     donc on l'affiche directement en background-image plutot que de la
     reduire a une teinte unie via un masque CSS comme le faisait l'icone
     des des. */
  width: 30px; height: 30px; flex: none;
  background: url('../img/logo/logo-jeu.png') center / contain no-repeat;
}
.sidenav-brand .label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  font-size: .92rem;
  line-height: 1.15;
}
.sidenav-toggle {
  position: absolute;
  right: -13px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--navy-950);
  border: 2px solid var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .17s ease;
}
.sidenav.expanded .sidenav-toggle svg { transform: rotate(180deg); }

.sidenav-links {
  flex: 1 1 auto;
  padding: 14px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidenav-link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0 0 22px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: .85rem;
  font-weight: 500;
}
.sidenav-link .icon { flex: none; display: flex; }
.sidenav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: var(--blue-500);
}
/* Page courante (11/09/2026). Le menu ne signalait nulle part ou l'on se
   trouvait. Trois marqueurs plutot qu'un seul : l'icone en turquoise, le
   libelle en blanc franc et le liseré de gauche - la couleur seule ne suffit
   pas a qui la distingue mal, et le liseré reste lisible quand le menu est
   replie et que le libelle a disparu. */
.sidenav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-left-color: var(--teal-500);
  font-weight: 600;
}
.sidenav-link.is-active .icon { color: var(--teal-400); }

/* En-tete de page : le pictogramme de la rubrique precede son titre, en
   rappel du menu. Voir le helper titre_page(). */
.page-titre {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.page-titre svg { flex: none; color: var(--teal-600); }
.sidenav-bottom {
  flex: none;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 10px 0;
}
.sidenav-user {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0 0 22px;
  color: var(--navy-100);
}
.sidenav-user .role { color: rgba(255,255,255,.5); font-weight: 400; }
.sidenav-lang {
  padding: 6px 0 6px 22px;
  display: flex;
  gap: .6rem;
}
.sidenav-lang a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
}
.sidenav-lang a:hover { color: var(--teal-400); }
.sidenav-lang a.active { color: var(--teal-500); }
.sidenav-link.logout:hover { border-left-color: var(--teal-500); }

@media (max-width: 640px) {
  :root { --sidenav-collapsed: 56px; }
  .sidenav-brand .label { display: none; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .84rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11,31,58,.05);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .4rem .9rem; font-size: .74rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: .92rem; }

.btn-dark {
  /* Degrade retire (demande du 10/09) : couleur unie + texte blanc, comme
     les autres boutons pleins (btn-success, btn-sky...). */
  background: var(--teal-500);
  border-color: var(--teal-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11,31,58,.12), 0 3px 8px rgba(22,175,192,.22);
}
.btn-dark:hover {
  background: var(--teal-600);
  border-color: var(--teal-700);
  color: #fff;
  box-shadow: 0 2px 4px rgba(11,31,58,.14), 0 6px 14px rgba(22,175,192,.3);
}

.btn-light {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.btn-light:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.card .btn-light, .auth-card .btn-light {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-700);
  box-shadow: none;
}
.card .btn-light:hover, .auth-card .btn-light:hover { background: var(--canvas); border-color: var(--ink-300); }

.btn-link {
  background: none; border: none; color: var(--blue-700);
  font-family: var(--font-body); font-weight: 600;
  padding: .55rem .25rem;
  box-shadow: none;
  border-radius: var(--radius);
}
.btn-link:hover { color: var(--navy-800); background: none; transform: none; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
  box-shadow: none;
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--teal-500); color: var(--teal-400); }

.btn-outline-secondary {
  background: transparent; border-color: var(--line-strong); color: var(--navy-800);
}
.btn-outline-secondary:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 3px 8px rgba(11,31,58,.14); }

.btn-outline-danger {
  background: transparent; border-color: #e3b3a9; color: var(--danger-600);
}
.btn-outline-danger:hover { background: var(--danger-600); border-color: var(--danger-600); color: #fff; box-shadow: 0 3px 8px rgba(179,64,47,.2); }

.btn-outline-success, .btn-success {
  background: var(--success-600); border-color: var(--success-600); color: #fff;
}
.btn-outline-success { background: transparent; color: var(--success-600); border-color: #a9d6c5; }
.btn-outline-success:hover, .btn-success:hover { background: #175c46; border-color: #175c46; color: #fff; box-shadow: 0 3px 8px rgba(31,122,92,.22); }

.btn-sky {
  background: var(--blue-500); border-color: var(--blue-600); color: #fff;
}
.btn-sky:hover { background: var(--blue-600); border-color: var(--blue-700); box-shadow: 0 3px 8px rgba(47,134,194,.24); }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--navy-900);
  box-shadow: 0 1px 2px rgba(11,31,58,.04);
  /* Un seul arrondi fait foi : quand un tableau (entete foncee) est colle
     contre le bord de la carte, on ne donne PAS aussi son propre rayon a
     l'entete (voir plus bas) - les deux arrondis imbriques ne coincidaient
     jamais exactement et laissaient voir un liseré/"double ligne" au coin.
     overflow:hidden decoupe simplement le contenu carre selon l'arrondi
     unique de la carte. */
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .9rem;
}
.table thead th {
  /* Le degrade part de navy-900 (identique a .card { border-top: 3px solid
     var(--navy-900) }) pour ne pas creer de rupture de teinte juste sous le
     bord superieur de la carte qui contient le tableau - sinon on voit une
     "double ligne" (bord de carte fonce + debut d'entete plus clair). */
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .01em;
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--teal-500);
}
.table tbody td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  vertical-align: middle;
}
.table tbody tr:hover td { background: var(--blue-100); }
.table tbody tr:last-child td { border-bottom: none; }
.text-end.py-4, td.text-center.py-4 { color: var(--ink-500); }

/* ---------------------------------------------------------------------
   DataTables (tri, recherche, pagination) - harmonisation visuelle avec
   l'identite du site (voir public/assets/js/datatables-init.js)
   --------------------------------------------------------------------- */
.dt-container .dt-layout-row:not(.dt-layout-table) { padding: 0 1rem; }
.dt-container .dt-layout-row:first-child { padding-top: 1rem; }
.dt-container .dt-layout-row:last-child { padding-bottom: 1rem; }

.dt-container .dt-length label,
.dt-container .dt-search label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-700);
  font-weight: 500;
  margin: 0;
}
.dt-container .dt-search { display: flex; align-items: center; gap: .5rem; }
.dt-container .dt-info {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink-500);
}

.dt-container .dt-input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .35rem .6rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-900);
  background: var(--surface);
}
.dt-container .dt-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.dt-container .dt-paging-button {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--navy-800);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  padding: .3rem .65rem;
  margin-left: .3rem;
  cursor: pointer;
}
.dt-container .dt-paging-button:hover:not(.disabled) {
  background: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--navy-900);
}
.dt-container .dt-paging-button.current {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.dt-container .dt-paging-button.disabled { color: var(--ink-300); cursor: default; }

table.dataTable {
  --dt-order-arrow_color: rgba(255, 255, 255, .45);
  --dt-order-arrow_color-current: #fff;
  --dt-order-header_outline-hover: 2px solid rgba(255, 255, 255, .18);
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: .4rem;
}
.form-control, .form-select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .55rem .7rem;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink-900);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(28,66,114,.15);
}
textarea.form-control { resize: vertical; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check-input { width: 17px; height: 17px; accent-color: var(--navy-800); }
.form-check-label { font-size: .9rem; color: var(--ink-700); }
.form-text { font-size: .78rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------
   Badges & alerts
   --------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
}
.bg-dark { background: var(--navy-800); color: #fff; }
.bg-secondary { background: #e4e7ec; color: var(--ink-700); }
.bg-success { background: var(--success-100); color: var(--success-600); }
.bg-warning { background: var(--gold-100); color: var(--warning-ink); }
.text-dark { color: var(--ink-900) !important; }

.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  border-left-width: 4px;
}
.alert-danger { background: var(--danger-100); border-color: #f0c6bd; border-left-color: var(--danger-600); color: #7a2c1f; }
.alert-success { background: var(--success-100); border-color: #bfe4d5; border-left-color: var(--success-600); color: #114f3a; }
.alert-warning { background: var(--gold-100); border-color: #eed9ab; border-left-color: var(--gold-600); color: var(--warning-ink); }

/* ---------------------------------------------------------------------
   List group (invitation confirm/refuse, quiz answers)
   --------------------------------------------------------------------- */
.list-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-group-item {
  display: block;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: var(--blue-100); }
.list-group-item input[type="radio"] { accent-color: var(--navy-800); }

/* ---------------------------------------------------------------------
   Divers
   --------------------------------------------------------------------- */
.stretched-link::after { content: ""; position: absolute; inset: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Page de connexion : ecran institutionnel, bandeau + sceau */
.auth-shell {
  min-height: calc(100vh - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(11,31,58,.08);
}
.auth-seal {
  /* Logo du jeu (demande du 10/09, remplace les "deux des" precedents) -
     voir .brand-icon ci-dessus pour le detail du changement mask -> image. */
  width: 64px; height: 64px; margin: 0 auto 1rem auto;
  background: url('../img/logo/logo-jeu.png') center / contain no-repeat;
}
.auth-title { text-align: center; margin-bottom: .15rem; }
.auth-subtitle { text-align: center; color: var(--ink-500); font-size: .85rem; margin-bottom: 1.5rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.auth-switch a { color: var(--ink-500); font-size: .85rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.auth-switch a:hover { color: var(--navy-800); }

.auth-lang-switcher {
  position: fixed;
  top: 18px; right: 22px;
  display: flex;
  gap: .7rem;
  z-index: 10;
}
.auth-lang-switcher a {
  color: var(--ink-500);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
}
.auth-lang-switcher a:hover { color: var(--navy-800); }
.auth-lang-switcher a.active { color: var(--teal-600); }

/* =========================================================================
   Tableau de bord (refondu le 14/10/2026) : grille reguliere, palette
   harmonisee marine / turquoise, animations a l'affichage (chiffres qui
   defilent, barres qui montent, anneaux qui se dessinent, cartes en fondu).
   Graphiques en SVG et CSS generes cote serveur - aucune librairie externe.
   Les animations sont coupees si le systeme demande moins de mouvement.
   ========================================================================= */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.dash-head h2 { margin-bottom: .15rem; }
.dash-portee { margin: 0; color: var(--ink-500); font-size: .9rem; }

.dash-kpis, .dash-graphes, .dash-profils { display: grid; gap: 1rem; margin-bottom: 1rem; }
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dash-graphes { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.dash-profils { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 1100px) { .dash-graphes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dash-graphes > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px)  { .dash-graphes { grid-template-columns: minmax(0, 1fr); } }

.dash-kpi, .dash-carte {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(11,31,58,.04), 0 8px 24px -18px rgba(11,31,58,.35);
}
.dash-carte { padding: 1.2rem 1.35rem; }
.dash-carte h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 700; }

.dash-kpi {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .85rem;
  align-items: center; padding: 1rem 1.15rem; transition: transform .2s ease, box-shadow .2s ease;
}
.dash-kpi:has(.stretched-link):hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11,31,58,.05), 0 14px 28px -16px rgba(11,31,58,.4); }
.dash-kpi-icone {
  grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--teal-500), var(--navy-800));
}
.dash-kpi-valeur { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--navy-900); line-height: 1.05; font-variant-numeric: tabular-nums; }
.dash-kpi-libelle { font-size: .78rem; color: var(--ink-500); font-weight: 500; }

.bar-chart { display: flex; align-items: flex-end; gap: .8rem; height: 160px; padding-top: .5rem; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; height: 100%; min-width: 0; }
.bar-chart .bar { width: 100%; max-width: 34px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); }
.bar-chart .bar-value { font-size: .75rem; font-weight: 700; color: var(--navy-800); min-height: 1.1em; }
.bar-chart .bar-label { font-size: .72rem; color: var(--ink-500); }

.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.donut-center-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; fill: var(--navy-900); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .82rem; color: var(--ink-700); min-width: 130px; }
.donut-legend li { display: flex; align-items: center; gap: .5rem; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.donut-legend strong { color: var(--navy-900); margin-left: auto; padding-left: .5rem; }

.dash-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.dash-barre-tete { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: .3rem; color: var(--ink-700); }
.dash-barre-tete strong { color: var(--navy-900); }
.dash-barre { height: 7px; border-radius: 999px; background: var(--canvas); overflow: hidden; }
.dash-barre span { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); }

/* --- Animations : seulement si le script tourne (classe dash-js) ---------- */
.dash-js .dash-bloc { opacity: 0; transform: translateY(10px); }
.dash-js .dash-anime .dash-bloc, .dash-js.dash-anime .dash-bloc {
  opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--i, 0) * 55ms);
}
.dash-js .bar-chart .bar { height: 3px; }
.dash-js.dash-anime .bar-chart .bar { height: var(--h); transition: height .9s cubic-bezier(.22,.61,.36,1) .35s; }
.dash-js .dash-barre span { width: 0; }
.dash-js.dash-anime .dash-barre span { width: var(--w); transition: width 1s cubic-bezier(.22,.61,.36,1) .5s; }
.donut-arc { transition: stroke-dasharray 1.1s cubic-bezier(.22,.61,.36,1) .3s; }
@media (prefers-reduced-motion: reduce) {
  .dash-js .dash-bloc { opacity: 1; transform: none; }
  .dash-js .bar-chart .bar { height: var(--h); }
  .dash-js .dash-barre span { width: var(--w); }
  .dash-js.dash-anime * { transition: none !important; }
}

/* ===========================================================================
   L'AIDE (01/10/2026) : le lien en haut a droite de chaque page, la page Aide
   (recherche, sommaire, questions frequentes, manuels), les articles.
   =========================================================================== */
.aide-lien-haut { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
/* Bouton blanc (14/10/2026, demande) : texte et icone turquoise. */
.aide-lien-haut a { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; font-weight: 700; color: var(--teal-600); text-decoration: none; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(11, 31, 58, .12); }
.aide-lien-haut a:hover { background: var(--teal-100); border-color: var(--teal-400); color: var(--teal-700); }
.aide-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.aide-recherche { max-width: 460px; margin-bottom: 18px; }
.aide-groupe + .aide-groupe { margin-top: 18px; }
.aide-groupe h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin: 0 0 8px; }
.aide-groupe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aide-groupe li { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; border-left: 2px solid var(--line); }
.aide-telecharger h4 { margin-bottom: 14px; }
.aide-dans-la-page { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: .92rem; }
/* Les pages d'un article et d'un ecran : une colonne de lecture centree,
   son titre et ses boutons compris (01/10/2026, demande). */
.aide-colonne { max-width: 940px; margin: 0 auto; }
.aide-article { max-width: 940px; margin-left: auto; margin-right: auto; }
.aide-article .p-4 { font-size: 14.5px; line-height: 1.65; }
.aide-titre { font-size: 1.25rem; color: var(--navy-900); margin: 0 0 10px; }
.aide-h { font-size: 1rem; margin: 20px 0 6px; color: var(--teal-700); }
.aide-etapes { counter-reset: e; list-style: none; padding: 0; margin: 10px 0; }
.aide-etapes li { counter-increment: e; position: relative; padding: 3px 0 7px 36px; }
.aide-etapes li::before { content: counter(e); position: absolute; left: 0; top: 2px; width: 25px; height: 25px; border-radius: 50%; background: #d97706; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.aide-liste { padding-left: 20px; }
.aide-liste li { margin: 4px 0; }
.aide-encart { border-left: 3px solid var(--teal-600); background: rgba(18, 142, 155, .07); padding: 10px 12px; border-radius: 6px; margin: 12px 0; }
.aide-attention { border-left-color: #a93a29; background: #fbeeeb; }
.aide-capture { margin: 12px 0; }
.aide-capture img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 8px; }
.aide-capture-telephone img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
.aide-faq { display: flex; flex-direction: column; gap: 6px; }
.aide-question { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.aide-question summary { cursor: pointer; padding: 9px 12px; font-weight: 600; list-style: none; }
.aide-question summary::-webkit-details-marker { display: none; }
.aide-question summary::before { content: "+"; display: inline-block; width: 18px; color: var(--teal-600); font-weight: 700; }
.aide-question[open] summary::before { content: "\2013"; }
.aide-question p { margin: 0; padding: 0 12px 11px 30px; }
@media (max-width: 900px) { .aide-page { grid-template-columns: 1fr; } }

/* Bascule a deux boutons « Mes … / Tous les … » (14/10/2026, liste des
   sessions) : les deux choix restent visibles, l'actif en turquoise. */
.vue-bascule { display: inline-flex; padding: 3px; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.vue-bascule-btn { padding: 6px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-700); text-decoration: none; }
.vue-bascule-btn:hover { color: var(--navy-900); background: var(--canvas, #eef1f6); }
.vue-bascule-btn.is-active { background: var(--teal-600); color: #fff; }

/* Bouton « Visualiser » du choix des dilemmes d'un theme personnel (14/10/2026) : sur une ligne. */
.btn-voir-video { white-space: nowrap; flex-shrink: 0; }

/* Joueur sans smartphone (14/10/2026) : l'interrupteur de la liste des
   invites, le pictogramme et le choix d'avatar de la salle de jeu, la zone de
   reponse de l'ecran de la question. */
.smartphone-bascule { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 3px 10px 3px 7px; font-size: .8rem; font-weight: 600; color: var(--teal-700); cursor: pointer; }
.smartphone-bascule:hover { border-color: var(--teal-500); }
.smartphone-bascule.is-sans { background: #fff4e5; border-color: #f0b35a; color: #9a5b00; }
.sans-smartphone-pastille { display: inline-flex; color: #9a5b00; margin-left: 8px; vertical-align: middle; }
.avatar-pour-joueur { cursor: pointer; padding: 0; font: inherit; background: #fff8ee !important; color: #9a5b00 !important; border: 2px dashed #f0b35a !important; }
.avatar-choix { display: none; padding: 10px 14px 14px 44px; background: #fff8ee; border-bottom: 1px solid var(--line); }
.avatar-choix.is-open { display: block; }
.avatar-choix-liste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.avatar-choix-liste button { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--line); padding: 0; overflow: hidden; background: #fff; cursor: pointer; }
.avatar-choix-liste button:hover { border-color: var(--teal-500); }
.avatar-choix-liste img { width: 100%; height: 100%; object-fit: cover; }
.quiz-pour-joueurs { margin-top: 18px; border-top: 1px dashed #f0b35a; padding-top: 14px; }
.quiz-pour-joueurs h5 { font-size: .9rem; color: #9a5b00; display: flex; align-items: center; gap: 6px; }
.quiz-pour-joueur { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.quiz-pour-joueur-nom { min-width: 140px; font-weight: 700; }
.quiz-pour-joueur form { margin: 0; }
.quiz-pour-joueur .btn { min-width: 34px; }

/* Adresse interne (14/10/2026) : champ avec « @ » devant (domaine de
   l'environnement) ou « @domaine » derriere (matricule), interrupteur
   Mail interne / Mail externe, et rappel de confidentialite. */
.champ-prefixe, .champ-suffixe { display: flex; align-items: stretch; }
.champ-prefixe > span, .champ-suffixe > span { display: flex; align-items: center; padding: 0 12px; background: #eef3f7; border: 1px solid var(--line); color: var(--ink-500); font-size: .9rem; white-space: nowrap; }
.champ-prefixe > span { border-right: none; border-radius: 10px 0 0 10px; }
.champ-prefixe > .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.champ-suffixe > span { border-left: none; border-radius: 0 10px 10px 0; }
.champ-suffixe > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.type-adresse { display: flex; background: #eef3f7; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.type-adresse label { flex: 1; text-align: center; margin: 0; cursor: pointer; }
.type-adresse input { position: absolute; opacity: 0; pointer-events: none; }
.type-adresse span { display: block; padding: 7px 10px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--ink-500); }
.type-adresse input:checked + span { background: #fff; color: var(--teal-700); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.type-adresse input:focus-visible + span { outline: 2px solid var(--teal-500); }
.rappel-confidentialite { display: flex; gap: 8px; align-items: flex-start; background: #fff8ee; border: 1px solid #f0d3a2; border-radius: 10px; padding: 9px 12px; font-size: .8rem; color: #7a4a00; margin-top: 8px; }
.type-adresse[hidden] { display: none; }
.lien-connexion { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lien-connexion span { flex: 0 0 120px; font-size: .8rem; font-weight: 600; color: var(--ink-500); }

/* Departage des ex aequo (14/10/2026) : temps total de reponse, sur la meme
   ligne que le joueur - la hauteur de la ligne ne change pas. */
.temps-departage { display: inline-block; font-size: 11px; font-weight: 600; color: #7a4a00; background: #fff4e5; border: 1px solid #f0d3a2; border-radius: 999px; padding: 1px 8px; white-space: nowrap; line-height: 1.5; }
.ttq-lobby-name .temps-departage { margin-left: auto; margin-right: 6px; }
.dash-vide { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .85rem 1.15rem; border-radius: var(--radius-lg); background: var(--teal-100); color: var(--teal-700); font-size: .9rem; }
.dash-vide a { font-weight: 700; color: var(--teal-700); white-space: nowrap; }

/* Une couleur par profil (14/10/2026), dans la palette de l'application :
   SuperAdmin dore (rare, se repere tout de suite), Admin marine plein,
   Accompagnateur turquoise clair (le plus nombreux : la liste reste calme). */
.badge-profil { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge-profil::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.profil-superadmin { background: var(--gold-100); color: #8a4c12; border-color: #e7c79f; }
.profil-admin { background: var(--navy-800); color: #fff; }
.profil-admin::before { background: var(--teal-400); }
.profil-accompagnateur { background: var(--teal-100); color: var(--teal-700); border-color: #9fe3ec; }
