/* PleniRH - charte V1 (maquettes de novembre 2026) : vert profond sur fond sable, police Geist.
   Charge apres plenirh.css : ne modifie que les jetons de couleur et les composants des maquettes. */

:root{
  /* Vert profond : actions, etats actifs */
  --teal:#1F6F54;--teal-700:#185A44;--teal-100:#DCEDE4;--teal-50:#EFF6F2;
  /* Bandeaux pleins (accueil salarie, page de connexion, hero public) */
  --plum-950:#0E3A2C;--plum-900:#1F6F54;--plum-800:#235F49;--plum-700:#2C7A5E;--plum-600:#3C8B6E;
  /* Fonds et lignes */
  --cream:#F6F5F1;--cream-200:#EDEBE4;--line:#E6E3DB;--card:#FFFFFF;
  /* Encre et textes */
  --ink:#1C1917;--text:#3F3B37;--muted:#6F6A64;
  /* Accents */
  --gold:#D97706;--gold-100:#FDF0D5;--gold-900:#92400E;
  --warn:#B45309;--warn-100:#FDF0D5;--danger:#B42318;--danger-100:#FDE4E1;--ok:#1F6F54;--ok-100:#DCEDE4;
  --shadow:0 1px 2px rgba(28,25,23,.04),0 4px 14px rgba(28,25,23,.05);
  --font:"Geist","Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --noir:#111827;
}

