/* Apparence de l'application (style « Clairnet », repris de la maquette).
   Police Manrope, licence libre SIL Open Font License 1.1. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('manrope.woff2') format('woff2'); }

:root {
  --fond: #f7f7f4;
  --carte-douce: #fbfbf9;
  --texte: #1c1e1d;
  --doux: #5f6461;
  --pale: #9a9e9b;
  --ligne: #e3e3dd;
  --ligne-2: #eeeee9;
  --bord-bouton: #d9d9d3;
  --bord-champ: #c9c9c2;
  --accent: #1d7a6c;
  --accent-fonce: #145e53;
  --accent-fond: #f3faf8;
  --accent-doux: #e3f1ed;
  --accent-texte: #176356;
  --vert-gris: #f1f5f3;
  --danger: #b3362b;
  --danger-bord: #e8c4bf;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); font: 14px/1.45 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif; color: var(--texte); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Boutons */
.btn { border: 1px solid var(--bord-bouton); background: #fff; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--pale); }
.btn-primaire { border: 0; color: #fff; background: var(--accent); border-radius: 9px; padding: 11px 16px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-primaire:hover:not(:disabled) { background: var(--accent-fonce); }
.grand { width: 100%; padding: 13px; font-size: 15px; border-radius: 10px; }

/* Petits éléments communs */
.doux { color: var(--doux); }
.petit { font-size: 12px; }
.erreur { color: var(--danger); font-size: 13px; font-weight: 600; }
.vide { border: 1px dashed var(--bord-bouton); border-radius: 12px; padding: 22px; text-align: center; color: var(--doux); font-size: 14px; background: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--texte); text-decoration: none; }
.logo-carre { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

/* Champs */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > span { font-size: 12px; font-weight: 700; color: var(--doux); }
.champ input { border: 1px solid var(--bord-champ); border-radius: 9px; padding: 12px 14px; font-size: 15px; background: #fff; }

/* Connexion */
.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px; }
.carte-connexion { width: 400px; max-width: 100%; background: #fff; border: 1px solid var(--ligne); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .06); }
.carte-connexion .logo { font-size: 20px; }
.titre-connexion { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* En-tête de l'application */
.appli { min-width: 1180px; }
.entete { height: 60px; display: flex; align-items: center; padding: 0 28px; gap: 36px; border-bottom: 1px solid var(--ligne); background: #fff; position: sticky; top: 0; z-index: 10; }
.entete nav { display: flex; gap: 4px; height: 100%; }
.entete nav a { display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--doux); padding: 0 12px; border-bottom: 2px solid transparent; text-decoration: none; }
.entete nav a:hover { color: var(--texte); }
.entete nav a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--accent); }
.entete-droite { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--doux); }
.entete-droite form { margin: 0; }

/* Pages */
.page { padding: 26px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.kicker { font-size: 13px; color: var(--doux); font-weight: 600; }
.titre-page { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

/* Message affiché après une action, qui disparaît seul */
.message { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--texte); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: disparaitre 6s forwards; }
@keyframes disparaitre { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
