/* ════════════════════════════════════════════════════════════════════
   HIRINGNOTES — ESPACE CONNECTÉ · design « Améthyste »

   Feuille AUTONOME : `layouts/app.ejs` ne charge plus `app.css`.

   ⚠️  POURQUOI L'ESPACE NE PARTAGE PLUS LA FEUILLE DE LA VITRINE.

       L'ancienne version chargeait `app.css` (156 Ko, écrit pour le site
       public) PUIS `app-connecte.css` par-dessus. Deux jeux de variables
       se marchaient dessus — `--theme`, `--app-primary`, `--encre-douce` —
       et le dernier chargé gagnait : une couleur changée dans la vitrine
       repeignait l'application, et l'inverse. Les deux univers sont
       désormais séparés pour de bon.

   ⚠️  AUCUN STYLE EN LIGNE DANS LES GABARITS.

       `style-src 'self'` (server.js) bloque les attributs `style=""`. La
       maquette en est pleine — c'est un prototype. Ici, tout ce qu'elle
       exprime en ligne est une classe ; les valeurs continues (largeur
       d'une jauge) passent par des classes de paliers (`.hn-p80`).

   ⚠️  LA BARRE LATÉRALE ET LE BANDEAU SONT DANS `coquille.css` (7.19.0).

       Ils sont communs à l'espace et à la vitrine. `layouts/app.ejs`
       charge coquille.css PUIS cette feuille. Les jetons `--hn-*` (:root)
       y sont aussi.

   ⚠️  LES ICÔNES SONT DES SVG INLINE, PAS FONT AWESOME.

       La maquette charge cdnjs : la CSP l'interdit, et une police
       d'icônes pèserait 300 Ko pour cinquante glyphes.
       Voir `views/partials/icone.ejs`.
   ════════════════════════════════════════════════════════════════════ */

/* ── Police ───────────────────────────────────────────────────────
   ⚠️  AUTO-HÉBERGÉE. Un @import vers fonts.googleapis.com casserait la
       CSP et enverrait l'IP de chaque visiteur à un tiers. Fichiers
       attendus dans public/fonts/ ; sans eux, la pile de repli prend le
       relais et l'espace reste lisible. */
@font-face { font-family:'Plus Jakarta Sans'; src:url('/fonts/PlusJakartaSans-Regular.woff2') format('woff2');  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('/fonts/PlusJakartaSans-Medium.woff2') format('woff2');   font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('/fonts/PlusJakartaSans-Bold.woff2') format('woff2');     font-weight:700; font-style:normal; font-display:swap; }


/* ── Jetons ──────────────────────────────────────────────────────── */

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

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

html, body.hn {
  margin:0; height:100%; background:var(--hn-bg);
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  color:var(--hn-encre); font-size:15px; -webkit-font-smoothing:antialiased;
}
body.hn a { text-decoration:none; }
body.hn p { text-wrap:pretty; }

/*
  ⚠️  ENCORE UNE HISTOIRE DE SPÉCIFICITÉ — LA MÊME QUE POUR LES LIENS.

      `body.hn h2 { margin: 0 }` pèse (0,1,2), plus qu'une classe seule.
      TOUTES les marges de titre écrites ensuite étaient donc ignorées :
      `.hn-bloc-titre { margin-bottom: 16px }`, `.hn-vide h2`,
      `.hn-tunnel__titre`… Les titres de carte se retrouvaient collés à
      leur contenu, et l'on croyait à un oubli de padding alors que la
      règle existait bien — elle ne s'appliquait simplement jamais.

      Même remède : `:where()` ramène la spécificité à zéro. La règle bat
      le style par défaut du navigateur et cède devant la moindre classe.

      Les `<p>` sont traités ici aussi : sans cela, un paragraphe sans
      classe garde la marge de 1em du navigateur, qui s'ajoute au `gap`
      des piles et donne des écarts irréguliers d'un écran à l'autre.
*/
:where(body.hn) :where(h1, h2, h3, h4) { margin: 0; font-weight: 700; letter-spacing: -.4px; }
:where(body.hn) :where(p) { margin: 0; }
body.hn ::-webkit-scrollbar { width:10px; height:10px; }
body.hn ::-webkit-scrollbar-thumb {
  background:var(--hn-tiret); border-radius:5px;
  border:3px solid transparent; background-clip:content-box;
}

/* ⚠️  Un <form> qui n'enveloppe qu'un bouton ne doit pas casser les
       grilles : sans ça, chaque form prend une ligne entière. */
.hn-inline { display:inline; margin:0; }

.ico { width:1em; height:1em; flex:none; vertical-align:-.125em; stroke-width:2; }
.ico--sm { width:.82em; height:.82em; }
.ico--lg { width:1.3em; height:1.3em; }

/* ════════════════════════════════════════════════════════════════════
   COQUILLE
   ════════════════════════════════════════════════════════════════════ */

/* ── Navigation ──────────────────────────────────────────────────── */

/* ── Colonne principale ──────────────────────────────────────────── */

