/* ==========================================================================
   Odyssée Prof FLE — feuille de styles unique
   Simulateur du métier de professeur de FLE (Master FLE)
   CSS pur : aucune dépendance, aucune police distante, aucune image externe.
   Ton : professionnel et exigeant, avec de petites victoires célébrées.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de conception
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #e9f0ef;

  /* Texte : contrastes élevés, jamais de gris clair sur blanc */
  --text: #0f1f1e;
  --muted: #3d5252;

  /* Accents : bleu-vert profond + orange chaud */
  --accent: #0d5c63;
  --accent-dark: #08454a;
  --accent-2: #b3490a;
  --accent-soft: #d7e8e8;
  --accent-2-soft: #fbe7d9;

  /* États */
  --ok: #12683c;
  --warn: #93470a;
  --bad: #a3201a;
  --ok-soft: #d8eee1;
  --warn-soft: #fbeacf;
  --bad-soft: #f8dedb;
  --info: #1b4f8a;
  --info-soft: #dce8f6;

  /* Traits, rayons, profondeur */
  --line: #c5d3d2;
  --line-strong: #93a9a8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 31, 30, .07), 0 10px 26px rgba(15, 31, 30, .09);
  --shadow-sm: 0 1px 2px rgba(15, 31, 30, .09);

  /* Typographie : base 16px, tout le reste en rem */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.125rem;
  --step-5: 2.75rem;

  /* Rythme */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --maxw: 1180px;
}

/* --------------------------------------------------------------------------
   2. Réglages de base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3); line-height: 1.22;
  letter-spacing: -0.011em; color: var(--text); text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 650; }
h4 { font-size: var(--step-1); font-weight: 650; }

p { margin: 0 0 var(--space-4); max-width: 68ch; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.35em; }
li + li { margin-top: var(--space-1); }
strong, b { font-weight: 700; }
small { font-size: var(--step--1); }

a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 3px; }

/* Focus : toujours visible, jamais supprimé */
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
::selection { background-color: var(--accent); color: #ffffff; }

/* --------------------------------------------------------------------------
   3. En-tête, marque, navigation
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-5);
  background-color: var(--surface); border-bottom: 2px solid var(--line); box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-right: auto; font-size: var(--step-1); font-weight: 750;
  letter-spacing: -0.015em; color: var(--text); text-decoration: none;
}

.brand:hover { color: var(--accent-dark); }

.brand-mark {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dark) 100%); color: #ffffff;
  border-radius: 10px; font-size: 1.05rem; font-weight: 800;
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }

.nav a {
  display: inline-block; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9375rem;
  font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent;
}

.nav a:hover { background-color: var(--surface-2); color: var(--accent-dark); }

.nav a[aria-current="page"],
.nav a.active {
  color: var(--accent-dark); background-color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. Structure : conteneur, disposition latérale, grilles
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: var(--space-6) var(--space-5); }

.layout {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--space-6); align-items: start;
}

.sidebar {
  position: sticky; top: 5.25rem; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5); background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

.sidebar h2,
.sidebar h3 {
  margin-bottom: var(--space-2); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}

.sidebar a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 550; text-decoration: none; border-left: 3px solid transparent;
}

.sidebar a:hover { background-color: var(--surface-2); border-left-color: var(--line-strong); }

.sidebar a.active,
.sidebar a[aria-current="page"] {
  background-color: var(--accent-soft); border-left-color: var(--accent);
  color: var(--accent-dark); font-weight: 700;
}

.main { min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
/* --------------------------------------------------------------------------
   5. Cartes
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; min-width: 0; background-color: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}

.card-head h2, .card-head h3, .card-head h4 { margin: 0; font-size: var(--step-1); font-weight: 700; }
.card-head p { margin: 0; max-width: none; font-size: var(--step--1); color: var(--muted); }

.card-body { flex: 1 1 auto; padding: var(--space-5); }
.card-body > :last-child { margin-bottom: 0; }

.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: var(--space-3); padding: var(--space-3) var(--space-5);
  background-color: var(--surface-2); border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   6. Bandeau d'accueil (vitrine)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--space-7) var(--space-6); margin-bottom: var(--space-6); border-radius: var(--radius-lg);
  background-color: var(--accent-dark);
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(179, 73, 10, .55) 0%, rgba(179, 73, 10, 0) 62%),
    linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 68%, #106a70 100%);
  color: #ffffff; box-shadow: var(--shadow);
}

.hero-title {
  max-width: 24ch; margin: 0 0 var(--space-3); font-size: var(--step-5); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.022em; color: #ffffff;
}

.hero-sub {
  max-width: 58ch; margin: 0 0 var(--space-5);
  font-size: var(--step-1); line-height: 1.55; color: #eaf4f3;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero .btn-primary { background-color: var(--accent-2); border-color: var(--accent-2); color: #ffffff; }
.hero .btn-primary:hover { background-color: #8f3907; border-color: #8f3907; }
.hero .btn-ghost { color: #ffffff; border-color: #ffffff; background-color: transparent; }
.hero .btn-ghost:hover { background-color: #ffffff; color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0.625rem 1.125rem; border: 2px solid transparent;
  border-radius: var(--radius-sm); background-color: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: var(--step-0); font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover { background-color: #dfe9e8; }
.btn-primary { background-color: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-primary:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background-color: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost:hover { background-color: var(--accent-soft); color: var(--accent-dark); }
.btn-sm { min-height: 2.25rem; padding: 0.375rem 0.75rem; font-size: var(--step--1); }

.btn[disabled],
.btn[aria-disabled="true"] {
  background-color: var(--surface-2); border-color: var(--line);
  color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none;
}

.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover { background-color: var(--surface-2); color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Badges, notes, insignes
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.15rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background-color: var(--surface-2); color: var(--text);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
}

.badge-ok { background-color: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.badge-warn { background-color: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.badge-bad { background-color: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.badge-info { background-color: var(--info-soft); border-color: var(--info); color: var(--info); }

.grade {
  display: inline-grid; place-items: center; min-width: 3rem; min-height: 3rem; padding: 0.15rem 0.5rem;
  border: 2px solid var(--accent); border-radius: 999px; background-color: var(--accent-soft);
  color: var(--accent-dark); font-size: var(--step-1); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}

.emblem {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 auto;
  border-radius: 14px; color: #ffffff; font-size: var(--step-1); font-weight: 800;
  background: linear-gradient(150deg, var(--accent-2) 0%, #c2571a 55%, #8f3907 100%);
}

/* --------------------------------------------------------------------------
   9. Progression et étapes
   -------------------------------------------------------------------------- */
.progress {
  position: relative; width: 100%; height: 0.75rem; overflow: hidden;
  background-color: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
}

.progress-bar {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #12808a 100%);
  transition: width 600ms cubic-bezier(.22, .61, .36, 1);
  animation: progress-in 700ms cubic-bezier(.22, .61, .36, 1) both;
}

.steps {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin: 0 0 var(--space-5); padding: 0; list-style: none;
}

.step {
  flex: 1 1 180px; display: flex; align-items: center; gap: var(--space-3);
  min-height: 3rem; padding: var(--space-3) var(--space-4);
  background-color: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600; color: var(--muted);
}

.step.done { border-color: var(--ok); background-color: var(--ok-soft); color: #0d4d2c; }
.step.done::before { content: "✓"; font-weight: 800; color: var(--ok); }

.step.current {
  border-color: var(--accent); background-color: var(--accent-soft); color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, .18); font-weight: 700;
}

.step.current::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background-color: var(--accent); }
.steps-vertical { flex-direction: column; }
.steps-vertical .step { flex: 1 1 auto; width: 100%; }

