@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

.body {
  background: var(--orange-50);
  padding-bottom: 1rem;
}

:root {
  --bleu-principal: #2563EB;
  --bleu-nuit: #0F172A;
  --blanc: #FFFFFF;
  --gris: #F8FAFC;
  --green: #10B981;
  --gris-texte: #64748B;
  --gris-bordure: #E2E8F0;
}

/* =========================================
   EDUPLATFORM - PAGE D'ACCUEIL
   Design professionnel, moderne et responsive
   ========================================= */
:root {
  --blue: #2563EB;
  --blue-dark: #0F172A;
  --white: #FFFFFF;
  --gray-bg: #F8FAFC;
  --gray-text: #64748B;
  --border: #E2E8F0;
  --green: #10B981;
  --purple: #7C3AED;
}

.edu-home {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--blue-dark);
  background: var(--white);
  font-family: inherit;
}

.edu-home *,
.edu-home *::before,
.edu-home *::after {
  box-sizing: border-box;
}

.edu-home a {
  text-decoration: none;
}

.edu-home img {
  display: block;
  max-width: 100%;
}

.edu-home svg {
  flex-shrink: 0;
}

.edu-home .container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.edu-home .section {
  padding: 75px 0;
}

/* =========================================
   TITRES DE SECTION
   ========================================= */
.edu-home .section-heading {
  max-width: 650px;
  margin: 0 auto 42px;
  text-align: center;
}

.edu-home .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.edu-home .section-heading h2,
.edu-home .advantages__description h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.edu-home .section-heading p,
.edu-home .advantages__description > p {
  margin: 0;
  color: var(--gray-text);
  line-height: 1.8;
}

/* =========================================
   BOUTONS
   ========================================= */
.edu-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.edu-home .btn--primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.edu-home .btn--primary:hover {
  color: var(--white);
  background: #1D4ED8;
  transform: translateY(-2px);
}

.edu-home .btn--outline {
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.edu-home .btn--outline:hover {
  color: var(--blue-dark);
  background: var(--white);
}

.edu-home .btn--white {
  color: var(--blue);
  background: var(--white);
}

.edu-home .btn--white:hover {
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* =========================================
   HERO - VIDEO EN ARRIÈRE-PLAN
   ========================================= */
.edu-home .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: 85px 22px;
  overflow: hidden;
  color: var(--white);
  background: #0B1220;
  text-align: center;
}

.edu-home .hero__video-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.edu-home .hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.88), rgba(15, 23, 42, 0.65));
  pointer-events: none;
}

.edu-home .hero__content {
  width: min(850px, 100%);
  animation: hero-enter 0.7s ease both;
}

.edu-home .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  padding: 10px 16px;
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 30px;
  color: #DBEAFE;
  background: rgba(37, 99, 235, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
}

.edu-home .hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -2px;
}

.edu-home .hero h1 span {
  color: #93C5FD;
}

.edu-home .hero__content > p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #E2E8F0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.edu-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.edu-home .hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 23px;
  margin-top: 30px;
  color: #E2E8F0;
  font-size: 0.84rem;
}

.edu-home .hero__trust i {
  margin-right: 6px;
  color: #6EE7B7;
}

/* =========================================
   CATEGORIES - CARTES DYNAMIQUES
   ========================================= */
.edu-home .categories {
  padding: 80px 0;
  background: var(--gray-bg);
}

/* GRILLE */
.edu-home .categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 25px;
}

/* CARTE */
.edu-home .category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.edu-home .category-card:hover {
  transform: translateY(-6px);
  border-color: #BFDBFE;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

/* =========================================
   IMAGE CATEGORIE
   ========================================= */
.edu-home .category-card__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #E2E8F0;
}

/* IMAGE REMPLIT TOUT LE CONTENEUR */
.edu-home .category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

/* ZOOM IMAGE AU SURVOL */
.edu-home .category-card:hover .category-card__image {
  transform: scale(1.06);
}

/* ICONE PAR DEFAUT */
.edu-home .category-card__icon svg {
  width: 45px;
  height: 45px;
  color: var(--blue);
}

/* =========================================
   CONTENU CATEGORIE
   ========================================= */
.edu-home .category-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
}

/* TITRE */
.edu-home .category-card__content h3 {
  width: 100%;
  margin: 0 0 13px;
  color: var(--blue-dark);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.4;
}

/* DESCRIPTION */
.edu-home .category-card__content p {
  display: -webkit-box;
  width: 100%;
  min-height: 72px;
  margin: 0 0 25px;
  overflow: hidden;
  color: var(--gray-text);
  font-size: 0.94rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* =========================================
   BOUTON VOIR LES CATEGORIES
   ========================================= */
.edu-home .category-card__discover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 57px;
  margin-top: auto;
  padding: 13px 18px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  color: var(--blue);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.edu-home .category-card__discover:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.edu-home .category-card__discover svg {
  width: 19px;
  height: 19px;
  transition: transform 0.25s ease;
}

.edu-home .category-card__discover:hover svg {
  transform: translateX(5px);
}

/* AUCUNE CATEGORIE */
.edu-home .categories__empty {
  grid-column: 1/-1;
  padding: 35px;
  border: 1px dashed #CBD5E1;
  border-radius: 15px;
  color: var(--gray-text);
  background: var(--white);
  text-align: center;
}

/* =========================================
   FORMATIONS - CARTES DYNAMIQUES
   ========================================= */
.edu-home .formations {
  padding: 85px 0;
  background: var(--white);
}

.edu-home .formations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 25px;
}

/* CARTE FORMATION */
.edu-home .formation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.edu-home .formation-card:hover {
  transform: translateY(-7px);
  border-color: #BFDBFE;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

/* IMAGE FORMATION */
.edu-home .formation-card__image {
  position: relative;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #E2E8F0;
}

.edu-home .formation-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.15), transparent 45%);
  pointer-events: none;
}

.edu-home .formation-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.edu-home .formation-card:hover .formation-card__image img {
  transform: scale(1.06);
}

/* BADGE FORMATION */
.edu-home .formation-tag {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  color: #1D4ED8;
  background: #EFF6FF;
  font-size: 0.78rem;
  font-weight: 800;
}

.edu-home .formation-tag--purple {
  color: #6D28D9;
  background: #F3E8FF;
}

.edu-home .formation-tag--green {
  color: #047857;
  background: #D1FAE5;
}

/* CONTENU FORMATION */
.edu-home .formation-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
}

.edu-home .formation-card h3 {
  display: -webkit-box;
  width: 100%;
  min-height: 52px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.edu-home .formation-card p {
  display: -webkit-box;
  width: 100%;
  min-height: 72px;
  margin: 0 0 22px;
  overflow: hidden;
  color: var(--gray-text);
  font-size: 0.91rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* LIEN DECOUVRIR */
.edu-home .formation-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 5px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.edu-home .formation-link:hover {
  color: #1D4ED8;
}

.edu-home .formation-link i,
.edu-home .formation-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.edu-home .formation-link:hover i,
.edu-home .formation-link:hover svg {
  transform: translateX(5px);
}

/* AUCUNE FORMATION */
.edu-home .formations-empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 35px;
  border: 1px dashed #CBD5E1;
  border-radius: 15px;
  background: var(--gray-bg);
  text-align: center;
}

.edu-home .formations-empty p {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================
   AVANTAGES
   ========================================= */
.edu-home .advantages {
  padding: 70px 0;
  background: var(--gray-bg);
}

.edu-home .advantages__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 55px;
}

.edu-home .advantages__description > p {
  max-width: 490px;
  margin-bottom: 22px;
}

.edu-home .advantages__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 750;
}

.edu-home .advantages__link:hover {
  color: #1D4ED8;
}

.edu-home .advantages__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.edu-home .advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.edu-home .advantage-item__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--blue);
  background: #EFF6FF;
  font-size: 1.1rem;
}

.edu-home .advantage-item__icon svg {
  width: 21px;
  height: 21px;
}

.edu-home .advantage-item h3 {
  margin: 2px 0 6px;
  font-size: 0.92rem;
}

.edu-home .advantage-item p {
  margin: 0;
  color: var(--gray-text);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* =========================================
   APPEL À L'ACTION
   ========================================= */
.edu-home .cta {
  padding: 68px 20px;
  color: var(--white);
  background: linear-gradient(120deg, #0F172A, #1D4ED8);
  text-align: center;
}

.edu-home .cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edu-home .cta__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  color: #BFDBFE;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.7rem;
}

.edu-home .cta__icon svg {
  width: 28px;
  height: 28px;
}

.edu-home .cta h2 {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.edu-home .cta p {
  margin: 0 0 25px;
  color: #DBEAFE;
  line-height: 1.7;
}

/* =========================================
   FOOTER EDUPLATFORM
   ========================================= */
.edu-home .footer {
  padding: 60px 0 0;
  color: #CBD5E1;
  background: #0F172A;
}

.edu-home .footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 45px;
}

.edu-home .footer__about {
  max-width: 330px;
}

.edu-home .footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
}

.edu-home .footer .brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--white);
  background: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
}

.edu-home .footer__about > p,
.edu-home .footer__contact > p {
  margin: 0 0 22px;
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.8;
}

.edu-home .footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.edu-home .footer__column h3 {
  margin: 5px 0 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 750;
}

.edu-home .footer__column > a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.edu-home .footer__column > a:hover {
  color: var(--white);
}

.edu-home .footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-home .footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.25s ease;
}

.edu-home .footer__socials a:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
  transform: translateY(-3px);
}

.edu-home .footer__register {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 8px;
  color: var(--white) !important;
  background: var(--blue);
  font-size: 0.88rem !important;
  font-weight: 700;
  transition: background 0.25s ease;
}

.edu-home .footer__register:hover {
  background: #1D4ED8;
}

.edu-home .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edu-home .footer__bottom p,
.edu-home .footer__bottom span {
  margin: 0;
  color: #94A3B8;
  font-size: 0.84rem;
  line-height: 1.7;
}

.edu-home .footer__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edu-home .footer__bottom span i {
  color: #60A5FA;
}

/* =========================================
   ANIMATION
   ========================================= */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
   RESPONSIVE - TABLETTE
   ========================================= */
@media (max-width: 1000px) {
  .edu-home .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
  .edu-home .advantages__inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .edu-home .categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edu-home .formations__grid {
    gap: 20px;
  }
  .edu-home .formation-card__image {
    height: 200px;
  }
}
@media (max-width: 800px) {
  .edu-home .formations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edu-home .formation-card:last-child {
    grid-column: 1/-1;
  }
  .edu-home .formation-card:last-child .formation-card__image {
    height: 250px;
  }
}
/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */
@media (max-width: 600px) {
  .edu-home .container {
    width: calc(100% - 32px);
  }
  .edu-home .section {
    padding: 52px 0;
  }
  .edu-home .hero {
    min-height: 590px;
    padding: 70px 18px;
  }
  .edu-home .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
    letter-spacing: -1px;
  }
  .edu-home .hero__content > p {
    font-size: 0.95rem;
  }
  .edu-home .hero__actions {
    flex-direction: column;
  }
  .edu-home .hero__actions .btn {
    width: 100%;
  }
  .edu-home .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  /* CATEGORIES MOBILE */
  .edu-home .categories__grid {
    grid-template-columns: 1fr;
  }
  .edu-home .category-card {
    padding: 0;
  }
  .edu-home .category-card__icon {
    height: 220px;
  }
  .edu-home .category-card__content {
    padding: 25px;
  }
  .edu-home .category-card__content p {
    min-height: auto;
  }
  /* FORMATIONS MOBILE */
  .edu-home .formations__grid {
    grid-template-columns: 1fr;
  }
  .edu-home .formation-card:last-child {
    grid-column: auto;
  }
  .edu-home .formation-card__image,
  .edu-home .formation-card:last-child .formation-card__image {
    height: 220px;
  }
  .edu-home .formation-card__body {
    padding: 21px;
  }
  .edu-home .formation-card h3 {
    min-height: auto;
  }
  .edu-home .formation-card p {
    min-height: auto;
  }
  /* AVANTAGES */
  .edu-home .advantages {
    padding: 52px 0;
  }
  .edu-home .advantages__items {
    grid-template-columns: 1fr;
  }
  /* CTA */
  .edu-home .cta {
    padding: 52px 16px;
  }
  /* FOOTER */
  .edu-home .footer {
    padding-top: 42px;
  }
  .edu-home .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  .edu-home .footer__about {
    max-width: 100%;
  }
  .edu-home .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