/* Menu lateral clair, pastille verte sur l'entree active */
.side{background:#fff;color:var(--text);border-right:1px solid var(--line)}
.side .brand{color:var(--ink)}
.side nav a{color:var(--text)}
.side nav a:hover{background:var(--cream);color:var(--ink)}
.side nav a.active{background:var(--teal-100);color:var(--teal);font-weight:600}
.side nav .sep{color:var(--muted)}
.side .bottom{border-top-color:var(--line)}
.side .count{background:var(--gold-100);color:var(--gold-900)}
.side .link-btn{color:var(--text) !important;text-decoration:none}
.side .link-btn:hover{color:var(--ink) !important}
.side svg{opacity:1}

/* Tableaux : entete sur fond blanc, lignes fines */
table.t th{background:#fff;color:var(--muted);text-transform:none;font-size:13px;letter-spacing:0}
table.t tr:hover td{background:var(--cream)}

/* Selection du calendrier : noir pour la premiere periode, vert pour la seconde */
.cal button.sel{background:var(--noir);color:#fff}
.cal button.sel.t1{background:var(--teal)}
.cal button.sel.t2{background:var(--gold);color:#fff}

/* Paires libelle / valeur des fiches (maquette 3) */
.dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px}
.dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:13px 2px;border-bottom:1px solid var(--line)}
.dl>div span{display:inline;font-size:14.5px;color:var(--muted)}
.dl>div strong{text-align:right}

/* RV-09 : meme hauteur, bordure, arrondi et police sur tous les champs */
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],
input[type=date],input[type=datetime-local],input[type=month],input[type=url],input[type=search],
select,textarea,.rte-ed{
  font:15px var(--font);line-height:22px;color:var(--ink);background:#fff;
  border:1px solid var(--line);border-radius:12px;padding:11px 14px;min-height:46px;
  box-sizing:border-box;width:100%;
}
select{
  -webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F6A64' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}
select::-ms-expand{display:none}
input[type=file]{border:1px dashed var(--line);border-radius:12px;padding:11px 14px;min-height:46px;width:100%;background:#fff}
.seg label{border-color:var(--line)}

/* Recherche en pastille (maquettes 2 et 11) */
.search-pill{position:relative;flex:1;min-width:220px}
.search-pill input{border-radius:999px;padding-left:42px}
.search-pill::before{content:"";position:absolute;left:15px;top:50%;width:16px;height:16px;transform:translateY(-50%);
  background:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6A64' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat center;pointer-events:none}

/* Filtres en pastilles (maquette 11) */
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:9px 16px;font:600 14px var(--font);color:var(--ink);text-decoration:none;min-height:40px;white-space:nowrap}
.chip:hover{border-color:var(--teal);text-decoration:none;color:var(--teal)}
.chip.on{background:var(--teal);border-color:var(--teal);color:#fff}
.chip .n{opacity:.7;font-weight:600}

/* Bandeau d'accueil du salarie (maquette 4) */
.hero-me{background:var(--teal);color:#fff;border-radius:18px;padding:30px 34px;margin:0 0 26px;
  display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.hero-me .ent{color:#CFE5DB;font-size:15px;margin:0}
.hero-me h1{color:#fff;font-size:36px;margin:4px 0 0;letter-spacing:-.02em}
.hero-me .solde{min-width:320px;flex:1;max-width:460px}
.hero-me .solde .t{font-size:17px;color:#EAF4EF}
.hero-me .solde .t b{font-size:26px;font-weight:800;color:#fff}
.hero-me .solde .b{height:8px;border-radius:8px;background:rgba(255,255,255,.25);overflow:hidden;margin:12px 0 8px}
.hero-me .solde .b span{display:block;height:100%;background:#fff;border-radius:8px}
.hero-me .solde .s{color:#CFE5DB;font-size:13.5px}

/* Liste d'actions rapides (maquette 4) */
.actions-list{display:flex;flex-direction:column}
.action-line{display:flex;align-items:center;gap:14px;padding:16px 2px;border-bottom:1px solid var(--line);
  color:var(--ink);text-decoration:none;font-weight:600;font-size:16px}
.action-line:last-child{border-bottom:0}
.action-line .ic{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:var(--teal-50);color:var(--teal);
  display:flex;align-items:center;justify-content:center}
.action-line .go{margin-left:auto;color:var(--muted);font-size:20px;line-height:1}
.action-line:hover{text-decoration:none;color:var(--teal)}

/* Suivi des demandes (maquette 4) */
.suivi{list-style:none;margin:0;padding:0}
.suivi li{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.suivi li:last-child{border-bottom:0}
.suivi .pt{width:10px;height:10px;border-radius:50%;margin-top:7px;flex:0 0 10px;background:var(--teal)}
.suivi .pt.att{background:var(--gold)}
.suivi .pt.ko{background:var(--danger)}
.suivi .t{font-weight:600;color:var(--ink)}
.suivi .s{font-size:13.5px;color:var(--muted)}

/* Titre de section a la maniere des maquettes */
.sec-t{font-size:17px;font-weight:700;color:var(--ink);margin:0 0 6px}

/* RV-10 : editeur de mise en forme des offres */
.rte{margin:0}
.rte-bar{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px}
.rte-bar button{min-width:34px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;
  background:#fff;cursor:pointer;font:14px var(--font);color:var(--ink);line-height:1}
.rte-bar button:hover{border-color:var(--teal)}
.rte-ed{min-height:120px;overflow:auto}
.rte-ed:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px var(--teal-100)}
.rte-ed p{margin:0 0 8px}
.rte-ed h3,.rte-ed h4{margin:10px 0 6px}
.rte-ed ul,.rte-ed ol{margin:0 0 8px;padding-left:22px}
.offre-texte p{margin:0 0 10px}
.offre-texte ul,.offre-texte ol{margin:0 0 10px;padding-left:22px}
.offre-texte h3,.offre-texte h4{margin:14px 0 6px}

/* RV-19 / RV-20 : synthese en tete de la liste des salaries */
.synthese{display:flex;flex-wrap:wrap;gap:10px 26px;align-items:baseline;margin:0 0 14px}
.synthese .s-item{display:flex;gap:6px;align-items:baseline}
.synthese .s-val{font-weight:700;font-size:18px;color:var(--ink)}
.synthese .s-lab{font-size:13.5px;color:var(--muted)}

/* RV-22 : suggestions de recherche */
.suggest-wrap{position:relative}
.suggest{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);background:#fff;
  border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 24px rgba(0,0,0,.10);overflow:hidden;display:none}
.suggest.on{display:block}
.suggest a{display:flex;gap:10px;align-items:center;padding:10px 14px;color:var(--ink);text-decoration:none;font-size:14.5px}
.suggest a:hover,.suggest a.sel{background:var(--teal-50)}
.suggest .m{margin-left:auto;color:var(--muted);font-size:13px}

/* RV-23 : recherche et filtres dans deux zones distinctes */
.zone-recherche{margin-bottom:10px}
.zone-filtres{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}

@media (max-width:980px){
  .side{background:#fff}
  .hero-me{padding:22px;border-radius:16px}
  .hero-me h1{font-size:26px}
  .hero-me .solde{min-width:0}
  .dl>div{padding:11px 0}
}

/* ═══════ RV-48 : disposition « Clarte » du modele retenu (1-maquettes-HTML/02-Tableau-de-bord-ordinateur.html)
   Fond des pages blanc, menu lateral sable, indicateurs dans un seul bandeau, blocs sans cadre ni ombre. */
:root{
  --cream:#F6F5F1;--cream-200:#F2F1ED;--line:#E7E5E0;--sep:#F2F1ED;
  --ink:#1C1917;--text:#1C1917;--muted:#78716C;--menu:#57534E;
  --teal:#1F6F54;--teal-700:#174F3D;--teal-100:#E8F2EC;--teal-50:#E8F2EC;
  --radius:12px;--radius-sm:8px;--shadow:none;
}
body{background:#FFFFFF}

/* Menu lateral : fond sable, bordure a droite, entree active en vert clair */
.side{background:var(--cream);border-right:1px solid var(--line)}
.side nav a{color:var(--menu);font-size:14px;padding:9px 10px;min-height:36px;border-radius:8px}
.side nav a.active{background:var(--teal-100);color:var(--teal-700);font-weight:600}
.side .bottom{border-top-color:var(--line)}

/* Echelle de la maquette : titre de page 28 px, titre de section 15 px, boutons arrondis 8 px */
h1{font-size:28px;font-weight:600;letter-spacing:-.02em}
h2{font-size:19px;font-weight:600}
.btn{border-radius:8px;font:500 14px var(--font);min-height:40px;padding:0 16px}
/* Charte : champs de saisie et listes deroulantes de 48 px, arrondi 10 px, bordure #D6D3CC */
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],
input[type=date],input[type=datetime-local],input[type=month],input[type=url],input[type=search],
select,textarea,.rte-ed,input[type=file]{min-height:48px;border-radius:10px;border-color:#D6D3CC}
textarea,.rte-ed{min-height:96px}
.btn-sm{min-height:32px;padding:0 12px;font-size:13px;border-radius:8px}
.btn-ok{background:var(--teal)}.btn-ok:hover{background:var(--teal-700)}
.btn-ghost{border-color:var(--line);color:var(--ink)}
.badge{background:var(--cream-200);color:var(--ink)}
.card{box-shadow:none}

/* Indicateurs : un seul bandeau encadre, separes par des traits verticaux */
.kpi-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:28px}
.kpi-band>div{min-width:0;padding:18px 20px;display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line)}
.kpi-band>div:last-child{border-right:0}
.kpi-band .label{font-size:13px;color:var(--muted)}
.kpi-band .value{font-size:26px;font-weight:600;color:var(--ink);letter-spacing:-.02em;line-height:1.15}
.kpi-band .hint{font-size:13px;color:var(--muted)}
.kpi-band .hint.warn{color:var(--warn)}
.kpi-band .hint a{color:inherit;text-decoration:none}

/* Blocs sans cadre ni ombre : titre de section 15 px 600, lignes separees par un trait fin */
.sec{display:flex;flex-direction:column;margin-bottom:28px;min-width:0}
.sec .sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:8px}
.sec .sec-h h2{margin:0;font-size:15px;font-weight:600}
.sec .sec-h .n{color:var(--muted);font-weight:500}
.sec .sec-h a{font-size:13px;font-weight:500}
.sec .row{padding:14px 0;border-top:1px solid var(--sep)}
.sec .row:first-of-type{border-top:1px solid var(--sep)}
.sec .row:last-of-type{border-bottom:1px solid var(--sep)}
.sec .empty{padding:16px 0;text-align:left;border-top:1px solid var(--sep);border-bottom:1px solid var(--sep)}
.sec .offer{padding:12px 0;border-top:1px solid var(--sep)}
.sec .offer+.offer{border-top:1px solid var(--sep)}
.sec .offer:last-child{border-bottom:1px solid var(--sep)}
.sec-col{display:flex;flex-direction:column;min-width:0}

/* RV-51 : guide de demarrage reduit a une seule ligne a partir de 5 etapes sur 6 */
.guide-ligne{display:flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid var(--line);border-radius:12px;
  margin-bottom:28px;color:var(--ink);font-size:14px;text-decoration:none}
.guide-ligne:hover{border-color:var(--teal);color:var(--teal);text-decoration:none}
.guide-ligne b{font-weight:600}
.guide-ligne .go{margin-left:auto;font-size:16px;line-height:1}

/* RV-49 : barre du haut, recherche (Ctrl K) et notifications */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:60px;
  margin:-34px -40px 24px;padding:0 40px;border-bottom:1px solid var(--line);background:#fff}
.topbar .rech{flex:1;max-width:420px;min-width:0;position:relative}
.topbar .rech .box{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid var(--line);
  border-radius:8px;color:var(--muted);background:#fff;margin:0;font-weight:400}
.topbar .rech .box svg{width:16px;height:16px;flex:0 0 16px}
.topbar .rech input{border:0;outline:none;flex:1;min-width:0;height:34px;min-height:0;padding:0;font-size:14px;
  color:var(--ink);background:transparent;border-radius:0}
.topbar .rech input:focus{box-shadow:none;border:0}
.topbar .rech .box:focus-within{border-color:var(--teal)}
.topbar .rech kbd{font:12px var(--font);border:1px solid var(--line);border-radius:4px;padding:1px 6px;color:var(--muted)}
.topbar .fin{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.topbar .bell{width:36px;height:36px;border-radius:8px}
.topbar .qui{white-space:nowrap}

@media (max-width:980px){
  .kpi-band{grid-template-columns:1fr 1fr}
  .kpi-band>div:nth-child(2n){border-right:0}
  .kpi-band>div:nth-child(1),.kpi-band>div:nth-child(2){border-bottom:1px solid var(--line)}
  .kpi-band .value{font-size:22px}
  .side{background:var(--cream)}
  .topbar{margin:0 -16px 16px;padding:0 16px;height:52px}
  .topbar .qui,.topbar kbd{display:none}
  /* Telephone : zones tactiles d'au moins 44 px (charte) */
  .btn{min-height:50px;border-radius:12px;font-size:15px;padding:0 18px}
  .btn-sm{min-height:44px;font-size:14px;border-radius:10px}
}

/* ═══════ RV-55 a RV-57 : ecran « Indemnite kilometrique » (maquette 14) */
.grid.g-km{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.carte-trajet{display:block;width:100%;height:240px;object-fit:cover;border:1px solid var(--line);border-radius:12px;background:var(--cream-200)}
@media (max-width:980px){.grid.g-km{grid-template-columns:1fr}.carte-trajet{height:190px}}
.resume-km{margin:14px 0 4px}
.resume-km>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:11px 0;border-top:1px solid var(--sep)}
.resume-km>div:last-child{border-bottom:1px solid var(--sep)}
.resume-km dt{color:var(--muted);font-size:14px}
.resume-km dd{margin:0;text-align:right;font-weight:600;color:var(--ink)}
.resume-km dd.gros{font-size:20px}
.etape{position:relative}

/* RV-83 */
tr[data-lien]{cursor:pointer}

/* RV-81 : une seule cloche sur telephone, celle du bandeau du haut. */
@media (max-width: 980px){ .topbar .bell{display:none} }

/* RV-82 : le graphique porte son nom, un axe gradue et la valeur au survol ou au toucher. */
.chart-zone{display:flex;gap:8px;align-items:stretch}
.chart-axe{display:flex;flex-direction:column;justify-content:space-between;min-width:26px;text-align:right;font-size:11px;color:var(--muted);height:120px;padding-top:6px}
.chart-zone .chart-bars{flex:1;background-image:linear-gradient(to top,var(--line) 1px,transparent 1px),linear-gradient(to top,transparent calc(50% - 1px),var(--line) calc(50% - 1px),var(--line) 50%,transparent 50%)}
.chart-bars div b{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin-bottom:6px;padding:2px 7px;border-radius:7px;background:var(--ink);color:#fff;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.chart-bars div:hover b,.chart-bars div:focus b,.chart-bars div:focus-within b{opacity:1}
.chart-lbl{padding-left:34px}

/* RV-84 : la langue se choisit dans une seule liste deroulante, haute de 36 px. */
.langs{position:relative;display:inline-block}
.langs > summary{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:1px solid var(--line,#E6E3DB);border-radius:999px;background:#fff;color:var(--ink,#1F1F1F);font-weight:600;font-size:12.5px;cursor:pointer;list-style:none;white-space:nowrap}
.langs > summary::-webkit-details-marker{display:none}
.langs > summary::marker{content:''}
.langs .fleche{font-size:10px;color:var(--muted,#6F6A64)}
.langs .liste{position:absolute;right:0;top:calc(100% + 6px);min-width:180px;background:#fff;border:1px solid var(--line,#E6E3DB);border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.08);padding:4px;z-index:60}
.langs .liste .lang{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;color:var(--ink,#1F1F1F);text-decoration:none;font-size:13px}
.langs .liste .lang:hover{background:var(--teal-100,#DCEDE4)}
.langs .liste .lang.on{font-weight:700}
.langs .liste .nom{color:var(--muted,#6F6A64)}
.langs .dr{display:inline-flex;line-height:0}
.langs .dr svg{display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}

/* RV-85 : le menu de gauche se reduit a une bande d icones, et le choix est garde. */
.side{position:relative}
.reduire{position:absolute;top:14px;right:10px;width:26px;height:26px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.reduire:hover{background:rgba(255,255,255,.22)}
html.menu-reduit .side{width:64px;flex:0 0 64px;padding-left:8px;padding-right:8px;align-items:center}
html.menu-reduit .side .brand-mot{display:none}
html.menu-reduit .side .reduire{position:static;margin:4px auto 12px;transform:rotate(180deg)}
html.menu-reduit .side nav a{justify-content:center;gap:0;padding:11px 0;font-size:0}
html.menu-reduit .side nav a svg{flex:0 0 18px}
html.menu-reduit .side .count{display:none}
html.menu-reduit .side .sep{font-size:0;height:1px;padding:0;margin:12px 6px;letter-spacing:0;background:rgba(255,255,255,.14)}
html.menu-reduit .side .bottom a{justify-content:center;gap:0;padding:11px 0;font-size:0}
html.menu-reduit .side .bottom form button{font-size:0;justify-content:center}
html.menu-reduit .reduire{background:rgba(255,255,255,.2)}
@media (max-width:980px){.reduire{display:none}html.menu-reduit .side{width:auto;flex:none}html.menu-reduit .side nav a{justify-content:flex-start;gap:10px;padding:11px 14px;font-size:15px}html.menu-reduit .side .brand-mot{display:inline}}

/* RV-86 : un module non souscrit reste visible, grise et cadenasse. */
.side nav a.bloque{opacity:.5}
.side nav a.bloque:hover{opacity:.75}
.side nav a.bloque .cadenas{margin-left:auto;font-size:11px;line-height:1}
html.menu-reduit .side nav a.bloque .cadenas{display:none}
