/* ════════════════════════════════════════════════════════════════════
   HIRINGNOTES — LA COQUILLE : BANDEAU, BARRE LATÉRALE (7.19.0 → 7.20.0)

   Chargée par les TROIS gabarits, avant ou après leur propre feuille :
     · layouts/app.ejs      coquille.css puis app-connecte.css
     · layouts/vitrine.ejs  app.css puis coquille.css
     · layouts/tunnel.ejs   app.css, coquille.css, app-connecte.css

   ⚠️  7.20.0 (26/10/2026) : LE DESSIN DE WHILERESUME.

       Demandé sur une capture de l'espace entreprise de Whileresume, « la
       même sidebar graphique », sur le site comme dans les deux espaces :

         ┌──────────────────────────────────────────────────────────┐
         │ logo  (Mon espace)  Espace entreprise ↗  …   compte  FR  │  bandeau
         ├──────────────────────────────────────────────────────────┤
         │ ┌──────────┐                                             │
         │ │‹ Réduire │   la page                                   │
         │ │ESPACE    │                                             │
         │ │Accueil   │                                             │
         │ │GROUPE    │                                             │
         │ │ …        │                                             │
         │ └──────────┘                                             │
         ├──────────────────────────────────────────────────────────┤
         │ pied de page (site), sur toute la largeur                │
         └──────────────────────────────────────────────────────────┘

       · le BANDEAU couvre toute la largeur, lilas pâle, logo à gauche ;
       · la BARRE est une carte blanche arrondie, posée dessous avec une
         marge, qui garde la hauteur de l'écran et défile pour son compte ;
       · le PIED DE PAGE du site est sous les deux, sur toute la largeur.

   ⚠️  DEUX FAÇONS DE DÉFILER, UN SEUL DESSIN.

       Dans l'espace (`.hn-shell`), la coquille fait la hauteur de l'écran
       et c'est la colonne de la page (`.hn-main`) qui défile : des écrans
       s'en servent (messagerie, fils collants). Sur le site
       (`.hn-shell--page`), c'est la FENÊTRE qui défile — ancres, cookies,
       scripts au défilement en dépendent — et le bandeau puis la carte
       restent en place par `position: sticky`. Le résultat à l'écran est
       le même.

   ⚠️  DEUX FEUILLES DE BASE DIFFÉRENTES AUTOUR D'ELLE.

       Le bloc « BASE DE LA COQUILLE » remet le bandeau et la barre dans le
       même état sur le site (app.css : 16 px, liens magenta, marges de
       paragraphe) et dans l'espace, avec des sélecteurs de poids minimal.

   ⚠️  NE PAS Y METTRE DE COMPOSANT DE PAGE.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --hn-bg:#F4F2F9; --hn-blanc:#ffffff;
  --hn-encre:#22223B; --hn-encre-2:#42425A;
  --hn-gris:#5C5C74; --hn-gris-2:#6E6E85; --hn-gris-3:#8A8AA0;
  --hn-gris-4:#9A9AAE; --hn-gris-5:#B9B9C8;

  --hn-mag:#C73E9B; --hn-mag-fonce:#952E74; --hn-mag-clair:#F9F0F6;
  --hn-mag-rose:#FDF7FB; --hn-mag-vif:#E87FC4;

  --hn-navy:#1B1B3A; --hn-navy-txt:#B7B7CB; --hn-navy-txt2:#9C9CB4;

  --hn-trait:#EAE7F2; --hn-trait-2:#F0EEF6; --hn-trait-3:#F4F2F9;
  --hn-bord:#E4E0EE; --hn-tiret:#D8D3E6; --hn-lilas:#EEE2FC;
  --hn-brume:#FBFAFE; --hn-lavande:#F9F6FF;

  /* WhileResume — le violet est SA couleur, jamais celle de HiringNotes. */
  --hn-wr:#5B21B6; --hn-wr-2:#6D28D9; --hn-wr-3:#A78BFA;
  --hn-wr-clair:#F5F3FF; --hn-wr-pale:#EDE9FE;

  --hn-bleu:#024AAD; --hn-bleu-pale:#EEF3FC;
  --hn-vert:#1E7B45; --hn-vert-pale:#E8F6ED;
  --hn-rouge:#C42348; --hn-rouge-pale:#FDECEF;
  --hn-orange:#8A5A00; --hn-orange-pale:#FFF6E2;
  --hn-etoile:#DC9A02; --hn-requis:#D4145A;

  --hn-r-carte:16px; --hn-r-champ:10px; --hn-r-pilule:20px; --hn-r-tuile:12px;

  /* 7.20.0 — les mesures de la coquille. `--hn-side` est la largeur de la
     CARTE (bordure comprise) ; `--hn-marge`, l'espace qui l'entoure. */
  --hn-side:284px; --hn-side-mini:72px; --hn-top:68px; --hn-marge:24px;

  /* Le bandeau : lilas pâle tirant sur le rose de la marque. Les gris y
     sont des gris prune, plus sombres que ceux des pages : un #6E6E85 sur
     ce fond tombait sous 4,5:1. */
  --hn-tete-encre:#3A2B48; --hn-tete-doux:#5E4F6C;
  --hn-tete-survol:rgba(255,255,255,.75); --hn-tete-filet:rgba(149,46,116,.18);
}

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

