/*
 * NUNYA PERMIS — système de design, direction « Nunya ».
 * Vert forêt, or, terre cuite, motif tissé. Grands rayons, boutons en pilule.
 *
 * Trois couches de jetons (préfixe --np-) :
 *   1. core       valeurs brutes, jamais utilisées directement par un composant ;
 *   2. sémantique rôles consommés par les composants ;
 *   3. tenant     surcharge par auto-école : accent et texte sur accent. Jamais les couleurs d'état.
 *
 * Contrastes WCAG 2.2 AA vérifiés : texte 4,5:1, composants et focus 3:1.
 * V1 : thème clair uniquement pour les sites publics.
 */

:root {
  color-scheme: light;

  /* 1. Core */
  --np-forest-900: #0a2f26;
  --np-forest-700: #10473a;
  --np-forest-600: #175a4a;
  --np-forest-100: #dcebe5;
  --np-forest-50: #edf5f1;
  --np-gold-500: #e3a72f;
  --np-gold-600: #c98d17;
  --np-gold-100: #fbefd6;
  --np-terre-600: #b5532e;
  --np-terre-700: #8e3b1d;
  --np-terre-100: #f6e2d9;
  --np-paper: #faf6ee;
  --np-paper-200: #f2ebdd;
  --np-paper-300: #e4dccb;
  --np-night: #1a211e;
  --np-stone-600: #4b554f;
  --np-stone-500: #6b746f;
  --np-stone-400: #7b847e;
  --np-white: #ffffff;
  --np-blue-600: #1f5fd1;
  /* Jetons ajoutés par la page commerciale S1 (contrastes dans le handoff). */
  --np-stone-700: #3d4641;
  --np-paper-400: #b9b3a5;
  --np-night-800: #222a27;
  --np-night-700: #3a4440;
  --np-night-muted: #bfc7c2;
  --np-night-text: #e4e8e5;
  --np-success-border: #9cc4af;
  --np-info-border: #8fa6cf;

  /* 2. Sémantique */
  --np-bg-canvas: var(--np-paper);
  --np-bg-surface: var(--np-white);
  --np-bg-subtle: var(--np-paper-200);
  --np-bg-strong: var(--np-forest-700);
  --np-text-primary: var(--np-night);
  --np-text-secondary: var(--np-stone-600);
  --np-text-on-strong: var(--np-white);
  --np-border-default: var(--np-paper-300);
  --np-border-control: var(--np-stone-400);
  --np-brand: var(--np-forest-700);
  --np-brand-hover: var(--np-forest-900);
  --np-accent: var(--np-gold-500);
  --np-link: var(--np-forest-700);
  --np-focus: var(--np-blue-600);

  --np-success: #1e7a46;
  --np-success-text: #186a3c;
  --np-success-subtle: #e7f3ec;
  --np-danger: #c2362b;
  --np-danger-text: #a23026;
  --np-danger-subtle: #fbe9e7;
  --np-warning-text: #7a4a00;
  --np-warning-subtle: #fcf1dc;
  --np-info-text: #1a4fae;
  --np-info-subtle: #e8effc;

  /* 3. Tenant (surchargé par l'auto-école, après contrôle de contraste) */
  --np-tenant-accent: var(--np-brand);
  --np-tenant-on-accent: var(--np-white);

  /* Typographie */
  --np-font-display: var(--font-display), 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --np-font-body: var(--font-body), 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rayons, espacements, mouvement */
  --np-radius-sm: 10px;
  --np-radius-md: 16px;
  --np-radius-lg: 20px;
  --np-radius-xl: 28px;
  --np-radius-pill: 999px;
  --np-space-1: 4px;
  --np-space-2: 8px;
  --np-space-3: 12px;
  --np-space-4: 16px;
  --np-space-5: 24px;
  --np-space-6: 32px;
  --np-space-7: 48px;
  --np-space-8: 64px;
  --np-ease: cubic-bezier(0.2, 0, 0, 1);
  --np-fast: 120ms;
  --np-base: 200ms;
  --np-woven: repeating-linear-gradient(
    90deg,
    var(--np-gold-500) 0 18px,
    var(--np-forest-700) 18px 24px,
    var(--np-terre-600) 24px 30px,
    var(--np-paper) 30px 34px,
    var(--np-forest-700) 34px 46px,
    var(--np-gold-500) 46px 50px
  );
  --np-woven-wide: repeating-linear-gradient(
    90deg,
    var(--np-forest-700) 0 46px,
    var(--np-gold-500) 46px 58px,
    var(--np-terre-600) 58px 70px,
    var(--np-paper) 70px 74px,
    var(--np-night) 74px 80px,
    var(--np-paper) 80px 84px
  );
}

/* ─── Base ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--np-bg-canvas);
  color: var(--np-text-primary);
  font-family: var(--np-font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--np-font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--np-link);
  text-underline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

/* Un display posé par une classe ne doit jamais rendre visible un élément masqué. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--np-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--np-gold-100);
}

.np-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.np-skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--np-radius-pill);
  background: var(--np-night);
  color: var(--np-white);
  font-weight: 600;
  transition: top var(--np-fast) var(--np-ease);
}

.np-skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Mise en page ────────────────────────────────────────────────────────── */

.np-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .np-container {
    padding: 0 24px;
  }
}

.np-narrow {
  max-width: 720px;
}

.np-stack {
  display: flex;
  flex-direction: column;
  gap: var(--np-space-4);
}

.np-stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--np-space-6);
}

.np-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--np-space-3);
}

.np-grid {
  display: grid;
  gap: var(--np-space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.np-grid-2 {
  display: grid;
  gap: var(--np-space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .np-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.np-section {
  padding: var(--np-space-7) 0;
}

.np-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-text-secondary);
}

.np-lead {
  font-size: 1.125rem;
  color: var(--np-text-secondary);
  max-width: 60ch;
}

.np-muted {
  color: var(--np-text-secondary);
}

.np-small {
  font-size: 0.875rem;
}

.np-woven {
  height: 10px;
  background: var(--np-woven);
}

/* ─── Marque ──────────────────────────────────────────────────────────────── */

.np-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.np-logo-word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.np-logo-word strong {
  font-family: var(--np-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.np-logo-word span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--np-terre-600);
  margin-top: 2px;
}

.np-on-strong .np-logo-word span {
  color: var(--np-gold-500);
}

/* ─── En-tête et pied de page ─────────────────────────────────────────────── */

.np-header {
  background: var(--np-bg-surface);
  border-bottom: 1px solid var(--np-border-default);
}

.np-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--np-space-4);
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.np-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.np-nav a {
  color: var(--np-text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 2px;
}

.np-nav a:hover {
  text-decoration: underline;
}

.np-tenant-band {
  height: 6px;
  background: var(--np-tenant-accent);
}

.np-school-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--np-text-primary);
  font-family: var(--np-font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.np-monogram {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--np-tenant-accent);
  color: var(--np-tenant-on-accent);
  font-family: var(--np-font-display);
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}

.np-school-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--np-white);
  flex: none;
}

.np-footer {
  margin-top: var(--np-space-8);
  border-top: 1px solid var(--np-border-default);
  background: var(--np-bg-surface);
  padding: var(--np-space-5) 0;
  font-size: 0.875rem;
  color: var(--np-text-secondary);
}

.np-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--np-space-3);
}

.np-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--np-text-secondary);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Héros ───────────────────────────────────────────────────────────────── */

