/* ════════════════════════════════════════════════════════════
   SUNU BULLETIN v2.0 — FEUILLE DE STYLE PRINCIPALE
   © Sunu Bulletin – CFC – FALLOU CISSÉ – Mboss, Sénégal 🇸🇳
════════════════════════════════════════════════════════════ */

/* ── Variables CSS ──────────────────────────────────────── */
:root {
  --blue:        #1E88E5;
  --blue-dark:   #1565C0;
  --blue-light:  #E3F2FD;
  --green:       #43A047;
  --green-dark:  #2E7D32;
  --green-light: #E8F5E9;
  --orange:      #FB8C00;
  --orange-dark: #E65100;
  --orange-light:#FFF3E0;
  --purple:      #8E24AA;
  --purple-light:#F3E5F5;
  --red:         #E53935;
  --red-dark:    #B71C1C;
  --red-light:   #FFEBEE;
  --gold:        #F9A825;

  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;
  --gray-900:  #0F172A;

  --sidebar-w: 264px;
  --topbar-h:  64px;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.13);
  --transition:0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-weight: 800; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   ÉCRAN DE CONNEXION
════════════════════════════════════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1565C0 0%, #1E88E5 55%, #42A5F5 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 65% 35%, rgba(255,255,255,0.07) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.login-card {
  background: white;
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
  animation: loginSlideIn 0.4s ease;
}
@keyframes loginSlideIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.login-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(21,101,192,0.22));
  flex-shrink: 0;
}
.logo-icon svg { width: 58px; height: 58px; }
.login-brand h1 { font-size: 1.65rem; font-weight: 800; color: var(--blue-dark); letter-spacing: -0.5px; }
.login-brand p  { font-size: 0.82rem; color: var(--gray-500); margin-top: 3px; }
.login-form label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--gray-700); margin-bottom: 8px; }
.password-input-wrap { position: relative; margin-bottom: 18px; }
.password-input-wrap input {
  width: 100%; padding: 12px 46px 12px 14px;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--gray-800);
  transition: border-color var(--transition); outline: none;
}
.password-input-wrap input:focus { border-color: var(--blue); }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--gray-400); padding: 4px;
  display: flex; align-items: center; transition: color var(--transition);
}
.eye-btn:hover { color: var(--gray-700); }
.login-hint { text-align: center; font-size: 0.82rem; color: var(--gray-400); margin-top: 14px; }

