/* ============================================================
   PAGE BIENVENUE (identification élève) — SaaS landing
   ============================================================ */

.bienvenue-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(160deg, #2D1B69 0%, #4834D4 30%, #6C5CE7 60%, #A29BFE 100%);
  position: relative;
  overflow: hidden;
}
/* Subtle animated background shapes */
.bienvenue-page::before,
.bienvenue-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}
.bienvenue-page::before {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, #ffd23f 0%, transparent 70%);
}
.bienvenue-page::after {
  width: 500px; height: 500px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
}

.bienvenue-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px 44px 40px;
  max-width: 560px;
  width: 100%;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(255, 255, 255, .08);
  text-align: center;
  position: relative;
  z-index: 1;
}

.bienvenue-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: bv-float 3s ease-in-out infinite;
}
@keyframes bv-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.bienvenue-title {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #134a5f);
  font-size: 2rem;
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.bienvenue-subtitle {
  color: var(--c-ink-soft, #6b7b8d);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.bienvenue-card form {
  text-align: left;
}

.bienvenue-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .92rem;
  margin-bottom: 14px;
  font-weight: 700;
  border: 2px solid var(--c-coral, #ff6b6b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bienvenue-error::before {
  content: '\26A0\FE0F';
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bienvenue-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 15px 22px;
  border-radius: 14px;
}

.bienvenue-skip {
  display: inline-block;
  margin-top: 22px;
  color: var(--c-ink-soft, #6b7b8d);
  font-size: .88rem;
  text-decoration: none;
  opacity: .8;
  transition: all .15s;
}
.bienvenue-skip:hover {
  opacity: 1;
  color: var(--c-coral, #e76f51);
  text-decoration: underline;
}

.bienvenue-offline {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .bienvenue-card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }
  .bienvenue-title {
    font-size: 1.5rem;
  }
  .bienvenue-emoji {
    font-size: 3rem;
  }
}

/* ============================================================
   Classement classe
   ============================================================ */

.lb-block {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 26px;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-yellow);
}

.lb-empty {
  text-align: center;
  padding: 10px 0;
}
.lb-empty-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: bounce 2s ease-in-out infinite;
}
.lb-empty h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.lb-empty p {
  color: var(--c-ink-soft);
  margin-bottom: 16px;
}
.lb-alt {
  font-size: .85rem;
  margin-top: 18px;
}
.lb-alt a {
  color: var(--c-coral);
  text-decoration: underline;
}

.lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lb-header h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.3rem;
  margin: 0 0 4px 0;
}
.lb-code {
  background: var(--c-yellow);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: .92rem;
  color: var(--c-teal-dark);
}
.lb-leave {
  background: none;
  border: 2px solid var(--c-ink-soft);
  color: var(--c-ink-soft);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.lb-leave:hover { background: var(--c-coral-soft); color: var(--c-coral); border-color: var(--c-coral); }

.lb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lb-row {
  display: grid;
  grid-template-columns: 45px 1fr 2fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: var(--c-cream);
  border-radius: var(--r-sm);
  font-size: .95rem;
}
.lb-row:nth-child(1) { background: #fff4c2; font-weight: 700; }
.lb-row:nth-child(2) { background: #eeeeee; font-weight: 600; }
.lb-row:nth-child(3) { background: #f5d9b1; font-weight: 600; }
.lb-me {
  outline: 3px solid var(--c-coral);
  outline-offset: -3px;
  background: var(--c-coral-soft) !important;
}
.lb-rank {
  font-family: var(--font-title);
  font-size: 1.15rem;
  text-align: center;
  font-weight: 800;
  color: var(--c-teal-dark);
}
.lb-prenom {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-teal-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-module {
  font-size: .82rem;
  color: var(--c-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-score {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--c-coral);
  font-size: 1.05rem;
}

.lb-empty-list {
  text-align: center;
  color: var(--c-ink-soft);
  font-style: italic;
  padding: 20px;
}

/* Modal rejoindre */
.lb-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 60, .55);
  backdrop-filter: blur(4px);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lb-fade .2s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-modal-box {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  border: 4px solid var(--c-coral);
  position: relative;
}
.lb-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--c-cream-2);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--c-ink-soft);
  font-weight: 700;
}
.lb-modal-box h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  margin-bottom: 4px;
}
.lb-modal-hint {
  color: var(--c-ink-soft);
  margin-bottom: 18px;
  font-size: .95rem;
}
.lb-field {
  display: block;
  margin-bottom: 14px;
}
.lb-field > span {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-teal-dark);
  margin-bottom: 4px;
  font-size: .9rem;
}
.lb-field input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--c-cream-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.lb-field input:focus { border-color: var(--c-coral); }