/* =========================================
   ACCESSIBILITE
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .edu-home *,
  .edu-home *::before,
  .edu-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ========================================
   NAVBAR - EDUPLATFORM
======================================== */
.nav-tsara {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px 5%;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

/* LOGO */
.nav-log {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #0f172a;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 10px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
}

.nav-logo-accent {
  color: #2563eb;
}

/* ========================================
   MENU DESKTOP
======================================== */
.nav-mobile {
  display: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

/* Liens centrés */
.nav-desktop .nav-ol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(20px, 2.5vw, 38px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-desktop .nav-li {
  list-style: none;
}

.nav-a {
  color: #0f172a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-a:hover {
  color: #2563eb;
}

/* Boutons à droite */
.nav-inscrire {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-desktop .nav-inscrire {
  justify-content: flex-end;
  flex-shrink: 0;
}

.nav-ins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-connexion {
  color: #2563eb;
  background: #ffffff;
  border-color: #2563eb;
}

.nav-connexion:hover {
  background: #eff6ff;
}

.nav-inscription {
  color: #ffffff;
  background: #2563eb;
}

.nav-inscription:hover {
  background: #1d4ed8;
}

.nav-deconnexion {
  color: #ffffff;
  background: #ef4444;
}

.nav-deconnexion:hover {
  background: #dc2626;
}

.nav-profile {
  color: #0f172a;
  background: #f1f5f9;
}

.nav-profile:hover {
  background: #e2e8f0;
}

/* ========================================
   MOBILE : SANS JAVASCRIPT
======================================== */
@media (max-width: 800px) {
  .nav-tsara {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
  }
  /* Afeno ny menu desktop */
  .nav-desktop {
    display: none;
  }
  /* Bouton hamburger */
  .nav-mobile {
    display: block;
    position: relative;
    flex-shrink: 0;
  }
  .nav-mobile summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
  }
  .nav-mobile summary:hover {
    background: #eff6ff;
  }
  .nav-mobile summary::-webkit-details-marker {
    display: none;
  }
  .nav-mobile summary::marker {
    content: "";
  }
  /* Trois traits */
  .nav-mobile summary span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 4px;
    background: #0f172a;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  /* Transformation en X */
  .nav-mobile[open] summary span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-mobile[open] summary span:nth-child(2) {
    opacity: 0;
  }
  .nav-mobile[open] summary span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Panneau du menu à droite */
  .nav-mobile .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: 290px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
  }
  /* Liens du menu mobile */
  .nav-mobile .nav-ol {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-mobile .nav-li {
    display: block;
    width: 100%;
    list-style: none;
  }
  .nav-mobile .nav-a {
    display: block;
    width: 100%;
    padding: 13px 12px;
    box-sizing: border-box;
    color: #0f172a;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav-mobile .nav-a:hover {
    color: #2563eb;
    background: #eff6ff;
  }
  /* Boutons en bas du menu */
  .nav-mobile .nav-inscrire {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
  }
  .nav-mobile .nav-ins {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 15px;
    text-align: center;
  }
  .nav-mobile .nav-connexion {
    color: #2563eb;
    background: #ffffff;
    border-color: #bfdbfe;
  }
  .nav-mobile .nav-connexion:hover {
    background: #eff6ff;
  }
  .nav-mobile .nav-inscription {
    color: #ffffff;
    background: #2563eb;
  }
  .nav-mobile .nav-inscription:hover {
    background: #1d4ed8;
  }
}
/* ========================================
   PETITS ÉCRANS
======================================== */
@media (max-width: 360px) {
  .nav-tsara {
    padding: 10px 12px;
  }
  .nav-log {
    font-size: 19px;
  }
  .nav-logo-icon {
    width: 36px;
    height: 36px;
    margin-right: 7px;
  }
  .nav-mobile .nav-menu {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}
.register-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: var(--gris);
}

.register-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.register-card {
  width: 100%;
  padding: 2.5rem;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 1.8rem;
}

.register-cree {
  margin: 0 0 0.75rem;
  color: var(--bleu-nuit);
  font-size: 1.8rem;
  font-weight: 800;
}

.register-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-field label {
  color: var(--bleu-nuit);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Tous les champs, y compris les deux mots de passe */
.form-field .form-control,
.register-form input[type=text],
.register-form input[type=email],
.register-form input[type=password] {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gris-bordure);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--bleu-nuit);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field .form-control::placeholder {
  color: #94a3b8;
}

.form-field .form-control:focus,
.register-form input[type=password]:focus,
.register-form input[type=email]:focus,
.register-form input[type=text]:focus {
  border-color: var(--bleu-principal);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* Conditions d'utilisation */
.terms-field {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.terms-field input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--bleu-principal);
  cursor: pointer;
}

.terms-field label {
  flex: 1;
  cursor: pointer;
}

/* Bouton */
.register-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bleu-principal);
  border-radius: 0.65rem;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.register-button:hover {
  background: var(--bleu-nuit);
  border-color: var(--bleu-nuit);
  transform: translateY(-1px);
}

.register-button span {
  font-size: 1.2rem;
}

/* Erreurs de validation */
.register-form ul,
.register-card form ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: #dc2626;
  font-size: 0.82rem;
}

.register-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.6rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* Lien de connexion */
.register-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.register-footer a {
  color: var(--bleu-principal);
  font-weight: 700;
}

.register-footer a:hover {
  color: var(--bleu-nuit);
  text-decoration: underline;
}

.register-copyright {
  margin-top: 1.5rem;
  color: #64748b;
  text-align: center;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  .register-page {
    padding: 1.5rem 1rem;
  }
  .register-card {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .register-header h1 {
    font-size: 1.5rem;
  }
}
/* Page de connexion */
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 35%), var(--gris);
  font-family: "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}

.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

/* Carte */
.login-card {
  width: 100%;
  max-width: 460px;
  padding: 42px;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* En-tête identique au Register */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header .register-icon {
  font-size: 55px;
  margin-bottom: 15px;
}

.login-header .register-cree {
  display: inline-block;
  color: var(--bleu-principal);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.login-header .register-cree:hover {
  color: var(--bleu-nuit);
}

.login-header p {
  color: var(--gris-texte);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Formulaire */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group label {
  color: var(--bleu-nuit);
  font-size: 14px;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  font-size: 17px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 15px 0 45px;
  color: var(--bleu-nuit);
  background: var(--gris);
  border: 1px solid var(--gris-bordure);
  border-radius: 11px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrapper input::placeholder {
  color: #94A3B8;
}

.input-wrapper input:focus {
  background: var(--blanc);
  border-color: var(--bleu-principal);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Bouton connexion */
.login-button {
  width: 100%;
  min-height: 53px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  background: var(--bleu-principal);
  color: var(--blanc);
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.login-button:hover {
  background: var(--bleu-nuit);
  transform: translateY(-2px);
}

.login-button span {
  font-size: 21px;
}

/* Messages d'erreur */
.login-alert {
  padding: 13px 15px;
  margin-bottom: 22px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.login-alert-success {
  color: #047857;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.login-alert a {
  color: inherit;
  font-weight: 700;
}

/* Lien inscription */
.login-divider {
  margin: 27px 0 18px;
  text-align: center;
  color: var(--gris-texte);
  font-size: 12px;
}

.register-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--gris-bordure);
  border-radius: 11px;
  color: var(--bleu-principal);
  background: var(--blanc);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}

.register-button:hover {
  border-color: var(--bleu-principal);
  background: #EFF6FF;
}

/* Responsive */
@media (max-width: 480px) {
  .login-page {
    padding: 20px 12px;
  }
  .login-card {
    padding: 28px 22px;
    border-radius: 17px;
  }
  .login-header .register-cree {
    font-size: 24px;
  }
}
.alert-success {
  padding: 14px 18px;
  margin-bottom: 20px;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.forgot-password-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 18px;
}

.forgot-password-link {
  color: #2563EB;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.profile-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px 50px;
  color: #172554;
  font-family: Arial, sans-serif;
}

.btn-retour {
  display: inline-block;
  margin-bottom: 28px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-retour:hover {
  color: #1d4ed8;
}

.profile-heading {
  margin-bottom: 28px;
}

.profile-heading h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
}

.profile-heading p,
.section-description {
  color: #64748b;
  line-height: 1.6;
}

.profile-card,
.profile-form-card,
.profile-security-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  font-size: 36px;
  font-weight: 800;
}

.profile-sary {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 50%;
}

.profile-identity h2 {
  margin: 0 0 10px;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.profile-identity p {
  margin: 12px 0 0;
  color: #64748b;
  overflow-wrap: anywhere;
}

.profile-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.profile-form-card h2,
.profile-security-card h2 {
  margin-top: 0;
  font-size: 21px;
}

.profile-field {
  margin-top: 22px;
}

.profile-field label {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.profile-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
}

.profile-notice {
  margin-top: 24px;
  padding: 15px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.profile-security-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-security-card p {
  margin-bottom: 0;
  color: #64748b;
}

.security-icon {
  font-size: 28px;
}

@media (max-width: 600px) {
  .profile-page {
    margin-top: 24px;
    padding: 0 16px 35px;
  }
  .profile-heading h1 {
    font-size: 27px;
  }
  .profile-card,
  .profile-form-card,
  .profile-security-card {
    padding: 20px;
  }
  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
.profile-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.profile-avatar-image,
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #dbeafe;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  font-size: 38px;
  font-weight: 800;
}

.profile-upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-upload-button,
.profile-save-photo {
  padding: 11px 15px;
  border: none;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.profile-upload-button:hover,
.profile-save-photo:hover {
  background: #1d4ed8;
}

.selected-image-name {
  max-width: 210px;
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.profile-alert {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 10px;
}

.profile-alert-success {
  background: #dcfce7;
  color: #166534;
}

.profile-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* Informations personnelles */
.profile-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field label {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.profile-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  outline: none;
}

.profile-field input:read-only {
  cursor: default;
}

@media (max-width: 600px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   EDUPLATFORM — DASHBOARD ÉTUDIANT
   Thème officiel EduPlatform
======================================== */
:root {
  --bleu-principal: #2563EB;
  --bleu-nuit: #0F172A;
  --blanc: #FFFFFF;
  --gris: #F8FAFC;
  --green: #10B981;
  --gris-texte: #64748B;
  --gris-bordure: #E2E8F0;
}

/* RESET */
.student-dashboard,
.student-dashboard * {
  box-sizing: border-box;
}

.student-dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--gris);
  color: var(--bleu-nuit);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.student-dashboard a {
  text-decoration: none;
}

.student-dashboard button {
  font: inherit;
}

/* ========================================
   SIDEBAR
======================================== */
.student-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100vh;
  padding: 27px 20px 20px;
  overflow-y: auto;
  background: var(--blanc);
  border-right: 1px solid var(--gris-bordure);
  transition: transform 0.3s ease;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  color: var(--bleu-nuit);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  margin-bottom: 29px;
  border: 1px solid var(--gris-bordure);
  border-radius: 14px;
  background: var(--gris);
}

.profile-avatar,
.topbar-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-weight: 700;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-info strong {
  overflow: hidden;
  color: var(--bleu-nuit);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info span {
  color: var(--gris-texte);
  font-size: 12px;
}

.sidebar-label {
  margin: 0 0 12px 10px;
  color: var(--gris-texte);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.student-navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--gris-texte);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
  background: #EFF6FF;
  color: var(--bleu-principal);
}

.sidebar-link.active {
  background: var(--bleu-principal);
  color: var(--blanc);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.17);
}

.nav-icon {
  display: grid;
  width: 22px;
  flex-shrink: 0;
  place-items: center;
  font-size: 21px;
  line-height: 1;
}

.sidebar-help {
  padding: 17px 15px;
  margin-top: auto;
  margin-bottom: 18px;
  border: 1px solid var(--gris-bordure);
  border-radius: 13px;
  background: var(--gris);
}

.help-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 9px;
  background: #DBEAFE;
  color: var(--bleu-principal);
  font-size: 17px;
  font-weight: 800;
}

.sidebar-help strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bleu-nuit);
  font-size: 13px;
}

.sidebar-help p {
  margin: 0 0 11px;
  color: var(--gris-texte);
  font-size: 11px;
  line-height: 1.7;
}

.sidebar-help a {
  color: var(--bleu-principal);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-top: 1px solid var(--gris-bordure);
  color: var(--gris-texte);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-logout:hover {
  color: var(--bleu-principal);
}

.sidebar-logout span {
  font-size: 20px;
}

/* ========================================
   CONTENU PRINCIPAL
======================================== */
.student-main {
  width: calc(100% - 260px);
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  padding: 0 34px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  border-bottom: 1px solid var(--gris-bordure);
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.breadcrumb {
  color: var(--gris-texte);
  font-size: 12px;
}

.topbar-heading h1 {
  margin: 3px 0 0;
  color: var(--bleu-nuit);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.welcome-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.welcome-user span {
  color: var(--gris-texte);
  font-size: 11px;
}

.welcome-user strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--bleu-nuit);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-avatar {
  width: 43px;
  height: 43px;
  font-size: 16px;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gris-bordure);
  border-radius: 10px;
  background: var(--blanc);
  color: var(--bleu-nuit);
  cursor: pointer;
}

/* ========================================
   BANNIÈRE DE BIENVENUE
======================================== */
.dashboard-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 255px;
  padding: 35px 39px;
  margin-top: 29px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.welcome-tag,
.explore-eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: #93C5FD;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.welcome-content h2 {
  max-width: 510px;
  margin: 0 0 12px;
  color: var(--blanc);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
}

.welcome-content p {
  max-width: 510px;
  margin: 0 0 23px;
  color: #CBD5E1;
  font-size: 13px;
  line-height: 1.8;
}

.welcome-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 17px;
  border-radius: 9px;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.welcome-button:hover {
  transform: translateY(-2px);
  background: #1D4ED8;
  color: var(--blanc);
}

.welcome-button span,
.section-link span,
.explore-button span {
  font-size: 17px;
}

.welcome-illustration {
  display: grid;
  flex-shrink: 0;
  width: 210px;
  height: 210px;
  place-items: center;
}

.illustration-circle {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.illustration-book {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  transform: rotate(-7deg);
  border-radius: 22px;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 58px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.illustration-star {
  position: absolute;
  color: #93C5FD;
  font-size: 28px;
}

.star-one {
  top: 12px;
  right: 17px;
}

.star-two {
  bottom: 15px;
  left: 9px;
}

.illustration-dot {
  position: absolute;
  top: 40px;
  left: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* ========================================
   CARTES STATISTIQUES
======================================== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 21px 17px;
  border: 1px solid var(--gris-bordure);
  border-radius: 14px;
  background: var(--blanc);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
}

.stat-blue {
  background: #DBEAFE;
  color: var(--bleu-principal);
}

.stat-green {
  background: #D1FAE5;
  color: var(--green);
}

.stat-purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.stat-orange {
  background: #FFEDD5;
  color: #EA580C;
}

.stat-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-details > span {
  min-height: 36px;
  color: var(--gris-texte);
  font-size: 11px;
  line-height: 1.5;
}

.stat-details strong {
  margin: 3px 0;
  color: var(--bleu-nuit);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

.stat-details small {
  color: var(--gris-texte);
  font-size: 10px;
  line-height: 1.6;
}

/* ========================================
   SECTIONS
======================================== */
.dashboard-section {
  margin-top: 36px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.section-heading h2 {
  margin: 0 0 5px;
  color: var(--bleu-nuit);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.section-heading p {
  margin: 0;
  color: var(--gris-texte);
  font-size: 12px;
  line-height: 1.7;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--bleu-principal);
  font-size: 12px;
  font-weight: 700;
}

.section-link:hover {
  color: var(--bleu-nuit);
}

/* ========================================
   ÉTAT VIDE DES FORMATIONS
======================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 39px 24px;
  border: 1px dashed #CBD5E1;
  border-radius: 15px;
  background: var(--blanc);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 18px;
  background: #EFF6FF;
  color: var(--bleu-principal);
  font-size: 31px;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: var(--bleu-nuit);
  font-size: 16px;
  font-weight: 800;
}

.empty-state p {
  max-width: 420px;
  margin: 0 0 20px;
  color: var(--gris-texte);
  font-size: 12px;
  line-height: 1.8;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 9px;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: #1D4ED8;
  color: var(--blanc);
}

/* ========================================
   ACTIVITÉS ET CERTIFICATS
======================================== */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.dashboard-panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--gris-bordure);
  border-radius: 15px;
  background: var(--blanc);
}

.dashboard-panel .section-heading {
  margin-bottom: 22px;
}

.activity-empty {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0 5px;
}

.activity-empty-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background: #EFF6FF;
  color: var(--bleu-principal);
  font-size: 22px;
}

.activity-empty strong,
.certificate-empty strong {
  display: block;
  color: var(--bleu-nuit);
  font-size: 12px;
  font-weight: 700;
}

.activity-empty p,
.certificate-empty p {
  margin: 5px 0 0;
  color: var(--gris-texte);
  font-size: 11px;
  line-height: 1.8;
}

.certificate-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 8px;
  text-align: center;
}

.certificate-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 15px;
  background: #D1FAE5;
  color: var(--green);
  font-size: 29px;
}

/* ========================================
   BANNIÈRE EXPLORATION
======================================== */
.explore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 27px 30px;
  margin-top: 28px;
  border: 1px solid var(--gris-bordure);
  border-radius: 15px;
  background: var(--blanc);
}

.explore-eyebrow {
  margin-bottom: 8px;
  color: var(--bleu-principal);
  font-size: 9px;
}

.explore-banner h2 {
  margin: 0 0 7px;
  color: var(--bleu-nuit);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.explore-banner p {
  margin: 0;
  color: var(--gris-texte);
  font-size: 12px;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 17px;
  border-radius: 9px;
  background: var(--bleu-principal);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.explore-button:hover {
  background: #1D4ED8;
  color: var(--blanc);
}

/* ========================================
   FOOTER
======================================== */
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 0;
  margin-top: 20px;
  color: var(--gris-texte);
  font-size: 11px;
}

/* ========================================
   RESPONSIVE — TABLETTES
======================================== */
@media (max-width: 1200px) {
  .student-main {
    padding-right: 25px;
    padding-left: 25px;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-illustration {
    width: 165px;
  }
  .illustration-circle {
    width: 145px;
    height: 145px;
  }
  .illustration-book {
    width: 76px;
    height: 76px;
    font-size: 48px;
  }
}
/* ========================================
   RESPONSIVE — MOBILES
======================================== */
@media (max-width: 768px) {
  .student-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .student-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.12);
  }
  .student-main {
    width: 100%;
    margin-left: 0;
    padding: 0 18px;
  }
  .dashboard-topbar {
    min-height: 82px;
  }
  .mobile-menu-button {
    display: grid;
    flex-shrink: 0;
    place-items: center;
  }
  .topbar-heading {
    gap: 10px;
  }
  .topbar-heading h1 {
    font-size: 20px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .welcome-user strong {
    max-width: 100px;
  }
  .topbar-avatar {
    width: 37px;
    height: 37px;
  }
  .dashboard-welcome {
    min-height: auto;
    padding: 28px 23px;
    margin-top: 22px;
  }
  .welcome-content h2 {
    font-size: 26px;
  }
  .welcome-illustration {
    display: none;
  }
  .dashboard-stats {
    gap: 12px;
    margin-top: 20px;
  }
  .stat-card {
    gap: 10px;
    padding: 16px 12px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 19px;
  }
  .stat-details strong {
    font-size: 23px;
  }
  .dashboard-section {
    margin-top: 27px;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 22px;
  }
  .explore-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
  }
  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 420px) {
  .student-main {
    padding-right: 13px;
    padding-left: 13px;
  }
  .topbar-heading h1 {
    font-size: 17px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .welcome-user {
    display: none;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .stat-card {
    align-items: center;
    padding: 15px;
  }
  .stat-details > span {
    min-height: auto;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .empty-state {
    padding: 30px 17px;
  }
  .dashboard-panel {
    padding: 18px;
  }
}
/* =========================================================
   EDUPLATFORM — FORMATEUR DASHBOARD
   Design moderne : Bleu, blanc, gris clair
========================================================= */
:root {
  --trainer-blue: #2563EB;
  --trainer-blue-dark: #1D4ED8;
  --trainer-blue-light: #EFF6FF;
  --trainer-navy: #0F172A;
  --trainer-white: #FFFFFF;
  --trainer-bg: #F8FAFC;
  --trainer-green: #10B981;
  --trainer-text: #64748B;
  --trainer-muted: #94A3B8;
  --trainer-border: #E2E8F0;
  --trainer-shadow: 0 8px 28px rgba(15, 23, 42, .045);
  --trainer-radius: 18px;
}

/* =========================================================
   BASE
========================================================= */
.trainer-dashboard {
  min-height: 100vh;
  background: var(--trainer-bg);
  color: var(--trainer-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.trainer-dashboard *,
.trainer-dashboard *::before,
.trainer-dashboard *::after {
  box-sizing: border-box;
}

.trainer-dashboard a {
  color: inherit;
  text-decoration: none;
}

.trainer-dashboard button,
.trainer-dashboard input {
  font: inherit;
}

.trainer-dashboard h1,
.trainer-dashboard h2,
.trainer-dashboard h3,
.trainer-dashboard p {
  margin-top: 0;
}

.trainer-dashboard h1,
.trainer-dashboard h2,
.trainer-dashboard h3 {
  color: var(--trainer-navy);
  line-height: 1.35;
}

.trainer-dashboard a:focus-visible,
.trainer-dashboard button:focus-visible,
.trainer-dashboard input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

/* =========================================================
   SIDEBAR
========================================================= */
.trainer-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100vh;
  padding: 26px 18px 20px;
  overflow-y: auto;
  background: var(--trainer-navy);
  color: white;
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.06);
}

.trainer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 7px 34px;
  color: white !important;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.trainer-brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--trainer-blue);
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.3);
}

.trainer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  margin-bottom: 29px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.trainer-avatar,
.trainer-topbar-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #60A5FA, #2563EB);
  color: white;
  font-weight: 800;
}

.trainer-avatar {
  width: 43px;
  height: 43px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 17px;
}

.trainer-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.trainer-profile-info strong {
  overflow: hidden;
  color: white;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-profile-info span {
  color: #94A3B8;
  font-size: 11px;
}

.trainer-menu-label {
  padding: 0 12px;
  margin-bottom: 12px;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.trainer-navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trainer-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  padding: 11px 14px;
  border-radius: 11px;
  color: #CBD5E1 !important;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.trainer-nav-link:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.07);
  color: white !important;
}

.trainer-nav-link.active {
  background: var(--trainer-blue);
  color: white !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

.trainer-nav-icon {
  display: grid;
  place-items: center;
  width: 23px;
  flex-shrink: 0;
  font-size: 20px;
}

.trainer-help {
  padding: 18px 15px;
  margin-top: auto;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.19), rgba(255, 255, 255, 0.035));
}

.trainer-help-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-bottom: 11px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.3);
  color: #BFDBFE;
  font-size: 18px;
}

.trainer-help > strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: 13px;
}

.trainer-help p {
  margin-bottom: 12px;
  color: #94A3B8;
  font-size: 11px;
  line-height: 1.8;
}

.trainer-help a {
  color: #93C5FD;
  font-size: 11px;
  font-weight: 700;
}

.trainer-help a:hover {
  color: white;
}

.trainer-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1 !important;
  font-size: 12px;
  font-weight: 600;
}

.trainer-logout:hover {
  color: #FCA5A5 !important;
}

.trainer-logout span {
  font-size: 19px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.trainer-main {
  width: calc(100% - 260px);
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  padding: 0 36px 30px;
}

/* =========================================================
   TOPBAR
========================================================= */
.trainer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 15px 0;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--trainer-border);
}

.trainer-topbar-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trainer-breadcrumb {
  display: block;
  margin-bottom: 4px;
  color: var(--trainer-text);
  font-size: 11px;
}

.trainer-topbar h1 {
  margin-bottom: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.trainer-topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trainer-user-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.trainer-user-greeting span {
  color: var(--trainer-text);
  font-size: 11px;
}

.trainer-user-greeting strong {
  color: var(--trainer-navy);
  font-size: 13px;
  font-weight: 700;
}

.trainer-topbar-avatar {
  width: 43px;
  height: 43px;
  border: 3px solid #DBEAFE;
  font-size: 16px;
}

.trainer-mobile-menu {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--trainer-border);
  border-radius: 11px;
  background: white;
  color: var(--trainer-navy);
  cursor: pointer;
}

/* =========================================================
   WELCOME BANNER
========================================================= */
.trainer-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 240px;
  padding: 35px 39px;
  margin-bottom: 27px;
  overflow: hidden;
  border-radius: 21px;
  background: linear-gradient(115deg, #1D4ED8, #2563EB 55%, #3B82F6);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.13);
}

.trainer-welcome::before,
.trainer-welcome::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.trainer-welcome::before {
  top: -135px;
  right: 60px;
  width: 330px;
  height: 330px;
}

.trainer-welcome::after {
  right: -65px;
  bottom: -185px;
  width: 360px;
  height: 360px;
}

.trainer-welcome-content {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.trainer-welcome-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #DBEAFE;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.trainer-welcome h2 {
  max-width: 510px;
  margin-bottom: 12px;
  color: white;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.3;
}

.trainer-welcome p {
  max-width: 480px;
  margin-bottom: 22px;
  color: #DBEAFE;
  font-size: 12px;
  line-height: 1.9;
}

.trainer-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: white;
  color: var(--trainer-blue) !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.1);
  transition: 0.2s ease;
}

.trainer-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.16);
}

.trainer-primary-button span {
  font-size: 19px;
  line-height: 1;
}

.trainer-welcome-illustration {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 205px;
  min-width: 160px;
  align-self: stretch;
}

.trainer-illustration-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.035);
}

.trainer-illustration-book {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 23px;
  background: white;
  color: var(--trainer-blue);
  font-size: 49px;
  box-shadow: 0 13px 30px rgba(15, 23, 42, 0.15);
  transform: rotate(-8deg);
}

.trainer-illustration-star {
  position: absolute;
  top: 4px;
  right: 0;
  color: #FDE68A;
  font-size: 35px;
}

.trainer-illustration-dot {
  position: absolute;
  bottom: 5px;
  left: 4px;
  width: 17px;
  height: 17px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--trainer-green);
}

/* =========================================================
   STATISTICS
========================================================= */
.trainer-statistics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 36px;
}

.trainer-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 21px 18px;
  border: 1px solid var(--trainer-border);
  border-radius: 16px;
  background: white;
  box-shadow: var(--trainer-shadow);
  transition: 0.22s ease;
}

.trainer-stat-card:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.trainer-stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 700;
}

.trainer-stat-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.trainer-stat-green {
  background: #D1FAE5;
  color: #059669;
}

.trainer-stat-purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.trainer-stat-orange {
  background: #FFEDD5;
  color: #EA580C;
}

.trainer-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.trainer-stat-content > span {
  color: var(--trainer-text);
  font-size: 10px;
  font-weight: 600;
}

.trainer-stat-content > strong {
  color: var(--trainer-navy);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.35;
}

.trainer-stat-content > small {
  color: var(--trainer-muted);
  font-size: 10px;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */
.trainer-section {
  margin-bottom: 35px;
}

.trainer-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}

.trainer-section-heading h2 {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.trainer-section-heading p {
  margin-bottom: 0;
  color: var(--trainer-text);
  font-size: 11px;
}

.trainer-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #DBEAFE;
  border-radius: 9px;
  background: #EFF6FF;
  color: var(--trainer-blue) !important;
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s ease;
}

.trainer-section-link:hover {
  background: #DBEAFE;
}

.trainer-section-link span,
.trainer-student-link span {
  font-size: 17px;
}

/* =========================================================
   PANELS
========================================================= */
.trainer-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--trainer-border);
  border-radius: var(--trainer-radius);
  background: white;
  box-shadow: var(--trainer-shadow);
}

.trainer-panel .trainer-section-heading {
  margin-bottom: 22px;
}

/* =========================================================
   FORMATION CARDS
========================================================= */
.trainer-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trainer-course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--trainer-border);
  border-radius: 17px;
  background: white;
  box-shadow: var(--trainer-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.trainer-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.trainer-course-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 150px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(130deg, #1D4ED8, #60A5FA);
}

.trainer-course-cover::before {
  position: absolute;
  top: -55px;
  right: -18px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.trainer-course-cover > span {
  position: relative;
  z-index: 1;
  max-width: 70%;
  color: white;
  font-size: 19px;
  font-weight: 800;
}

.trainer-course-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-course-cover-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 31px;
}

.trainer-course-body {
  padding: 20px;
}

.trainer-course-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  margin-bottom: 11px;
  border-radius: 6px;
  background: #EFF6FF;
  color: var(--trainer-blue);
  font-size: 9px;
  font-weight: 800;
}

.trainer-course-category > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trainer-green);
}

.trainer-course-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trainer-course-body > p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  margin-bottom: 17px;
  color: var(--trainer-text);
  font-size: 11px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trainer-course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.trainer-course-meta > span:first-child {
  color: var(--trainer-text);
  font-size: 10px;
  font-weight: 600;
}

.trainer-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.trainer-status-published {
  background: #D1FAE5;
  color: #047857;
}

.trainer-status-pending {
  background: #FEF3C7;
  color: #B45309;
}

.trainer-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 9px;
}

.trainer-course-footer span {
  color: var(--trainer-text);
  font-size: 10px;
}

.trainer-course-footer strong {
  color: var(--trainer-navy);
  font-size: 11px;
  font-weight: 800;
}

.trainer-progress,
.trainer-mini-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: #EAF0F7;
}

.trainer-progress span,
.trainer-mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
}

/* =========================================================
   EMPTY STATES
========================================================= */
.formations-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 35px 20px;
  text-align: center;
}

.formations-empty__icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin-bottom: 17px;
  border-radius: 20px;
  background: #EFF6FF;
  color: var(--trainer-blue);
  font-size: 29px;
}

.formations-empty h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
}

.formations-empty p {
  max-width: 380px;
  margin-bottom: 18px;
  color: var(--trainer-text);
  font-size: 12px;
  line-height: 1.8;
}

.formations-empty .trainer-primary-button {
  background: var(--trainer-blue);
  color: white !important;
}

/* =========================================================
   ACTIVITIES AND STUDENTS
========================================================= */
.trainer-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 30px;
}

.trainer-activity {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #F1F5F9;
}

.trainer-activity:first-of-type {
  padding-top: 0;
}

.trainer-activity:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.trainer-activity-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
}

.trainer-activity-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.trainer-activity-green {
  background: #D1FAE5;
  color: #059669;
}

.trainer-activity-purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.trainer-activity > div:last-child {
  min-width: 0;
}

.trainer-activity strong {
  display: block;
  margin-bottom: 3px;
  color: var(--trainer-navy);
  font-size: 11px;
  font-weight: 800;
}

.trainer-activity p {
  margin-bottom: 5px;
  color: var(--trainer-text);
  font-size: 10px;
  line-height: 1.7;
}

.trainer-activity > div:last-child > span {
  color: var(--trainer-muted);
  font-size: 9px;
}

/* Student summary */
.trainer-student-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  margin-bottom: 22px;
  border: 1px solid #DBEAFE;
  border-radius: 13px;
  background: linear-gradient(120deg, #EFF6FF, #F8FAFC);
}

.trainer-student-summary-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #DBEAFE;
  color: var(--trainer-blue);
  font-size: 24px;
}

.trainer-student-summary > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trainer-student-summary span {
  color: var(--trainer-text);
  font-size: 10px;
}

.trainer-student-summary strong {
  color: var(--trainer-navy);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

.trainer-student-progress {
  margin-bottom: 19px;
}

.trainer-student-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.trainer-student-progress > div:first-child span {
  color: var(--trainer-text);
  font-size: 10px;
}

.trainer-student-progress > div:first-child strong {
  color: var(--trainer-navy);
  font-size: 11px;
  font-weight: 800;
}

.trainer-mini-progress {
  height: 7px;
}

.trainer-student-progress:nth-of-type(3) .trainer-mini-progress span {
  background: linear-gradient(90deg, #10B981, #6EE7B7);
}

/* =========================================================
   TABLEAU DES ÉTUDIANTS
========================================================= */
.trainer-student-table-wrapper {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--trainer-border);
  border-radius: 12px;
}

.trainer-student-table {
  width: 100%;
  min-width: 550px;
  border-collapse: collapse;
  text-align: left;
}

.trainer-student-table thead {
  background: #F8FAFC;
}

.trainer-student-table th {
  padding: 13px 14px;
  color: #64748B;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.trainer-student-table td {
  padding: 13px 14px;
  border-top: 1px solid #F1F5F9;
  color: var(--trainer-text);
  font-size: 10px;
  vertical-align: middle;
}

.trainer-student-table tbody tr {
  transition: background 0.2s ease;
}

.trainer-student-table tbody tr:hover {
  background: #F8FAFC;
}

.trainer-student-table td strong {
  display: block;
  margin-bottom: 3px;
  color: var(--trainer-navy);
  font-size: 11px;
}

.trainer-student-table td small {
  display: block;
  color: var(--trainer-muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.trainer-student-search {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  margin-top: 15px;
  border: 1px solid var(--trainer-border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--trainer-navy);
  font-size: 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trainer-student-search::placeholder {
  color: #94A3B8;
}

.trainer-student-search:focus {
  border-color: var(--trainer-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#trainerStudentNoResult {
  padding: 15px;
  margin: 8px 0 0;
  border-radius: 9px;
  background: #F8FAFC;
  color: var(--trainer-text);
  font-size: 11px;
  text-align: center;
}

/* =========================================================
   STUDENT LINK
========================================================= */
.trainer-student-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 17px;
  margin-top: 20px;
  border-top: 1px solid #F1F5F9;
  color: var(--trainer-blue) !important;
  font-size: 11px;
  font-weight: 800;
}

.trainer-student-link:hover {
  color: var(--trainer-blue-dark) !important;
}

/* =========================================================
   CREATE FORMATION BANNER
========================================================= */
.trainer-create-banner {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px 28px;
  margin-bottom: 25px;
  border: 1px solid #DBEAFE;
  border-radius: 17px;
  background: linear-gradient(110deg, #EFF6FF, #FFFFFF);
}

.trainer-create-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--trainer-blue);
  color: white;
  font-size: 30px;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
}

.trainer-create-content {
  flex: 1;
  min-width: 0;
}

.trainer-create-content h2 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.trainer-create-content p {
  margin-bottom: 0;
  color: var(--trainer-text);
  font-size: 11px;
  line-height: 1.8;
}

.trainer-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--trainer-blue);
  color: white !important;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(37, 99, 235, 0.16);
  transition: 0.2s ease;
}

.trainer-create-button:hover {
  transform: translateY(-2px);
  background: var(--trainer-blue-dark);
}

.trainer-create-button span {
  font-size: 17px;
}

/* =========================================================
   FOOTER
========================================================= */
.trainer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 0 4px;
  border-top: 1px solid var(--trainer-border);
  color: var(--trainer-muted);
  font-size: 10px;
}