.np-hero {
  position: relative;
  overflow: hidden;
  background: var(--np-bg-strong);
  color: var(--np-text-on-strong);
  border-radius: 0 0 var(--np-radius-xl) var(--np-radius-xl);
}

.np-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--np-gold-500);
  opacity: 0.95;
  pointer-events: none;
}

.np-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--np-space-7);
  padding-bottom: var(--np-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--np-space-5);
}

.np-hero h1 {
  max-width: 18ch;
}

.np-hero .np-lead {
  color: #e2ece8;
}

.np-hero a:not(.np-btn) {
  color: var(--np-white);
}

.np-hero--tenant {
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  border-bottom: 1px solid var(--np-border-default);
}

.np-hero--tenant::after {
  background: var(--np-tenant-accent);
  opacity: 0.12;
}

.np-hero--tenant .np-lead {
  color: var(--np-text-secondary);
}

.np-hero--tenant a:not(.np-btn) {
  color: var(--np-link);
}

/* ─── Boutons ─────────────────────────────────────────────────────────────── */

.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: var(--np-radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--np-fast) var(--np-ease),
    border-color var(--np-fast) var(--np-ease),
    color var(--np-fast) var(--np-ease);
}

.np-btn:disabled,
.np-btn[aria-disabled='true'] {
  cursor: not-allowed;
  background: var(--np-paper-200);
  color: var(--np-stone-500);
  border-color: var(--np-paper-300);
}

.np-btn--primary {
  background: var(--np-tenant-accent);
  color: var(--np-tenant-on-accent);
}

.np-btn--primary:hover:not(:disabled) {
  filter: brightness(0.92);
}

.np-btn--brand {
  background: var(--np-brand);
  color: var(--np-white);
}

/* Le portail public (.d4 a) ne doit pas remplacer le texte des boutons
   de l'espace de gestion par la couleur sombre héritée de leur carte. */
.np-app a.np-btn--brand {
  color: var(--np-white);
}

.np-btn--brand:hover:not(:disabled) {
  background: var(--np-brand-hover);
}

.np-btn--gold {
  background: var(--np-gold-500);
  color: var(--np-night);
}

.np-btn--gold:hover:not(:disabled) {
  background: var(--np-gold-600);
}

.np-btn--secondary {
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  border-color: var(--np-night);
}

.np-btn--secondary:hover:not(:disabled) {
  background: var(--np-paper-200);
}

.np-btn--on-strong {
  background: transparent;
  color: var(--np-white);
  border-color: var(--np-white);
}

.np-btn--on-strong:hover {
  background: rgba(255, 255, 255, 0.12);
}

.np-btn--danger {
  background: var(--np-bg-surface);
  color: var(--np-danger-text);
  border-color: var(--np-danger);
}

.np-btn--danger:hover:not(:disabled) {
  background: var(--np-danger);
  color: var(--np-white);
}

.np-btn--ghost {
  background: transparent;
  color: var(--np-text-primary);
  border-color: transparent;
  padding-left: 12px;
  padding-right: 12px;
}

.np-btn--ghost:hover {
  background: var(--np-paper-200);
}

.np-btn--sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.925rem;
}

.np-btn--block {
  width: 100%;
}

/* ─── Cartes ──────────────────────────────────────────────────────────────── */

.np-card {
  background: var(--np-bg-surface);
  border: 1px solid var(--np-border-default);
  border-radius: var(--np-radius-lg);
  padding: var(--np-space-5);
}

.np-card--strong {
  background: var(--np-bg-strong);
  color: var(--np-text-on-strong);
  border-color: var(--np-bg-strong);
}

.np-card--subtle {
  background: var(--np-bg-subtle);
  border-color: transparent;
}

.np-card h2,
.np-card h3 {
  margin-bottom: var(--np-space-2);
}

.np-offer {
  display: flex;
  flex-direction: column;
  gap: var(--np-space-3);
  height: 100%;
}

.np-offer-price {
  font-family: var(--np-font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--np-text-primary);
}

.np-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.9rem;
  color: var(--np-text-secondary);
}

.np-offer .np-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ─── Badges et états de dossier ──────────────────────────────────────────── */

.np-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--np-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--np-paper-200);
  color: var(--np-text-primary);
}

.np-badge--gold {
  background: var(--np-gold-100);
  color: #5e4100;
}

.np-badge--forest {
  background: var(--np-forest-100);
  color: var(--np-forest-900);
}

.np-badge--outline {
  background: transparent;
  border: 1px solid currentColor;
}

.np-status--PRE_REGISTERED {
  background: var(--np-paper-200);
  color: var(--np-night);
}

.np-status--INCOMPLETE {
  background: var(--np-terre-100);
  color: var(--np-terre-700);
}

.np-status--IN_TRAINING {
  background: var(--np-gold-100);
  color: #5e4100;
}

.np-status--READY_FOR_EXAM {
  background: var(--np-forest-700);
  color: var(--np-white);
}

.np-status--PASSED {
  background: var(--np-success-subtle);
  color: var(--np-success-text);
}

.np-status--ARCHIVED {
  background: #ececec;
  color: #4a4a4a;
}

/* ─── Messages ────────────────────────────────────────────────────────────── */

.np-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--np-radius-md);
  background: var(--np-info-subtle);
  color: var(--np-info-text);
  font-weight: 500;
}

.np-notice svg {
  flex: none;
  margin-top: 2px;
}

.np-notice--success {
  background: var(--np-success-subtle);
  color: var(--np-success-text);
}

.np-notice--danger {
  background: var(--np-danger-subtle);
  color: var(--np-danger-text);
}

.np-notice--warning {
  background: var(--np-warning-subtle);
  color: var(--np-warning-text);
}

/* ─── Formulaires ─────────────────────────────────────────────────────────── */

.np-form {
  display: flex;
  flex-direction: column;
  gap: var(--np-space-5);
}

.np-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--np-space-4);
  min-width: 0;
}

.np-fieldset legend {
  font-family: var(--np-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0;
  margin-bottom: var(--np-space-3);
}

.np-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.np-label {
  font-weight: 700;
}

.np-label-note {
  font-weight: 500;
  color: var(--np-text-secondary);
  font-size: 0.875rem;
  margin-left: 6px;
}

.np-hint {
  font-size: 0.875rem;
  color: var(--np-text-secondary);
}

.np-input,
.np-select,
.np-textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--np-border-control);
  border-radius: var(--np-radius-sm);
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  font: inherit;
}

.np-textarea {
  min-height: 112px;
  resize: vertical;
}

.np-input:focus-visible,
.np-select:focus-visible,
.np-textarea:focus-visible {
  border-color: var(--np-focus);
  outline-offset: 0;
}

.np-input[aria-invalid='true'],
.np-select[aria-invalid='true'],
.np-textarea[aria-invalid='true'] {
  border: 2px solid var(--np-danger);
}

.np-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--np-danger-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.np-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.np-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--np-brand);
  flex: none;
}

.np-choice-grid {
  display: grid;
  gap: var(--np-space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.np-choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--np-border-control);
  border-radius: var(--np-radius-md);
  background: var(--np-bg-surface);
  cursor: pointer;
  min-height: 56px;
}

.np-choice:has(input:checked) {
  border: 2px solid var(--np-brand);
  background: var(--np-forest-50);
}

.np-choice:has(input:focus-visible) {
  outline: 3px solid var(--np-focus);
  outline-offset: 2px;
}

.np-choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--np-brand);
  flex: none;
}

.np-choice-title {
  font-weight: 700;
}

.np-locale-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--np-space-3);
}