.lb-error {
  background: var(--c-coral-soft);
  color: #9c2626;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.lb-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 500px) {
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-module { display: none; }
}

@media print {
  .lb-block, .lb-modal { display: none !important; }
}

/* ============================================================
   PAGE PROF
   ============================================================ */
.prof-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.prof-choice {
  background: var(--c-cream);
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 2px solid var(--c-cream-2);
}
.prof-choice h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.prof-choice p {
  font-size: .92rem;
  color: var(--c-ink-soft);
  margin-bottom: 14px;
}

.prof-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.prof-dashboard-head h2 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  margin-bottom: 4px;
}
.prof-hint {
  font-size: .9rem;
  color: var(--c-ink-soft);
  font-style: italic;
  margin-top: 6px;
}
.prof-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.prof-stat {
  background: var(--c-yellow-soft);
  padding: 16px;
  border-radius: var(--r-md);
  text-align: center;
  border: 2px solid var(--c-yellow);
}
.prof-stat-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-coral);
  line-height: 1;
}
.prof-stat-label {
  font-size: .85rem;
  color: var(--c-ink-soft);
  margin-top: 4px;
  font-weight: 600;
}

.prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.prof-table th, .prof-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--c-cream-2);
}
.prof-table th {
  background: var(--c-cream);
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.prof-th-right { text-align: right !important; }
.prof-table tbody tr:hover { background: var(--c-yellow-soft); }
.prof-score {
  text-align: right;
  font-family: var(--font-title);
  font-weight: 800;
}
.prof-score.pass { color: #1a6b4a; }
.prof-score.fail { color: #9c2626; }

/* ============================================================
   PROF — GRILLE MES CLASSES
   ============================================================ */
.prof-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.prof-class-card {
  background: var(--c-cream);
  border: 2px solid var(--c-cream-2);
  border-radius: var(--r-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.prof-class-card:hover {
  border-color: var(--c-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.prof-class-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prof-class-card-teacher {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-weight: 700;
  font-size: .95rem;
  margin: 0;
}
.prof-class-card-count {
  font-size: .82rem;
  color: var(--c-ink-soft);
  margin: 4px 0 0;
}
.prof-class-remove {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  transition: all .15s;
}
.prof-class-remove:hover {
  background: var(--c-coral-soft);
  color: #9c2626;
}
.prof-class-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--c-teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
}
.prof-class-copy:hover {
  background: var(--c-teal-dark);
}

/* ============================================================
   ONGLETS PROF (hub enseignant)
   ============================================================ */
.prof-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 3px solid var(--c-cream-2);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prof-tab {
  padding: 12px 22px;
  background: var(--c-cream);
  border: 2px solid var(--c-cream-2);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.prof-tab:hover {
  background: var(--c-yellow-soft);
  color: var(--c-teal-dark);
}
.prof-tab.active {
  background: #fff;
  color: var(--c-teal-dark);
  border-color: var(--c-cream-2);
  border-bottom: 3px solid #fff;
  margin-bottom: -3px;
}
.prof-tab i { margin-right: 6px; }

.prof-tab-panel {
  display: none;
}
.prof-tab-panel.active {
  display: block;
  animation: lb-fade .25s ease;
}

/* ============================================================
   GUIDE PÉDAGOGIQUE
   ============================================================ */
.prof-guide-section {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--c-teal);
}
.prof-guide-section.competence { border-left-color: var(--c-coral); }
.prof-guide-section.programme { border-left-color: var(--c-yellow); }
.prof-guide-section.usage { border-left-color: var(--c-lilac); }

.prof-guide-section h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.prof-guide-section h4 {
  font-family: var(--font-title);
  color: var(--c-coral);
  font-size: 1rem;
  margin: 14px 0 6px;
}
.prof-guide-section ul {
  padding-left: 20px;
  margin: 8px 0;
}
.prof-guide-section li {
  font-size: .95rem;
  margin-bottom: 6px;
  line-height: 1.5;
}
.prof-guide-section p {
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ============================================================
   CORRECTIONS
   ============================================================ */
.prof-correction-block {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--c-teal);
}
.prof-correction-block h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.prof-correction-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-cream-2);
}
.prof-correction-item:last-child { border-bottom: none; }

.prof-correction-q {
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
  font-size: .95rem;
}
.prof-correction-a {
  color: #1a6b4a;
  font-weight: 700;
  font-size: .92rem;
}
.prof-correction-a::before {
  content: '✓ ';
  color: var(--c-mint);
}
.prof-correction-feedback {
  font-size: .88rem;
  color: var(--c-ink-soft);
  margin-top: 2px;
  font-style: italic;
}

/* Lois (jeu ordre) */
.prof-lois-order {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.prof-lois-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--c-cream);
  border-radius: var(--r-sm);
}
.prof-lois-rank {
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  background: var(--c-teal);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.prof-lois-year {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--c-coral);
  font-size: 1.05rem;
  min-width: 50px;
}
.prof-lois-desc {
  font-size: .92rem;
  color: var(--c-ink);
}

/* ============================================================
   RESSOURCES
   ============================================================ */
.prof-resource-section {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--c-mint);
}
.prof-resource-section h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.prof-resource-section h4 {
  font-family: var(--font-title);
  color: var(--c-coral);
  font-size: 1rem;
  margin: 14px 0 6px;
}
.prof-resource-section ul {
  padding-left: 20px;
  margin: 8px 0;
}
.prof-resource-section li {
  font-size: .95rem;
  margin-bottom: 6px;
  line-height: 1.5;
}
.prof-resource-section p {
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.prof-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--c-teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  margin-top: 12px;
  transition: all .15s;
}
.prof-btn-print:hover {
  background: var(--c-teal-dark);
  transform: translateY(-2px);
}

/* ============================================================
   PROF — GRAPHIQUES DÉTAILLÉS
   ============================================================ */
.prof-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.prof-chart-block {
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--c-teal);
}
.prof-chart-block h4 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1rem;
  margin-bottom: 14px;
}
.prof-chart-block h4 i { margin-right: 6px; color: var(--c-coral); }