/* =========================================================
   TABLETTE
========================================================= */
@media (max-width: 1200px) {
  .trainer-main {
    padding-right: 25px;
    padding-left: 25px;
  }
  .trainer-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trainer-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trainer-course-card:last-child {
    grid-column: auto;
  }
  .trainer-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .trainer-sidebar {
    width: 235px;
  }
  .trainer-main {
    width: calc(100% - 235px);
    margin-left: 235px;
    padding-right: 20px;
    padding-left: 20px;
  }
  .trainer-welcome {
    padding: 30px 25px;
  }
  .trainer-welcome-illustration {
    width: 145px;
    min-width: 120px;
  }
  .trainer-illustration-circle {
    width: 120px;
    height: 120px;
  }
  .trainer-illustration-book {
    width: 68px;
    height: 68px;
    font-size: 39px;
  }
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {
  .trainer-sidebar {
    width: 270px;
    max-width: 85vw;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    box-shadow: none;
  }
  .trainer-sidebar.trainer-sidebar-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 15px 0 45px rgba(15, 23, 42, 0.22);
  }
  .trainer-main {
    width: 100%;
    margin-left: 0;
    padding: 0 17px 22px;
  }
  .trainer-topbar {
    min-height: 76px;
    gap: 10px;
    margin-bottom: 20px;
  }
  .trainer-mobile-menu {
    display: grid;
    flex-shrink: 0;
  }
  .trainer-topbar h1 {
    font-size: 19px;
  }
  .trainer-breadcrumb {
    font-size: 10px;
  }
  .trainer-user-greeting {
    display: none;
  }
  .trainer-topbar-avatar {
    width: 39px;
    height: 39px;
  }
  .trainer-welcome {
    min-height: auto;
    padding: 27px 23px;
    margin-bottom: 22px;
    border-radius: 17px;
  }
  .trainer-welcome h2 {
    font-size: 24px;
  }
  .trainer-welcome p {
    font-size: 11px;
  }
  .trainer-welcome-illustration {
    display: none;
  }
  .trainer-statistics {
    gap: 12px;
    margin-bottom: 29px;
  }
  .trainer-stat-card {
    gap: 10px;
    padding: 15px 12px;
    border-radius: 13px;
  }
  .trainer-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
  .trainer-stat-content > span {
    font-size: 9px;
  }
  .trainer-stat-content > strong {
    font-size: 25px;
  }
  .trainer-stat-content > small {
    font-size: 9px;
  }
  .trainer-section-heading h2 {
    font-size: 16px;
  }
  .trainer-section-heading p {
    font-size: 10px;
  }
  .trainer-courses-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .trainer-course-cover {
    height: 165px;
  }
  .trainer-course-body {
    padding: 19px;
  }
  .trainer-panel {
    padding: 19px;
  }
  .trainer-bottom-grid {
    gap: 15px;
  }
  .trainer-create-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
  }
  .trainer-create-icon {
    width: 44px;
    height: 44px;
  }
  .trainer-create-content {
    flex-basis: calc(100% - 60px);
  }
  .trainer-create-content h2 {
    font-size: 14px;
  }
  .trainer-create-button {
    width: 100%;
  }
  .trainer-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
}
/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
@media (max-width: 380px) {
  .trainer-main {
    padding-right: 12px;
    padding-left: 12px;
  }
  .trainer-topbar h1 {
    font-size: 17px;
  }
  .trainer-statistics {
    grid-template-columns: 1fr;
  }
  .trainer-stat-card {
    align-items: center;
  }
  .trainer-welcome {
    padding: 23px 18px;
  }
  .trainer-welcome h2 {
    font-size: 22px;
  }
  .trainer-section-heading {
    align-items: flex-start;
  }
  .trainer-section-link {
    padding: 8px;
  }
}
/* =========================================================
   ACCESSIBILITÉ
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .trainer-dashboard *,
  .trainer-dashboard *::before,
  .trainer-dashboard *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* =========================================
   EDUPLATFORM - ADMIN DASHBOARD
========================================= */
:root {
  --admin-blue: #2563EB;
  --admin-blue-dark: #1D4ED8;
  --admin-navy: #0F172A;
  --admin-white: #FFFFFF;
  --admin-bg: #F8FAFC;
  --admin-green: #10B981;
  --admin-text: #334155;
  --admin-muted: #64748B;
  --admin-border: #E2E8F0;
  --admin-sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-dashboard {
  min-height: 100vh;
}

/* =========================================
   SIDEBAR
========================================= */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--admin-sidebar-width);
  height: 100vh;
  padding: 26px 18px 18px;
  overflow-y: auto;
  background: var(--admin-white);
  border-right: 1px solid var(--admin-border);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 32px;
  padding: 0 8px;
  color: var(--admin-navy);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.7px;
}

.admin-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  color: white;
  background: var(--admin-blue);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  margin-bottom: 30px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
}

.admin-avatar,
.admin-topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.admin-profile-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.admin-profile-info strong {
  overflow: hidden;
  color: var(--admin-navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile-info span {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--admin-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #D1FAE5;
}

.admin-menu-label {
  margin: 0 0 13px 10px;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.admin-navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  padding: 0 13px;
  color: #64748B;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-link:hover {
  color: var(--admin-blue);
  background: #EFF6FF;
}

.admin-nav-link.active {
  color: var(--admin-blue);
  background: #EFF6FF;
  font-weight: 700;
}

.admin-nav-link.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  background: var(--admin-blue);
  border-radius: 0 5px 5px 0;
  content: "";
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 20px;
}

.admin-nav-arrow {
  margin-left: auto;
  color: #94A3B8;
  font-size: 21px;
}

.admin-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  color: #B45309;
  background: #FEF3C7;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}

.admin-help-card {
  padding: 17px 14px;
  margin-bottom: 17px;
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: 13px;
}

.admin-help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
  color: var(--admin-blue);
  background: #DBEAFE;
  border-radius: 9px;
  font-weight: 800;
}

.admin-help-card > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--admin-navy);
  font-size: 12px;
}

.admin-help-card p {
  margin: 0 0 12px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.7;
}

.admin-help-card a {
  color: var(--admin-blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.admin-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 13px;
  color: #DC2626;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.admin-logout:hover {
  background: #FEF2F2;
}

.admin-logout span:first-child {
  font-size: 21px;
}

/* =========================================
   MAIN CONTENT
========================================= */
.admin-main {
  min-height: 100vh;
  margin-left: var(--admin-sidebar-width);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding: 17px 34px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--admin-border);
  backdrop-filter: blur(12px);
}

.admin-topbar-left,
.admin-topbar-right {
  display: flex;
  align-items: center;
}

.admin-topbar-left {
  gap: 13px;
}

.admin-breadcrumb {
  margin-bottom: 6px;
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-breadcrumb span {
  margin: 0 5px;
  color: #CBD5E1;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--admin-navy);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.admin-topbar-right {
  gap: 20px;
}

.admin-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-date-icon {
  color: var(--admin-blue);
  font-size: 19px;
}

.admin-notification {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  color: #475569;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  font-size: 20px;
  cursor: pointer;
}

.admin-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border: 1px solid white;
  border-radius: 50%;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-avatar {
  width: 39px;
  height: 39px;
}

.admin-topbar-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 160px;
}

.admin-topbar-user-info strong {
  overflow: hidden;
  color: var(--admin-navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar-user-info span {
  color: var(--admin-muted);
  font-size: 10px;
}

.admin-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--admin-navy);
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  font-size: 20px;
  cursor: pointer;
}

.admin-content {
  width: 100%;
  max-width: 1700px;
  padding: 30px 34px 20px;
  margin: 0 auto;
}

/* =========================================
   WELCOME BANNER
========================================= */
.admin-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 235px;
  padding: 32px 38px;
  overflow: hidden;
  color: white;
  background: linear-gradient(115deg, #1D4ED8 0%, #2563EB 55%, #3B82F6 100%);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.admin-welcome::before {
  position: absolute;
  top: -100px;
  right: 130px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.admin-welcome::after {
  position: absolute;
  right: -75px;
  bottom: -180px;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.admin-welcome-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.admin-welcome-label {
  display: inline-block;
  margin-bottom: 13px;
  color: #DBEAFE;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.admin-welcome h2 {
  max-width: 620px;
  margin: 0 0 12px;
  color: white;
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.admin-welcome p {
  max-width: 550px;
  margin: 0 0 23px;
  color: #DBEAFE;
  font-size: 13px;
  line-height: 1.8;
}

.admin-welcome-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 43px;
  padding: 0 17px;
  color: var(--admin-blue-dark);
  background: white;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-welcome-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.15);
}

.admin-welcome-button span {
  font-size: 18px;
}

.admin-welcome-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 180px;
  flex-shrink: 0;
}

.admin-art-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 145px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.admin-art-circle::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
}

.admin-art-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--admin-blue);
  background: white;
  border-radius: 22px;
  font-size: 44px;
  font-weight: 800;
  transform: rotate(-8deg);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.13);
}

.admin-art-star {
  position: absolute;
  top: 9px;
  right: 8px;
  color: #FDE68A;
  font-size: 27px;
}

.admin-art-small-star {
  position: absolute;
  bottom: 12px;
  left: 5px;
  color: white;
  font-size: 24px;
}

.admin-art-check {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  color: var(--admin-green);
  background: white;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.12);
}

/* =========================================
   STATISTICS
========================================= */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 25px 0 32px;
}

.admin-stat-card {
  min-width: 0;
  padding: 21px 19px;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.015);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.06);
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 23px;
}

.stat-icon-blue {
  color: #2563EB;
  background: #DBEAFE;
}

.stat-icon-green {
  color: #059669;
  background: #D1FAE5;
}

.stat-icon-orange {
  color: #D97706;
  background: #FEF3C7;
}

.stat-icon-purple {
  color: #7C3AED;
  background: #EDE9FE;
}

.admin-stat-tag {
  padding: 6px 8px;
  color: #64748B;
  background: #F8FAFC;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.admin-stat-label {
  margin-bottom: 9px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.5;
}

.admin-stat-value {
  color: var(--admin-navy);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.admin-stat-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #94A3B8;
  font-size: 10px;
  line-height: 1.5;
}

.admin-stat-indicator {
  color: #059669;
  font-size: 14px;
  font-weight: 800;
}

.admin-stat-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: #B45309;
  background: #FEF3C7;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