.hn-chip { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:var(--hn-r-pilule); white-space:nowrap; }
.hn-chip--rec { background:var(--hn-lilas); color:#4A1844; }

.hn-recherche {
  flex:1; min-width:110px; max-width:280px; margin-left:auto; margin-right:0;
  border:1px solid var(--hn-bord); border-radius:var(--hn-r-pilule);
  padding:0 15px; display:flex; align-items:center; gap:9px; overflow:hidden;
}
.hn-recherche .ico { color:var(--hn-mag); font-size:15px; }
.hn-recherche input { flex:1; min-width:0; border:0; outline:0; background:transparent; font:inherit; font-size:14px; padding:9px 0; color:var(--hn-encre); }
.hn-recherche input::placeholder { color:var(--hn-gris-4); }

.hn-cloche { flex:none; position:relative; width:38px; height:38px; border-radius:50%; background:var(--hn-bg); color:var(--hn-encre-2); display:flex; align-items:center; justify-content:center; font-size:17px; }
.hn-cloche:hover { background:var(--hn-trait); color:var(--hn-encre); }
.hn-cloche__n { position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; border-radius:9px; background:var(--hn-mag); color:#fff; font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 4px; }

.hn-page { flex:1; padding:28px; }
.hn-large { max-width:1500px; }

/* ── Trame ───────────────────────────────────────────────────────── */

.hn-pile { display:flex; flex-direction:column; gap:20px; }
.hn-pile--lg { gap:22px; }
.hn-pile--sm { gap:14px; }
.hn-2col { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:22px; align-items:start; }
.hn-2col--large { grid-template-columns:minmax(0,1fr) 400px; }
.hn-2col--filtres { grid-template-columns:290px minmax(0,1fr); }
.hn-2col--msg { grid-template-columns:340px minmax(0,1fr); }
.hn-2col--dash { grid-template-columns:minmax(0,1fr) 380px; }
.hn-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.hn-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.hn-grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.hn-entre { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }

@media (max-width:1180px) {
  .hn-2col, .hn-2col--large, .hn-2col--filtres, .hn-2col--msg, .hn-2col--dash { grid-template-columns:minmax(0,1fr); }
  .hn-grid3, .hn-grid4 { grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
  .hn-grid2, .hn-grid3, .hn-grid4 { grid-template-columns:minmax(0,1fr); }
  .hn-page { padding:18px; }
  .hn-recherche { display:none; }
}

/* ── Carte ───────────────────────────────────────────────────────── */

.hn-carte { background:var(--hn-blanc); border-radius:var(--hn-r-carte); }
.hn-carte--pad { padding:26px 28px; }
.hn-carte--pad-sm { padding:24px; }
.hn-carte--flux { overflow:hidden; }
.hn-carte__tete { padding:22px 26px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--hn-trait-2); }
.hn-carte__titre { font-size:17px; font-weight:700; }
.hn-carte__sous { font-size:13.5px; color:var(--hn-gris-2); margin-top:3px; }
.hn-carte__corps { padding:24px 26px; }
.hn-bloc-titre { font-size:16px; font-weight:700; margin-bottom:16px; }
.hn-sec-titre { font-size:17px; font-weight:700; }
.hn-etiquette { font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--hn-gris); margin-bottom:16px; }
.hn-filet { height:1px; background:var(--hn-trait-2); }
.hn-sous { margin: 0; font-size:14.5px; color:var(--hn-gris-2); }
.hn-texte { margin:0; font-size:15px; line-height:1.65; color:var(--hn-gris); max-width:960px; }
.hn-texte--lg { font-size:15.5px; line-height:1.75; }

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

.hn-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid transparent; border-radius:var(--hn-r-pilule);
  font:inherit; font-size:14.5px; font-weight:600; padding:11px 20px;
  cursor:pointer; white-space:nowrap; text-align:center;
  background:var(--hn-blanc); color:var(--hn-encre);
}
.hn-btn:hover { color:var(--hn-encre); }
.hn-btn--mag { background:var(--hn-mag); color:#fff; }
.hn-btn--mag:hover { background:var(--hn-mag-fonce); color:#fff; }
.hn-btn--doux { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); }
.hn-btn--doux:hover { background:#F3E4F1; color:var(--hn-mag-fonce); }
.hn-btn--contour { border-color:var(--hn-bord); background:var(--hn-blanc); }
.hn-btn--contour:hover { border-color:var(--hn-tiret); background:var(--hn-brume); }
.hn-btn--navy { background:var(--hn-navy); color:#fff; }
.hn-btn--navy:hover { background:#2A2A55; color:#fff; }
.hn-btn--wr { background:var(--hn-wr); color:#fff; }
.hn-btn--wr:hover { background:var(--hn-wr-2); color:#fff; }
.hn-btn--blanc { background:#fff; color:var(--hn-mag-fonce); }
.hn-btn--blanc:hover { background:#fff; color:var(--hn-mag); }
.hn-btn--danger { border-color:var(--hn-rouge); color:var(--hn-rouge); background:transparent; }
.hn-btn--danger:hover { background:var(--hn-rouge); color:#fff; }
.hn-btn--sm { font-size:13.5px; padding:9px 15px; }
.hn-btn--lg { font-size:15px; padding:13px 24px; }
.hn-btn--bloc { display:flex; width:100%; }
.hn-btn[disabled], .hn-btn.est-inerte { opacity:.55; cursor:not-allowed; }
.hn-lien-fort { font-size:14px; font-weight:600; color:var(--hn-mag); }

/* ── Pilules de filtre ───────────────────────────────────────────── */

.hn-pilules { display:flex; gap:10px; flex-wrap:wrap; }
.hn-pilule {
  display:inline-flex; align-items:center; gap:7px;
  border:1px solid var(--hn-bord); background:var(--hn-blanc);
  color:var(--hn-encre-2); font:inherit; font-size:14px; font-weight:600;
  padding:9px 16px; border-radius:var(--hn-r-pilule); cursor:pointer;
}
.hn-pilule:hover { border-color:var(--hn-tiret); color:var(--hn-encre); }
.hn-pilule.est-actif { background:var(--hn-mag); border-color:var(--hn-mag); color:#fff; }
.hn-pilule.est-actif:hover { color:#fff; }
/*
  ⚠️  L'ÉTAT VISUEL SUIT LA CASE, PAS UNE CLASSE CALCULÉE AU RENDU.

      `.est-actif` était posée par le serveur d'après la valeur en base. Au
      clic, la case se cochait bien — mais la pilule gardait exactement la
      même apparence jusqu'au rechargement de la page. On cliquait, rien ne
      bougeait, on recliquait : la sélection paraissait impossible alors
      qu'elle fonctionnait.

  ⚠️  `input:checked + label`, PAS `:has()`.

      `:has()` aurait permis de garder la case DANS le label, mais il faut
      des navigateurs de 2023 et plus. Le sélecteur de frère adjacent
      fonctionne partout depuis toujours : la case est simplement sortie du
      label, reliée par `for` / `id`.
*/
.hn-pilule--choix { user-select: none; }
.hn-pilule__case { position: absolute; opacity: 0; width: 0; height: 0; }

.hn-pilule__case:checked + .hn-pilule--choix {
  background: var(--hn-mag-clair); border-color: var(--hn-mag); color: var(--hn-mag-fonce);
}
.hn-pilule__case:focus-visible + .hn-pilule--choix {
  outline: 2px solid var(--hn-mag); outline-offset: 2px;
}

/* Conservée : d'autres écrans posent encore l'état côté serveur. */
.hn-pilule--choix.est-actif { background:var(--hn-mag-clair); border-color:var(--hn-mag); color:var(--hn-mag-fonce); }

/* ── Champs conditionnels ────────────────────────────────────────────
   ⚠️  MASQUÉS SEULEMENT SI LE SCRIPT A PRIS LA MAIN.

       La classe `hn-cond--actif` est posée par `js/app.js` au chargement.
       Sans JavaScript, elle n'existe pas et TOUS les champs restent
       visibles : on voit le TJM freelance à côté du salaire annuel, ce qui
       est un peu chargé mais parfaitement utilisable. Masquer par défaut
       aurait rendu ces champs inaccessibles dès que le script échoue. */
.hn-cond--actif .hn-cond { display: none; }
.hn-cond--actif .hn-cond.est-visible { display: block; }

/* ── Badges d'état ───────────────────────────────────────────────── */

.hn-badge {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:700; padding:6px 13px;
  border-radius:var(--hn-r-pilule); white-space:nowrap;
  background:var(--hn-trait-3); color:var(--hn-gris);
}
.hn-badge--mag { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); }
.hn-badge--bleu { background:var(--hn-bleu-pale); color:var(--hn-bleu); }
.hn-badge--vert { background:var(--hn-vert-pale); color:var(--hn-vert); }
.hn-badge--rouge { background:var(--hn-rouge-pale); color:var(--hn-rouge); }
.hn-badge--orange { background:var(--hn-orange-pale); color:var(--hn-orange); }
.hn-badge--wr { background:var(--hn-wr-pale); color:var(--hn-wr-2); }
.hn-badge--gris { background:var(--hn-trait-3); color:var(--hn-gris); }

/* ── Bandeau d'accueil ───────────────────────────────────────────── */

.hn-hero {
  background:linear-gradient(112deg,#7A2C6E 0%,#4A1844 100%);
  border-radius:18px; padding:34px 38px;
  display:flex; align-items:center; justify-content:space-between; gap:34px;
}
.hn-hero__titre { font-size:27px; font-weight:700; color:#fff; letter-spacing:-.6px; margin-bottom:8px; }
.hn-hero__sous { font-size:15.5px; color:rgba(255,255,255,.82); max-width:640px; line-height:1.6; margin:0; }
.hn-hero__cta { flex:none; }
.hn-hero--wr { background:linear-gradient(112deg,#AE2988 0%,#CF32A1 60%,#E89DDD 100%); }
.hn-hero__marque { display:flex; align-items:center; gap:11px; margin-bottom:10px; font-size:15px; font-weight:700; color:#fff; }
.hn-hero__marque-ico { width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.18); color:#fff; display:flex; align-items:center; justify-content:center; font-size:17px; }
.hn-hero__actions { flex:none; display:flex; flex-direction:column; gap:10px; }
.hn-hero__ghost {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid rgba(255,255,255,.45); color:#fff; font-size:14.5px;
  font-weight:600; padding:12px 24px; border-radius:var(--hn-r-pilule); white-space:nowrap;
}
.hn-hero__ghost:hover { background:rgba(255,255,255,.12); color:#fff; }
/*
  ⚠️  LE CHAMP A BESOIN DE SA PROPRE MARGE HAUTE.

      `.hn-hero__sous` est un `<p>` remis à `margin: 0` — comme tous les
      paragraphes de l'espace, pour que les piles gèrent l'espacement par
      leur `gap`. Mais le bandeau n'est pas une pile : rien ne séparait donc
      le texte du champ, qui venait s'y coller.

  ⚠️  UNE MARGE ICI, PAS UNE MARGE BASSE SUR LE PARAGRAPHE.

      Le paragraphe sert dans tous les bandeaux ; le champ n'existe que
      dans celui de l'aide. C'est à l'élément exceptionnel de porter
      l'exception, sinon les autres bandeaux gagnent un vide en bas.
*/
.hn-hero__champ {
  margin-top: 22px; width: 100%; max-width: 430px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px; border-radius: var(--hn-r-pilule);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size:14.5px; color: #fff;
  transition: background .15s, border-color .15s;
}
.hn-hero__champ:hover { background: rgba(255, 255, 255, .22); }

/* ⚠️  L'ANNEAU DE FOCUS EST SUR L'ENVELOPPE, PAS SUR L'INPUT.

       L'input est transparent et sans bordure : son contour natif se
       dessinait à l'intérieur de la pilule, décalé de quelques pixels — on
       voyait un rectangle dans un arrondi. `:focus-within` le porte sur le
       conteneur, qui a la bonne forme. */
.hn-hero__champ:focus-within {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

.hn-hero__champ .ico { flex: none; color: rgba(255, 255, 255, .8); font-size:15px; }
.hn-hero__champ input {
  flex: 1; min-width: 0; padding: 13px 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; color: #fff;
}
.hn-hero__champ input::placeholder { color: rgba(255, 255, 255, .72); }

/* La croix native du champ de recherche est noire sur fond magenta. */
.hn-hero__champ input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .75);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width:900px) {
  .hn-hero { flex-direction:column; align-items:flex-start; gap:20px; padding:26px; }
  .hn-hero__titre { font-size:22px; }
}

/* ── Tuiles de chiffres ──────────────────────────────────────────── */

.hn-stat { background:var(--hn-blanc); border-radius:var(--hn-r-carte); padding:22px; }
.hn-stat__tete { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.hn-stat__ico { width:38px; height:38px; border-radius:12px; background:var(--hn-mag-clair); color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:17px; }
.hn-stat__delta { font-size:12.5px; font-weight:700; color:var(--hn-vert); }
.hn-stat__delta--neutre { color:var(--hn-gris-4); }
.hn-stat__delta--baisse { color:var(--hn-rouge); }
.hn-stat__v { font-size:32px; font-weight:700; letter-spacing:-1px; }
.hn-stat__l { font-size:13.5px; color:var(--hn-gris-2); margin-top:3px; }

/* ── Rangées ─────────────────────────────────────────────────────── */

.hn-ligne { padding:18px 26px; border-bottom:1px solid var(--hn-trait-3); display:grid; gap:18px; align-items:center; }
.hn-ligne:last-child { border-bottom:0; }
.hn-ligne--dash { grid-template-columns:minmax(0,1fr) 150px 130px 120px; }
.hn-ligne--relation { grid-template-columns:minmax(0,1fr) 130px 130px 150px 250px; gap:20px; padding:22px 26px; }
.hn-ligne__t { font-size:15.5px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-ligne__sub { font-size:13px; color:var(--hn-gris-2); margin-top:2px; }
.hn-ligne__date { font-size:14px; color:var(--hn-gris); font-variant-numeric:tabular-nums; }
.hn-ligne__metric { font-size:14.5px; font-weight:700; }
.hn-ligne__badge { justify-self:start; }
@media (max-width:1100px) { .hn-ligne--dash, .hn-ligne--relation { grid-template-columns:minmax(0,1fr); gap:10px; } }

/* ── Tableau ─────────────────────────────────────────────────────── */

.hn-tab__entete {
  display:grid; gap:16px; padding:16px 26px; background:var(--hn-brume);
  border-top:1px solid var(--hn-trait); border-bottom:1px solid var(--hn-trait);
  font-size:12.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--hn-gris);
}
.hn-tab__ligne { display:grid; gap:16px; padding:18px 26px; border-bottom:1px solid var(--hn-trait-3); align-items:center; font-size:14.5px; }
.hn-tab__ligne:hover { background:var(--hn-brume); }
.hn-tab__ref { font-weight:700; color:var(--hn-mag-fonce); }
.hn-tab__num { font-weight:700; }
.hn-tab__doux { color:var(--hn-gris); }
.hn-tab__date { color:var(--hn-gris); font-variant-numeric:tabular-nums; }
.hn-tab__pied { padding:16px 26px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:13.5px; color:var(--hn-gris-2); }

/* Grilles nommées — la maquette fixe des largeurs par écran. */
.hn-g-candidatures { grid-template-columns:90px minmax(0,1fr) 210px 150px 150px 130px; }
.hn-g-factures { grid-template-columns:170px minmax(0,1fr) 150px 130px 120px; }
.hn-g-wr { grid-template-columns:minmax(0,1fr) 160px 100px 120px 150px; }
/* ── Compteur de commission (cadran) : rouge (0 %) → vert (20 % et plus) ─
   ⚠️  `hn-cadran`, PAS `hn-jauge` : `.hn-jauge` est déjà la barre de
       progression de la Toolbox (8 px de haut, `overflow:hidden`), déclarée
       plus bas — elle écrasait ce compteur et n'en laissait qu'une barre. */
.hn-cadran { margin:18px 0 4px; }
.hn-cadran__zone { position:relative; max-width:300px; margin:0 auto; text-align:center; }
.hn-cadran__svg { display:block; width:100%; height:auto; overflow:visible; }
.hn-cadran__aiguille[hidden], .hn-cadran__bulle[hidden] { display:none; }
.hn-cadran__bulle { display:inline-block; margin-top:6px; padding:7px 16px; border-radius:100px;
  font-size:20px; font-weight:800; line-height:1; color:#fff; background:#E8344F; white-space:nowrap;
  transition:background-color .2s ease; box-shadow:0 2px 8px rgba(0,0,0,.18); }
.hn-cadran.est-bas .hn-cadran__bulle { background:#E8344F; }
.hn-cadran.est-moyen .hn-cadran__bulle { background:#E8890C; }
.hn-cadran.est-haut .hn-cadran__bulle { background:#2E9E3E; }
.hn-cadran__verdict { text-align:center; margin:10px 0 0; font-size:14.5px; font-weight:700; min-height:1.3em; }
.hn-cadran__verdict.est-bas { color:#C42348; }
.hn-cadran__verdict.est-moyen { color:#A35F00; }
.hn-cadran__verdict.est-haut { color:#1E7B45; }
.hn-apercu__fee.est-bas, .hn-apercu__fee.est-moyen, .hn-apercu__fee.est-haut {
  padding:10px 14px; border-radius:12px; font-size:16px; transition:background-color .2s ease, color .2s ease; }
.hn-apercu__fee.est-bas { color:#C42348; background:#FDECEF; }
.hn-apercu__fee.est-moyen { color:#8A5A00; background:#FFF1CC; }
.hn-apercu__fee.est-haut { color:#1E7B45; background:#E4F6EA; }
.hn-g-wrpub { grid-template-columns:minmax(0,1fr) 170px 70px 150px 236px; column-gap:20px; }
.hn-g-wrpub .hn-tab__date { white-space:nowrap; }
/* ⚠️  COLONNES FIXES : chaque ligne est sa propre grille. Une colonne en
       `auto` prenait la largeur de SES boutons, différente sur chaque ligne
       et sur l'en-tête — d'où un en-tête décalé. */
.hn-tab__entete.hn-g-wrpub { padding:13px 26px; font-size:11.5px; }
.hn-tab__centre { text-align:center; }
.hn-tab__droite { text-align:right; }
.hn-g-wrpub .hn-ligne__t { display:block; font-weight:700; color:var(--hn-encre); margin-bottom:4px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-g-wrpub .hn-ligne__sub { display:flex; align-items:center; flex-wrap:wrap; gap:4px 0; font-size:13px; color:var(--hn-gris); }
.hn-actions-wr { display:flex; flex-wrap:nowrap; gap:6px; justify-content:flex-end; }
/* Boutons-icônes, avec infobulle au survol et au focus clavier. */
.hn-ico-btn { position:relative; display:inline-grid; place-items:center; width:36px; height:36px; padding:0;
  border:1px solid var(--hn-trait); border-radius:10px; background:var(--hn-blanc); color:var(--hn-gris);
  cursor:pointer; text-decoration:none; transition:background .15s, color .15s, border-color .15s; }
.hn-ico-btn svg { width:17px; height:17px; }
.hn-ico-btn:hover, .hn-ico-btn:focus-visible { background:var(--hn-wr-pale); color:var(--hn-wr-2); border-color:transparent; outline:0; }
.hn-ico-btn--wr { background:var(--hn-wr-2); border-color:var(--hn-wr-2); color:#fff; }
.hn-ico-btn--wr:hover, .hn-ico-btn--wr:focus-visible { background:var(--hn-wr); color:#fff; }
.hn-ico-btn--danger { color:#C42348; }
.hn-ico-btn--danger:hover, .hn-ico-btn--danger:focus-visible { background:#FDECEF; color:#A31C3B; }
.hn-ico-btn[data-tip]::after { content:attr(data-tip); position:absolute; bottom:calc(100% + 8px); left:50%;
  transform:translate(-50%,4px); padding:6px 10px; border-radius:8px; background:#1E1B2E; color:#fff;
  font-size:12px; font-weight:600; line-height:1.2; white-space:nowrap; pointer-events:none; opacity:0;
  transition:opacity .12s, transform .12s; z-index:20; }
.hn-ico-btn[data-tip]::before { content:""; position:absolute; bottom:calc(100% + 3px); left:50%; transform:translateX(-50%);
  border:5px solid transparent; border-top-color:#1E1B2E; opacity:0; transition:opacity .12s; pointer-events:none; z-index:20; }
.hn-ico-btn[data-tip]:hover::after, .hn-ico-btn[data-tip]:focus-visible::after { opacity:1; transform:translate(-50%,0); }
.hn-ico-btn[data-tip]:hover::before, .hn-ico-btn[data-tip]:focus-visible::before { opacity:1; }
.hn-actions-wr > :last-child .hn-ico-btn[data-tip]::after, .hn-actions-wr > .hn-ico-btn:last-child[data-tip]::after { left:auto; right:0; transform:translateY(4px); }
.hn-actions-wr > :last-child .hn-ico-btn[data-tip]:hover::after { transform:none; }
.hn-actions-wr form { margin:0; }
.hn-onglets-wr { display:flex; gap:6px; margin:0 0 4px; }
.hn-onglets-wr a { padding:9px 16px; border-radius:100px; font-size:14px; font-weight:600; color:var(--hn-gris); background:var(--hn-brume); }
.hn-onglets-wr a.est-actif { background:var(--hn-wr-pale); color:var(--hn-wr-2); }
.hn-ligne__sub .hn-badge { margin-right:8px; }
.hn-g-offrecv { grid-template-columns:minmax(0,1fr) 100px 110px 120px; }
@media (max-width:1100px) {
  .hn-tab__entete { display:none; }
  .hn-tab__ligne { grid-template-columns:minmax(0,1fr) !important; gap:8px; }
}

.hn-pager { display:flex; gap:8px; }
.hn-pager a, .hn-pager span {
  min-width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-size:13.5px; font-weight:700;
  background:var(--hn-trait-3); color:var(--hn-encre-2);
}
.hn-pager a:hover { background:var(--hn-trait); color:var(--hn-encre); }
.hn-pager .est-actif { background:var(--hn-mag); color:#fff; }

/* ── Faits en tirets ─────────────────────────────────────────────── */

.hn-faits { display:flex; gap:12px; flex-wrap:wrap; }
.hn-faits--grille { display:grid; grid-template-columns:repeat(4,1fr); }
.hn-fait { border:1px dashed var(--hn-tiret); border-radius:11px; padding:11px 16px; min-width:118px; }
.hn-fait--fort { border-color:var(--hn-mag); background:var(--hn-mag-rose); }
.hn-fait__v { font-size:15px; font-weight:700; }
.hn-fait--fort .hn-fait__v { color:var(--hn-mag-fonce); }
.hn-fait__l { font-size:13px; color:var(--hn-gris-2); }
@media (max-width:760px) { .hn-faits--grille { grid-template-columns:1fr 1fr; } }

/* ── Activité ────────────────────────────────────────────────────── */

.hn-activite { display:flex; flex-direction:column; gap:15px; }
.hn-activite__item { display:flex; gap:13px; }
.hn-activite__ico { flex:none; width:32px; height:32px; border-radius:10px; background:var(--hn-mag-clair); color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:14px; }
.hn-activite__ico--bleu { background:var(--hn-bleu-pale); color:var(--hn-bleu); }
.hn-activite__ico--vert { background:var(--hn-vert-pale); color:var(--hn-vert); }
.hn-activite__ico--wr { background:var(--hn-wr-pale); color:var(--hn-wr); }
.hn-activite__t { font-size:14px; line-height:1.5; color:var(--hn-encre-2); }
.hn-activite__h { font-size:12.5px; color:var(--hn-gris-4); margin-top:2px; }

/* ── Encart sombre ───────────────────────────────────────────────── */

.hn-promo { display:block; background:var(--hn-navy); border-radius:var(--hn-r-carte); padding:24px; color:#fff; }
.hn-promo:hover { color:#fff; background:#23234A; }
.hn-promo--fixe:hover { background:var(--hn-navy); }
.hn-promo__ico { width:42px; height:42px; border-radius:13px; background:rgba(255,255,255,.1); color:var(--hn-mag-vif); display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:15px; }
.hn-promo__t { font-size:18px; font-weight:700; margin-bottom:7px; }
.hn-promo p { margin:0 0 15px; font-size:14px; line-height:1.6; color:var(--hn-navy-txt); }
.hn-promo__lien { font-size:14px; font-weight:700; color:var(--hn-mag-vif); }
.hn-promo__sur { font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--hn-navy-txt2); margin-bottom:14px; }
.hn-promo__chiffre { font-size:38px; font-weight:700; letter-spacing:-1.2px; color:#fff; }
.hn-promo__note { font-size:14px; color:var(--hn-navy-txt); margin-bottom:20px; }
.hn-promo__rows { display:flex; flex-direction:column; gap:11px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); }
.hn-promo__row { display:flex; justify-content:space-between; gap:16px; font-size:14px; }
.hn-promo__row span:first-child { color:var(--hn-navy-txt); }
.hn-promo__row span:last-child { font-weight:700; color:#fff; }
.hn-promo__mail { margin-top:16px; font-size:13.5px; color:var(--hn-navy-txt2); text-align:center; }

/* ── Notes encadrées ─────────────────────────────────────────────── */

.hn-note {
  border-radius:var(--hn-r-tuile); padding:18px 20px;
  display:flex; gap:14px; align-items:flex-start;
  font-size:14.5px; line-height:1.6; color:var(--hn-encre-2);
  background:var(--hn-bleu-pale); border:1px dashed var(--hn-bleu);
}
.hn-note .ico { flex:none; color:var(--hn-bleu); font-size:19px; margin-top:1px; }
.hn-note--mag { background:var(--hn-lavande); border-color:var(--hn-mag); }
.hn-note--mag .ico { color:var(--hn-mag); }
.hn-note--wr { background:var(--hn-wr-clair); border-color:var(--hn-wr-3); }
.hn-note--wr .ico { color:var(--hn-wr); }
.hn-note--orange { background:var(--hn-orange-pale); border-color:var(--hn-etoile); }
.hn-note--orange .ico { color:var(--hn-orange); }
.hn-note--rouge { background:var(--hn-rouge-pale); border-color:var(--hn-rouge); }
.hn-note--rouge .ico { color:var(--hn-rouge); }
.hn-note--plat { background:var(--hn-brume); border:0; padding:18px 26px; font-size:13.5px; }
.hn-note p { margin:0; }
.hn-note strong { display:block; }

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

.hn-champ { display:block; }
.hn-label { display:block; font-size:14.5px; font-weight:700; margin-bottom:9px; color:var(--hn-encre); }
.hn-requis { color:var(--hn-requis); }
.hn-aide { font-size:13.5px; color:var(--hn-gris-2); margin-top:9px; }

.hn-input, .hn-select, .hn-textarea {
  width:100%; border:1px solid var(--hn-bord); border-radius:var(--hn-r-champ);
  padding:14px 16px; font:inherit; font-size:15px;
  background:var(--hn-blanc); color:var(--hn-encre);
}
.hn-input::placeholder, .hn-textarea::placeholder { color:var(--hn-gris-4); }
.hn-input:focus, .hn-select:focus, .hn-textarea:focus {
  outline:0; border:1.5px solid var(--hn-mag);
  box-shadow:0 0 0 4px rgba(122,44,110,.08);
}
.hn-textarea { min-height:130px; line-height:1.7; resize:vertical; }
.hn-textarea--haut { min-height:220px; }
.hn-select {
  appearance:none; cursor:pointer; padding-right:40px;
  /* ⚠️  Chevron en data:, pas en `style` : `style-src` bloque l'attribut,
         `img-src data:` est autorisé. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239A9AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center;
}
.hn-champs { display:grid; gap:18px; }
.hn-champs--2 { grid-template-columns:1fr 1fr; }
.hn-champs--3 { grid-template-columns:1fr 1fr 1fr; }
@media (max-width:900px) { .hn-champs--2, .hn-champs--3 { grid-template-columns:minmax(0,1fr); } }

.hn-form-pile { display:flex; flex-direction:column; gap:24px; }
.hn-form-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:22px; flex-wrap:wrap; }
.hn-form-actions__droite { display:flex; gap:12px; margin-left:auto; }

/* Interrupteur — un vrai <input type=checkbox>.
   ⚠️  Pas un <div> cliquable : sans champ, rien n'est envoyé au POST et
       la valeur ne survit pas au rechargement. */
.hn-switch { display:flex; align-items:flex-start; gap:14px; cursor:pointer; background:var(--hn-lavande); border-radius:var(--hn-r-tuile); padding:18px 20px; }
.hn-switch--nu { background:transparent; padding:0; }
.hn-switch input { position:absolute; opacity:0; width:0; height:0; }
/*
  ⚠️  LE POUCE DOIT ÊTRE `display: block` — SANS ÇA IL N'EXISTE PAS.

      C'est un `<span>`, donc `inline` par défaut, et `width` / `height` ne
      s'appliquent PAS à une boîte inline. Le pouce avait une taille nulle :
      l'interrupteur se réduisait à une pilule de couleur unie, sans rien
      dedans. Impossible de savoir s'il était allumé ou éteint autrement
      qu'à la teinte — et la piste, elle, était bien visible, ce qui donnait
      l'impression d'un composant « à moitié dessiné » plutôt que cassé.

      La piste est enfant direct d'un conteneur flex : elle, le navigateur
      la blockifie tout seul. C'est ce qui rendait le défaut asymétrique et
      difficile à repérer.
*/
.hn-switch__piste {
  flex: none; display: block; box-sizing: content-box;
  width: 40px; height: 20px; padding: 3px;
  border-radius: 999px; margin-top: 1px;
  background: var(--hn-tiret);
  box-shadow: inset 0 0 0 1px rgba(34, 34, 59, .07);
  transition: background .18s cubic-bezier(.4, 0, .2, 1);
}

.hn-switch__pouce {
  display: block;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  /* Une ombre portée courte : sans elle, le pouce blanc disparaît sur la
     piste éteinte, qui est claire elle aussi. */
  box-shadow: 0 1px 3px rgba(34, 34, 59, .28), 0 0 0 .5px rgba(34, 34, 59, .05);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
}

.hn-switch:hover .hn-switch__piste { background: var(--hn-gris-5); }

.hn-switch input:checked + .hn-switch__piste {
  background: var(--hn-mag); box-shadow: none;
}
.hn-switch:hover input:checked + .hn-switch__piste { background: var(--hn-mag-fonce); }
.hn-switch input:checked + .hn-switch__piste .hn-switch__pouce { transform: translateX(20px); }

/* ⚠️  `:focus-visible`, PAS `:focus` : le contour n'apparaît qu'au clavier.
       Au clic souris il ferait croire à une erreur de saisie. */
.hn-switch input:focus-visible + .hn-switch__piste {
  box-shadow: 0 0 0 3px rgba(122, 44, 110, .3);
}

.hn-switch input:disabled + .hn-switch__piste { opacity: .5; }
.hn-switch:has(input:disabled) { cursor: not-allowed; }

.hn-switch--wr input:checked + .hn-switch__piste { background: var(--hn-wr); }
.hn-switch--wr:hover input:checked + .hn-switch__piste { background: var(--hn-wr-2); }
.hn-switch__t { font-size:15px; font-weight:700; margin-bottom:3px; }
.hn-switch__d { font-size:14px; color:var(--hn-gris); line-height:1.55; }
/* Variante compacte — la course du pouce se recalcule avec la piste :
   largeur de contenu (34 px) moins le diamètre (17 px) = 17 px. */
.hn-switch__piste--sm { width: 34px; height: 17px; }
.hn-switch__piste--sm .hn-switch__pouce { width: 17px; height: 17px; }
.hn-switch input:checked + .hn-switch__piste--sm .hn-switch__pouce { transform: translateX(17px); }

.hn-case { display:flex; align-items:flex-start; gap:13px; cursor:pointer; }
.hn-case input { position:absolute; opacity:0; width:0; height:0; }
.hn-case__boite {
  flex:none; width:20px; height:20px; border-radius:5px; margin-top:2px;
  border:1.5px solid var(--hn-tiret); background:#fff;
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px;
}
.hn-case input:checked + .hn-case__boite { background:var(--hn-mag); border-color:var(--hn-mag); }
.hn-case input:not(:checked) + .hn-case__boite .ico { visibility:hidden; }
.hn-case__t { font-size:14.5px; line-height:1.6; color:var(--hn-encre-2); }

.hn-tags { display:flex; gap:9px; flex-wrap:wrap; }
.hn-tag { display:inline-flex; align-items:center; gap:8px; background:var(--hn-trait-3); color:var(--hn-encre-2); font-size:14px; font-weight:600; padding:9px 16px; border-radius:var(--hn-r-pilule); }
.hn-tag--mag { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); }
.hn-tag--masque .ico { color:var(--hn-mag); font-size:12px; }

.hn-depot { border:2px dashed var(--hn-mag); background:var(--hn-mag-rose); border-radius:var(--hn-r-tuile); padding:26px; display:flex; align-items:center; gap:18px; }
.hn-depot--centre { flex-direction:column; text-align:center; padding:30px; gap:8px; }
.hn-depot__ico { flex:none; width:46px; height:46px; border-radius:12px; background:#fff; color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:20px; }
.hn-depot__nom { font-size:15px; font-weight:700; }
.hn-depot__meta { font-size:13.5px; color:var(--hn-gris-2); margin-top:3px; }
.hn-depot input[type=file] { font:inherit; font-size:13.5px; color:var(--hn-gris); max-width:100%; }

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

.hn-etapes { display: flex; gap: 10px; }

/*
  ⚠️  LES ÉTAPES OCCUPENT TOUTE LA LARGEUR, AU-DESSUS DES COLONNES.

      Placées dans la colonne de gauche, cinq libellés se partageaient 60 %
      de la largeur : les derniers se réduisaient à « 4. Desc… », « 5. Par… »
      et l'on croyait qu'il en manquait. Le repère de progression d'un tunnel
      appartient au tunnel entier, pas à l'une de ses colonnes.
*/
.hn-etape {
  flex: 1 1 0; min-width: 0;
  display: block; color: inherit;
}
.hn-etape__t {
  display: block; margin-bottom: 10px;
  font-size:14.5px; font-weight: 700; color: var(--hn-gris-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hn-etape__barre {
  display: block; height: 4px; border-radius: 2px;
  background: var(--hn-trait-2);
  transition: background .15s;
}

.hn-etape.est-faite .hn-etape__t { color: var(--hn-mag-fonce); }
.hn-etape.est-faite .hn-etape__barre { background: var(--hn-lilas); }
.hn-etape.est-actif .hn-etape__t { color: var(--hn-mag); }
.hn-etape.est-actif .hn-etape__barre { background: var(--hn-mag); }

/* Une étape franchie est un lien : elle doit se voir comme tel au survol. */
a.hn-etape:hover .hn-etape__t { color: var(--hn-mag); }
a.hn-etape:hover .hn-etape__barre { background: var(--hn-mag-vif); }

/* ⚠️  EN DESSOUS DE 900 px, LES LIBELLÉS NE TIENNENT PLUS.

       Cinq colonnes de 60 px ne montrent que « 1. In… ». On garde les
       barres — la progression reste lisible — et le titre de l'étape est
       de toute façon répété en tête du formulaire. */
@media (max-width: 900px) {
  .hn-etapes { gap: 6px; }
  .hn-etape__t { display: none; }
}

/* ── Onglets soulignés ───────────────────────────────────────────── */

.hn-onglets { display:flex; gap:26px; border-bottom:1px solid var(--hn-bord); margin-bottom:24px; overflow-x:auto; }

/* ⚠️  DANS UNE PILE, C'EST LE `gap` QUI ESPACE — PAS LA MARGE.

       Les deux s'additionnaient : 24 px de marge propre aux onglets plus
       20 px de gouttière faisaient 44 px, presque le double de l'écart
       voulu. La marge n'existe que pour les écrans dont le conteneur n'est
       pas une pile ; là où il en est une, on la neutralise. */
.hn-pile > .hn-onglets { margin-bottom: 0; }
.hn-onglet { padding-bottom:12px; border-bottom:3px solid transparent; margin-bottom:-1px; white-space:nowrap; display:flex; align-items:center; gap:7px; font-size:15px; font-weight:700; color:var(--hn-gris-2); }
.hn-onglet:hover { color:var(--hn-encre); }
.hn-onglet.est-actif { border-bottom-color:var(--hn-mag); color:var(--hn-mag-fonce); }
.hn-onglet__n { font-size:12.5px; font-weight:700; color:#fff; background:var(--hn-gris-4); border-radius:var(--hn-r-pilule); padding:2px 8px; }
.hn-onglet.est-actif .hn-onglet__n { background:var(--hn-mag); }

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

.hn-cv { background:var(--hn-blanc); border:1px solid var(--hn-trait); border-radius:var(--hn-r-carte); padding:28px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.hn-cv.est-nouveau { border-color:var(--hn-mag); }
.hn-cv__ava { width:56px; height:56px; border-radius:50%; background:var(--hn-trait-3); color:var(--hn-gris-4); display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; }
.hn-cv__id { font-size:17px; font-weight:700; }
.hn-cv__src { font-size:14px; color:var(--hn-gris-2); margin-bottom:14px; }
.hn-cv__mot { margin:14px 0 0; font-size:14.5px; line-height:1.6; color:var(--hn-gris); max-width:420px; }
.hn-cv__faits { display:flex; gap:12px; margin:18px 0; flex-wrap:wrap; justify-content:center; }
.hn-cv__actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center; }

/* ── Relations ───────────────────────────────────────────────────── */

.hn-rel__id { display:flex; align-items:center; gap:14px; min-width:0; }
.hn-rel__pastille { flex:none; width:46px; height:46px; border-radius:12px; background:var(--hn-lilas); color:#4A1844; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; }
.hn-rel__nom { font-size:16.5px; font-weight:700; }
.hn-rel__meta { font-size:13.5px; color:var(--hn-gris-2); }
.hn-rel__n { font-size:16px; font-weight:700; }
.hn-rel__n--vert { color:var(--hn-vert); }
.hn-rel__nl { font-size:12.5px; color:var(--hn-gris-2); }
.hn-rel__actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* ── Messagerie ──────────────────────────────────────────────────── */

.hn-fils { background:var(--hn-blanc); border-radius:var(--hn-r-carte); overflow:hidden; }
.hn-fils__recherche { padding:18px 20px; }
.hn-fils__recherche .hn-recherche { max-width:none; margin:0; }
.hn-fil { padding:16px 20px; border-top:1px solid var(--hn-trait-3); display:flex; gap:12px; color:var(--hn-encre); }
.hn-fil:hover { background:var(--hn-brume); color:var(--hn-encre); }
.hn-fil.est-actif { background:var(--hn-mag-clair); }
.hn-fil__corps { flex:1; min-width:0; }
.hn-fil__tete { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.hn-fil__nom { font-size:14.5px; font-weight:700; }
.hn-fil__h { font-size:12px; color:var(--hn-gris-4); flex:none; }
.hn-fil__objet { font-size:13px; color:var(--hn-gris-2); margin-top:2px; }
.hn-fil__extrait { font-size:13.5px; color:var(--hn-gris); margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-fil__point { flex:none; width:9px; height:9px; border-radius:50%; background:var(--hn-mag); margin-top:6px; }

.hn-conv { background:var(--hn-blanc); border-radius:var(--hn-r-carte); display:flex; flex-direction:column; min-height:660px; }
.hn-conv__tete { padding:20px 26px; border-bottom:1px solid var(--hn-trait-2); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.hn-conv__qui { display:flex; align-items:center; gap:12px; min-width:0; }
.hn-conv__nom { font-size:16px; font-weight:700; }
.hn-conv__objet { font-size:13px; color:var(--hn-gris-2); }
.hn-conv__corps { flex:1; padding:26px; display:flex; flex-direction:column; gap:22px; overflow:auto; }
.hn-msg { display:flex; flex-direction:column; align-items:flex-start; }
.hn-msg--moi { align-items:flex-end; }
.hn-msg__tete { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.hn-msg--moi .hn-msg__tete { flex-direction:row-reverse; }
.hn-msg__qui { display:flex; align-items:baseline; gap:8px; }
.hn-msg__nom { font-size:14.5px; font-weight:700; }
.hn-msg__h { font-size:12.5px; color:var(--hn-gris-4); }
.hn-msg__bulle { max-width:460px; background:var(--hn-trait-3); color:var(--hn-encre); border-radius:14px; padding:16px 18px; font-size:14.5px; line-height:1.6; }
.hn-msg--moi .hn-msg__bulle { background:var(--hn-mag-clair); text-align:right; }
.hn-conv__pied { padding:18px 26px; border-top:1px solid var(--hn-trait-2); display:flex; align-items:center; gap:14px; }
.hn-conv__pied .hn-input { border-radius:var(--hn-r-pilule); padding:13px 18px; font-size:14.5px; }

/* ── Formules ────────────────────────────────────────────────────── */

.hn-plan { background:var(--hn-blanc); border:1.5px solid var(--hn-trait); border-radius:var(--hn-r-carte); padding:28px; }
.hn-plan--phare { background:var(--hn-navy); border-color:var(--hn-navy); color:#fff; }
.hn-plan--actuel { border-color:var(--hn-mag); }
.hn-plan__tete { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.hn-plan__nom { font-size:17px; font-weight:700; }
.hn-plan__prix-l { display:flex; align-items:baseline; gap:6px; margin-bottom:6px; }
.hn-plan__prix { font-size:38px; font-weight:700; letter-spacing:-1.2px; }
.hn-plan__per { font-size:14.5px; color:var(--hn-gris-2); }
.hn-plan--phare .hn-plan__per, .hn-plan--phare .hn-plan__sous { color:var(--hn-navy-txt); }
.hn-plan__sous { font-size:14px; color:var(--hn-gris-2); margin-bottom:20px; }
.hn-plan__feats { display:flex; flex-direction:column; gap:11px; margin-bottom:22px; }
.hn-plan__feat { display:flex; gap:11px; align-items:flex-start; font-size:14.5px; line-height:1.5; color:var(--hn-encre-2); }
.hn-plan__feat .ico { color:var(--hn-vert); font-size:14px; margin-top:3px; }
.hn-plan--phare .hn-plan__feat { color:#E9E9F2; }
.hn-plan--phare .hn-plan__feat .ico { color:var(--hn-mag-vif); }

/* ── FAQ / guides ────────────────────────────────────────────────── */

.hn-faq { border-bottom:1px solid var(--hn-trait-3); }
.hn-faq:last-child { border-bottom:0; }
.hn-faq > summary { padding:22px 26px; cursor:pointer; list-style:none; display:flex; align-items:flex-start; gap:13px; }
.hn-faq > summary::-webkit-details-marker { display:none; }
.hn-faq__n { flex:none; font-size:14px; font-weight:700; color:var(--hn-mag); margin-top:2px; }
.hn-faq__q { flex:1; min-width:0; font-size:16.5px; font-weight:700; line-height:1.4; }
.hn-faq__chev { flex:none; color:var(--hn-gris-4); font-size:14px; margin-top:4px; }
.hn-faq[open] .hn-faq__chev { transform:rotate(180deg); }
.hn-faq__r { margin:0; padding:0 26px 22px 66px; font-size:15px; line-height:1.7; color:var(--hn-gris); }
/* 23/11/2026 — l'issue vers le support, sous les questions (la carte qui
   était en haut à droite a été retirée). Une ligne, pas une carte. */
.hn-faq__support { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin:4px 0 0; padding:16px 26px 4px; border-top:1px solid var(--hn-trait-2); font-size:14px; color:var(--hn-gris); }

.hn-guide { border:1px solid var(--hn-trait-2); border-radius:13px; padding:18px; display:flex; gap:14px; align-items:flex-start; color:var(--hn-encre); }
.hn-guide:hover { border-color:var(--hn-bord); color:var(--hn-encre); }
.hn-guide__ico { flex:none; width:40px; height:40px; border-radius:12px; background:var(--hn-mag-clair); color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:18px; }
.hn-guide__t { font-size:15px; font-weight:700; margin-bottom:4px; }
.hn-guide__d { font-size:13.5px; color:var(--hn-gris-2); }

/* ── Listes latérales ────────────────────────────────────────────── */

.hn-verif { border:1px dashed var(--hn-tiret); border-radius:var(--hn-r-tuile); padding:16px 18px; display:flex; align-items:center; gap:13px; }
.hn-verif--ok { border-color:var(--hn-vert); }
.hn-verif--ok .ico { color:var(--hn-vert); }
.hn-verif--attente { border-color:var(--hn-etoile); }
.hn-verif--attente .ico { color:var(--hn-orange); }
.hn-verif .ico { color:var(--hn-gris-4); font-size:18px; flex:none; }
.hn-verif__t { font-size:14.5px; font-weight:700; }
.hn-verif__d { font-size:13px; color:var(--hn-gris-2); }

.hn-mini { display:flex; align-items:center; gap:12px; padding:11px 0; border-top:1px dashed var(--hn-trait); }
.hn-mini:first-of-type { border-top:0; }
.hn-mini__c { flex:1; min-width:0; }
.hn-mini__n { font-size:14.5px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-mini__d { font-size:13px; color:var(--hn-gris-2); }

.hn-kv { display:flex; justify-content:space-between; gap:20px; font-size:14.5px; padding:11px 0; border-bottom:1px dashed var(--hn-trait); }
.hn-kv:last-child { border-bottom:0; }
.hn-kv__k { color:var(--hn-gris); font-weight:600; }
.hn-kv__v { font-weight:700; text-align:right; }
.hn-kv__v--mag { color:var(--hn-mag-fonce); }

.hn-ajout { display:block; margin-top:16px; border:1px dashed var(--hn-tiret); border-radius:var(--hn-r-champ); padding:13px; text-align:center; font-size:14px; font-weight:600; color:var(--hn-mag-fonce); }
.hn-ajout:hover { border-color:var(--hn-mag); background:var(--hn-mag-rose); }

.hn-danger { background:var(--hn-rouge-pale); border:1px dashed var(--hn-rouge); border-radius:var(--hn-r-carte); padding:22px; }
.hn-danger__t { font-size:15.5px; font-weight:700; color:var(--hn-rouge); margin-bottom:7px; }
.hn-danger p { margin:0 0 14px; font-size:14px; line-height:1.6; color:var(--hn-encre-2); }

/* ── Aperçu / profil ─────────────────────────────────────────────── */

.hn-apercu { border:1px solid var(--hn-trait); border-radius:var(--hn-r-tuile); padding:20px; }
.hn-apercu--centre { text-align:center; }
.hn-apercu__t { font-size:17px; font-weight:700; margin:14px 0 6px; }
.hn-apercu__m { font-size:13.5px; color:var(--hn-gris-2); margin-bottom:14px; }
.hn-apercu__lignes { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.hn-apercu__l { height:8px; border-radius:4px; background:var(--hn-trait-2); }
.hn-apercu__l--80 { width:82%; }
.hn-apercu__l--60 { width:60%; }
.hn-apercu__fee { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:var(--hn-mag); }

.hn-banniere { height:150px; background:repeating-linear-gradient(135deg,#F9EEF7 0 14px,#EED2EA 14px 28px); }
.hn-profil__corps { padding:0 28px 28px; margin-top:-38px; }
.hn-profil__logo { width:82px; height:82px; border-radius:20px; background:#fff; border:3px solid #fff; box-shadow:0 8px 22px rgba(34,34,59,.12); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; color:#4A1844; }
.hn-profil__tete { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-top:18px; flex-wrap:wrap; }
.hn-profil__nom { font-size:26px; font-weight:700; letter-spacing:-.6px; }
.hn-profil__meta { font-size:14.5px; color:var(--hn-gris-2); }
.hn-profil__texte { margin:20px 0 0; font-size:15.5px; line-height:1.7; color:var(--hn-gris); max-width:680px; }
.hn-tuile-chiffre { background:var(--hn-trait-3); border-radius:var(--hn-r-tuile); padding:16px; }
.hn-tuile-chiffre__v { font-size:24px; font-weight:700; letter-spacing:-.7px; }
.hn-tuile-chiffre__l { font-size:12.5px; color:var(--hn-gris-2); }

/* ── Jauges ──────────────────────────────────────────────────────── */

.hn-jauge { height:8px; border-radius:4px; background:var(--hn-lilas); overflow:hidden; }
.hn-jauge--fine { height:6px; border-radius:3px; background:var(--hn-trait-2); }
.hn-jauge__v { height:100%; background:var(--hn-mag); border-radius:inherit; }
.hn-jauge__v--vert { background:var(--hn-vert); }
.hn-jauge__v--orange { background:var(--hn-etoile); }

/* ⚠️  PALIERS, PAS UNE LARGEUR EN LIGNE.
       `style="width:82%"` est bloqué par `style-src 'self'`. Les paliers
       de 5 % suffisent à lire une proportion. */
.hn-p0{width:0}    .hn-p5{width:5%}    .hn-p10{width:10%}  .hn-p15{width:15%}
.hn-p20{width:20%} .hn-p25{width:25%}  .hn-p30{width:30%}  .hn-p35{width:35%}
.hn-p40{width:40%} .hn-p45{width:45%}  .hn-p50{width:50%}  .hn-p55{width:55%}
.hn-p60{width:60%} .hn-p65{width:65%}  .hn-p70{width:70%}  .hn-p75{width:75%}
.hn-p80{width:80%} .hn-p85{width:85%}  .hn-p90{width:90%}  .hn-p95{width:95%}
.hn-p100{width:100%}

/* ── État vide ───────────────────────────────────────────────────── */

.hn-vide { background:var(--hn-blanc); border-radius:var(--hn-r-carte); padding:52px 32px; text-align:center; }
.hn-vide__ico { width:72px; height:72px; border-radius:50%; margin:0 auto 20px; background:var(--hn-mag-clair); color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:30px; }
.hn-vide__ico--ok { background:var(--hn-vert-pale); color:var(--hn-vert); }
.hn-vide h2 { font-size:22px; letter-spacing:-.5px; margin-bottom:10px; }
.hn-vide p { margin:0 auto 22px; font-size:15.5px; line-height:1.7; color:var(--hn-gris); max-width:520px; }
.hn-vide__actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

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

.hn-flash {
  margin:18px 28px -8px; border-radius:var(--hn-r-tuile); padding:14px 18px;
  display:flex; gap:12px; align-items:flex-start;
  font-size:14.5px; line-height:1.55;
  background:var(--hn-vert-pale); color:#14532D; border:1px solid #BFE6CE;
}
.hn-flash--erreur { background:var(--hn-rouge-pale); color:#7C1027; border-color:#F3C2CC; }
.hn-flash--info { background:var(--hn-bleu-pale); color:#0B3A7A; border-color:#C9DCF6; }
.hn-flash .ico { flex:none; margin-top:2px; font-size:18px; }
.hn-flash p { margin:0; }

/* ── Boîte à outils (tiroir) ─────────────────────────────────────── */

.hn-tools {
  flex:none; width:470px; background:var(--hn-blanc);
  border-left:1px solid var(--hn-trait);
  box-shadow:-26px 0 60px rgba(34,34,59,.12);
  display:flex; flex-direction:column; height:100vh;
}
.hn-tools__tete { flex:none; padding:22px 26px; border-bottom:1px solid var(--hn-trait-2); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hn-tools__qui { display:flex; align-items:center; gap:12px; min-width:0; }
.hn-tools__rond { flex:none; width:34px; height:34px; border-radius:11px; background:var(--hn-bg); color:var(--hn-encre-2); display:flex; align-items:center; justify-content:center; font-size:15px; }
.hn-tools__rond:hover { background:var(--hn-trait); color:var(--hn-encre); }
.hn-tools__t { font-size:18px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-tools__s { font-size:13px; color:var(--hn-gris-2); margin-top:2px; }
.hn-tools__corps { flex:1; min-height:0; overflow:auto; padding:20px 26px; }
.hn-tools__liste { display:flex; flex-direction:column; gap:11px; }

.hn-outil { border:1px solid var(--hn-trait); border-radius:13px; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; color:var(--hn-encre); }
.hn-outil:hover { border-color:var(--hn-mag); background:var(--hn-mag-rose); color:var(--hn-encre); }
.hn-outil__ico { flex:none; width:38px; height:38px; border-radius:11px; background:var(--hn-mag-clair); color:var(--hn-mag); display:flex; align-items:center; justify-content:center; font-size:18px; }
.hn-outil__c { flex:1; min-width:0; }
.hn-outil__tete { display:flex; align-items:center; gap:9px; margin-bottom:4px; flex-wrap:wrap; }
.hn-outil__t { font-size:15px; font-weight:700; }
.hn-outil__tag { font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:var(--hn-r-pilule); background:var(--hn-mag-clair); color:var(--hn-mag-fonce); }
.hn-outil__tag--bleu { background:var(--hn-bleu-pale); color:var(--hn-bleu); }
.hn-outil__d { font-size:13.5px; line-height:1.55; color:var(--hn-gris); }
.hn-outil__fl { color:var(--hn-mag); font-size:16px; margin-top:10px; flex:none; }

.hn-tools__pied { flex:none; padding:18px 26px; border-top:1px solid var(--hn-trait-2); background:var(--hn-mag-rose); }
.hn-tools__quota { display:flex; justify-content:space-between; font-size:13.5px; font-weight:700; margin-bottom:9px; }
.hn-tools__quota span:last-child { color:var(--hn-mag-fonce); }

.hn-score { background:var(--hn-lavande); border-radius:14px; padding:20px; }
.hn-score__tete { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.hn-score__l { display:flex; align-items:baseline; gap:8px; margin-bottom:12px; }
.hn-score__v { font-size:44px; font-weight:700; letter-spacing:-1.5px; color:var(--hn-mag); }
.hn-score__sur { font-size:16px; color:var(--hn-gris-2); }
.hn-critere__tete { display:flex; justify-content:space-between; font-size:13.5px; font-weight:600; margin-bottom:7px; }

@media (max-width:1280px) { .hn-tools { position:fixed; right:0; top:0; z-index:40; } }
@media (max-width:560px) { .hn-tools { width:100%; } }

/* ── Mobile ──────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   MOBILE — la barre latérale devient un tiroir

   ⚠️  ELLE ÉTAIT EMPILÉE AU-DESSUS DU CONTENU, PAS MASQUÉE.

       Sous 900 px, la coquille passait en colonne : quatre groupes de
       navigation, la bascule d'interface et le pied utilisateur occupaient
       le premier écran entier. Il fallait faire défiler pour atteindre le
       contenu de la page — à chaque changement d'écran.

   ⚠️  LE TIROIR GLISSE, IL N'APPARAÎT PAS D'UN COUP.

       `transform: translateX()` est animé par le compositeur, sans
       recalcul de mise en page : le mouvement reste fluide même sur un
       appareil modeste. Animer `left` ou `width` aurait fait recalculer la
       page à chaque image.
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {

  /* ── Le bandeau : menu à gauche, marque au centre ──────────────── */
  .hn-side__outils .hn-cloche {
    width: auto; height: auto; border-radius: var(--hn-r-pilule);
    padding: 10px 15px; gap: 9px; font-size: 14px; font-weight: 600;
  }

  .hn-conv { min-height: auto; }
}

/* ⚠️  LE TIROIR OUVERT NE DOIT PAS LAISSER DÉFILER LA PAGE DERRIÈRE.

       Sans ça, un glissement du doigt sur le voile fait défiler le contenu
       masqué : on ferme le tiroir et l'on se retrouve ailleurs dans la
       page, sans avoir rien demandé. */

/* ── Impression ──────────────────────────────────────────────────── */

@media print {
  .hn-tools, .hn-form-actions { display:none !important; }
  .hn-page { padding:0; }
  .hn-carte { break-inside:avoid; }
}

/* ── Notifications éphémères ─────────────────────────────────────────
   ⚠️  `partials/flash.ejs` EST PARTAGÉ avec la vitrine et le backoffice.

       Il n'est donc pas réécrit pour la maquette : ses classes
       (`.notifs`, `.notif`) sont reprises ici, aux couleurs Améthyste.
       Les redéfinir dans le partial aurait cassé les deux autres univers.

   ⚠️  EN BAS AU MILIEU, EN POSITION FIXE (26/10/2026 — avant : à droite).

       En haut de page, le message poussait le contenu au rechargement et
       la page « sautait ». Après un envoi de formulaire situé en bas, il
       apparaissait hors de l'écran. Centré sur la ZONE DE CONTENU (à
       droite de la barre latérale), pas sur la fenêtre : sinon il paraît
       décalé vers la gauche. */
.hn .notifs {
  position: fixed; left: 50%; right: auto; bottom: 24px; z-index: 80;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(560px, calc(100vw - 32px)); max-width: none;
  pointer-events: none;
}
@media (min-width: 901px) {
  /* 7.20.0 — la barre est une carte entourée de marges (coquille.css). */
  .hn:has(.hn-shell) .notifs { left: calc(50% + (var(--hn-side) + 2 * var(--hn-marge)) / 2); width: min(560px, calc(100vw - var(--hn-side) - 2 * var(--hn-marge) - 32px)); }
  .hn:has(.hn-side--mini) .notifs { left: calc(50% + (var(--hn-side-mini) + 2 * var(--hn-marge)) / 2); width: min(560px, calc(100vw - var(--hn-side-mini) - 2 * var(--hn-marge) - 32px)); }
}
.hn .notif {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 11px;
  border-radius: var(--hn-r-tuile); padding: 14px 16px;
  font-size:14.5px; line-height: 1.55;
  box-shadow: 0 12px 34px rgba(34,34,59,.16);
  background: var(--hn-blanc); color: var(--hn-encre);
  border: 1px solid var(--hn-trait);
}
.hn .notif--succes { background: var(--hn-vert-pale); color: #14532D; border-color: #BFE6CE; }
.hn .notif--erreur { background: var(--hn-rouge-pale); color: #7C1027; border-color: #F3C2CC; }
.hn .notif__ico { flex: none; font-size:18px; margin-top: 1px; }
.hn .notif__texte { flex: 1; min-width: 0; }
.hn .notif__fermer {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; color: inherit; opacity: .6;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.hn .notif__fermer .ico { width: 15px; height: 15px; }
.hn .notif__fermer:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.hn .notif__barre { height: 3px; opacity: .35; }
/* Sur téléphone, au-dessus de la bulle de messagerie (en bas à droite). */
@media (max-width: 560px) { .hn .notifs { bottom: 88px; } }

/* ── Pagination partagée ─────────────────────────────────────────────
   ⚠️  `partials/pagination_num.ejs` EST PARTAGÉ avec la vitrine.

       Il émet `.pagination-num` ; l'espace connecté ne charge plus la
       feuille de la vitrine, donc ses cases arrivaient sans style —
       une rangée de chiffres bruts collés les uns aux autres. */
.hn .pagination-num { display: flex; gap: 8px; flex-wrap: wrap; }
.hn .pagination-num a,
.hn .pagination-num span {
  min-width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size:13.5px; font-weight: 700;
  background: var(--hn-trait-3); color: var(--hn-encre-2);
}
.hn .pagination-num a:hover { background: var(--hn-trait); color: var(--hn-encre); }
.hn .pagination-num .is-actif { background: var(--hn-mag); color: #fff; }
.hn .pagination-num__points { background: transparent; color: var(--hn-gris-4); }

/* La note du tiroir, quand l'espace courant n'a pas accès aux outils. */
.hn-tools__note { margin-top: 16px; }

/* ════════════════════════════════════════════════════════════════════
   TUNNEL PUBLIC — dépôt d'offre sans compte

   ⚠️  IL NE PORTE NI LA BARRE LATÉRALE NI L'EN-TÊTE DE LA VITRINE.

       Un tunnel se traverse : chaque lien qui en sort est une occasion de
       l'abandonner. La maquette ne laisse qu'une marque cliquable et les
       cinq étapes — c'est délibéré, pas un oubli.
   ════════════════════════════════════════════════════════════════════ */

.hn-tunnel { min-height: 100vh; display: flex; flex-direction: column; background: var(--hn-bg); }

.hn-tunnel__top {
  flex: none; background: var(--hn-blanc); border-bottom: 1px solid var(--hn-trait);
  padding: 0 28px; height: var(--hn-top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hn-tunnel__corps { flex: 1; padding: 34px 28px 60px; }
.hn-tunnel__centre { max-width: 880px; margin: 0 auto; }
.hn-tunnel__large { max-width: 1140px; margin: 0 auto; }

/* 22/11/2026 — LE TITRE N'EST PLUS COLLÉ AUX ÉTAPES. Les barres de progression
   n'avaient aucune marge basse : le titre de l'étape venait s'y coller.
   L'écart est porté par les étapes (elles précèdent aussi la carte « En
   ligne » de la confirmation), 36 px, 26 px sur téléphone. */
.hn-tunnel__centre > .hn-etapes { margin-bottom: 36px; }
@media (max-width: 760px) { .hn-tunnel__centre > .hn-etapes { margin-bottom: 26px; } }

.hn-tunnel__titre {
  font-size:30px; font-weight: 700; letter-spacing: -.8px; margin-bottom: 10px;
}
.hn-tunnel__sous {
  margin: 0 0 28px; font-size:16px; line-height: 1.7;
  color: var(--hn-gris); max-width: 640px;
}
.hn-tunnel__rassure {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px;
  font-size:14px; color: var(--hn-gris-2);
}
.hn-tunnel__rassure span { display: inline-flex; align-items: center; gap: 8px; }
.hn-tunnel__rassure .ico { color: var(--hn-vert); }

@media (max-width: 760px) {
  .hn-tunnel__top { padding: 0 16px; }
  .hn-tunnel__corps { padding: 22px 16px 44px; }
  .hn-tunnel__titre { font-size:24px; }
}

/* ════════════════════════════════════════════════════════════════════
   CORRECTIFS DE SPÉCIFICITÉ — à lire avant de toucher aux couleurs

   ⚠️  `body.hn a { color: … }` ÉCRASAIT TOUS LES COMPOSANTS-LIENS.

       `body.hn a` pèse (0,1,2) ; une classe seule comme `.hn-btn--mag` ou
       `.hn-nav__lien` pèse (0,1,0). La règle générique gagnait donc
       systématiquement, et le résultat se voyait partout :

         · les entrées de navigation s'affichaient en magenta au lieu de
           l'encre — toute la barre latérale était rose ;
         · un `<a class="hn-btn hn-btn--mag">` avait un texte magenta SUR
           fond magenta : le bouton paraissait vide. « Voir mes offres »,
           « Convertir une offre », « Nous écrire » étaient invisibles,
           alors que les `<button>` de même classe s'affichaient bien —
           d'où l'impression d'un bug aléatoire ;
         · les titres des cartes sombres (Tools box) passaient en magenta.

       Le correctif inverse la charge : un lien n'hérite plus d'aucune
       couleur par défaut, et seuls les liens NUS — ceux d'un paragraphe,
       qui n'ont pas de classe — reçoivent le magenta.
   ════════════════════════════════════════════════════════════════════ */

/*
  ⚠️  `:where()` PLUTÔT QU'UN SÉLECTEUR NORMAL — SA SPÉCIFICITÉ EST NULLE.

      `body.hn a` pèse (0,1,2) : plus qu'une classe seule. Même réécrit en
      `color: inherit`, il aurait continué d'écraser `.hn-lien-fort`,
      `.hn-btn--mag` ou `.hn-nav__lien`. Enveloppé dans `:where()`, le
      sélecteur compte pour zéro : il bat le style par défaut du navigateur
      — c'est tout ce qu'on lui demande — et cède devant la moindre classe.
*/
:where(body.hn a) { color: inherit; }
:where(body.hn a:not([class])) { color: var(--hn-mag); }
:where(body.hn a:not([class]):hover) { color: var(--hn-mag-fonce); }

/* ⚠️  LES MODIFICATEURS DE GRILLE N'ÉTAIENT JAMAIS DES GRILLES.

       `.hn-2col` porte `display: grid` ; ses variantes ne portaient que
       `grid-template-columns`. Or les gabarits les emploient SEULES
       (`class="hn-2col--msg"`), sans `.hn-2col` : la propriété n'avait
       aucun support, et quatre écrans — tableau de bord, offres
       disponibles, fiche de mandat, messagerie — empilaient leurs deux
       colonnes sur toute la largeur au lieu de les poser côte à côte. */
.hn-2col--large, .hn-2col--filtres, .hn-2col--msg, .hn-2col--dash {
  display: grid; align-items: start;

  /* ⚠️  LA GOUTTIÈRE AUSSI ÉTAIT RESTÉE SUR `.hn-2col` SEULE.

         Les variantes héritaient des colonnes mais pas de l'espacement :
         les deux blocs se touchaient. Sur « Offres disponibles », le
         panneau de filtres collait aux cartes d'offres — on ne voyait plus
         où l'un finissait et où l'autre commençait. */
  gap: 22px;
}

/* ════════════════════════════════════════════════════════════════════
   CARTE D'OFFRE — « Mes offres » et « Offres disponibles »

   ⚠️  LE TITRE CUMULAIT DEUX CLASSES QUI SE CONTREDISENT.

       `class="hn-profil__nom hn-carte__titre"` demande 26 px ET 17 px.
       Les deux pèsent (0,1,0) : c'est l'ORDRE dans la feuille qui
       tranchait — `.hn-profil__nom`, déclarée plus bas, gagnait. Le titre
       d'une carte de liste s'affichait donc à la taille d'un titre de
       fiche détaillée, deux fois trop gros.

       Empiler deux classes de typographie ne se voit pas à la lecture du
       gabarit et se règle « au hasard » côté CSS. D'où un bloc dédié : la
       carte d'offre a sa propre échelle, elle ne l'emprunte plus.

   ⚠️  AUCUN ÉLÉMENT DE LA CARTE N'AVAIT DE MARGE.

       `body.hn h2` pose `margin: 0`, `.hn-texte` aussi, `.hn-entre` n'en
       a pas : badges, titre, référence, description et faits se
       touchaient. La référence paraissait « collée » sous le titre parce
       qu'elle l'était — 3 px les séparaient.
   ════════════════════════════════════════════════════════════════════ */

.hn-offre__tete { margin-bottom: 18px; }

.hn-offre__titre {
  display: block; margin: 0;
  font-size:21px; font-weight: 700;
  letter-spacing: -.5px; line-height: 1.3;
}
a.hn-offre__titre:hover { color: var(--hn-mag-fonce); }

.hn-offre__meta {
  margin-top: 7px;
  font-size:14px; line-height: 1.5; color: var(--hn-gris-2);
}

.hn-offre__resume {
  margin: 15px 0 0;
  font-size:15px; line-height: 1.65; color: var(--hn-gris);
  max-width: 760px;
}

.hn-offre__faits { margin-top: 20px; }
.hn-offre__actions { margin-top: 20px; }

@media (max-width: 760px) { .hn-offre__titre { font-size:19px; } }

/* ── Sélecteur de langue ─────────────────────────────────────────────
   ⚠️  UN `<details>`, DONC SANS JAVASCRIPT.

       Un menu construit en JS ne s'ouvre pas si le script échoue. Ici le
       navigateur s'en charge. Contrepartie assumée : il ne se referme pas
       au clic à côté — un clic sur le déclencheur suffit. */

/* ── Carte de contexte : nom et rôle sur deux lignes ─────────────────
   ⚠️  UN `<span>` RESTE `inline` : les deux se suivaient sur la même
       ligne, « mirtillo Espace entreprise » d'un seul tenant. C'est le
       même oubli que pour le pouce de l'interrupteur. */
.hn-mini__n, .hn-mini__d { display: block; }
.hn-fait__v, .hn-fait__l { display: block; }

/* ── Bandeau d'information du tableau de bord ────────────────────────
   Il remplace l'encart permanent de la barre latérale : lu une fois, à
   l'endroit où l'on cherche ce qui bloque. */
.hn-bandeau {
  display: flex; align-items: flex-start; gap: 18px;
  background: linear-gradient(112deg, #FFF6E2 0%, #FBF5FA 100%);
  border: 1px solid #F0DFBC; border-radius: var(--hn-r-carte);
  padding: 22px 26px;
}
.hn-bandeau__ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--hn-blanc); color: var(--hn-orange);
  display: flex; align-items: center; justify-content: center; font-size:19px;
  box-shadow: 0 2px 8px rgba(138, 90, 0, .12);
}
.hn-bandeau__txt { flex: 1; min-width: 0; }
.hn-bandeau__t { font-size:16px; font-weight: 700; margin-bottom: 5px; color: var(--hn-encre); }
.hn-bandeau p { font-size:14.5px; line-height: 1.6; color: var(--hn-encre-2); max-width: 760px; }
.hn-bandeau__actions { flex: none; }

@media (max-width: 760px) {
  .hn-bandeau { flex-direction: column; gap: 14px; padding: 20px; }
}

/* ── Boîte à outils : masquée par défaut ─────────────────────────────
   ⚠️  MASQUÉE EN CSS, PLUS ABSENTE DU HTML.

       Le tiroir n'était rendu que si `?outils=1` : l'ouvrir imposait un
       aller-retour serveur complet, avec tous les appels API de l'écran,
       pour un panneau sans aucune donnée dynamique. Il est désormais
       toujours présent et la bascule est instantanée. */
.hn-tools { display: none; }
.hn-shell--outils .hn-tools { display: flex; }

/* ── Curseur de seuil ────────────────────────────────────────────────
   ⚠️  `accent-color` PLUTÔT QU'UN HABILLAGE COMPLET.

       Repeindre un `<input type="range">` demande de remplacer piste et
       poignée sur trois moteurs (`::-webkit-slider-thumb`,
       `::-moz-range-thumb`…) — et sur WebKit, le remplissage à gauche de la
       poignée n'existe pas : il faudrait un dégradé dont la position dépend
       de la valeur, donc un `style` en ligne, que la CSP interdit.

       `accent-color` donne ce remplissage nativement, aux couleurs de
       l'application, sur les trois moteurs. Le rendu reste celui du
       système : c'est le prix d'un composant qui fonctionne partout, y
       compris au clavier et avec les technologies d'assistance. */
.hn-curseur {
  width: 100%; margin: 4px 0 6px;
  accent-color: var(--hn-mag);
  cursor: pointer;
}
.hn-curseur:focus-visible { outline: 2px solid var(--hn-mag); outline-offset: 4px; border-radius: 4px; }

.hn-curseur__tete {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.hn-curseur__tete .hn-label { margin-bottom: 0; }

.hn-curseur__valeur {
  font-size: 14px; font-weight: 700; color: var(--hn-mag-fonce);
  background: var(--hn-mag-clair); border-radius: var(--hn-r-pilule);
  padding: 3px 10px; white-space: nowrap;
}

.hn-curseur__bornes {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--hn-gris-3);
}

/* ── Panneau de filtres repliable ────────────────────────────────────
   ⚠️  REPLIÉ SEULEMENT LÀ OÙ IL GÊNE.

       Sous 1180 px, `.hn-2col--filtres` passe en une colonne : le panneau
       occupe alors tout le premier écran, et il faut le faire défiler en
       entier avant d'atteindre la première offre — à chaque visite. Au
       -dessus, il est à gauche des résultats et n'encombre rien : il reste
       donc toujours ouvert, et son en-tête cesse d'être cliquable. */

/* ⚠️  `position: relative` : la case est en absolu, elle doit se caler sur
       le panneau et non sur le premier ancêtre positionné — le corps de la
       page, ce qui allongerait la zone défilable de quelques pixels. */
.hn-filtres { position: relative; }

.hn-filtres__bascule { position: absolute; opacity: 0; width: 0; height: 0; }

.hn-filtres__titre { display: flex; align-items: center; gap: 10px; }
.hn-filtres__chev { display: none; color: var(--hn-gris-4); font-size: 14px; }

/* Grand écran : rien à replier, l'en-tête n'est pas un bouton. */
.hn-filtres__tete { cursor: default; }

@media (max-width: 1180px) {
  .hn-filtres__tete { cursor: pointer; }
  .hn-filtres__tete:hover { background: var(--hn-brume); }
  .hn-filtres__chev { display: block; transition: transform .18s ease; }

  .hn-filtres__corps { display: none; }
  .hn-filtres__bascule:checked ~ .hn-filtres__corps { display: flex; }
  .hn-filtres__bascule:checked ~ .hn-filtres__tete .hn-filtres__chev { transform: rotate(180deg); }

  /* ⚠️  L'ANNEAU DE FOCUS EST PORTÉ PAR L'EN-TÊTE, PAS PAR LA CASE.
         Celle-ci est réduite à zéro pixel : son contour serait invisible, et
         la navigation au clavier se ferait à l'aveugle. */
  .hn-filtres__bascule:focus-visible ~ .hn-filtres__tete {
    outline: 2px solid var(--hn-mag); outline-offset: -2px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   BULLE DE MESSAGERIE — en bas à droite

   ⚠️  ELLE REMPLACE LA CLOCHE DU BANDEAU.

       Celle-ci ne menait qu'à `/app/messages` : un lien de navigation
       déguisé en centre de notifications, avec un compteur qui additionnait
       messages non lus et candidatures en attente — deux choses sans
       rapport, dans un chiffre qu'on ne pouvait pas interpréter.

   ⚠️  LE PANNEAU NE BLOQUE PAS L'ÉCRAN.

       Ce n'est pas une modale : on répond à un cabinet en gardant l'offre
       sous les yeux. C'est ce que l'écran complet ne permet pas, et toute
       la raison d'être de cette bulle.
   ════════════════════════════════════════════════════════════════════ */

/*
  ⚠️  `hidden` DOIT L'EMPORTER SUR NOS RÈGLES `display`.

      L'attribut `hidden` n'est qu'un `display: none` posé par la feuille du
      NAVIGATEUR — la plus faible de toutes. La moindre règle d'auteur qui
      fixe un `display` l'annule : `.hn-bulle__panneau { display: flex }`
      suffisait à rendre le panneau visible en permanence.

      Résultat : la bulle s'ouvrait toute seule au chargement, le bouton de
      fermeture posait bien `hidden` mais rien ne se passait, et le bouton
      « retour » comme le champ d'envoi s'affichaient sur la liste des
      discussions, où ils n'ont rien à faire.

      C'est l'un des rares cas où `!important` est le bon outil : on
      restaure le comportement attendu d'un attribut standard, on n'impose
      pas une préférence.
*/
body.hn [hidden] { display: none !important; }

.hn-bulle { position: fixed; right: 22px; bottom: 22px; z-index: 70; }

.hn-bulle__bouton {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hn-mag); color: #fff; font-size: 23px;
  box-shadow: 0 8px 26px rgba(122, 44, 110, .38);
  transition: transform .15s, background .15s;
}
.hn-bulle__bouton:hover { background: var(--hn-mag-fonce); color: #fff; transform: translateY(-2px); }
.hn-bulle.est-ouvert .hn-bulle__bouton { background: var(--hn-navy); }

.hn-bulle__n {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--hn-navy); color: #fff;
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--hn-blanc);
}

.hn-bulle__panneau {
  position: absolute; right: 0; bottom: 70px;
  width: min(380px, calc(100vw - 44px)); height: min(520px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hn-blanc); border: 1px solid var(--hn-trait);
  border-radius: 18px; box-shadow: 0 22px 60px rgba(34, 34, 59, .22);
}

.hn-bulle__tete {
  flex: none; display: flex; align-items: center; gap: 11px;
  padding: 15px 16px; border-bottom: 1px solid var(--hn-trait-2);
}
.hn-bulle__titre { flex: 1; min-width: 0; }
.hn-bulle__t {
  display: block; font-size: 15.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hn-bulle__s {
  display: block; font-size: 12.5px; color: var(--hn-gris-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hn-bulle__rond {
  flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0;
  cursor: pointer; background: var(--hn-bg); color: var(--hn-encre-2);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.hn-bulle__rond:hover { background: var(--hn-trait); }

.hn-bulle__corps { flex: 1; min-height: 0; overflow-y: auto; }
.hn-bulle__corps--fil { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.hn-bulle__etat { padding: 26px 20px; text-align: center; font-size: 14px; color: var(--hn-gris-2); }

.hn-bulle__vide { padding: 34px 24px; text-align: center; }
.hn-bulle__vide-t { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.hn-bulle__vide p { font-size: 13.5px; line-height: 1.6; color: var(--hn-gris-2); }

/* ── Liste des discussions ─────────────────────────────────────── */

.hn-bulle__fil {
  width: 100%; border: 0; border-bottom: 1px solid var(--hn-trait-3);
  background: transparent; cursor: pointer; text-align: left; font: inherit;
  padding: 13px 16px; display: flex; align-items: flex-start; gap: 11px;
}
.hn-bulle__fil:hover { background: var(--hn-brume); }
.hn-bulle__fil-c { flex: 1; min-width: 0; }
.hn-bulle__fil-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hn-bulle__fil-nom { font-size: 14px; font-weight: 700; color: var(--hn-encre); }
.hn-bulle__fil-h { flex: none; font-size: 11.5px; color: var(--hn-gris-4); }
.hn-bulle__fil-objet { display: block; font-size: 12.5px; color: var(--hn-gris-2); margin-top: 1px; }
.hn-bulle__fil-extrait {
  display: block; margin-top: 4px; font-size: 13px; color: var(--hn-gris);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hn-bulle__point {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hn-mag); margin-top: 7px;
}

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

.hn-bulle__msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.hn-bulle__msg--moi { align-self: flex-end; align-items: flex-end; }
.hn-bulle__bulle {
  background: var(--hn-trait-3); color: var(--hn-encre);
  border-radius: 14px; padding: 11px 14px;
  font-size: 14px; line-height: 1.55; word-break: break-word;
}
.hn-bulle__msg--moi .hn-bulle__bulle { background: var(--hn-mag-clair); }
.hn-bulle__msg-h { font-size: 11.5px; color: var(--hn-gris-4); margin-top: 4px; }

/* ⚠️  L'ÉTAT D'ENVOI SE VOIT, MAIS NE FAIT PAS DISPARAÎTRE LE TEXTE.
       Un message estompé puis marqué « non envoyé » garde ce qu'on a écrit
       sous les yeux — le texte est aussi rendu au champ. */
.hn-bulle__msg--envoi { opacity: .55; }
.hn-bulle__msg--echec .hn-bulle__bulle { background: var(--hn-rouge-pale); }
.hn-bulle__msg--echec .hn-bulle__msg-h { color: var(--hn-rouge); font-weight: 600; }

.hn-bulle__pied {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border-top: 1px solid var(--hn-trait-2);
}
.hn-bulle__pied .hn-input { border-radius: var(--hn-r-pilule); padding: 10px 14px; font-size: 14px; }

/* ⚠️  SUR MOBILE, LE PANNEAU PREND L'ÉCRAN.
       380 px de large sur un téléphone de 380 px laisserait deux pixels de
       marge de chaque côté — autant occuper la place proprement. */
@media (max-width: 560px) {
  .hn-bulle { right: 16px; bottom: 16px; }
  .hn-bulle__panneau {
    position: fixed; right: 12px; left: 12px; bottom: 84px;
    width: auto; height: min(70vh, 520px);
  }
}

@media print { .hn-bulle { display: none; } }

/* ── Carte d'identité : logo et envoi ────────────────────────────────
   ⚠️  LE LOGO REMPLACE L'INITIALE, IL NE S'AJOUTE PAS À CÔTÉ.

       Afficher les deux laisserait croire à deux identités. L'initiale
       n'est qu'un repli, et disparaît dès qu'une image existe. */
.hn-identite { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }

.hn-identite__visuel {
  flex: none; width: 84px; height: 84px; border-radius: 20px; overflow: hidden;
  background: var(--hn-lilas); border: 1px solid var(--hn-trait);
  display: flex; align-items: center; justify-content: center;
}
/* ⚠️  `object-fit: contain` : un logo n'est ni carré ni recadrable. Avec
       `cover`, une bannière large se retrouverait rognée sur son milieu —
       souvent l'endroit vide entre le symbole et le nom. */
.hn-identite__logo { width: 100%; height: 100%; object-fit: contain; background: var(--hn-blanc); }
.hn-identite__initiale { font-size: 30px; font-weight: 700; color: #4A1844; }

.hn-identite__txt { flex: 1; min-width: 240px; }

.hn-identite__envoi {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.hn-identite__choix {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px dashed var(--hn-tiret); border-radius: var(--hn-r-pilule);
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--hn-encre-2);
}
.hn-identite__choix:hover { border-color: var(--hn-mag); background: var(--hn-mag-rose); }
.hn-identite__choix .ico { color: var(--hn-mag); }
/*
  ⚠️  LE CHAMP EST MASQUÉ PAR `clip`, PAS RÉDUIT À ZÉRO PIXEL.

      Un contrôle de taille nulle n'est pas « focusable » au sens du
      navigateur : il refuse alors de soumettre un formulaire qui le
      contient dès qu'une validation échoue, sans rien afficher. `clip` le
      rend invisible tout en lui laissant une existence géométrique — il
      reçoit le focus au clavier, et la validation peut s'y accrocher.

      La classe `.hn-sr` fait déjà exactement cela : c'est elle qu'on
      emploie sur le champ.
*/
.hn-identite__choix { position: relative; }

/* ════════════════════════════════════════════════════════════════════
   ÉDITEUR RICHE — habillage pour l'espace connecté

   ⚠️  `js/app.js` EST PARTAGÉ, SES STYLES NE L'ÉTAIENT PAS.

       Le script transforme tout `textarea[data-riche]` en éditeur, quel que
       soit l'univers. Mais ses classes (`.rt`, `.rt__barre`, `.rt__bouton`,
       `.rt__surface`) n'existaient que dans `backoffice.css` — que l'espace
       connecté ne charge pas, depuis qu'il a sa propre feuille.

       Résultat : l'éditeur fonctionnait parfaitement, sans le moindre style.
       La barre d'outils tombait sur les boutons gris par défaut du
       navigateur, et la surface s'affichait comme un grand rectangle nu.
       Un composant qui marche mais qu'on croit cassé.

   ⚠️  ON NE CHARGE PAS `backoffice.css` POUR AUTANT.

       Ce serait rouvrir exactement le conflit de variables qu'on a éliminé
       au départ : deux jeux de jetons concurrents, et le dernier chargé qui
       gagne. Les règles sont donc réécrites ici, avec les jetons Améthyste.
   ════════════════════════════════════════════════════════════════════ */

.hn .rt {
  border: 1px solid var(--hn-bord); border-radius: var(--hn-r-champ);
  overflow: hidden; background: var(--hn-blanc);
}

/* ⚠️  LE `<textarea>` D'ORIGINE RESTE DANS LE DOM, MASQUÉ.
       C'est LUI qui part au serveur : le script y recopie le contenu à
       chaque frappe. Le retirer aurait vidé le champ à l'envoi. */
.hn .rt__source { display: none; }

.hn .rt__barre {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 7px;
  background: var(--hn-brume); border-bottom: 1px solid var(--hn-trait-2);
}

.hn .rt__bouton {
  min-width: 32px; height: 30px; padding: 0 9px;
  border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--hn-gris); transition: background .12s, color .12s;
}
.hn .rt__bouton:hover { background: var(--hn-blanc); color: var(--hn-mag-fonce); }
.hn .rt__bouton:focus-visible { outline: 2px solid var(--hn-mag); outline-offset: -2px; }
.hn .rt__bouton--est-gras { font-weight: 800; }
.hn .rt__bouton--est-italique { font-style: italic; }

/* ⚠️  LA SURFACE REPREND LA TYPOGRAPHIE DU CHAMP QU'ELLE REMPLACE.
       Écrire dans une police ou un interlignage différents de ceux du reste
       du formulaire fait mal juger la longueur de ce qu'on rédige. */
.hn .rt__surface {
  min-height: 220px; max-height: 60vh; overflow-y: auto;
  padding: 16px 18px;
  font-size: 15px; line-height: 1.7; color: var(--hn-encre);
}
.hn .rt__surface:focus { outline: 0; box-shadow: inset 0 0 0 2px rgba(122, 44, 110, .22); }

.hn .rt__surface h2 { font-size: 19px; margin: 20px 0 9px; }
.hn .rt__surface h3 { font-size: 17px; margin: 16px 0 7px; }
.hn .rt__surface p { margin: 0 0 13px; }
.hn .rt__surface ul, .hn .rt__surface ol { margin: 0 0 13px; padding-left: 22px; }
.hn .rt__surface li { margin-bottom: 5px; }
.hn .rt__surface blockquote {
  margin: 0 0 13px; padding: 8px 16px;
  border-left: 3px solid var(--hn-mag); color: var(--hn-gris); font-style: italic;
}
.hn .rt__surface a { color: var(--hn-mag); text-decoration: underline; }
.hn .rt__surface--court { min-height: 120px; }

/* ⚠️  UN INDICE QUAND LA SURFACE EST VIDE.

       Un `contenteditable` n'a pas de `placeholder` : vide, c'est un grand
       rectangle blanc dont rien ne dit qu'on peut y écrire. */
.hn .rt__surface:empty::before {
  content: attr(data-vide);
  color: var(--hn-gris-4);
}

/* Une pile d'interrupteurs — même gouttière que les champs d'un formulaire. */
.hn-switchs { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

/* ── Pied de barre : l'identité mène au compte ────────────────────────
   ⚠️  LA MARGE NÉGATIVE COMPENSE LE PADDING.

       Le lien a besoin d'un padding pour que sa zone de survol entoure
       l'avatar et le texte. Sans `margin: -6px`, ces 6 px décaleraient tout
       le bloc vers l'intérieur et le pied ne serait plus aligné sur le reste
       de la barre. */

/* ── Sortie vers le site public ──────────────────────────────────────
   ⚠️  SÉPARÉE DES GROUPES DE NAVIGATION.

       Ce n'est pas un écran de l'espace mais la porte pour en sortir : un
       filet la détache du reste, et sa teinte plus sobre évite qu'on la
       prenne pour une destination de travail. */

/* ── Liens vers les produits voisins ─────────────────────────────────
   ⚠️  UNE TEINTE PAR PRODUIT, DISCRÈTE.

       Ils partagent le style sobre de la sortie vers le site vitrine : ce
       ne sont pas des destinations de travail. Seule l'icône reprend la
       couleur du produit, assez pour le reconnaître d'un coup d'œil sans
       attirer le clic. */

/* Le reCAPTCHA de la dernière étape du tunnel de publication.
   ⚠️  Le widget Google a une largeur fixe (302 px) qu'il ne négocie pas :
       sur un téléphone étroit il déborde et fait défiler toute la page de
       côté. On le réduit à l'échelle plutôt que de le rogner — rogner
       cacherait la case à cocher, seule chose à faire dans ce bloc. */
.hn-form-captcha { margin-top: 22px; }
@media (max-width: 380px) {
  .hn-form-captcha .g-recaptcha { transform: scale(.86); transform-origin: 0 0; height: 66px; }
}

/* ── Tiroir « Diffusion » de la barre ───────────────────────────────
   ⚠️  IL REPREND `.hn-nav__lien` POUR SON EN-TÊTE.
       Un élément de la même colonne qui se dessinerait autrement ferait
       douter : est-ce un lien, autre chose ? Il porte les deux classes —
       l'apparence de ses voisins, le comportement d'un interrupteur. */

/* ── Menu du bloc identité ──────────────────────────────────────────
   ⚠️  IL S'OUVRE VERS LE HAUT — SEULE POSITION POSSIBLE.
       Le bloc est collé au bas de la barre : un panneau vers le bas
       sortirait de la fenêtre. */

/* ── Barre d'actions d'écran ────────────────────────────────────────
   ⚠️  LES FILTRES À GAUCHE, L'ACTION À DROITE.
       « Proposer un candidat » est une action, pas un filtre : mise dans le
       même flux que les pilules, on la cliquerait en croyant filtrer. */
.hn-barre-actions {
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.hn-barre-actions .hn-pilules { margin:0; }

/* ── Info-bulles de la barre réduite ────────────────────────────────
   ⚠️  RÉDUITE, LA BARRE N'EST QU'UNE COLONNE D'ICÔNES.

       Neuf pictogrammes sans un mot : on reconnaît le tableau de bord et la
       messagerie, on hésite sur le reste, et l'on finit par déplier à chaque
       fois — ce qui annule l'intérêt du repli. L'attribut `title` du
       navigateur existait déjà, mais il met une seconde à venir et s'affiche
       en gris système, sous le curseur, souvent par-dessus l'icône voisine.

   ⚠️  LA BULLE REMPLACE `title`, ELLE NE S'Y AJOUTE PAS.

       Les deux ensemble donnent deux étiquettes superposées à un tiers de
       seconde d'intervalle. C'est le script qui déplace l'attribut vers
       `data-bulle` quand la barre se réduit, et le remet quand elle
       s'élargit — voir `public/js/app.js`. */

/* ── Mur de maintenance ─────────────────────────────────────────────
   ⚠️  UNE PAGE CENTRÉE, SANS COQUILLE.

       Elle est servie avec `layouts/auth`, celui de la connexion : pas de
       barre latérale dont tous les liens mèneraient au même mur, pas de
       bandeau d'outils inutilisables. Deux actions seulement — sortir vers
       le site public, ou se déconnecter. */
.hn-maintenance {
  max-width: 520px; margin: 0 auto; padding: 48px 24px; text-align: center;
}
.hn-maintenance__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; background: var(--hn-mag-clair); color: var(--hn-mag-fonce);
}
.hn-maintenance__ico svg { width: 30px; height: 30px; }
.hn-maintenance h1 { font-size: 24px; margin: 0 0 14px; color: var(--hn-encre); }
.hn-maintenance__texte { font-size: 15px; line-height: 1.65; color: var(--hn-gris); margin: 0 0 18px; }

.hn-maintenance__retour {
  display: inline-block; margin: 0 0 26px; padding: 9px 16px;
  border-radius: 10px; background: var(--hn-brume);
  font-size: 13.5px; color: var(--hn-encre-2);
}

.hn-maintenance__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
}
.hn-maintenance__actions form { margin: 0; }

/*
  ⚠️  LE BANDEAU N'EXISTE QUE POUR LES EXCEPTIONS.

      Quelqu'un qui traverse la maintenance voit l'application normale et
      croit l'interruption levée. Sans ce rappel permanent, on oublie que
      les autres, eux, sont dehors — et la maintenance dure un jour de plus
      que prévu.
*/
.hn-maintenance-bandeau {
  position: sticky; top: 0; z-index: 200;
  padding: 9px 18px; text-align: center;
  background: var(--hn-mag-fonce); color: var(--hn-blanc);
  font-size: 13px; font-weight: 600;
}
.hn-maintenance-bandeau a { color: var(--hn-blanc); text-decoration: underline; }

/* ── Barre réduite : ce que le CSS doit masquer ─────────────────────
   ⚠️  CES RÈGLES REMPLACENT UN RENDU CONDITIONNEL CÔTÉ SERVEUR.

       La barre décidait autrefois QUOI RENDRE selon son état. Depuis
       qu'elle se replie sans recharger, le navigateur ne peut que changer
       une classe : le HTML, lui, reste celui du mode large. Tous ces
       éléments restaient donc dans le document, comprimés dans 72 pixels et
       superposés — c'est ce qu'on voyait à l'écran.

       Le serveur rend maintenant les deux variantes ; ces règles choisissent
       laquelle est visible. */

/* Indicateur de longueur (SIRET, TVA) */
.hn-compteur { display:inline-block; margin-left:8px; padding:1px 9px; border-radius:100px; font-size:12px; font-weight:700; background:var(--hn-brume); color:var(--hn-gris); }
.hn-compteur:empty { display:none; }
.hn-compteur.est-court { background:#FFF1D6; color:#8A5A00; }
.hn-compteur.est-trop { background:#FDE2E2; color:#B42318; }
.hn-compteur.est-ok { background:#DDF5E4; color:#0E7A33; }
.hn-compteur.est-ok::after { content:" ✓"; }

/* ══════════════════════════════════════════════════════════════════════
   ANNONCE WHILERESUME — le formulaire de Whileresume (`/offre/annonce`)
   Même disposition : sections numérotées, grilles 3/4/2 colonnes, listes,
   interrupteurs « Autre ville / secteur », barre d'action collante.
   Couleurs de Whileresume : l'annonce est publiée là-bas.
   ══════════════════════════════════════════════════════════════════════ */
.hn-wrf { --wrf-violet:#7A2C6E; --wrf-violet-dark:#5E1F55; --wrf-ink:#1E1B2E; --wrf-muted:#6B7280;
  --wrf-muted-2:#9CA3AF; --wrf-line:#EEF1F7; --wrf-line-2:#E3E7EF; --wrf-danger:#EF4444; }
.hn-wrf__panel { background:#FDFBF7; border:1px solid var(--wrf-line); border-radius:20px; padding:32px; }
.hn-wrf__h1 { margin:0 0 8px; font-size:clamp(24px,4vw,34px); font-weight:700; line-height:1.1;
  letter-spacing:-.035em; color:var(--wrf-ink); }
.hn-wrf__h1 em { font-style:italic; color:var(--wrf-violet-dark); }
.hn-wrf__lede { margin:0 0 28px; font-size:14.5px; line-height:1.55; color:var(--wrf-muted); }
.hn-wrf .hn-note { margin-bottom:16px; }
.hn-wrf__sec { background:#fff; border:1.5px solid #EEE7DA; border-radius:16px; padding:24px; margin-bottom:16px; }
.hn-wrf__sec-head { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.hn-wrf__sec-head h2 { margin:0; font-size:16px; font-weight:700; color:var(--wrf-ink); }
.hn-wrf__num { width:26px; height:26px; flex:none; border-radius:8px; background:#EEE7DA; color:var(--wrf-muted);
  font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.hn-wrf__num.is-req { background:var(--wrf-violet); color:#fff; }
.hn-wrf__dot { color:var(--wrf-violet); }
.hn-wrf__grid { display:grid; gap:8px 18px; }
.hn-wrf__grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.hn-wrf__grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.hn-wrf__grid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hn-wrf__field { margin-bottom:16px; min-width:0; }
.hn-wrf__label { display:block; font-size:12.5px; font-weight:600; color:var(--wrf-ink); margin-bottom:7px; }
.hn-wrf__input, .hn-wrf__select, .hn-wrf__textarea { width:100%; padding:13px 14px; font:inherit; font-size:14px;
  color:var(--wrf-ink); background:#FAFBFD; border:1px solid var(--wrf-line-2); border-radius:11px; outline:none;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.hn-wrf__textarea { resize:vertical; min-height:96px; line-height:1.5; }
.hn-wrf__input::placeholder, .hn-wrf__textarea::placeholder { color:var(--wrf-muted-2); }
.hn-wrf__input:focus, .hn-wrf__select:focus, .hn-wrf__textarea:focus { border-color:var(--wrf-violet); background:#fff;
  box-shadow:0 0 0 3px rgba(156,62,142,.12); }
.hn-wrf__select { appearance:none; cursor:pointer; padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center; }
.hn-wrf__select:disabled { opacity:.5; cursor:not-allowed; }
.hn-wrf .is-error { border-color:var(--wrf-danger); }
.hn-wrf__error { margin-top:6px; font-size:12.5px; font-weight:600; color:var(--wrf-danger); }
.hn-wrf__hint { margin-top:6px; font-size:12px; color:var(--wrf-muted); }
.hn-wrf__intro { margin:-6px 0 16px; }
.hn-wrf__muted { font-weight:400; color:var(--wrf-muted); }
.hn-wrf__libre { margin-top:8px; }
.hn-wrf__libre[hidden] { display:none; }
/* Interrupteur « Autre ville / secteur » */
.hn-wrf__switch { display:flex; align-items:center; gap:10px; margin-top:10px; cursor:pointer; user-select:none; position:relative; }
.hn-wrf__switch input { position:absolute; opacity:0; width:0; height:0; }
.hn-wrf__track { width:36px; height:20px; flex:none; border-radius:999px; background:#D8D2C4; position:relative; transition:background .15s ease; }
.hn-wrf__track::after { content:""; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .15s ease; }
.hn-wrf__switch input:checked + .hn-wrf__track { background:var(--wrf-violet-dark); }
.hn-wrf__switch input:checked + .hn-wrf__track::after { left:19px; }
.hn-wrf__switch input:focus-visible + .hn-wrf__track { outline:2px solid var(--wrf-violet-dark); outline-offset:2px; }
.hn-wrf__switch-label { font-size:13.5px; font-weight:600; color:#2A2438; }
/* Barre d'action collante, comme sur Whileresume */
.hn-wrf__bar { position:sticky; bottom:0; display:flex; align-items:center; justify-content:flex-end; gap:14px;
  padding:14px 18px; background:rgba(251,252,254,.92); backdrop-filter:blur(8px); border:1px solid var(--wrf-line);
  border-radius:14px; z-index:5; }
.hn-wrf__ghost { margin-right:auto; font-size:14px; font-weight:600; color:var(--wrf-muted); text-decoration:none; }
.hn-wrf__ghost:hover { color:var(--wrf-violet-dark); }
.hn-wrf__cta { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--wrf-violet-dark);
  color:#fff; border:0; border-radius:16px; padding:15px 30px; font:inherit; font-size:14.5px; font-weight:700; cursor:pointer;
  box-shadow:0 4px 14px rgba(94,31,85,.3); transition:transform .18s ease, box-shadow .18s ease; }
.hn-wrf__cta:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(94,31,85,.36); }
.hn-wrf__danger { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:16px; }
@media (max-width:900px) {
  .hn-wrf__grid--3, .hn-wrf__grid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .hn-wrf__panel { padding:18px; }
  .hn-wrf__sec { padding:18px; }
  .hn-wrf__grid--2, .hn-wrf__grid--3, .hn-wrf__grid--4 { grid-template-columns:1fr; }
  .hn-wrf__cta { flex:1; }
}

/* ── Carte « Rédiger avec l'IA » (offres publiques, système Whileresume) ── */
.hn-ia-wr { background:#FAF1F8; border:1.5px solid #EDD0E9; border-radius:18px; padding:20px 22px; margin-bottom:18px; }
.hn-ia-wr.est-bloque { background:#FBF8F3; border-color:#EEE7DA; }
.hn-ia-wr__tete { display:flex; align-items:flex-start; gap:14px; flex-wrap:wrap; }
.hn-ia-wr__ico { width:42px; height:42px; flex:none; border-radius:12px; background:#7A2C6E; color:#fff; display:grid; place-items:center; }
.hn-ia-wr.est-bloque .hn-ia-wr__ico { background:#B9AEC9; }
.hn-ia-wr__ico svg { width:19px; height:19px; }
.hn-ia-wr__titres { flex:1; min-width:220px; }
.hn-ia-wr__titre { display:flex; align-items:center; gap:8px; font-size:15px; color:#1E1B2E; margin-bottom:2px; }
.hn-ia-wr__sous { display:block; font-size:13px; color:#6B7280; line-height:1.5; }
.hn-ia-wr__badge { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:3px 8px;
  border-radius:999px; background:#5E1F55; color:#fff; }
.hn-ia-wr__compteur { display:flex; align-items:baseline; gap:4px; flex-wrap:wrap; justify-content:flex-end; min-width:90px; }
.hn-ia-wr__chiffre { font-size:26px; font-weight:800; color:#5E1F55; line-height:1; }
.hn-ia-wr.est-bloque .hn-ia-wr__chiffre { color:#C42348; }
.hn-ia-wr__sur { font-size:14px; font-weight:700; color:#6B7280; }
.hn-ia-wr__legende { width:100%; text-align:right; font-size:11.5px; color:#6B7280; }
.hn-ia-wr__form { margin-top:14px; }
.hn-ia-wr__texte { width:100%; min-height:78px; padding:12px 14px; font:inherit; font-size:14px; line-height:1.5; color:#1E1B2E;
  background:#fff; border:1px solid #EDD0E9; border-radius:12px; resize:vertical; outline:none; }
.hn-ia-wr__texte:focus { border-color:#7A2C6E; box-shadow:0 0 0 3px rgba(156,62,142,.14); }
.hn-ia-wr__pied { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:10px; }
.hn-ia-wr__note { flex:1; min-width:200px; font-size:12.5px; color:#6B7280; }
.hn-ia-wr__btn { display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border:0; border-radius:14px; cursor:pointer;
  background:#5E1F55; color:#fff; font:inherit; font-size:14px; font-weight:700; text-decoration:none;
  box-shadow:0 4px 14px rgba(94,31,85,.28); transition:transform .18s ease, box-shadow .18s ease; }
.hn-ia-wr__btn:hover { transform:translateY(-1px); box-shadow:0 8px 20px rgba(94,31,85,.34); color:#fff; }
.hn-ia-wr__btn svg { width:16px; height:16px; }
.hn-ia-wr__bloc { margin-top:14px; font-size:13.5px; color:#2A2438; line-height:1.55; }
.hn-ia-wr__bloc p { margin:0; }
.hn-ia-wr__actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:12px; }
/* Écran d'attente */
.hn-ia-attente { display:grid; place-items:center; min-height:50vh; }
.hn-ia-attente__carte { max-width:460px; text-align:center; background:#fff; border:1px solid #EEF1F7; border-radius:20px; padding:36px 30px; }
.hn-ia-attente__ico { width:56px; height:56px; border-radius:16px; background:#7A2C6E; color:#fff; display:inline-grid; place-items:center;
  animation:hn-ia-pulse 1.6s ease-in-out infinite; }
.hn-ia-attente__ico svg { width:24px; height:24px; }
.hn-ia-attente__carte h1 { font-size:20px; margin:16px 0 8px; color:#1E1B2E; }
.hn-ia-attente__carte p { font-size:14px; color:#6B7280; line-height:1.55; margin:0; }
.hn-ia-attente__barre { height:6px; border-radius:99px; background:#F6E8F4; overflow:hidden; margin:22px 0; }
.hn-ia-attente__barre span { display:block; height:100%; width:40%; border-radius:99px; background:#7A2C6E; animation:hn-ia-barre 1.4s ease-in-out infinite; }
.hn-ia-attente__actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
@keyframes hn-ia-pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.08); } }
@keyframes hn-ia-barre { 0% { transform:translateX(-100%); } 100% { transform:translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .hn-ia-attente__ico, .hn-ia-attente__barre span { animation:none; } }
/* Fenêtre de confirmation de la rédaction IA */
.hn-ia-modale { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:16px; }
.hn-ia-modale[hidden] { display:none; }
.hn-ia-modale__fond { position:absolute; inset:0; background:rgba(30,27,46,.48); backdrop-filter:blur(3px); animation:hn-ia-fondu .18s ease; }
.hn-ia-modale__boite { position:relative; width:100%; max-width:480px; max-height:calc(100vh - 32px); overflow:auto; background:#fff;
  border-radius:22px; padding:28px 28px 22px; box-shadow:0 24px 60px rgba(30,27,46,.28); animation:hn-ia-monte .22s ease; }
.hn-ia-modale__ico { width:48px; height:48px; border-radius:14px; background:#7A2C6E; color:#fff; display:grid; place-items:center; }
.hn-ia-modale__ico svg { width:22px; height:22px; }
.hn-ia-modale__boite h2 { margin:16px 0 14px; font-size:20px; font-weight:700; letter-spacing:-.02em; color:#1E1B2E; }
.hn-ia-modale__credit { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:14px; background:#FAF1F8; border:1px solid #F2DDEF; }
.hn-ia-modale__credit p { margin:0; font-size:14px; line-height:1.5; color:#2A2438; }
.hn-ia-modale__puce { flex:none; width:28px; height:28px; border-radius:50%; background:#5E1F55; color:#fff; font-weight:800; font-size:14px; display:grid; place-items:center; }
.hn-ia-modale__etapes { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:10px; }
.hn-ia-modale__etapes li { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.5; color:#4B5563; }
.hn-ia-modale__etapes svg { flex:none; width:16px; height:16px; margin-top:2px; color:#7A2C6E; }
.hn-ia-modale__premium { margin:16px 0 0; font-size:13px; color:#6B7280; }
.hn-ia-modale__premium a { color:#5E1F55; font-weight:700; }
.hn-ia-modale__actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; flex-wrap:wrap; margin-top:22px;
  padding-top:18px; border-top:1px solid #EEF1F7; }
.hn-ia-modale__annuler { padding:12px 18px; border:1px solid #E3E7EF; border-radius:14px; background:#fff; color:#2A2438;
  font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.hn-ia-modale__annuler:hover { background:#F8F9FB; }
body.hn-ia-fige { overflow:hidden; }
@keyframes hn-ia-fondu { from { opacity:0; } to { opacity:1; } }
@keyframes hn-ia-monte { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .hn-ia-modale__fond, .hn-ia-modale__boite { animation:none; } }
@media (max-width:520px) { .hn-ia-modale__actions > * { flex:1; justify-content:center; } }
/* 10/11/2026 — la fenêtre suit la rédaction : étapes, chronomètre, crédits.
   `[hidden]` doit l'emporter sur les `display` des blocs de la fenêtre. */
.hn-ia-modale [hidden] { display:none !important; }
.hn-ia-charge { text-align:center; padding:6px 0 2px; }
.hn-ia-charge__anim { width:56px; height:56px; margin:4px auto 0; border-radius:16px; background:#7A2C6E; color:#fff; display:grid; place-items:center;
  animation:hn-ia-pulse 1.4s ease-in-out infinite; }
.hn-ia-charge__anim svg { width:24px; height:24px; }
.hn-ia-charge__anim[data-etat="ok"] { background:#10B981; animation:none; }
.hn-ia-charge__anim[data-etat="echec"] { background:#C42348; animation:none; }
.hn-ia-modale__boite .hn-ia-charge__titre { margin:16px 0 6px; }
.hn-ia-charge__sous { margin:0; font-size:14px; line-height:1.5; color:#6B7280; min-height:1.5em; }
.hn-ia-charge__etapes { list-style:none; margin:18px auto 0; padding:0; display:grid; gap:10px; max-width:320px; text-align:left; }
.hn-ia-charge__etapes li { display:flex; align-items:center; gap:10px; font-size:14px; color:#9CA3AF; }
.hn-ia-charge__etapes li span { flex:none; width:18px; height:18px; border-radius:50%; border:2px solid #E3E7EF; box-sizing:border-box; }
.hn-ia-charge__etapes li[data-etat="encours"] { color:#2A2438; font-weight:600; }
.hn-ia-charge__etapes li[data-etat="encours"] span { border-color:#7A2C6E; border-top-color:transparent; animation:hn-ia-tourne .8s linear infinite; }
.hn-ia-charge__etapes li[data-etat="ok"] { color:#047857; }
.hn-ia-charge__etapes li[data-etat="ok"] span { border-color:#10B981; background:#10B981; box-shadow:inset 0 0 0 3px #fff; }
.hn-ia-charge__etapes li[data-etat="echec"] { color:#C42348; }
.hn-ia-charge__etapes li[data-etat="echec"] span { border-color:#C42348; background:#C42348; box-shadow:inset 0 0 0 3px #fff; }
.hn-ia-charge__infos { margin:16px 0 0; font-size:13px; color:#6B7280; }
.hn-ia-charge__infos strong { color:#5E1F55; }
.hn-ia-charge__erreur { margin:14px 0 0; padding:12px 14px; border-radius:12px; background:#FDECEF; color:#A31C3B; font-size:14px; line-height:1.5; text-align:left; }
@keyframes hn-ia-tourne { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hn-ia-charge__anim, .hn-ia-charge__etapes li span { animation:none !important; } }
/* Éditeur enrichi dans le formulaire d'annonce Whileresume : le style des champs WR. */
.hn .hn-wrf .rt { border:1px solid #E3E7EF; border-radius:11px; background:#FAFBFD; }
.hn .hn-wrf .rt:focus-within { border-color:#7A2C6E; background:#fff; box-shadow:0 0 0 3px rgba(156,62,142,.12); }
.hn .hn-wrf .rt__barre { background:#FAF2F9; border-bottom-color:#F5E6F3; }
.hn .hn-wrf .rt__bouton:hover { color:#5E1F55; }
.hn .hn-wrf .rt__surface { min-height:130px; font-size:14px; line-height:1.6; color:#1E1B2E; }
.hn .hn-wrf .rt__surface:focus { box-shadow:none; }
.hn .hn-wrf .rt__surface a { color:#5E1F55; }
.hn .hn-wrf .rt__surface:empty::before { color:#9CA3AF; }
.hn .hn-wrf .is-error + .rt, .hn .hn-wrf .rt:has(.is-error) { border-color:#EF4444; }
.hn-wrf__second { display:inline-flex; align-items:center; padding:14px 22px; border:1px solid #E0D6C4; border-radius:16px;
  background:#fff; color:#5E1F55; font:inherit; font-size:14.5px; font-weight:700; cursor:pointer; }
.hn-wrf__second:hover { border-color:#7A2C6E; background:#FBF6FB; }
@media (max-width:640px) { .hn-wrf__bar { flex-wrap:wrap; } .hn-wrf__second { flex:1; justify-content:center; } }

/* ── Fenêtre de confirmation du site (`window.hnConfirmer`, js/app.js) ──
   Présente dans chaque feuille chargée avec app.js : la fenêtre doit avoir
   le même aspect dans l'espace connecté, la vitrine et le backoffice. */
.hn-conf { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; padding:16px; font-family:inherit; }
.hn-conf__fond { position:absolute; inset:0; background:rgba(30,27,46,.48); backdrop-filter:blur(3px); animation:hn-conf-fondu .16s ease; }
.hn-conf__boite { position:relative; width:100%; max-width:440px; background:#fff; border-radius:20px; padding:26px 26px 20px;
  box-shadow:0 24px 60px rgba(30,27,46,.28); animation:hn-conf-monte .2s ease; text-align:left; }
.hn-conf__ico { width:44px; height:44px; border-radius:13px; display:grid; place-items:center; font-size:20px; font-weight:800;
  background:#F8EEF7; color:#5E1F55; }
.hn-conf--danger .hn-conf__ico { background:#FDECEF; color:#C42348; }
.hn-conf__titre { margin:14px 0 8px; font-size:19px; font-weight:700; letter-spacing:-.02em; color:#1E1B2E; line-height:1.3; }
.hn-conf__texte { margin:0; font-size:14.5px; line-height:1.55; color:#4B5563; }
.hn-conf__actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:22px; padding-top:16px; border-top:1px solid #EEF1F7; }
.hn-conf__annuler, .hn-conf__ok { padding:11px 18px; border-radius:12px; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.hn-conf__annuler { border:1px solid #E3E7EF; background:#fff; color:#2A2438; }
.hn-conf__annuler:hover { background:#F8F9FB; }
.hn-conf__ok { border:0; background:#5E1F55; color:#fff; box-shadow:0 4px 14px rgba(94,31,85,.28); }
.hn-conf__ok:hover { background:#5F2657; }
.hn-conf--danger .hn-conf__ok { background:#C42348; box-shadow:0 4px 14px rgba(196,35,72,.26); }
.hn-conf--danger .hn-conf__ok:hover { background:#A31C3B; }
.hn-conf__annuler:focus-visible, .hn-conf__ok:focus-visible { outline:2px solid #7A2C6E; outline-offset:2px; }
body.hn-ia-fige { overflow:hidden; }
@keyframes hn-conf-fondu { from { opacity:0; } to { opacity:1; } }
@keyframes hn-conf-monte { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .hn-conf__fond, .hn-conf__boite { animation:none; } }
@media (max-width:480px) { .hn-conf__actions > * { flex:1; } }
/* Fiche d'une annonce publique publiée (lecture seule) */
.hn-wrf__retour { display:inline-block; margin-bottom:14px; font-size:13.5px; font-weight:600; color:#5E1F55; text-decoration:none; }
.hn-wrf__fiche-tete { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap; margin-bottom:18px; }
.hn-wrf__h1--fiche { margin-top:10px; }
.hn-wrf__fiche-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.hn-wrf__fiche-actions form { margin:0; }
.hn-wrf__second { text-decoration:none; }
.hn-wrf__fiche-h2 { margin:0 0 12px; font-size:16px; font-weight:700; color:#1E1B2E; }
.hn-wrf__infos { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px 22px; margin:0; }
.hn-wrf__infos dt { font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#9CA3AF; margin-bottom:4px; }
.hn-wrf__infos dd { margin:0; font-size:14.5px; font-weight:600; color:#1E1B2E; overflow-wrap:anywhere; }
.hn-wrf__html { font-size:14.5px; line-height:1.65; color:#2A2438; }
.hn-wrf__html p { margin:0 0 10px; }
.hn-wrf__html ul, .hn-wrf__html ol { margin:0 0 10px; padding-left:22px; }
.hn-wrf__html a { color:#5E1F55; }
.hn-wrf__tags { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.hn-wrf__tags span { padding:5px 11px; border-radius:999px; background:#F8EEF7; color:#5F2657; font-size:13px; font-weight:600; }
.hn-wrf__tags--doux span { background:#F4F5F7; color:#4B5563; }
/* Texte riche (éditeur, IA) affiché : paragraphes et listes. */
.hn-texte p { margin:0 0 10px; }
.hn-texte p:last-child { margin-bottom:0; }
.hn-texte ul, .hn-texte ol { margin:0 0 10px; padding-left:22px; }
.hn-texte li { margin-bottom:4px; }
/* Échéance + commission à gauche, cadran à droite */
.hn-com-grille { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,320px); gap:28px; align-items:center; }
.hn-com-grille__champs { display:grid; gap:18px; min-width:0; }
.hn-com-grille .hn-cadran { margin:0; }
@media (max-width:900px) { .hn-com-grille { grid-template-columns:minmax(0,1fr); } .hn-com-grille .hn-cadran { margin-top:8px; } }

/* ══ Premium : formules + statut (tableau de bord recruteur, Mon abonnement) ══ */
.hn-prem { display:flex; flex-direction:column; gap:16px; }
.hn-prem__tete .hn-bloc-titre { margin-bottom:4px; }
.hn-prem__sous { margin:0; font-size:14.5px; color:var(--hn-gris-2); }
.hn-prem__grille { align-items:stretch; }
.hn-prem__grille .hn-plan { display:flex; flex-direction:column; }
.hn-prem__grille .hn-plan__feats { flex:1; }
.hn-prem__ici { display:block; text-align:center; padding:11px; border-radius:10px; background:var(--hn-brume); color:var(--hn-gris-2); font-size:14px; font-weight:600; }
.hn-prem__ancien { font-size:17px; text-decoration:line-through; color:var(--hn-navy-txt); }
.hn-prem__ancien[hidden] { display:none; }
.hn-plan--phare .hn-plan__nom .ico { color:var(--hn-mag-vif); }
.hn-prem__form { display:flex; flex-direction:column; gap:10px; }
.hn-prem__devise { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13.5px; color:var(--hn-navy-txt); }
.hn-prem__devise .hn-select { width:auto; min-width:96px; }
.hn-prem__note { margin:0; text-align:center; font-size:12.5px; color:var(--hn-navy-txt); }
.hn-prem-actif__tete { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.hn-prem-actif__tete .hn-bloc-titre { margin:0; }
.hn-prem-actif .hn-faits, .hn-prem-actif + .hn-faits { margin:16px 0; }
.hn-prem-actif__actions { margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
.hn-g-factures { grid-template-columns: 1fr 1.4fr 1fr 1.2fr; }
.hn-tab__entete.hn-g-factures { display:grid; gap:16px; padding:13px 26px; font-size:11.5px; }
.hn-prem-fac__liens { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
@media (max-width: 720px) {
  .hn-g-factures { grid-template-columns: 1fr 1fr; }
  .hn-tab__entete.hn-g-factures { display:none; }
}

/* ══ Favoris (offres, espace recruteur) ══ */
.hn-fav { display:inline-flex; margin:0; }
.hn-fav__btn { display:inline-flex; align-items:center; gap:7px; height:36px; min-width:36px; padding:0 9px; justify-content:center;
  border:1.5px solid var(--hn-trait); border-radius:10px; background:var(--hn-blanc); color:var(--hn-gris); cursor:pointer;
  font:inherit; font-size:13.5px; font-weight:600; transition:color .15s, border-color .15s, background .15s; position:relative; }
.hn-fav__btn:hover { color:#E8A400; border-color:#F5C842; }
.hn-fav__btn .ico { font-size:17px; }
.hn-fav__on { display:none; }
.hn-fav__btn.est-actif { color:#E8A400; border-color:#F5C842; background:#FFF8E1; }
.hn-fav__btn.est-actif .hn-fav__on { display:inline-flex; }
.hn-fav__btn.est-actif .hn-fav__off { display:none; }
.hn-fav__btn[aria-busy="true"] { opacity:.6; pointer-events:none; }
.hn-fav-pousse { flex:1; }
.hn-fav-bloc .hn-carte__titre .ico { color:#E8A400; }
.hn-fav-bloc .hn-carte__tete { display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* ══ Messagerie d'une présentation : verrouillée en attendant l'acceptation ══ */
.hn-conv__verrou { display:flex; gap:14px; align-items:flex-start; margin:0; padding:18px 26px; border-top:1px solid var(--hn-trait); background:var(--hn-brume); }
.hn-conv__verrou-ico { flex:none; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:var(--hn-blanc); border:1.5px solid var(--hn-trait); color:var(--hn-gris-2); font-size:17px; }
.hn-conv__verrou strong { display:block; font-size:14.5px; margin-bottom:3px; }
.hn-conv__verrou p { margin:0; font-size:14px; line-height:1.5; color:var(--hn-gris-2); }

/* ══ Plafond de CV par offre ══ */
.hn-quota__sur { font-size:.6em; font-weight:600; color:var(--hn-gris-2); }
.hn-quota { margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.hn-quota__barre { display:grid; grid-template-columns:repeat(20, 1fr); gap:3px; }
.hn-quota__barre span { height:7px; border-radius:3px; background:var(--hn-trait); }
.hn-quota__barre span.est-plein { background:var(--hn-mag); }
.hn-quota__statuts .ico { font-size:12px; }

/* ══ Présentation : bloc « Mes messages » ══ */
.hn-msgs-ouvert { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:18px 26px; border-top:1px solid var(--hn-trait); }
.hn-msgs-ouvert__ico { color:var(--hn-mag); }
.hn-msgs-ouvert__txt { flex:1; min-width:220px; }
.hn-msgs-ouvert__txt strong { display:block; font-size:14.5px; margin-bottom:3px; }
.hn-msgs-ouvert__txt p { margin:0; font-size:14px; line-height:1.5; color:var(--hn-gris-2); }
.hn-msgs-ouvert__actions { display:flex; gap:8px; flex-wrap:wrap; }
.hn-msgs-anciens { border-top:1px solid var(--hn-trait); }
.hn-msgs-anciens > summary { cursor:pointer; padding:14px 26px; font-size:13.5px; font-weight:600; color:var(--hn-gris-2); }

/* ══ Mes messages : colonne des discussions à côté du fil ══ */
.hn-fils__effacer { display:block; margin-top:8px; font-size:13px; font-weight:600; }
.hn-fils__vide { padding:16px 20px; margin:0; font-size:14px; color:var(--hn-gris-2); }
.hn-2col--msg .hn-fils { max-height:calc(100vh - 160px); overflow-y:auto; align-self:start; position:sticky; top:20px; }
.hn-conv__retour { display:none; }
@media (max-width: 1180px) {
  /* Colonnes empilées : la liste passe sous le fil, le retour réapparaît. */
  .hn-2col--msg > .hn-fils { order:2; position:static; max-height:none; }
  .hn-conv__retour { display:inline-flex; }
}

/* ══ Verrou premium (cabinet : présenter, écrire) ══ */
.hn-verrou-premium { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:16px 18px; border-radius:var(--hn-r-carte); background:var(--hn-mag-clair); }
.hn-verrou-premium__ico { color:var(--hn-mag); }
.hn-verrou-premium__txt { flex:1; min-width:200px; }
.hn-verrou-premium__txt strong { display:block; font-size:14.5px; margin-bottom:2px; }
.hn-verrou-premium__txt p { margin:0; font-size:14px; color:var(--hn-gris-2); }
.hn-conv__pied-verrou { padding:14px 20px; border-top:1px solid var(--hn-trait); }
.hn-msgs-ouvert__actions .hn-verrou-premium { flex:1 1 100%; }

/* ════════════════════════════════════════════════════════════════════
   LE TUNNEL DANS LA COQUILLE DE LA VITRINE — 7.11.0 (19/10/2026)

   `layouts/tunnel.ejs` charge désormais `app.css` (en-tête, logo, pied,
   bandeau cookies) AVANT cette feuille. Le formulaire doit s'afficher
   exactement comme avant : cette section reprend ce que `app.css` change
   en dehors de l'en-tête et du pied.

   ⚠️  L'EN-TÊTE EST LILAS, COMME SUR L'ACCUEIL.

       L'accueil teinte sa barre de la couleur de son hero
       (`body:has(.hero-lilas) .entete`, app.css). Le tunnel reprend la
       même teinte, et son fond part de ce lilas pour rejoindre le gris
       violacé du formulaire : pas de couture sous la barre.

   ⚠️  LES RÈGLES D'ÉLÉMENTS DE `app.css` SONT NEUTRALISÉES PAR `:where()`.

       `h1, h2, h3, h4 { margin: 0 0 .5em }` et `p { margin: 0 0 1em }`
       pèsent (0,0,1) : elles battaient la remise à zéro de cette feuille,
       écrite en `:where()` pour céder devant la moindre classe. On répond
       au même poids — `:where(.hn-tunnel) p` pèse (0,0,1) et vient après —
       sans dépasser une classe : `.hn-tunnel__titre { margin-bottom }`
       continue de s'appliquer.

   ⚠️  LES TAILLES MOBILES DE `app.css` SONT EN `!important`.

       `h1 { font-size: 28px !important }` sous 767 px : sans réponse au
       même niveau, le titre du tunnel perdait ses 24 px de téléphone.
   ════════════════════════════════════════════════════════════════════ */
.hn-coquille .entete {
  background: var(--hn-lilas);
  border-bottom-color: transparent;
}
/* Le menu déroulant garde son fond blanc : teinté, il se confondrait avec
   ce qu'il recouvre (même règle que sur l'accueil). */
.hn-coquille .nav__sous { background: var(--hn-blanc); }

/* L'en-tête, le pied et le bandeau sont dessinés pour un corps de 16 px ;
   le corps de cette feuille est à 15 px. */
.hn-coquille .entete,
.hn-coquille .pied,
.hn-coquille .cookies { font-size: 16px; }

.hn-coquille .hn-tunnel {
  min-height: 0;
  line-height: normal;
  background: linear-gradient(180deg, var(--hn-lilas) 0, var(--hn-bg) 340px);
}
/* Le pied garde son écart : le fond de page, au-dessus, est celui du
   formulaire. */
.hn-coquille .pied { margin-top: 0; }

:where(.hn-tunnel) :is(h1, h2, h3, h4) { margin: 0; line-height: normal; letter-spacing: -.4px; }
:where(.hn-tunnel) p { margin: 0; }

@media (max-width: 767px) {
  .hn-coquille .hn-tunnel__titre { font-size: 30px !important; }
  .hn-coquille .hn-vide h1 { font-size: 30px !important; }
  .hn-coquille .hn-vide h2 { font-size: 22px !important; }
  .hn-coquille .hn-bloc-titre { font-size: 16px !important; }
}
@media (max-width: 760px) {
  .hn-coquille .hn-tunnel__titre { font-size: 24px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   EN-TÊTE ET BARRE — 25/10/2026

   ⚠️  LE BANDEAU À L'IMAGE DE WHILERESUME.

       Titre de l'écran, puis l'espace courant en pastille cliquable (retour
       au tableau de bord), puis les produits voisins — « Espace
       Entreprise ↗ » (Whileresume), « Espace Freelance ↗ » (Whileproject).
       Ils étaient dans la barre latérale, où ils repoussaient l'essai et le
       compte hors de l'écran.

   ⚠️  SOUS 1280 PX, ILS REDESCENDENT DANS LA BARRE.

       Le bandeau n'a plus la place à côté d'un titre long et des outils :
       `.hn-nav__lien--etroit` les y remontre (et dans le tiroir mobile). Un
       seul des deux emplacements est visible à la fois.
   ════════════════════════════════════════════════════════════════════ */

/* ── Barre réduite : le logo minifié, plus le chevron « » » ────────────
   ⚠️  ON NE VOYAIT QU'UN « » » COLLÉ AU BOUTON DE DÉPLIAGE.

       Le logo large disparaît (il ne tient pas dans 78 px) ; le logo réduit
       — le favicon réglé au backoffice, ou /favicon.svg — prend sa place, et
       le bouton de dépliage passe dessous au lieu de s'y coller. */

/* ── Pied de barre : la déconnexion ne sort plus du cadre ──────────────
   ⚠️  LE MENU DU COMPTE PRENAIT `width: 100%`.

       À côté de lui, le bouton de déconnexion n'avait que le reste — rien,
       dès que le nom ou l'adresse étaient un peu longs : l'icône débordait
       à droite, coupée par le bord de la barre. Le menu prend maintenant la
       place LIBRE (`flex: 1`, rétrécissable), le bouton garde la sienne. */

/* ── Titre de l'écran, dans la page (26/10/2026) ──────────────────────
   Il a quitté le bandeau : voir partials/titre_page.ejs. Absent des pages
   qui ont déjà leur bandeau d'accueil (`hn-hero`) ou leur propre <h1>. */
.hn-page__titre {
  margin: 0 0 22px; font-size: 26px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.6px; color: var(--hn-encre);
}
@media (max-width: 760px) {
  .hn-page__titre { font-size: 22px; margin-bottom: 16px; }
}

/* ── Annonces publiques : cycle de vie (26/10/2026) ───────────────────
   Titre cliquable dans la liste (→ fiche), aide sous les boutons de
   création, note « elle reste en ligne » au-dessus de la barre, et le
   bouton Supprimer de la fiche, discret mais rouge. */
.hn-g-wrpub a.hn-ligne__t { text-decoration: none; }
.hn-g-wrpub a.hn-ligne__t:hover { color: var(--hn-wr); }
.hn-wrf__aide-bar { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--wrf-muted, #6B6B80); text-align: right; }
.hn-wrf__note-bar { margin: 18px 0 0; }
.hn-wrf__fiche-actions .hn-wrf__cta, .hn-wrf__fiche-actions .hn-wrf__second { padding: 11px 18px; font-size: 14px; }
.hn-wrf__fiche-actions .ico { width: 15px; height: 15px; }
.hn-wrf__ghost--danger { margin: 0; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--hn-rouge); padding: 11px 6px; }
.hn-wrf__ghost--danger:hover { color: #9B1532; text-decoration: underline; }
@media (max-width: 640px) { .hn-wrf__aide-bar { text-align: left; } }

/* ══════════════════════════════════════════════════════════════════════
   « MES ÉVÉNEMENTS » (7.18.0) — views/app/evenements.ejs, evenement_proposer.ejs

   Le formulaire reprend les champs `hn-wrf` (même dessin que les offres
   publiques), repeints aux couleurs de Whilo : l'événement vit ici
   avant d'être diffusé ailleurs.
   ══════════════════════════════════════════════════════════════════════ */
.hn-wrf--hn { --wrf-violet:var(--hn-mag); --wrf-violet-dark:var(--hn-mag-fonce); }
.hn-wrf--hn .hn-wrf__input:focus, .hn-wrf--hn .hn-wrf__select:focus, .hn-wrf--hn .hn-wrf__textarea:focus { box-shadow:0 0 0 3px rgba(122,44,110,.12); }
.hn-wrf--hn .hn-wrf__cta { box-shadow:0 4px 14px rgba(122,44,110,.28); }
.hn-wrf--hn .hn-wrf__cta:hover { box-shadow:0 8px 22px rgba(122,44,110,.34); }
.hn-mesev-form { max-width:980px; }
.hn-mesev .hn-hero__actions { align-items:stretch; text-align:center; }
.hn-mesev__retour { display:inline-block; margin-bottom:12px; font-size:13.5px; font-weight:600; color:var(--hn-gris-2); text-decoration:none; }
.hn-mesev__retour:hover { color:var(--hn-mag); }

.hn-mesev__liste { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.hn-mesev__ev { padding:22px 26px; scroll-margin-top:90px; }
.hn-mesev__tete { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.hn-mesev__txt { min-width:0; }
.hn-mesev__titre { margin:10px 0 6px; font-size:18px; line-height:1.3; }
.hn-mesev__meta { margin:0; font-size:14px; color:var(--hn-encre-2); }
.hn-mesev__meta--doux { margin-top:3px; font-size:13px; color:var(--hn-gris-2); }
.hn-mesev__motif { margin-top:14px; }
.hn-mesev__aide { margin:12px 0 0; font-size:13.5px; color:var(--hn-gris-2); }
/* La diffusion d'un événement publié : visites venues des liens courts. */
.hn-mesev__stats { display:flex; align-items:flex-start; gap:12px; margin-top:14px; padding:12px 14px; border-radius:12px; background:var(--hn-brume); }
.hn-mesev__stats > .ico, .hn-mesev__stats > svg { flex:none; width:20px; height:20px; margin-top:2px; color:var(--hn-mag-fonce); }
.hn-mesev__stats-total { margin:0; font-size:14px; color:var(--hn-encre-2); }
.hn-mesev__stats-aide { margin:4px 0 0; font-size:13px; color:var(--hn-gris-2); }
/* 7.18.0 — statistiques détaillées (Premium) ; invitation sinon. */
.hn-mesev__stats-lien { display:inline-block; margin-top:6px; font-size:13px; font-weight:700; color:var(--hn-mag-fonce); text-decoration:none; }
.hn-mesev__stats-lien:hover { text-decoration:underline; }
.hn-mesev__stats--verrou { align-items:center; }
.hn-mesev__stats--verrou a { font-weight:700; color:var(--hn-mag-fonce); }
.hn-mesev__canaux { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.hn-mesev__canaux li { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:#fff; border:1px solid var(--hn-trait-2); font-size:12.5px; color:var(--hn-encre-2); }
.hn-mesev__canaux b { color:var(--hn-mag-fonce); }
.hn-mesev__demande { margin-top:14px; border-top:1px solid var(--hn-trait-2); padding-top:12px; }
.hn-mesev__demande summary { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:14px; font-weight:700; color:var(--hn-mag-fonce); list-style:none; }
.hn-mesev__demande summary::-webkit-details-marker { display:none; }
.hn-mesev__n { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--hn-mag-clair); font-size:11.5px; }
.hn-mesev__historique { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.hn-mesev__historique li { padding:12px 14px; border-radius:12px; background:var(--hn-brume); }
.hn-mesev__quand { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--hn-gris-2); }
.hn-mesev__msg { margin:6px 0 0; font-size:14px; white-space:pre-line; }
.hn-mesev__reponse { margin:8px 0 0; font-size:13.5px; color:var(--hn-encre-2); }
.hn-mesev__form { margin-top:14px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.hn-mesev__form .hn-wrf__textarea { min-height:80px; }

.hn-mesev__choix { border:0; margin:0 0 14px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.hn-mesev__choix legend { width:100%; margin-bottom:8px; }
.hn-mesev__choix .hn-wrf__hint, .hn-mesev__choix .hn-wrf__error { width:100%; }
.hn-mesev__puce { position:relative; display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--hn-bord); border-radius:999px; background:#fff; font-size:13.5px; cursor:pointer; }
.hn-mesev__puce small { color:var(--hn-gris-2); font-size:12px; }
.hn-mesev__puce:has(input:checked) { border-color:var(--hn-mag); background:var(--hn-mag-clair); font-weight:600; }
.hn-mesev__avertissement { margin:6px 0 16px; }
.hn-mesev__confirme { display:flex; align-items:flex-start; gap:10px; margin-top:10px; font-weight:600; cursor:pointer; }
.hn-mesev__confirme input { margin-top:5px; }

@media (max-width: 720px) {
  .hn-mesev__tete { flex-direction:column; }
  .hn-mesev__ev { padding:18px; }
  .hn-mesev-form .hn-wrf__grid--2 { grid-template-columns:minmax(0,1fr); }
  .hn-mesev-form .hn-wrf__panel { padding:20px; }
}

/* 06/11/2026 — le bandeau « Site en maintenance » d'une session du
   backoffice (views/partials/bandeau_maintenance_site.ejs). */
.hn-maintenance-site-bandeau {
  position: relative; z-index: 300;
  padding: 9px 18px; text-align: center;
  background: #B42318; color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
.hn-maintenance-site-bandeau a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* 17/11/2026 — Fiche du cabinet (`data-riche-outils="fiche"`) : l'avis
   « liens retirés », sous l'éditeur, quelques secondes après un collage. */
.hn .rt__avis { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: #FFF7E6; color: #92400E; font-size: 12.5px; line-height: 1.4; }
.hn .rt__avis[hidden] { display: none; }

/* ══ LES SUPPORTS D'UNE OFFRE (21/11/2026, soir) — views/app/offre_fiche.ejs ══ */
.hn-supports { margin-top: 20px; }
.hn-supports h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--hn-encre, #1E1B2E); }
.hn-supports__x { margin: 6px 0 0; font-size: 14px; color: #6B7280; }
.hn-supports__liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hn-supports__item { display: flex; align-items: flex-start; gap: 12px; height: 100%; box-sizing: border-box; padding: 14px; border-radius: 14px; border: 1px solid #F5E7F3; background: #FDFBFD; text-decoration: none; color: inherit; }
.hn-supports__item:hover { border-color: #E7C0E1; background: #FBF5FA; }
.hn-supports__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: #F6EAF4; color: #5E1F55; }
.hn-supports__ico .ico { width: 18px; height: 18px; }
.hn-supports__item strong { display: block; font-size: 14.5px; color: #1E1B2E; }
.hn-supports__item small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #6B7280; }

/* 24/11/2026 — annonce réservée aux espaces partagés (formulaire, badges). */
.hn-visi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hn-visi__opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #EEE7DA; border-radius: 14px; background: #fff; cursor: pointer; }
.hn-visi__opt:has(input:checked) { border-color: #8A63C1; box-shadow: 0 0 0 3px rgba(138, 99, 193, .14); }
.hn-visi__opt input { margin-top: 3px; accent-color: #8A63C1; }
.hn-visi__opt strong { display: block; font-size: 14.5px; }
.hn-visi__opt span span { display: block; font-size: 13px; color: #6B7280; line-height: 1.45; }
.hn-visi__espaces { display: grid; gap: 8px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #FAF8FE; border: 1px solid #ECE6F7; }
.hn-visi__espaces[hidden] { display: none; }
.hn-visi__esp { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.hn-visi__esp input { accent-color: #8A63C1; }
.hn-visi__esp small { color: #6B7280; }
.hn-badge--prive { background: #F2EDFA; color: #5B3A92; }

/* 24/11/2026 — CVthèque anonyme en accès libre. */
.wh-cvl__libre { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #F8F4FD; border-color: #ECE3F8; }
.wh-cvl__libre strong { display: block; margin-bottom: 4px; }
.wh-cvl__libre p { margin: 0; max-width: 720px; color: #5E5675; font-size: 14px; line-height: 1.55; }
.wh-cvl__voir { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13.5px; }

/* ⚠️  24/11/2026 — MOBILE : RIEN NE DOIT ÉLARGIR LA PAGE.
       Le champ de fichier de `.hn-depot` (242 px, à côté de l'icône) et les
       onglets du compte dépassaient de l'écran. Sur un téléphone, une page
       plus large que l'écran est dézoomée : les boutons fixes (bulle, menu)
       glissent hors de portée du doigt. */
@media (max-width:640px) {
  .hn-depot { flex-wrap:wrap; padding:20px; }
  .hn-depot input[type=file] { min-width:0; width:100%; }
  .hn-onglets-wr { flex-wrap:wrap; }
}