/* Barres horizontales */
.prof-bars { display: flex; flex-direction: column; gap: 8px; }
.prof-bar-row { display: flex; align-items: center; gap: 8px; }
.prof-bar-label {
  font-size: .78rem;
  color: var(--c-ink-soft);
  min-width: 100px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-bar-track {
  flex: 1;
  height: 14px;
  background: var(--c-cream);
  border-radius: 50px;
  overflow: hidden;
}
.prof-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width .5s ease;
}
.prof-bar-pct {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .82rem;
  color: var(--c-teal-dark);
  min-width: 36px;
  text-align: right;
}

/* Timeline verticale */
.prof-timeline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-top: 10px;
}
.prof-timeline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.prof-timeline-bar {
  width: 100%;
  max-width: 24px;
  background: linear-gradient(180deg, var(--c-coral) 0%, var(--c-teal) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height .4s ease;
}
.prof-timeline-col span {
  font-size: .62rem;
  color: var(--c-ink-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Top élèves */
.prof-top-list { display: flex; flex-direction: column; gap: 6px; }
.prof-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--c-cream);
  border-radius: var(--r-sm);
}
.prof-top-medal { font-size: 1.2rem; }
.prof-top-name {
  flex: 1;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-teal-dark);
  font-size: .92rem;
}
.prof-top-avg {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--c-coral);
  font-size: 1rem;
}