/* =========================================
   SECTION HEADINGS
========================================= */
.admin-section {
  padding: 25px;
  margin-bottom: 25px;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.admin-section-heading h2 {
  margin: 0 0 7px;
  color: var(--admin-navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.admin-section-heading p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.7;
}

.admin-text-link,
.admin-small-link {
  flex-shrink: 0;
  color: var(--admin-blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.admin-text-link:hover,
.admin-small-link:hover {
  color: var(--admin-blue-dark);
  text-decoration: underline;
}

/* =========================================
   VALIDATION TABLE
========================================= */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.admin-table thead {
  background: #F8FAFC;
}

.admin-table th {
  padding: 14px 12px;
  color: #94A3B8;
  border-bottom: 1px solid var(--admin-border);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.admin-table td {
  padding: 17px 12px;
  color: #64748B;
  border-bottom: 1px solid #F1F5F9;
  font-size: 11px;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: #FAFCFF;
}

.admin-course-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-course-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.thumb-blue {
  color: #2563EB;
  background: #DBEAFE;
}

.thumb-green {
  color: #059669;
  background: #D1FAE5;
}

.thumb-purple {
  color: #7C3AED;
  background: #EDE9FE;
}

.admin-course-cell > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-course-cell strong {
  color: var(--admin-navy);
  font-size: 11px;
}

.admin-course-cell span {
  color: #94A3B8;
  font-size: 10px;
}

.admin-category {
  display: inline-block;
  padding: 6px 9px;
  color: #475569;
  background: #F1F5F9;
  border-radius: 6px;
  font-size: 10px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.admin-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pending {
  color: #B45309;
  background: #FFFBEB;
}

.status-pending > span {
  background: #F59E0B;
}

.admin-review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 11px;
  color: var(--admin-blue);
  background: #EFF6FF;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.admin-review-button:hover {
  color: white;
  background: var(--admin-blue);
}

/* =========================================
   BOTTOM PANELS
========================================= */
.admin-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}

.admin-panel {
  min-width: 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
}

.admin-panel .admin-section-heading {
  margin-bottom: 20px;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
}

.admin-user-row:first-child {
  padding-top: 0;
}

.admin-user-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.user-avatar-blue {
  color: #2563EB;
  background: #DBEAFE;
}

.user-avatar-green {
  color: #059669;
  background: #D1FAE5;
}

.user-avatar-purple {
  color: #7C3AED;
  background: #EDE9FE;
}

.user-avatar-orange {
  color: #C2410C;
  background: #FFEDD5;
}

.admin-user-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.admin-user-details strong {
  overflow: hidden;
  color: var(--admin-navy);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-details span {
  overflow: hidden;
  color: #94A3B8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-role {
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.role-student {
  color: #2563EB;
  background: #EFF6FF;
}

.role-teacher {
  color: #059669;
  background: #ECFDF5;
}

/* OVERVIEW */
.admin-overview-list {
  display: flex;
  flex-direction: column;
}

.admin-overview-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid #F1F5F9;
}

.admin-overview-item:first-child {
  padding-top: 0;
}

.admin-overview-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-overview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 19px;
}

.overview-blue {
  color: #2563EB;
  background: #DBEAFE;
}

.overview-green {
  color: #059669;
  background: #D1FAE5;
}

.overview-orange {
  color: #D97706;
  background: #FEF3C7;
}

.overview-purple {
  color: #7C3AED;
  background: #EDE9FE;
}

.admin-overview-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.admin-overview-details strong {
  color: var(--admin-navy);
  font-size: 11px;
}

.admin-overview-details span {
  color: #94A3B8;
  font-size: 10px;
}

.admin-overview-number {
  color: var(--admin-navy);
  font-size: 17px;
  font-weight: 800;
}

/* =========================================
   QUICK ACTIONS
========================================= */
.admin-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px;
  margin-bottom: 25px;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
}

.admin-quick-label {
  display: block;
  margin-bottom: 9px;
  color: var(--admin-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.admin-quick-actions h2 {
  margin: 0 0 8px;
  color: var(--admin-navy);
  font-size: 17px;
  font-weight: 800;
}

.admin-quick-actions p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.7;
}

.admin-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-quick-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-quick-button span {
  color: var(--admin-blue);
  font-size: 17px;
}

.admin-quick-button:hover {
  color: var(--admin-blue);
  background: #EFF6FF;
  border-color: #BFDBFE;
}

/* =========================================
   FOOTER
========================================= */
.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0 5px;
  color: #94A3B8;
  border-top: 1px solid var(--admin-border);
  font-size: 10px;
}

/* =========================================
   RESPONSIVE - TABLET
========================================= */
@media (max-width: 1200px) {
  .admin-content {
    padding-right: 23px;
    padding-left: 23px;
  }
  .admin-topbar {
    padding-right: 23px;
    padding-left: 23px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-welcome {
    padding: 29px;
  }
  .admin-welcome-art {
    width: 160px;
  }
  .admin-quick-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================
   RESPONSIVE - MOBILE
========================================= */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }
  .admin-sidebar.admin-sidebar-open {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.13);
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-mobile-menu {
    display: inline-flex;
  }
  .admin-bottom-grid {
    grid-template-columns: 1fr;
  }
  .admin-welcome-art {
    width: 130px;
  }
  .admin-art-circle {
    width: 115px;
    height: 115px;
  }
  .admin-art-cap {
    width: 58px;
    height: 58px;
    font-size: 35px;
  }
}
@media (max-width: 640px) {
  .admin-topbar {
    min-height: 76px;
    padding: 13px 16px;
  }
  .admin-topbar h1 {
    font-size: 18px;
  }
  .admin-breadcrumb {
    font-size: 10px;
  }
  .admin-topbar-right {
    gap: 10px;
  }
  .admin-date,
  .admin-topbar-user-info {
    display: none;
  }
  .admin-topbar-avatar {
    width: 36px;
    height: 36px;
  }
  .admin-content {
    padding: 20px 14px;
  }
  .admin-welcome {
    min-height: auto;
    padding: 25px 22px;
    border-radius: 15px;
  }
  .admin-welcome h2 {
    font-size: 23px;
  }
  .admin-welcome p {
    font-size: 12px;
  }
  .admin-welcome-art {
    display: none;
  }
  .admin-stats {
    gap: 12px;
    margin: 18px 0 25px;
  }
  .admin-stat-card {
    padding: 16px 13px;
    border-radius: 12px;
  }
  .admin-stat-icon {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }
  .admin-stat-tag {
    display: none;
  }
  .admin-stat-value {
    font-size: 25px;
  }
  .admin-stat-label {
    min-height: 33px;
    font-size: 10px;
  }
  .admin-stat-footer {
    align-items: flex-start;
    font-size: 9px;
  }
  .admin-section,
  .admin-panel {
    padding: 18px 14px;
    border-radius: 13px;
  }
  .admin-section-heading {
    align-items: flex-start;
  }
  .admin-section-heading h2 {
    font-size: 15px;
  }
  .admin-section-heading p {
    font-size: 10px;
  }
  .admin-text-link {
    max-width: 110px;
    font-size: 10px;
    line-height: 1.6;
    text-align: right;
  }
  .admin-bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .admin-quick-actions {
    padding: 19px 15px;
  }
  .admin-quick-actions h2 {
    font-size: 15px;
  }
  .admin-quick-buttons {
    width: 100%;
  }
  .admin-quick-button {
    flex: 1;
    justify-content: center;
  }
  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    line-height: 1.6;
  }
}
@media (max-width: 380px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .admin-stat-label {
    min-height: 0;
  }
  .admin-stat-tag {
    display: inline-block;
  }
  .admin-quick-buttons {
    flex-direction: column;
  }
  .admin-quick-button {
    justify-content: flex-start;
  }
}
.formateur-requests {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 28px;
  color: #0F172A;
}

.requests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.requests-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.requests-header h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.requests-header p,
.requests-card-header p {
  margin: 0;
  color: #64748B;
  line-height: 1.7;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0F172A;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-back:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.requests-card {
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.requests-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #E2E8F0;
}

.requests-card-header h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 750;
}

.requests-count {
  padding: 8px 12px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.requests-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.requests-table thead {
  background: #F8FAFC;
}

.requests-table th {
  padding: 16px 20px;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.requests-table td {
  padding: 19px 20px;
  border-top: 1px solid #E2E8F0;
  font-size: 14px;
  vertical-align: middle;
}

.requests-table tbody tr {
  transition: background 0.2s ease;
}

.requests-table tbody tr:hover {
  background: #F8FAFC;
}

.status-pending {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 20px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-actions form {
  margin: 0;
}

.btn-approve,
.btn-reject {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-approve {
  background: #D1FAE5;
  color: #047857;
}

.btn-approve:hover {
  background: #10B981;
  color: #FFFFFF;
}

.btn-reject {
  background: #FEE2E2;
  color: #B91C1C;
}

.btn-reject:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.requests-empty {
  padding: 65px 24px;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: #EFF6FF;
  font-size: 28px;
}

.requests-empty h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 750;
}

.requests-empty p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

.alert {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.alert-success {
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  color: #047857;
}

.alert-error {
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
}

@media (max-width: 768px) {
  .formateur-requests {
    padding: 28px 16px;
  }
  .requests-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .requests-card-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .requests-table th,
  .requests-table td {
    padding: 14px;
  }
  .request-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================
   DEMANDES FORMATEURS - CENTRAGE ADMIN
========================================= */
.formateur-requests {
  box-sizing: border-box;
  width: calc(100% - 260px);
  min-height: 100vh;
  margin-left: 260px;
  margin-right: 0;
  padding: 38px 35px 60px;
  max-width: none;
  background: #F8FAFC;
  color: #0F172A;
}

.formateur-requests .requests-header,
.formateur-requests .requests-content,
.formateur-requests .requests-card {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .formateur-requests {
    width: 100%;
    margin-left: 0;
    padding: 28px 20px 45px;
  }
}
@media (max-width: 600px) {
  .formateur-requests {
    padding: 22px 14px 35px;
  }
}
/* =========================================
   EDUPLATFORM - GESTION DES UTILISATEURS
   Fichier : public/assets/css/admin-users.css
========================================= */
.users-page {
  --users-blue: #2563EB;
  --users-blue-dark: #1D4ED8;
  --users-navy: #0F172A;
  --users-green: #10B981;
  --users-gray: #64748B;
  --users-light: #F8FAFC;
  --users-border: #E2E8F0;
  --users-white: #FFFFFF;
  width: 100%;
  min-width: 0;
  padding: 32px;
  color: var(--users-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}

.users-page *,
.users-page *::before,
.users-page *::after {
  box-sizing: border-box;
}

/* =========================================
   EN-TÊTE
========================================= */
.users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.users-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--users-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.users-header h1 {
  margin: 0 0 10px;
  color: var(--users-navy);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
}

.users-header p {
  margin: 0;
  color: var(--users-gray);
  font-size: 14px;
  line-height: 1.7;
}

.users-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid var(--users-border);
  border-radius: 10px;
  background: var(--users-white);
  color: var(--users-navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.users-back:hover {
  border-color: var(--users-blue);
  background: #EFF6FF;
  color: var(--users-blue);
}

/* =========================================
   BARRE DE RECHERCHE ET FILTRES
========================================= */
.users-toolbar {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--users-border);
  border-radius: 16px;
  background: var(--users-white);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.users-search-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.users-search-form input,
.users-search-form select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--users-border);
  border-radius: 9px;
  outline: none;
  background: var(--users-white);
  color: var(--users-navy);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.users-search-form input {
  flex: 1 1 260px;
  min-width: 180px;
}

.users-search-form select {
  flex: 0 1 190px;
  min-width: 150px;
  cursor: pointer;
}

.users-search-form input::placeholder {
  color: #94A3B8;
}

.users-search-form input:focus,
.users-search-form select:focus {
  border-color: var(--users-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.users-search-form button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--users-blue);
  border-radius: 9px;
  background: var(--users-blue);
  color: var(--users-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.users-search-form button:hover {
  background: var(--users-blue-dark);
  transform: translateY(-1px);
}

.users-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--users-gray);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.users-reset:hover {
  background: var(--users-light);
  color: var(--users-blue);
}

/* =========================================
   CARTE DU TABLEAU
========================================= */
.users-table-card {
  overflow: hidden;
  border: 1px solid var(--users-border);
  border-radius: 16px;
  background: var(--users-white);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.users-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--users-border);
}

.users-table-heading h2 {
  margin: 0 0 7px;
  color: var(--users-navy);
  font-size: 18px;
  font-weight: 800;
}

.users-table-heading p {
  margin: 0;
  color: var(--users-gray);
  font-size: 13px;
}

/* =========================================
   TABLEAU DES UTILISATEURS
========================================= */
.users-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.users-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.users-table thead {
  background: #F8FAFC;
}

.users-table th {
  padding: 16px 20px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.users-table td {
  padding: 18px 20px;
  border-top: 1px solid #F1F5F9;
  color: #475569;
  font-size: 13px;
  vertical-align: middle;
}

.users-table tbody tr {
  transition: background 0.2s ease;
}

.users-table tbody tr:hover {
  background: #F8FAFF;
}

.users-table tbody tr:first-child td {
  border-top: none;
}

/* =========================================
   IDENTITÉ ET AVATAR
========================================= */
.user-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  background: #EFF6FF;
  color: var(--users-blue);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-identity strong {
  display: block;
  margin-bottom: 5px;
  color: var(--users-navy);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.user-identity small {
  display: block;
  color: #94A3B8;
  font-size: 11px;
}

/* =========================================
   BADGES DES RÔLES
========================================= */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 7px;
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.role-admin {
  background: #F3E8FF;
  color: #7E22CE;
}

.role-formateur {
  background: #D1FAE5;
  color: #047857;
}

.role-etudiant {
  background: #DBEAFE;
  color: #1D4ED8;
}

.status-empty {
  color: #94A3B8;
  font-size: 12px;
}

/* =========================================
   AUCUN RÉSULTAT
========================================= */
.users-empty {
  padding: 55px 20px !important;
  text-align: center;
}

.users-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--users-navy);
  font-size: 15px;
}

.users-empty p {
  margin: 0;
  color: var(--users-gray);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================
   RESPONSIVE : TABLETTES
========================================= */
@media (max-width: 1024px) {
  .users-page {
    padding: 24px;
  }
  .users-header {
    align-items: flex-start;
  }
  .users-search-form input {
    flex-basis: 220px;
  }
  .users-search-form select {
    flex-grow: 1;
  }
}
/* =========================================
   RESPONSIVE : MOBILES
========================================= */
@media (max-width: 640px) {
  .users-page {
    padding: 16px;
  }
  .users-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 22px;
  }
  .users-header h1 {
    font-size: 25px;
  }
  .users-header p {
    font-size: 13px;
  }
  .users-back {
    align-self: flex-start;
  }
  .users-toolbar {
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 12px;
  }
  .users-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .users-search-form input,
  .users-search-form select,
  .users-search-form button {
    width: 100%;
    min-width: 0;
    flex: auto;
  }
  .users-reset {
    align-self: center;
  }
  .users-table-heading {
    padding: 18px;
  }
  .users-table-heading h2 {
    font-size: 16px;
  }
  .users-table {
    min-width: 850px;
  }
}
/* ==========================================
   EDUPLATFORM - VALIDATION DES FORMATEURS
========================================== */
.validations-page {
  box-sizing: border-box;
  width: calc(100% - 260px);
  min-height: 100vh;
  margin-left: 260px;
  padding: 40px 35px;
  color: #0F172A;
  background: #F8FAFC;
}

/* CONTENEUR CENTRAL */
.validations-page > * {
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

/* HEADER */
.validations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.validations-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.validations-header h1 {
  margin: 8px 0;
  color: #0F172A;
  font-size: 30px;
  font-weight: 800;
}

.validations-header p,
.validation-card-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
}

.btn-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0F172A;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-retour:hover {
  border-color: #2563EB;
  color: #2563EB;
  transform: translateY(-2px);
}

/* STATISTIQUE */
.validation-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  margin: 0 0 25px;
  padding: 22px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.summary-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #DBEAFE;
  color: #2563EB;
  font-size: 23px;
}

.validation-summary span,
.validation-summary strong {
  display: block;
}

.validation-summary span {
  color: #64748B;
  font-size: 13px;
}

.validation-summary strong {
  margin-top: 5px;
  color: #0F172A;
  font-size: 26px;
  font-weight: 800;
}

/* CARTE PRINCIPALE */
.validation-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.validation-card-header {
  padding: 24px;
  border-bottom: 1px solid #E2E8F0;
}

.validation-card-header h2 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 20px;
  font-weight: 800;
}

/* TABLEAU */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.validation-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.validation-table thead {
  background: #F8FAFC;
}

.validation-table th {
  padding: 16px 20px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.validation-table td {
  padding: 18px 20px;
  border-top: 1px solid #E2E8F0;
  color: #334155;
  font-size: 14px;
  vertical-align: middle;
}

.validation-table tbody tr {
  transition: background 0.2s ease;
}

.validation-table tbody tr:hover {
  background: #F8FAFC;
}

/* UTILISATEUR */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell strong {
  color: #0F172A;
  font-weight: 700;
}

.user-cell small {
  margin-top: 4px;
  color: #64748B;
  font-size: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid #E2E8F0;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  display: grid;
  place-items: center;
  background: #DBEAFE;
  color: #2563EB;
  font-weight: 800;
}

/* STATUT */
.status-pending {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 30px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ACTIONS */
.validation-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.validation-actions form {
  margin: 0;
}

.btn-approve,
.btn-reject {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-approve {
  background: #D1FAE5;
  color: #065F46;
}

.btn-approve:hover {
  background: #10B981;
  color: #FFFFFF;
}

.btn-reject {
  background: #FEE2E2;
  color: #991B1B;
}

.btn-reject:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* MESSAGES */
.flash-message {
  margin-bottom: 20px;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.flash-success {
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  color: #065F46;
}

.flash-warning {
  border: 1px solid #FDE68A;
  background: #FFFBEB;
  color: #92400E;
}

/* AUCUNE DEMANDE */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  margin-bottom: 16px;
  color: #10B981;
  font-size: 42px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #0F172A;
  font-size: 19px;
}

.empty-state p {
  color: #64748B;
  font-size: 14px;
}

/* TABLETTE */
@media (max-width: 1100px) {
  .validations-page {
    padding: 30px 22px;
  }
}
/* MOBILE */
@media (max-width: 900px) {
  .validations-page {
    width: 100%;
    margin-left: 0;
    padding: 25px 18px;
  }
}
@media (max-width: 600px) {
  .validations-page {
    padding: 20px 14px;
  }
  .validations-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .validations-header h1 {
    font-size: 24px;
  }
  .validation-summary {
    max-width: 100%;
  }
  .validation-card-header {
    padding: 18px;
  }
  .validation-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .validation-actions form,
  .btn-approve,
  .btn-reject {
    width: 100%;
  }
}
/* =========================================================
   EDUPLATFORM — MES ÉTUDIANTS
   Palette : Bleu #2563EB | Bleu nuit #0F172A
   ========================================================= */
:root {
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-dark: #0F172A;
  --white: #FFFFFF;
  --background: #F8FAFC;
  --green: #10B981;
  --green-light: #ECFDF5;
  --text: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* =========================
   PAGE PRINCIPALE
   ========================= */
.page {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding-bottom: 30px;
}

/* =========================
   BARRE DE NAVIGATION
   ========================= */
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand::before {
  content: "E";
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s ease;
}

.back-link:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* =========================
   TITRE DE PAGE
   ========================= */
.heading {
  position: relative;
  overflow: hidden;
  padding: 35px 38px;
  margin-bottom: 27px;
  border-radius: 22px;
  background: linear-gradient(120deg, #0F172A 0%, #172554 55%, #2563EB 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.heading::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -110px;
  right: -45px;
  border: 35px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.heading::before {
  content: "";
  position: absolute;
  width: 115px;
  height: 115px;
  right: 105px;
  bottom: -85px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.heading h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -1px;
}

.heading p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #DBEAFE;
  font-size: 14px;
}

/* =========================
   CARTES STATISTIQUES
   ========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 150px;
  padding: 25px 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 100px;
  height: 100px;
  background: var(--blue-light);
  border-radius: 50%;
}

.stat-card:nth-child(2)::after {
  background: var(--green-light);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-number {
  position: relative;
  z-index: 1;
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.stat-card:nth-child(2) .stat-number {
  color: var(--green);
}

/* =========================
   PANNEAU DU TABLEAU
   ========================= */
.panel {
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.panel-header h2 {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* =========================
   CHAMP DE RECHERCHE
   ========================= */
.search {
  width: min(100%, 370px);
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: var(--background);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search::placeholder {
  color: #94A3B8;
}

.search:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================
   TABLEAU DES ÉTUDIANTS
   ========================= */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
}

#studentsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

#studentsTable thead {
  background: #F1F5F9;
}

#studentsTable th {
  padding: 16px 19px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

#studentsTable td {
  padding: 19px;
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
}

#studentsTable tbody tr {
  transition: background 0.2s ease;
}

#studentsTable tbody tr:hover {
  background: #F8FAFF;
}

#studentsTable tbody tr:last-child td {
  border-bottom: none;
}

#studentsTable td:nth-child(2) {
  min-width: 180px;
  font-weight: 600;
  color: var(--blue-dark);
}

#studentsTable td:nth-child(3) {
  min-width: 165px;
  color: var(--muted);
  white-space: nowrap;
}

.student-name {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 3px;
}

.student-email {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* =========================
   BADGE STATUT
   ========================= */
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid #A7F3D0;
  border-radius: 30px;
  background: var(--green-light);
  color: #047857;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

/* =========================
   ÉTAT VIDE / RECHERCHE
   ========================= */
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 13px;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 800;
}

.empty[hidden] {
  display: none !important;
}

/* =========================
   PIED DE PAGE
   ========================= */
.footer {
  padding: 28px 10px 8px;
  color: #94A3B8;
  text-align: center;
  font-size: 12px;
}

/* =========================
   RESPONSIVE TABLETTE
   ========================= */
@media (max-width: 768px) {
  .page {
    width: calc(100% - 30px);
  }
  .topbar {
    min-height: 72px;
    margin-bottom: 28px;
  }
  .brand {
    font-size: 22px;
  }
  .brand::before {
    width: 35px;
    height: 35px;
  }
  .heading {
    padding: 28px 24px;
    border-radius: 17px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .stats {
    gap: 14px;
  }
  .stat-card {
    min-height: 130px;
    padding: 21px;
  }
  .stat-number {
    font-size: 33px;
  }
  .panel {
    padding: 20px;
  }
  .panel-header {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  .search {
    width: 100%;
  }
}
/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 520px) {
  .page {
    width: calc(100% - 22px);
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 23px;
  }
  .back-link {
    padding: 9px 12px;
    font-size: 12px;
  }
  .heading {
    padding: 25px 20px;
    margin-bottom: 19px;
  }
  .heading h1 {
    font-size: 26px;
  }
  .heading p {
    font-size: 13px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat-card {
    min-height: 112px;
    padding: 19px 21px;
  }
  .stat-number {
    font-size: 31px;
  }
  .panel {
    padding: 16px 12px;
    border-radius: 14px;
  }
  .panel-header h2 {
    font-size: 18px;
  }
  #studentsTable th,
  #studentsTable td {
    padding: 14px 12px;
  }
  #studentsTable th {
    font-size: 10px;
  }
  .footer {
    padding-top: 22px;
    font-size: 11px;
  }
}
/* =========================================================
   ESPACE ÉTUDIANT — MES FORMATIONS
   ========================================================= */
.trainer-dashboard {
  background: #F8FAFC;
}

.trainer-main {
  padding-top: 35px;
}

.trainer-main .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trainer-main .page-header h1 {
  margin-bottom: 8px;
  color: #0F172A;
  font-size: 28px;
  font-weight: 800;
}

.trainer-main .page-header p {
  color: #64748B;
  font-size: 14px;
}

.trainer-main .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: none;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.trainer-main .primary-button:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.trainer-main .student-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.trainer-main .student-course-card {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trainer-main .student-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 28px rgba(15, 23, 42, 0.1);
}

.trainer-main .student-course-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #EFF6FF;
}

.trainer-main .student-course-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.trainer-main .student-course-card:hover .student-course-image img {
  transform: scale(1.05);
}

.trainer-main .student-course-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #2563EB;
  font-size: 48px;
}

.trainer-main .student-course-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 21px;
}

.trainer-main .student-course-status {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 30px;
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
}

.trainer-main .student-course-content h3 {
  color: #0F172A;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.trainer-main .student-course-content p {
  color: #64748B;
  font-size: 13px;
  line-height: 1.7;
}

.trainer-main .student-course-meta {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 12px;
}

.trainer-main .student-course-content .primary-button {
  width: 100%;
  margin-top: 3px;
}

.trainer-main .empty-state {
  padding: 55px 25px;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 18px;
}

.trainer-main .empty-state > i {
  display: block;
  margin-bottom: 18px;
  color: #2563EB;
  font-size: 48px;
}

.trainer-main .empty-state h2 {
  margin-bottom: 10px;
  color: #0F172A;
  font-size: 22px;
  font-weight: 800;
}

.trainer-main .empty-state p {
  max-width: 500px;
  margin: 0 auto 22px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
}

.trainer-main .alert-success {
  margin-bottom: 20px;
  padding: 13px 17px;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  background: #ECFDF5;
  color: #047857;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .trainer-main .student-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .trainer-main {
    padding: 25px 18px;
  }
  .trainer-main .page-header {
    align-items: stretch;
    flex-direction: column;
  }
  .trainer-main .page-header h1 {
    font-size: 24px;
  }
  .trainer-main .student-courses-grid {
    grid-template-columns: 1fr;
  }
  .trainer-main .student-course-image {
    height: 210px;
  }
}
/* =========================================
   FIX DEFINITIF - STUDENT CONTENT POSITION
========================================= */
.trainer-dashboard .trainer-main.student-learning-page {
  display: block;
  position: relative;
  width: calc(100% - 260px);
  max-width: none;
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  padding: 35px 40px 60px;
  box-sizing: border-box;
}

/* Tablette */
@media (max-width: 900px) {
  .trainer-dashboard .trainer-main.student-learning-page {
    width: calc(100% - 235px);
    margin-left: 235px;
    padding: 25px 20px 45px;
  }
}
/* Mobile */
@media (max-width: 700px) {
  .trainer-dashboard .trainer-main.student-learning-page {
    width: 100%;
    margin-left: 0;
    padding: 22px 16px 40px;
  }
}
/* ======================================
   EDUPLATFORM - CATALOGUE DES FORMATIONS
   CONTENU CENTRÉ
====================================== */
.formations-page {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --navy: #0F172A;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --green: #10B981;
  --text: #64748B;
  --border: #E2E8F0;
  width: 100%;
  min-height: 100vh;
  padding: 40px 25px 65px;
  background: var(--bg);
  color: var(--navy);
  font-family: inherit;
  box-sizing: border-box;
}

.formations-page *,
.formations-page *::before,
.formations-page *::after {
  box-sizing: border-box;
}

.formations-page [hidden] {
  display: none !important;
}

/* CONTENEUR CENTRAL */
.formations-header,
.formations-catalogue {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================================
   EN-TÊTE
====================================== */
.formations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 34px 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.formations-header__content {
  min-width: 0;
}

.formations-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.formations-header h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.formations-header h1 span {
  color: var(--blue);
}

.formations-header__content p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.btn-create-formation {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-create-formation:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  color: var(--white);
}

.btn-create-formation > span {
  font-size: 21px;
  line-height: 1;
}

/* ======================================
   MESSAGES
====================================== */
.formations-header + .formation-alert {
  max-width: 1250px;
  margin: -20px auto 28px;
}

.formation-alert {
  width: 100%;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.formation-alert--success {
  border-color: #A7F3D0;
  background: #ECFDF5;
  color: #047857;
}

.formation-alert--warning {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #92400E;
}

/* ======================================
   CATALOGUE
====================================== */
.formations-catalogue {
  scroll-margin-top: 25px;
}

.catalogue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.catalogue-heading h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.catalogue-heading p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.formations-count {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  font-size: 12px;
}

.formations-count strong {
  color: var(--blue);
  font-size: 17px;
}

/* ======================================
   RECHERCHE ET FILTRE
====================================== */
.formations-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box__icon {
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #94A3B8;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.filter-box select {
  max-width: 210px;
  min-height: 45px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.filter-box select:focus {
  border-color: var(--blue);
}

/* ======================================
   GRILLE DES FORMATIONS
====================================== */
.formations-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.formation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.025);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.formation-card:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* IMAGES */
.formation-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #EFF6FF;
}

.formation-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.formation-card:hover .formation-card__image {
  transform: scale(1.04);
}

.formation-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.formation-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #DBEAFE, #F8FAFC);
  color: var(--blue);
}

.formation-card__placeholder span {
  font-size: 38px;
}

.formation-card__placeholder p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

/* CONTENU CARTE */
.formation-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.formation-card__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 11px;
}

.formation-card__category > span {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}

.formation-card__title {
  display: -webkit-box;
  min-height: 27px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.formation-card__description {
  display: -webkit-box;
  min-height: 60px;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* FOOTER CARTE */
.formation-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.formation-card__info {
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.formation-card__form {
  margin: 0;
}

.btn-inscription {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 10px 13px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-inscription:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-inscription span {
  font-size: 15px;
}

/* ======================================
   ÉTATS VIDES
====================================== */
.formations-empty,
.formations-no-results {
  width: 100%;
  padding: 45px 20px;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  background: var(--white);
  text-align: center;
}

.formations-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 17px;
  border-radius: 15px;
  background: #EFF6FF;
  color: var(--blue);
  font-size: 30px;
}

.formations-empty h3,
.formations-no-results h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
}

.formations-empty p,
.formations-no-results p {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.formations-no-results button {
  padding: 10px 15px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.formations-no-results button:hover {
  background: var(--blue-dark);
}

/* ======================================
   RESPONSIVE TABLETTE
====================================== */
@media (max-width: 1000px) {
  .formations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .formations-header {
    padding: 28px;
  }
}
/* ======================================
   RESPONSIVE MOBILE
====================================== */
@media (max-width: 650px) {
  .formations-page {
    padding: 24px 16px 40px;
  }
  .formations-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px 20px;
  }
  .formations-header h1 {
    font-size: 30px;
  }
  .formations-header__content p {
    font-size: 13px;
  }
  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .catalogue-heading h2 {
    font-size: 22px;
  }
  .formations-tools {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }
  .filter-box {
    align-items: center;
    justify-content: space-between;
  }
  .filter-box select {
    flex: 1;
    max-width: none;
  }
  .formations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .formation-card__image-wrapper {
    height: 210px;
  }
}
@media (max-width: 380px) {
  .formations-page {
    padding-right: 12px;
    padding-left: 12px;
  }
  .formation-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .formation-card__form {
    width: 100%;
  }
  .btn-inscription {
    width: 100%;
  }
}
/* FORMULAIRE CREATION FORMATION - EDUPLATFORM */
.formation-create-page {
  --fc-blue: #2563EB;
  --fc-navy: #0F172A;
  --fc-bg: #F8FAFC;
  --fc-white: #FFFFFF;
  --fc-text: #64748B;
  --fc-border: #E2E8F0;
  min-height: 100vh;
  padding: 50px 20px;
  background: var(--fc-bg);
  color: var(--fc-navy);
}

.formation-form-card {
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 35px;
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  background: var(--fc-white);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.formation-form-card h1 {
  margin: 0 0 10px;
  color: var(--fc-navy);
  font-size: 28px;
  font-weight: 800;
}

.formation-subtitle {
  margin: 0 0 30px;
  color: var(--fc-text);
  font-size: 13px;
  line-height: 1.7;
}

.formation-create-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.formation-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.formation-field label {
  color: var(--fc-navy);
  font-size: 13px;
  font-weight: 700;
}

.formation-input,
.formation-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  outline: none;
  background: var(--fc-white);
  color: var(--fc-navy);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.formation-input {
  min-height: 47px;
}

.formation-textarea {
  min-height: 130px;
  resize: vertical;
}

.formation-input:focus,
.formation-textarea:focus {
  border-color: var(--fc-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.formation-input::placeholder,
.formation-textarea::placeholder {
  color: #94A3B8;
}

.formation-file-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px dashed #93C5FD;
  border-radius: 9px;
  background: #F8FBFF;
  color: var(--fc-text);
  font-family: inherit;
  font-size: 12px;
}

.formation-file-input::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: #DBEAFE;
  color: var(--fc-blue);
  font-weight: 700;
  cursor: pointer;
}

.formation-field ul {
  margin: 0;
  padding: 0;
  color: #DC2626;
  font-size: 12px;
  list-style: none;
}

.formation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.formation-btn-primary,
.formation-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.formation-btn-primary {
  background: var(--fc-blue);
  color: var(--fc-white);
}

.formation-btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.formation-btn-secondary {
  border-color: var(--fc-border);
  background: var(--fc-white);
  color: var(--fc-text);
}

.formation-btn-secondary:hover {
  background: #F1F5F9;
  color: var(--fc-navy);
}

@media (max-width: 600px) {
  .formation-create-page {
    padding: 30px 14px;
  }
  .formation-form-card {
    padding: 23px 18px;
  }
  .formation-form-card h1 {
    font-size: 24px;
  }
  .formation-actions {
    flex-direction: column;
  }
  .formation-btn-primary,
  .formation-btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}
/* =========================================
   EDUPlatform - PAGE MES ÉTUDIANTS
   ========================================= */
:root {
  --etudiant-blue: #2563EB;
  --etudiant-dark: #0F172A;
  --etudiant-white: #FFFFFF;
  --etudiant-bg: #F8FAFC;
  --etudiant-text: #64748B;
  --etudiant-border: #E2E8F0;
  --etudiant-green: #10B981;
}

/* =========================================
   PAGE PRINCIPALE
   ========================================= */
.page {
  width: calc(100% - 260px);
  min-height: 100vh;
  margin-left: 260px;
  padding: 38px 42px;
  background: var(--etudiant-bg);
  color: var(--etudiant-dark);
  font-family: Arial, Helvetica, sans-serif;
}

.page * {
  box-sizing: border-box;
}

/* =========================================
   TITRE
   ========================================= */
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.heading-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 30px;
  background: #DBEAFE;
  color: var(--etudiant-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.heading h1 {
  margin: 0 0 10px;
  color: var(--etudiant-dark);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
}

.heading p {
  margin: 0;
  color: var(--etudiant-text);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================
   STATISTIQUES
   ========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 27px 28px;
  background: var(--etudiant-white);
  border: 1px solid var(--etudiant-border);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
}

.stat-label {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  color: var(--etudiant-text);
  font-size: 14px;
  font-weight: 600;
}

.stat-number {
  position: relative;
  z-index: 1;
  color: var(--etudiant-blue);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
}

/* =========================================
   PANEL DES INSCRIPTIONS
   ========================================= */
.panel {
  overflow: hidden;
  background: var(--etudiant-white);
  border: 1px solid var(--etudiant-border);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px 27px;
  border-bottom: 1px solid var(--etudiant-border);
}

.panel-header h2 {
  margin: 0 0 7px;
  color: var(--etudiant-dark);
  font-size: 19px;
  font-weight: 800;
}

.panel-header p {
  margin: 0;
  color: var(--etudiant-text);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================
   RECHERCHE
   ========================================= */
.search {
  width: min(100%, 340px);
  min-height: 45px;
  padding: 0 15px;
  border: 1px solid var(--etudiant-border);
  border-radius: 11px;
  outline: none;
  background: #FFFFFF;
  color: var(--etudiant-dark);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search::placeholder {
  color: #94A3B8;
}

.search:focus {
  border-color: var(--etudiant-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================================
   TABLEAU
   ========================================= */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

#studentsTable {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
  border-spacing: 0;
}

#studentsTable thead {
  background: #F8FAFC;
}

#studentsTable th {
  padding: 17px 22px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

#studentsTable td {
  padding: 19px 22px;
  border-bottom: 1px solid #F1F5F9;
  color: #475569;
  font-size: 13px;
  vertical-align: middle;
}

#studentsTable tbody tr {
  transition: background 0.2s ease;
}

#studentsTable tbody tr:hover {
  background: #F8FAFF;
}

#studentsTable tbody tr:last-child td {
  border-bottom: none;
}

/* Informations étudiant */
.student-name {
  margin-bottom: 6px;
  color: var(--etudiant-dark);
  font-size: 14px;
  font-weight: 750;
}

.student-email {
  color: var(--etudiant-text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Statut */
.status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 30px;
  background: #D1FAE5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================
   ÉTAT VIDE
   ========================================= */
.empty {
  padding: 55px 25px;
  color: var(--etudiant-text);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 9px;
  color: var(--etudiant-dark);
  font-size: 19px;
  font-weight: 800;
}

.empty p {
  margin: 0;
}

#noSearchResult[hidden] {
  display: none !important;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 28px 10px 10px;
  color: var(--etudiant-text);
  font-size: 12px;
  text-align: center;
}

/* =========================================
   RESPONSIVE TABLETTE
   ========================================= */
@media (max-width: 1024px) {
  .page {
    padding: 30px 25px;
  }
  .panel-header {
    padding: 22px;
  }
  #studentsTable th,
  #studentsTable td {
    padding: 15px;
  }
}
/* =========================================
   RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
  .page {
    width: 100%;
    margin-left: 0;
    padding: 25px 18px;
  }
  .heading {
    margin-bottom: 23px;
  }
  .stats {
    gap: 14px;
  }
  .stat-card {
    padding: 22px;
  }
  .stat-number {
    font-size: 32px;
  }
  .panel-header {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }
  .search {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .heading h1 {
    font-size: 27px;
  }
  .heading p {
    font-size: 13px;
  }
  .stat-card {
    padding: 20px;
  }
  .empty {
    padding: 40px 18px;
  }
}
/* Tableau Mes étudiants intégré au dashboard */
.trainer-student-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 22px;
}

.trainer-student-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.trainer-student-table th,
.trainer-student-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
  vertical-align: middle;
}

.trainer-student-table th {
  background: #F8FAFC;
  color: #64748B;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.trainer-student-table td strong,
.trainer-student-table td small {
  display: block;
}

.trainer-student-table td strong {
  color: #0F172A;
  margin-bottom: 5px;
}

.trainer-student-table td small {
  color: #64748B;
  overflow-wrap: anywhere;
}

.trainer-student-search {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  outline: none;
  font-size: 14px;
}

.trainer-student-search:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#trainerStudentNoResult {
  color: #64748B;
  padding: 14px 0;
}

#mes-etudiants {
  scroll-margin-top: 25px;
}

@media (max-width: 768px) {
  .trainer-student-table-wrapper {
    margin-top: 15px;
  }
  .trainer-student-table th,
  .trainer-student-table td {
    padding: 12px 10px;
  }
}
/* =========================================
   EDUPLATFORM - SIDEBAR STYLES
========================================= */
/* =========================================
   ADMIN SIDEBAR
========================================= */
/* Admin sidebar styles are managed separately. */
/* =========================================
   STUDENT LEARNING PAGE
========================================= */
/* Sidebar position is managed by _dashformateur.scss.
   Do not redefine .trainer-sidebar here. */
.student-learning-page {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  padding: 35px 40px 60px;
  box-sizing: border-box;
}

/* Center the learning page sections */
.student-learning-page > section,
.student-learning-page > .learning-header {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .student-learning-page {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }
}
/* SIDEBAR FIXE */
.trainer-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

/* CONTENU PRINCIPAL */
.trainer-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
}

