/* Emploi Genève — refonte claire du 19/10/2026.
   Blanc net, bleu du Léman pour agir, rouge suisse seulement pour l'urgent (offre ≥ 85, doublon).
   Une seule famille, Archivo : large et grasse pour les notes et les titres, normale pour le texte. */
:root {
  --fond: #f2f5f8;
  --feuille: #ffffff;
  --encre: #13223a;
  --doux: #5a6880;
  --trait: #dde4ec;
  --trait-fort: #c6d1dd;
  --lac: #0b63c4;
  --lac-fonce: #084f9e;
  --lac-pale: #e8f1fb;
  --rouge: #d6262c;
  --rouge-pale: #fdecec;
  --vert: #11795a;
  --vert-pale: #e2f3ec;
  --ambre: #9a5a00;
  --ambre-pale: #fff4e0;
  --police: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.55 var(--police); font-variation-settings: "wdth" 100; }
a { color: var(--lac); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--police); }
h1 { font-size: clamp(28px, 4.6vw, 40px); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 700; font-variation-settings: "wdth" 106; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.doux { color: var(--doux); }
.petit { font-size: 14px; }
.chemin { font-size: 13px; overflow-wrap: anywhere; color: var(--doux); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--lac) 45%, transparent); outline-offset: 2px; }

/* ---------- En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: var(--feuille); border-bottom: 1px solid var(--trait); }
.entete-dedans { max-width: 1000px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 28px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-weight: 800; font-size: 17px;
  font-variation-settings: "wdth" 115; letter-spacing: -.01em; white-space: nowrap; }
.marque img { border-radius: 7px; }
.onglets { display: flex; gap: 22px; height: 100%; flex: 1; }
.onglets a { display: flex; align-items: center; height: 100%; color: var(--doux); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; padding-top: 3px; }
.onglets a:hover { color: var(--encre); }
.onglets a.actif { color: var(--encre); border-bottom-color: var(--lac); }
.sortie button { border: 0; background: none; color: var(--doux); font: 500 14px var(--police); cursor: pointer; padding: 8px; }
.sortie button:hover { color: var(--encre); text-decoration: underline; }

.page { max-width: 1000px; margin: 0 auto; padding: 36px 20px 90px; }

/* ---------- Titre de page */
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sous-titre { margin-top: 8px; color: var(--doux); max-width: 64ch; }
.vide { padding: 56px 20px; text-align: center; color: var(--doux); background: var(--feuille); border: 1px dashed var(--trait-fort); border-radius: 16px; }