.np-locale-row {
  display: grid;
  gap: 6px;
}

.np-locale-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--np-text-secondary);
}

.np-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.np-color-row input[type='color'] {
  width: 56px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--np-border-control);
  border-radius: var(--np-radius-sm);
  background: var(--np-bg-surface);
}

/* ─── Étapes ──────────────────────────────────────────────────────────────── */

.np-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.np-stepper li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--np-text-secondary);
}

.np-stepper li::before {
  content: '';
  height: 6px;
  border-radius: var(--np-radius-pill);
  background: var(--np-paper-300);
}

.np-stepper li[data-state='done']::before {
  background: var(--np-forest-700);
}

.np-stepper li[data-state='current']::before {
  background: var(--np-gold-500);
}

.np-stepper li[data-state='current'] {
  color: var(--np-text-primary);
  font-weight: 700;
}

/* ─── Tableaux ────────────────────────────────────────────────────────────── */

.np-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--np-border-default);
  border-radius: var(--np-radius-lg);
  background: var(--np-bg-surface);
}

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.np-table th,
.np-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--np-border-default);
  vertical-align: middle;
}

.np-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--np-text-secondary);
  background: var(--np-paper);
}

.np-table tr:last-child td {
  border-bottom: 0;
}

.np-table a {
  font-weight: 700;
}

.np-mono {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .np-table thead {
    display: none;
  }

  .np-table tr {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--np-border-default);
  }

  .np-table td {
    padding: 0;
    border: 0;
  }
}

/* ─── Onglets ─────────────────────────────────────────────────────────────── */

.np-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--np-radius-pill);
  border: 1px solid var(--np-border-control);
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  font-weight: 600;
  text-decoration: none;
}

.np-tab[aria-current='page'] {
  background: var(--np-night);
  border-color: var(--np-night);
  color: var(--np-white);
}

/* ─── Espace connecté ─────────────────────────────────────────────────────── */

.np-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.np-app-nav {
  background: var(--np-bg-surface);
  border-bottom: 1px solid var(--np-border-default);
}

.np-app-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.np-app-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--np-radius-pill);
  color: var(--np-text-primary);
  text-decoration: none;
  font-weight: 600;
}

.np-app-nav a[aria-current='page'] {
  background: var(--np-forest-700);
  color: var(--np-white);
}

.np-app-main {
  flex: 1;
  padding: var(--np-space-6) 0 var(--np-space-7);
}

.np-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--np-space-4);
  margin-bottom: var(--np-space-5);
}

.np-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.np-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 148px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: var(--np-bg-surface);
  border: 1px solid var(--np-paper-300);
  box-shadow: 0 18px 36px -30px rgba(26, 33, 30, 0.55);
  text-decoration: none;
  color: var(--np-night);
}

.np-kpi:hover {
  border-color: var(--np-forest-700);
  box-shadow: 0 22px 40px -28px rgba(16, 55, 42, 0.45);
}

.np-kpi:focus-visible {
  outline: 3px solid var(--np-focus);
  outline-offset: 3px;
}

.np-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--np-forest-50);
  color: var(--np-forest-700);
}

.np-kpi strong {
  font-family: var(--np-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--np-night);
}

.np-kpi span:last-child {
  max-width: 16ch;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--np-stone-700);
}

@media (min-width: 900px) {
  .np-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .np-kpi {
    min-height: 168px;
    padding: 22px 22px 20px;
  }
}

.np-dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 10px 20px;
  margin: 0;
}

.np-dl dt {
  color: var(--np-text-secondary);
  font-weight: 600;
}

.np-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .np-dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .np-dl dd {
    margin-bottom: 10px;
  }
}

.np-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.np-timeline li {
  position: relative;
  padding-left: 22px;
}

.np-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--np-gold-500);
  box-shadow: 0 0 0 3px var(--np-gold-100);
}

.np-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--np-space-6);
  border: 1px dashed var(--np-border-control);
  border-radius: var(--np-radius-lg);
  background: var(--np-bg-surface);
}

.np-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.np-copy code {
  padding: 10px 14px;
  border-radius: var(--np-radius-sm);
  background: var(--np-paper-200);
  overflow-wrap: anywhere;
}

/* ─── Langue ──────────────────────────────────────────────────────────────── */

.np-lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--np-radius-pill);
  border: 1px solid var(--np-border-control);
  background: var(--np-bg-surface);
}

.np-lang button {
  min-height: 38px;
  min-width: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--np-radius-pill);
  background: transparent;
  color: var(--np-text-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.np-lang button[aria-pressed='true'] {
  background: var(--np-night);
  color: var(--np-white);
}

.np-on-strong .np-lang {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.np-on-strong .np-lang button {
  color: var(--np-white);
}

.np-on-strong .np-lang button[aria-pressed='true'] {
  background: var(--np-gold-500);
  color: var(--np-night);
}

/* ─── QCM ─────────────────────────────────────────────────────────────────── */

.np-progress {
  height: 8px;
  border-radius: var(--np-radius-pill);
  background: var(--np-paper-300);
  overflow: hidden;
}

.np-progress span {
  display: block;
  height: 100%;
  background: var(--np-gold-500);
  border-radius: inherit;
  transition: width var(--np-base) var(--np-ease);
}

.np-quiz-prompt {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

.np-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--np-border-control);
  border-radius: var(--np-radius-md);
  background: var(--np-bg-surface);
  color: var(--np-text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.np-answer-key {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--np-paper-200);
  font-weight: 800;
  flex: none;
}

.np-answer-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.np-answer-state {
  font-size: 0.82rem;
  font-weight: 700;
}

.np-answer[aria-pressed='true'],
.np-answer[aria-checked='true'] {
  border: 2px solid var(--np-night);
  background: var(--np-gold-100);
}

.np-answer[aria-pressed='true'] .np-answer-key,
.np-answer[aria-checked='true'] .np-answer-key {
  background: var(--np-night);
  color: var(--np-white);
}

.np-answer[data-result='correct'] {
  border: 2px solid var(--np-success);
  background: var(--np-success-subtle);
}

.np-answer[data-result='correct'] .np-answer-key {
  background: var(--np-success);
  color: var(--np-white);
}

.np-answer[data-result='correct'] .np-answer-state {
  color: var(--np-success-text);
}

.np-answer[data-result='wrong'] {
  border: 2px solid var(--np-danger);
  background: var(--np-danger-subtle);
}

.np-answer[data-result='wrong'] .np-answer-key {
  background: var(--np-danger);
  color: var(--np-white);
}

.np-answer[data-result='wrong'] .np-answer-state {
  color: var(--np-danger-text);
}

.np-answer[data-result='missed'] {
  border: 2px dashed var(--np-success);
  background: var(--np-bg-surface);
}

.np-answer[data-result='missed'] .np-answer-state {
  color: var(--np-success-text);
}

.np-answer:disabled {
  cursor: default;
}

.np-explain {
  padding: 16px 18px;
  border-radius: var(--np-radius-md);
  background: var(--np-forest-700);
  color: var(--np-white);
}

.np-explain strong {
  color: var(--np-gold-500);
}

.np-video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--np-space-5);
  border-radius: var(--np-radius-lg);
  background: var(--np-night);
  color: var(--np-white);
}

.np-video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--np-radius-md);
  background:
    radial-gradient(circle at 75% 80%, var(--np-gold-500) 0 18%, transparent 18.5%),
    linear-gradient(160deg, var(--np-forest-600), var(--np-forest-900));
  color: var(--np-white);
}