/* ==================================
   FORMATEUR DASHBOARD LAYOUT
================================== */
.trainer-dashboard {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ==================================
   FORMATEUR DASHBOARD
================================== */
/* =========================================
   EDUPlatform - GESTION DES LEÇONS
========================================= */
.lessons-page {
  display: block;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 30px;
  color: #0F172A;
  box-sizing: border-box;
  overflow: visible;
}

.lessons-page *,
.lessons-page *::before,
.lessons-page *::after {
  box-sizing: border-box;
}

/* HEADER */
.lessons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
  margin-bottom: 30px;
}

.lessons-header > div {
  flex: 1 1 300px;
  min-width: 0;
}

.lessons-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.lessons-header h1 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 30px;
  font-weight: 800;
}

.lessons-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.6;
}

.formation-name {
  margin: 12px 0 0;
  color: #2563EB;
  font-size: 17px;
  font-weight: 700;
}

/* BUTTONS */
.lesson-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 19px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lesson-btn-primary {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.lesson-btn-primary:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.lesson-btn-light {
  background: #F1F5F9;
  color: #475569;
}

.lesson-btn-light:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* SUMMARY */
.lessons-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  min-width: 230px;
  margin-bottom: 25px;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 20px;
}

.lessons-summary span {
  display: block;
  margin-bottom: 5px;
  color: #64748B;
  font-size: 12px;
}

.lessons-summary strong {
  color: #0F172A;
  font-size: 25px;
  font-weight: 800;
}

/* LESSON LIST */
.lessons-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}

.lesson-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  gap: 20px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  transition: all 0.25s ease;
}

.lesson-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.07);
  transform: translateY(-2px);
}

.lesson-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 19px;
  font-weight: 800;
}

.lesson-info {
  flex: 1 1 250px;
  min-width: 0;
}

.lesson-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #2563EB;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.lesson-info h3 {
  margin: 0 0 7px;
  color: #0F172A;
  font-size: 17px;
  font-weight: 750;
}

.lesson-info p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lesson-video-status,
.lesson-no-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
}

.lesson-video-status {
  color: #059669;
}

.lesson-no-video {
  color: #94A3B8;
}

/* ACTIONS */
.lesson-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-actions form {
  display: inline-flex;
  margin: 0;
}

.lesson-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-action-view {
  background: #ECFDF5;
  color: #059669;
}

.lesson-action-view:hover {
  background: #D1FAE5;
  color: #047857;
}

.lesson-action-edit {
  background: #EFF6FF;
  color: #2563EB;
}

.lesson-action-edit:hover {
  background: #DBEAFE;
  color: #1D4ED8;
}

.lesson-action-delete {
  background: #FEF2F2;
  color: #DC2626;
}

.lesson-action-delete:hover {
  background: #FEE2E2;
  color: #B91C1C;
}

/* EMPTY STATE */
.lessons-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  padding: 55px 25px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 29px;
}

.lessons-empty h3 {
  margin: 0 0 10px;
  color: #0F172A;
  font-size: 19px;
  font-weight: 800;
}

.lessons-empty p {
  max-width: 430px;
  margin: 0 auto 22px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.7;
}

/* FORM CARD */
.lesson-form-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 30px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.045);
}

.lesson-form-card form {
  width: 100%;
}

.lesson-form-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E2E8F0;
}

.form-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 20px;
}

.lesson-form-heading h2 {
  margin: 0 0 6px;
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
}

.lesson-form-heading p {
  margin: 0;
  color: #64748B;
  font-size: 12px;
}

/* FORM FIELDS */
.lesson-form-group {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 23px;
}

.lesson-form-group label:not(.lesson-upload-zone) {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.lesson-input,
.lesson-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  outline: none;
  background: #FFFFFF;
  color: #0F172A;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

.lesson-input {
  min-height: 47px;
}

.lesson-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.lesson-input:focus,
.lesson-textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lesson-form-group small {
  display: block;
  margin-top: 7px;
  color: #94A3B8;
  font-size: 11px;
}

/* VIDEO UPLOAD */
.lesson-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 175px;
  padding: 25px;
  border: 2px dashed #BFDBFE;
  border-radius: 12px;
  background: #F8FAFF;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lesson-upload-zone:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.lesson-upload-zone > i {
  color: #2563EB;
  font-size: 30px;
}

.lesson-upload-zone strong {
  color: #0F172A;
  font-size: 14px;
}

.lesson-upload-zone span {
  max-width: 100%;
  color: #64748B;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.lesson-upload-zone #video-filename {
  color: #2563EB;
  font-weight: 700;
}

/* CURRENT VIDEO */
.lesson-current-video {
  width: 100%;
  min-width: 0;
  margin-bottom: 25px;
  padding: 17px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
}

.lesson-current-video > label {
  display: block;
  margin-bottom: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.lesson-current-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 350px;
  border-radius: 9px;
  background: #0F172A;
  object-fit: contain;
}

.lesson-current-video p {
  margin: 10px 0 0;
  color: #64748B;
  font-size: 11px;
  overflow-wrap: anywhere;
}

/* FORM FOOTER */
.lesson-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #E2E8F0;
}

/* ALERTS */
.lesson-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-bottom: 20px;
  padding: 14px 17px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lesson-alert-success {
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  color: #047857;
}

.lesson-alert-danger {
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
}

/* BACK LINK */
.lessons-bottom {
  margin-top: 28px;
}

.lesson-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #64748B;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.lesson-back-link:hover {
  color: #2563EB;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  .lessons-page {
    padding: 22px;
  }
  .lesson-card {
    align-items: flex-start;
  }
  .lesson-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 72px;
  }
}
@media (max-width: 600px) {
  .lessons-page {
    padding: 15px;
  }
  .lessons-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .lessons-header h1 {
    font-size: 24px;
  }
  .lessons-header > .lesson-btn {
    width: 100%;
  }
  .lesson-card {
    gap: 13px;
    padding: 16px;
  }
  .lesson-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .lesson-info {
    flex: 1 1 calc(100% - 55px);
  }
  .lesson-actions {
    padding-left: 0;
  }
  .lesson-action {
    padding: 9px 10px;
  }
  .lesson-form-card {
    padding: 19px;
  }
  .lesson-form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .lesson-form-footer .lesson-btn {
    width: 100%;
  }
  .lessons-summary {
    width: 100%;
  }
}
/* =========================================
   POSITION CENTRÉE - APRÈS LA SIDEBAR
   Thème inchangé
========================================= */
.lessons-page {
  position: relative !important;
  /* Largeur disponible après la sidebar */
  width: min(1200px, 100% - 245px) !important;
  /* Centrage dans l'espace situé à droite de la sidebar */
  margin-left: max(245px, (100% - 1200px + 245px) / 2) !important;
  margin-right: auto !important;
  min-width: 0;
  padding: 30px;
  box-sizing: border-box;
}

/* Tablettes et petits écrans */
@media (max-width: 768px) {
  .lessons-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px !important;
  }
}
@media (max-width: 600px) {
  .lessons-page {
    padding: 15px !important;
  }
}
/* ================================
   PAGE VIDÉO
================================ */
.video-page {
  width: 100%;
  max-width: 1000px;
  min-height: 80vh;
  margin: 0 auto;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ================================
   EN-TÊTE
================================ */
.video-page__header {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.video-page__label {
  display: inline-block;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.video-page__header h1 {
  color: #0F172A;
  font-size: 30px;
  font-weight: 700;
  margin: 10px 0;
}

.video-page__header p {
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
  max-width: 700px;
  margin: 10px auto 0;
}

/* ================================
   LECTEUR VIDÉO
================================ */
.video-page__player {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  background: #0F172A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
}

.video-page__player video {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 auto;
}

/* ================================
   BOUTON RETOUR
================================ */
.video-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 0;
  padding: 13px 24px;
  background: #2563EB;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.video-page__back:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .video-page {
    padding: 30px 15px;
    min-height: 70vh;
  }
  .video-page__header h1 {
    font-size: 23px;
  }
  .video-page__header p {
    font-size: 14px;
  }
  .video-page__player {
    border-radius: 10px;
  }
  .video-page__player video {
    max-height: 350px;
  }
  .video-page__back {
    margin-top: 22px;
  }
}
/* =================================
   BIBLIOTHEQUE DE VIDEOS
================================= */
.videos-library {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* HEADER */
.videos-library__header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
  text-align: center;
}

.videos-library__eyebrow {
  display: inline-block;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.videos-library__header h1 {
  color: #0F172A;
  font-size: 30px;
  font-weight: 700;
  margin: 12px 0;
}

.videos-library__header p {
  color: #64748B;
  font-size: 14px;
  margin: 0 auto;
  line-height: 1.6;
}

/* TOTAL */
.videos-library__total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 16px 25px;
  background: #EFF6FF;
  border-radius: 12px;
  color: #2563EB;
  min-width: 190px;
}

.videos-library__total > i {
  font-size: 28px;
}

.videos-library__total strong {
  display: block;
  font-size: 22px;
}

.videos-library__total span {
  font-size: 12px;
  color: #64748B;
}

/* SEARCH */
.videos-library__search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 35px;
  flex-wrap: wrap;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
  padding: 0 16px;
  height: 48px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
}

.search-input i {
  color: #94A3B8;
}

.search-input input {
  width: 100%;
  border: none;
  outline: none;
  color: #0F172A;
  font-size: 14px;
}

.videos-library__search button {
  height: 48px;
  padding: 0 22px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.videos-library__search button:hover {
  background: #1D4ED8;
}

.search-reset {
  color: #64748B;
  font-size: 13px;
  text-decoration: none;
}

/* GRID */
.videos-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 950px;
  margin: 0 auto;
}

/* VIDEO CARD */
.video-card {
  overflow: hidden;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  transition: 0.3s ease;
  text-align: center;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.video-card__preview {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #0F172A, #1E3A8A);
  color: #FFFFFF;
}

.video-card__preview i {
  font-size: 52px;
  color: #60A5FA;
}

.video-card__preview span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* CONTENT */
.video-card__content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card__formation {
  display: inline-block;
  margin-bottom: 12px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 600;
}

.video-card__content h3 {
  color: #0F172A;
  font-size: 18px;
  margin: 0 0 10px;
}

.video-card__content p {
  min-height: 40px;
  max-width: 400px;
  margin: 0 auto;
  color: #64748B;
  font-size: 13px;
  line-height: 1.6;
}

/* FOOTER */
.video-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #F1F5F9;
  padding-top: 16px;
  margin-top: 15px;
  width: 100%;
}

.video-card__footer span {
  color: #64748B;
  font-size: 12px;
}

.video-card__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2563EB;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.video-card__footer a:hover {
  color: #1D4ED8;
}

/* EMPTY STATE */
.videos-library__empty {
  max-width: 850px;
  margin: 0 auto;
  padding: 70px 20px;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
}

.empty-icon {
  color: #94A3B8;
  font-size: 45px;
  margin-bottom: 20px;
}

.videos-library__empty h2 {
  color: #0F172A;
  font-size: 20px;
}

.videos-library__empty p {
  color: #64748B;
  font-size: 14px;
}

.videos-library__empty a {
  display: inline-block;
  margin-top: 15px;
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .videos-library__grid {
    grid-template-columns: 1fr;
    max-width: 550px;
  }
}
@media (max-width: 600px) {
  .videos-library {
    padding: 25px 15px;
  }
  .videos-library__header h1 {
    font-size: 23px;
  }
  .videos-library__search {
    align-items: stretch;
    flex-direction: column;
  }
  .videos-library__search button {
    width: 100%;
  }
  .video-card__footer {
    flex-direction: column;
  }
}
/* Lecteur vidéo */
.video-card__preview {
  width: 100%;
  height: 220px;
  background: #0F172A;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.video-card__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-card__no-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94A3B8;
}

.video-card__no-video i {
  font-size: 38px;
}

.video-card__no-video span {
  font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
  .video-card__preview {
    height: 190px;
  }
}
/* ========================================
   CATALOGUE PUBLIC - EDUPLATFORM
======================================== */
.public-formations {
  min-height: 100vh;
  padding: 65px 6%;
  background: #F8FAFC;
  color: #0F172A;
}

/* HERO */
.formations-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 55px;
}

.formations-eyebrow {
  display: inline-block;
  padding: 8px 17px;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.formations-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 15px;
  line-height: 1.2;
}

.formations-hero h1 span {
  color: #2563EB;
}

.formations-hero p {
  color: #64748B;
  font-size: 16px;
  line-height: 1.7;
}

/* CONTAINER */
.catalogue-container {
  max-width: 1250px;
  margin: auto;
}

.catalogue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.catalogue-heading h2 {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 8px;
}

.catalogue-heading p {
  color: #64748B;
  margin: 0;
  font-size: 14px;
}

.formations-total {
  background: #EFF6FF;
  color: #2563EB;
  padding: 10px 17px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* SEARCH AND FILTER */
.formations-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 35px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.search-field,
.filter-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  background: #FFFFFF;
  color: #64748B;
}

.search-field {
  flex: 1;
  min-width: 180px;
}

.filter-field {
  min-width: 220px;
}

.search-field i,
.filter-field i {
  color: #2563EB;
}

.search-field input,
.filter-field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-size: 13px;
}

.filter-field select {
  cursor: pointer;
}

.btn-search,
.btn-reset {
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.btn-search {
  border: none;
  background: #2563EB;
  color: #FFFFFF;
}

.btn-search:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
}

.btn-reset {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
}

.btn-reset:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* FORMATION GRID */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.public-formation-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.public-formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09);
  border-color: #BFDBFE;
}

/* IMAGE */
.formation-image {
  width: 100%;
  height: 205px;
  background: #EFF6FF;
  overflow: hidden;
}

.formation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.public-formation-card:hover .formation-image img {
  transform: scale(1.05);
}

.formation-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2563EB;
  font-size: 55px;
}

/* CARD CONTENT */
.formation-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.formation-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 13px;
}

.formation-card-content h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
  margin: 0 0 12px;
  color: #0F172A;
  overflow-wrap: anywhere;
}

.formation-card-content > p {
  font-size: 13px;
  line-height: 1.7;
  color: #64748B;
  margin: 0 0 18px;
  flex: 1;
}

.formation-instructor {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 12px;
}

.formation-instructor i {
  color: #2563EB;
}

/* DETAIL BUTTON */
.btn-details {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  background: #2563EB;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-details:hover {
  background: #1D4ED8;
}

.btn-details i {
  transition: transform 0.3s;
}

.btn-details:hover i {
  transform: translateX(5px);
}

/* EMPTY STATE */
.formations-empty {
  text-align: center;
  padding: 75px 20px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 15px;
}

.formations-empty > i {
  font-size: 45px;
  color: #94A3B8;
  margin-bottom: 18px;
}

.formations-empty h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.formations-empty p {
  color: #64748B;
  font-size: 14px;
}

/* PAGINATION */
.formations-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 45px;
}

.formations-pagination a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  background: #FFFFFF;
  color: #64748B;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.formations-pagination a:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.formations-pagination a.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .formations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .formations-search {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filter-field {
    flex: 1;
  }
}
@media (max-width: 650px) {
  .public-formations {
    padding: 45px 5%;
  }
  .formations-hero {
    margin-bottom: 38px;
  }
  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .formations-grid {
    grid-template-columns: 1fr;
  }
  .formations-search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .search-field,
  .filter-field {
    width: 100%;
    flex: auto;
    box-sizing: border-box;
  }
  .btn-search,
  .btn-reset {
    width: 100%;
    box-sizing: border-box;
  }
  .formation-image {
    height: 220px;
  }
  .formations-pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }
}
/* =====================================
   DETAIL FORMATION - COMPACT DESIGN
===================================== */
.formation-detail-compact {
  min-height: 75vh;
  background: #f8fafc;
  padding: 45px 20px 65px;
}

.compact-back {
  max-width: 1050px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.compact-back:hover {
  color: #2563eb;
  transform: translateX(-3px);
}

.compact-card {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: 390px 1fr;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

/* IMAGE */
.compact-image {
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  overflow: hidden;
}

.compact-image img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.compact-card:hover .compact-image img {
  transform: scale(1.04);
}

.compact-placeholder {
  min-height: 440px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 75px;
}

.compact-image-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CONTENT */
.compact-content {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-eyebrow {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.compact-content h1 {
  color: #0f172a;
  font-size: 30px;
  line-height: 1.3;
  margin: 15px 0 22px;
  font-weight: 800;
}

.compact-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-author-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
}

.compact-author div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-author small {
  color: #94a3b8;
  font-size: 11px;
}

.compact-author strong {
  color: #334155;
  font-size: 13px;
}

.compact-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 25px 0;
}

.compact-content h2 {
  color: #0f172a;
  font-size: 18px;
  margin-bottom: 12px;
}

.compact-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.compact-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.compact-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.compact-features i {
  color: #2563eb;
}

.compact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.compact-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .compact-card {
    grid-template-columns: 1fr;
  }
  .compact-image {
    min-height: 260px;
  }
  .compact-image img {
    min-height: 260px;
  }
  .compact-placeholder {
    min-height: 260px;
  }
  .compact-content {
    padding: 28px;
  }
}
@media (max-width: 480px) {
  .formation-detail-compact {
    padding: 25px 14px 40px;
  }
  .compact-content {
    padding: 22px;
  }
  .compact-content h1 {
    font-size: 24px;
  }
  .compact-features {
    flex-direction: column;
  }
  .compact-button {
    width: 100%;
  }
}
/* ==================================
   DETAIL FORMATION AVEC VIDEO
================================== */
.formation-detail-compact {
  max-width: 1100px;
  margin: 45px auto;
  padding: 0 20px;
}

.compact-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: 0.3s;
}

.compact-back:hover {
  color: #2563eb;
}

.compact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

/* VIDEO / IMAGE */
.compact-image {
  position: relative;
  min-height: 350px;
  background: #0f172a;
  overflow: hidden;
}

.compact-image img,
.compact-image video {
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: block;
  object-fit: cover;
}

.compact-image video {
  object-fit: contain;
  background: #0f172a;
}

