/* AppliSchool SaaS - design de l'application (au-dessus de Bootstrap 5.3) */

/* ------------------------------------------------------------------ jetons de design */
:root {
  --as-encre: #101a33;
  --as-texte-doux: #5b6785;
  --as-primaire: #2f5af0;
  --as-primaire-fonce: #2246c9;
  --as-primaire-clair: #e8edff;
  --as-fond: #f3f5fb;
  --as-carte: #ffffff;
  --as-bordure: #e5e9f3;
  --as-succes: #12b76a;
  --as-danger: #e5484d;
  --as-attention: #f79009;
  --as-classique: #2f5af0;
  --as-professionnel: #e0861a;
  --as-universitaire: #7c4dff;

  --as-menu-fond: #0b1530;
  --as-menu-fond-2: #122049;
  --as-menu-largeur: 280px;
  --as-menu-reduit: 80px;
  --as-haut: 66px;

  --as-rayon: 14px;
  --as-ombre-1: 0 1px 2px rgba(16, 26, 51, .05), 0 1px 3px rgba(16, 26, 51, .04);
  --as-ombre-2: 0 1px 2px rgba(16, 26, 51, .04), 0 12px 28px -14px rgba(16, 26, 51, .22);
  --as-ombre-3: 0 24px 48px -20px rgba(16, 26, 51, .35);
  --as-courbe: cubic-bezier(.22, .8, .24, 1);

  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: .94rem;
  --bs-body-color: var(--as-encre);
  --bs-body-bg: var(--as-fond);
  --bs-secondary-color: var(--as-texte-doux);
  --bs-primary: var(--as-primaire);
  --bs-primary-rgb: 47, 90, 240;
  --bs-link-color: var(--as-primaire);
  --bs-link-color-rgb: 47, 90, 240;
  --bs-link-hover-color: var(--as-primaire-fonce);
  --bs-border-color: var(--as-bordure);
  --bs-border-radius: .7rem;
  --bs-border-radius-lg: var(--as-rayon);
}

html { scroll-behavior: smooth; }
body {
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 105% -8%, rgba(47, 90, 240, .08), transparent 60%),
    radial-gradient(900px 480px at -10% 105%, rgba(124, 77, 255, .06), transparent 60%),
    var(--as-fond);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.015em; }
.text-secondary { color: var(--as-texte-doux) !important; }
::selection { background: rgba(47, 90, 240, .18); }
:focus-visible { outline: 2px solid var(--as-primaire); outline-offset: 2px; }