.hn-inline--flex { display:flex; margin:0; }

/* ════════════════════════════════════════════════════════════════════
   LA COQUILLE — bandeau au-dessus, carte et page dessous
   ════════════════════════════════════════════════════════════════════ */

.hn-shell { display:flex; flex-direction:column; height:100vh; overflow:hidden; }

.hn-corps { flex:1; min-height:0; display:flex; align-items:stretch; }

.hn-main { flex:1; min-width:0; display:flex; flex-direction:column; overflow:auto; }

/* La page de l'espace commence à la hauteur de la carte, et garde une
   marge à droite comme à gauche. */
.hn-corps .hn-page { padding:var(--hn-marge) 32px 40px 0; }

/* La Tools box (app-connecte.css, `.hn-tools`) : sur écran large, une
   troisième colonne — une carte, comme la barre, sous le bandeau. En
   dessous de 1281 px elle reste le panneau fixe qui glisse par-dessus. */
@media (min-width:1281px) {
  .hn-corps > .hn-tools {
    height:auto; align-self:stretch;
    margin:var(--hn-marge) 32px var(--hn-marge) 0;
    border:1px solid #ECE8F3; border-radius:18px; overflow:hidden;
    box-shadow:0 1px 2px rgba(34,34,59,.04), 0 4px 16px rgba(34,34,59,.06);
  }
  .hn-shell--outils .hn-corps .hn-page { padding-right:var(--hn-marge); }
}

/* ════════════════════════════════════════════════════════════════════
   LE BANDEAU
   ════════════════════════════════════════════════════════════════════ */