.np-video p {
  color: #dfe6e2;
}

.np-module {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.np-lesson-list li a,
.np-lesson-list li > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 52px;
  border-radius: var(--np-radius-md);
  background: var(--np-bg-subtle);
  color: var(--np-text-primary);
  text-decoration: none;
}

.np-lesson-list li a:hover {
  background: var(--np-forest-100);
}

.np-prose {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-prose ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── Coquille simple (pages d'accueil et d'erreur) ───────────────────────── */

.np-shell-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--np-border-default);
  background: var(--np-bg-surface);
}

.np-shell-header p.np-eyebrow {
  color: var(--np-brand);
}

.np-shell-main {
  padding: 28px 0;
  line-height: 1.55;
}

/* ─── Vitrine ─────────────────────────────────────────────────────────────── */

.np-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

.np-editor h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.np-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 8px;
}

.np-editor-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.np-editor-status .np-badge {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 15px;
}

.np-editor-dirty {
  font-weight: 700;
  color: var(--np-warning-text);
}

.np-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-editor-note {
  margin: 0 0 8px;
  color: var(--np-stone-700);
}

.np-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--np-border-default);
}

.np-editor-tab {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--np-stone-700);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.np-editor-tab[aria-selected='true'] {
  color: var(--np-night);
  border-bottom-color: var(--np-forest-700);
}

.np-editor-tab:focus-visible {
  outline: 3px solid var(--np-focus);
  outline-offset: 2px;
}

.np-editor-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.np-editor-main {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.np-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.np-editor-panel[hidden] {
  display: none;
}

.np-editor-panel .np-textarea {
  min-height: 160px;
  line-height: 1.5;
}

.np-editor-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.np-editor-group h2 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.np-editor-pair {
  display: grid;
  gap: 16px;
}

.np-editor-contrast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--np-forest-50);
  font-size: 16px;
}

.np-editor-contrast strong {
  font-variant-numeric: tabular-nums;
}

.np-editor-contrast--bad {
  background: var(--np-danger-subtle, #fde8e4);
  color: var(--np-danger-text);
}

.np-editor .np-color-row input[type='color'] {
  width: 48px;
  height: 48px;
  padding: 4px;
}

.np-editor .np-mono {
  max-width: 9rem;
}

.np-editor-preview-open {
  display: none;
}

.np-portal {
  min-height: 0;
}

.np-portal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--np-paper-300);
  border-radius: 24px;
  background: var(--np-white);
  color: var(--np-night);
  box-shadow: 0 18px 40px -34px rgba(26, 33, 30, 0.55);
}

.np-portal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--np-paper-300);
  background: var(--np-white);
}

.np-portal-bar img,
.np-portal-mark {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  object-fit: contain;
  background: var(--np-paper);
}

.np-portal-mark {
  display: grid;
  place-items: center;
  background: var(--np-portal-accent, var(--np-forest-700));
  color: var(--np-portal-on, #fff);
  font-weight: 800;
  font-size: 1.25rem;
}

.np-portal-bar strong,
.np-portal-bar small {
  display: block;
}

.np-portal-bar strong {
  font-size: 16px;
}

.np-portal-bar small {
  margin-top: 2px;
  color: var(--np-stone-700);
  font-size: 14px;
}

.np-portal-hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px 32px;
  background: var(--np-paper);
}

.np-portal-kicker {
  margin: 0;
  color: var(--np-forest-700);
  font-size: 14px;
  font-weight: 700;
}

.np-portal-hero h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.15;
}

.np-portal-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.np-portal-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--np-portal-accent, var(--np-forest-700));
  color: var(--np-portal-on, #fff);
  font-weight: 700;
}

.np-portal-hero ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--np-stone-700);
  font-size: 15px;
}

.np-editor-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--np-bg-canvas);
  color: inherit;
}

.np-editor-dialog::backdrop {
  background: rgba(26, 33, 30, 0.45);
}

.np-editor-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.np-editor-dialog-bar strong {
  font-size: 1.1rem;
}

.np-showcase {
  display: grid;
  gap: 16px;
}

.np-showcase h2,
.np-showcase h3 {
  margin: 0;
  font-size: 1.15rem;
}

.np-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.np-lang-switch [role='tablist'] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.np-lang-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--np-radius-pill);
  border: 1px solid var(--np-border-control);
  background: var(--np-bg-surface);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.np-lang-tab[aria-selected='true'] {
  background: var(--np-brand);
  border-color: transparent;
  color: var(--np-white);
}

.np-lang-dot {
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--np-gold-500, #b45309);
}

.np-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.np-logo-preview {
  width: 112px;
  height: 112px;
  flex: none;
  object-fit: contain;
  border-radius: 18px;
  background: var(--np-paper);
  border: 1px solid var(--np-paper-300);
}

.np-logo-empty {
  display: block;
  background: var(--np-white);
  border-color: var(--np-stone-400);
}

.np-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.np-showcase-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--np-border-default);
  border-radius: 16px;
  background: var(--np-bg-canvas, var(--np-paper-50, #f7f4ee));
}

.np-showcase-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--np-brand);
  color: var(--np-white);
  font-weight: 700;
  font-size: 1.4rem;
}

.np-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.np-showcase-dirty {
  flex-basis: 100%;
  margin: 0;
}

.np-showcase-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.np-showcase-offers li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

@media (min-width: 960px) {
  .np-showcase {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
  }

  .np-showcase-identity,
  .np-showcase-contact {
    grid-column: 1;
  }

  .np-showcase-appearance,
  .np-showcase-publication,
  .np-showcase-trainings {
    grid-column: 2;
  }
}