/* ════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
════════════════════════════════════════════════════════════ */
.app { display: flex; min-height: 100vh; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-header { padding: 18px 18px 14px; border-bottom: 1px solid var(--gray-100); }
.sidebar-logo { display: flex; align-items: center; gap: 11px; }
.sidebar-logo svg { flex-shrink: 0; }
.sidebar-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.sidebar-title { display: block; font-size: 0.98rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.3px; }
.sidebar-sub   { display: block; font-size: 0.72rem; color: var(--gray-500); font-weight: 600; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }

.nav-section-label {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-400);
  padding: 10px 10px 5px;
  margin-top: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
}
.nav-item.active svg { color: var(--blue); }
.nav-badge {
  margin-left: auto;
  background: var(--blue-dark);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.sidebar-footer { padding: 12px 10px; border-top: 1px solid var(--gray-100); }
.btn-logout {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 10px 12px;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.87rem; font-weight: 700;
  color: var(--red); transition: all var(--transition);
}
.btn-logout svg { width: 18px; height: 18px; }
.btn-logout:hover { background: var(--red-light); }

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 32px;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-left  { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: none; border: none;
  padding: 8px; border-radius: var(--radius-sm);
  color: var(--gray-600); align-items: center;
  transition: all var(--transition);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover { background: var(--gray-100); }

.breadcrumb { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

.school-info-topbar {
  display: flex; flex-direction: column; text-align: right;
  gap: 1px;
}
.school-info-topbar span:first-child { font-size: 0.82rem; font-weight: 700; color: var(--gray-800); }
.school-info-topbar span:last-child  { font-size: 0.72rem; color: var(--gray-500); }

.topbar-actions { display: flex; gap: 8px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.87rem; font-weight: 700;
  border: none; transition: all var(--transition);
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,136,229,0.3); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-danger  { background: var(--red);   color: white; }
.btn-danger:hover  { background: var(--red-dark); }
.btn-outline {
  background: white; color: var(--gray-700);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-warning { background: var(--orange); color: white; }
.btn-warning:hover { background: var(--orange-dark); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: none;
  transition: all var(--transition);
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon-blue   { background: var(--blue-light);   color: var(--blue-dark); }
.btn-icon-blue:hover  { background: var(--blue);  color: white; }
.btn-icon-red    { background: var(--red-light);    color: var(--red-dark); }
.btn-icon-red:hover   { background: var(--red);   color: white; }
.btn-icon-green  { background: var(--green-light);  color: var(--green-dark); }
.btn-icon-green:hover { background: var(--green); color: white; }
.btn-icon-orange { background: var(--orange-light); color: var(--orange-dark); }
.btn-icon-orange:hover{ background: var(--orange);color: white; }

/* ── BOUTON INSTALLATION PWA ─────────────────────────────── */
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #43A047, #2E7D32);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46,125,50,0.35);
  transition: all 0.2s ease;
  animation: pulsePWA 2.8s ease-in-out infinite;
}
.btn-install:hover {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46,125,50,0.5);
}
@keyframes pulsePWA {
  0%, 100% { box-shadow: 0 2px 8px rgba(46,125,50,0.3); }
  50%       { box-shadow: 0 2px 18px rgba(46,125,50,0.6); }
}

/* ── DEMO BUTTON ─────────────────────────────────────────── */
.btn-demo {  background: linear-gradient(135deg, var(--gold), #F57F17);
  color: white;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(249,168,37,0.35);
}
.btn-demo:hover {
  box-shadow: 0 4px 16px rgba(249,168,37,0.5);
  transform: translateY(-2px);
}

/* ── VIEWS ───────────────────────────────────────────────── */
.views-container { padding: 24px; }
.view { display: none; }
.view.active { display: block; }

.view-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.view-header h2 { font-size: 1.3rem; color: var(--gray-900); }
.view-sub { font-size: 0.83rem; color: var(--gray-500); margin-top: 3px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-blue   .stat-icon { background: var(--blue-light);   color: var(--blue); }
.stat-green  .stat-icon { background: var(--green-light);  color: var(--green); }
.stat-orange .stat-icon { background: var(--orange-light); color: var(--orange); }
.stat-purple .stat-icon { background: var(--purple-light); color: var(--purple); }
.stat-gold   .stat-icon { background: #FFF8E1;             color: var(--gold); }
.stat-value { display: block; font-size: 1.9rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { display: block; font-size: 0.8rem; color: var(--gray-500); font-weight: 600; margin-top: 3px; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.dash-list { padding: 6px 20px 14px; }
.dash-class-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.dash-class-item:last-child { border-bottom: none; }
.dash-class-item strong { font-weight: 700; color: var(--gray-800); }
.dash-class-badge {
  background: var(--blue-light); color: var(--blue-dark);
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.73rem; font-weight: 700;
}
.school-info-card { padding: 16px 20px; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.87rem;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--gray-500); }
.info-row strong { color: var(--gray-800); }

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px;
}
.quick-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 0.8rem; font-weight: 700;
  color: var(--gray-700);
  transition: all var(--transition);
  text-align: center; line-height: 1.3;
}
.quick-btn svg { width: 22px; height: 22px; color: var(--blue); }
.quick-btn:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-light); transform: translateY(-2px);
}

/* ── TABLES ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead tr { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
.data-table th {
  padding: 11px 16px; text-align: left;
  font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-500); white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.empty-row td { text-align: center; color: var(--gray-400); font-style: italic; padding: 36px; }
.table-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.count-label { font-size: 0.8rem; color: var(--gray-500); white-space: nowrap; }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.73rem; font-weight: 700;
}
.badge-blue   { background: var(--blue-light);   color: var(--blue-dark); }
.badge-green  { background: var(--green-light);  color: var(--green-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-red    { background: var(--red-light);    color: var(--red-dark); }
.badge-gray   { background: var(--gray-100);     color: var(--gray-600); }
.badge-purple { background: var(--purple-light); color: #6A1B9A; }
.badge-gold   { background: #FFF8E1;             color: #F57F17; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--gray-700); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 10px 13px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--gray-800); background: white;
  transition: border-color var(--transition); outline: none;
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: var(--gray-400); }
.select-input {
  width: 100%; padding: 10px 36px 10px 13px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--gray-800); background: white;
  outline: none; cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.select-input:focus { border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.required { color: var(--red); }
.search-input {
  padding: 8px 13px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--gray-800); background: white;
  outline: none; min-width: 240px;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--blue); }

/* ════════════════════════════════════════════════════════════
   DISCIPLINES (Nouveau — Barème)
════════════════════════════════════════════════════════════ */
/* ── Panneau personnalisation bulletin ─────────────────── */
.perso-bulletin-card {
  margin-bottom: 16px;
  border: 1.5px solid #FFE082 !important;
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%) !important;
}
.perso-bulletin-card .card-header {
  background: transparent;
  border-bottom: 1px solid #FFE082;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.perso-bulletin-card .card-header h3 {
  color: #E65100;
  font-size: 0.92rem;
}
.perso-hint {
  font-size: 0.75rem;
  color: #BF360C;
  font-style: italic;
}
.perso-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 14px 16px;
}
.perso-right { display: flex; flex-direction: column; gap: 12px; }
.perso-textarea {
  resize: vertical;
  min-height: 82px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.perso-info {
  padding: 8px 16px 10px;
  font-size: 0.73rem;
  color: #BF360C;
  font-style: italic;
  border-top: 1px solid #FFE082;
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 700px) {
  .perso-grid { grid-template-columns: 1fr; }
}

/* ── Discipline editor ─────────────────────────────────── */
  padding: 16px 20px;
}
.disc-row {
  display: grid;
  grid-template-columns: 1fr 90px 34px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.disc-row:last-child { border-bottom: none; }
.disc-row:hover { background: none; }

.disc-name-input, .disc-bareme-input {
  padding: 8px 11px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.disc-name-input:focus,
.disc-bareme-input:focus { border-color: var(--blue); }
.disc-bareme-input { text-align: center; font-weight: 700; color: var(--blue-dark); }

.bareme-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue-dark);
  font-size: 0.75rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  min-width: 50px;
}

.total-bareme-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  font-size: 0.88rem; font-weight: 700;
}
.total-bareme-bar .total-val {
  font-size: 1.1rem; font-weight: 800;
  color: var(--blue-dark);
}