/* --------------------------------------------------------------------------
   10. Formulaires
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.375rem; margin-bottom: var(--space-4); }
.field > .help { margin: 0; }
label { font-size: 0.9375rem; font-weight: 650; color: var(--text); }

input,
textarea,
select {
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.75rem;
  background-color: var(--surface); color: var(--text);
  font-family: inherit; font-size: var(--step-0); line-height: 1.4;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea { min-height: 9rem; resize: vertical; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #5b6f6e; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 92, 99, .22); }
input:disabled, textarea:disabled, select:disabled { background-color: var(--surface-2); color: var(--muted); cursor: not-allowed; }

.help { font-size: 0.875rem; color: var(--muted); }
.error { font-size: 0.875rem; font-weight: 650; color: var(--bad); }

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"],
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }

.field.has-error label { color: var(--bad); }

/* --------------------------------------------------------------------------
   11. Tableaux (vrais tableaux, défilement horizontal sur mobile)
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
th, td {
  padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background-color: var(--surface-2); color: var(--text);
  font-size: 0.875rem; font-weight: 750; letter-spacing: 0.02em; white-space: nowrap;
}
tbody tr:hover { background-color: #f2f7f6; }
tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Mission, grille d'évaluation, livrables
   -------------------------------------------------------------------------- */
.mission-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3) var(--space-5); padding-bottom: var(--space-4);
  margin-bottom: var(--space-5); border-bottom: 2px solid var(--line);
}
.mission-head h1, .mission-head h2 { margin: 0; }
.mission-panel {
  padding: var(--space-5); margin-bottom: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.mission-panel h3 { color: var(--accent-dark); }

.rubric { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; margin: 0 0 var(--space-4); }
.rubric dt { padding: var(--space-3) 0; font-weight: 700; color: var(--accent-dark); border-top: 1px solid var(--line); }
.rubric dd { margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--line); }

.deliverable {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3);
  background-color: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius-sm);
}
.deliverable.done { border-style: solid; border-color: var(--ok); background-color: var(--ok-soft); }
.deliverable.done::before { content: "✓"; font-weight: 800; color: var(--ok); }