/* ---------- Boutons et champs */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--trait-fort); background: var(--feuille); color: var(--encre); font: 600 15px/1.2 var(--police);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.bouton:hover { border-color: var(--encre); }
.bouton:active { transform: translateY(1px); }
.bouton.plein { background: var(--lac); border-color: var(--lac); color: #fff; }
.bouton.plein:hover { background: var(--lac-fonce); border-color: var(--lac-fonce); }
.bouton.plein .doux { color: inherit; opacity: .85; font-weight: 500; }
.bouton.vert { color: var(--vert); border-color: color-mix(in srgb, var(--vert) 40%, white); }
.bouton.vert:hover { background: var(--vert-pale); border-color: var(--vert); }
.bouton.discret { border-color: transparent; background: transparent; color: var(--doux); padding-inline: 10px; }
.bouton.discret:hover { color: var(--encre); text-decoration: underline; }
.bouton[disabled] { opacity: .6; cursor: progress; }
.copier { border: 1px solid var(--trait-fort); background: var(--feuille); color: var(--lac); border-radius: 7px; padding: 5px 11px;
  font: 600 13px var(--police); cursor: pointer; white-space: nowrap; flex: none; }
.copier:hover { border-color: var(--lac); background: var(--lac-pale); }
.copier.ok { color: var(--vert); border-color: var(--vert); background: var(--vert-pale); }
.rangee { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

input, select, textarea { font: 400 15px/1.4 var(--police); color: var(--encre); background: var(--feuille); border: 1px solid var(--trait-fort);
  border-radius: 9px; padding: 9px 12px; min-height: 42px; width: 100%; }
input::placeholder, textarea::placeholder { color: #8b97a8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lac); box-shadow: 0 0 0 3px var(--lac-pale); }
textarea { resize: vertical; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
.case { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--doux); }
.case input { width: 18px; min-height: 18px; accent-color: var(--lac); }
.pile { display: grid; gap: 10px; }
.erreur { color: var(--rouge); font-weight: 600; }

/* ---------- Panneaux (coller une offre, ajouter une candidature, kit, coach) */
.panneau, .bloc { background: var(--feuille); border: 1px solid var(--trait); border-radius: 16px; padding: 24px; margin-bottom: 22px; }
.panneau h2 + p { margin-top: 6px; }
.panneau .pile, .panneau .grille-form { margin-top: 16px; }
.bloc-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.indeed { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--trait); }
.indeed summary { cursor: pointer; font-weight: 600; color: var(--lac); }
.indeed .petit { margin: 8px 0 12px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--lac-pale); border: 1px solid transparent;
  font: 600 14px var(--police); color: var(--lac-fonce); text-decoration: none; cursor: pointer; }
.puce:hover { border-color: var(--lac); }

/* ---------- Listes : choix de la liste + filtres */
.barre-liste { margin-bottom: 18px; }
.vues { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.vues a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--doux); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.vues a span { font-size: 13px; font-weight: 700; color: var(--doux); }
.vues a:hover { color: var(--encre); background: var(--feuille); }
.vues a.actif { background: var(--encre); color: #fff; }
.vues a.actif span { color: #b9c6d8; }
.filtres-boite > summary { display: none; }
.filtres { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(0, 1fr)) auto; gap: 8px; }
@media (max-width: 960px) { .filtres { grid-template-columns: 1fr 1fr 1fr; } .filtres input[type=search] { grid-column: 1 / -1; } }

/* ---------- Offres : une feuille, une ligne par offre, la note en grand */
.liste-offres { list-style: none; margin: 0; padding: 0; background: var(--feuille); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.offre { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 24px 26px; border-top: 1px solid var(--trait);
  transition: opacity .2s ease, transform .2s ease; }
.offre:first-child { border-top: 0; }
.offre.faite { opacity: .55; }
.offre.disparait { opacity: 0; transform: translateX(10px); }
.note { width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; font: 800 30px/1 var(--police);
  font-variation-settings: "wdth" 125; letter-spacing: -.03em; background: #eef2f6; color: var(--doux); }
.note.n-top { background: var(--rouge); color: #fff; }
.note.n-bon { background: var(--lac); color: #fff; }
.note.n-moyen { background: var(--lac-pale); color: var(--lac-fonce); }
.note.grande { width: 92px; height: 92px; font-size: 38px; border-radius: 18px; flex: none; }
.note.type { font-size: 14px; font-weight: 700; font-variation-settings: "wdth" 100; letter-spacing: 0; background: var(--lac-pale); color: var(--lac-fonce);
  text-align: center; line-height: 1.15; padding: 4px; }
.corps { min-width: 0; display: grid; gap: 8px; align-content: start; }
.titre { font: 700 20px/1.25 var(--police); font-variation-settings: "wdth" 104; letter-spacing: -.01em; color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
a.titre:hover { color: var(--lac); text-decoration: underline; text-underline-offset: 3px; }
.infos { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--doux); font-size: 15px; }
.infos strong { color: var(--encre); font-weight: 600; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #eef2f6; color: var(--doux); }
.etiquette.verte { background: var(--vert-pale); color: var(--vert); }
.etiquette.rouge { background: var(--rouge-pale); color: var(--rouge); }
.etiquette.bleue { background: var(--lac-pale); color: var(--lac-fonce); }
.resume { max-width: 72ch; }
.pourquoi { max-width: 72ch; padding-left: 12px; border-left: 3px solid var(--lac); color: var(--encre); font-size: 15px; }
.attention { max-width: 72ch; padding-left: 12px; border-left: 3px solid #e7b25a; color: var(--ambre); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }

/* ---------- Fiche d'une offre */
.retour { display: inline-block; margin-bottom: 18px; color: var(--doux); text-decoration: none; font-weight: 600; }
.retour:hover { color: var(--lac); }
.fiche { display: grid; gap: 14px; }
.fiche-tete { display: flex; gap: 22px; align-items: center; margin-bottom: 6px; }
.fiche-tete h1 { font-size: clamp(24px, 3.8vw, 34px); overflow-wrap: anywhere; }
.fiche-tete .infos { margin-top: 8px; }
.alerte-doublon { background: var(--rouge-pale); color: var(--rouge); padding: 14px 16px; border-radius: 12px; }
.alerte-doublon a { color: inherit; font-weight: 700; }
.alerte-ok { background: var(--vert-pale); color: var(--vert); padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.fiche > .actions { margin: 6px 0 12px; }
.kit { display: grid; gap: 22px; }
.kit-part { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--trait); }
.kit-part:first-child { padding-top: 0; border-top: 0; }
.kit-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kit-part ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.texte { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fond); border-radius: 10px; padding: 16px 18px; max-width: 78ch; }
.reponses { margin: 0; display: grid; gap: 14px; }
.reponses dt { font-weight: 700; }
.reponses dd { margin: 4px 0 0; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--fond);
  border-radius: 10px; padding: 12px 14px; }
.annonce summary { cursor: pointer; font-weight: 700; color: var(--lac); }
.annonce .texte { margin-top: 14px; color: var(--doux); background: none; padding: 0; }

/* ---------- Coach */
.chat { display: grid; gap: 14px; }
.fil-messages { display: grid; gap: 12px; max-height: 64vh; overflow-y: auto; }
.msg { padding: 12px 16px; border-radius: 16px; max-width: min(88%, 70ch); overflow-wrap: anywhere; }
.msg.user { justify-self: end; background: var(--lac); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg.assistant { justify-self: start; background: var(--fond); border-bottom-left-radius: 5px; }
.msg.assistant p + p, .msg.assistant ul, .msg.assistant ol, .msg.assistant pre { margin-top: 8px; }
.msg.assistant ul, .msg.assistant ol { padding-left: 20px; margin-bottom: 0; }
.msg.assistant pre { white-space: pre-wrap; background: var(--feuille); border: 1px solid var(--trait); border-radius: 10px; padding: 12px; font: 15px/1.5 var(--police); }
.msg.attente::after { content: "…"; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.saisie { display: grid; gap: 10px; }
.saisie .rangee { justify-content: space-between; }
.suggestion-titre { margin-bottom: -4px; }

/* ---------- Suivi */
.compteurs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--doux); }
.compteurs strong { color: var(--encre); }
.a-eviter { font-size: 14px; background: var(--rouge-pale); color: var(--rouge); padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; }
.a-eviter .doux { color: inherit; opacity: .85; }
.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grille-form .large { grid-column: 1 / -1; }
.liste-suivi { list-style: none; margin: 0 0 18px; padding: 0; background: var(--feuille); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.ligne-suivi { padding: 16px 20px 16px 22px; display: grid; gap: 8px; border-top: 1px solid var(--trait); box-shadow: inset 4px 0 0 var(--trait); }
.ligne-suivi:first-child { border-top: 0; }
.ligne-suivi:target { background: var(--lac-pale); }
.s-entretien { box-shadow: inset 4px 0 0 var(--rouge); }
.s-en_cours { box-shadow: inset 4px 0 0 var(--lac); }
.s-a_envoyer { box-shadow: inset 4px 0 0 #e7b25a; }
.s-envoyee { box-shadow: inset 4px 0 0 var(--vert); }
.s-embauche { box-shadow: inset 4px 0 0 var(--vert); background: var(--vert-pale); }
.s-refus, .s-ne_pas { opacity: .55; }
.ls-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ls-titre { display: grid; gap: 2px; min-width: 0; }
.ls-titre strong { font-size: 16px; overflow-wrap: anywhere; }
.ls-titre .infos { font-size: 14px; }
.code { justify-self: start; align-self: start; font: 700 13px var(--police); font-variation-settings: "wdth" 120; color: var(--lac-fonce); background: var(--lac-pale); padding: 4px 8px; border-radius: 6px; }
.statut-select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 14px; font-weight: 600; }
.ls-infos { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; color: var(--doux); overflow-wrap: anywhere; }
.relance { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ambre-pale);
  color: var(--ambre); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.notes { min-height: 38px; font-size: 14px; padding: 8px 12px; background: var(--fond); border-color: transparent; }
.notes:hover { border-color: var(--trait-fort); }

/* ---------- Connexion */
body.seul { background: linear-gradient(180deg, var(--lac-pale), var(--fond) 60%); }
body.seul .page { min-height: 100vh; display: grid; place-items: center; }
.carte-seule { width: min(400px, 100%); background: var(--feuille); border: 1px solid var(--trait); border-radius: 20px; padding: 32px; display: grid; gap: 14px; }
.carte-seule img { border-radius: 12px; }
.carte-seule h1 { font-size: 28px; }

/* ---------- Message flottant */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--encre); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); z-index: 50; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Téléphone */
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .entete-dedans { height: 56px; padding: 0 16px; justify-content: space-between; }
  .onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: auto; gap: 0; background: var(--feuille);
    border-top: 1px solid var(--trait); padding: 4px 6px max(6px, env(safe-area-inset-bottom)); }
  .onglets a { flex: 1; justify-content: center; height: 50px; padding: 0; border-bottom: 0; border-top: 3px solid transparent; font-size: 14.5px; }
  .onglets a.actif { border-top-color: var(--lac); color: var(--lac); }
  .page { padding: 24px 16px 110px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .intro { align-items: stretch; }
  .intro > .bouton, .intro > .rangee { width: 100%; }
  .intro > .rangee .bouton { flex: 1; }
  .filtres-boite > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--trait-fort); border-radius: 999px;
    background: var(--feuille); font-weight: 600; cursor: pointer; list-style: none; }
  .filtres-boite > summary::-webkit-details-marker { display: none; }
  .filtres-boite[open] > summary { margin-bottom: 10px; }
  .filtres { grid-template-columns: 1fr 1fr; }
  .filtres .bouton { grid-column: 1 / -1; }
  .liste-offres, .liste-suivi { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .offre { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 20px 16px; }
  .note { width: 54px; height: 54px; font-size: 22px; border-radius: 12px; }
  .note.grande { width: 68px; height: 68px; font-size: 28px; }
  .titre { font-size: 18px; }
  .actions .bouton.plein { flex: 1 1 100%; }
  .actions .bouton:not(.plein):not(.discret) { flex: 1 1 calc(50% - 8px); }
  .panneau, .bloc { padding: 18px; }
  .fiche-tete { gap: 14px; align-items: flex-start; }
  .grille-form { grid-template-columns: 1fr; }
  .ls-tete { grid-template-columns: auto minmax(0, 1fr); }
  .statut-select { grid-column: 1 / -1; width: 100%; }
  .ligne-suivi { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Aujourd'hui (plan du jour) */
.jour-tete { align-items: flex-end; }
.jauge { display: block; width: min(420px, 100%); height: 10px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--trait); overflow: hidden;
  appearance: none; -webkit-appearance: none; }
.jauge::-webkit-progress-bar { background: var(--trait); border-radius: 999px; }
.jauge::-webkit-progress-value { background: var(--vert); border-radius: 999px; }
.jauge::-moz-progress-bar { background: var(--vert); border-radius: 999px; }
.etape { margin-bottom: 36px; }
.etape-tete { margin-bottom: 14px; display: grid; gap: 4px; }
.etape-tete .doux { max-width: 70ch; }
.etape > h2 { margin-bottom: 14px; }
.etape > .petit { margin-top: 10px; }
.liste-simple { list-style: none; margin: 0; padding: 0; background: var(--feuille); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.liste-simple > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--trait);
  transition: opacity .2s ease; }
.liste-simple > li:first-child { border-top: 0; }
.liste-simple > li.disparait { opacity: 0; }
.liste-simple .rangee { justify-content: flex-end; }
@media (max-width: 680px) {
  .onglets a { font-size: 13px; }
  .liste-offres, .liste-simple { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .liste-simple > li { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .liste-simple .rangee { grid-column: 1 / -1; justify-content: stretch; }
  .liste-simple > li > :nth-child(3) { grid-column: 1 / -1; }
  .liste-simple .rangee > * { flex: 1; }
}