/* ════════════════════════════════════════════════════════════
   SAISIE DES NOTES (Tableau barème)
════════════════════════════════════════════════════════════ */
.grades-filter-card { padding: 18px 20px; margin-bottom: 20px; }
.grades-filters {
  display: flex; align-items: flex-end;
  gap: 14px; flex-wrap: wrap;
}
.filter-group {
  display: flex; flex-direction: column;
  gap: 5px; min-width: 170px;
}
.filter-group label { font-size: 0.78rem; font-weight: 700; color: var(--gray-600); }
.filter-group .select-input { width: auto; min-width: 160px; }

.grades-table-wrap { overflow-x: auto; }

.grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 600px;
}
.grades-table th,
.grades-table td {
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  text-align: center;
}
.grades-table thead tr { background: var(--blue-dark); }
.grades-table th {
  font-weight: 700; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: white; white-space: nowrap;
  border-color: rgba(255,255,255,0.15);
}
.grades-table th.student-col { text-align: left; min-width: 165px; }
.grades-table td.student-name { text-align: left; font-weight: 700; color: var(--gray-800); }
.grades-table tbody tr:nth-child(even) td { background: var(--gray-50); }
.grades-table tbody tr:hover td { background: var(--blue-light); }

.grade-input {
  width: 68px; padding: 6px 8px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.88rem; font-weight: 700;
  color: var(--gray-800); outline: none;
  transition: border-color var(--transition);
  background: white;
}
.grade-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,0.1); }
.grade-input.over-bareme { border-color: var(--red); background: var(--red-light); color: var(--red-dark); }