/* --------------------------------------------------------------------------
   13. Notifications, états vides, indicateurs, onglets, frise
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 60;
  max-width: min(26rem, calc(100vw - 2rem)); padding: var(--space-3) var(--space-4);
  background-color: #0f1f1e; color: #ffffff; font-weight: 600;
  border: 1px solid #0f1f1e; border-left: 6px solid var(--ok);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: fade-up 320ms ease both;
}
.empty {
  padding: var(--space-6) var(--space-5); text-align: center;
  background-color: var(--surface); color: var(--muted);
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
}
.kpi {
  padding: var(--space-4) var(--space-5); background-color: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.kpi-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.kpi-label { display: block; margin-top: var(--space-1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-4); overflow-x: auto; border-bottom: 2px solid var(--line); }
.tab {
  padding: var(--space-3) var(--space-4); margin-bottom: -2px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); font-family: inherit; font-size: 0.9375rem; font-weight: 650;
  white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--text); background-color: var(--surface-2); }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); background-color: var(--accent-soft); }

.timeline {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  margin: 0 0 var(--space-5); padding: 0 0 0 var(--space-5); list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li { position: relative; padding-left: var(--space-1); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-5) - 0.4rem); top: 0.45rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

.note {
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
  background-color: var(--accent-soft); color: var(--text);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
}
.quote {
  margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-5);
  background-color: var(--surface-2); border-left: 6px solid var(--accent-2);
  border-radius: var(--radius-sm); font-size: var(--step-1); font-style: italic; color: var(--text);
}

/* --------------------------------------------------------------------------
   14. Animations sobres
   -------------------------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes progress-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse-success { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

.card { animation: fade-up 420ms ease both; }
.grid .card:nth-child(2) { animation-delay: 60ms; }
.grid .card:nth-child(3) { animation-delay: 120ms; }
.grid .card:nth-child(4) { animation-delay: 180ms; }
.progress-bar { transform-origin: left center; }
.celebrate, .deliverable.done { animation: pulse-success 600ms ease-out 1; }

/* --------------------------------------------------------------------------
   15. Adaptations d'écran
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .sidebar {
    position: static; top: auto; flex-direction: row; flex-wrap: nowrap;
    gap: var(--space-1); padding: var(--space-2); overflow-x: auto; border-radius: var(--radius-sm);
  }
  .sidebar h2, .sidebar h3 { display: none; }
  .sidebar a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px; }
  .sidebar a:hover { border-left-color: transparent; border-bottom-color: var(--line-strong); }
  .sidebar a.active, .sidebar a[aria-current="page"] { border-left-color: transparent; border-bottom-color: var(--accent); }
  .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .rubric { grid-template-columns: 1fr; }
  .rubric dt { padding-bottom: 0; }
  .rubric dd { padding-top: var(--space-1); border-top: 0; }
  .hero { padding: var(--space-6) var(--space-5); }
  .hero-title { font-size: var(--step-4); }
}

@media (max-width: 560px) {
  .container { padding: var(--space-5) var(--space-4); }
  .topbar { padding: var(--space-3) var(--space-4); }
  .brand { font-size: var(--step-0); }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .card-head, .card-body, .card-foot { padding-inline: var(--space-4); }
  .hero-title { font-size: 1.875rem; }
  .toast { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover { transform: none; }
  .progress-bar { animation: none; transform: none; }
}

/* Fin de la feuille de styles — Odyssée Prof FLE — 23 octobre 2026 */

/* ---------- compléments (classes utilisées par les vues) ---------- */
.container-wide { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
.foot { color: var(--muted); font-size: .82rem; text-align: center; padding: 28px 20px 40px; }
.hero-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 800; color: #ffe3c2; background: rgba(0,0,0,.28); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: .9rem; }
.inline { display: inline; }
.qui { font-weight: 600; font-size: .88rem; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.field-row input[type="text"], .field-row input:not([type]) { flex: 1 1 260px; }
.w-note { flex: 0 0 96px; }
.principes { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.principes li { line-height: 1.55; }
.rubric-list { margin: 18px 0 0; display: grid; grid-template-columns: 190px 1fr; gap: 6px 16px; }
.rubric-list dt { font-weight: 700; color: var(--text); font-size: .88rem; }
.rubric-list dd { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .8rem; margin-right: 8px; }
.steps .nom { font-size: .86rem; }
.select-inline { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--surface-2); background: var(--surface); color: var(--text); }
@media (max-width: 720px) { .rubric-list { grid-template-columns: 1fr; } .rubric-list dt { margin-top: 10px; } }

/* emblème de marque et grade */
.brand .emblem { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-2); color: #fff; }
.kpi-grade { font-size: 1.35rem; line-height: 1.2; margin-top: 6px; }

/* imprévu et code de classe */
.card.imprevu { border: 2px solid var(--accent-2); }
.card.imprevu .quote { border-left-color: var(--accent-2); }
.code-classe { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; letter-spacing: .18em; background: var(--surface-2); padding: 3px 9px; border-radius: 8px; }
@media print { .topbar, .sidebar, .foot, .btn { display: none !important; } .layout { display: block; } .card { break-inside: avoid; } }


/* Lien d'evitement (accessibilite clavier) */
.skip { position: absolute; left: -9999px; top: 0; background: #0d5c63; color: #fff;
  padding: .7rem 1.1rem; z-index: 999; border-radius: 0 0 .5rem 0; font-weight: 700; }
.skip:focus { left: 0; outline: 3px solid #e8641a; outline-offset: 2px; }