@container (min-width: 640px) {
  .np-editor-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .np-editor-layout {
    grid-template-columns: minmax(0, 1.86fr) minmax(280px, 1fr);
    gap: 32px;
  }

  .np-editor-aside {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 699px) {
  .np-editor-aside {
    display: none;
  }

  .np-editor-preview-open {
    display: inline-flex;
  }

  .np-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .np-editor-actions .np-btn {
    width: 100%;
  }

  .np-editor-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .np-editor-tab {
    padding-inline: 8px;
    text-align: center;
  }

  .np-editor-bar {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-inline: -16px;
    padding: 8px 16px 12px;
    background: var(--np-bg-canvas);
  }
}

@media (min-width: 600px) and (max-width: 699px) {
  .np-editor-bar {
    margin-inline: -24px;
    padding-inline: 24px;
  }
}

.np-dir {
  padding: 32px 0 72px;
}

.np-dir h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.np-dir-lead,
.np-dir-count {
  max-width: 62ch;
  color: var(--np-ink-muted, #3d4a45);
}

.np-dir-search {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 20px;
  background: var(--np-white, #fff);
}

.np-dir-search label,
.np-dir-admin label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.np-dir-search input,
.np-dir-search select,
.np-dir-admin input,
.np-dir-admin select,
.np-dir textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--np-border-control, #c5d0ca);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--np-white, #fff);
}

.np-dir-school {
  position: relative;
}

.np-dir-school ul {
  position: absolute;
  z-index: 3;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 12px;
  background: var(--np-white, #fff);
  box-shadow: 0 12px 30px rgb(16 71 58 / 10%);
  max-height: 22rem;
  overflow: auto;
}

.np-dir-school button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.np-dir-school button span {
  color: var(--np-ink-muted, #3d4a45);
}

.np-dir-choice {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  min-height: 0;
}

.np-dir-choice strong {
  font-weight: 700;
}

.np-school-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 16px;
  background: var(--np-white, #fff);
}

.np-school-pick p {
  margin: 0;
}

.np-school-switch {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.np-school-switch select {
  min-height: 40px;
  max-width: 240px;
  font: inherit;
}

.np-dir-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.np-dir-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 16px;
  background: var(--np-white, #fff);
}

.np-dir-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.np-dir-card p {
  margin: 0;
}

.np-dir-address {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.np-dir-sheet {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.np-dir-admin {
  display: grid;
  gap: 12px;
}

.np-dir-admin-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-dir-admin-list a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 12px;
  background: var(--np-white, #fff);
  color: inherit;
  text-decoration: none;
}

@media (min-width: 800px) {
  .np-dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.np-board-filters {
  display: grid;
  gap: 12px;
  align-items: end;
}

.np-board-filters label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.np-board-cards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-board-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--np-border, #d9e2dc);
  border-radius: 16px;
  background: var(--np-white, #fff);
}

@media (min-width: 800px) {
  .np-board-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .np-board-query {
    grid-column: 1 / -1;
  }

  .np-board-cards {
    display: none;
  }
}

@media (max-width: 799px) {
  .np-board-table {
    display: none;
  }
}

@media (min-width: 1100px) {
  .np-dir-search {
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.9fr) minmax(200px, 0.8fr) auto;
    align-items: end;
  }

  .np-dir-query {
    grid-column: 1 / -1;
  }

  .np-dir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .np-dir-admin {
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(190px, 0.9fr) minmax(180px, 1fr);
    align-items: end;
  }

  .np-dir-admin button {
    grid-column: 1;
    justify-self: start;
  }
}

.np-visual {
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--np-paper-300);
  border-top: 4px solid var(--np-forest-700);
  border-radius: 24px;
  background: var(--np-paper);
}

.np-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  margin: 0 auto;
  object-fit: contain;
  background: #f6f1e8;
  border-radius: 18px;
}

.np-visual-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.np-visual h2 {
  margin: 0;
  font-size: 1.5rem;
}

@media (min-width: 900px) {
  .np-visual {
    grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1fr);
    align-items: center;
  }
}

.np-cinema {
  --np-cinema-duration: 780ms;
  --np-cinema-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --np-cinema-text: 560ms;
  --np-cinema-delay: 110ms;
  max-width: 75rem;
  margin-inline: auto;
  min-width: 0;
}
.np-cinema__viewport { outline: none; min-width: 0; }
.np-cinema__viewport:focus-visible { outline: 3px solid var(--np-gold-500); outline-offset: 4px; border-radius: 18px; }
.np-cinema__stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0c241c;
  box-shadow: 0 46px 90px -56px rgba(5, 14, 24, 0.9);
  aspect-ratio: 16 / 8.5;
  min-height: 520px;
  max-height: min(72vh, 680px);
  border: 1px solid rgba(227, 167, 47, 0.28);
}
.np-cinema__track { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.np-cinema__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0);
  transition:
    transform var(--np-cinema-duration) var(--np-cinema-ease),
    visibility 0s linear var(--np-cinema-duration),
    opacity 0s linear var(--np-cinema-duration);
  z-index: 1;
}
.np-cinema__slide.is-active,
.np-cinema__slide.is-leaving,
.np-cinema__slide.is-entering { visibility: visible; opacity: 1; }
.np-cinema__slide.is-active { transform: translateX(0); pointer-events: auto; z-index: 2; }
.np-cinema__slide.is-leaving { z-index: 2; pointer-events: none; }
.np-cinema__slide.is-entering { z-index: 3; pointer-events: none; }
.np-cinema.direction-next .np-cinema__slide.is-entering { transform: translateX(100%); }
.np-cinema.direction-next .np-cinema__slide.is-entering.is-settled { transform: translateX(0); }
.np-cinema.direction-next .np-cinema__track:has(.np-cinema__slide.is-entering.is-settled) .np-cinema__slide.is-leaving { transform: translateX(-100%); }
.np-cinema.direction-prev .np-cinema__slide.is-entering { transform: translateX(-100%); }
.np-cinema.direction-prev .np-cinema__slide.is-entering.is-settled { transform: translateX(0); }
.np-cinema.direction-prev .np-cinema__track:has(.np-cinema__slide.is-entering.is-settled) .np-cinema__slide.is-leaving { transform: translateX(100%); }
.np-cinema__frame { position: relative; width: 100%; height: 100%; }
.np-cinema__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Fond propre à chaque composition : la couleur de l'école, assombrie, puis éclairée côté affiche. */
  background:
    radial-gradient(70% 90% at 78% 40%, color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 70%, #ffffff 0%) 0%, transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 28%, #060d14) 0%, color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 62%, #060d14) 100%);
}
.np-cinema__wash {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(42px) saturate(1.25);
  transform: scale(1.04);
  opacity: 0.4;
  mix-blend-mode: screen;
}
.np-cinema:not(.is-transitioning) .np-cinema__slide.is-active:hover .np-cinema__wash { transform: scale(1.06); }
.np-cinema__glow {
  position: absolute;
  right: -8%;
  top: -30%;
  width: 58%;
  height: 160%;
  background: radial-gradient(circle, var(--np-cinema-tone, #1d4e89) 0%, transparent 68%);
  opacity: 0.42;
  pointer-events: none;
}
.np-cinema__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 18%, rgba(4, 10, 16, 0.95)) 0%, color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 22%, rgba(4, 10, 16, 0.72)) 36%, rgba(4, 10, 16, 0.18) 60%, rgba(4, 10, 16, 0) 80%),
    linear-gradient(0deg, rgba(4, 10, 16, 0.45) 0%, rgba(4, 10, 16, 0) 22%);
}
.np-cinema__poster {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 6%;
  bottom: 84px;
  width: min(40%, 470px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transition: transform var(--np-cinema-duration) var(--np-cinema-ease);
}
.np-cinema__poster img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 34px 60px -26px rgba(0, 0, 0, 0.7), 0 10px 22px -12px rgba(0, 0, 0, 0.45);
  -webkit-user-drag: none;
}
.np-cinema.direction-next .np-cinema__slide.is-entering .np-cinema__poster { transform: translateX(22px); }
.np-cinema.direction-next .np-cinema__slide.is-entering.is-settled .np-cinema__poster,
.np-cinema.direction-prev .np-cinema__slide.is-entering.is-settled .np-cinema__poster { transform: translateX(0); }
.np-cinema.direction-prev .np-cinema__slide.is-entering .np-cinema__poster { transform: translateX(-22px); }
.np-cinema__overlay {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(48%, 520px);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem);
  padding-right: 1.5rem;
}
/*
 * Texte de la diapositive. Par défaut masqué : une diapositive inactive ne garde pas un texte visible
 * qui réapparaîtrait puis s'effacerait au début de la transition suivante.
 * La règle « is-settled » a la même spécificité que la règle de départ de l'entrée (direction-*),
 * sinon le texte entrant reste masqué pendant tout le glissement et le côté gauche paraît vide.
 */
