/* ============================================================
   AEROSUP — Portail Étudiant · Design System Premium
   Mobile-first · offline-first · aéronautique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --navy-900: #0c1530;
  --navy-800: #111c3d;
  --navy-700: #16213e;
  --navy-600: #1a2a4f;
  --blue-deep: #0f3460;
  --sky: #5BA8CC;
  --sky-bright: #6fc3e8;
  --sky-light: #e8f4fb;
  --gold: #f0b429;
  --gold-soft: #fce4b8;

  /* Sémantique */
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;

  /* Neutres */
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --bg: #f4f6fb;
  --bg-elevated: #fbfcfe;
  --card: #ffffff;
  --border: #e8edf5;
  --border-soft: #f1f5f9;

  /* Système */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow: 0 4px 16px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);
  --shadow-hero: 0 16px 40px rgba(15,52,96,.28);
  --header-h: 60px;
  --nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .header-logo, .login-logo h1, .solde-value, .stat-value {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -.01em;
}

/* ── Screens & transitions ───────────────────────────────── */
.screen { display: none; min-height: 100dvh; }
.screen.active { display: flex; flex-direction: column; animation: screenIn .4s var(--ease); }

@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   LOGIN
   ============================================================ */
#screen-login {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, var(--blue-deep) 0%, var(--navy-700) 45%, var(--navy-900) 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
/* halo aéronautique animé */
#screen-login::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(91,168,204,.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}
#screen-login::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  bottom: -140px; left: -120px;
  background: radial-gradient(circle, rgba(240,180,41,.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 16s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-20px,30px) scale(1.08); }
}

.login-container { width: 100%; max-width: 400px; position: relative; z-index: 1; }

.login-logo { text-align: center; margin-bottom: 36px; color: #fff; }
.login-logo h1 {
  font-size: 40px; font-weight: 800; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff 0%, var(--sky-bright) 140%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-logo p {
  font-size: 12px; opacity: .65; letter-spacing: 3px;
  text-transform: uppercase; margin-top: 8px; font-weight: 500;
}

.login-card {
  background: rgba(255,255,255,.98);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
}

.login-step { display: none; }
.login-step.active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.login-card h2 { font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.subtitle { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.subtitle strong { color: var(--text); font-weight: 600; }

.input-group { margin-bottom: 20px; }
.input-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-soft); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 8px;
}
.input-group input,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--bg-elevated);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.input-group input:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91,168,204,.14);
}
.input-group input::placeholder { color: var(--text-muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--navy-700) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15,52,96,.32);
}
.btn-primary:active { box-shadow: 0 3px 10px rgba(15,52,96,.28); }

.btn-text {
  background: transparent; color: var(--text-soft);
  box-shadow: none; margin-top: 8px; font-weight: 500; font-size: 14px;
}
.btn-text:active { color: var(--sky); }