.hn-top {
  flex:none; position:relative; z-index:30;
  height:var(--hn-top); padding:0 32px;
  display:flex; align-items:center; gap:18px;
  color:var(--hn-tete-encre);
  background:
    radial-gradient(620px 170px at 12% -60%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(520px 170px at 90% -70%, rgba(250,212,236,.6), transparent 70%),
    linear-gradient(180deg, rgba(247,236,246,.97), rgba(242,228,242,.97));
}
/* Le filet du bas : un dégradé, plus soutenu au milieu. */
.hn-top::after {
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background:linear-gradient(90deg, #EDD5E7 0%, #DDB4D2 50%, #EDD5E7 100%);
  pointer-events:none;
}

/* La marque : le logo réglé au backoffice, sinon le logo réduit et le nom. */
.hn-top__marque { flex:none; display:flex; align-items:center; gap:9px; margin-right:4px; color:var(--hn-navy); }
.hn-top__marque:hover { color:var(--hn-navy); }
.hn-brand__img { display:block; height:28px; width:auto; max-width:180px; }
.hn-brand__mini { display:block; width:28px; height:28px; border-radius:8px; object-fit:contain; flex:none; }
.hn-brand__nom { font-size:19px; font-weight:700; letter-spacing:-.4px; white-space:nowrap; }

/* « Mon espace entreprise / recruteur » : une pilule un ton plus soutenu
   que le bandeau — sinon elle se lirait comme un trou. */
.hn-top__espace {
  flex:none; display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:100px;
  background:#EFD7E9; border:1px solid #E4C0DA; color:var(--hn-mag-fonce);
  font-size:15px; font-weight:700; white-space:nowrap;
}
.hn-top__espace .ico { font-size:15px; color:var(--hn-mag); }
.hn-top__espace:hover { background:#fff; border-color:#fff; color:var(--hn-mag-fonce); }

/* Les produits voisins : texte prune, survol blanc. */
.hn-top__soeurs { flex:none; display:flex; align-items:center; gap:2px; }
.hn-top__soeur {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 11px; border-radius:100px;
  font-size:14.5px; font-weight:500; color:var(--hn-tete-doux); white-space:nowrap;
}
.hn-top__soeur-ext { display:inline-flex; opacity:.7; }
.hn-top__soeur-ext .ico { font-size:12px; }
.hn-top__soeur:hover { background:var(--hn-tete-survol); color:var(--hn-mag-fonce); }
/* Au survol, chaque produit prend sa couleur : le violet est celui de
   Whileresume, jamais celui de Hiring Notes. */
.hn-top__soeur--wr:hover { color:var(--hn-wr); }
.hn-top__soeur--wp:hover { color:var(--hn-mag-fonce); }
/* Visiteur : un filet entre le logo et les liens — ce sont des portes vers
   d'autres sites, pas la suite du nom. */
.hn-top__soeurs--visiteur { position:relative; padding-left:12px; }
.hn-top__soeurs--visiteur::before {
  content:""; position:absolute; left:0; top:50%; width:1px; height:20px;
  transform:translateY(-50%); background:var(--hn-tete-filet);
}

/* À droite : le compte, la Tools box, la langue — ou, visiteur, l'appel à
   l'action, « Se connecter » et la langue. */
.hn-top__outils-zone { flex:1; min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:10px; }

.hn-top__outils {
  flex:none; display:flex; align-items:center; gap:8px;
  background:var(--hn-navy); color:#fff; font-size:13.5px; font-weight:700;
  padding:10px 16px; border-radius:100px; white-space:nowrap;
}
.hn-top__outils:hover { background:#2A2A55; color:#fff; }
.hn-top__outils.est-ouvert,
.hn-shell--outils .hn-top__outils { background:var(--hn-mag); }

/* « Publier une offre » : le seul aplat soutenu du bandeau. */
.hn-top__cta {
  flex:none; display:flex; align-items:center; gap:8px;
  background:var(--hn-mag); color:#fff; border:1px solid var(--hn-mag);
  font-size:15px; font-weight:600; padding:9px 18px; border-radius:100px; white-space:nowrap;
  box-shadow:0 4px 12px rgba(199,62,155,.25);
}
.hn-top__cta:hover { background:var(--hn-mag-fonce); border-color:var(--hn-mag-fonce); color:#fff; }
.hn-top__cta .ico { font-size:15px; }

/* « Se connecter » : léger — du texte, une icône, un fond blanc au survol. */
.hn-top__connexion {
  flex:none; display:inline-flex; align-items:center; gap:7px;
  padding:8px 12px; border-radius:100px;
  font-size:15px; font-weight:500; color:var(--hn-tete-encre); white-space:nowrap;
}
.hn-top__connexion .ico { font-size:16px; color:var(--hn-mag); }
.hn-top__connexion:hover { background:var(--hn-tete-survol); color:var(--hn-mag-fonce); }

/* Le compte : une pilule blanche — avatar, prénom, chevron. */
.hn-moi { position:relative; flex:none; }
.hn-top__compte {
  list-style:none; cursor:pointer;
  display:inline-flex; align-items:center; gap:9px;
  padding:4px 12px 4px 4px; border-radius:100px;
  background:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.95);
  font-size:15px; font-weight:500; color:var(--hn-tete-encre); white-space:nowrap;
}
.hn-top__compte::-webkit-details-marker { display:none; }
.hn-top__compte:hover, .hn-moi[open] > .hn-top__compte { background:#fff; border-color:#E4C0DA; }
.hn-moi.a-actif > .hn-top__compte { border-color:#E4C0DA; }
.hn-top__avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; display:block; }
.hn-moi__fleche { display:inline-flex; opacity:.55; }
.hn-moi__fleche .ico { font-size:13px; }
.hn-moi[open] .hn-moi__fleche { transform:rotate(180deg); }

.hn-moi__panneau {
  position:absolute; right:0; top:calc(100% + 8px); z-index:60;
  width:260px; padding:6px;
  background:var(--hn-blanc); border:1px solid var(--hn-trait); border-radius:14px;
  box-shadow:0 16px 40px rgba(34,34,59,.16);
  display:flex; flex-direction:column; gap:1px;
}
.hn-moi__qui { display:flex; align-items:center; gap:11px; padding:10px 10px 12px; margin-bottom:4px; border-bottom:1px solid var(--hn-trait-2); }
.hn-moi__txt { min-width:0; display:flex; flex-direction:column; gap:1px; }
.hn-moi__nom { font-size:14px; font-weight:700; color:var(--hn-encre); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-moi__mail, .hn-moi__org { font-size:12px; color:var(--hn-gris-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hn-moi__org { color:var(--hn-mag-fonce); font-weight:600; }

/* La langue, tout à droite : du texte, séparé des actions par un filet. */
.hn-lang { position:relative; flex:none; }
.hn-top .hn-lang { margin-left:2px; padding-left:10px; }
.hn-top .hn-lang::before {
  content:""; position:absolute; left:0; top:50%; width:1px; height:20px;
  transform:translateY(-50%); background:var(--hn-tete-filet);
}
.hn-lang > summary {
  list-style:none; cursor:pointer;
  display:flex; align-items:center; gap:6px;
  padding:7px 9px; border-radius:100px;
  font-size:14.5px; font-weight:700; color:var(--hn-tete-encre);
}
.hn-lang > summary::-webkit-details-marker { display:none; }
.hn-lang > summary:hover, .hn-lang[open] > summary { background:var(--hn-tete-survol); color:var(--hn-mag-fonce); }
.hn-lang > summary .ico { font-size:12px; opacity:.7; }
.hn-lang[open] > summary .ico { transform:rotate(180deg); }
.hn-lang:focus-visible, .hn-lang > summary:focus-visible { outline:2px solid var(--hn-mag); border-radius:100px; }

.hn-lang__menu {
  position:absolute; right:0; top:calc(100% + 8px); z-index:60;
  min-width:190px; padding:6px;
  background:var(--hn-blanc); border:1px solid var(--hn-trait);
  border-radius:14px; box-shadow:0 16px 40px rgba(34,34,59,.16);
}
.hn-lang__menu form { margin:0; }
.hn-lang__item {
  width:100%; border:0; cursor:pointer; background:transparent;
  display:flex; align-items:center; gap:11px;
  padding:9px 11px; border-radius:10px;
  font:inherit; font-size:14px; color:var(--hn-encre-2); text-align:left;
}
a.hn-lang__item { color:var(--hn-encre-2); }
.hn-lang__item:hover { background:var(--hn-trait-3); }
.hn-lang__item.est-actif { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); font-weight:700; }
.hn-lang__code { flex:none; font-size:11.5px; font-weight:700; letter-spacing:.04em; color:var(--hn-gris-3); }
.hn-lang > summary .hn-lang__code { font-size:14.5px; color:inherit; letter-spacing:0; }
.hn-lang__item.est-actif .hn-lang__code { color:var(--hn-mag); }
.hn-lang__nom { flex:1; min-width:0; }
.hn-lang__coche { flex:none; color:var(--hn-mag); font-size:12px; }
/* Une langue sans traduction reste à sa place, grisée. */
.hn-lang__item--inerte { color:var(--hn-gris-5); cursor:default; }
.hn-lang__item--inerte:hover { background:transparent; }
.hn-lang__item--inerte .hn-lang__code,
.hn-lang__item--inerte .hn-lang__coche { color:var(--hn-gris-5); }

/* Le menu du compte : ses lignes (aussi réutilisées par d'anciens écrans). */
.hn-compte__nom { font-size:22px; font-weight:700; letter-spacing:-.4px; }
.hn-compte__lien {
  display:flex; align-items:center; gap:10px; width:100%;
  padding:9px 11px; border-radius:9px; border:0; background:none;
  font:inherit; font-size:13.5px; color:var(--hn-encre-2); text-align:left; cursor:pointer;
}
.hn-compte__lien:hover { background:var(--hn-trait-3); color:var(--hn-mag-fonce); text-decoration:none; }
.hn-compte__lien.est-actif { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); font-weight:600; }
.hn-compte__lien:focus-visible { outline:2px solid var(--hn-mag); outline-offset:1px; }
.hn-compte__ico { display:inline-flex; width:16px; height:16px; flex:0 0 16px; opacity:.7; }
.hn-compte__ico svg { width:16px; height:16px; }
.hn-compte__sortie-forme { display:block; margin:4px 0 0; border-top:1px solid var(--hn-trait-2); padding-top:4px; }
/* La déconnexion se distingue des destinations qui la précèdent. */
.hn-compte__lien--sortie:hover { background:var(--hn-rouge-pale); color:var(--hn-rouge); }

.hn-avatar {
  flex:none; width:36px; height:36px; border-radius:50%;
  background:var(--hn-lilas); color:#7B2E60;
  display:flex; align-items:center; justify-content:center;
  font-size:12.5px; font-weight:700;
}
.hn-avatar--xs { width:30px; height:30px; font-size:10.5px; }
.hn-avatar--sm { width:34px; height:34px; font-size:11.5px; }
.hn-avatar--md { width:42px; height:42px; font-size:13px; }
.hn-avatar--lg { width:64px; height:64px; border-radius:16px; font-size:21px; letter-spacing:-.5px; }

/* Les produits voisins : le bandeau dès 1280 px, la barre en dessous. */
@media (max-width:1279px) {
  .hn-top__soeurs { display:none; }
}
/* Le prénom du compte part en premier quand la place manque. */
@media (max-width:1100px) {
  .hn-top__compte-t { display:none; }
  .hn-top__compte { padding:4px 8px 4px 4px; }
}

/* ════════════════════════════════════════════════════════════════════
   LA BARRE LATÉRALE — une carte
   ════════════════════════════════════════════════════════════════════ */

.hn-side {
  flex:none; width:var(--hn-side);
  margin:var(--hn-marge) var(--hn-marge) var(--hn-marge) var(--hn-marge);
  padding:8px;
  display:flex; flex-direction:column;
  background:var(--hn-blanc);
  border:1px solid #ECE8F3; border-radius:18px;
  box-shadow:0 1px 2px rgba(34,34,59,.04), 0 4px 16px rgba(34,34,59,.04);
  overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:var(--hn-bord) transparent;
  transition:width .18s ease;
}

/* « ‹ Réduire » : une ligne entière, encadrée, en tête de carte. Le
   replieur est un LIEN (l'état vit en session) — voir sidebar.ejs. */
.hn-side__replier {
  flex:none; display:flex; align-items:center; gap:8px;
  padding:8px 12px; margin-bottom:12px;
  border:1px solid #ECE8F3; border-radius:10px; background:var(--hn-blanc);
  color:var(--hn-gris-2); font-size:12.5px; font-weight:600;
}
.hn-side__replier .ico { font-size:14px; }
.hn-side__replier:hover { background:var(--hn-trait-3); color:var(--hn-encre); }

/* L'étiquette de l'espace : contour rose, l'espace courant en plein, l'autre
   en retrait — un clic sur l'autre y bascule. */
.hn-iface {
  flex:none; display:flex; gap:3px; padding:3px; margin-bottom:4px;
  border:1px solid #E2A9D0; border-radius:12px; background:var(--hn-mag-rose);
}
/* ⚠️  LES DEUX MOITIÉS SE PARTAGENT LA PLACE SELON LEUR TEXTE.

       « PERSONALBERATER » (allemand) ne tient pas dans une moitié fixe : les
       moitiés prennent la largeur de leur mot, et un mot encore trop long se
       termine par « … » au lieu de sortir de la carte. */
.hn-iface form { flex:1 1 auto; min-width:0; display:flex; margin:0; }
.hn-iface__tab {
  flex:1 1 auto; min-width:0; display:flex; align-items:center; justify-content:center; gap:6px;
  border:0; border-radius:9px; padding:8px 7px; cursor:pointer;
  background:transparent; font:inherit; white-space:nowrap;
  font-size:10.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--hn-gris-3);
}
.hn-iface__tab > span:not(.hn-iface__plus) { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.hn-iface__tab .ico { font-size:14px; display:none; }
.hn-iface__tab:hover { color:var(--hn-mag-fonce); background:rgba(255,255,255,.7); }
.hn-iface__tab.est-actif {
  background:var(--hn-blanc); color:var(--hn-mag);
  box-shadow:0 0 0 1px #EDC6E0, 0 2px 6px rgba(149,46,116,.08);
}
.hn-iface__tab.est-actif .ico { display:inline-block; }
/* L'espace pas encore ouvert se distingue (« + »). */
.hn-iface__tab.est-ferme, .hn-iface__pastille.est-ferme { opacity:.75; }
.hn-iface__tab.est-ferme:hover, .hn-iface__pastille.est-ferme:hover { opacity:1; }
.hn-iface__plus { font-weight:800; margin-left:2px; }

/* Réduite : deux pastilles d'icône à la place de l'étiquette. */
.hn-iface--mini { display:none; flex-direction:column; gap:6px; align-items:center; margin-bottom:4px; }
.hn-iface--mini form { width:44px; margin:0; }
.hn-iface__pastille {
  width:44px; height:38px; border-radius:12px; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; background:transparent; color:var(--hn-gris-3);
}
.hn-iface__pastille.est-actif { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); box-shadow:inset 0 0 0 1px #E2A9D0; }

/* La navigation : des groupes séparés par un filet. C'est la carte qui
   défile, pas la liste. */
.hn-nav { flex:none; padding:0; }
.hn-nav__groupe { padding:8px 0; }
.hn-nav__groupe + .hn-nav__groupe { border-top:1px solid var(--hn-trait-2); }
.hn-nav__groupe--tete { padding-top:6px; }
.hn-nav__titre {
  font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--hn-gris-4); padding:8px 12px 6px; margin:0;
}
.hn-nav__sep { display:none; }
.hn-nav__items { display:flex; flex-direction:column; gap:1px; }

.hn-nav__lien {
  position:relative; display:flex; align-items:center; gap:11px;
  padding:10px 12px; border-radius:11px;
  color:var(--hn-encre-2); font-size:14px; font-weight:500;
}
.hn-nav__lien .ico { font-size:18px; color:var(--hn-gris-4); stroke-width:1.75; }
.hn-nav__lien:hover { background:var(--hn-trait-3); color:var(--hn-encre); }
.hn-nav__lien:hover .ico { color:var(--hn-gris-2); }
.hn-nav__lien.est-actif { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); font-weight:600; }
.hn-nav__lien.est-actif .ico { color:var(--hn-mag); }
/* L'entrée active : un trait magenta contre le bord de la carte. */
.hn-nav__lien.est-actif::before {
  content:""; position:absolute; left:-9px; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:0 3px 3px 0; background:var(--hn-mag);
}
/* ⚠️  UN LIBELLÉ LONG PASSE SUR DEUX LIGNES, IL N'EST PLUS COUPÉ (7.20.1).

       « Publier une offre publique » suivi de « GRATUIT » et de la flèche
       ne tient pas sur une ligne de carte : coupé, il devenait « Publier une
       offr… », et les deux offres se lisaient pareil. Au-delà de deux
       lignes, on coupe quand même. */
.hn-nav__libelle {
  flex:1; min-width:0; line-height:1.3;
  overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow-wrap:break-word;
}

/* « + Créer une offre · GRATUIT » : une ligne teintée, comme « + Nouvelle
   annonce » sur Whileresume. */
.hn-nav__lien--accent { background:var(--hn-mag-rose); color:var(--hn-mag-fonce); font-weight:600; }
.hn-nav__lien--accent .ico { color:var(--hn-mag); }
.hn-nav__lien--accent:hover { background:var(--hn-mag-clair); color:var(--hn-mag-fonce); }
.hn-nav__lien--accent:hover .ico { color:var(--hn-mag); }

.hn-nav__badge {
  flex:none; min-width:20px; height:20px; border-radius:10px;
  background:var(--hn-mag); color:#fff; font-size:11.5px; font-weight:700;
  display:flex; align-items:center; justify-content:center; padding:0 6px;
}
.hn-nav__tag {
  flex:none; padding:2px 7px; border-radius:100px;
  background:#F3F1F7; border:1px solid #E7E3EF; color:var(--hn-gris-2);
  font-size:9.5px; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
}
.hn-nav__ext { flex:none; display:inline-flex; color:var(--hn-gris-5); }
.hn-nav__ext .ico { font-size:13px; color:inherit; }
.hn-nav__tag + .hn-nav__ext { margin-left:2px; }

/* WhileResume garde SA couleur jusque dans la navigation. */
.hn-nav__lien--wr .ico:first-child { color:var(--hn-wr-3); }
.hn-nav__lien--wr.est-actif { background:var(--hn-wr-clair); color:var(--hn-wr); }
.hn-nav__lien--wr.est-actif .ico:first-child { color:var(--hn-wr); }
.hn-nav__lien--wr.est-actif::before { background:var(--hn-wr); }
.hn-nav__lien--wr .hn-nav__badge { background:var(--hn-wr); }
.hn-nav__lien--wp .ico:first-child { color:var(--hn-mag-vif); }

/* ⚠️  Une entrée sans écran est un `span`, pas un `<a href="#">`. */
.hn-nav__lien.est-a-venir { color:var(--hn-gris-5); cursor:default; }
.hn-nav__lien.est-a-venir:hover { background:transparent; color:var(--hn-gris-5); }
.hn-nav__lien.est-a-venir .ico { color:var(--hn-gris-5); }
.hn-nav__cadenas { flex:none; color:var(--hn-gris-5); font-size:12px; }

/* Les produits voisins du visiteur : ici seulement quand le bandeau n'a
   plus la place (sous 1280 px). */
.hn-nav__lien.hn-nav__lien--etroit { display:none; }
@media (max-width:1279px) {
  .hn-nav__lien.hn-nav__lien--etroit { display:flex; }
}

/* L'encart d'essai, en bas de la navigation. */
.hn-essai { background:var(--hn-navy); border-radius:14px; padding:18px; color:#fff; margin:8px 2px 4px; }
.hn-essai__tete { display:flex; align-items:center; gap:9px; margin-bottom:9px; font-size:14px; font-weight:700; }
.hn-essai__tete .ico { color:var(--hn-mag-vif); font-size:15px; }
.hn-essai p { margin:0 0 13px; font-size:12.5px; line-height:1.6; color:var(--hn-navy-txt); }
.hn-essai__cta { display:block; text-align:center; background:var(--hn-mag); color:#fff; font-size:13.5px; font-weight:600; padding:10px 0; border-radius:var(--hn-r-pilule); }
.hn-essai__cta:hover { background:var(--hn-mag-fonce); color:#fff; }

/* ── Réduite : des icônes, le libellé en info-bulle ─────────────────── */

.hn-side--mini { width:var(--hn-side-mini); padding:8px 6px; }
.hn-side--mini .hn-side__replier { justify-content:center; padding:9px 0; }
.hn-side--mini .hn-side__replier-t { display:none; }
.hn-side--mini .hn-iface { display:none; }
.hn-side--mini .hn-iface--mini { display:flex; }
.hn-side--mini .hn-nav__groupe { padding:6px 0; }
.hn-side--mini .hn-nav__lien { justify-content:center; padding:10px 0; }
.hn-side--mini .hn-nav__libelle,
.hn-side--mini .hn-nav__badge,
.hn-side--mini .hn-nav__tag,
.hn-side--mini .hn-nav__ext,
.hn-side--mini .hn-nav__cadenas,
.hn-side--mini .hn-nav__titre,
.hn-side--mini .hn-essai { display:none; }
.hn-side--mini .hn-nav__lien.est-actif::before { left:-7px; }

/*
  ⚠️  L'INFO-BULLE DE LA BARRE RÉDUITE EST UN ÉLÉMENT FIXE, PAS UN `::after`.

      La carte défile pour son compte (`overflow-y: auto`) : une bulle posée
      en `::after` à droite d'une entrée était COUPÉE au bord de la carte —
      on ne voyait rien. `js/app.js` crée une seule bulle, en
      `position: fixed`, et la place à côté de l'entrée survolée ou atteinte
      au clavier (`data-bulle`). Sans JavaScript, l'attribut `title` reste
      en place et le navigateur montre le sien.
*/
.hn-bulle-barre {
  position:fixed; z-index:120; pointer-events:none;
  transform:translateY(-50%);
  padding:6px 11px; border-radius:8px;
  background:var(--hn-encre); color:var(--hn-blanc);
  font-family:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size:12.5px; font-weight:600; line-height:1.3; white-space:nowrap;
  box-shadow:0 6px 18px rgba(34,34,59,.22);
}
.hn-bulle-barre::before {
  content:""; position:absolute; left:-4px; top:50%;
  width:9px; height:9px; transform:translateY(-50%) rotate(45deg);
  background:var(--hn-encre);
}
.hn-bulle-barre[hidden] { display:none; }

/* ════════════════════════════════════════════════════════════════════
   LE SITE — la page défile, le bandeau et la carte restent en place
   ════════════════════════════════════════════════════════════════════ */

.hn-shell--page { flex:1; height:auto; min-height:100vh; overflow:visible; }

@media (min-width:901px) {
  .hn-shell--page > .hn-top { position:sticky; top:0; }
  .hn-shell--page .hn-corps { align-items:flex-start; }
  /* La carte garde la hauteur de l'écran, comme dans l'espace. */
  .hn-shell--page .hn-side {
    position:sticky; top:calc(var(--hn-top) + var(--hn-marge));
    height:calc(100vh - var(--hn-top) - 2 * var(--hn-marge));
    margin-bottom:0;
  }
  /* `clip` et non `hidden` : rien ne déborde sous la carte (les fonds
     décoratifs de l'accueil), sans créer de zone de défilement — les
     éléments collants de la page continuent de coller. */
  .hn-shell--page .hn-main { overflow:visible; overflow-x:clip; padding:var(--hn-marge) var(--hn-marge) 0 0; }
}
.hn-shell--page .hn-main > .main { min-width:0; }
/* Le tunnel n'impose plus la hauteur de l'écran : il est dans la page. */
.hn-shell--page .hn-tunnel { min-height:0; border-radius:18px; }

/*
  ⚠️  LE PREMIER BANDEAU D'UNE PAGE DEVIENT UNE CARTE ARRONDIE.

      Les en-têtes de page du site (`hero-accueil`, `hero-lilas`) ont un fond
      — dessin de vagues, aplat lilas — qui allait jusqu'aux bords de la
      colonne. Posés à côté d'une carte, entre deux marges, leurs angles
      droits se lisaient comme une découpe. Arrondis, ils deviennent la carte
      de tête de la page, comme sur Whileresume.

      `border-radius` suffit à arrondir le fond de l'élément, sans
      `overflow: hidden` qui couperait aussi ses menus déroulants. Le fond
      de `hero-vague` est dans un `::before` : il hérite de l'arrondi.
*/
@media (min-width:901px) {
  .hn-shell--page .main .hero-accueil,
  .hn-shell--page .main .hero-lilas { border-radius:18px; }
  /* Le fond de l'accueil est blanc avec des vagues : un filet très pâle
     dessine le bord de la carte là où les vagues ne vont pas. */
  .hn-shell--page .main .hero-accueil { box-shadow:0 0 0 1px #F1ECF6; }
  .hn-shell--page .main .hero-accueil--image::before,
  .hn-shell--page .main .hero-vague::before { border-radius:inherit; }
}
/* Sur mobile aussi, rien ne doit élargir la page (le fond de l'accueil
   la faisait défiler de côté). */
.hn-shell--page .hn-main { overflow-x:clip; }

/*
  ⚠️  7.20.1 — CONNEXION ET INSCRIPTION DANS LA COQUILLE DU SITE.

      Ces écrans étaient dessinés pour le plein écran (layouts/auth.ejs) :
      hauteur de la fenêtre, volet du formulaire qui défile seul. Dans la
      page, la carte en deux volets prend la hauteur de la barre latérale et
      ses angles ; c'est la page qui défile, plus le volet.
*/
@media (min-width:901px) {
  .hn-shell--page .auth-cadre {
    border-radius:18px; border:1px solid #ECE8F3;
    box-shadow:0 1px 2px rgba(34,34,59,.04), 0 4px 16px rgba(34,34,59,.06);
    min-height:calc(100vh - var(--hn-top) - 2 * var(--hn-marge));
  }
  /* Le fond gris de la page d'inscription devient une carte, comme le
     premier bandeau des autres pages ; la carte du formulaire y reste
     centrée. */
  .hn-shell--page .page-auth {
    min-height:calc(100vh - var(--hn-top) - 2 * var(--hn-marge));
    padding:40px 24px 56px; border-radius:18px;
  }
}
.hn-shell--page .auth-volet { max-height:none; overflow:visible; }
@media (max-width:900px) {
  .hn-shell--page .page-auth { min-height:0; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE — la carte devient un tiroir, le bandeau se réduit
   ════════════════════════════════════════════════════════════════════ */

/* Hors mobile, rien de tout cela n'existe. */
.hn-burger, .hn-voile, .hn-side__outils { display:none; }

@media (max-width:900px) {
  .hn-shell, .hn-shell--page { height:auto; min-height:100vh; overflow:visible; }
  .hn-corps { display:block; }
  .hn-main { overflow:visible; }
  .hn-corps .hn-page { padding:18px; }

  .hn-top {
    position:sticky; top:0; height:60px; padding:0 14px; gap:10px;
  }
  .hn-top__espace, .hn-top__soeurs, .hn-top__outils-zone { display:none; }

  .hn-burger {
    display:flex; align-items:center; justify-content:center;
    flex:none; width:40px; height:40px; border-radius:12px;
    background:var(--hn-tete-survol); color:var(--hn-tete-encre); font-size:19px;
  }
  .hn-burger:hover { background:#fff; }
  .hn-shell--menu .hn-burger { background:#fff; color:var(--hn-mag-fonce); }

  /*
    ⚠️  LA MARQUE EST CENTRÉE SUR LE BANDEAU, PAS ENTRE SES VOISINS.
        Sortie du flux et posée à 50 %, elle reste au milieu de l'écran
        quoi qu'il arrive au bouton de menu.
  */
  .hn-top__marque { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); margin:0; }
  .hn-top__marque .hn-brand__img { height:24px; }
  .hn-top__marque .hn-brand__nom { font-size:17px; }

  .hn-side {
    position:fixed; left:0; top:0; z-index:60;
    width:min(310px, 86vw); height:100vh; height:100dvh; margin:0;
    border-radius:0 18px 18px 0; border-left:0;
    box-shadow:26px 0 60px rgba(34,34,59,.18);
    transform:translateX(-100%);
    transition:transform .24s cubic-bezier(.4, 0, .2, 1);
  }
  .hn-shell--menu .hn-side { transform:translateX(0); }

  /* Réduite, la barre n'a plus de sens en tiroir : on montre tout. */
  .hn-side--mini { width:min(310px, 86vw); padding:8px; }
  .hn-side__replier { display:none; }
  .hn-side--mini .hn-iface { display:flex; }
  .hn-side--mini .hn-iface--mini { display:none; }
  .hn-side--mini .hn-nav__lien { justify-content:flex-start; padding:10px 12px; }
  .hn-side--mini .hn-nav__libelle { display:-webkit-box; }
  .hn-side--mini .hn-nav__badge { display:flex; }
  .hn-side--mini .hn-nav__tag, .hn-side--mini .hn-nav__titre, .hn-side--mini .hn-essai { display:block; }
  .hn-side--mini .hn-nav__ext { display:inline-flex; }

  .hn-voile {
    display:block; position:fixed; inset:0; z-index:50;
    background:rgba(27, 27, 58, .45);
    opacity:0; pointer-events:none;
    transition:opacity .24s ease;
  }
  .hn-shell--menu .hn-voile { opacity:1; pointer-events:auto; }

  /* Les outils du bandeau, dans le tiroir. */
  .hn-side__outils {
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    padding:6px 4px 12px; margin-bottom:8px; border-bottom:1px solid var(--hn-trait-2);
  }
  .hn-side__outils .hn-moi { flex:1 1 100%; }
  .hn-side__outils .hn-top__compte { width:100%; background:var(--hn-trait-3); border-color:var(--hn-trait-3); }
  .hn-side__outils .hn-top__compte-t { display:inline; flex:1; }
  .hn-side__outils .hn-moi__panneau { position:static; width:auto; margin-top:6px; box-shadow:none; }
  .hn-side__outils .hn-top__outils,
  .hn-side__outils .hn-top__cta { flex:1; justify-content:center; }
  /* « Se connecter » est déjà dans « Mon compte », plus bas. */
  .hn-side__outils .hn-top__connexion { display:none; }
  .hn-side__outils .hn-lang > summary { background:var(--hn-trait-3); }
  .hn-side__outils .hn-lang__menu { right:auto; left:0; }

  .hn-shell--menu { position:fixed; inset:0; width:100%; }
}

@media print {
  .hn-side, .hn-top { display:none !important; }
  .hn-shell { display:block; height:auto; overflow:visible; }
  .hn-corps { display:block; }
}

/* ════════════════════════════════════════════════════════════════════
   BASE DE LA COQUILLE — identique sur la vitrine et dans l'espace
   ════════════════════════════════════════════════════════════════════ */

.hn-side, .hn-top {
  font-family:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size:15px; line-height:normal;
  -webkit-font-smoothing:antialiased;
}
.hn-side { color:var(--hn-encre); }
/* Poids (0,0,1) / (0,1,1) : autant que `a` et `a:hover` de la vitrine —
   et cette feuille vient après app.css —, moins que toute classe. */
:where(.hn-side, .hn-top) a { color:inherit; text-decoration:none; }
:where(.hn-side, .hn-top) a:hover { color:inherit; text-decoration:none; }
:where(.hn-side, .hn-top) p { margin:0; }
:where(.hn-side, .hn-top) .ico { width:1em; height:1em; flex:none; vertical-align:-.125em; stroke-width:2; }
:where(.hn-side, .hn-top) button { font-family:inherit; }