.np-cinema__copy {
  opacity: 0;
  transition:
    opacity var(--np-cinema-text) var(--np-cinema-ease) var(--np-cinema-delay),
    transform var(--np-cinema-text) var(--np-cinema-ease) var(--np-cinema-delay);
}
.np-cinema__slide.is-leaving .np-cinema__copy { opacity: 0; transform: translateX(-16px); transition-delay: 0ms; }
.np-cinema.direction-next .np-cinema__slide.is-entering .np-cinema__copy { opacity: 0; transform: translateX(18px); }
.np-cinema.direction-prev .np-cinema__slide.is-entering .np-cinema__copy { opacity: 0; transform: translateX(-18px); }
.np-cinema.direction-next .np-cinema__slide.is-entering.is-settled .np-cinema__copy,
.np-cinema.direction-prev .np-cinema__slide.is-entering.is-settled .np-cinema__copy,
.np-cinema__slide.is-active:not(.is-leaving) .np-cinema__copy { opacity: 1; transform: translateX(0); }
.np-cinema__accent { display: block; width: 2.75rem; height: 3px; margin-bottom: 0.7rem; border-radius: 999px; background: var(--np-gold-500); }
.np-cinema__category {
  margin: 0 0 0.45rem;
  color: var(--np-gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.np-cinema .np-cinema__title {
  margin: 0 0 0.55rem;
  max-width: 16ch;
  color: #faf6ee;
  font-family: var(--np-font-display, var(--font-display));
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
}
.np-cinema__text { margin: 0 0 0.75rem; max-width: 38ch; color: rgba(250, 246, 238, 0.9); font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.5; }
.np-cinema__label {
  display: inline-flex;
  margin: 0 0 0.4rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(250, 246, 238, 0.28);
  border-radius: 4px;
  color: rgba(250, 246, 238, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.np-cinema__note { margin: 0; max-width: 42ch; color: rgba(250, 246, 238, 0.72); font-size: 0.82rem; line-height: 1.4; }
.np-cinema__controls {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 1.4vw, 1.75rem);
  bottom: clamp(1rem, 1.4vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.np-cinema__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 246, 238, 0.28);
  border-radius: 999px;
  background: rgba(8, 24, 20, 0.78);
  color: #faf6ee;
  cursor: pointer;
}
.np-cinema__btn:hover { background: var(--np-forest-700); border-color: var(--np-gold-500); color: var(--np-gold-500); }
.np-cinema__btn:focus-visible { outline: 3px solid var(--np-gold-500); outline-offset: 2px; }
.np-cinema__bars { display: flex; align-items: center; gap: 0.25rem; }
.np-cinema__bar {
  display: inline-flex;
  align-items: center;
  width: 18px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 320ms var(--np-cinema-ease);
}
.np-cinema__bar::before {
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.4);
  transition: width 320ms var(--np-cinema-ease), background-color 320ms ease;
}
.np-cinema__bar.is-active { width: 32px; }
.np-cinema__bar.is-active::before { background: var(--np-gold-500); }
.np-cinema__bar:focus-visible { outline: 3px solid var(--np-gold-500); outline-offset: 2px; }
.np-cinema__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.np-cinema { position: relative; overflow-anchor: none; }

@media (max-width: 1100px) and (min-width: 821px) {
  .np-cinema__stage { aspect-ratio: 16 / 10; min-height: 460px; }
  .np-cinema__title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
}

@media (max-width: 820px) {
  .np-cinema { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .np-cinema__stage {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .np-cinema__track { position: relative; inset: auto; height: auto; }
  .np-cinema__slide { position: absolute; inset: auto; top: 0; left: 0; right: 0; }
  .np-cinema__slide:not(.is-active):not(.is-leaving):not(.is-entering) { display: none; }
  .np-cinema__slide.is-active:not(.is-leaving) { position: relative; height: auto; }
  .np-cinema__slide.is-leaving,
  .np-cinema__slide.is-entering { position: absolute; inset: 0; height: 100%; }
  .np-cinema__frame { display: grid; height: auto; }
  .np-cinema__media { position: relative; inset: auto; min-height: 260px; height: min(56vh, 440px); }
  .np-cinema__frame::after { display: none; }
  .np-cinema__poster { position: relative; inset: auto; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 12px 12px 0; }
  .np-cinema__poster { padding: 18px 16px 4px; }
  .np-cinema__poster img { max-height: min(52vh, 410px); }
  .np-cinema__overlay { position: static; width: 100%; padding: 1rem 1.15rem 0.4rem; }
  .np-cinema__title { max-width: none; font-size: clamp(1.45rem, 5vw, 2rem); }
  .np-cinema__controls {
    position: static;
    justify-content: center;
    padding: 0.35rem 1rem 1rem;
    background: color-mix(in srgb, var(--np-cinema-tone, #1d4e89) 22%, #060d14);
  }
}

/*
 * CAROUSEL-MOBILE-01 — hauteur stable sur mobile (variante np-cinema--stable, site commercial).
 * Cause du saut : ci-dessus, seule la diapositive active reste dans le flux ; pendant une transition elle passe
 * en position absolue avec la diapositive entrante, la piste n'a plus de contenu dans le flux et le carrousel
 * se réduit à sa barre de commandes (≈ 68 px), puis reprend la hauteur du texte de la nouvelle diapositive.
 * Ici toutes les diapositives partagent la même cellule de grille : la hauteur est celle de la plus haute,
 * fixe pendant et entre les transitions. Seuls transform et opacity sont animés. Les diapositives inactives
 * restent masquées (visibility) mais mises en page, ce qui précharge aussi leurs images.
 *
 * Diapositive entrante : visible dès le début du glissement. La règle de base retarde visibility et opacity
 * de toute la durée (pour masquer la sortante à la fin) ; héritée par l'entrante, elle la gardait masquée
 * pendant toute la transition, puis la faisait apparaître d'un coup.
 */
.np-cinema--stable .np-cinema__slide.is-entering {
  transition: transform var(--np-cinema-duration) var(--np-cinema-ease), visibility 0s linear 0s, opacity 0s linear 0s;
}
@media (max-width: 820px) {
  .np-cinema--stable .np-cinema__track { display: grid; grid-template-columns: minmax(0, 1fr); }
  .np-cinema--stable .np-cinema__slide,
  .np-cinema--stable .np-cinema__slide.is-active:not(.is-leaving),
  .np-cinema--stable .np-cinema__slide.is-leaving,
  .np-cinema--stable .np-cinema__slide.is-entering { position: relative; inset: auto; grid-area: 1 / 1; height: auto; min-width: 0; }
  .np-cinema--stable .np-cinema__slide:not(.is-active):not(.is-leaving):not(.is-entering) { display: block; }
  .np-cinema--stable .np-cinema__frame { height: 100%; grid-template-rows: auto 1fr; }
  .np-cinema--stable .np-cinema__media { height: clamp(260px, 108vw, 440px); }
  .np-cinema--stable .np-cinema__poster img { max-height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .np-cinema { --np-cinema-duration: 0ms; --np-cinema-text: 0ms; --np-cinema-delay: 0ms; }
  .np-cinema__slide,
  .np-cinema__copy,
  .np-cinema__poster,
  .np-cinema__wash { transition: none !important; transform: none !important; }
}

/*
 * Annuaire public des auto-écoles du Togo (/auto-ecoles).
 * Même langage que la page d'accueil : ivoire, vert forêt, or, cartes à 20-28 px d'arrondi,
 * ombres légères. Le drapeau togolais sert de repère d'identité, en petit format et en filet de couleurs.
 */
.dir{
  --dir-ink:#1a211e;--dir-muted:#4b554f;--dir-soft:#6b746f;--dir-line:#e4dccb;--dir-paper:#faf6ee;--dir-forest:#10473a;
  --dir-gold:#e3a72f;--dir-tg-green:#006a4e;--dir-tg-yellow:#ffce00;--dir-tg-red:#d21034;
  min-height:60vh;background:var(--dir-paper);color:var(--dir-ink);font-family:var(--np-font-body);padding-bottom:88px;
}
.dir-wrap{width:min(1176px,100% - 32px);margin:0 auto}

/* En-tête */
.dir-hero{position:relative;overflow:hidden;padding:56px 0 112px;
  background:
    radial-gradient(42% 70% at 100% 0%,rgba(255,206,0,.16) 0%,rgba(255,206,0,0) 70%),
    radial-gradient(38% 60% at 0% 100%,rgba(0,106,78,.10) 0%,rgba(0,106,78,0) 70%),
    linear-gradient(180deg,#f6f0e3 0%,var(--dir-paper) 100%)}
.dir-kicker{display:inline-flex;align-items:center;gap:10px;margin:0 0 18px;padding:6px 14px 6px 6px;border-radius:999px;background:#fff;
  border:1px solid var(--dir-line);font-size:13.5px;font-weight:700;letter-spacing:.02em;color:var(--dir-forest);box-shadow:0 8px 20px -16px rgba(26,33,30,.5)}
.dir-flag{display:block;flex:none;border-radius:4px;box-shadow:0 0 0 1px rgba(26,33,30,.12),0 4px 10px -6px rgba(26,33,30,.6)}
.dir h1{margin:0;max-width:24ch;font-family:var(--np-font-display);font-size:clamp(34px,4.6vw,58px);font-weight:800;line-height:1.04;letter-spacing:-.03em;text-wrap:balance}
.dir-lead{margin:18px 0 0;max-width:60ch;font-size:clamp(16.5px,1.4vw,18.5px);line-height:1.6;color:var(--dir-muted);text-wrap:pretty}
.dir-stats{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0;padding:0;list-style:none}
.dir-stats li{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid var(--dir-line);font-size:14px;font-weight:700;color:var(--dir-ink)}
.dir-stats li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--dir-tg-green)}
.dir-stats li + li::before{background:var(--dir-gold)}
/* Filet aux couleurs du drapeau, en bas de l'en-tête. */
.dir-ribbon{position:absolute;left:0;right:0;bottom:0;height:5px;
  background:linear-gradient(90deg,var(--dir-tg-green) 0 40%,var(--dir-tg-yellow) 40% 70%,var(--dir-tg-red) 70% 100%);opacity:.85}

/* Emblème : drapeau en grand format sur ordinateur, posé comme une carte, légèrement incliné. */
.dir-emblem{display:none}
@media (min-width: 1080px){
  .dir-hero > .dir-wrap{position:relative}
  .dir-emblem{display:block;position:absolute;right:max(32px,calc((100% - 1176px) / 2 + 24px));top:72px;padding:10px;border-radius:20px;background:#fff;
    box-shadow:0 1px 2px rgba(26,33,30,.06),0 30px 60px -36px rgba(16,71,58,.55);transform:rotate(-4deg)}
  .dir-emblem .dir-flag{width:168px;height:auto;border-radius:10px;box-shadow:0 0 0 1px rgba(26,33,30,.08)}
  .dir-emblem-sheen{position:absolute;inset:10px;border-radius:10px;pointer-events:none;
    background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.28) 46%,rgba(255,255,255,0) 60%)}
}

/* Recherche : carte qui chevauche l'en-tête. */
.dir-body{position:relative;margin-top:-72px}
.dir-search{position:relative;z-index:2;display:grid;gap:18px;padding:22px;border-radius:28px;background:#fff;border:1px solid rgba(26,33,30,.07);
  box-shadow:0 1px 2px rgba(26,33,30,.05),0 34px 70px -46px rgba(16,71,58,.55)}
.dir-search-main{display:flex;gap:10px}
.dir-query{position:relative;flex:1;display:flex;align-items:center;min-width:0}
.dir-query svg{position:absolute;left:18px;color:var(--dir-soft);pointer-events:none}
.dir-query input{width:100%;min-height:58px;padding:0 18px 0 50px;border-radius:18px;border:1.5px solid var(--dir-line);background:var(--dir-paper);
  font:inherit;font-size:16.5px;color:var(--dir-ink);transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}
.dir-query input::placeholder{color:#7b837e}
.dir-submit{flex:none;min-height:58px;padding:0 28px;border-radius:18px;border:0;background:var(--dir-forest);color:#faf6ee;font:inherit;font-size:16px;font-weight:800;cursor:pointer;
  box-shadow:0 14px 26px -16px var(--dir-forest);transition:background-color .2s ease,transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s ease}
.dir-submit:hover{background:#0a2f26;transform:translateY(-1px);box-shadow:0 18px 30px -16px var(--dir-forest)}
.dir-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px;border-top:1px solid #f0ebe0}
.dir-search-head span{padding-top:14px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--dir-soft)}
.dir-reset{padding-top:14px;font-size:14px;font-weight:700;color:var(--dir-forest);text-decoration:underline;text-decoration-color:rgba(16,71,58,.3);text-underline-offset:4px}
.dir-reset:hover{text-decoration-color:currentColor}
.dir-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.dir-field{position:relative;display:grid;gap:6px;min-width:0}
.dir-field-label{font-size:13px;font-weight:700;color:var(--dir-muted)}
.dir-field input,.dir-field select{width:100%;min-height:50px;padding:0 16px;border-radius:14px;border:1.5px solid var(--dir-line);background:#fff;
  font:inherit;font-size:15.5px;color:var(--dir-ink);transition:border-color .2s ease,box-shadow .2s ease}
.dir-field select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2310473a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center}
.dir-query input:hover,.dir-field input:hover,.dir-field select:hover{border-color:#cfc5b0}
.dir-query input:focus,.dir-field input:focus,.dir-field select:focus{outline:none;border-color:var(--dir-forest);background:#fff;box-shadow:0 0 0 4px rgba(16,71,58,.14)}
.dir-submit:focus-visible,.dir-reset:focus-visible{outline:3px solid var(--dir-gold);outline-offset:3px}
.dir-school ul{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 6px);max-height:320px;overflow:auto;margin:0;padding:6px;list-style:none;border-radius:16px;
  background:#fff;border:1px solid var(--dir-line);box-shadow:0 24px 48px -24px rgba(26,33,30,.45)}
.dir-school li button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;
  font:inherit;font-size:14.5px;font-weight:600;color:var(--dir-ink);text-align:left;cursor:pointer}
.dir-school li button span{font-size:13px;font-weight:600;color:var(--dir-soft)}
.dir-school li button:hover,.dir-school li button[aria-selected="true"]{background:#f4efe4}

/* Compteur */
.dir-bar{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 20px;margin:40px 0 18px}
.dir-count{display:flex;align-items:baseline;gap:8px;margin:0}
.dir-count strong{font-family:var(--np-font-display);font-size:32px;font-weight:800;letter-spacing:-.02em;color:var(--dir-forest)}
.dir-count span{font-size:16px;font-weight:700;color:var(--dir-ink)}
.dir-shown{margin:0;font-size:14px;font-weight:600;color:var(--dir-soft)}
.dir-empty{padding:28px;border-radius:20px;background:#fff;border:1px dashed var(--dir-line);color:var(--dir-muted);text-align:center}

/* Cartes */
.dir-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0;list-style:none}
.dir-card{display:flex;flex-direction:column;gap:14px;min-width:0;padding:22px;border-radius:22px;background:#fff;border:1px solid rgba(26,33,30,.08);
  box-shadow:0 1px 2px rgba(26,33,30,.04);transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease,border-color .25s ease}
.dir-card:hover{transform:translateY(-3px);border-color:#d9d0bd;box-shadow:0 26px 44px -34px rgba(16,71,58,.55)}
.dir-card-head{display:flex;align-items:center;gap:14px;min-width:0}
.dir-mono{flex:none;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;
  background:linear-gradient(145deg,#155a4a 0%,var(--dir-forest) 100%);color:var(--dir-gold);font-family:var(--np-font-display);font-size:15px;font-weight:800;letter-spacing:.03em}
.dir-card h2{margin:0;min-width:0;font-family:var(--np-font-display);font-size:18px;font-weight:800;line-height:1.2;letter-spacing:.01em;color:var(--dir-ink);overflow-wrap:anywhere}
.dir-tags{display:flex;flex-wrap:wrap;gap:8px}
.dir-city,.dir-cat{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 11px;border-radius:999px;font-size:13px;font-weight:700}
.dir-city{background:#eef5f1;color:var(--dir-forest)}
.dir-cat{background:#fbf3df;color:#7a4a00}
.dir-cat::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--dir-gold)}
.dir-address{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:14.5px;line-height:1.5;color:var(--dir-muted)}
.dir-address svg{flex:none;margin-top:2px;color:var(--dir-soft)}
.dir-address span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dir-address.is-missing{font-style:italic;color:var(--dir-soft)}
.dir-see{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;min-height:46px;padding:0 6px 0 16px;border-radius:14px;
  background:#f6f2e9;color:var(--dir-forest);font-size:15px;font-weight:800;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.dir-see svg{box-sizing:content-box;padding:8px;border-radius:10px;background:#fff;transition:transform .2s cubic-bezier(.22,1,.36,1)}
.dir-see:hover{background:var(--dir-forest);color:#faf6ee}
.dir-see:hover svg{background:rgba(255,255,255,.14);transform:translateX(2px)}
.dir-see:focus-visible{outline:3px solid var(--dir-gold);outline-offset:3px}

/* Chargement de la suite */
.dir-more{display:grid;justify-items:center;gap:12px;margin:40px auto 0;max-width:340px;text-align:center}
.dir-progress{width:100%;height:4px;border-radius:999px;background:#ebe4d4;overflow:hidden}
.dir-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--dir-forest),#2ea06e)}
.dir-more p{margin:0;font-size:14px;font-weight:600;color:var(--dir-soft)}
.dir-more-btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 24px;border-radius:999px;border:1.5px solid var(--dir-forest);color:var(--dir-forest);
  font-size:15.5px;font-weight:800;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.dir-more-btn:hover{background:var(--dir-forest);color:#faf6ee}
.dir-more-btn:focus-visible{outline:3px solid var(--dir-gold);outline-offset:3px}

@media (min-width: 700px){
  .dir-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dir-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .dir-search{padding:26px 28px}
}
@media (min-width: 1080px){
  .dir-hero{padding:72px 0 120px}
  .dir-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .dir-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
}
@media (max-width: 559px){
  .dir-hero{padding:36px 0 96px}
  .dir-search{padding:16px;border-radius:24px}
  .dir-search-main{flex-direction:column}
  .dir-submit{width:100%;min-height:52px}
  .dir-query input{min-height:54px}
}
@media (prefers-reduced-motion: reduce){
  .dir-card,.dir-submit,.dir-see,.dir-see svg,.dir-more-btn{transition:none}
  .dir-card:hover,.dir-submit:hover{transform:none}
}

/* ANNUAIRE-01 : statut et coordonnées sur la carte. Couleurs de l'annuaire existant uniquement. */
.dir .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dir-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border:1px solid var(--dir-line);border-radius:999px;background:#fff;color:var(--dir-muted);font-size:13px;font-weight:700}
.dir-badge--partner{border-color:var(--dir-forest);background:var(--dir-forest);color:var(--dir-paper)}
.dir-contacts{display:grid;gap:6px}
.dir-contact{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;font-size:14.5px;line-height:1.4;color:var(--dir-muted)}
.dir-contact svg{flex:none;color:var(--dir-soft)}
.dir-contact a{display:inline-flex;align-items:center;min-height:44px;color:var(--dir-forest);font-weight:800;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.dir-contact a:focus-visible{outline:3px solid var(--dir-gold);outline-offset:2px;border-radius:6px}
.dir-contact.is-missing{font-style:italic;color:var(--dir-soft)}
.dir-check{margin:0;font-size:13px;font-weight:700;color:#7a4a00}
.dir-check::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--dir-gold);vertical-align:middle}

/* Directory navigation only; page backgrounds remain unchanged. */
.directory-header{background:#14213D;color:#faf6ee;border-bottom:1px solid #ffffff20;position:relative;z-index:10}
.directory-header-row{max-width:1176px;margin:auto;padding:14px 16px;display:flex;align-items:center;gap:24px}
.directory-header .np-logo,.directory-header .np-logo-word strong,.directory-header .np-logo-word>span{color:#faf6ee}
.directory-nav{display:flex;align-items:center;gap:24px;margin-left:auto}
.directory-header a{text-decoration:none}
.directory-nav a,.directory-menu a{display:flex;align-items:center;min-height:44px;color:#faf6ee;font-weight:700;font-size:16px}
.directory-header a:hover{color:#e3a72f}
.directory-header :focus-visible{outline:2px solid #e3a72f;outline-offset:4px;border-radius:6px}
.directory-languages{position:relative;margin-left:auto;flex-shrink:0}
.directory-header summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;list-style:none}
.directory-chevron{display:block;width:16px;height:16px;flex:none;transition:transform .15s ease}
.directory-languages[open] .directory-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.directory-chevron{transition:none}}
.directory-header summary::-webkit-details-marker{display:none}
.directory-header .s1-flag{width:24px;height:18px;flex:none;border-radius:3px}
.directory-languages nav,.directory-menu nav{position:absolute;right:0;top:calc(100% + 8px);padding:8px;display:grid;gap:2px;background:#14213D;border:1px solid #ffffff30;border-radius:12px;box-shadow:0 12px 28px #14213D30;min-width:176px}
.directory-languages nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;color:#faf6ee;border-radius:6px;font-weight:600}
.directory-languages a[aria-current]{color:#e3a72f;background:#ffffff0d}
.directory-menu{display:none;position:relative}
.directory-menu nav a{padding:0 12px;white-space:nowrap}
.np-dir-sheet{overflow-wrap:anywhere}.np-dir-sheet a{display:inline-block;min-height:44px;padding-top:10px}
@media(max-width:900px){.directory-nav{display:none}.directory-menu{display:block}.directory-header-row{gap:16px}}
@media(max-width:430px){.directory-header-row{gap:12px;padding:12px}.directory-header-row .np-logo{gap:5px}.directory-header-row .np-logo svg{width:32px}.directory-header-row .np-logo-word strong{font-size:24px}.directory-header summary{gap:6px;font-size:13px}}

@font-face{font-family:DirectoryFigtree;src:url('./figtree.woff2') format('woff2');font-weight:300 900;font-display:swap}
@font-face{font-family:DirectoryBricolage;src:url('./bricolage.woff2') format('woff2');font-weight:200 800;font-display:swap}
:root{--np-font-body:DirectoryFigtree,Arial,sans-serif;--np-font-display:DirectoryBricolage,Arial,sans-serif}
html,body{margin:0;padding:0}body{font-family:var(--np-font-body);color:#0a2f26;background:#faf6ee}*{box-sizing:border-box}
.directory-noscript{padding:24px;max-width:1176px;margin:auto}
