/* ── AUTH LOADING ─────────────────────────────────────────────── */
.auth-loading {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.auth-loading-logo { font-family: var(--font-display); font-size: 2.5rem; }
.auth-loading-logo span { color: var(--red); }
.auth-loading-sub { font-size: .65rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
.spinner { width: 24px; height: 24px; border: 2px solid #333; border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── BOTTOM NAV ───────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #0d0d0d; border-top: 1px solid #1e1e1e;
  display: flex; align-items: stretch; height: 60px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: #555; font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s; border: none; background: transparent;
  cursor: pointer; font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.bnav-item.active { color: var(--white); }
.bnav-item.active .bnav-icon { color: var(--red); }
.bnav-icon { font-size: 1.3rem; line-height: 1; }
.bnav-spacer { height: 72px; }

/* Badge non lus */
.bnav-icon-wrap { position: relative; display: inline-block; line-height: 1; }
.bnav-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--red); color: var(--brand-ink, #050505);
  font-size: .5rem; font-weight: 700;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; text-align: center; line-height: 14px;
  border: 2px solid #0a0a0a; display: none;
}

/* ── TABS ─────────────────────────────────────────────────────── */
.tabs-row {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-lnk {
  flex: 1; padding: .75rem; background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-family: var(--font-body); font-size: .82rem;
  cursor: pointer; transition: all .2s; display: flex; align-items: center;
  justify-content: center; gap: .4rem;
}
.tab-lnk:hover { color: var(--white); }
.tab-lnk.active { color: var(--white); border-bottom-color: var(--red); }
.tab-badge {
  background: var(--red); color: var(--brand-ink, #050505); font-size: .55rem;
  padding: .1rem .35rem; border-radius: 8px; min-width: 16px; text-align: center;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* ── USER BAR ─────────────────────────────────────────────────── */
.user-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding: .8rem 1rem;
  background: var(--grey); border: 1px solid var(--border); border-radius: var(--r-md);
}
.user-name { font-size: .82rem; color: var(--muted); }
.user-name strong { color: var(--white); }
.user-role {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 2px; margin-left: .5rem;
}
.role-admin { background: rgba(248,231,2,.15); color: var(--red); }
.role-prof  { background: rgba(248,231,2,.1);  color: var(--gold); }
.btn-signout {
  background: transparent; border: 1px solid #333; color: #555;
  padding: .35rem .7rem; border-radius: var(--r-sm); cursor: pointer;
  font-size: .72rem; font-family: var(--font-body); transition: all .2s;
}
.btn-signout:hover { border-color: var(--red); color: var(--red); }

/* ── FORMULAIRE ───────────────────────────────────────────────── */
.form-card {
  background: var(--grey); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.8rem; margin-bottom: 1.5rem;
}
.form-card .card-title {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: #0e0e0e; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--white); font-family: var(--font-body);
  font-size: .88rem; padding: .7rem .9rem; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(248,231,2,.5); }
.field select option { background: #141414; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.2rem 0; }

/* Drop zone */
#drop-zone {
  border: 2px dashed var(--border); border-radius: var(--r-sm);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all .2s; color: var(--muted); font-size: .82rem;
}
#drop-zone:hover, #drop-zone.dragover { border-color: var(--red); color: var(--white); }
#drop-zone.dragover { background: rgba(248,231,2,.05); border-color: var(--gold); }
.upload-progress-bar { background: var(--border); border-radius: 2px; height: 4px; overflow: hidden; margin-top: .5rem; }
.upload-progress-fill { background: var(--red); height: 100%; width: 0%; transition: width .3s; }
.upload-progress-text { font-size: .72rem; margin-top: .4rem; color: var(--gold); }


/* Aide OneDrive danse */
.dance-video-box {
  display: none; margin-top: .85rem; padding: .9rem 1rem;
  background: rgba(248,231,2,.07); border: 1px solid rgba(248,231,2,.22);
  border-radius: var(--r-sm); font-size: .76rem; color: var(--muted); line-height: 1.55;
}
.dance-video-box strong { color: var(--white); font-weight: 500; }
.dance-video-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.dance-video-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  background: var(--red); color: var(--brand-ink, #050505); text-decoration: none;
  border-radius: var(--r-sm); padding: .55rem .75rem; font-size: .72rem; font-weight: 600;
}
.dance-video-btn:hover { background: var(--red-dark); }
.dance-video-btn.disabled { background: #272727; color: #777; pointer-events: none; }
.dance-video-note { margin-top: .45rem; font-size: .68rem; color: #777; }

/* Message feedback */
.msg { display: none; padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .82rem; margin-top: .8rem; }
.msg.success { background: rgba(50,120,50,.15); border: 1px solid #2a5a2a; color: #6aba6a; }
.msg.error   { background: var(--danger-bg);  border: 1px solid rgba(255,90,90,.35); color: var(--danger); }

/* ── SECTION GÉRER ────────────────────────────────────────────── */
.manage-filters {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; align-items: center;
}
.filter-select {
  background: #141414; border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--muted); font-family: var(--font-body); font-size: .78rem;
  padding: .45rem .8rem; outline: none; cursor: pointer; transition: border-color .2s;
}
.filter-select:focus { border-color: rgba(248,231,2,.5); }

.doc-item {
  background: var(--grey); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: .6rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  transition: border-color .2s;
}
.doc-item:hover { border-color: #333; }
.doc-item-icon { font-size: 1.5rem; flex-shrink: 0; }
.doc-item-info { flex: 1; min-width: 150px; }
.doc-item-name { font-size: .9rem; font-weight: 500; margin-bottom: .2rem; }
.doc-item-meta { font-size: .7rem; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.doc-item-cat {
  display: inline-block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(248,231,2,.08); border: 1px solid rgba(248,231,2,.15);
  color: var(--gold); padding: .15rem .5rem; border-radius: 2px;
}
.doc-item-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.btn-edit {
  background: transparent; border: 1px solid #333; color: var(--muted);
  padding: .35rem .75rem; border-radius: var(--r-sm); cursor: pointer;
  font-size: .72rem; font-family: var(--font-body); transition: all .2s;
}
.btn-edit:hover { border-color: var(--gold); color: var(--gold); }
.btn-delete {
  background: transparent; border: 1px solid #3a1a1a; color: #aa5a5a;
  padding: .35rem .75rem; border-radius: var(--r-sm); cursor: pointer;
  font-size: .72rem; font-family: var(--font-body); transition: all .2s;
}
.btn-delete:hover { background: rgba(248,231,2,.1); border-color: var(--red); color: var(--red); }

.empty-manage {
  text-align: center; padding: 3rem 1rem;
  color: var(--muted); font-size: .82rem; font-style: italic;
}

/* ── CARTES ÉLÈVES ────────────────────────────────────────────── */
.student-card {
  background: var(--grey); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: .6rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color .2s;
}
.student-card:hover { border-color: #333; }
.student-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--red);
  color: var(--brand-ink, #050505); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600; flex-shrink: 0; text-transform: uppercase;
}
.student-info { flex: 1; min-width: 0; }
.student-name { font-size: .9rem; font-weight: 500; margin-bottom: .2rem; }
.student-meta { font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.student-parent-badge {
  font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(248,231,2,.1); border: 1px solid rgba(248,231,2,.2);
  color: var(--gold); padding: .1rem .4rem; border-radius: 2px; margin-left: .4rem;
}
.student-child {
  font-size: .76rem; color: var(--muted); margin-top: .3rem;
  padding: .3rem .7rem;
  background: rgba(248,231,2,.04);
  border-left: 2px solid rgba(248,231,2,.3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ── MODALE ÉDITION ───────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--grey); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 2rem; width: 95%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-hdr-title { font-family: var(--font-display); font-size: 1.5rem; }
.modal-close {
  background: transparent; border: 1px solid #333; color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: .8rem; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-actions { display: flex; gap: .6rem; margin-top: 1.5rem; }
.modal-actions button {
  flex: 1; padding: .8rem; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; border: none; transition: background .2s;
}
.btn-save    { background: var(--red);  color: var(--brand-ink, #050505); }
.btn-save:hover { background: var(--red-dark); }
.btn-cancel-edit { background: #2a2a2a; color: var(--muted); }
.btn-cancel-edit:hover { background: #333; color: var(--white); }


/* ── MODERNISATION COCKPIT PROFS — V1 ─────────────────────────── */
* { box-sizing: border-box; }
.wrap { max-width: 980px; }
.profs-hero-card,
.profs-panel,
.profs-preview,
.profs-info-card {
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.profs-hero-card {
  padding: 1rem;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .7rem;
}
.profs-stat {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: .9rem;
  min-width: 0;
}
.profs-stat-kicker {
  display:block;
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.profs-stat-value {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}
.profs-stat-note {
  display:block;
  color: var(--gold);
  font-size: .68rem;
  margin-top: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-card {
  border-radius: 24px;
  padding: 1.1rem;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}
.form-card .card-title {
  color: var(--white);
  font-size: 1.55rem;
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: none;
  margin-bottom: .25rem;
}
.profs-card-subtitle {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  margin: 0 0 1.15rem;
}
.profs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.profs-form-grid .field-full { grid-column: 1 / -1; }
.field {
  margin-bottom: .95rem;
}
.field label {
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  letter-spacing: .08em;
}
.field small {
  display:block;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
  margin-top: .38rem;
}
.field input, .field select, .field textarea {
  border-radius: 14px;
  min-height: 46px;
  background: rgba(0,0,0,.34);
  border-color: rgba(255,255,255,.10);
}
.field textarea { min-height: 96px; }
#drop-zone {
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  min-height: 108px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.profs-preview {
  padding: 1rem;
  margin-top: 1rem;
}
.profs-preview-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  margin-bottom:.7rem;
}
.profs-preview-title {
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.profs-preview-card {
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: .95rem;
}
.profs-preview-name { font-weight: 700; margin-bottom: .35rem; }
.profs-preview-meta { color: var(--muted); font-size: .75rem; line-height: 1.45; }
.profs-preview-note { color: rgba(255,255,255,.72); font-size: .78rem; margin-top:.6rem; line-height:1.45; }
.tabs-row {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: .25rem;
  gap: .25rem;
  overflow-x: auto;
}
.tab-lnk {
  border-bottom: none;
  border-radius: 14px;
  min-width: 108px;
}
.tab-lnk.active {
  background: rgba(248,231,2,.16);
  border-bottom-color: transparent;
}
.manage-filters {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: .75rem;
}
.filter-select { border-radius: 14px; min-height: 42px; }
.doc-item,
.student-card {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09);
}
.doc-item-actions button { min-height: 36px; }
.profs-section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  margin: 0 0 .8rem;
}
.profs-section-head h2 {
  margin:0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height:1;
}
.profs-section-head p { margin:.25rem 0 0; color:var(--muted); font-size:.78rem; line-height:1.4; }
@media (max-width: 720px) {
  .wrap { width: min(100%, 100vw); padding-left: .85rem; padding-right: .85rem; overflow-x: hidden; }
  .page-hdr h1 { font-size: clamp(2.5rem, 15vw, 4.5rem); }
  .user-bar { flex-direction: column; align-items: stretch; gap: .75rem; border-radius: 20px; }
  .btn-signout { width: 100%; min-height: 42px; }
  .profs-hero-card { grid-template-columns: repeat(2, minmax(0,1fr)); padding: .75rem; border-radius: 20px; }
  .profs-stat { padding: .8rem; }
  .profs-form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: .95rem; border-radius: 22px; }
  .doc-item { align-items: flex-start; }
  .doc-item-actions { width:100%; display:grid; grid-template-columns: 1fr 1fr; }
  .doc-item-actions button { width:100%; }
  .modal-box { border-radius: 22px; padding: 1rem; }
}
@media (max-width: 380px) {
  .profs-hero-card { grid-template-columns: 1fr; }
  .tab-lnk { min-width: 96px; font-size:.72rem; }
}

/* Gamification — historique récompenses profs */
.rewards-history{
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.08);
}
.rewards-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.7rem;
}
.rewards-history-head strong{ color:var(--gold); }
.rewards-history-head small{ color:var(--muted); }
.rewards-history-list{ display:flex; flex-direction:column; gap:.55rem; }
.reward-history-item{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:.75rem;
  padding:.72rem;
  border-radius:18px;
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.08);
}
.reward-history-item.is-artist{ border-color:rgba(248,231,2,.34); background:rgba(248,231,2,.055); }
.reward-history-main{ min-width:0; display:flex; flex-direction:column; gap:.2rem; }
.reward-history-main strong{ color:#fff; }
.reward-history-main small{ color:var(--muted); line-height:1.35; }
.reward-history-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:.24rem .55rem;
  border-radius:999px;
  background:rgba(248,231,2,.16);
  border:1px solid rgba(248,231,2,.34);
  color:#171100;
  text-shadow:none;
  font-size:.72rem;
  font-weight:800;
}

.reward-history-item.is-artist .reward-history-badge{
  background:rgba(248,231,2,.22);
  border-color:rgba(248,231,2,.46);
  color:#171100;
  text-shadow:none;
}

.reward-history-actions{ display:flex; gap:.4rem; flex-wrap:wrap; justify-content:flex-end; }
.rewards-mini-btn{ min-height:34px !important; padding:.34rem .65rem !important; border-radius:999px !important; }
.btn-danger.rewards-mini-btn{ background:rgba(244,67,54,.16); border:1px solid rgba(244,67,54,.26); color:#ffb3ad; }
.rewards-history-empty{
  padding:.8rem;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:.8rem;
}
@media (max-width:620px){
  .reward-history-item{ grid-template-columns:1fr; align-items:stretch; }
  .reward-history-actions{ justify-content:flex-start; }
}

/* ── FICHE CONTACT ÉLÈVE / PROF — V53 ───────────────────────── */
.student-card-clickable {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  position: relative;
  appearance: none;
  font-family: inherit;
}
.student-card-clickable:hover,
.student-card-clickable:focus-visible {
  border-color: rgba(248,231,2,.45);
  outline: none;
  transform: translateY(-1px);
}
.student-open-hint {
  align-self: center;
  flex-shrink: 0;
  font-size: .68rem;
  color: var(--gold);
  border: 1px solid rgba(248,231,2,.25);
  background: rgba(248,231,2,.08);
  border-radius: 999px;
  padding: .25rem .55rem;
}
.student-child-disc { color: var(--gold); }
.student-contact-inline {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed rgba(248,231,2,.45);
}
.student-contact-inline:hover { color: #fff6a0; }
.student-contact-box { max-width: 560px; }
.student-contact-kicker {
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.student-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .55rem;
  margin-bottom: 1rem;
}
.student-contact-primary,
.student-contact-action {
  min-height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  text-decoration:none;
  font-size: .82rem;
  font-weight: 700;
}
.student-contact-primary {
  grid-column: 1 / -1;
  background: var(--red);
  color: var(--brand-ink, #050505);
}
.student-contact-action {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--white);
}
.student-contact-section {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  padding: .9rem;
  margin-top: .75rem;
}
.student-contact-section-title {
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.student-contact-line {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.8rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
}
.student-contact-line:last-child { border-bottom: 0; }
.student-contact-line span { color: var(--muted); }
.student-contact-line strong {
  color: var(--white);
  text-align:right;
  word-break: break-word;
  font-weight: 600;
}
.student-contact-line a { color: var(--gold); text-decoration: none; }
.student-contact-child-card {
  border-radius: 16px;
  padding: .8rem;
  background: rgba(248,231,2,.045);
  border: 1px solid rgba(248,231,2,.12);
  margin-top: .55rem;
}
.student-contact-child-card > strong { display:block; margin-bottom:.4rem; }
.student-contact-mini-actions {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.5rem;
  margin-top:.65rem;
}
@media (max-width: 560px) {
  .student-contact-modal { align-items: flex-end; }
  .student-contact-box {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 1.1rem;
  }
  .student-open-hint { display:none; }
  .student-contact-actions { grid-template-columns: 1fr; }
  .student-contact-line { display:block; }
  .student-contact-line strong { display:block; text-align:left; margin-top:.2rem; }
}

/* Assistant répétition — option PDF compatible */
.script-rehearsal-field{
  margin-top:.15rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(255,230,0,.24);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,230,0,.08),rgba(255,255,255,.025));
  box-shadow:0 14px 34px rgba(0,0,0,.18) inset;
}
.script-rehearsal-field[hidden]{display:none!important;}
.script-rehearsal-check{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:0;
  color:#fffbe6;
  font-weight:800;
  letter-spacing:.01em;
  cursor:pointer;
}
.script-rehearsal-check input{
  width:22px;
  height:22px;
  accent-color:#ffe600;
  flex:0 0 auto;
}
.script-rehearsal-field small{
  display:block;
  margin:.45rem 0 0 2.2rem;
  color:var(--muted,#aaa);
  line-height:1.45;
}
@media(max-width:760px){
  .script-rehearsal-field{padding:.9rem;border-radius:16px;}
  .script-rehearsal-field small{margin-left:0;}
}