/* ============================================================
   PARCOURS TABLE (prof.html — grille de progression)
   ============================================================ */
.parcours-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 12px; }
.parcours-table th, .parcours-table td { padding: 8px 10px; text-align: center; border: 1px solid var(--eq-border, #E8ECF0); }
.parcours-table th { background: var(--eq-bg, #F8F9FC); font-weight: 700; font-size: .78rem; }
.parcours-table th:first-child, .parcours-table td:first-child { text-align: left; font-weight: 600; }
.parcours-cell { display: inline-block; width: 22px; height: 22px; border-radius: 6px; line-height: 22px; font-size: .7rem; }
.parcours-completed { background: var(--eq-green, #00B894); color: #fff; }
.parcours-started { background: var(--eq-yellow, #FDCB6E); color: #333; }
.parcours-failed { background: var(--eq-coral, #FF6B6B); color: #fff; }
.parcours-none { background: var(--eq-border, #E8ECF0); color: #999; }

/* ============================================================
   INVITATIONS PARENTS (prof.html)
   ============================================================ */
.prof-invitations-section {
  background: var(--c-cream, #fdf6ec);
  border: 2px solid var(--c-cream-2, #e8dcc8);
  border-radius: var(--r-md, 14px);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.prof-invitations-section h3 {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #155263);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.prof-invitations-section h3 i {
  margin-right: 8px;
  color: var(--c-coral, #e76f51);
}
.prof-inv-create {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.inv-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--c-teal, #2a9d8f);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
}
.inv-copy-btn:hover {
  background: var(--c-teal-dark, #155263);
}

/* ============================================================
   INVITATION PANEL (bienvenue.html)
   ============================================================ */
.bv-invitation-status {
  text-align: center;
  padding: 30px 10px;
}

/* ============================================================
   IMPRESSION PROF
   ============================================================ */
@media print {
  .prof-tabs, .mode-switch, .mod-footer, .eq-navbar, .eq-footer { display: none !important; }
  .prof-tab-panel { display: block !important; page-break-inside: avoid; }
  .prof-tab-panel + .prof-tab-panel { margin-top: 30px; border-top: 2px solid #999; padding-top: 20px; }
  .prof-correction-block, .prof-guide-section, .prof-resource-section {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  .prof-btn-print { display: none !important; }
}

/* ============================================================
   MOBILE ONGLETS
   ============================================================ */
@media (max-width: 640px) {
  .prof-tabs {
    gap: 2px;
  }
  .prof-tab {
    padding: 10px 14px;
    font-size: .82rem;
  }
  .prof-tab i { display: none; }
  .prof-guide-section, .prof-correction-block, .prof-resource-section {
    padding: 18px 16px;
  }
}

/* ============================================================
   SÉLECTION DE RÔLE (bienvenue.html)
   ============================================================ */
.bv-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.bv-role-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 12px 22px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34, 1.2, .64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bv-role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s;
  border-radius: 14px;
}
.bv-role-card[data-role="eleve"]::before  { background: linear-gradient(135deg, rgba(30,111,140,.06), rgba(42,157,143,.06)); }
.bv-role-card[data-role="prof"]::before   { background: linear-gradient(135deg, rgba(231,111,81,.06), rgba(255,107,107,.06)); }
.bv-role-card[data-role="parent"]::before { background: linear-gradient(135deg, rgba(184,161,217,.08), rgba(124,92,191,.06)); }
.bv-role-card:hover::before { opacity: 1; }
.bv-role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.bv-role-card[data-role="eleve"]:hover  { border-color: #1e6f8c; }
.bv-role-card[data-role="prof"]:hover   { border-color: #ff6b6b; }
.bv-role-card[data-role="parent"]:hover { border-color: #b8a1d9; }
.bv-role-card .bv-role-emoji {
  font-size: 2.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.bv-role-card .bv-role-label {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  color: var(--c-teal-dark, #134a5f);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.bv-role-card .bv-role-sub {
  font-size: .75rem;
  color: var(--c-ink-soft, #6b7b8d);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.bv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--c-teal, #2a9d8f);
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  margin-bottom: 18px;
  padding: 0;
}
.bv-back:hover { text-decoration: underline; }

.bv-form-panel {
  animation: bv-fade-in .3s ease;
}
@keyframes bv-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bv-welcome-back {
  margin-top: 24px;
  padding: 22px 20px;
  background: var(--c-cream, #fdf6ec);
  border: 2px solid var(--c-lilac, #b8a1d9);
  border-radius: var(--r-md, 14px);
  text-align: center;
  animation: bv-fade-in .3s ease;
}
.bv-welcome-back .bv-wb-emoji { font-size: 2.2rem; margin-bottom: 6px; }
.bv-welcome-back .bv-wb-text {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #155263);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.bv-welcome-back .bv-wb-name {
  color: var(--c-coral, #ff6b6b);
}
.bv-welcome-back .bv-wb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--c-lilac, #b8a1d9);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .15s;
}
.bv-welcome-back .bv-wb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 161, 217, .4);
}
.bv-welcome-back .bv-wb-logout {
  display: block;
  margin-top: 10px;
  background: none;
  border: none;
  font-size: .82rem;
  color: var(--c-ink-soft, #6b7b8d);
  cursor: pointer;
  text-decoration: underline;
}
.bv-welcome-back .bv-wb-logout:hover { color: var(--c-coral, #ff6b6b); }

/* Liens légaux discrets sous la carte bienvenue */
.bv-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.bv-legal-links a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  transition: color .15s;
}
.bv-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.bv-legal-links span {
  color: rgba(255, 255, 255, .35);
  font-size: .78rem;
}

@media (max-width: 600px) {
  .bv-roles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bv-role-card {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .bv-role-card .bv-role-emoji { font-size: 2rem; margin-bottom: 0; }
  .bv-role-card .bv-role-sub { margin-top: 2px; }
}

/* ============================================================
   DASHBOARD PARENT (parent.html) — Style VTC-inspired
   ============================================================ */

/* --- Gradient metric cards --- */
.parent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.parent-stat-card {
  border-radius: 20px;
  padding: 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  animation: p-fade-up .4s ease both;
}
.parent-stat-card:nth-child(1) { background: linear-gradient(135deg, #1e6f8c, #2a9d8f); animation-delay: .05s; }
.parent-stat-card:nth-child(2) { background: linear-gradient(135deg, #e76f51, #ff6b6b); animation-delay: .10s; }
.parent-stat-card:nth-child(3) { background: linear-gradient(135deg, #b8a1d9, #7c5cbf); animation-delay: .15s; }
.parent-stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.parent-stat-card .ps-icon {
  font-size: 1.3rem;
  opacity: .85;
  margin-bottom: 8px;
}
.parent-stat-card .ps-value {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.parent-stat-card .ps-label {
  font-size: .82rem;
  opacity: .85;
  font-weight: 600;
}

@keyframes p-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Score ring (SVG) --- */
.parent-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  animation: p-fade-up .5s ease both;
  animation-delay: .2s;
}
.parent-ring-container {
  position: relative;
  flex-shrink: 0;
}
.parent-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.parent-ring-text .pr-val {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-teal-dark, #155263);
  line-height: 1;
}
.parent-ring-text .pr-lbl {
  font-size: .7rem;
  color: var(--c-ink-soft, #6b7b8d);
  font-weight: 600;
}
.parent-ring-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.parent-ring-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--c-ink, #2a2438);
}
.parent-ring-legend-item .pr-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Radar chart section --- */
.parent-radar-section {
  background: #fff;
  border-radius: var(--r-md, 14px);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  animation: p-fade-up .5s ease both;
  animation-delay: .25s;
}
.parent-radar-section h3 {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #155263);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.parent-radar-section h3 i {
  margin-right: 8px;
  color: var(--c-coral, #ff6b6b);
}
.parent-radar-wrap {
  max-width: 420px;
  margin: 0 auto;
}

/* --- Bar chart section --- */
.parent-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.parent-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.parent-bar-label {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-teal-dark, #155263);
  min-width: 110px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.parent-bar-track {
  flex: 1;
  height: 16px;
  background: var(--c-cream-2, #fceec9);
  border-radius: 50px;
  overflow: hidden;
}
.parent-bar-fill {
  height: 100%;
  border-radius: 50px;
  min-width: 0;
  width: 0;
  transition: width .9s cubic-bezier(.34, 1.56, .64, 1);
}
.parent-bar-fill.clr-teal   { background: linear-gradient(90deg, #1e6f8c, #2a9d8f); }
.parent-bar-fill.clr-coral  { background: linear-gradient(90deg, #e76f51, #ff6b6b); }
.parent-bar-fill.clr-yellow { background: linear-gradient(90deg, #e9c46a, #ffd23f); }
.parent-bar-fill.clr-lilac  { background: linear-gradient(90deg, #9b7cc7, #b8a1d9); }
.parent-bar-fill.clr-mint   { background: linear-gradient(90deg, #56c4a5, #7fd8be); }
.parent-bar-fill.clr-blue   { background: linear-gradient(90deg, #3a86c6, #5fa8d3); }
.parent-bar-pct {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-teal-dark, #155263);
  min-width: 40px;
  text-align: right;
}

/* --- Sections --- */
.parent-section {
  background: #fff;
  border-radius: var(--r-md, 14px);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  animation: p-fade-up .5s ease both;
}
.parent-section:nth-of-type(1) { animation-delay: .3s; }
.parent-section:nth-of-type(2) { animation-delay: .35s; }
.parent-section:nth-of-type(3) { animation-delay: .4s; }
.parent-section h3 {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #155263);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.parent-section h3 i {
  margin-right: 8px;
  color: var(--c-coral, #ff6b6b);
}

/* --- Module cards with progress bars --- */
.parent-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.parent-mod-card {
  background: var(--c-cream, #fdf6ec);
  border: 2px solid var(--c-cream-2, #e8dcc8);
  border-radius: var(--r-md, 14px);
  padding: 18px 16px 14px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.parent-mod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.parent-mod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c-cream-2, #e8dcc8);
}
.parent-mod-card.done::before       { background: linear-gradient(90deg, #1e6f8c, #2a9d8f); }
.parent-mod-card.attempted::before  { background: linear-gradient(90deg, #e9c46a, #ffd23f); }
.parent-mod-card.not-started::before { background: var(--c-cream-2, #e8dcc8); }
.parent-mod-card.done       { border-color: #2a9d8f; }
.parent-mod-card.attempted  { border-color: #e9c46a; }
.parent-mod-card.not-started { border-color: var(--c-cream-2, #e8dcc8); }
.parent-mod-card .parent-mod-emoji { font-size: 2rem; margin-bottom: 8px; }
.parent-mod-card .parent-mod-name {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-teal-dark, #155263);
  margin-bottom: 6px;
}
.parent-mod-card .parent-mod-score {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}
.parent-mod-card.done .parent-mod-score       { color: #1a6b4a; }
.parent-mod-card.attempted .parent-mod-score  { color: #b8860b; }
.parent-mod-card .parent-mod-status {
  font-size: .78rem;
  color: var(--c-ink-soft, #6b7b8d);
  font-weight: 600;
  margin-bottom: 10px;
}
.parent-mod-card .parent-mod-status .fa-check-circle { color: #2a9d8f; }
.parent-mod-card .parent-mod-status .fa-clock { color: #e9c46a; }
.parent-mod-card .parent-mod-status .fa-minus-circle { color: var(--c-ink-soft, #6b7b8d); }
.parent-mod-bar {
  height: 6px;
  background: rgba(0,0,0,.06);
  border-radius: 50px;
  overflow: hidden;
}
.parent-mod-bar-fill {
  height: 100%;
  border-radius: 50px;
  width: 0;
  transition: width .9s cubic-bezier(.34, 1.56, .64, 1);
}
.parent-mod-card.done .parent-mod-bar-fill       { background: linear-gradient(90deg, #1e6f8c, #2a9d8f); }
.parent-mod-card.attempted .parent-mod-bar-fill  { background: linear-gradient(90deg, #e9c46a, #ffd23f); }

/* --- Timeline --- */
.parent-tl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-cream-2, #e8dcc8);
  font-size: .92rem;
  transition: background .15s;
}
.parent-tl-row:hover { background: var(--c-cream, #fdf6ec); }
.parent-tl-row:last-child { border-bottom: none; }
.parent-tl-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: #fff;
  flex-shrink: 0;
}
.parent-tl-icon.pass { background: linear-gradient(135deg, #1e6f8c, #2a9d8f); }
.parent-tl-icon.fail { background: linear-gradient(135deg, #e76f51, #ff6b6b); }
.parent-tl-date {
  font-size: .78rem;
  color: var(--c-ink-soft, #6b7b8d);
  min-width: 70px;
  white-space: nowrap;
}
.parent-tl-module {
  flex: 1;
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  color: var(--c-teal-dark, #155263);
  font-size: .88rem;
}
.parent-tl-score {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 1rem;
}
.parent-tl-score.pass { color: #1a6b4a; }
.parent-tl-score.fail { color: #9c2626; }

/* --- Parcours progress bar (parent.html) --- */
.parent-parcours-pct {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eq-primary, #6C5CE7);
}
.parent-parcours-track {
  background: var(--eq-border, #E8ECF0);
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
}
.parent-parcours-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--eq-primary, #6C5CE7), var(--eq-primary-light, #A29BFE));
  width: 0%;
  transition: width 1s ease;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .parent-stats { grid-template-columns: 1fr; }
  .parent-stat-card { padding: 18px 16px; }
  .parent-ring-wrap { flex-direction: column; text-align: center; }
  .parent-bar-label { min-width: 80px; max-width: 100px; font-size: .75rem; }
  .parent-modules-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal-section h3 {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-teal-dark, #155263);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.legal-section h3 i {
  margin-right: 8px;
  color: var(--c-teal, #2a9d8f);
}
.legal-section h4 {
  font-family: var(--font-title, 'Inter', sans-serif);
  color: var(--c-coral, #e76f51);
  font-size: 1rem;
  margin: 16px 0 6px;
}
.legal-section p {
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.legal-section ul {
  padding-left: 22px;
  margin: 8px 0 12px;
}
.legal-section li {
  font-size: .95rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ============================================================
   FAQ ACCORDÉON (details/summary natif)
   ============================================================ */
.faq-details {
  border: none;
}
.faq-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-teal-dark, #155263);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .75rem;
  margin-left: auto;
  transition: transform .25s ease;
  color: var(--c-teal, #2a9d8f);
}
.faq-details[open] > .faq-summary::after {
  transform: rotate(180deg);
}
.faq-summary i {
  color: var(--c-coral, #e76f51);
}
.faq-content {
  padding-top: 14px;
}

/* ============================================================
   FOOTER ENRICHI (liens légaux)
   ============================================================ */
.mod-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mod-footer-links a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: color .15s;
}
.mod-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   SKIP-TO-CONTENT (accessibilité)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--c-teal-dark, #155263);
  color: #fff;
  font-family: var(--font-title, 'Inter', sans-serif);
  font-weight: 700;
  border-radius: 0 0 var(--r-sm, 8px) var(--r-sm, 8px);
  text-decoration: none;
}
.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   FOCUS VISIBLE (accessibilité)
   ============================================================ */
*:focus-visible {
  outline: 3px solid var(--c-teal, #2a9d8f);
  outline-offset: 2px;
}

/* ============================================================
   REDUCED MOTION (accessibilité)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