.compact-placeholder {
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 65px;
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.compact-image-label {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 9px 13px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* CONTENT */
.compact-content {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-eyebrow {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.compact-content h1 {
  color: #0f172a;
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 22px;
}

.compact-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-author-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.compact-author small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.compact-author strong {
  color: #0f172a;
  font-size: 14px;
}

.compact-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 22px 0;
}

.compact-content h2 {
  font-size: 17px;
  color: #0f172a;
  margin: 0 0 10px;
}

.compact-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.compact-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 17px;
}

.compact-features span {
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  color: #475569;
  font-size: 11px;
}

.compact-features i {
  color: #2563eb;
  margin-right: 4px;
}

.video-available,
.video-unavailable {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}

.video-available {
  color: #10b981;
}

.video-unavailable {
  color: #64748b;
}

.compact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 18px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.compact-button:hover {
  background: #1d4ed8;
  color: white;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .formation-detail-compact {
    margin: 25px auto;
  }
  .compact-card {
    grid-template-columns: 1fr;
  }
  .compact-image,
  .compact-image img,
  .compact-image video {
    min-height: 230px;
  }
  .compact-content {
    padding: 25px 20px;
  }
  .compact-content h1 {
    font-size: 23px;
  }
}
/* ==========================================
   ACTIONS - INSCRIPTION ET EXPLORATION
========================================== */
.formation-detail-compact .formation-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
  margin-top: 28px !important;
}

.formation-detail-compact .formation-inscription-action {
  display: flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
}

/* Formulaire inscription */
.formation-detail-compact .formation-inscription-action form {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

/* Bouton inscription */
.formation-detail-compact .formation-inscription-action .btn-inscription {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 260px;
  min-height: 52px;
  padding: 14px 20px !important;
  margin: 0 !important;
  border: none;
  border-radius: 12px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.formation-detail-compact .formation-inscription-action .btn-inscription:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
}

.formation-detail-compact .btn-inscription-arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.formation-detail-compact .btn-inscription:hover .btn-inscription-arrow {
  transform: translateX(4px);
}

/* Bouton déjà inscrit */
.formation-detail-compact .formation-inscrit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  background: #ECFDF5;
  color: #047857;
  font-weight: 700;
  cursor: not-allowed;
}

/* Bouton explorer */
.formation-detail-compact .compact-explorer-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 52px;
  padding: 14px 22px !important;
  margin: 0 !important;
  border: 1px solid #2563EB;
  border-radius: 12px;
  background: #FFFFFF;
  color: #2563EB;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.formation-detail-compact .compact-explorer-button:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
  .formation-detail-compact .formation-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .formation-detail-compact .formation-inscription-action,
  .formation-detail-compact .formation-inscription-action form,
  .formation-detail-compact .formation-inscription-action .btn-inscription,
  .formation-detail-compact .compact-explorer-button {
    width: 100% !important;
    max-width: 100%;
  }
}
/* =====================================================
   EDUPLATFORM - MES FORMATIONS
   CSS STRICTEMENT LIMITÉ À CETTE PAGE
   ===================================================== */
/* =====================================================
   1. CONTENEUR PRINCIPAL
   ===================================================== */
.trainer-main:has(.ep-courses-page) {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ep-courses-page {
  display: block;
  width: 100%;
  max-width: 1500px;
  min-width: 0;
  min-height: 100vh;
  /* Centrage dans l'espace disponible */
  margin: 0 auto;
  padding: 35px 40px 55px;
  box-sizing: border-box;
  color: #0F172A;
  font-family: inherit;
}

/* =====================================================
   2. EN-TÊTE
   ===================================================== */
.ep-courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: 100%;
  margin: 0 auto 30px;
}

.ep-courses-header-info {
  flex: 1;
  min-width: 0;
}

.ep-courses-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ep-courses-header h1 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
}

.ep-courses-header p {
  margin: 0;
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
}

/* =====================================================
   3. BOUTON CRÉER
   ===================================================== */
.ep-courses-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ep-courses-create:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* =====================================================
   4. NOTIFICATIONS
   ===================================================== */
.ep-courses-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 14px;
}

.ep-courses-notice-success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.ep-courses-notice-warning {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.ep-courses-notice-danger {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* =====================================================
   5. BARRE DE RECHERCHE
   ===================================================== */
.ep-courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0 auto 25px;
}

.ep-courses-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ep-courses-search:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ep-courses-search i {
  flex-shrink: 0;
  color: #64748B;
}

.ep-courses-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-size: 14px;
}

.ep-courses-search input::placeholder {
  color: #94A3B8;
}

.ep-courses-total {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 14px;
  white-space: nowrap;
}

/* =====================================================
   6. GRILLE DES FORMATIONS
   ===================================================== */
.ep-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* =====================================================
   7. CARTE FORMATION
   ===================================================== */
.ep-courses-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ep-courses-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

/* =====================================================
   8. IMAGE FORMATION
   ===================================================== */
.ep-courses-image {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: #F1F5F9;
}

.ep-courses-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-courses-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 45px;
}

.ep-courses-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
}

/* =====================================================
   9. INFORMATIONS
   ===================================================== */
.ep-courses-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
}

.ep-courses-title {
  margin: 0 0 10px;
  color: #0F172A;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ep-courses-description {
  margin: 0 0 20px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* =====================================================
   10. BOUTONS D'ACTION
   ===================================================== */
.ep-courses-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #E2E8F0;
}

.ep-courses-actions a,
.ep-courses-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ep-courses-action-edit {
  background: #EFF6FF;
  color: #2563EB;
}

.ep-courses-action-edit:hover {
  background: #DBEAFE;
  color: #1D4ED8;
}

.ep-courses-action-lessons {
  background: #ECFDF5;
  color: #059669;
}

.ep-courses-action-lessons:hover {
  background: #D1FAE5;
  color: #047857;
}

.ep-courses-delete-form {
  margin: 0;
}

.ep-courses-action-delete {
  background: #FEF2F2;
  color: #DC2626;
}

.ep-courses-action-delete:hover {
  background: #FEE2E2;
  color: #B91C1C;
}

/* =====================================================
   11. AUCUN RÉSULTAT DE RECHERCHE
   ===================================================== */
.ep-courses-search-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 35px 20px;
  color: #64748B;
  text-align: center;
  box-sizing: border-box;
}

.ep-courses-search-empty i {
  color: #2563EB;
  font-size: 28px;
}

.ep-courses-search-empty h3,
.ep-courses-search-empty p {
  margin: 0;
}

/* =====================================================
   12. AUCUNE FORMATION
   ===================================================== */
.ep-courses-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 650px;
  margin: 30px auto;
  padding: 55px 25px;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  background: #FFFFFF;
  text-align: center;
  box-sizing: border-box;
}

.ep-courses-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 30px;
}

.ep-courses-empty h2 {
  margin: 0 0 10px;
  color: #0F172A;
  font-size: 21px;
}

.ep-courses-empty p {
  margin: 0 0 20px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
}

/* =====================================================
   13. TABLET
   ===================================================== */
@media (max-width: 1100px) {
  .ep-courses-page {
    padding: 30px 25px 45px;
  }
  .ep-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
/* =====================================================
   14. PETIT ÉCRAN
   ===================================================== */
@media (max-width: 768px) {
  .ep-courses-page {
    padding: 25px 18px 40px;
  }
  .ep-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =====================================================
   15. MOBILE
   ===================================================== */
@media (max-width: 600px) {
  .ep-courses-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .ep-courses-header h1 {
    font-size: 25px;
  }
  .ep-courses-header p {
    font-size: 14px;
  }
  .ep-courses-create {
    width: 100%;
    box-sizing: border-box;
  }
  .ep-courses-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ep-courses-search {
    max-width: 100%;
  }
  .ep-courses-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .ep-courses-image {
    height: 200px;
  }
  .ep-courses-actions {
    gap: 8px;
  }
}
/* =====================================================
   CORRECTION : ESPACE RÉSERVÉ AU SIDEBAR FORMATEUR
   ===================================================== */
.trainer-dashboard > .ep-courses-page {
  position: relative;
  width: calc(100% - 260px);
  max-width: none;
  min-width: 0;
  margin-left: 260px;
  margin-right: 0;
  box-sizing: border-box;
}

/* Tablette et mobile */
@media (max-width: 768px) {
  .trainer-dashboard > .ep-courses-page {
    width: 100%;
    margin-left: 0;
  }
}
/* =========================================
   PAGE MODIFICATION FORMATION - CENTRÉE
========================================= */
.formation-edit-page {
  width: calc(100% - 40px);
  max-width: 850px;
  margin: 0 auto;
  padding: 35px 20px 50px;
  color: #0F172A;
  box-sizing: border-box;
}

/* En-tête */
.formation-edit-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 30px;
}

.formation-edit-subtitle {
  display: inline-block;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}

.formation-edit-header h1 {
  font-size: 28px;
  font-weight: 750;
  margin: 0 0 8px;
  color: #0F172A;
}

.formation-edit-header p {
  color: #64748B;
  font-size: 14px;
  margin: 0;
}

/* Bouton retour */
.btn-back-formations {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  background: #FFFFFF;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-back-formations:hover {
  background: #F8FAFC;
  color: #2563EB;
  border-color: #2563EB;
}

/* Carte formulaire centrée */
.formation-edit-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.formation-edit-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  margin-bottom: 25px;
  border-bottom: 1px solid #E2E8F0;
}

.edit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #2563EB;
  border-radius: 12px;
  font-size: 20px;
}

.formation-edit-card-header h2 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.formation-edit-card-header p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

/* Formulaire */
.formation-edit-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.edit-form-group label,
.current-image-section label {
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.edit-form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.edit-form-control:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.edit-textarea {
  min-height: 140px;
  resize: vertical;
}

.edit-file-control {
  width: 100%;
  padding: 12px;
  border: 1px dashed #CBD5E1;
  border-radius: 9px;
  background: #F8FAFC;
  color: #475569;
  font-size: 13px;
  box-sizing: border-box;
}

.edit-file-control::file-selector-button {
  padding: 9px 14px;
  margin-right: 12px;
  border: none;
  border-radius: 7px;
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
  cursor: pointer;
}

.edit-help-text {
  color: #94A3B8;
  font-size: 12px;
}

/* Image actuelle */
.current-image-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.current-formation-image {
  width: 220px;
  height: 135px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

/* Erreurs */
.form-error {
  color: #DC2626;
  font-size: 12px;
}

/* Actions */
.formation-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 5px;
  border-top: 1px solid #E2E8F0;
}

.btn-edit-cancel,
.btn-edit-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-edit-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.btn-edit-cancel:hover {
  background: #E2E8F0;
}

.btn-edit-save {
  background: #2563EB;
  color: #FFFFFF;
  border: 1px solid #2563EB;
}

.btn-edit-save:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .formation-edit-page {
    width: 100%;
    padding: 20px 15px 35px;
  }
  .formation-edit-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .formation-edit-header h1 {
    font-size: 23px;
  }
  .formation-edit-card {
    padding: 20px 16px;
  }
  .formation-edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-edit-cancel,
  .btn-edit-save {
    width: 100%;
    box-sizing: border-box;
  }
  .current-formation-image {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 480px) {
  .formation-edit-card-header {
    align-items: flex-start;
  }
  .formation-edit-header h1 {
    font-size: 21px;
  }
  .btn-back-formations {
    width: fit-content;
  }
}
/* =========================================
   EDUPLATFORM - MON ABONNEMENT
========================================= */
.abonnement-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  color: #0F172A;
  font-family: Arial, sans-serif;
}

/* HEADER */
.abonnement-header {
  margin-bottom: 40px;
}

.abonnement-label {
  display: inline-block;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.abonnement-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.abonnement-header p,
.section-heading p {
  color: #64748B;
  line-height: 1.7;
}

/* ALERTS */
.alert {
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* SECTION */
.abonnement-section,
.history-section {
  margin-bottom: 50px;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* PLANS */
.plans-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 850px;
}

.plan-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.plan-featured {
  border: 2px solid #2563EB;
}

.plan-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
}

.plan-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 23px;
  margin-bottom: 20px;
}

.plan-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #2563EB;
}

.plan-price strong {
  font-size: 32px;
  font-weight: 800;
}

.plan-price span {
  font-size: 16px;
  font-weight: 700;
}

.plan-duration {
  color: #64748B;
  font-size: 14px;
  margin: 8px 0 25px;
}

.plan-description {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #475569;
  font-size: 14px;
}

.plan-description i {
  color: #10B981;
}

.plan-button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.plan-button:hover {
  background: #1D4ED8;
}

.plan-button i {
  margin-left: 8px;
}

/* HISTORY */
.history-table-wrapper {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.history-table th,
.history-table td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
  font-size: 14px;
}

.history-table th {
  background: #F8FAFC;
  color: #64748B;
  font-weight: 700;
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: #D1FAE5;
  color: #047857;
}

.status-pending {
  background: #FEF3C7;
  color: #B45309;
}

.status-other {
  background: #F1F5F9;
  color: #475569;
}

/* EMPTY */
.empty-history {
  padding: 45px 20px;
  text-align: center;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
}

.empty-history i {
  font-size: 35px;
  color: #94A3B8;
  margin-bottom: 15px;
}

.empty-history h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.empty-history p {
  color: #64748B;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .abonnement-page {
    padding: 25px 15px;
  }
  .abonnement-header h1 {
    font-size: 26px;
  }
  .plans-container {
    grid-template-columns: 1fr;
  }
  .plan-card {
    padding: 25px 20px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
}
/* =========================================
   EDUPlatform - Gestion des abonnements
========================================= */
.admin-abonnements {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px;
  color: #0F172A;
}

/* EN-TÊTE */
.abonnement-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.abonnement-admin-label {
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.abonnement-admin-header h1 {
  margin: 10px 0;
  font-size: 29px;
  font-weight: 850;
}

.abonnement-admin-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.6;
}

.back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.back-dashboard:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

/* MESSAGES */
.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.admin-alert-success {
  background: #D1FAE5;
  color: #065F46;
}

.admin-alert-warning {
  background: #FEF3C7;
  color: #92400E;
}

.admin-alert-danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* STATISTIQUES */
.abonnement-admin-stat {
  display: flex;
  align-items: center;
  gap: 17px;
  width: fit-content;
  min-width: 230px;
  padding: 20px 25px;
  margin-bottom: 30px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.abonnement-admin-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 19px;
}

.abonnement-admin-stat span {
  display: block;
  margin-bottom: 5px;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}

.abonnement-admin-stat strong {
  color: #0F172A;
  font-size: 25px;
  font-weight: 850;
}

/* SECTION TABLEAU */
.abonnement-admin-section {
  padding: 25px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 17px;
  box-shadow: 0 7px 25px rgba(15, 23, 42, 0.04);
}

.abonnement-admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.abonnement-admin-section-heading h2 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 800;
}

.abonnement-admin-section-heading p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

.abonnement-total {
  padding: 8px 13px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* TABLEAU */
.abonnement-admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.abonnement-admin-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
}

.abonnement-admin-table th {
  padding: 15px 13px;
  background: #F8FAFC;
  color: #64748B;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-align: left;
  white-space: nowrap;
}

.abonnement-admin-table th:first-child {
  border-radius: 9px 0 0 9px;
}

.abonnement-admin-table th:last-child {
  border-radius: 0 9px 9px 0;
}

.abonnement-admin-table td {
  padding: 17px 13px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
  font-size: 12px;
  vertical-align: middle;
}

.abonnement-admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* UTILISATEUR */
.abonnement-student {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.abonnement-student-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 850;
}

.abonnement-student-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.abonnement-student-info strong {
  color: #0F172A;
  font-size: 12px;
}

.abonnement-student-info span {
  color: #64748B;
  font-size: 11px;
}

/* FORMULE ET MONTANT */
.abonnement-formule {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 7px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
}

.abonnement-montant {
  color: #0F172A;
  font-size: 12px;
  white-space: nowrap;
}

.abonnement-period {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.abonnement-no-period {
  color: #94A3B8;
  font-size: 11px;
}

/* STATUT */
.abonnement-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.abonnement-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  background: #D1FAE5;
  color: #047857;
}

.status-pending {
  background: #FEF3C7;
  color: #B45309;
}

.status-refused {
  background: #FEE2E2;
  color: #B91C1C;
}

.status-other {
  background: #F1F5F9;
  color: #475569;
}

/* ACTIONS */
.abonnement-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 105px;
}

.abonnement-actions form {
  margin: 0;
}

.btn-accepter,
.btn-refuser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-accepter {
  background: #D1FAE5;
  color: #047857;
}

.btn-accepter:hover {
  background: #10B981;
  color: #FFFFFF;
}

.btn-refuser {
  background: #FEE2E2;
  color: #B91C1C;
}

.btn-refuser:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.abonnement-treated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
}

/* FUTURS DÉTAILS DE PAIEMENT */
.abonnement-payment-details {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.abonnement-payment-details p {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
}

.abonnement-payment-details strong {
  color: #0F172A;
}

.abonnement-proof-image {
  display: block;
  width: 95px;
  height: 70px;
  margin-top: 5px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: zoom-in;
  transition: 0.2s ease;
}

.abonnement-proof-image:hover {
  border-color: #2563EB;
  transform: scale(1.04);
}

.abonnement-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.abonnement-proof-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.abonnement-no-proof {
  color: #DC2626;
  font-size: 11px;
  font-weight: 600;
}

/* AUCUNE DEMANDE */
.abonnement-empty {
  padding: 55px 20px;
  text-align: center;
}

.abonnement-empty > i {
  margin-bottom: 15px;
  color: #94A3B8;
  font-size: 40px;
}

.abonnement-empty h3 {
  margin: 0 0 9px;
  color: #0F172A;
  font-size: 17px;
}

.abonnement-empty p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .admin-abonnements {
    padding: 22px 16px;
  }
  .abonnement-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .abonnement-admin-section {
    padding: 18px;
  }
}
@media (max-width: 600px) {
  .abonnement-admin-header h1 {
    font-size: 23px;
  }
  .abonnement-admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .abonnement-admin-stat {
    width: 100%;
    box-sizing: border-box;
  }
}
.admin-paiements {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  color: #0F172A;
  font-family: Arial, sans-serif;
}

.paiement-header {
  margin-bottom: 28px;
}

.paiement-label {
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.paiement-header h1 {
  font-size: 28px;
  margin: 10px 0;
  font-weight: 700;
}

.paiement-header p,
.paiement-section-header p {
  color: #64748B;
  font-size: 14px;
  margin: 0;
}

.paiement-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.paiement-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFFFFF;
  padding: 20px;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  min-width: 0;
}

.stat-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  font-weight: bold;
}

.stat-icon.blue {
  background: #DBEAFE;
  color: #2563EB;
}

.stat-icon.orange {
  background: #FEF3C7;
  color: #D97706;
}

.stat-icon.green {
  background: #D1FAE5;
  color: #059669;
}

.stat-icon.red {
  background: #FEE2E2;
  color: #DC2626;
}

.paiement-stat-card span {
  display: block;
  color: #64748B;
  font-size: 12px;
}

.paiement-stat-card h2 {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.paiement-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
}

.paiement-section-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.paiement-section-header h2 {
  font-size: 19px;
  margin: 0 0 7px;
}

.paiement-total {
  background: #EFF6FF;
  color: #2563EB;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.paiement-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.paiement-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  text-align: left;
}

.paiement-table thead {
  background: #F8FAFC;
}

.paiement-table th {
  padding: 16px;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.paiement-table td {
  padding: 16px;
  border-top: 1px solid #E2E8F0;
  font-size: 13px;
  white-space: nowrap;
}

.paiement-student {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.paiement-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 50%;
  font-weight: 700;
}

.paiement-student-info strong,
.paiement-student-info small {
  display: block;
}

.paiement-student-info strong {
  font-size: 13px;
}

.paiement-student-info small {
  color: #64748B;
  margin-top: 4px;
}

.paiement-formule {
  background: #F1F5F9;
  padding: 6px 10px;
  border-radius: 6px;
}

.paiement-montant {
  color: #0F172A;
}

.paiement-status {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-valide {
  background: #D1FAE5;
  color: #047857;
}

.status-attente {
  background: #FEF3C7;
  color: #B45309;
}

.status-refuse {
  background: #FEE2E2;
  color: #B91C1C;
}

.status-autre {
  background: #F1F5F9;
  color: #64748B;
}

.paiement-empty {
  padding: 55px 20px;
  text-align: center;
  color: #64748B;
  white-space: normal;
}

.paiement-empty span {
  font-size: 35px;
}

.paiement-empty h3 {
  color: #0F172A;
  margin: 12px 0 7px;
}

.paiement-empty p {
  font-size: 13px;
}

@media (max-width: 1000px) {
  .paiement-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .admin-paiements {
    padding: 20px 12px;
  }
  .paiement-stats {
    grid-template-columns: 1fr;
  }
  .paiement-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================
   EDUPlatform - Student Learning Page
========================================= */
.student-learning-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 35px 60px;
  color: #0F172A;
}

/* HEADER */
.learning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.learning-eyebrow,
.learning-section-label {
  display: inline-block;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.learning-header h1 {
  margin: 0 0 9px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
}

.learning-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

.learning-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s ease;
}

.learning-back-button:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* OVERVIEW */
.learning-overview {
  overflow: hidden;
  margin-bottom: 45px;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.learning-cover {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: #0F172A;
}

.learning-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-cover-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 25px 20px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
}

.learning-cover-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
}

.learning-about {
  padding: 28px 30px;
}

.learning-about h2,
.learning-program-header h2 {
  margin: 0 0 14px;
  color: #0F172A;
  font-size: 22px;
  font-weight: 800;
}

.learning-about > p {
  max-width: 900px;
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.learning-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding: 12px 16px;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  background: #EFF6FF;
}

.learning-date-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #DBEAFE;
  color: #2563EB;
}

.learning-date small,
.learning-date strong {
  display: block;
}

.learning-date small {
  margin-bottom: 4px;
  color: #64748B;
  font-size: 11px;
}

.learning-date strong {
  color: #0F172A;
  font-size: 13px;
}

/* PROGRAM */
.learning-program {
  margin-top: 10px;
}

.learning-program-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.learning-program-header h2 {
  margin-bottom: 7px;
}

.learning-program-header p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

.learning-lesson-count {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  background: #EFF6FF;
  color: #2563EB;
}

.learning-lesson-count strong {
  font-size: 19px;
}

.learning-lesson-count span {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

/* LESSON CARDS */
.learning-lessons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.learning-lesson-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #E2E8F0;
  border-radius: 17px;
  background: #FFFFFF;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.learning-lesson-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.learning-lesson-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}

.learning-lesson-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 17px;
  font-weight: 800;
}

.learning-lesson-title {
  min-width: 0;
  flex: 1;
}

.learning-lesson-title > span {
  display: block;
  margin-bottom: 5px;
  color: #2563EB;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.learning-lesson-title h3 {
  margin: 0;
  color: #0F172A;
  font-size: 18px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.learning-lesson-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 30px;
  background: #ECFDF5;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.learning-lesson-description {
  margin: 0 0 18px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* VIDEO */
.learning-video-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 13px;
  background: #0F172A;
}

.learning-video-wrapper video {
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #0F172A;
}

.learning-no-video {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  background: #F8FAFC;
  color: #64748B;
  font-size: 13px;
}

.learning-no-video i {
  color: #94A3B8;
  font-size: 20px;
}

/* EMPTY STATE */
.learning-empty {
  padding: 55px 25px;
  border: 1px dashed #CBD5E1;
  border-radius: 17px;
  background: #FFFFFF;
  text-align: center;
}

.learning-empty-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 25px;
}

.learning-empty h3 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 19px;
}

.learning-empty p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .student-learning-page {
    padding: 22px 16px 40px;
  }
  .learning-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .learning-back-button {
    width: 100%;
  }
  .learning-cover {
    height: 220px;
  }
  .learning-about {
    padding: 22px 18px;
  }
  .learning-program-header {
    align-items: flex-start;
  }
  .learning-lesson-card {
    padding: 18px;
  }
  .learning-lesson-heading {
    flex-wrap: wrap;
  }
  .learning-lesson-tag {
    margin-left: 64px;
  }
  .learning-video-wrapper video {
    max-height: 300px;
  }
}
@media (max-width: 480px) {
  .learning-program-header {
    flex-direction: column;
  }
  .learning-lesson-title h3 {
    font-size: 16px;
  }
  .learning-lesson-tag {
    margin-left: 0;
  }
  .learning-date {
    width: 100%;
  }
}
/* Progression de la formation */
.learning-progress {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin: 25px 0;
}

.learning-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.learning-progress-header h2 {
  margin: 7px 0 0;
  color: #0F172A;
}