.hint { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* OTP */
.otp-inputs { display: flex; gap: 10px; margin: 8px 0 18px; justify-content: space-between; }
.otp-digit {
  flex: 1; min-width: 0; aspect-ratio: 1/1.15;
  text-align: center; font-size: 24px; font-weight: 700;
  font-family: 'Sora', sans-serif;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .15s;
  -moz-appearance: textfield;
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-digit:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(91,168,204,.16);
  transform: translateY(-2px);
}
.otp-digit.filled { border-color: var(--sky); background: var(--sky-light); }

.otp-timer { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.otp-timer span { color: var(--warning); font-weight: 600; }

/* Messages */
.error-msg {
  background: var(--danger-bg); color: var(--danger);
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; margin-top: 14px; text-align: center;
  border: 1px solid rgba(220,38,38,.15);
}
.success-msg {
  background: var(--success-bg); color: var(--success);
  padding: 14px 16px; border-radius: var(--radius); margin-top: 16px;
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(22,163,74,.15);
}

/* Spinner */
.loading-spinner { display: flex; justify-content: center; padding: 16px; }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border); border-top-color: var(--sky);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   APP
   ============================================================ */
#screen-app { background: var(--bg); }

.app-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 18px; padding-right: 12px;
  background: rgba(251,252,254,.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.header-logo {
  font-size: 19px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--navy-700), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-center { font-size: 15px; font-weight: 600; color: var(--text-soft); }
.icon-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  border-radius: 50%; font-size: 19px; color: var(--text-soft);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.icon-btn:active { background: var(--border-soft); }

.app-main {
  flex: 1; overflow-y: auto;
  padding: 20px 16px calc(var(--nav-h) + var(--safe-bottom) + 24px);
  -webkit-overflow-scrolling: touch;
}

.page { display: none; }
.page.active { display: block; animation: pageIn .35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* stagger d'apparition des enfants directs */
.page.active > * { animation: itemIn .4s var(--ease) backwards; }
.page.active > *:nth-child(1) { animation-delay: .02s; }
.page.active > *:nth-child(2) { animation-delay: .06s; }
.page.active > *:nth-child(3) { animation-delay: .10s; }
.page.active > *:nth-child(4) { animation-delay: .14s; }
.page.active > *:nth-child(5) { animation-delay: .18s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Greeting */
.user-greeting { margin-bottom: 20px; }
.user-greeting h2 { font-size: 24px; font-weight: 700; }
.text-muted { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

/* Section titles */
.section-title {
  font-size: 13px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .6px;
  margin: 24px 4px 12px;
}
.page > .section-title:first-of-type { margin-top: 8px; }

/* ── Carte solde (hero dashboard) ────────────────────────── */
.solde-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--blue-deep) 60%, #144d7a 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-hero);
}
.solde-card::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(91,168,204,.35) 0%, transparent 70%);
  border-radius: 50%;
}
.solde-card.solde-ok {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  box-shadow: 0 16px 40px rgba(22,163,74,.28);
}
.solde-label { font-size: 13px; opacity: .8; font-weight: 500; position: relative; z-index: 1; }
.solde-value { font-size: 36px; font-weight: 800; margin: 6px 0 4px; position: relative; z-index: 1; }
.solde-sub { font-size: 13px; opacity: .85; position: relative; z-index: 1; }

/* Alertes */
.alerte-item {
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 10px; line-height: 1.45;
  border-left: 4px solid var(--text-muted);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.alerte-info { border-left-color: var(--sky); }
.alerte-warning { border-left-color: var(--warning); background: var(--warning-bg); }
.alerte-critique { border-left-color: var(--danger); background: var(--danger-bg); }

.annonce-card {
  background: linear-gradient(135deg, var(--sky-light), #fff);
  border: 1px solid rgba(91,168,204,.25);
  padding: 16px; border-radius: var(--radius); font-size: 14px;
  line-height: 1.5; box-shadow: var(--shadow-sm);
}

/* ── Raccourcis ──────────────────────────────────────────── */
.shortcuts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.shortcut-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border: none;
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  font-family: inherit;
  transition: transform .18s var(--ease-spring), box-shadow .2s;
}
.shortcut-btn:active { transform: scale(.94); box-shadow: var(--shadow); }
.shortcut-icon {
  font-size: 26px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-light), #fff);
  border-radius: var(--radius);
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.page-header h2 { font-size: 22px; font-weight: 700; }
.solde-mini { font-size: 14px; font-weight: 700; }

/* ── Listes ──────────────────────────────────────────────── */
.list-container { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.list-item:active { transform: scale(.99); box-shadow: var(--shadow); }
.list-item-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.list-item-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-icon {
  font-size: 18px; width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 11px;
}
.list-title { font-size: 15px; font-weight: 600; }
.list-sub { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.list-amount { font-size: 15px; font-weight: 700; font-family: 'Sora', sans-serif; }
.list-item-full { width: 100%; }
.list-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.btn-link {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--sky); text-decoration: none;
  padding: 4px 0;
}
.btn-link:active { opacity: .6; }

/* Couleurs texte */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-safe    { color: var(--success) !important; }
.text-muted   { color: var(--text-muted) !important; }

/* ── Blocage ─────────────────────────────────────────────── */
.blocked-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border-radius: var(--radius-xl);
  padding: 36px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--danger-bg);
}
.blocked-icon { font-size: 48px; margin-bottom: 12px; }
.blocked-banner h3 { font-size: 19px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.blocked-banner p { color: var(--text-soft); font-size: 14px; margin-bottom: 6px; }
.blocked-banner .btn { margin-top: 18px; }

/* ── Notes ───────────────────────────────────────────────── */
.notes-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 8px;
}
.notes-stat {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 22px; font-weight: 800; color: var(--blue-deep); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; }

/* ── Absences ────────────────────────────────────────────── */
.absences-alert {
  background: var(--warning-bg); color: var(--warning);
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; margin-bottom: 16px;
  border: 1px solid rgba(217,119,6,.18);
}
.absence-bar {
  width: 100%; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.absence-fill { height: 100%; border-radius: 4px; transition: width .6s var(--ease); }
.absence-fill.safe { background: var(--success); }
.absence-fill.warning { background: var(--warning); }
.absence-fill.danger { background: var(--danger); }

/* ── EDT ─────────────────────────────────────────────────── */
.week-nav { display: flex; align-items: center; gap: 6px; }
.week-nav button {
  width: 32px; height: 32px; border: none; background: var(--card);
  border-radius: 50%; font-size: 18px; color: var(--text-soft);
  cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.week-nav button:active { background: var(--border-soft); }
#week-label { font-size: 13px; font-weight: 600; min-width: 110px; text-align: center; }

.edt-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.edt-day-title {
  font-size: 14px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 8px; padding-left: 4px;
}
.edt-slot {
  position: relative;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--sky);
}
.edt-time { font-size: 13px; font-weight: 700; color: var(--sky); }
.edt-module { font-size: 15px; font-weight: 600; margin: 3px 0; }
.edt-details { font-size: 13px; color: var(--text-muted); }
.edt-annule { opacity: .6; border-left-color: var(--danger); }
.edt-annule .edt-module { text-decoration: line-through; }
.edt-badge-annule {
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; font-weight: 700; color: var(--danger);
  background: var(--danger-bg); padding: 3px 8px; border-radius: 6px;
}

/* ── Documents ───────────────────────────────────────────── */
.documents-actions { display: flex; flex-direction: column; gap: 10px; }
.doc-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 16px; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-sm); font-family: inherit;
  text-align: left; transition: transform .15s, box-shadow .2s;
}
.doc-btn span:first-child { font-size: 20px; }
.doc-btn:active { transform: scale(.98); box-shadow: var(--shadow); }
.doc-btn:disabled { opacity: .5; }