/* ------------------------------------------------------------------ boutons, champs */
.btn {
  --bs-btn-font-weight: 500;
  border-radius: .7rem;
  transition: transform .18s var(--as-courbe), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  --bs-btn-bg: var(--as-primaire);
  --bs-btn-border-color: var(--as-primaire);
  --bs-btn-hover-bg: var(--as-primaire-fonce);
  --bs-btn-hover-border-color: var(--as-primaire-fonce);
  --bs-btn-active-bg: var(--as-primaire-fonce);
  --bs-btn-active-border-color: var(--as-primaire-fonce);
  --bs-btn-disabled-bg: var(--as-primaire);
  --bs-btn-disabled-border-color: var(--as-primaire);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
  box-shadow: 0 1px 2px rgba(34, 70, 201, .35), 0 6px 14px -6px rgba(47, 90, 240, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(34, 70, 201, .35), 0 10px 20px -8px rgba(47, 90, 240, .6); }
.btn-outline-primary {
  --bs-btn-color: var(--as-primaire);
  --bs-btn-border-color: #c9d5ff;
  --bs-btn-hover-bg: var(--as-primaire);
  --bs-btn-hover-border-color: var(--as-primaire);
  --bs-btn-active-bg: var(--as-primaire);
  --bs-btn-active-border-color: var(--as-primaire);
}
.btn-outline-secondary {
  --bs-btn-color: #44506e;
  --bs-btn-border-color: #d5dbea;
  --bs-btn-hover-bg: #f1f4fb;
  --bs-btn-hover-border-color: #c3cbe0;
  --bs-btn-hover-color: var(--as-encre);
  --bs-btn-active-bg: #e7ebf6;
  --bs-btn-active-color: var(--as-encre);
  background: #fff;
}
.btn-success { box-shadow: 0 6px 14px -8px rgba(18, 183, 106, .6); }
.btn-sm { --bs-btn-padding-x: .75rem; --bs-btn-border-radius: .6rem; }

.form-control, .form-select {
  border-color: #d9dfec;
  border-radius: .7rem;
  background-color: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.form-control:hover, .form-select:hover { border-color: #c3cbe0; }
.form-control:focus, .form-select:focus {
  border-color: var(--as-primaire);
  box-shadow: 0 0 0 4px rgba(47, 90, 240, .14);
}
.form-label { font-weight: 500; font-size: .86rem; color: #36415f; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--as-primaire); border-color: var(--as-primaire); }
.form-text { color: var(--as-texte-doux); }
.input-group-text { background: #f6f8fd; border-color: #d9dfec; }

/* ------------------------------------------------------------------ coque : menu latéral + zone principale */
.coque { display: flex; min-height: 100vh; }
.zone-principale { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.contenu { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 1.75rem clamp(1rem, 2.4vw, 2.25rem) 3rem; }

.menu-lateral {
  position: sticky; top: 0; align-self: flex-start;
  width: var(--as-menu-largeur); height: 100vh; flex: 0 0 var(--as-menu-largeur);
  display: flex; flex-direction: column;
  color: #c9d3ee;
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(47, 90, 240, .28), transparent 70%),
    linear-gradient(180deg, var(--as-menu-fond) 0%, var(--as-menu-fond-2) 100%);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .04), 12px 0 40px -24px rgba(11, 21, 48, .6);
  z-index: 1040;
  transition: width .32s var(--as-courbe), flex-basis .32s var(--as-courbe), transform .32s var(--as-courbe);
}

/* Marque */
.menu-marque { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.1rem .9rem 1.25rem; min-height: var(--as-haut); }
.marque-lien { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.marque-logo {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 1.3rem;
  background: linear-gradient(135deg, #5b8cff 0%, #2f5af0 55%, #7c4dff 100%);
  box-shadow: 0 8px 20px -6px rgba(47, 90, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s var(--as-courbe);
}
.marque-lien:hover .marque-logo { transform: rotate(-6deg) scale(1.05); }
.marque-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.marque-nom { color: #fff; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.marque-organisation { color: #8fa0cc; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.menu-fermer { background: rgba(255, 255, 255, .08); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; }

/* Sélecteur de section */
.selecteur-section { padding: .25rem 1.1rem 1rem; }
.etiquette-menu { display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #7f90bb; font-weight: 600; margin-bottom: .4rem; }
.selecteur-champ { position: relative; }
.selecteur-champ > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #9db4ff; pointer-events: none; z-index: 1; }
.selecteur-champ .form-select {
  padding-left: 2.2rem; height: 40px; color: #fff; font-weight: 500; font-size: .86rem;
  background-color: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239db4ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.selecteur-champ .form-select:hover { background-color: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .22); }
.selecteur-champ .form-select:focus { border-color: #7d9bff; box-shadow: 0 0 0 4px rgba(125, 155, 255, .22); }
.selecteur-champ .form-select option { color: #101a33; background: #fff; }

/* Navigation */
.menu-defilant { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.menu-defilant::-webkit-scrollbar { width: 6px; }
.menu-defilant::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
.menu-liste, .menu-liste ul { list-style: none; margin: 0; padding: 0; }
.menu-liste > li { margin-bottom: 2px; }

.lien-menu {
  position: relative; display: flex; align-items: center; gap: .85rem; width: 100%;
  padding: .66rem .85rem; border-radius: 12px; color: #c4cfec; text-decoration: none; font-weight: 500; font-size: .92rem;
  white-space: nowrap; overflow: hidden;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--as-courbe);
}
.lien-menu .icone { flex: 0 0 22px; width: 22px; text-align: center; font-size: 1.08rem; color: #8ea2d6; transition: color .2s ease, transform .25s var(--as-courbe); }
.lien-menu .lib { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s ease; }
.lien-menu:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.lien-menu:hover .icone { color: #fff; transform: scale(1.12); }
.lien-menu.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(79, 124, 255, .38), rgba(79, 124, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(125, 155, 255, .2);
}
.lien-menu.active::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3.5px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #8fb0ff, #5b8cff); box-shadow: 0 0 14px rgba(125, 155, 255, .9);
}
.lien-menu.active .icone { color: #9db8ff; }
.lien-menu .chevron { flex: 0 0 auto; font-size: .72rem; color: #7f90bb; transition: transform .3s var(--as-courbe); }
.groupe > .lien-menu[aria-expanded="true"] { color: #fff; }
.groupe > .lien-menu[aria-expanded="true"] .chevron { transform: rotate(90deg); color: #fff; }
.groupe > .lien-menu[aria-expanded="true"] .icone { color: #9db8ff; }
.bientot { opacity: .45; cursor: default; }
.bientot small { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }

.sous-menu ul { margin: .2rem 0 .45rem 1.45rem; padding-left: .9rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.lien-sous {
  position: relative; display: block; padding: .46rem .75rem; margin: 1px 0; border-radius: 9px;
  color: #aab8dd; text-decoration: none; font-size: .87rem;
  transition: background-color .18s ease, color .18s ease, padding-left .22s var(--as-courbe);
}
.lien-sous:hover { background: rgba(255, 255, 255, .06); color: #fff; padding-left: .95rem; }
.lien-sous.active { color: #fff; background: rgba(79, 124, 255, .22); font-weight: 600; }
.lien-sous.active::before { content: ""; position: absolute; left: -.98rem; top: 50%; width: 7px; height: 7px; transform: translateY(-50%); border-radius: 50%; background: #7d9bff; box-shadow: 0 0 10px #7d9bff; }
span.lien-sous.bientot { padding-left: .75rem; }

.separateur { margin: 1rem 0 .35rem; padding: 0 .85rem; }
.separateur span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #6f80ab; font-weight: 600; }

/* Pied du menu : compte et déconnexion */
.menu-pied { padding: .9rem 1rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(5, 10, 28, .28); }
.carte-utilisateur { display: flex; align-items: center; gap: .75rem; padding: .4rem; border-radius: 12px; text-decoration: none; transition: background-color .2s ease; }
.carte-utilisateur:hover { background: rgba(255, 255, 255, .07); }
.avatar {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, #7c4dff, #2f5af0); box-shadow: 0 6px 14px -6px rgba(47, 90, 240, .8);
}
.avatar-petit { width: 34px; height: 34px; border-radius: 10px; font-size: .78rem; }
.carte-utilisateur-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.carte-utilisateur-texte .nom { color: #fff; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-utilisateur-texte .role { color: #8191bb; font-size: .74rem; }
.form-deconnexion { margin-top: .6rem; }
.bouton-deconnexion {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .62rem .9rem; border-radius: 12px; cursor: pointer;
  color: #ffb4b4; font-weight: 600; font-size: .9rem; background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .28);
  transition: background-color .2s ease, color .2s ease, transform .18s var(--as-courbe), box-shadow .2s ease;
}
.bouton-deconnexion:hover { background: #e5484d; color: #fff; border-color: #e5484d; box-shadow: 0 10px 22px -10px rgba(229, 72, 77, .9); transform: translateY(-1px); }
.bouton-deconnexion i { font-size: 1.05rem; }

/* Menu réduit (bureau) */
@media (min-width: 992px) {
  .menu-reduit .menu-lateral { width: var(--as-menu-reduit); flex-basis: var(--as-menu-reduit); }
  .menu-reduit .marque-texte, .menu-reduit .selecteur-section, .menu-reduit .lien-menu .lib, .menu-reduit .lien-menu .chevron,
  .menu-reduit .sous-menu, .menu-reduit .separateur span, .menu-reduit .carte-utilisateur-texte, .menu-reduit .bouton-deconnexion .lib { display: none !important; }
  .menu-reduit .menu-marque { justify-content: center; padding-inline: 0; }
  .menu-reduit .lien-menu { justify-content: center; padding-inline: 0; }
  .menu-reduit .separateur { border-top: 1px solid rgba(255, 255, 255, .1); margin: .8rem .5rem; padding: 0; }
  .menu-reduit .menu-pied { padding-inline: .6rem; }
  .menu-reduit .carte-utilisateur { justify-content: center; }
  .menu-reduit .bouton-deconnexion { padding-inline: 0; }
  .menu-voile { display: none; }
}

/* Mobile et tablette : tiroir */
@media (max-width: 991.98px) {
  .menu-lateral { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-102%); }
  .menu-ouvert .menu-lateral { transform: translateX(0); box-shadow: var(--as-ombre-3); }
  .menu-voile {
    position: fixed; inset: 0; z-index: 1035; background: rgba(8, 14, 32, .55); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .menu-ouvert .menu-voile { opacity: 1; pointer-events: auto; }
  .menu-ouvert body { overflow: hidden; }
}

/* Barre du haut */
.barre-haut {
  position: sticky; top: 0; z-index: 1030; height: var(--as-haut);
  display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 2.4vw, 2.25rem);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(229, 233, 243, .9);
}
.bouton-menu {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--as-bordure); background: #fff; color: var(--as-encre); font-size: 1.35rem;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--as-ombre-1);
  transition: background-color .2s ease, transform .18s var(--as-courbe), color .2s ease;
}
.bouton-menu:hover { background: var(--as-primaire-clair); color: var(--as-primaire); transform: scale(1.05); }
.barre-titre { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1; }
.barre-titre-texte { font-weight: 650; font-size: 1.05rem; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-section {
  align-items: center; gap: .4rem; padding: .28rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--as-primaire);
  background: var(--as-primaire-clair); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis;
}
.barre-actions { display: flex; align-items: center; gap: .6rem; }
.bouton-profil {
  display: flex; align-items: center; gap: .6rem; padding: .3rem .65rem .3rem .3rem; border-radius: 14px; border: 1px solid var(--as-bordure); background: #fff; cursor: pointer;
  box-shadow: var(--as-ombre-1); transition: box-shadow .2s ease, border-color .2s ease, transform .18s var(--as-courbe);
}
.bouton-profil:hover { border-color: #c3cbe0; box-shadow: var(--as-ombre-2); transform: translateY(-1px); }
.nom-profil { font-weight: 600; font-size: .86rem; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-menu { border: 1px solid var(--as-bordure); border-radius: 14px; box-shadow: var(--as-ombre-3); padding: .45rem; animation: apparition .18s var(--as-courbe); }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-size: .9rem; }
.dropdown-item:hover { background: var(--as-primaire-clair); }
.dropdown-item.text-danger:hover { background: #fdecec; }
.menu-profil { min-width: 15rem; }
.en-tete-profil { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; }
.en-tete-profil strong { display: block; font-size: .9rem; line-height: 1.2; }
.en-tete-profil small { color: var(--as-texte-doux); font-size: .76rem; }
.menu-profil form { margin: 0; }
.menu-profil .dropdown-item { display: block; width: 100%; text-align: left; }

.bandeau-visite {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #101a33, #1b2c5c); color: #fff; padding: .55rem 1rem; font-size: .88rem; position: relative; z-index: 1050;
}

/* ------------------------------------------------------------------ animations */
@keyframes montee { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes apparition { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.contenu > * { animation: montee .5s var(--as-courbe) both; }
.contenu > *:nth-child(2) { animation-delay: .04s; }
.contenu > *:nth-child(3) { animation-delay: .08s; }
.contenu > *:nth-child(4) { animation-delay: .12s; }
.contenu > *:nth-child(n+5) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ en-tête de page, cartes, tableaux */
.entete-page { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.entete-page h1 { font-size: 1.65rem; font-weight: 700; margin: 0 0 .2rem; letter-spacing: -.025em; }
.entete-page p { font-size: .92rem; }

.carte-table, .carte-formulaire, .carte-section, .vide, .indicateur, .carte-connexion {
  background: var(--as-carte); border: 1px solid var(--as-bordure); border-radius: var(--as-rayon); box-shadow: var(--as-ombre-1);
}
.carte-table { overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--as-ombre-2); }
.carte-table .table { margin-bottom: 0; --bs-table-hover-bg: #f7f9ff; --bs-table-bg: transparent; }
.carte-table .table > :not(caption) > * > * { padding: .85rem 1.1rem; border-bottom-color: #edf0f7; }
.carte-table thead th {
  background: #f8f9fd; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: #6a7694; font-weight: 600; border-bottom: 1px solid var(--as-bordure); white-space: nowrap;
}
.carte-table tbody tr { transition: background-color .15s ease; }
.carte-table tbody tr:hover { background: #f7f9ff; }
.carte-table tbody tr:last-child td { border-bottom: 0; }
.ligne-inactive td { color: #8a94a8; }
.carte-formulaire { padding: 1.75rem; max-width: 56rem; box-shadow: var(--as-ombre-2); }
.carte-formulaire h2.h6 {
  text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; color: #6a7694; font-weight: 600; margin-bottom: 1rem;
}
.vide { padding: 2.75rem 2rem; text-align: center; color: var(--as-texte-doux); border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, .6); }

.table { --bs-table-color: var(--as-encre); }
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .38em .7em; }
.text-bg-light { background: #eef1fa !important; color: #36415f !important; }
.alert { border: 0; border-radius: 12px; border-left: 4px solid; box-shadow: var(--as-ombre-1); }
.alert-success { background: #e8f8f0; color: #0b6b43; border-left-color: var(--as-succes); }
.alert-danger { background: #fdecec; color: #a4262b; border-left-color: var(--as-danger); }
.alert-warning { background: #fff5e2; color: #8a5200; border-left-color: var(--as-attention); }
.alert-info { background: #e9f0ff; color: #1d3fa6; border-left-color: var(--as-primaire); }
.pagination { --bs-pagination-border-radius: .6rem; --bs-pagination-active-bg: var(--as-primaire); --bs-pagination-active-border-color: var(--as-primaire); }
.btn-group .btn:first-child { border-top-left-radius: .6rem; border-bottom-left-radius: .6rem; }
.btn-group .btn:last-child { border-top-right-radius: .6rem; border-bottom-right-radius: .6rem; }
.progress { background: #eaeefa; border-radius: 999px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, #5b8cff, #2f5af0); border-radius: 999px; transition: width .8s var(--as-courbe); }

.nav-pills { gap: .4rem; flex-wrap: wrap; }
.nav-pills .nav-link {
  border-radius: 999px; color: #44506e; font-weight: 500; padding: .5rem 1.05rem; background: #fff; border: 1px solid var(--as-bordure);
  transition: background-color .2s ease, color .2s ease, transform .18s var(--as-courbe), box-shadow .2s ease;
}
.nav-pills .nav-link:hover { color: var(--as-primaire); border-color: #c9d5ff; transform: translateY(-1px); }
.nav-pills .nav-link.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #4f7cff, #2f5af0); box-shadow: 0 8px 18px -8px rgba(47, 90, 240, .8); }

.pastille {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
  color: var(--couleur-type, var(--as-primaire));
  background: var(--t-fond);
  white-space: nowrap;
}
.etat { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.etat::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .4rem; background: currentColor; box-shadow: 0 0 0 3px rgba(16, 26, 51, .1); }
.etat-actif { color: #12915a; }
.etat-essai { color: #c46a00; }
.etat-suspendu { color: #d0343a; }

.type-classique { --couleur-type: var(--as-classique); }
.type-professionnel { --couleur-type: var(--as-professionnel); }
.type-universitaire { --couleur-type: var(--as-universitaire); }

/* ------------------------------------------------------------------ tableau de bord */
.accueil {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.75rem 2rem; margin-bottom: 1.5rem; border-radius: 20px; color: #fff;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(124, 77, 255, .55), transparent 65%),
    radial-gradient(420px 240px at 0% 120%, rgba(91, 140, 255, .5), transparent 65%),
    linear-gradient(135deg, #0b1530 0%, #1a2f6d 60%, #2f5af0 130%);
  box-shadow: 0 24px 50px -26px rgba(34, 70, 201, .8);
}
.accueil::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02);
}
.accueil h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 .3rem; letter-spacing: -.03em; position: relative; z-index: 1; }
.accueil p { margin: 0; color: #c3d0f5; position: relative; z-index: 1; }
.accueil .date-jour { display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8rem; color: #e4ebff; }
.accueil-stats { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }
.accueil-stat { min-width: 130px; padding: .85rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.accueil-stat .valeur { font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.accueil-stat .libelle { font-size: .76rem; color: #c3d0f5; margin-top: .3rem; }

.indicateur { display: inline-flex; align-items: baseline; gap: .6rem; padding: .9rem 1.25rem; }
.valeur { font-variant-numeric: tabular-nums; }
.carte-section .valeur { font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.carte-section .libelle, .indicateur .libelle { color: var(--as-texte-doux); font-size: .82rem; }

.carte-section {
  position: relative; height: 100%; padding: 1.5rem; overflow: hidden; box-shadow: var(--as-ombre-2);
  transition: transform .3s var(--as-courbe), box-shadow .3s ease;
}
.carte-section::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--couleur-type, var(--as-primaire)), var(--t-bord2));
}
.carte-section::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--t-bord), transparent 70%);
}
.carte-section:hover { transform: translateY(-3px); box-shadow: var(--as-ombre-3); }
.carte-section > * { position: relative; z-index: 1; }
.carte-section h2 { font-size: 1.15rem; font-weight: 650; margin: .15rem 0 0; }
.carte-section .etiquette {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--couleur-type, var(--as-primaire));
}
.entete-bloc { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.entete-bloc .identite { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.pastille-icone {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--t-clair), var(--couleur-type, var(--as-primaire)));
  box-shadow: 0 10px 20px -10px var(--couleur-type, var(--as-primaire));
}
.kpi-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.1rem; }
.kpi {
  padding: .9rem .75rem; border-radius: 14px; text-align: center; background: #f6f8fe; border: 1px solid #e9eefb;
  transition: background-color .2s ease, transform .25s var(--as-courbe);
}
.kpi:hover { background: #fff; transform: translateY(-2px); }
.fin-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.fin {
  display: flex; flex-direction: column; gap: .15rem; padding: .75rem .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--as-bordure);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--as-courbe);
}
.fin:hover { --bc: var(--t-bord2); border: 1px solid var(--bc); box-shadow: var(--as-ombre-2); transform: translateY(-2px); }
.fin .montant { font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.fin .libelle { font-size: .72rem; color: var(--as-texte-doux); }
.fin.positif .montant { color: #0f9a5f; }
.fin.negatif .montant { color: #d0343a; }
.fin.fort { background: var(--t-fond2); --bc: var(--t-bord); border: 1px solid var(--bc); }
.note-bloc { font-size: .8rem; color: var(--as-texte-doux); }
.repartition .ligne { display: flex; align-items: center; gap: .7rem; margin-bottom: .45rem; font-size: .84rem; }
.repartition .nom { width: 30%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repartition .progress { height: .55rem; flex: 1; }
.repartition .nb { width: 2.5rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.actions-bloc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--as-bordure); }
.actions-bloc .btn { border-radius: 999px; }
@media (max-width: 767.98px) {
  .kpi-grille, .fin-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accueil { padding: 1.4rem 1.25rem; }
}

/* ------------------------------------------------------------------ connexion et erreurs */
.page-invite {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(124, 77, 255, .5), transparent 65%),
    radial-gradient(640px 420px at 0% 100%, rgba(47, 90, 240, .55), transparent 65%),
    linear-gradient(135deg, #0b1530, #14265c);
}
.page-invite::before, .page-invite::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.page-invite::before { width: 520px; height: 520px; left: -160px; top: -160px; box-shadow: 0 0 0 70px rgba(255, 255, 255, .02); }
.page-invite::after { width: 420px; height: 420px; right: -120px; bottom: -140px; box-shadow: 0 0 0 60px rgba(255, 255, 255, .02); }
.carte-connexion {
  position: relative; z-index: 1; width: 100%; max-width: 27rem; border-radius: 22px; padding: 2.4rem 2.2rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: montee .6s var(--as-courbe) both;
}
.marque-connexion { font-size: 1.7rem; font-weight: 700; color: var(--as-encre); letter-spacing: -.03em; }
.code-erreur { font-size: 3.5rem; font-weight: 800; background: linear-gradient(135deg, #5b8cff, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: .5rem; }

/* ------------------------------------------------------------------ utilisateurs, rôles */
.affectation { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.affectation + .affectation { margin-top: .3rem; }
.liste-acces { border: 1px solid var(--as-bordure); border-radius: 12px; overflow: hidden; background: #fff; }
.ligne-acces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: .75rem 1rem; align-items: center; padding: .75rem 1rem; transition: background-color .15s ease; }
.ligne-acces:hover { background: #f8faff; }
.ligne-acces + .ligne-acces { border-top: 1px solid var(--as-bordure); }
.ligne-acces label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
@media (max-width: 575.98px) { .ligne-acces { grid-template-columns: 1fr; } }

.grille-permissions { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.module-permissions { border: 1px solid var(--as-bordure); border-radius: 12px; padding: .9rem 1.05rem; margin: 0; min-width: 0; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.module-permissions:hover { box-shadow: var(--as-ombre-2); border-color: #d3dbef; }
.module-permissions legend {
  float: none; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  font-size: .9rem; font-weight: 600; margin-bottom: .5rem; padding-bottom: .45rem; border-bottom: 1px solid var(--as-bordure);
}
.module-permissions .form-check-label { font-size: .9rem; }

/* Fenêtres et fiches */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--as-ombre-3); }
.list-group-item { border-color: var(--as-bordure); }
.card { border-color: var(--as-bordure); border-radius: var(--as-rayon); box-shadow: var(--as-ombre-1); }

/* ------------------------------------------------------------------ tableaux : numérotation, pagination, adaptation */
.col-num { width: 3.25rem; text-align: center; color: var(--as-texte-doux); font-variant-numeric: tabular-nums; font-weight: 600; }
.carte-table thead th.col-num { color: #6a7694; }
.carte-table .table td, .carte-table .table th { vertical-align: middle; }
.pagination-auto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem .25rem 0; }
.pagination-auto .info { color: var(--as-texte-doux); font-size: .84rem; }
.pagination .page-link { border-color: var(--as-bordure); color: #44506e; transition: background-color .15s ease, color .15s ease; }
.pagination .page-link:hover { background: var(--as-primaire-clair); color: var(--as-primaire); }
.pagination .page-item.active .page-link { color: #fff; }
.contenu img, .contenu video { max-width: 100%; }
.contenu .row { --bs-gutter-x: 1rem; }
@media (max-width: 767.98px) {
  .contenu { padding-top: 1.1rem; }
  .entete-page h1 { font-size: 1.35rem; }
  .carte-table .table > :not(caption) > * > * { padding: .65rem .75rem; font-size: .86rem; white-space: nowrap; }
  .carte-formulaire { padding: 1.1rem; }
  .pagination-auto { justify-content: center; }
  .barre-section { display: none !important; }
}

/* ------------------------------------------------------------------ console super administrateur */
button.lien-menu { background: none; border: 0; text-align: left; cursor: pointer; }
.menu-liste form { margin: 0; }
.actions-rapides { display: flex; flex-wrap: wrap; gap: .6rem; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tuile {
  --c: var(--as-primaire); display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--as-bordure);
  border-radius: var(--as-rayon); box-shadow: var(--as-ombre-1); transition: transform .25s var(--as-courbe), box-shadow .25s ease;
}
.tuile:hover { transform: translateY(-3px); box-shadow: var(--as-ombre-2); }
.tuile-icone {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 1.3rem; color: var(--c);
  background: var(--c-fond);
}
.tuile .valeur { font-size: 1.65rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.tuile .libelle { font-size: .8rem; color: var(--as-texte-doux); margin-top: .15rem; }
.tuile-bleu { --c: #2f5af0; } .tuile-vert { --c: #12b76a; } .tuile-violet { --c: #7c4dff; } .tuile-orange { --c: #f79009; } .tuile-rouge { --c: #e5484d; }
.gros-montant { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gros-montant small { font-size: .9rem; color: var(--as-texte-doux); font-weight: 600; }
.repartition .ligne .progress-bar { background: var(--couleur-type, linear-gradient(90deg, #5b8cff, #2f5af0)); }
.pastille-icone.petit { width: 36px; height: 36px; font-size: 1rem; border-radius: 11px; }
.fiche-liste { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem 1rem; margin: 0; }
.fiche-liste dt { color: var(--as-texte-doux); font-weight: 500; font-size: .86rem; }
.fiche-liste dd { margin: 0; font-weight: 500; }
.grille-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; }
.tuile-lien {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; text-align: center; text-decoration: none; color: var(--as-encre);
  font-weight: 600; font-size: .86rem; background: #fff; border: 1px solid var(--as-bordure); border-radius: var(--as-rayon); box-shadow: var(--as-ombre-1);
  transition: transform .25s var(--as-courbe), box-shadow .25s ease, color .2s ease, border-color .2s ease;
}
.tuile-lien i { font-size: 1.5rem; color: var(--as-primaire); }
.tuile-lien:hover { transform: translateY(-3px); box-shadow: var(--as-ombre-2); border-color: #c9d5ff; color: var(--as-primaire); }
.repartition .nom { width: 42%; flex: 0 0 42%; } .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (min-width: 1200px) { .tuiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } } @media (max-width: 575.98px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ cartes du tableau de bord : sobres et fluides */
.carte-section {
  padding: 1.6rem 1.6rem 1.35rem; border-radius: 20px; background: #fff; border: 1px solid #e8ecf6;
  box-shadow: 0 1px 2px rgba(16, 26, 51, .04), 0 8px 24px -16px rgba(16, 26, 51, .18);
  transition: transform .45s var(--as-courbe), box-shadow .45s var(--as-courbe), border-color .3s ease;
}
.carte-section::before { height: 3px; opacity: .85; inset: 0 1.6rem auto 1.6rem; border-radius: 0 0 6px 6px; }
.carte-section::after { display: none; }
.carte-section:hover { transform: translateY(-4px); --bc: var(--t-bord); border: 1px solid var(--bc); box-shadow: 0 2px 4px rgba(16, 26, 51, .04), 0 22px 44px -22px var(--t-bord2); }
.carte-section h2 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.015em; }
.carte-section .etiquette { font-size: .68rem; letter-spacing: .09em; font-weight: 600; opacity: .9; }

.pastille-icone {
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.25rem; box-shadow: none;
  color: var(--couleur-type, var(--as-primaire)); background: var(--t-fond);
  transition: transform .45s var(--as-courbe), background-color .3s ease, color .3s ease;
}
.carte-section:hover .pastille-icone { transform: rotate(-6deg) scale(1.06); background: var(--couleur-type, var(--as-primaire)); color: #fff; }

/* indicateurs : un seul bandeau divisé, sans boîtes lourdes */
.kpi-grille { gap: 0; background: #fafbff; border: 1px solid #edf0f8; border-radius: 16px; overflow: hidden; }
.kpi { background: transparent; border: 0; border-radius: 0; padding: 1rem .5rem; transition: background-color .3s ease; }
.kpi + .kpi { border-left: 1px solid #edf0f8; }
.kpi:hover { background: #fff; transform: none; }
.kpi .valeur { font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi .libelle { font-size: .74rem; color: var(--as-texte-doux); margin-top: .2rem; }
@media (max-width: 767.98px) { .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid #edf0f8; } }

/* finances : liste aérée, montants lisibles */
.fin-grille { gap: .6rem; }
.fin { padding: .7rem .85rem; border-radius: 13px; border: 1px solid #edf0f8; background: #fff; transition: border-color .3s ease, background-color .3s ease, transform .35s var(--as-courbe); }
.fin:hover { transform: translateY(-2px); box-shadow: none; --bc: var(--t-bord2); border: 1px solid var(--bc); }
.fin .montant { font-size: .95rem; font-weight: 650; }
.fin .libelle { font-size: .7rem; letter-spacing: .01em; }
.fin.fort { background: var(--t-fond2); --bc: var(--t-bord); border: 1px solid var(--bc); }

.repartition .progress { height: .45rem; background: #eef1f9; }
.repartition .progress-bar { transform-origin: left center; animation: barre 1s var(--as-courbe) .25s both; }
.actions-bloc { border-top: 1px solid #edf0f8; border-top-style: solid; }
.actions-bloc .btn { padding: .35rem .85rem; font-weight: 500; transition: transform .25s var(--as-courbe), background-color .25s ease, color .25s ease, border-color .25s ease; }
.actions-bloc .btn:hover { transform: translateY(-2px); }

/* bandeau d'accueil plus discret */
.accueil { padding: 1.5rem 1.75rem; border-radius: 20px; box-shadow: 0 18px 40px -26px rgba(34, 70, 201, .7); }
.accueil h1 { font-size: 1.5rem; }
.accueil-stat { min-width: 118px; padding: .75rem 1rem; border-radius: 14px; transition: transform .35s var(--as-courbe), background-color .3s ease; }
.accueil-stat:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .15); }

/* apparition échelonnée */
@keyframes barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.row > [class*="col-"] > .carte-section { animation: montee .6s var(--as-courbe) both; }
.row > [class*="col-"]:nth-child(2) > .carte-section { animation-delay: .08s; }
.row > [class*="col-"]:nth-child(3) > .carte-section { animation-delay: .16s; }
.row > [class*="col-"]:nth-child(n+4) > .carte-section { animation-delay: .22s; }
.fin-grille .fin, .kpi-grille .kpi { animation: montee .6s var(--as-courbe) both; }
.fin-grille .fin:nth-child(2n), .kpi-grille .kpi:nth-child(2n) { animation-delay: .06s; }
.fin-grille .fin:nth-child(3n) { animation-delay: .12s; }
.tuile, .tuile-lien { animation: montee .55s var(--as-courbe) both; }
.tuile:nth-child(2) { animation-delay: .05s; } .tuile:nth-child(3) { animation-delay: .1s; } .tuile:nth-child(4) { animation-delay: .15s; } .tuile:nth-child(5) { animation-delay: .2s; } .tuile:nth-child(6) { animation-delay: .25s; }

/* Teintes précalculées (compatibles avec tous les navigateurs) */
:root { --t-fond: #e8edfd; --t-fond2: #f3f5fe; --t-bord: #d5defc; --t-bord2: #b0c0f9; --t-clair: #6d8cf4; }
.type-classique { --t-fond: #e8edfd; --t-fond2: #f3f5fe; --t-bord: #d5defc; --t-bord2: #b0c0f9; --t-clair: #6d8cf4; }
.type-professionnel { --t-fond: #fcf2e6; --t-fond2: #fdf8f1; --t-bord: #f9e7d1; --t-bord2: #f3d1a8; --t-clair: #e9aa5f; }
.type-universitaire { --t-fond: #f1ebff; --t-fond2: #f7f4ff; --t-bord: #e5dbff; --t-bord2: #cdbbff; --t-clair: #a382ff; }
.tuile-bleu { --c-fond: #e6ebfd; }
.tuile-vert { --c-fond: #e3f6ed; }
.tuile-violet { --c-fond: #efeaff; }
.tuile-orange { --c-fond: #fef2e1; }
.tuile-rouge { --c-fond: #fce9ea; }

/* ------------------------------------------------------------------ cartes financières (style tableau de bord financier) */
.fc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fc {
  position: relative; overflow: hidden; padding: 1.1rem 1.15rem 1rem; background: #fff; border: 1px solid #edf0f8; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 26, 51, .04), 0 10px 24px -18px rgba(16, 26, 51, .22);
  transition: transform .4s var(--as-courbe), box-shadow .4s var(--as-courbe);
  animation: montee .6s var(--as-courbe) both;
}
.fc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--fc); }
.fc:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 26, 51, .04), 0 22px 40px -22px var(--fc); }
.fc-icone { position: absolute; right: 1rem; top: 1.15rem; font-size: 2.1rem; color: var(--fc); opacity: .22; transition: opacity .3s ease, transform .4s var(--as-courbe); }
.fc:hover .fc-icone { opacity: .55; transform: scale(1.1) rotate(-6deg); }
.fc-lib { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #5b6785; margin-top: .25rem; padding-right: 2.5rem; }
.fc-val { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: .35rem 0 .3rem; font-variant-numeric: tabular-nums; word-break: break-word; }
.fc-val.orange { color: #f59e0b; } .fc-val.rouge { color: #e5484d; }
.fc-sous { font-size: .8rem; color: #6b7794; min-height: 1.2rem; }
.fc-sous.vert .fc-lien { color: #10b981; } .fc-sous.violet .fc-lien { color: #a855f7; }
.fc-lien { background: none; border: 0; padding: 0; font-size: .8rem; font-weight: 500; cursor: pointer; }
.fc-lien i { font-size: .6rem; }
.fc-lien:hover { text-decoration: underline; }
.fc-grille .fc:nth-child(2) { animation-delay: .05s; } .fc-grille .fc:nth-child(3) { animation-delay: .1s; } .fc-grille .fc:nth-child(4) { animation-delay: .15s; }
.fc-grille .fc:nth-child(5) { animation-delay: .2s; } .fc-grille .fc:nth-child(6) { animation-delay: .25s; } .fc-grille .fc:nth-child(7) { animation-delay: .3s; } .fc-grille .fc:nth-child(8) { animation-delay: .35s; }

/* Une carte posée directement dans la zone de contenu prend la hauteur de son contenu (pas celle de la page). */
.contenu > .carte-section, .contenu > form.carte-section { height: auto; }

/* Grilles de notes : colonnes d'identité fixes au défilement horizontal, et recherche */
.table-notes th.fixe, .table-notes td.fixe { position: sticky; z-index: 2; background: #fff; }
.table-notes thead th.fixe { z-index: 3; background: #f4f6fb; }
.table-notes .fixe-1 { left: 0; }
.table-notes .fixe-2 { left: 2.5rem; box-shadow: 4px 0 6px -4px rgba(20, 30, 70, .25); }
.table-notes .fixe-solo { left: 0; box-shadow: 4px 0 6px -4px rgba(20, 30, 70, .25); min-width: 11rem; }
.table-notes tbody tr:hover td.fixe { background: #f7f9ff; }
.table-notes tr.cache { display: none; }