.learning-progress-header > strong {
  color: #2563EB;
  font-size: 25px;
}

.learning-progress-track {
  height: 11px;
  background: #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
}

.learning-progress-fill {
  height: 100%;
  background: #10B981;
  border-radius: 20px;
  transition: width 0.3s ease;
}

.learning-progress > p {
  color: #64748B;
  font-size: 14px;
  margin-top: 12px;
}

.learning-complete-form {
  margin-top: 20px;
}

.learning-complete-button,
.learning-completed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
}

.learning-complete-button {
  background: #2563EB;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.learning-complete-button:hover {
  background: #1D4ED8;
}

.learning-completed-button {
  margin-top: 20px;
  background: #D1FAE5;
  color: #047857;
}

.learning-lesson-done {
  background: #D1FAE5 !important;
  color: #047857 !important;
}

.learning-completed-message {
  margin-top: 16px;
  padding: 13px;
  border-radius: 9px;
  background: #D1FAE5;
  color: #047857;
  font-weight: 600;
}

/* =========================================
   EDUPlatform — PAGE PUBLIQUE CATÉGORIES
========================================= */
.public-categories {
  min-height: 100vh;
  padding-bottom: 85px;
  background: #f8fafc;
  color: #0f172a;
}

/* =========================================
   HERO
========================================= */
.categories-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 20px 105px;
  text-align: center;
  color: #0f172a;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.categories-hero::before,
.categories-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.categories-hero::before {
  width: 300px;
  height: 300px;
  top: -170px;
  left: -100px;
  background: rgba(37, 99, 235, 0.06);
}

.categories-hero::after {
  width: 350px;
  height: 350px;
  right: -130px;
  bottom: -230px;
  background: rgba(16, 185, 129, 0.06);
}

.categories-hero > * {
  position: relative;
  z-index: 1;
}

.categories-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid #dbeafe;
  border-radius: 30px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.categories-hero h1 {
  margin: 23px 0 15px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.categories-hero h1 span {
  color: #2563eb;
}

.categories-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1.8;
}

/* =========================================
   CONTAINER
========================================= */
.categories-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: -38px auto 0;
  padding: 0 25px;
}

/* =========================================
   HEADING
========================================= */
.categories-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.categories-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.categories-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.categories-total {
  flex-shrink: 0;
  padding: 10px 17px;
  border: 1px solid #dbeafe;
  border-radius: 30px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
}

/* =========================================
   SEARCH
========================================= */
.categories-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 30px auto 0;
}

.category-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  color: #94a3b8;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-search-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.category-search-field i {
  flex-shrink: 0;
  font-size: 16px;
}

.category-search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
}

.category-search-field input::placeholder {
  color: #94a3b8;
}

.btn-search,
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.btn-search:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
}

.btn-reset {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
}

.btn-reset:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}

/* =========================================
   CATEGORIES GRID
========================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 35px;
}

/* =========================================
   CATEGORY CARD
========================================= */
.public-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.public-category-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.09);
}

/* =========================================
   CATEGORY IMAGE
========================================= */
.category-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f1f5f9;
}

.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-category-card:hover .category-image img {
  transform: scale(1.06);
}

.category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  color: #94a3b8;
}

.category-placeholder i {
  font-size: 43px;
}

/* =========================================
   CARD CONTENT
========================================= */
.category-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 6px 11px;
  border-radius: 30px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.category-card-content h3 {
  margin: 0 0 11px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.category-card-content > p {
  min-height: 68px;
  margin: 0 0 19px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}

/* =========================================
   FORMATIONS COUNT
========================================= */
.category-formations-count {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  margin-bottom: 19px;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

.category-formations-count i {
  color: #2563eb;
  font-size: 15px;
}

/* =========================================
   CATEGORY BUTTON
========================================= */
.btn-category-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid #2563eb;
  border-radius: 9px;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-category-details:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
}

.btn-category-details i {
  transition: transform 0.2s ease;
}

.btn-category-details:hover i {
  transform: translateX(4px);
}

/* =========================================
   EMPTY STATE
========================================= */
.categories-empty {
  padding: 65px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.categories-empty > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 27px;
}

.categories-empty h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 800;
}

.categories-empty p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================
   PAGINATION
========================================= */
.categories-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.categories-pagination a,
.categories-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.categories-pagination a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.categories-pagination .active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.categories-pagination-info {
  margin-top: 15px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

/* =========================================
   RESPONSIVE — TABLET
========================================= */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .categories-container {
    padding: 0 22px;
  }
  .category-image {
    height: 180px;
  }
}
/* =========================================
   RESPONSIVE — MOBILE
========================================= */
@media (max-width: 600px) {
  .categories-hero {
    padding: 60px 18px 85px;
  }
  .categories-hero h1 {
    font-size: 34px;
  }
  .categories-hero p {
    font-size: 14px;
  }
  .categories-container {
    margin-top: -30px;
    padding: 0 16px;
  }
  .categories-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .categories-heading h2 {
    font-size: 23px;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .category-image {
    height: 200px;
  }
  .category-card-content {
    padding: 20px;
  }
  .category-card-content > p {
    min-height: auto;
  }
  .categories-search {
    flex-wrap: wrap;
    gap: 9px;
  }
  .category-search-field {
    flex-basis: 100%;
  }
  .btn-search,
  .btn-reset {
    flex: 1;
    min-height: 47px;
  }
  .categories-pagination {
    gap: 6px;
  }
  .categories-pagination a,
  .categories-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
  }
}
/* =========================================
   SMALL MOBILE
========================================= */
@media (max-width: 380px) {
  .categories-hero h1 {
    font-size: 29px;
  }
  .categories-heading h2 {
    font-size: 21px;
  }
  .category-card-content {
    padding: 17px;
  }
}
/* =========================================
   EDUPLATFORM - ADMIN CATEGORIES
   Design moderne, propre et centré
========================================= */
.categories-page {
  width: 100%;
  max-width: 1450px;
  min-width: 0;
  margin: 0 auto;
  padding: 38px clamp(20px, 3vw, 45px) 60px;
  box-sizing: border-box;
  color: #0F172A;
  animation: categoriesFadeIn 0.4s ease;
}

@keyframes categoriesFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* HEADER */
.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto 32px;
  width: 100%;
}

.categories-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.categories-header h1 {
  margin: 0;
  color: #0F172A;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.8px;
}

.categories-header p {
  margin: 9px 0 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.6;
}

/* BUTTONS */
.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.category-btn-primary {
  color: #FFFFFF;
  background: #2563EB;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.category-btn-primary:hover {
  color: #FFFFFF;
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.category-btn-secondary {
  color: #475569;
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.category-btn-secondary:hover {
  color: #2563EB;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.category-btn span {
  font-size: 19px;
  line-height: 1;
}

/* ALERTS */
.category-alert {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
}

.category-alert-success {
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}

.category-alert-error {
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

/* STATISTICS */
.category-stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 350px;
  min-height: 105px;
  margin-bottom: 27px;
  padding: 20px 23px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.category-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 13px;
  font-size: 25px;
}

.category-stat-card span {
  display: block;
  margin-bottom: 6px;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}

.category-stat-card strong {
  display: block;
  color: #0F172A;
  font-size: 27px;
  font-weight: 800;
}

/* TABLE CARD */
.category-table-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.category-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  border-bottom: 1px solid #F1F5F9;
}

.category-table-heading h2 {
  margin: 0;
  color: #0F172A;
  font-size: 17px;
  font-weight: 800;
}

.category-table-heading p {
  margin: 7px 0 0;
  color: #94A3B8;
  font-size: 12px;
}

/* TABLE */
.category-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.category-table {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
  text-align: left;
}

.category-table thead {
  background: #F8FAFC;
}

.category-table th {
  padding: 16px 20px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-table td {
  padding: 17px 20px;
  color: #475569;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  vertical-align: middle;
}

.category-table tbody tr {
  transition: background 0.2s ease;
}

.category-table tbody tr:hover {
  background: #F8FAFC;
}

/* CATEGORY IMAGE AND NAME */
.category-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.category-thumbnail,
.category-image-fallback {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
}

.category-thumbnail {
  display: block;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-thumbnail:hover {
  transform: scale(1.07);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.13);
}

.category-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: #EFF6FF;
  font-size: 23px;
}

.category-name-cell strong {
  color: #0F172A;
  font-size: 13px;
  font-weight: 750;
}

/* DESCRIPTION */
.category-description {
  max-width: 260px;
  line-height: 1.6;
  color: #64748B !important;
}

/* FORMATION COUNT */
.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

/* ACTIONS */
.category-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}

.category-actions form {
  margin: 0;
}

.category-action-edit,
.category-action-delete {
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.category-action-edit {
  color: #2563EB;
}

.category-action-edit:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.category-action-delete {
  color: #EF4444;
}

.category-action-delete:hover {
  color: #B91C1C;
  text-decoration: underline;
}

/* EMPTY STATE */
.category-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 35px 20px;
  text-align: center;
}

.category-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  margin-bottom: 18px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 22px;
  font-size: 34px;
}

.category-empty h3 {
  margin: 0;
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
}

.category-empty p {
  margin: 10px 0 22px;
  color: #94A3B8;
  font-size: 13px;
}

/* FORM CARD */
.category-form-card {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 5px 22px rgba(15, 23, 42, 0.045);
}

.category-form-heading {
  margin-bottom: 27px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}

.category-form-heading h2 {
  margin: 0;
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
}

.category-form-heading p {
  margin: 8px 0 0;
  color: #94A3B8;
  font-size: 12px;
}

/* FORM FIELDS */
.category-form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.category-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.category-form-group label {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.category-form-group label span {
  color: #EF4444;
}

.category-form-group input:not([type=file]):not([type=color]),
.category-form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  box-sizing: border-box;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-form-group textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.6;
}

.category-form-group input:focus,
.category-form-group textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.category-form-group input::placeholder,
.category-form-group textarea::placeholder {
  color: #A0AEC0;
}

.category-form-group small {
  color: #94A3B8;
  font-size: 11px;
  line-height: 1.6;
}

/* IMAGE PREVIEW */
.category-image-group {
  padding: 20px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 13px;
}

.category-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 180px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.category-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94A3B8;
  text-align: center;
}

.category-image-placeholder span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 12px;
  font-size: 28px;
}

.category-image-placeholder p {
  margin: 0;
  font-size: 12px;
}

/* FILE INPUT */
.category-form-group input[type=file] {
  width: 100%;
  max-width: 420px;
  padding: 10px;
  box-sizing: border-box;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.category-form-group input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  color: #FFFFFF;
  background: #2563EB;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-form-group input[type=file]::file-selector-button:hover {
  background: #1D4ED8;
}

/* FORM BUTTONS */
.category-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid #F1F5F9;
}

/* RESPONSIVE TABLET */
@media (max-width: 900px) {
  .categories-page {
    padding: 28px 20px 45px;
  }
  .categories-header {
    align-items: flex-start;
  }
  .category-form-card {
    max-width: 100%;
  }
}
/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
  .categories-page {
    padding: 23px 14px 35px;
  }
  .categories-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .categories-header .category-btn {
    align-self: flex-start;
  }
  .categories-header h1 {
    font-size: 24px;
  }
  .category-stat-card {
    max-width: 100%;
  }
  .category-table-heading {
    padding: 19px 16px;
  }
  .category-form-card {
    padding: 21px 16px;
  }
  .category-image-group {
    padding: 14px;
  }
  .category-image-preview {
    max-width: 100%;
    height: 160px;
  }
  .category-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .category-form-actions .category-btn {
    width: 100%;
  }
}
/* ==========================================
   FIX CENTRAGE - ADMIN CATEGORIES
========================================== */
.categories-page {
  box-sizing: border-box;
  width: calc(100% - 260px);
  max-width: none;
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  margin-right: 0;
  padding: 38px clamp(20px, 3vw, 45px) 60px;
}

.categories-page .categories-header,
.categories-page .category-table-card,
.categories-page .category-form-card {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.categories-page .category-stat-card {
  margin-left: 0;
}

.categories-page .category-alert {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

/* TABLETTE */
@media (max-width: 900px) {
  .categories-page {
    width: 100%;
    margin-left: 0;
    padding: 28px 20px 45px;
  }
}
/* MOBILE */
@media (max-width: 600px) {
  .categories-page {
    width: 100%;
    margin-left: 0;
    padding: 23px 14px 35px;
  }
}
/* =====================================================
   EDUPLATFORM - PAGE À PROPOS
   Design professionnel, moderne et responsive
   CSS STRICTEMENT LIMITÉ À CETTE PAGE
   ===================================================== */
.about-page {
  --about-blue: #2563EB;
  --about-blue-dark: #1D4ED8;
  --about-navy: #0F172A;
  --about-muted: #64748B;
  --about-border: #E2E8F0;
  --about-light: #F8FAFC;
  --about-pale: #EFF6FF;
  --about-green: #10B981;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  color: var(--about-navy);
  font-family: inherit;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page img {
  max-width: 100%;
}

.about-page a {
  text-decoration: none;
}

.about-container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.about-label {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--about-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* =====================================================
   1. HERO
   ===================================================== */
.about-hero {
  position: relative;
  isolation: isolate;
  padding: 78px 0;
  background: radial-gradient(circle at 5% 10%, #DBEAFE 0, transparent 32%), linear-gradient(110deg, #F8FAFC 0%, #EFF6FF 55%, #FFFFFF 100%);
}

.about-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: -130px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(37, 99, 235, 0.025), 0 0 0 70px rgba(37, 99, 235, 0.02);
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 65px;
}

.about-hero-content {
  min-width: 0;
}

.about-hero-content h1 {
  max-width: 620px;
  margin: 0 0 23px;
  color: var(--about-navy);
  font-size: clamp(38px, 4.5vw, 59px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.about-hero-content h1 span {
  display: block;
  color: var(--about-blue);
}

.about-hero-content > p {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--about-muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 23px;
  border: 1px solid var(--about-blue);
  border-radius: 9px;
  background: var(--about-blue);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-btn:hover {
  transform: translateY(-3px);
  background: var(--about-blue-dark);
  color: #FFFFFF;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.2);
}

.about-btn i,
.about-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.about-btn:hover i,
.about-btn:hover svg {
  transform: translateX(4px);
}

.about-hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--about-muted);
  font-size: 13px;
  font-weight: 600;
}

.about-hero-note i,
.about-hero-note svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--about-green);
}

.about-hero-image {
  position: relative;
  min-width: 0;
  min-height: 390px;
  padding: 0;
  border: 8px solid #FFFFFF;
  border-radius: 22px;
  background: #E2E8F0;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.about-hero-image > img {
  display: block;
  width: 100%;
  height: 390px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
}

.about-image-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.caption-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background: #DBEAFE;
  color: var(--about-blue);
  font-size: 19px;
}

.caption-icon svg {
  width: 21px;
  height: 21px;
}

.about-image-caption strong,
.about-image-caption small {
  display: block;
}

.about-image-caption strong {
  margin-bottom: 3px;
  color: var(--about-navy);
  font-size: 14px;
}

.about-image-caption small {
  color: var(--about-muted);
  font-size: 12px;
}

/* =====================================================
   2. PRESENTATION
   ===================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: 75px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-intro-image {
  position: relative;
  min-width: 0;
  min-height: 390px;
  padding: 12px;
  border-radius: 22px;
  background: #EFF6FF;
}

.about-intro-image img {
  display: block;
  width: 100%;
  height: 370px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
}

.about-experience-card {
  position: absolute;
  right: -22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 20px);
  padding: 16px 20px;
  border: 1px solid var(--about-border);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  color: var(--about-navy);
  font-size: 13px;
  font-weight: 750;
}

.about-experience-card i,
.about-experience-card svg {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: #DBEAFE;
  color: var(--about-blue);
  font-size: 17px;
}

.about-intro-text {
  min-width: 0;
}

.about-intro-text h2 {
  margin: 0 0 22px;
  color: var(--about-navy);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -1px;
}

.about-intro-text h2 span {
  display: block;
  color: var(--about-blue);
}

.about-intro-text p {
  margin: 0 0 16px;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.9;
}

.about-check-list {
  display: grid;
  gap: 13px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.about-check-list i,
.about-check-list svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--about-green);
}

/* =====================================================
   3. MISSION ET VISION
   ===================================================== */
.about-purpose {
  padding: 85px 0;
  background: var(--about-light);
}

.about-section-heading {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

.about-section-heading h2 {
  margin: 0 0 13px;
  color: var(--about-navy);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 850;
  letter-spacing: -0.7px;
}

.about-section-heading p {
  margin: 0;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.purpose-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--about-border);
  border-radius: 17px;
  background: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.purpose-card:hover {
  transform: translateY(-5px);
  border-color: #BFDBFE;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
}

.purpose-icon,
.value-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  font-size: 22px;
}

.purpose-icon svg,
.value-icon svg {
  width: 25px;
  height: 25px;
}

.blue-icon {
  background: #DBEAFE;
  color: var(--about-blue);
}

.green-icon {
  background: #D1FAE5;
  color: #059669;
}

.purpose-card h3 {
  margin: 0 0 12px;
  color: var(--about-navy);
  font-size: 20px;
  font-weight: 800;
}

.purpose-card p {
  margin: 0;
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* =====================================================
   4. NOS VALEURS
   ===================================================== */
.about-values {
  padding-top: 95px;
  padding-bottom: 95px;
  background: #FFFFFF;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}

.value-card {
  min-width: 0;
  padding: 27px 23px;
  border: 1px solid var(--about-border);
  border-radius: 15px;
  background: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: #BFDBFE;
  box-shadow: 0 13px 30px rgba(15, 23, 42, 0.07);
}

.value-icon {
  background: #EFF6FF;
  color: var(--about-blue);
}

.value-card h3 {
  margin: 0 0 11px;
  color: var(--about-navy);
  font-size: 17px;
  font-weight: 800;
}

.value-card p {
  margin: 0;
  color: var(--about-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =====================================================
   5. CALL TO ACTION
   ===================================================== */
.about-cta {
  position: relative;
  isolation: isolate;
  padding: 75px 0;
  overflow: hidden;
  border-top: 1px solid #DBEAFE;
  border-bottom: 1px solid #DBEAFE;
  background: linear-gradient(110deg, #EFF6FF, #F8FAFC 65%, #FFFFFF);
  text-align: center;
}

.about-cta::before,
.about-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.about-cta::before {
  top: -140px;
  left: -70px;
}

.about-cta::after {
  right: -80px;
  bottom: -150px;
}

.about-cta-content {
  position: relative;
  z-index: 1;
}

.about-cta h2 {
  max-width: 750px;
  margin: 0 auto 15px;
  color: var(--about-navy);
  font-size: clamp(27px, 3.8vw, 40px);
  font-weight: 850;
  line-height: 1.25;
}

.about-cta p {
  max-width: 620px;
  margin: 0 auto 27px;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* =====================================================
   6. RESPONSIVE - TABLETTE
   ===================================================== */
@media (max-width: 1000px) {
  .about-hero-grid {
    gap: 35px;
  }
  .about-intro {
    gap: 45px;
  }
  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =====================================================
   7. RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 760px) {
  .about-hero {
    padding: 60px 0;
  }
  .about-hero-grid,
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-hero-grid {
    gap: 35px;
  }
  .about-hero-content h1 {
    font-size: clamp(36px, 9vw, 48px);
  }
  .about-hero-image {
    min-height: 300px;
  }
  .about-hero-image > img {
    height: 300px;
  }
  .about-intro {
    gap: 40px;
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .about-intro-image {
    min-height: 310px;
  }
  .about-intro-image img {
    height: 290px;
  }
  .about-experience-card {
    right: 8px;
    bottom: 18px;
  }
  .about-purpose,
  .about-values {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .about-purpose-grid {
    grid-template-columns: 1fr;
  }
  .about-section-heading {
    margin-bottom: 32px;
  }
  .about-cta {
    padding: 60px 0;
  }
}
/* =====================================================
   8. RESPONSIVE - PETIT MOBILE
   ===================================================== */
@media (max-width: 480px) {
  .about-container {
    width: calc(100% - 32px);
  }
  .about-hero-content h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .about-hero-content > p {
    font-size: 14px;
  }
  .about-hero-image {
    min-height: 260px;
    border-width: 5px;
  }
  .about-hero-image > img {
    height: 260px;
  }
  .about-image-caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 10px;
    padding: 11px;
  }
  .caption-icon {
    width: 38px;
    height: 38px;
  }
  .about-intro-image {
    min-height: 260px;
  }
  .about-intro-image img {
    height: 240px;
  }
  .about-intro-text h2 {
    font-size: 31px;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .purpose-card {
    padding: 27px 23px;
  }
  .value-card {
    padding: 25px;
  }
  .about-btn {
    width: 100%;
  }
}
/* =====================================================
   9. ACCESSIBILITÉ
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .about-page *,
  .about-page *::before,
  .about-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================
   EDUPLATFORM - ADMIN GESTION DES PAIEMENTS
========================================= */
.admin-paiements {
  box-sizing: border-box;
  width: calc(100% - 260px);
  min-width: 0;
  min-height: 100vh;
  margin-left: 260px;
  padding: 35px;
  background: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}

/* HEADER */
.paiement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.paiement-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.paiement-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: #0F172A;
}

.paiement-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

/* STATISTIQUES */
.paiement-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.paiement-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paiement-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 21px;
  font-weight: 800;
}

.stat-icon.blue {
  color: #2563EB;
  background: #DBEAFE;
}

.stat-icon.orange {
  color: #D97706;
  background: #FEF3C7;
}

.stat-icon.green {
  color: #059669;
  background: #D1FAE5;
}

.stat-icon.red {
  color: #DC2626;
  background: #FEE2E2;
}

.paiement-stat-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}

.paiement-stat-card h2 {
  margin: 0;
  color: #0F172A;
  font-size: 25px;
  font-weight: 800;
}

/* SECTION TABLEAU */
.paiement-section {
  padding: 25px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.paiement-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.paiement-section-header h2 {
  margin: 0 0 6px;
  color: #0F172A;
  font-size: 19px;
  font-weight: 800;
}

.paiement-section-header p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
}

.paiement-total {
  padding: 9px 14px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* TABLEAU */
.paiement-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.paiement-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
}

.paiement-table thead {
  background: #F8FAFC;
}

.paiement-table th {
  padding: 15px 16px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.paiement-table td {
  padding: 16px;
  border-top: 1px solid #F1F5F9;
  color: #334155;
  font-size: 13px;
  vertical-align: middle;
}

.paiement-table tbody tr {
  transition: background 0.2s ease;
}

.paiement-table tbody tr:hover {
  background: #F8FAFC;
}

/* ETUDIANT */
.paiement-student {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}

.paiement-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #2563EB;
  background: #DBEAFE;
  font-size: 13px;
  font-weight: 800;
}

.paiement-student-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paiement-student-info strong {
  color: #0F172A;
  font-size: 13px;
}

.paiement-student-info small {
  color: #94A3B8;
  font-size: 11px;
}

/* FORMULE ET MONTANT */
.paiement-formule {
  color: #475569;
  font-weight: 600;
}

.paiement-montant {
  color: #0F172A !important;
  font-weight: 800;
  white-space: nowrap;
}

/* STATUT */
.paiement-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-valide {
  color: #047857;
  background: #D1FAE5;
}

.status-attente {
  color: #B45309;
  background: #FEF3C7;
}

.status-refuse {
  color: #B91C1C;
  background: #FEE2E2;
}

.status-autre {
  color: #475569;
  background: #E2E8F0;
}

/* AUCUN PAIEMENT */
.paiement-empty {
  padding: 45px 20px !important;
  color: #94A3B8 !important;
  text-align: center;
  font-size: 14px !important;
}

/* RESPONSIVE TABLETTE */
@media (max-width: 1200px) {
  .paiement-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-paiements {
    padding: 25px;
  }
}
/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
  .admin-paiements {
    width: 100%;
    margin-left: 0;
    padding: 25px 20px;
  }
}
@media (max-width: 600px) {
  .admin-paiements {
    padding: 20px 14px;
  }
  .paiement-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .paiement-stat-card {
    padding: 17px;
  }
  .paiement-section {
    padding: 16px;
  }
  .paiement-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .paiement-header h1 {
    font-size: 24px;
  }
}
/* Cartes des valeurs cliquables */
.value-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.value-link {
  display: inline-block;
  margin-top: 15px;
  color: #2563EB;
  font-weight: 600;
  font-size: 14px;
}

.value-card:hover .value-link {
  text-decoration: underline;
}

/* Pages statiques des valeurs */
.value-detail {
  max-width: 900px;
  margin: 80px auto;
  padding: 50px 30px;
  background: #FFFFFF;
  border-radius: 18px;
}

.value-detail > span {
  color: #2563EB;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.value-detail h1 {
  color: #0F172A;
  font-size: 36px;
  margin: 20px 0;
}

.value-detail p {
  color: #64748B;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.value-detail a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: #2563EB;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.value-detail a:hover {
  background: #1D4ED8;
}

/* ==========================================
   AVANTAGES - CARTES CLIQUABLES
========================================== */
.advantage-item {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-4px);
}

.advantage-item__link {
  display: inline-block;
  margin-top: 9px;
  color: #2563EB;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.advantage-item:hover .advantage-item__link {
  color: #1D4ED8;
}

/* ==========================================
   PAGES DÉTAILS DES AVANTAGES
========================================== */
.advantage-detail {
  max-width: 900px;
  margin: 75px auto;
  padding: 55px 45px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.06);
}

.advantage-detail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin-bottom: 25px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 16px;
}

.advantage-detail__icon svg {
  width: 30px;
  height: 30px;
}

.advantage-detail__label {
  display: inline-block;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.advantage-detail h1 {
  max-width: 700px;
  color: #0F172A;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 25px;
}

.advantage-detail p {
  color: #64748B;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.advantage-detail__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 24px;
  color: #FFFFFF;
  background: #2563EB;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.advantage-detail__button:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
}

.advantage-detail__back {
  display: block;
  width: fit-content;
  margin-top: 25px;
  color: #64748B;
  text-decoration: none;
  font-size: 14px;
}

.advantage-detail__back:hover {
  color: #2563EB;
}

/* Responsive */
@media (max-width: 768px) {
  .advantage-detail {
    margin: 35px 16px;
    padding: 35px 24px;
  }
  .advantage-detail h1 {
    font-size: 27px;
  }
  .advantage-detail p {
    font-size: 15px;
  }
}
.admin-promotions {
  width: calc(100% - 260px);
  min-height: 100vh;
  margin-left: 260px;
  padding: 38px 42px;
  box-sizing: border-box;
  background: #F8FAFC;
  color: #0F172A;
  position: relative;
  z-index: 1;
}

.promotion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.promotion-eyebrow {
  display: inline-block;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 9px;
}

.promotion-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
}

.promotion-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

.promotion-btn-primary,
.promotion-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.promotion-btn-primary {
  border: 1px solid #2563EB;
  background: #2563EB;
  color: #FFFFFF;
}

.promotion-btn-primary:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.promotion-btn-secondary {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
}

.promotion-btn-secondary:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.promotion-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 17px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 13px;
}

.promotion-alert p {
  margin: 0 0 5px;
}

.promotion-alert p:last-child {
  margin-bottom: 0;
}

.promotion-alert.success {
  background: #ECFDF5;
  color: #047857;
}

.promotion-alert.warning {
  background: #FFFBEB;
  color: #B45309;
}

.promotion-alert.danger {
  background: #FEF2F2;
  color: #B91C1C;
}

.promotion-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.promotion-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.025);
}