.avg-cell {
  font-weight: 800; font-size: 0.92rem;
  min-width: 80px;
  white-space: nowrap;
}
.avg-good { color: var(--green-dark); }
.avg-avg  { color: var(--orange-dark); }
.avg-poor { color: var(--red-dark); }

.total-cell { font-weight: 700; color: var(--gray-700); font-size: 0.84rem; }

/* ════════════════════════════════════════════════════════════
   BULLETINS
════════════════════════════════════════════════════════════ */
.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.bulletin-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.bulletin-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.bulletin-student-info { flex: 1; }
.bulletin-student-info h4 { font-size: 0.93rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.bulletin-student-info p  { font-size: 0.78rem; color: var(--gray-500); }
.bulletin-avg { text-align: center; min-width: 64px; }
.avg-number   { font-size: 1.55rem; font-weight: 800; line-height: 1; }
.avg-label    { font-size: 0.70rem; color: var(--gray-500); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   STATISTIQUES — Graphique barres
════════════════════════════════════════════════════════════ */
.stats-bar-chart {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats-bar-item { display: flex; flex-direction: column; gap: 5px; }
.stats-bar-header {
  display: flex; justify-content: space-between;
  font-size: 0.83rem; font-weight: 700;
  color: var(--gray-700);
}
.stats-bar-track {
  height: 22px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.stats-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.7s ease;
  display: flex; align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.72rem; font-weight: 800;
  color: white;
  min-width: 30px;
}

.mention-bar-item { display: flex; flex-direction: column; gap: 4px; }
.mention-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.mention-bar-track { height: 11px; background: var(--gray-100); border-radius: 5px; overflow: hidden; }
.mention-bar-fill  { height: 100%; border-radius: 5px; transition: width 0.6s ease; }

.mentions-chart {
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}

.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th, .ranking-table td { padding: 9px 14px; border-bottom: 1px solid var(--gray-100); font-size: 0.85rem; }
.ranking-table th { font-weight: 700; font-size: 0.74rem; text-transform: uppercase; color: var(--gray-500); }
.ranking-table tbody tr:hover td { background: var(--gray-50); }
.rank-num { font-weight: 800; color: var(--blue-dark); }

/* ════════════════════════════════════════════════════════════
   PARAMÈTRES & CONFIG BULLETIN
════════════════════════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.settings-grid .card { padding: 24px; }
.settings-grid .card-header { margin: -24px -24px 20px; padding: 16px 24px; }

.data-actions { display: flex; flex-direction: column; gap: 16px; }
.data-action-item {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.data-action-item:last-child { border-bottom: none; padding-bottom: 0; }
.data-action-item.danger strong { color: var(--red); }
.data-action-item p { font-size: 0.8rem; color: var(--gray-500); margin-top: 3px; }

/* Onglets paramètres */
.settings-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 18px;
  background: none; border: none;
  font-size: 0.87rem; font-weight: 700;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue-dark); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* À propos */
.about-content { text-align: center; padding: 20px; }
.about-logo { margin-bottom: 14px; }
.about-content h3 { font-size: 1.2rem; color: var(--blue-dark); }
.app-version { color: var(--gray-400); font-size: 0.82rem; margin: 4px 0 12px; }
.about-content p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 6px; }
.about-cfc-block {
  background: linear-gradient(135deg, var(--blue-light), #E8F5E9);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius); padding: 14px 20px;
  margin: 14px 0; text-align: center;
}
.about-cfc-name    { font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); letter-spacing: -0.3px; margin-bottom: 3px; }
.about-cfc-title   { font-size: 0.82rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.about-cfc-company { font-size: 0.85rem; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
.about-cfc-location{ font-size: 0.8rem; color: var(--gray-500); margin-bottom: 6px; }
.about-cfc-brand   {
  display: inline-block; background: var(--blue-dark); color: white;
  padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.about-copyright { font-size: 0.72rem !important; color: var(--gray-400) !important; margin-top: 8px !important; font-weight: 600 !important; }

/* ════════════════════════════════════════════════════════════
   MODALES
════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 200; align-items: center;
  justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
  animation: overlayFadeIn 0.2s ease;
}
.modal-overlay.open { display: flex; }
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 500px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.25s ease;
}
.modal-lg { max-width: 700px; }
.modal-sm { max-width: 380px; }
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); }
.modal-close {
  background: none; border: none;
  font-size: 1.4rem; color: var(--gray-400);
  padding: 4px 8px; border-radius: 6px;
  line-height: 1; transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-body   { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--gray-100); }

/* ════════════════════════════════════════════════════════════
   TOASTS
════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999; display: flex; flex-direction: column;
  gap: 8px; pointer-events: none;
}
.toast {
  background: var(--gray-900); color: white;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  max-width: 340px;
  animation: toastIn 0.3s ease;
  pointer-events: all;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success { background: #1B5E20; border-left: 4px solid var(--green); }
.toast-error   { background: #7F0000; border-left: 4px solid var(--red); }
.toast-info    { background: var(--blue-dark); border-left: 4px solid #90CAF9; }
.toast-warning { background: #E65100; border-left: 4px solid var(--orange); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--gray-400);
  text-align: center; gap: 14px;
}
.empty-state svg { width: 56px; height: 56px; opacity: 0.4; }
.empty-state p   { font-size: 0.93rem; font-weight: 600; max-width: 280px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   GENRE / BADGES SPÉCIAUX
════════════════════════════════════════════════════════════ */
.gender-M { color: #1565C0; background: #E3F2FD; padding: 2px 10px; border-radius: 20px; font-size: 0.77rem; font-weight: 700; }
.gender-F { color: #AD1457; background: #FCE4EC; padding: 2px 10px; border-radius: 20px; font-size: 0.77rem; font-weight: 700; }

.version-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-light); color: var(--blue-dark);
  border: 1px solid var(--blue); border-radius: 20px;
  padding: 3px 12px; font-size: 0.72rem; font-weight: 700; margin-top: 8px;
}

/* Distinction badge */
.distinction-badge {
  display: inline-flex; align-items: center;
  padding: 4px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 800;
}
.dist-tableau_honneur { background: #FFF9C4; color: #F57F17; }
.dist-excellent       { background: #E8F5E9; color: #1B5E20; }
.dist-felicitation    { background: #E3F2FD; color: #0D47A1; }
.dist-encouragement   { background: #F3E5F5; color: #4A148C; }
.dist-passable        { background: #FFF3E0; color: #E65100; }
.dist-insuffisant     { background: #FFEBEE; color: #B71C1C; }

/* ════════════════════════════════════════════════════════════
   FOOTER SIGNATURE CFC
════════════════════════════════════════════════════════════ */
.app-footer-signature {
  position: fixed; bottom: 0;
  left: var(--sidebar-w); right: 0;
  height: 28px;
  background: linear-gradient(90deg, #F8FAFC, #EFF6FF, #F8FAFC);
  border-top: 1px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  z-index: 40; transition: left 0.2s ease;
}
.app-footer-text { font-size: 0.67rem; color: #94A3B8; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.app-footer-text strong { color: var(--blue-dark); font-weight: 700; }
.main-content { padding-bottom: 28px; }

/* ════════════════════════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .app-footer-signature { left: 0; }
  .views-container { padding: 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grades-filters { flex-direction: column; align-items: stretch; }
  .filter-group .select-input { width: 100%; }
  .topbar { padding: 0 16px; }
  .school-info-topbar { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .view-header { flex-direction: column; align-items: flex-start; }
  .login-card { padding: 32px 24px; }
  .bulletins-grid { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, #toast-container, .app-footer-signature { display: none !important; }
  .main-content { margin-left: 0; }
}


/* ════════════════════════════════════════════════════════════════
   PAGE D'ACCUEIL / WELCOME SCREEN
════════════════════════════════════════════════════════════════ */
.welcome-screen {
  min-height: 100vh;
  background: linear-gradient(150deg, #0D1F3C 0%, #1565C0 55%, #1976D2 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.welcome-screen::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(66,165,245,.12), transparent),
              radial-gradient(ellipse 50% 70% at 20% 80%, rgba(249,168,37,.06), transparent);
  pointer-events: none;
}

.welcome-skip {
  position: fixed; top: 14px; right: 18px;
  background: rgba(255,255,255,.15);
  color: #fff; border: 1.5px solid rgba(255,255,255,.35);
  padding: 7px 16px; border-radius: 8px;
  font-weight: 700; font-size: .82rem;
  cursor: pointer; font-family: inherit;
  z-index: 10; transition: all .2s;
}
.welcome-skip:hover { background: rgba(255,255,255,.25); }

.welcome-inner {
  width: 100%; max-width: 920px;
  padding: 60px 0 40px;
  position: relative; z-index: 1;
}

/* ── HERO ── */
.welcome-hero { text-align: center; margin-bottom: 56px; }

.welcome-logo {
  width: 130px; height: 130px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.35));
  animation: wLogoFloat 4s ease-in-out infinite;
}
.welcome-logo img {
  width: 100%; height: 100%; object-fit: contain;
}
@keyframes wLogoFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.welcome-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1;
  margin-bottom: 6px;
}

.welcome-tagline {
  font-size: clamp(.9rem, 2.5vw, 1.15rem);
  color: #90CAF9; font-style: italic;
  margin-bottom: 18px;
}

.welcome-desc {
  font-size: clamp(.85rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.72);
  max-width: 520px; margin: 0 auto 32px;
  line-height: 1.75;
}

.welcome-ctas {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 8px;
}

.btn-welcome-enter {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #1565C0;
  padding: 14px 32px; border-radius: 12px;
  font-weight: 900; font-size: .95rem;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: all .2s;
}
.btn-welcome-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,.3);
}

.btn-welcome-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 15px 34px; border-radius: 14px;
  font-weight: 800; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  transition: all .2s;
  letter-spacing: .01em;
}
.btn-welcome-wa:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,.4);
}

/* ── FEATURE CARDS ── */
.welcome-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.welcome-feat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all .25s;
}
.welcome-feat:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-3px);
}

.welcome-feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}

.welcome-feat h3 {
  font-size: .9rem; font-weight: 800; color: #fff;
  margin-bottom: 7px;
}
.welcome-feat p {
  font-size: .78rem; color: rgba(255,255,255,.62);
  line-height: 1.65;
}

/* ── SUPPORT BAND ── */
.welcome-support-band {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.wsb-left {
  display: flex; align-items: center; gap: 14px;
}
.wsb-icon {
  font-size: 1.6rem; flex-shrink: 0;
}
.wsb-title {
  font-size: .9rem; font-weight: 800; color: #fff;
  margin-bottom: 3px;
}
.wsb-sub {
  font-size: .75rem; color: rgba(255,255,255,.6);
}

.wsb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 10px 22px; border-radius: 10px;
  font-weight: 800; font-size: .88rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: all .2s; white-space: nowrap;
}
.wsb-btn:hover { background: #20BD5A; transform: translateY(-1px); }

/* ── DEVELOPER ── */
.welcome-dev {
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
.welcome-dev strong { color: rgba(255,255,255,.7); }


/* ════════════════════════════════════════════════════════════════
   BOUTON WHATSAPP FLOTTANT
════════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 26px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  text-decoration: none; color: #fff;
  transition: all .25s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
}
.wa-float:hover .wa-float-tooltip { opacity: 1; transform: translateY(0); pointer-events: auto; }

.wa-float-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  position: relative; z-index: 1;
}

/* Pulse animation */
.wa-float-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(37,211,102,.5);
  animation: waPulse 2.5s ease infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Tooltip */
.wa-float-tooltip {
  position: absolute;
  bottom: 70px; right: 0;
  background: #1E293B;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px 10px 2px 10px;
  font-size: .78rem; line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.wa-float-tooltip::after {
  content: '';
  position: absolute; bottom: -7px; right: 18px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #1E293B;
}

/* Mobile — plus grand pour le doigt */
@media (max-width: 600px) {
  .wa-float { width: 56px; height: 56px; bottom: 80px; right: 16px; }
  .wa-float-icon { width: 28px; height: 28px; }
  .wa-float-tooltip { display: none; }

  .welcome-features { grid-template-columns: repeat(2,1fr); }
  .welcome-support-band { flex-direction: column; text-align: center; }
  .wsb-left { flex-direction: column; }
}


/* ════════════════════════════════════════════════════════════════
   ABOUT — SUPPORT CARD
════════════════════════════════════════════════════════════════ */
.about-support-card {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(21,101,192,.3);
  margin-bottom: 0;
}

.asc-left {
  display: flex; align-items: center; gap: 16px;
}

.asc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff; font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}

.asc-name  { font-weight: 900; color: #fff; font-size: 1rem; }
.asc-role  { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.asc-num   { font-size: .82rem; color: #90CAF9; margin-top: 4px; font-weight: 700; }

.asc-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

.asc-wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-weight: 800; font-size: .88rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: all .2s; border: none; cursor: pointer;
  font-family: inherit;
}
.asc-wa-btn:hover { background: #20BD5A; transform: translateY(-1px); }

.asc-pdf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: .85rem;
  cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.asc-pdf-btn:hover { background: rgba(255,255,255,.25); }


/* ════════════════════════════════════════════════════════════════
   GUIDE D'UTILISATION
════════════════════════════════════════════════════════════════ */
.guide-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 0;
}

.guide-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.guide-step:last-child { border-bottom: none; }

.guide-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: .95rem;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.guide-step-content h4 {
  font-size: .95rem; font-weight: 800;
  color: var(--gray-800); margin-bottom: 7px;
}
.guide-step-content p {
  font-size: .87rem; color: var(--gray-600); line-height: 1.75;
}
.guide-step-content code {
  background: var(--blue-light); color: var(--blue-dark);
  padding: 1px 6px; border-radius: 4px; font-size: .83rem;
}

.guide-tip {
  background: #FFFDE7;
  border-left: 3px solid #F9A825;
  border-radius: 0 6px 6px 0;
  padding: 7px 12px;
  margin-top: 8px;
  font-size: .82rem; color: #7B5800; line-height: 1.6;
}

@media (max-width: 600px) {
  .about-support-card { flex-direction: column; text-align: center; }
  .asc-left { flex-direction: column; }
  .asc-actions { justify-content: center; }
  .guide-step { grid-template-columns: 32px 1fr; gap: 12px; }
  .guide-step-num { width: 32px; height: 32px; font-size: .85rem; }
}
