:root {
  --navy-950: #0e1626;
  --navy-900: #131f38;
  --navy-800: #182848;
  --navy-700: #23345c;
  --navy-600: #34477a;
  --navy-500: #4c5f99;
  --gold-600: #b8873a;
  --gold-500: #c8973a;
  --gold-100: #f6ecd8;
  --green-600: #1f9d6b;
  --green-100: #e2f5ec;
  --red-600: #c8433b;
  --red-100: #fbe8e6;
  --amber-600: #b6720f;
  --amber-100: #fbedd4;
  --paper: #f7f4ee;
  --card: #ffffff;
  --border: #e6e0d3;
  --border-soft: #efeadf;
  --ink-900: #191f2b;
  --ink-700: #3c4453;
  --ink-500: #6b7280;
  --ink-400: #94969f;
  --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px -12px rgba(20, 20, 30, 0.14);
  --shadow-panel: 0 24px 64px -16px rgba(10, 15, 30, 0.35);
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; }
input { font-family: inherit; }

/* ── Boutons ─────────────────────────────────────────────────── */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.bouton:active { transform: translateY(1px); }
.bouton-primaire { background: var(--navy-800); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bouton-primaire:hover { background: var(--navy-700); }
.bouton-discret { background: #fff; color: var(--ink-700); border-color: var(--border); }
.bouton-discret:hover { background: var(--border-soft); }
.bouton-danger-texte { background: transparent; color: var(--red-600); border: 1px solid var(--red-100); }
.bouton-danger-texte:hover { background: var(--red-100); }
.bouton-pleine-largeur { width: 100%; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }

/* ── Écran de connexion ──────────────────────────────────────── */
.ecran-connexion {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.fond-connexion {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(200,151,58,.20), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(76,95,153,.35), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
}
.carte-connexion {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-panel);
}
.marque-connexion { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.pastille-marque {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.marque-titre { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-900); }
.marque-sous { font-size: 12px; color: var(--ink-500); }
.carte-connexion h1 { font-size: 26px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.texte-attenue { color: var(--ink-500); font-size: 13.5px; line-height: 1.5; }
.carte-connexion form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }

.champ { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.champ input, .champ select {
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-900);
  background: #fff;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.champ input:focus, .champ select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(76,95,153,.18); }
.champ-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.champ-inline input { height: 38px; border: 1.5px solid var(--border); border-radius: 8px; padding: 0 10px; font-size: 13.5px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }

.message-erreur {
  background: var(--red-100); color: var(--red-600);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600;
}

/* ── App shell ───────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.barre-laterale {
  width: 252px;
  flex: 0 0 auto;
  background: linear-gradient(185deg, var(--navy-950), var(--navy-800));
  color: #eef0f6;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.marque-barre { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.logo-etab { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #fff; }
.marque-barre-nom { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.25; color: #fff; }
.marque-barre-sous { font-size: 11.5px; color: #aab2ca; margin-top: 2px; }

.nav-principale { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  background: transparent; border: none; color: #c7cce0;
  padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left; width: 100%; box-sizing: border-box;
  text-decoration: none; font-family: inherit;
}
.nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.est-actif { background: rgba(200,151,58,.16); color: var(--gold-100); }

.carte-utilisateur {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-600), var(--gold-500));
  color: var(--navy-950); font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.utilisateur-nom { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.utilisateur-role { font-size: 11px; color: #a9b0c6; text-transform: capitalize; }

.contenu-principal { flex: 1 1 auto; padding: 34px 40px 60px; max-width: 1180px; }

.entete-page {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.entete-page h1 { font-size: 25px; font-weight: 800; color: var(--ink-900); }
.entete-page .texte-attenue { margin-top: 6px; max-width: 560px; }
.lien-retour:not([hidden]) {
  background: none; border: none; color: var(--navy-600); font-weight: 700; font-size: 13px;
  cursor: pointer; padding: 0; margin-bottom: 10px; display: inline-block;
}
.lien-retour:hover { text-decoration: underline; }

.barre-outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Cartes stat ─────────────────────────────────────────────── */
.carte-stat {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}
/* Rangée de totaux en haut du rapport : montant + heures prévues + retards + heures à payer */
.rangee-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.rangee-stats .carte-stat { margin-bottom: 0; min-width: 210px; flex: 1 1 210px; }
.rangee-stats .carte-stat-valeur { font-size: 28px; }
.carte-stat-libelle { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
.carte-stat-valeur { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.carte-stat-accent { border-color: var(--gold-500); background: linear-gradient(180deg, #fff, var(--gold-100) 220%); }
.carte-stat-accent .carte-stat-valeur { color: var(--gold-600); }

/* ── Tableaux ────────────────────────────────────────────────── */
.carte-tableau {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: auto;
}
.tableau-donnees { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tableau-donnees thead th {
  text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-500); background: #fbf9f4; padding: 13px 16px; border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.tableau-donnees th.num, .tableau-donnees td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-donnees th.colonne-triable { cursor: pointer; user-select: none; }
.tableau-donnees th.colonne-triable:hover { color: var(--ink-700); }
.tableau-donnees th.colonne-triable::after { content: '↕'; margin-left: 4px; opacity: .35; }
.tableau-donnees th.colonne-triable.tri-asc::after { content: '↑'; opacity: 1; }
.tableau-donnees th.colonne-triable.tri-desc::after { content: '↓'; opacity: 1; }
.tableau-donnees tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); color: var(--ink-700); vertical-align: top; }
.tableau-donnees tbody tr:last-child td { border-bottom: none; }
.tableau-donnees tbody tr { cursor: default; transition: background-color .1s ease; }
.tableau-donnees tbody tr.ligne-cliquable { cursor: pointer; }
.tableau-donnees tbody tr.ligne-cliquable:hover { background: #fbf9f4; }
.nom-enseignant { font-weight: 700; color: var(--ink-900); }
.cellule-montant { font-weight: 700; color: var(--ink-900); }
.cellule-atenuee { color: var(--ink-400); }
.colonne-total { border-left: 2px solid var(--border-soft); }
.tableau-donnees tfoot td { padding: 13px 16px; border-top: 2px solid var(--border-soft); font-weight: 700; color: var(--ink-900); text-align: right; font-variant-numeric: tabular-nums; }
.tableau-donnees tfoot td:first-child { text-align: left; }

.puce { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.puce-vert { background: var(--green-100); color: var(--green-600); }
.puce-gris { background: var(--border-soft); color: var(--ink-500); }
.puce-ambre { background: var(--amber-100); color: var(--amber-600); }
.puce-rouge { background: var(--red-100); color: var(--red-600); }

.statut-cellule { max-width: 320px; line-height: 1.4; }
.statut-payee { color: var(--green-600); font-weight: 600; }
.statut-nonpayee { color: var(--ink-400); }

/* ── Table large (détail de paie) : défilement horizontal contenu dans la
   carte. Pas de colonne épinglée (position: sticky) : combiné à
   border-collapse: collapse sur .tableau-donnees, ça superpose visuellement
   la colonne sur ses voisines et cache du texte selon le navigateur — cause
   du bug "Statut coupé". On préfère un défilement simple et fiable. ────── */
.tableau-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: auto; scrollbar-color: #b8873a #efe9dc; }
.tableau-scroll-x::-webkit-scrollbar, .barre-defilement-haute::-webkit-scrollbar { height: 14px; }
.tableau-scroll-x::-webkit-scrollbar-track, .barre-defilement-haute::-webkit-scrollbar-track { background: #efe9dc; border-radius: 8px; }
.tableau-scroll-x::-webkit-scrollbar-thumb, .barre-defilement-haute::-webkit-scrollbar-thumb { background: #b8873a; border-radius: 8px; border: 3px solid #efe9dc; }
/* Barre de défilement horizontale répétée en haut du tableau : toujours visible, sans avoir à descendre en bas */
.barre-defilement-haute { overflow-x: scroll; overflow-y: hidden; height: 16px; margin-bottom: 6px; scrollbar-width: auto; scrollbar-color: #b8873a #efe9dc; }
.barre-defilement-haute > div { height: 1px; }
/* Ligne sélectionnée (clic) : surlignée pour savoir sur quelle ligne on est */
.tableau-donnees tbody tr.ligne-selectionnee td { background: #fff3d1; }
.tableau-donnees tbody tr.ligne-selectionnee td:first-child { box-shadow: inset 4px 0 0 #b8873a; }
/* Agent administratif/primaire en retard (arrivée pointée après l'heure) — signalé à la direction */
.tableau-donnees tbody tr.ligne-en-retard td { background: var(--red-100); }
.tableau-donnees tbody tr.ligne-en-retard td:first-child { box-shadow: inset 4px 0 0 var(--red-600); font-weight: 700; }
/* Ligne de cumul en bas du détail de paie */
.tableau-donnees tfoot td { background: #f6efdc; font-weight: 700; color: var(--ink-900); border-top: 2px solid #b8873a; padding: 14px 16px; white-space: nowrap; }
.tableau-detail { table-layout: auto; min-width: 100%; }
.tableau-detail td, .tableau-detail th { white-space: nowrap; }
.tableau-detail td.statut-cellule { white-space: normal; min-width: 220px; }
.tableau-detail th.montant-fixe, .tableau-detail td.montant-fixe { min-width: 110px; }

.etat-vide { padding: 48px 20px; text-align: center; color: var(--ink-400); font-size: 14px; }

.bouton-ligne { visibility: hidden; }
.tableau-donnees tbody tr:hover .bouton-ligne { visibility: visible; }

/* ── Panneau de correction (modal) ──────────────────────────────*/
.panneau-overlay { position: fixed; inset: 0; z-index: 60; }
.panneau-overlay:not([hidden]) { display: flex; align-items: center; justify-content: center; padding: 20px; }
.panneau-fond { position: absolute; inset: 0; background: rgba(14, 22, 38, .55); backdrop-filter: blur(2px); }
.panneau-carte {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-panel);
}
.panneau-carte h2 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.panneau-carte .texte-attenue { margin-bottom: 18px; }
.ligne-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
.alerte-appel {
  background: var(--amber-100); color: var(--amber-600); border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px; line-height: 1.4;
}
.actions-panneau { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ── Toasts ──────────────────────────────────────────────────── */
.zone-toast { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.toast {
  background: var(--navy-900); color: #fff; padding: 13px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-panel);
  animation: toast-in .18s ease;
}
.toast.toast-erreur { background: var(--red-600); }
.toast.toast-succes { background: var(--green-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Administration : nav, sous-onglets, formulaires ────────────── */
.nav-section-titre {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #7d84a0; padding: 16px 12px 2px;
}
.sous-onglets { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.sous-onglet {
  background: none; border: none; padding: 10px 2px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sous-onglet:hover { color: var(--ink-900); }
.sous-onglet.est-actif { color: var(--navy-800); border-bottom-color: var(--gold-500); }

.champ-checkbox { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.champ-checkbox input { width: 17px; height: 17px; accent-color: var(--navy-700); }

.champ-textarea {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
  font-family: inherit; color: var(--ink-900); resize: vertical; min-height: 76px; outline: none;
}
.champ-textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(76,95,153,.18); }

.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grille-form { grid-template-columns: 1fr; } }

.bouton-icone-petit { height: 30px; padding: 0 10px; font-size: 12px; }

/* ── Emploi du temps : vue grille (jours en colonnes, horaires en lignes) ── */
.edt-grille-wrap { overflow-x: auto; }
#tableEdtGrille { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; font-size: 13px; }
#tableEdtGrille th, #tableEdtGrille td { border: 1px solid var(--border-soft); vertical-align: top; }
#tableEdtGrille thead th {
  background: #fbf9f4; color: var(--navy-800); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 11px 8px;
}
#tableEdtGrille .col-horaire {
  width: 92px; background: #fbf9f4; font-size: 11.5px; color: var(--ink-500); font-weight: 700;
  text-align: center; white-space: nowrap; padding: 8px 6px;
}
#tableEdtGrille td.cell-vide { text-align: center; color: var(--ink-400); font-size: 13px; }
#tableEdtGrille td { padding: 7px; }
.edt-chip {
  position: relative; border-radius: 8px; padding: 8px 10px 9px; font-size: 12px; margin-bottom: 6px;
  background: var(--card); border: 1px solid var(--border-soft); border-left: 3px solid var(--navy-600);
  box-shadow: var(--shadow-card); cursor: default;
}
.edt-chip:last-child { margin-bottom: 0; }
.edt-chip .edt-matiere { font-weight: 700; color: var(--ink-900); }
.edt-chip .edt-sub { color: var(--ink-500); font-size: 11px; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.edt-chip-actions { display: flex; gap: 10px; margin-top: 7px; }
.edt-chip-actions button { background: none; border: none; padding: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.edt-chip-actions .lien-mod { color: var(--navy-600); }
.edt-chip-actions .lien-suppr { color: var(--red-600); }

/* ── Carte de géolocalisation (Réglages) ────────────────────────── */
.carte-geo-conteneur {
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; height: 260px; position: relative; margin-bottom: 4px;
}
.carte-geo-conteneur #carteGeo { width: 100%; height: 100%; display: none; }
.carte-geo-vide {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--ink-400); font-size: 12.5px; text-align: center; padding: 20px;
}
#resultatsRecherche .resultat-lieu { padding: 10px 14px; cursor: pointer; font-size: 12.8px; border-bottom: 1px solid var(--border-soft); }
#resultatsRecherche .resultat-lieu:hover { background: #fbf9f4; }
#resultatsRecherche .resultat-lieu:last-child { border-bottom: none; }
#resultatsRecherche .resultat-lieu strong { color: var(--ink-900); }
#resultatsRecherche .resultat-lieu span { display: block; color: var(--ink-500); font-size: 11.3px; margin-top: 1px; }
#resultatsRecherche .resultat-vide { padding: 12px 14px; color: var(--ink-400); font-size: 12.5px; text-align: center; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  /* En-tête compact : école + déconnexion + nom de l'utilisateur */
  .barre-laterale { width: auto; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; }
  .marque-barre { order: 1; flex: 1 1 0; min-width: 0; padding: 0; }
  .marque-barre-nom { font-size: 13px; }
  #btnDeconnexion { order: 2; width: auto; flex: 0 0 auto; padding: 8px 14px; font-size: 13px; }
  .carte-utilisateur { order: 3; flex: 1 1 100%; margin: 0; padding: 8px 10px; }
  /* Menu = barre fixe en bas de l'écran (comme une application), icônes + libellés, défilante s'il y a beaucoup d'entrées */
  .nav-principale {
    order: 4; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    flex-direction: row; gap: 2px; overflow-x: auto; overflow-y: hidden;
    background: var(--navy-950); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(0,0,0,.25); -webkit-overflow-scrolling: touch;
  }
  .nav-item { flex: 1 0 auto; width: auto; min-width: 64px; max-width: 110px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; font-size: 10.5px; line-height: 1.15; text-align: center; white-space: normal; }
  .nav-item svg { width: 22px; height: 22px; }
  .contenu-principal { padding: 20px 14px 110px; }
  .tableau-donnees { font-size: 12.5px; }
}

/* ── Impression ──────────────────────────────────────────────── */
/* Titre + date, visibles seulement à l'impression (ex. "Liste des élèves — 6ème1"), rempli par app.js */
.entete-impression { display: none; }

@media print {
  .barre-defilement-haute, .indice-scroll-tableau { display: none !important; }
  .barre-laterale, .barre-outils, .lien-retour, .zone-toast, .panneau-overlay, .bouton-ligne { display: none !important; }
  .colonne-actions, td.colonne-actions, th.colonne-actions { display: none !important; }
  body { background: #fff; }
  .contenu-principal { padding: 0; max-width: none; }
  .carte-stat, .carte-tableau { box-shadow: none; border-color: #ccc; }
  .entete-impression:not(:empty) { display: block; font-weight: 700; font-size: 15px; margin: 0 0 12px; }
}

/* ── Recherche dans le menu (barre latérale) ───────────────────── */
.recherche-menu { position: sticky; top: 0; z-index: 2; background: var(--navy-950); padding: 0 0 8px; }
.recherche-menu input {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff;
  font: inherit; font-size: 13.5px;
}
.recherche-menu input::placeholder { color: #8f97b3; }
.recherche-menu input:focus-visible { outline: 2px solid var(--gold-100, #e7c77a); outline-offset: 1px; background: rgba(255,255,255,.1); }
.recherche-aucun { font-size: 12.5px; color: #aab2ca; padding: 8px 4px 0; }
.nav-principale [hidden] { display: none !important; }
@media (max-width: 860px) { .recherche-menu { display: none; } }