.promotion-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 19px;
}

.promotion-stat-icon.blue {
  color: #2563EB;
  background: #EFF6FF;
}

.promotion-stat-icon.green {
  color: #059669;
  background: #ECFDF5;
}

.promotion-stat-icon.orange {
  color: #D97706;
  background: #FFFBEB;
}

.promotion-stat-card span {
  display: block;
  margin-bottom: 5px;
  color: #64748B;
  font-size: 12px;
}

.promotion-stat-card strong {
  font-size: 25px;
  font-weight: 800;
  color: #0F172A;
}

.promotion-panel,
.promotion-form-panel {
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.025);
}

.promotion-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 23px 25px;
  border-bottom: 1px solid #E2E8F0;
}

.promotion-panel-heading h2,
.promotion-form-heading h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.promotion-panel-heading p,
.promotion-form-heading p {
  margin: 0;
  color: #64748B;
  font-size: 12px;
}

.promotion-count {
  padding: 7px 12px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.promotion-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.promotion-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.promotion-table th {
  padding: 15px 18px;
  background: #F8FAFC;
  color: #64748B;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-align: left;
  white-space: nowrap;
}

.promotion-table td {
  padding: 17px 18px;
  border-top: 1px solid #F1F5F9;
  font-size: 12px;
  vertical-align: middle;
}

.promotion-table tbody tr:hover {
  background: #FAFCFF;
}

.promotion-code-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promotion-ticket-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #EFF6FF;
  color: #2563EB;
}

.promotion-code-cell strong {
  color: #0F172A;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.promotion-discount {
  display: block;
  color: #059669;
  font-size: 14px;
  font-weight: 800;
}

.promotion-table td small {
  display: block;
  margin-top: 4px;
  color: #94A3B8;
  font-size: 10px;
}

.promotion-period {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #475569;
  font-size: 11px;
}

.promotion-usage-limit {
  color: #94A3B8;
}

.promotion-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.promotion-status.active {
  color: #047857;
  background: #ECFDF5;
}

.promotion-status.inactive {
  color: #64748B;
  background: #F1F5F9;
}

.promotion-status.expired {
  color: #B91C1C;
  background: #FEF2F2;
}

.promotion-status.scheduled {
  color: #1D4ED8;
  background: #EFF6FF;
}

.promotion-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.promotion-actions form {
  margin: 0;
}

.promotion-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s ease;
}

.promotion-action.edit {
  color: #2563EB;
  background: #EFF6FF;
}

.promotion-action.toggle {
  color: #059669;
  background: #ECFDF5;
}

.promotion-action.delete {
  color: #DC2626;
  background: #FEF2F2;
}

.promotion-action:hover {
  transform: translateY(-2px);
}

.promotion-empty {
  padding: 65px 20px;
  text-align: center;
}

.promotion-empty > i {
  color: #94A3B8;
  font-size: 38px;
  margin-bottom: 15px;
}

.promotion-empty h3 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 17px;
}

.promotion-empty p {
  margin: 0 0 20px;
  color: #64748B;
  font-size: 13px;
}

.promotion-form-panel {
  max-width: 900px;
  padding: 27px;
}

.promotion-form-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E2E8F0;
}

.promotion-form-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 18px;
}

.promotion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}

.promotion-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promotion-field.full {
  grid-column: 1/-1;
}

.promotion-field label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.promotion-field input,
.promotion-field select {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  outline: none;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13px;
  transition: 0.2s ease;
}

.promotion-field input:focus,
.promotion-field select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.promotion-field small {
  color: #94A3B8;
  font-size: 10px;
}

.promotion-form-info {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  margin-top: 24px;
  border-radius: 9px;
  background: #EFF6FF;
  color: #1D4ED8;
}

.promotion-form-info i {
  margin-top: 2px;
}

.promotion-form-info p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.promotion-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}

@media (max-width: 900px) {
  .admin-promotions {
    width: 100%;
    margin-left: 0;
    padding: 25px 20px;
  }
  .promotion-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .promotion-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .promotion-header h1 {
    font-size: 23px;
  }
  .promotion-form-grid {
    grid-template-columns: 1fr;
  }
  .promotion-field.full {
    grid-column: auto;
  }
  .promotion-form-panel {
    padding: 18px;
  }
  .promotion-form-actions {
    flex-direction: column-reverse;
  }
  .promotion-form-actions a,
  .promotion-form-actions button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .promotion-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .promotion-header h1 {
    font-size: 23px;
  }
  .promotion-form-grid {
    grid-template-columns: 1fr;
  }
  .promotion-field.full {
    grid-column: auto;
  }
  .promotion-form-panel {
    padding: 18px;
  }
  .promotion-form-actions {
    flex-direction: column-reverse;
  }
  .promotion-form-actions a,
  .promotion-form-actions button {
    width: 100%;
  }
}
/* ==============================
   EDUPlatform - Gestion des Quiz
============================== */
.quiz-main {
  padding: 35px;
  min-height: 100vh;
  background: #F8FAFC;
  color: #0F172A;
}

/* HEADER */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.quiz-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0F172A;
}

.quiz-header p {
  color: #64748B;
  margin: 0;
}

/* BUTTONS */
.quiz-btn-primary,
.quiz-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quiz-btn-primary {
  background: #2563EB;
  color: #FFFFFF;
}

.quiz-btn-primary:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.quiz-btn-secondary {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.quiz-btn-secondary:hover {
  background: #2563EB;
  color: #FFFFFF;
}

/* QUIZ GRID */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quiz-card {
  background: #FFFFFF;
  padding: 25px;
  border: 1px solid #E2E8F0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.quiz-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 21px;
  margin-bottom: 18px;
}

.quiz-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0F172A;
}

.quiz-card p {
  color: #64748B;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-card-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 0;
  margin: 15px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 13px;
}

/* EMPTY STATE */
.quiz-empty {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  padding: 65px 20px;
  text-align: center;
}

.quiz-empty > i {
  font-size: 48px;
  color: #2563EB;
  margin-bottom: 20px;
}

.quiz-empty h3 {
  font-size: 21px;
  font-weight: 700;
}

.quiz-empty p {
  color: #64748B;
  margin-bottom: 22px;
}

/* ALERTS */
.quiz-alert {
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 20px;
}

.quiz-alert-success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.quiz-alert-error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .quiz-main {
    padding: 20px 15px;
  }
  .quiz-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .quiz-grid {
    grid-template-columns: 1fr;
  }
}
/* ==============================
   FORMULAIRE CRÉATION QUIZ
============================== */
.quiz-form-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 35px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.quiz-form-card form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quiz-form-card .mb-3 {
  margin-bottom: 0 !important;
}

.quiz-form-card label {
  display: block;
  margin-bottom: 9px;
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
}

.quiz-form-card input,
.quiz-form-card textarea,
.quiz-form-card select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

.quiz-form-card textarea {
  min-height: 130px;
  resize: vertical;
}

.quiz-form-card input:focus,
.quiz-form-card textarea:focus,
.quiz-form-card select:focus {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quiz-form-card .quiz-btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 650px) {
  .quiz-form-card {
    padding: 22px 17px;
  }
  .quiz-form-card .quiz-btn-primary {
    width: 100%;
  }
}
.student-quiz-page {
  width: calc(100% - 260px);
  max-width: 1400px;
  margin-left: 260px;
  padding: 30px 35px;
  box-sizing: border-box;
  color: #0F172A;
}

@media (max-width: 1000px) {
  .student-quiz-page {
    width: calc(100% - 260px);
    margin-left: 260px;
    padding: 25px;
  }
}
@media (max-width: 768px) {
  .student-quiz-page {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }
}
.quiz-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.quiz-eyebrow {
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.quiz-page-header h1 {
  margin: 8px 0;
  font-size: 30px;
  font-weight: 800;
}

.quiz-page-header p,
.quiz-section-heading p {
  color: #64748B;
  margin: 0;
}

.quiz-header-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 18px;
  font-size: 27px;
}

.quiz-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 32px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
}

.quiz-info-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 12px;
  font-size: 20px;
}

.quiz-info-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.quiz-info-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.quiz-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quiz-section-heading h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 750;
}

.quiz-count {
  padding: 8px 14px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.student-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.student-quiz-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.student-quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.student-quiz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.student-quiz-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 13px;
  font-size: 21px;
}

.quiz-available {
  padding: 6px 10px;
  color: #047857;
  background: #D1FAE5;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.quiz-formation {
  display: block;
  margin-bottom: 9px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
}

.student-quiz-card-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
}

.student-quiz-card-content p {
  min-height: 45px;
  margin: 0 0 17px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.6;
}

.quiz-lesson {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.quiz-lesson i {
  color: #2563EB;
}

.student-quiz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

.student-quiz-card-footer span {
  font-size: 12px;
  color: #64748B;
}

.quiz-coming-soon {
  color: #94A3B8 !important;
  font-weight: 700;
}

.student-quiz-empty {
  padding: 55px 25px;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
}

.empty-quiz-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 50%;
  font-size: 30px;
}

.student-quiz-empty h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.student-quiz-empty p {
  max-width: 500px;
  margin: 0 auto 22px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
}

.quiz-back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  color: #FFFFFF;
  background: #2563EB;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.quiz-back-button:hover {
  background: #1D4ED8;
  color: #FFFFFF;
}

@media (max-width: 1000px) {
  .student-quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .student-quiz-page {
    padding: 18px;
  }
  .quiz-page-header h1 {
    font-size: 25px;
  }
  .student-quiz-grid {
    grid-template-columns: 1fr;
  }
  .quiz-header-icon {
    width: 50px;
    height: 50px;
    font-size: 21px;
  }
  .quiz-info-card {
    align-items: flex-start;
  }
}
/* PAGE DE PASSATION DU QUIZ */
.quiz-taking-form {
  max-width: 950px;
}

.quiz-question-card {
  padding: 25px;
  margin-bottom: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 15px;
}

.quiz-question-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.question-number {
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
}

.question-points {
  padding: 6px 11px;
  background: #EFF6FF;
  color: #2563EB;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.quiz-question-card h3 {
  margin: 0 0 22px;
  font-size: 17px;
}

.quiz-answer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.quiz-answer-option:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.quiz-answer-option input {
  accent-color: #2563EB;
  width: 17px;
  height: 17px;
}

.quiz-answer-option:has(input:checked) {
  border-color: #2563EB;
  background: #EFF6FF;
}

.no-answer {
  color: #DC2626;
  font-size: 13px;
}

.quiz-submit-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

.quiz-submit-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 23px;
  border: none;
  border-radius: 10px;
  background: #2563EB;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.quiz-submit-button:hover {
  background: #1D4ED8;
}

/* PAGE RÉSULTAT */
.quiz-result-card {
  max-width: 650px;
  margin: 35px auto;
  padding: 40px 30px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
}

.quiz-result-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #2563EB;
  background: #DBEAFE;
  border-radius: 50%;
  font-size: 30px;
}

.quiz-result-card h1 {
  margin: 12px 0;
  font-size: 25px;
}

.quiz-score {
  margin: 25px 0 15px;
  color: #2563EB;
  font-size: 48px;
  font-weight: 800;
}

.quiz-score span {
  color: #94A3B8;
  font-size: 25px;
}

.quiz-score-progress {
  height: 12px;
  overflow: hidden;
  margin: 0 0 20px;
  background: #E2E8F0;
  border-radius: 20px;
}

.quiz-score-progress div {
  height: 100%;
  background: #10B981;
  border-radius: 20px;
}

.quiz-result-card h3 {
  font-size: 18px;
}

.result-success {
  color: #059669;
  font-weight: 600;
}

.result-failure {
  color: #D97706;
  font-weight: 600;
}

.result-date {
  margin: 20px 0;
  color: #64748B;
  font-size: 13px;
}

@media (max-width: 768px) {
  .quiz-result-card {
    padding: 28px 18px;
  }
  .quiz-score {
    font-size: 38px;
  }
  .quiz-submit-area {
    justify-content: stretch;
  }
  .quiz-submit-button {
    justify-content: center;
    width: 100%;
  }
}
.quiz-start-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: #2563EB;
  color: #FFFFFF !important;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.quiz-start-button:hover {
  background: #1D4ED8;
}

.quiz-history-delete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.quiz-history-delete:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* HISTORIQUE DES RÉSULTATS */
.quiz-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-history-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  transition: 0.2s ease;
}

.quiz-history-card:hover {
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.quiz-history-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 12px;
  font-size: 21px;
}

.quiz-history-info {
  flex: 1;
  min-width: 0;
}

.quiz-history-info h3 {
  margin: 0 0 8px;
  color: #0F172A;
  font-size: 16px;
}

.quiz-history-info p {
  margin: 0 0 7px;
  color: #64748B;
  font-size: 13px;
}

.quiz-history-info span,
.quiz-history-info small {
  display: block;
  margin-top: 6px;
  color: #64748B;
  font-size: 12px;
}

.quiz-history-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.quiz-history-score strong {
  color: #2563EB;
  font-size: 20px;
}

.quiz-history-score span {
  font-size: 12px;
  font-weight: 700;
}

.history-success {
  color: #059669;
}

.history-failure {
  color: #D97706;
}

@media (max-width: 650px) {
  .quiz-history-card {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
  }
  .quiz-history-info {
    width: calc(100% - 70px);
    flex: none;
  }
  .quiz-history-score {
    width: 100%;
    align-items: flex-start;
    padding-left: 65px;
    text-align: left;
  }
}
/* ==========================================
   EDUPLATFORM - MES CERTIFICATS
========================================== */
.certificates-page {
  min-height: 100vh;
  padding: 35px 40px 55px;
  background: #F8FAFC;
  box-sizing: border-box;
}

/* HEADER */
.certificates-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
  padding: 30px 34px;
  background: linear-gradient(120deg, #FFFFFF 0%, #EFF6FF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.certificates-header-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 18px;
  font-size: 29px;
}

.certificates-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.certificates-header-content h1 {
  margin: 0 0 9px;
  color: #0F172A;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.certificates-header-content p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
}

/* SUMMARY */
.certificates-summary {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 28px;
  padding: 19px 23px;
  background: #FFFFFF;
  border: 1px solid #D1FAE5;
  border-left: 4px solid #10B981;
  border-radius: 13px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.035);
}

.certificates-summary-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D1FAE5;
  color: #059669;
  border-radius: 13px;
  font-size: 21px;
}

.certificates-summary strong,
.certificates-summary span {
  display: block;
}

.certificates-summary strong {
  margin-bottom: 5px;
  color: #0F172A;
  font-size: 15px;
  font-weight: 800;
}

.certificates-summary span {
  color: #64748B;
  font-size: 13px;
}

/* CERTIFICATES GRID */
.certificats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* CERTIFICATE CARD */
.certificat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.certificat-card:hover {
  transform: translateY(-5px);
  border-color: #BFDBFE;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

/* CARD TOP */
.certificat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px;
  background: linear-gradient(120deg, #EFF6FF, #F8FAFC);
  border-bottom: 1px solid #E2E8F0;
}

.certificat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DBEAFE;
  color: #2563EB;
  border-radius: 15px;
  font-size: 24px;
}

.certificat-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
}

/* CARD CONTENT */
.certificat-content {
  flex: 1;
  padding: 25px 24px;
}

.certificat-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #2563EB;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.certificat-content h2 {
  margin: 0;
  color: #0F172A;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.certificat-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: #E2E8F0;
}

/* INFORMATION */
.certificat-information {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.certificat-info-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.certificat-info-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 11px;
  font-size: 16px;
}

.certificat-info-item small,
.certificat-info-item strong {
  display: block;
}

.certificat-info-item small {
  margin-bottom: 5px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
}

.certificat-info-item strong {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

/* CARD FOOTER */
.certificat-card-footer {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 20px 24px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.certificat-footer-text {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}

.certificat-footer-text i {
  color: #DC2626;
  font-size: 17px;
}

.certificat-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  color: #FFFFFF;
  background: #2563EB;
  border: 1px solid #2563EB;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: all 0.2s ease;
}

.certificat-download-button:hover {
  color: #FFFFFF;
  background: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

/* EMPTY STATE */
.certificats-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 650px;
  margin: 45px auto;
  padding: 55px 30px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.045);
}

.certificats-empty-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #2563EB;
  background: #EFF6FF;
  border-radius: 24px;
  font-size: 35px;
}

.certificats-empty h2 {
  margin: 0 0 12px;
  color: #0F172A;
  font-size: 21px;
  font-weight: 800;
}

.certificats-empty p {
  max-width: 430px;
  margin: 0 0 25px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.8;
}

.certificats-explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  color: #FFFFFF;
  background: #2563EB;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease;
}

.certificats-explore-button:hover {
  color: #FFFFFF;
  background: #1D4ED8;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .certificates-page {
    padding: 28px 24px 45px;
  }
  .certificats-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
@media (max-width: 600px) {
  .certificates-page {
    padding: 22px 15px 35px;
  }
  .certificates-header {
    align-items: flex-start;
    gap: 15px;
    padding: 22px 18px;
  }
  .certificates-header-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 22px;
    border-radius: 13px;
  }
  .certificates-header-content h1 {
    font-size: 22px;
  }
  .certificates-header-content p {
    font-size: 12px;
  }
  .certificates-summary {
    padding: 16px;
  }
  .certificat-card-top {
    padding: 19px;
  }
  .certificat-content {
    padding: 21px 19px;
  }
  .certificat-card-footer {
    padding: 18px 19px 21px;
  }
  .certificat-content h2 {
    font-size: 19px;
  }
  .certificats-empty {
    margin: 25px auto;
    padding: 40px 20px;
  }
}
/* ================================
   PASSWORD RESET - EDUPLATFORM
================================ */
.reset-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  background: #F8FAFC;
  font-family: inherit;
}

.reset-card {
  width: 100%;
  max-width: 470px;
  padding: 42px 38px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.reset-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 800;
  border-radius: 15px;
}

.reset-card h1 {
  color: #0F172A;
  font-size: 25px;
  font-weight: 750;
  margin-bottom: 12px;
}

.reset-description {
  color: #64748B;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.reset-form-group {
  text-align: left;
  margin-bottom: 22px;
}

.reset-form-group label {
  display: block;
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
}

.reset-input,
.reset-form-group input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
  transition: 0.3s;
}

.reset-input:focus,
.reset-form-group input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.reset-button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.reset-button:hover {
  background: #1D4ED8;
}

.reset-button-link {
  margin-top: 20px;
  box-sizing: border-box;
}

.reset-back {
  display: inline-block;
  margin-top: 24px;
  color: #2563EB;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.reset-back:hover {
  text-decoration: underline;
}

.reset-error {
  padding: 12px;
  margin-bottom: 18px;
  color: #B91C1C;
  background: #FEF2F2;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.reset-info {
  padding: 15px;
  margin: 20px 0;
  color: #1D4ED8;
  background: #EFF6FF;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.reset-help {
  color: #64748B;
  font-size: 13px;
  line-height: 1.6;
}

.reset-card .form-error-message {
  color: #DC2626;
  font-size: 12px;
}

@media (max-width: 480px) {
  .reset-card {
    padding: 32px 22px;
  }
  .reset-card h1 {
    font-size: 22px;
  }
}

/*# sourceMappingURL=style.css.map */