/* ── Carte étudiant ──────────────────────────────────────── */
.carte-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.carte-etudiant {
  width: 100%; max-width: 340px;
  background: linear-gradient(140deg, var(--navy-700) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-xl); padding: 24px; color: #fff;
  box-shadow: var(--shadow-hero); position: relative; overflow: hidden;
}
.carte-etudiant::after {
  content: ''; position: absolute; top: -40%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(240,180,41,.18), transparent 70%);
  border-radius: 50%;
}
.carte-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.carte-school { font-size: 20px; font-weight: 800; letter-spacing: 2px; font-family: 'Sora'; }
.carte-type { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.carte-photo-zone { display: flex; justify-content: center; margin-bottom: 16px; }
.carte-photo-placeholder {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-size: 32px;
  border: 2px solid rgba(255,255,255,.2);
}
.carte-name { font-size: 20px; font-weight: 700; text-align: center; }
.carte-details { font-size: 13px; opacity: .8; text-align: center; margin-top: 4px; }
.qr-container { display: flex; justify-content: center; margin: 18px 0; }
.qr-container img { border-radius: 12px; background: #fff; padding: 8px; }
.carte-year { text-align: center; font-size: 12px; opacity: .7; letter-spacing: 1px; }

/* ── Formulaire messages ─────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-soft); margin-bottom: 7px;
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ── Bottom nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: stretch;
  background: rgba(251,252,254,.92);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border-soft);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; border: none; background: transparent;
  cursor: pointer; font-family: inherit; position: relative;
  color: var(--text-muted); transition: color .2s;
}
.nav-item.active { color: var(--blue-deep); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--sky), var(--blue-deep));
}
.nav-icon { font-size: 20px; transition: transform .2s var(--ease-spring); }
.nav-item.active .nav-icon { transform: translateY(-1px) scale(1.1); }
.nav-label { font-size: 11px; font-weight: 600; }

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-soft) 25%, #fff 50%, var(--border-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius); height: 64px; margin-bottom: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Empty states ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 40px; opacity: .5; margin-bottom: 10px; }

/* ── Accessibilité / réduction mouvement ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Tablette / desktop ──────────────────────────────────── */
@media (min-width: 720px) {
  .app-main { max-width: 640px; margin: 0 auto; width: 100%; }
  .app-header, .bottom-nav { max-width: 640px; margin: 0 auto; left: 0; right: 0; }
  .shortcuts-grid { gap: 16px; }
}
