/* ============================================================
   ArchiMind Academy — Espace élève premium v2.22
   Connexion sécurisée + fiche élève plus fine
============================================================ */
.student-body{
  min-height:100vh;
  background:linear-gradient(180deg,#faf7f3 0%,#f7f3ef 52%,#f5f5f5 100%);
  color:#2a1f1a;
}
.student-shell{max-width:1120px;margin:0 auto;padding:28px 22px 56px;}
.student-hero,
.student-card-panel,
.student-profile-card,
.student-course-card,
.student-module-card,
.student-auth-card{
  border:1px solid #a8827a;
  background:#fff;
  box-shadow:0 10px 28px rgba(42,31,26,.055);
}
.student-hero{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin-bottom:18px;padding:22px 24px;border-radius:24px;
  background:linear-gradient(135deg,#fff 0%,#fff7f3 100%);
}
.student-hero h1{margin:0 0 8px;font-size:34px;line-height:1.04;letter-spacing:-.04em;font-weight:950;color:#2a1f1a;}
.student-hero p{margin:0;color:#76665d;font-size:14px;line-height:1.45;}
.student-admin-link,
.student-auth-links a{
  display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 16px;border-radius:999px;
  border:1px solid #a8827a;background:#fff;color:#5b3a3a;text-decoration:none;font-size:12px;font-weight:950;white-space:nowrap;
}
.student-admin-link:hover,.student-auth-links a:hover{background:#fffaf7;text-decoration:none;}
.student-card-panel{padding:20px;border-radius:22px;margin-bottom:18px;}
.student-card-panel h2{margin:0 0 12px;font-size:22px;line-height:1.12;letter-spacing:-.025em;color:#2a1f1a;}
.student-help,.student-muted{color:#76665d;font-size:13px;line-height:1.45;margin:10px 0 0;}
.student-profile-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:22px;margin-bottom:14px;}
.student-profile-card h2{margin:0 0 5px;font-size:21px;line-height:1.12;letter-spacing:-.025em;color:#2a1f1a;}
.student-profile-card p{margin:0;color:#76665d;font-size:13px;}
.student-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:8px;border:1px solid #a8827a;border-radius:22px;background:rgba(255,255,255,.74);box-shadow:0 8px 22px rgba(42,31,26,.04);}
.student-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border-radius:999px;border:1px solid transparent;background:transparent;color:#5b3a3a;text-decoration:none;font-size:12px;font-weight:950;}
.student-tabs a:hover{background:#fffaf7;border-color:#a8827a;text-decoration:none;}
/* L'espace eleve n'avait aucun anneau de focus. Il s'y navigue pourtant au
   clavier — et c'est le seul ecran que des personnes exterieures utilisent. */
.student-tabs a:focus-visible,
.student-admin-link:focus-visible,
.student-auth-links a:focus-visible{outline:2px solid #8f6a60;outline-offset:3px;}
.student-tabs a.is-active{background:#a35839;border-color:transparent;color:#fff;box-shadow:0 8px 18px rgba(125,79,48,.16);}
.student-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;}
.student-form-grid label,.student-auth-form label{display:block;margin:0 0 6px;color:#76665d;font-size:12px;font-weight:950;}
.student-form-grid input,.student-auth-form input{width:100%;min-height:40px;border:1px solid #a8827a;border-radius:14px;background:#fff;padding:9px 12px;font:inherit;font-size:13px;color:#2a1f1a;}
.student-form-grid input:disabled{background:#f7f3ef;color:#8a7a70;}
.student-full{grid-column:1/-1;}.student-form-actions{display:flex;justify-content:flex-end;margin-top:2px;}
.student-actions-line{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.student-security-panel{background:linear-gradient(180deg,#fff,#fffaf7);}
.student-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.student-info-grid>div{border:1px solid #a8827a;border-radius:17px;background:#fffaf7;padding:13px;min-height:76px;}
.student-info-grid span{display:block;color:#8a7a70;font-size:11px;font-weight:950;margin-bottom:7px;text-transform:uppercase;letter-spacing:.06em;}
.student-info-grid strong{display:block;color:#2a1f1a;font-size:14px;line-height:1.25;}
.student-section-title{font-size:17px;margin:22px 0 10px;color:#2a1f1a;}
.student-table-wrap{width:100%;overflow:auto;border:1px solid #a8827a;border-radius:18px;background:#fff;}
.student-table-wrap table{width:100%;border-collapse:separate;border-spacing:0;}
.student-table-wrap th{background:#f6ece8;color:#5b3a3a;font-size:11px;text-transform:uppercase;letter-spacing:.06em;padding:11px 13px;}
.student-table-wrap td{padding:13px;border-bottom:1px solid #eee5df;vertical-align:middle;font-size:13px;}
.student-table-wrap tr:last-child td{border-bottom:0;}
.student-doc-list{display:flex;flex-direction:column;gap:11px;margin-top:12px;}
.student-doc-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:13px;align-items:center;border:1px solid #a8827a;border-radius:17px;background:#fffaf7;padding:13px;}
.student-doc-item span{display:inline-flex;margin-bottom:5px;color:#7d4f30;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.07em;}
.student-doc-item strong{display:block;color:#2a1f1a;font-size:14px;}.student-doc-item p{margin:4px 0 0;color:#76665d;font-size:13px;}.student-doc-item em{font-style:normal;color:#8a7a70;font-size:12px;font-weight:850;white-space:nowrap;}
.student-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.student-course-card{padding:20px;border-radius:22px;display:flex;flex-direction:column;gap:14px;}.student-course-card h3{font-size:22px;margin:0 0 7px;line-height:1.08;}.student-course-card p{margin:0;color:#76665d;font-size:13px;}
.student-module-list{display:flex;flex-direction:column;gap:16px;}.student-module-card{padding:20px;border-radius:22px;}.student-module-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}.student-module-card h2{font-size:24px;margin:0 0 7px;letter-spacing:-.03em;}.student-module-card header p{margin:0;color:#76665d;font-size:13px;}.student-module-card.is-locked{background:linear-gradient(180deg,#fff 0%,#fbf8f6 100%);opacity:.88;}
.student-content-section{margin-top:18px;}.student-content-section h3{font-size:15px;margin:0 0 10px;color:#5b3a3a;}.student-content-list{display:flex;flex-direction:column;gap:9px;}.student-content-item{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 13px;border:1px solid #a8827a;border-radius:16px;background:#fffaf7;}.student-content-item span{font-size:11px;font-weight:950;color:#7d4f30;text-transform:uppercase;letter-spacing:.06em;}.student-content-item strong{font-size:13px;color:#2a1f1a;}.student-content-item em{font-style:normal;font-size:12px;font-weight:900;color:#76665d;}.student-content-item.is-locked{opacity:.62;background:#f6f2ef;}.student-content-item .btn{min-height:34px;height:34px;min-width:92px;padding:0 14px;}
.progress-wrap{overflow:visible;}.progress-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px;line-height:1.25;color:#76665d;font-size:12px;}.progress-percent,.progress-value{font-weight:950;color:#116b38;white-space:nowrap;}.progress-track{height:14px;border-radius:999px;background:#eee6df;border:1px solid #e4d5c9;overflow:hidden;}.progress-fill{height:100%;background:linear-gradient(90deg,#2ecc71,#27ae60);}
.student-auth-body{display:flex;align-items:center;justify-content:center;padding:28px 14px;}.student-auth-shell{width:min(520px,100%);}.student-auth-card{border-radius:26px;padding:30px;background:linear-gradient(135deg,#fff 0%,#fff7f3 100%);}.student-auth-card h1{margin:0 0 10px;font-size:34px;line-height:1.04;letter-spacing:-.04em;color:#2a1f1a;}.student-auth-form{display:flex;flex-direction:column;gap:14px;margin-top:18px;}.student-auth-form button{width:100%;}.student-auth-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}.student-auth-links a{flex:1 1 auto;}
@media(max-width:900px){.student-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.student-tabs a{flex:1 1 auto;}.student-course-grid{grid-template-columns:1fr;}}
@media(max-width:760px){.student-shell{padding:18px 14px 44px}.student-hero,.student-profile-card,.student-module-card header{flex-direction:column}.student-hero h1,.student-auth-card h1{font-size:30px}.student-form-grid,.student-info-grid{grid-template-columns:1fr}.student-doc-item{grid-template-columns:1fr;gap:7px}.student-content-item{grid-template-columns:1fr;gap:7px}.student-module-card h2{font-size:21px}.student-form-actions{justify-content:flex-start}.student-auth-card{padding:24px 20px;}}


/* ============================================================
   PATCH 2.22c — carte formation élève : bouton + progression propres
============================================================ */
.student-body .student-course-card{
  gap:16px !important;
}
.student-body .student-progress{
  width:100% !important;
  display:block !important;
  margin:2px 0 0 !important;
}
.student-body .student-progress-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin:0 0 8px !important;
  padding:0 !important;
  color:#76665d !important;
  font-size:12px !important;
  line-height:16px !important;
  font-weight:850 !important;
}
.student-body .student-progress-head span,
.student-body .student-progress-head strong{
  display:block !important;
  line-height:16px !important;
  white-space:nowrap !important;
}
.student-body .student-progress-head strong{
  color:#116b38 !important;
  font-weight:950 !important;
}
.student-body .student-progress-track{
  width:100% !important;
  height:12px !important;
  min-height:12px !important;
  border-radius:999px !important;
  background:#eee6df !important;
  border:1px solid #e4d5c9 !important;
  overflow:hidden !important;
  box-shadow:inset 0 1px 2px rgba(42,31,26,.045) !important;
}
.student-body .student-progress-track > span{
  display:block !important;
  height:100% !important;
  min-height:100% !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#2ecc71 0%,#27ae60 100%) !important;
}
.student-body .student-course-card > .btnPrimary,
.student-body .student-course-card > a.btnPrimary{
  width:auto !important;
  min-width:128px !important;
  max-width:max-content !important;
  min-height:40px !important;
  height:40px !important;
  padding:0 22px !important;
  margin-top:2px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  border:1px solid rgba(125,79,48,.18) !important;
  background:#a35839 !important;
  color:#fff !important;
  text-decoration:none !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:950 !important;
  box-shadow:0 9px 18px rgba(125,79,48,.18) !important;
}
.student-body .student-course-card > .btnPrimary:hover,
.student-body .student-course-card > a.btnPrimary:hover{
  transform:translateY(-1px);
  filter:none !important;
  text-decoration:none !important;
  box-shadow:0 13px 24px rgba(125,79,48,.22) !important;
}

/* On neutralise les anciennes barres si un rendu global les influence encore */
.student-body .student-course-card .progress-wrap,
.student-body .student-course-card .progress-label,
.student-body .student-course-card .progress-track,
.student-body .student-course-card .progress,
.student-body .student-course-card .progressbar{
  overflow:visible;
}


/* ============================================================
   PATCH 2.24 — Paiement / compta côté élève
   Branche les dossiers payments.json en lecture seule
============================================================ */
.student-body .student-payment-panel{
  overflow:hidden;
}
.student-body .student-payment-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.student-body .student-payment-head h2{
  margin:0 0 8px;
}
.student-body .student-payment-alert{
  margin:12px 0 16px !important;
}
.student-body .student-payment-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px 0 4px;
}
.student-body .student-payment-summary-grid > div,
.student-body .student-payment-reminders > div,
.student-body .student-payment-money > div{
  border:1px solid #a8827a;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);
  padding:14px;
}
.student-body .student-payment-summary-grid span,
.student-body .student-payment-reminders span,
.student-body .student-payment-money span{
  display:block;
  margin-bottom:7px;
  color:#8a7a70;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.065em;
}
.student-body .student-payment-summary-grid strong,
.student-body .student-payment-reminders strong,
.student-body .student-payment-money strong{
  display:block;
  color:#2a1f1a;
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.student-body .student-empty-state{
  margin-top:16px;
  border:1px dashed #a8827a;
  border-radius:20px;
  background:#fffaf7;
  padding:20px;
}
.student-body .student-empty-state h3{
  margin:0 0 8px;
  color:#2a1f1a;
}
.student-body .student-empty-state p{
  margin:0 0 14px;
  color:#76665d;
  font-size:13px;
  line-height:1.45;
}
.student-body .student-payment-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:12px;
}
.student-body .student-payment-item{
  display:grid;
  grid-template-columns:minmax(210px,1.2fr) minmax(240px,1fr) minmax(220px,.9fr);
  gap:14px;
  align-items:stretch;
  border:1px solid #a8827a;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 24px rgba(42,31,26,.045);
  padding:16px;
}
.student-body .student-payment-item-main h3{
  margin:0 0 7px;
  color:#2a1f1a;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.025em;
}
.student-body .student-payment-item-main p:not(.eyebrow),
.student-body .student-payment-meta p{
  margin:6px 0 0;
  color:#76665d;
  font-size:13px;
  line-height:1.35;
}
.student-body .student-payment-money{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.student-body .student-payment-meta{
  display:flex;
  align-items:flex-start;
  align-content:flex-start;
  flex-wrap:wrap;
  gap:8px;
}
.student-body .student-payment-meta p{
  flex:1 1 100%;
}
.student-body .student-payment-reminders{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.student-body .badge.suspended{
  background:#fff0ee !important;
  border-color:#f1c7c0 !important;
  color:#c0392b !important;
}
.student-body .badge.archived{
  background:#f3f3f3 !important;
  border-color:#e2e2e2 !important;
  color:#777 !important;
}
@media(max-width:980px){
  .student-body .student-payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .student-body .student-payment-item{grid-template-columns:1fr;}
  .student-body .student-payment-reminders{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .student-body .student-payment-head{flex-direction:column;}
  .student-body .student-payment-summary-grid,
  .student-body .student-payment-money{grid-template-columns:1fr;}
}


/* ============================================================
   PATCH — Lives côté élève
============================================================ */
.student-body .student-lives-panel{
  background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);
}
.student-body .student-lives-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.student-body .student-lives-head h2{margin:0 0 6px;}
.student-body .student-live-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.student-body .student-live-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px 15px;
  border:1px solid #a8827a;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(42,31,26,.035);
}
.student-body .student-live-item span{
  display:inline-flex;
  margin-bottom:6px;
  color:#7d4f30;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.student-body .student-live-item strong{
  display:block;
  color:#2a1f1a;
  font-size:15px;
  line-height:1.2;
}
.student-body .student-live-item p{
  margin:5px 0 0;
  color:#76665d;
  font-size:13px;
}
.student-body .student-live-item em{
  font-style:normal;
  color:#8a7a70;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
@media(max-width:760px){
  .student-body .student-lives-head{flex-direction:column;}
  .student-body .student-live-item{grid-template-columns:1fr;}
}


/* ============================================================
   Student — Documents / Avis / Parrainage
============================================================ */
.student-documents-panel .student-payment-head,
.student-review-panel .student-payment-head,
.student-referral-panel .student-payment-head{margin-bottom:16px;}
.student-review-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;}
.student-review-form textarea{width:100%;border:1px solid #a8827a;border-radius:14px;background:#fff;padding:11px 13px;font:inherit;font-size:13px;color:#2a1f1a;resize:vertical;}
.student-review-form select{width:100%;min-height:40px;border:1px solid #a8827a;border-radius:14px;background:#fff;padding:9px 12px;font:inherit;font-size:13px;color:#2a1f1a;}
.student-form-actions-split{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.student-check{display:inline-flex;align-items:center;gap:8px;margin:0;color:#76665d;font-size:12px;font-weight:900;}
.student-check input{width:auto;min-height:auto;}
.student-mini-list{display:flex;flex-direction:column;gap:10px;margin-top:12px;}
.student-mini-list article{border:1px solid #a8827a;border-radius:17px;background:#fffaf7;padding:13px;}
.student-mini-list strong{display:block;color:#2a1f1a;font-size:14px;margin-bottom:4px;}
.student-mini-list span{display:block;color:#7d4f30;font-size:12px;font-weight:900;margin-bottom:6px;}
.student-mini-list p{margin:0;color:#76665d;font-size:13px;line-height:1.45;}
.student-referral-code{border:1px solid #a8827a;border-radius:20px;background:linear-gradient(135deg,#fff,#fff7f3);padding:16px;margin:8px 0 16px;}
.student-referral-code span{display:block;color:#8a7a70;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.07em;margin-bottom:7px;}
.student-referral-code strong{display:block;color:#5b3a3a;font-size:26px;letter-spacing:.04em;}
@media(max-width:760px){.student-review-form{grid-template-columns:1fr}.student-form-actions-split{align-items:flex-start;flex-direction:column}}

/* ============================================================
   PATCH AMBASSADEUR — proportion photo + boutons propres
   Base stable conservée : uniquement l'onglet Ambassadeur est ciblé
============================================================ */
.student-body .student-ambassador-hero{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 260px !important;
  gap:26px !important;
  align-items:end !important;
  min-height:480px !important;
  padding:26px 28px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#fff 0%,#fffaf7 100%) !important;
}
.student-body .student-ambassador-copy{
  position:relative !important;
  z-index:2 !important;
  align-self:start !important;
  max-width:980px !important;
}
.student-body .student-ambassador-copy .eyebrow{
  margin-bottom:8px !important;
}
.student-body .student-ambassador-copy h2{
  margin:0 0 16px !important;
  font-size:28px !important;
  line-height:1.08 !important;
  letter-spacing:-.035em !important;
}
.student-body .student-ambassador-copy p{
  margin:0 0 14px !important;
  color:#62544d !important;
  font-size:14px !important;
  line-height:1.55 !important;
  max-width:1040px !important;
}
.student-body .student-ambassador-points{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  max-width:880px !important;
  margin:18px 0 18px !important;
}
.student-body .student-ambassador-points > div{
  border:1px solid #a8827a !important;
  border-radius:16px !important;
  background:#fffaf7 !important;
  padding:12px 13px !important;
}
.student-body .student-ambassador-points strong{
  display:block !important;
  margin:0 0 4px !important;
  color:#5b3a3a !important;
  font-size:11px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
}
.student-body .student-ambassador-points span{
  display:block !important;
  color:#76665d !important;
  font-size:13px !important;
  line-height:1.35 !important;
}
.student-body .student-ambassador-hero .student-actions-line{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:14px !important;
  align-items:center !important;
}
.student-body .student-ambassador-hero .student-actions-line a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  height:40px !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 18px !important;
  border-radius:999px !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:950 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.student-body .student-ambassador-hero .student-actions-line a.btnPrimary{
  background:#a35839 !important;
  border:1px solid rgba(125,79,48,.22) !important;
  color:#fff !important;
  box-shadow:0 9px 18px rgba(125,79,48,.16) !important;
}
.student-body .student-ambassador-hero .student-actions-line a.btnPrimary:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 12px 22px rgba(125,79,48,.20) !important;
}
.student-body .student-ambassador-hero .student-actions-line a.btn{
  background:#fff !important;
  border:1px solid #a8827a !important;
  color:#5b3a3a !important;
  box-shadow:0 7px 16px rgba(42,31,26,.045) !important;
}
.student-body .student-ambassador-hero .student-actions-line a.btn:hover{
  background:#fffaf7 !important;
  text-decoration:none !important;
}
.student-body .student-ambassador-photo-wrap{
  position:absolute !important;
  right:28px !important;
  bottom:26px !important;
  z-index:1 !important;
  width:250px !important;
  height:250px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
  pointer-events:none !important;
}
.student-body .student-ambassador-photo{
  display:block !important;
  width:250px !important;
  height:250px !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center top !important;
  border-radius:999px !important;
  border:1px solid #a8827a !important;
  background:#f6ece8 !important;
  box-shadow:0 16px 34px rgba(42,31,26,.12) !important;
}
.student-body #ambassador-form{
  background:linear-gradient(180deg,#fff 0%,#fffaf7 100%) !important;
}
.student-body #ambassador-form textarea{
  min-height:96px !important;
}

@media(max-width:980px){
  .student-body .student-ambassador-hero{
    grid-template-columns:1fr !important;
    min-height:0 !important;
    padding:24px !important;
  }
  .student-body .student-ambassador-photo-wrap{
    position:relative !important;
    right:auto !important;
    bottom:auto !important;
    width:180px !important;
    height:180px !important;
    margin-top:4px !important;
    justify-content:flex-start !important;
  }
  .student-body .student-ambassador-photo{
    width:180px !important;
    height:180px !important;
  }
  .student-body .student-ambassador-points{
    grid-template-columns:1fr !important;
    max-width:none !important;
  }
}
@media(max-width:620px){
  .student-body .student-ambassador-copy h2{
    font-size:25px !important;
  }
  .student-body .student-ambassador-hero .student-actions-line{
    align-items:stretch !important;
    flex-direction:column !important;
  }
  .student-body .student-ambassador-hero .student-actions-line a{
    width:100% !important;
  }
  .student-body .student-ambassador-photo-wrap{
    width:150px !important;
    height:150px !important;
  }
  .student-body .student-ambassador-photo{
    width:150px !important;
    height:150px !important;
  }
}

/* Le lecteur et la jauge d'une leçon.
   .student-content-item est une grille de trois colonnes : sans grid-column, le lecteur
   se glisserait dans la colonne étroite du libellé et s'afficherait large comme un mot. */
.student-lesson-video{grid-column:1/-1;width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#000;display:block;margin-top:4px;}
.student-content-item [data-progress-for]{grid-column:1/-1;}

/* Le dépôt d'un exercice.
   .student-content-item est une grille de trois colonnes : sans grid-column, le
   formulaire se glisserait dans la colonne étroite du libellé. */
.student-exercice-depot{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:8px;}
.student-exercice-depot input[type=file]{flex:1 1 220px;min-width:0;font-size:12px;}
.student-exercice-depot .student-help{flex-basis:100%;margin:0;font-size:11.5px;}
.student-exercice-info{grid-column:1/-1;font-size:12.5px;color:#5b6b5c;margin-top:5px;}
.student-exercice-note{grid-column:1/-1;font-size:12.5px;color:#7d4f30;background:#fdf4e7;
  border:1px solid #e8d5b0;border-radius:9px;padding:8px 11px;margin-top:6px;}

/* ─────────────────────────────────────────────────────────────────────────
   LE BOUTON PRINCIPAL PORTE LE DEGRADE DU SITE.
   Leon, le 27 aout 2026 : « que les boutons du CRM soient comme ceux du site
   internet, cote eleve comme cote Mathilde ». Reference :
   public/assets/css/brand-alignment.css, --button-base-gradient.

   LE DEGRADE EST POSE EN background-image, ET C'EST DELIBERE. Le jeton
   --bouton-fond reste une COULEUR UNIE parce qu'il ne sert pas qu'a peindre un
   fond : il porte aussi des border-color, un outline de focus, des
   accent-color de cases a cocher et un color-mix. Un degrade y serait une
   valeur invalide, et ces bordures disparaitraient sans bruit.

   Le texte passe en encre foncee : du blanc sur ce degrade tombe a 2,68 du
   cote clair. En #2b2d2f il tient 5,16 au point le plus sombre et 9,61 au plus
   clair. Le survol bascule en sauge, comme sur le site.

   Ce bloc est en FIN DE FICHIER a dessein : .crm-bouton:hover pose un
   `background` raccourci, qui remet background-image a zero. A specificite
   egale, c'est l'ordre qui tranche.
   ───────────────────────────────────────────────────────────────────────── */
:is(.crm-bouton, .btnPrimary, .btn.primary, .button-primary):not(.doux):not(.danger) {
  background-image: linear-gradient(90deg, #cf8f75, #f0d1c1);
  background-color: #cf8f75;
  color: #2b2d2f;
  border-color: transparent;
}
:is(.crm-bouton, .btnPrimary, .btn.primary, .button-primary):not(.doux):not(.danger):is(:hover, :focus-visible) {
  background-image: linear-gradient(90deg, #8b978f, #c3cec8);
  background-color: #8b978f;
  color: #2b2d2f;
}

/* ── Les deux plateformes d'avis, sous le formulaire ───────────────────────
   Elles se détachent du bloc au-dessus par un filet, pas par une couleur :
   ce sont deux gestes en plus, pas deux gestes concurrents. Sur téléphone
   elles passent l'une sous l'autre, pleine largeur. */
.student-avis-plateformes { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line, #ded8ce) }
.student-avis-plateformes .student-section-title { margin-top: 0 }
.student-avis-liens { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 .9rem }
.student-avis-liens .btnSecondary { flex: 1 1 14rem; justify-content: center; text-align: center }
@media (max-width: 560px) { .student-avis-liens .btnSecondary { flex: 1 1 100% } }

/* ── L'état de la fiche d'annuaire ────────────────────────────────────────
   Une pastille dit où l'on en est, et le motif de renvoi se lit comme une
   citation : ce sont les mots de Mathilde, pas ceux du site. */
.student-annuaire-etat { margin: 1.2rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line, #ded8ce); border-radius: 14px; background: #fbf9f6 }
.student-annuaire-etat > p:not(.badge) { margin: .6rem 0 0 }
.student-annuaire-motif { margin: .7rem 0 0; padding: .7rem .95rem; border-left: 3px solid #cf8f75; background: #fff; color: #5e615b; font-style: italic }
