/* Site de gestion agricole – style moderne et épuré */

:root {
  --fond: #f5f6f3;
  --surface: #ffffff;
  --texte: #1f2a1f;
  --doux: #66705f;
  --ligne: #e1e4dc;
  --accent: #3f6b3a;       /* vert verger */
  --accent-clair: #e8f0e5;
  --danger: #a33a2a;
  --rayon: 12px;
  --barre: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: var(--fond);
  color: var(--texte);
}
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 20;
  height: var(--barre);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--ligne);
}
.logo { font-weight: 700; color: var(--texte); text-decoration: none; white-space: nowrap; }
.menu-haut { display: flex; gap: .25rem; overflow-x: auto; }
.menu-haut a, .menu-haut span {
  padding: .45rem .8rem; border-radius: 8px;
  text-decoration: none; color: var(--doux); white-space: nowrap;
}
.menu-haut a:hover { background: var(--fond); color: var(--texte); }
.menu-haut a.actif { background: var(--accent-clair); color: var(--accent); font-weight: 600; }
.menu-haut .bientot { opacity: .45; cursor: default; }
.bouton-menu {
  display: none; border: 0; background: none; font-size: 1.4rem; cursor: pointer; padding: .25rem;
}

/* Cadre : menu gauche + contenu */
.cadre { display: flex; min-height: calc(100vh - var(--barre)); }
.menu-gauche {
  width: 220px; flex-shrink: 0;
  padding: 1rem .75rem;
  background: var(--surface);
  border-right: 1px solid var(--ligne);
}
.menu-gauche a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; margin-bottom: 2px; border-radius: 8px;
  text-decoration: none; color: var(--texte);
}
.menu-gauche a:hover { background: var(--fond); }
.menu-gauche a.actif { background: var(--accent-clair); color: var(--accent); font-weight: 600; }
.menu-gauche .ic { width: 1.4em; text-align: center; }
.contenu { flex: 1; min-width: 0; padding: 1.5rem; max-width: 1200px; }

/* Messages */
.message {
  background: var(--accent-clair); color: var(--accent);
  padding: .75rem 1rem; border-radius: var(--rayon); margin-bottom: 1rem;
}
.erreurs {
  background: #fbecea; color: var(--danger);
  padding: .75rem 1rem; border-radius: var(--rayon); margin-bottom: 1rem;
}
.erreurs p { margin: .2rem 0; }
.vide { color: var(--doux); }

/* ---------- Accueil ---------- */
.accueil { max-width: 1120px; }
.accueil-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1.25rem; }
.accueil-tete h1 { font-size: 1.75rem; margin: 0; letter-spacing: -.01em; }
.accueil-date { margin: .15rem 0 0; color: var(--doux); }
.accueil-grille { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.meteo-compacte { margin-bottom: 1rem; }
.jour-colonnes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 2rem; }
.jour-colonnes > div > .jour-sous-titre:first-child { margin-top: .2rem; }
.accueil-section { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin: 1.75rem 0 .75rem; }

.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.1rem 1.25rem 1.2rem; box-shadow: 0 1px 2px rgba(31,42,31,.04); }
.carte-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.carte-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); font-weight: 700; }
.carte-info { color: var(--doux); font-size: .82rem; text-align: right; }
.carte-lien { display: inline-flex; align-items: center; gap: .15rem; font-size: .88rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.carte-note { color: var(--doux); font-size: .85rem; margin: .6rem 0 0; }
.ico { flex-shrink: 0; }

/* Aujourd'hui */
.rappel { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .8rem; border-radius: 12px; margin-bottom: .9rem; }
.rappel strong { display: block; font-size: .93rem; }
.rappel span { font-size: .85rem; }
.rappel-ok { background: var(--accent-clair); color: var(--accent); }
.rappel-attention { background: #fbefd9; color: #8a5a12; }
.rappel-attention a { color: inherit; font-weight: 600; }
.jour-sous-titre { display: flex; align-items: center; gap: .4rem; font-size: .92rem; margin: .9rem 0 .45rem; color: var(--texte); }
.jour-sous-titre span { margin-left: auto; color: var(--doux); font-weight: 400; font-size: .82rem; }
.jour-carte .vide { font-size: .9rem; margin: 0; }
.equipe, .chantiers-jour { list-style: none; margin: 0; padding: 0; }
.equipe li { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; padding: .45rem 0; border-top: 1px solid #f0f2ec; }
.equipe li:first-child { border-top: 0; }
.eq-nom { font-weight: 600; min-width: 8.5rem; font-size: .92rem; }
.eq-taches { display: flex; flex-wrap: wrap; gap: .3rem; }
.puce { font-size: .78rem; padding: .15rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, white); color: color-mix(in srgb, var(--c) 70%, black); border: 1px solid color-mix(in srgb, var(--c) 30%, white); white-space: nowrap; }
.chantiers-jour li { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; border-top: 1px solid #f0f2ec; font-size: .92rem; }
.chantiers-jour li:first-child { border-top: 0; }
.chantiers-jour i { width: .6rem; height: .6rem; border-radius: 3px; flex-shrink: 0; }
.cj-nom { font-weight: 600; color: var(--texte); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cj-nom:hover { color: var(--accent); }
.cj-quand { margin-left: auto; color: var(--doux); font-size: .82rem; white-space: nowrap; }

/* Vue d'ensemble Gestion */
.tuiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tuile {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  padding: 1rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  text-decoration: none; color: var(--texte);
}
.tuile:hover { border-color: var(--accent); }
.tuile-icone { font-size: 1.6rem; }
.tuile-nom { font-weight: 600; }
.tuile-n { color: var(--doux); font-variant-numeric: tabular-nums; }

/* Listes */
.titre-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.titre-ligne h1 { margin: 0; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0 0 1rem; }
.compte { color: var(--doux); font-size: .9rem; margin-left: auto; }
table.liste {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden;
}
.liste th, .liste td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.liste th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--doux); background: #fafbf8; }
.liste tr:last-child td { border-bottom: 0; }
.liste td.boutons { white-space: nowrap; text-align: right; }
.liste td.boutons form { display: inline; margin-left: .75rem; }

/* Boutons */
.principal, button.principal {
  display: inline-block; border: 0; cursor: pointer;
  padding: .65rem 1.1rem; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none;
}
.principal:hover { filter: brightness(1.08); }
.secondaire { padding: .65rem 1rem; color: var(--doux); text-decoration: none; }
.lien-discret, .lien-danger { border: 0; background: none; padding: 0; cursor: pointer; font-size: 1rem; color: var(--doux); }
.lien-danger { color: var(--danger); }
.lien-discret:hover, .lien-danger:hover { text-decoration: underline; }

/* Fiche (formulaire) */
.fil { margin: 0 0 .5rem; }
.fil a { text-decoration: none; }
.fiche {
  display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.25rem;
}
.champ { display: flex; flex-direction: column; gap: .3rem; }
.champ label { font-weight: 600; font-size: .92rem; }
.champ .unite { font-weight: 400; color: var(--doux); }
.champ small { color: var(--doux); font-size: .82rem; }
.champ:has(textarea) { grid-column: 1 / -1; }
.champ.en-erreur input, .champ.en-erreur select { border-color: var(--danger); }
input, select, textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; color: var(--texte);
  min-height: 44px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-clair); border-color: var(--accent); }
.filtres select { width: auto; }
label.case { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
label.case input { width: 1.2rem; min-height: 0; height: 1.2rem; }
.fiche .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Pièces du matériel */
.bloc { margin-top: 1.5rem; }
.ajout-piece {
  display: grid; gap: .5rem; grid-template-columns: 1fr 1fr 1.5fr auto; margin-top: .75rem;
}
.aide-bas { color: var(--doux); font-size: .9rem; }

/* Compte dans la barre */
.compte-barre { margin-left: auto; display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.compte-barre form { margin: 0; }
.nom-utilisateur { color: var(--texte); text-decoration: none; font-weight: 600; }
.pastille { font-size: .75rem; background: var(--accent-clair); color: var(--accent); padding: .1rem .45rem; border-radius: 99px; }
.role { font-size: .85rem; padding: .15rem .55rem; border-radius: 99px; background: var(--fond); }
.role-gestion { background: var(--accent-clair); color: var(--accent); font-weight: 600; }
.fiche.etroite { max-width: 640px; grid-template-columns: 1fr; }

/* Pages sans menus : connexion, premier compte */
body.page-simple { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.carte-simple {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 2rem 1.5rem;
}
.carte-simple h1 { margin-bottom: .25rem; }
.sous-titre { color: var(--doux); margin: 0 0 1.25rem; }
.formulaire-simple { display: flex; flex-direction: column; gap: .4rem; }
.formulaire-simple label { font-weight: 600; font-size: .92rem; margin-top: .5rem; }
.formulaire-simple label.case { font-weight: 400; margin: .75rem 0 .25rem; }
.principal.large { width: 100%; margin-top: .75rem; padding: .85rem; font-size: 1.05rem; }
.note { color: var(--doux); font-size: .88rem; margin: 1.25rem 0 0; }

/* Divers formulaires */
.pastille-couleur { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: 6px; border: 1px solid var(--ligne); vertical-align: middle; }
input.couleur { padding: .2rem; width: 5rem; height: 44px; }
.secondaire-bouton {
  display: inline-block; cursor: pointer; padding: .6rem 1rem; border-radius: 10px; font: inherit; font-weight: 600;
  background: var(--surface); color: var(--accent); border: 1px solid var(--accent); text-decoration: none;
}
.zone-suppression { margin-top: 1.25rem; }
.large-champ { grid-column: 1 / -1; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.sous { font-weight: 400; color: var(--doux); font-size: 1rem; }

/* Barre de navigation (semaine / année) */
.nav-semaine { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .25rem 0 1rem; }
.nav-semaine form { margin: 0; }
.bouton-nav {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .8rem;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; color: var(--texte); text-decoration: none; font-weight: 600;
}
.bouton-nav:hover { border-color: var(--accent); }
.aller-a input { width: auto; }
.copier { margin-left: auto !important; }
.mode { display: inline-block; padding: .3rem .75rem; border-radius: 99px; background: var(--accent-clair); color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0; }
.mode-recolte { background: #fbefd9; color: #8a5a12; }
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 .9rem; color: var(--doux); font-size: .88rem; }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende i { width: .85rem; height: .85rem; border-radius: 4px; display: inline-block; }
.bascule { display: inline-flex; border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; background: var(--surface); }
.bascule a { padding: 0 .9rem; line-height: 42px; text-decoration: none; color: var(--doux); }
.bascule a.actif { background: var(--accent-clair); color: var(--accent); font-weight: 600; }
.filtres-gantt { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtres-gantt select { width: auto; }

/* Grille de la semaine */
.grille-defile { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); }
table.grille { border-collapse: collapse; width: 100%; min-width: 960px; table-layout: fixed; }
.grille th, .grille td { border-bottom: 1px solid var(--ligne); border-left: 1px solid var(--ligne); padding: .35rem; vertical-align: top; }
.grille thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--doux); background: #fafbf8; text-align: left; padding: .55rem .5rem; }
.grille thead th span { color: var(--texte); font-size: 1rem; text-transform: none; margin-left: .2rem; }
.grille .col-salarie { width: 150px; text-align: left; font-weight: 600; border-left: 0; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.grille thead .col-salarie { background: #fafbf8; }
.grille .col-salarie small { display: block; font-weight: 400; color: var(--doux); font-size: .8rem; }
.grille .col-total { width: 64px; text-align: right; color: var(--doux); font-variant-numeric: tabular-nums; }
.grille td { min-height: 64px; }
.grille .weekend { background: #fafbf8; }
.grille .aujourdhui { background: #f2f7ef; }
.grille thead th.aujourdhui span { color: var(--accent); }
.grille tbody tr:last-child > * { border-bottom: 0; }
.tache {
  display: block; margin-bottom: .3rem; padding: .3rem .45rem; border-radius: 7px; text-decoration: none; color: var(--texte);
  background: color-mix(in srgb, var(--c) 13%, white); border-left: 4px solid var(--c); font-size: .84rem; line-height: 1.3;
}
a.tache:hover { background: color-mix(in srgb, var(--c) 22%, white); }
.b-h { font-weight: 700; }
.b-s { display: block; color: color-mix(in srgb, var(--c) 75%, black); font-size: .76rem; font-weight: 600; }
.b-d { display: block; color: var(--doux); font-size: .74rem; }
.grille .ajout { display: block; text-align: center; color: var(--doux); text-decoration: none; border: 1px dashed var(--ligne); border-radius: 7px; line-height: 1.6; opacity: .55; }
.grille td:hover .ajout { opacity: 1; border-color: var(--accent); color: var(--accent); }
.vue-jours { display: none; }

/* Gantt */
.gantt {
  --libelle: 230px; margin-bottom: .75rem;
  overflow-x: auto; position: relative; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface);
}
.g-tete, .g-ligne { display: flex; width: calc(var(--libelle) + var(--largeur)); }
.g-tete { position: sticky; top: 0; z-index: 4; background: #fafbf8; border-bottom: 1px solid var(--ligne); height: 46px; }
.g-coin, .g-libelle {
  position: sticky; left: 0; z-index: 3; width: var(--libelle); flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--ligne);
}
.g-coin { background: #fafbf8; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--doux); padding: .8rem; font-weight: 600; }
.g-echelle { position: relative; width: var(--largeur); flex-shrink: 0; }
.g-mois { position: absolute; top: 0; height: 24px; padding: 4px 6px; font-size: .8rem; font-weight: 600; color: var(--texte); border-left: 1px solid var(--ligne); white-space: nowrap; overflow: hidden; }
.g-sem { position: absolute; top: 24px; font-size: .7rem; color: var(--doux); padding-left: 3px; border-left: 1px solid #eef0ea; height: 22px; line-height: 22px; }
.g-corps { position: relative; }
.g-fonds { position: absolute; top: 0; bottom: 0; left: var(--libelle); width: var(--largeur); pointer-events: none; }
.g-recolte { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #fbefd9 0 6px, #fdf6ea 6px 12px); }
.g-trait { position: absolute; top: 0; bottom: 0; border-left: 1px solid #eef0ea; }
.g-aujourdhui { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--danger); opacity: .6; }
.g-ligne { height: var(--ligne); border-bottom: 1px solid #f0f2ec; }
.g-libelle { display: flex; flex-direction: column; justify-content: center; padding: 0 .75rem; text-decoration: none; color: var(--texte); overflow: hidden; }
a.g-libelle:hover .g-nom { color: var(--accent); text-decoration: underline; }
.g-nom { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-libelle small { color: var(--doux); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .3rem; }
.g-libelle small i { width: .6rem; height: .6rem; border-radius: 3px; flex-shrink: 0; }
.g-piste { position: relative; width: var(--largeur); flex-shrink: 0; }
.g-barre {
  position: absolute; top: 8px; height: 24px; border-radius: 6px; background: var(--c); z-index: 2;
  color: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap;
  display: flex; align-items: center; padding: 0 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.g-barre.termine { background: repeating-linear-gradient(135deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 70%, white) 5px 10px); opacity: .7; }
a.g-barre:hover { filter: brightness(1.1); }
.g-barre span { overflow: hidden; text-overflow: ellipsis; }
.g-fleches { position: absolute; top: 0; left: var(--libelle); pointer-events: none; z-index: 1; overflow: visible; }
.g-barre { z-index: 3 !important; }
.g-libelle { z-index: 4 !important; }
.g-lien path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.g-lien .halo { stroke: #fff; stroke-width: 5; opacity: .85; }
.g-lien .trait { stroke: #4f6b48; stroke-width: 1.8; }
.g-lien.chevauchement .trait { stroke-dasharray: 5 4; }
.g-lien.probleme .trait { stroke: #c0392b; stroke-width: 2.2; }
.l-recolte { background: repeating-linear-gradient(45deg, #f3d9a8 0 3px, #fdf6ea 3px 6px); }
.l-fleche { height: 2px !important; border-radius: 0 !important; background: #4f6b48; width: 1.4rem !important; }
.l-fleche.pointillé { background: repeating-linear-gradient(90deg, #4f6b48 0 5px, transparent 5px 9px); }

/* Fiche chantier : enchaînements */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.25rem; }
.dep { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--ligne); }
.dep:last-child { border-bottom: 0; }
.dep small { display: block; color: var(--doux); }
.dep form { margin: 0; }
.ajout-dep { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.ajout-dep select { width: auto; flex: 1 1 180px; }
.decalage { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.decalage input { width: 4.5rem; text-align: center; }
.cases-parcelles { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .25rem 0; }
.cases-parcelles .case { font-weight: 400; }

/* Saisie des heures (page autonome, téléphone d'abord) */
body.page-saisie { background: var(--fond); }
.saisie-tete {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  height: 52px; padding: 0 1rem; background: var(--surface); border-bottom: 1px solid var(--ligne);
}
.saisie-retour { text-decoration: none; font-weight: 600; }
.saisie { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.saisie h1 { font-size: 1.5rem; margin: .5rem 0 .25rem; }
.saisie-jour { display: flex; gap: .5rem; align-items: center; }
.saisie-jour form { flex: 1; margin: 0; }
.saisie-jour input { width: 100%; text-align: center; font-weight: 600; }
.bouton-nav.inactif { opacity: .35; }
.etat { color: var(--doux); font-size: .92rem; margin: .25rem 0 1rem; }
.etat-realise { color: var(--accent); font-weight: 600; }
.carte-salarie { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: .75rem; margin-bottom: .75rem; }
.carte-salarie.en-erreur, .carte-salarie.trop { border-color: var(--danger); }
.carte-salarie.sans-ligne { background: #fafbf8; }
.cs-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.cs-nom { font-weight: 700; font-size: 1.05rem; }
.cs-total { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.sans-ligne .cs-total { color: var(--doux); font-weight: 400; }
.trop .cs-total { color: var(--danger); }
.cs-erreur { color: var(--danger); font-size: .88rem; margin: 0 0 .4rem; }
.ls {
  display: grid; grid-template-columns: 4.2rem 1fr 1fr 2.4rem; gap: .4rem; align-items: center;
  padding: .45rem .45rem .45rem .6rem; margin-bottom: .45rem; border-radius: 10px;
  border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 8%, white);
}
.ls select, .ls input { min-height: 44px; padding: .45rem .5rem; font-size: 1rem; }
.ls-h { text-align: center; font-weight: 700; grid-row: span 2; height: 100%; font-size: 1.15rem !important; }
.ls-t { grid-column: 2 / 4; }
.ls-s { grid-column: 2; }
.ls-m { grid-column: 3; }
.ls-x { grid-column: 4; grid-row: 1 / span 2; border: 0; background: none; font-size: 1.6rem; color: var(--doux); cursor: pointer; height: 100%; }
.cs-ajout { border: 1px dashed var(--ligne); background: none; border-radius: 10px; width: 100%; min-height: 44px; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.saisie-pied {
  position: fixed; left: 0; right: 0; bottom: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); border-top: 1px solid var(--ligne); backdrop-filter: blur(6px);
}
.saisie-pied .principal { max-width: 640px; margin: 0 auto; display: block; }

/* Réglages météo */
.bloc-reglage { margin-bottom: 1.25rem; }
.bloc-reglage h2 { margin-bottom: .4rem; }
.bloc-reglage .aide-bas { margin: 0 0 .6rem; }
.curseur input[type=range] { padding: 0; min-height: 32px; accent-color: var(--accent); }
.curseur output { color: var(--accent); font-weight: 700; }
.cases-meteo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem 1rem; margin-top: .4rem; }
.cases-meteo .case, .case.petite { font-weight: 400; }
.libelle-groupe { font-weight: 600; font-size: .92rem; }
.actions-reglages { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.actions-reglages .aide-bas { margin: 0; }

/* Récapitulatif */
.recap-table td.nb, .recap-table th.nb { text-align: right; font-variant-numeric: tabular-nums; }
.recap-table tfoot td { font-weight: 700; background: #fafbf8; border-top: 2px solid var(--ligne); }
.recap-filtres { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.recap-filtres input, .recap-filtres select { width: auto; }
.recap-section { margin-top: 1.5rem; }
.ecart-pos { color: var(--accent); }
.ecart-neg { color: var(--danger); }

/* Téléphone */

@media (max-width: 760px) {
  .barre { gap: .75rem; padding: 0 .75rem; }
  .logo { display: none; }
  .menu-haut .bientot { display: none; }
  .nom-txt { display: none; }
  .compte-barre { gap: .6rem; }
  .bouton-menu { display: block; }
  .menu-gauche {
    position: fixed; top: var(--barre); left: 0; bottom: 0; z-index: 15;
    transform: translateX(-100%); transition: transform .2s;
    box-shadow: 4px 0 16px rgba(0,0,0,.08);
  }
  .menu-ouvert .menu-gauche { transform: none; }
  .contenu { padding: 1rem; }
  .accueil-grille { grid-template-columns: 1fr; }
  .accueil-tete h1 { font-size: 1.45rem; }
  .eq-nom { min-width: 0; width: 100%; }

  /* Listes en cartes */
  table.liste, .liste tbody, .liste tr, .liste td { display: block; width: 100%; }
  .liste thead { display: none; }
  table.liste { background: none; border: 0; }
  .liste tr { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); margin-bottom: .6rem; padding: .4rem 0; }
  .liste td { border: 0; padding: .25rem .9rem; display: flex; gap: .75rem; }
  .liste td:empty { display: none; }
  .liste td[data-l]::before { content: attr(data-l); color: var(--doux); font-size: .85rem; min-width: 8.5rem; }
  .liste td.boutons { text-align: left; padding-top: .5rem; }
  .ajout-piece { grid-template-columns: 1fr; }

  /* Planning : vue par jour au lieu de la grille */
  .grille-defile { display: none; }
  .vue-jours { display: block; }
  .jour { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .75rem .9rem; margin-bottom: .75rem; }
  .jour.aujourdhui { border-color: var(--accent); }
  .jour h2 { font-size: 1rem; margin: 0 0 .5rem; }
  .jour-salarie { padding: .45rem 0; border-top: 1px solid var(--ligne); }
  .js-nom { font-weight: 600; margin-bottom: .3rem; }
  .vue-jours .ajout { display: inline-block; color: var(--accent); text-decoration: none; font-size: .9rem; padding: .25rem 0; }
  .copier { margin-left: 0 !important; }
  .gantt { --libelle: 130px; }
  .deux-col { grid-template-columns: 1fr; }
  .compte { margin-left: 0; }
}

/* ---------- Identité Inovarbo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo img { width: 30px; height: 30px; object-fit: contain; }
.logo span { font-weight: 800; letter-spacing: -.01em; color: #1f4d1c; }
.pied-site { margin: 2.5rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--ligne); color: var(--doux); font-size: .8rem; text-align: center; }
body.page-simple { flex-direction: column; }
.pied-simple { border-top: 0; margin: 1.25rem 0 0; }
.logo-connexion { display: block; margin: 0 auto .5rem; width: 170px; height: auto; }
.sous-titre.centre { text-align: center; }

/* Écran d'introduction : le logo apparaît puis se fond dans le blanc (≈ 2 s) */
.intro-ecran { display: none; }
html.avec-intro .intro-ecran {
  display: flex; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center;
  background: #fff; cursor: pointer; animation: intro-fond 2.1s ease-in-out forwards;
}
html.avec-intro body { overflow: hidden; }
.intro-ecran img { width: min(62vw, 420px); height: auto; animation: intro-logo 2.1s ease-in-out forwards; }
@keyframes intro-logo {
  0% { opacity: 0; transform: scale(.94); }
  22% { opacity: 1; transform: scale(1); }
  55% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.04); }
}
@keyframes intro-fond { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.avec-intro .intro-ecran, .intro-ecran img { animation-duration: .8s; }
}

/* Filigrane du logo sur l'accueil */
.page-accueil .filigrane {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("logo/inovarbo-logo-transparent.webp") center 58% / min(72vmin, 620px) no-repeat;
  opacity: .08;
}
.page-accueil .contenu { position: relative; z-index: 1; }
.page-accueil .carte { background: rgba(255, 255, 255, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* ---------- Bannière météo compacte ---------- */
.meteo { transition: background-color .3s, border-color .3s; }
.meteo-compacte {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  padding: .9rem 1.2rem 1.3rem;
}
.meteo-vide p { margin: .4rem 0 0; color: var(--doux); }
.meteo-illu { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 190px; height: auto; pointer-events: none; z-index: 0; }
.illu-soleil circle { fill: #f2b233; opacity: .32; }
.illu-soleil line { stroke: #f2b233; stroke-width: 4; stroke-linecap: round; opacity: .32; }
.illu-lune { fill: #7c86a8; opacity: .24; }
.illu-nuage { fill: #8f9aa6; opacity: .28; }
.illu-pluie line { stroke: #4a86b5; stroke-width: 3.5; stroke-linecap: round; opacity: .38; }
.illu-vent path { fill: none; stroke: #6f8a94; stroke-width: 4; stroke-linecap: round; opacity: .32; }
.meteo-compacte > *:not(.meteo-illu):not(.mc-heure) { position: relative; z-index: 1; }
.mc-temp { display: flex; flex-direction: column; line-height: 1; }
.meteo-temp { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.meteo-temp .deg { font-size: 1rem; font-weight: 600; color: var(--doux); margin-left: .1rem; vertical-align: top; position: relative; top: .3rem; }
.mc-sous { display: flex; gap: .6rem; margin-top: .3rem; font-size: .8rem; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; flex: 1 1 260px; max-width: calc(100% - 200px); }
.mc-stats li { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-stats .ico { color: var(--doux); }
.mc-stats li.val-ok .ico, .mc-stats li.val-moyen .ico, .mc-stats li.val-fort .ico { color: inherit; }
.mc-heure { position: absolute; right: 1rem; bottom: .4rem; z-index: 1; font-size: .72rem; color: var(--doux); }
.mc-note { flex-basis: 100%; font-size: .78rem; color: var(--doux); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meteo-ancienne { color: var(--danger); font-style: normal; }
/* Fond selon les conditions pour traiter (translucide pour laisser voir le filigrane) */
.carte.meteo.fond-ok { background: rgba(232, 244, 227, .86); border-color: #cfe3c8; }
.carte.meteo.fond-moyen { background: rgba(253, 240, 220, .88); border-color: #f0d9ad; }
.carte.meteo.fond-fort { background: rgba(252, 232, 228, .88); border-color: #f1c6be; }
.val-ok { color: #2f7a35 !important; }
.val-moyen { color: #c06a0a !important; }
.val-fort { color: #c0392b !important; }
@media (max-width: 760px) {
  .meteo-compacte { padding: .8rem 1rem 1.4rem; }
  .meteo-illu { width: 150px; right: -14px; }
  .mc-stats { max-width: none; gap: .4rem .9rem; }
  .jour-colonnes { grid-template-columns: 1fr; }
  .meteo-temp { font-size: 2.1rem; }
}

/* ---------- Bandeau d'actualités (gestion) ---------- */
.actus {
  display: flex; gap: 1rem; align-items: flex-start; margin: -.4rem 0 1.1rem; padding: .65rem .9rem;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--ligne); border-radius: 14px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.actus-titre { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--doux); padding-top: .2rem; white-space: nowrap; }
.actus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; min-width: 0; flex: 1; }
.actus li { display: flex; align-items: baseline; gap: .55rem; min-width: 0; font-size: .9rem; }
.actus li a { color: var(--texte); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.actus li a:hover { color: var(--accent); text-decoration: underline; }
.actus-echelle { flex-shrink: 0; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; background: var(--accent-clair); color: var(--accent); }
.echelle-region { background: #e0ecf3; color: #2f6f8f; }
.echelle-national { background: #ebe6f4; color: #6b5a96; }
.echelle-europe { background: #f8ecd6; color: #a5651a; }
.actus-source { flex-shrink: 0; margin-left: auto; color: var(--doux); font-size: .75rem; white-space: nowrap; }
.actus-vide { margin: 0; color: var(--doux); font-size: .88rem; }

/* ---------- Bandeau Conseils ---------- */
.conseils { margin-top: 1rem; }
.conseils-source { margin-left: .35rem; font-size: .68rem; padding: .08rem .45rem; border-radius: 99px; background: var(--accent-clair); color: var(--accent); letter-spacing: .03em; }
.conseils-actualiser { margin: 0; }
.lien-bouton { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-size: .88rem; color: var(--accent); font-weight: 600; }
.conseils-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .5rem .9rem; }
.conseils-liste li { display: flex; gap: .55rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 12px; font-size: .92rem; line-height: 1.35; background: rgba(240, 242, 236, .7); }
.conseils-liste .ico { margin-top: .05rem; }
.conseil-alerte { background: rgba(252, 232, 228, .85) !important; color: #9b2f22; }
.conseil-attention { background: rgba(253, 240, 220, .85) !important; color: #8a5a12; }
.conseil-info { color: var(--texte); }
.conseil-info .ico { color: var(--accent); }
.conseils-erreur { color: #8a5a12; }

/* ---------- Accès rapides : pastilles rondes translucides ---------- */
.bureau { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1.1rem .6rem; max-width: 900px; }
.appli {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--texte); text-align: center; padding: .2rem;
}
.appli-icone {
  display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 18px rgba(31, 42, 31, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: transform .15s, box-shadow .15s;
}
a.appli:hover .appli-icone { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px rgba(31, 42, 31, .16), inset 0 1px 0 rgba(255,255,255,.8); }
.appli-nom { font-weight: 600; font-size: .84rem; line-height: 1.2; max-width: 9rem; }
.appli.inactive { opacity: .45; }
.appli-bientot { position: absolute; top: -.2rem; left: calc(50% + 18px); font-size: .62rem; padding: .05rem .35rem; border-radius: 99px; background: rgba(255,255,255,.85); color: var(--doux); border: 1px solid var(--ligne); }
.teinte-vert { background: rgba(63, 107, 58, .16); color: #2f5a2c; }
.teinte-bleu { background: rgba(47, 111, 143, .15); color: #255d78; }
.teinte-ambre { background: rgba(195, 125, 30, .16); color: #93571a; }
.teinte-sarcelle { background: rgba(43, 123, 112, .15); color: #23685f; }
.teinte-violet { background: rgba(107, 90, 150, .15); color: #5b4b85; }
.teinte-ardoise { background: rgba(76, 90, 74, .14); color: #3f4c3d; }
.teinte-brun { background: rgba(138, 90, 60, .15); color: #774b31; }

/* ---------- Réglages IA : tableau des sources ---------- */
.table-sources { display: grid; gap: .4rem; margin: .6rem 0; }
.ts-tete, .ts-ligne { display: grid; grid-template-columns: 1.1fr .8fr 2.4fr 3.4rem 3.4rem; gap: .4rem; align-items: center; }
.ts-tete { font-size: .75rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.ts-ligne .case { justify-content: center; }
code { background: #eef0ea; padding: .05rem .35rem; border-radius: 5px; font-size: .88em; }

@media (max-width: 760px) {
  .actus { flex-direction: column; gap: .35rem; }
  .actus li { flex-wrap: wrap; }
  .actus li a { white-space: normal; }
  .actus-source { margin-left: 0; }
  .bureau { grid-template-columns: repeat(3, 1fr); gap: 1rem .3rem; }
  .appli-icone { width: 60px; height: 60px; }
  .conseils-liste { grid-template-columns: 1fr; }
  .ts-tete { display: none; }
  .ts-ligne { grid-template-columns: 1fr 1fr; padding: .5rem; border: 1px solid var(--ligne); border-radius: 10px; }
  .ts-ligne input[name$="[url]"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .barre .logo { display: inline-flex; }
  .barre .logo span { display: none; }
}

/* ---------- Accueil : salutation + actualités sur la même ligne ---------- */
.accueil-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem 2rem; }
.accueil-salut .mode { display: inline-block; margin-top: .55rem; }
.accueil-tete .actus { margin: 0; align-self: stretch; align-items: stretch; }
.actus-nb { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 99px; background: var(--ligne); color: var(--texte); font-size: .68rem; }
/* Le cadre montre 3 actualités ; les suivantes en faisant défiler (barre de défilement à droite) */
.actus-liste {
  --ligne-actu: 1.75rem;
  height: calc(var(--ligne-actu) * 3); overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; padding-right: .4rem; gap: 0 !important; display: block !important;
  scrollbar-width: thin; scrollbar-color: #b9c2b2 transparent;
}
.actus-liste li { height: var(--ligne-actu); scroll-snap-align: start; }
.actus-liste::-webkit-scrollbar { width: 6px; }
.actus-liste::-webkit-scrollbar-thumb { background: #b9c2b2; border-radius: 3px; }
.actus-liste:focus-visible { outline: 2px solid var(--accent-clair); border-radius: 6px; }

/* ---------- Météo et Aujourd'hui : deux cadres côte à côte, même largeur, même hauteur ---------- */
.accueil-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.accueil-grille > .carte { margin: 0; height: 100%; }
.accueil-grille .meteo-compacte { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: .9rem; padding: 1.1rem 1.25rem 1.2rem; }
.accueil-grille .mc-tete { margin-bottom: 0; }
.accueil-grille .meteo-illu { top: 2.6rem; right: .4rem; transform: none; width: 210px; }
.accueil-grille .meteo-temp { font-size: 3rem; }
.accueil-grille .mc-sous { font-size: .88rem; }
.accueil-grille .mc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem 1rem; max-width: none; flex: none; margin-top: auto; padding-top: .9rem; border-top: 1px solid rgba(0, 0, 0, .07); }
.accueil-grille .mc-stats li { font-size: 1rem; }
.accueil-grille .jour-colonnes { grid-template-columns: 1fr; }
.accueil-grille .meteo-vide { display: block; }

@media (max-width: 760px) {
  .accueil-tete { grid-template-columns: 1fr; }
  .accueil-grille { grid-template-columns: 1fr; }
  .accueil-grille > .carte { height: auto; }
  .accueil-grille .meteo-illu { width: 150px; top: 2.4rem; right: -10px; }
  .accueil-grille .meteo-temp { font-size: 2.5rem; }
  .accueil-grille .mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actus-liste { --ligne-actu: 4.2rem; }
  .actus-liste li { flex-wrap: wrap; align-content: flex-start; gap: .1rem .5rem; overflow: hidden; }
  .actus-liste li a { white-space: nowrap; flex-basis: 100%; }
}
/* Correctif : le cadre garde sa hauteur de 3 actualités (sinon il s'étire), et le texte ne déborde pas sur téléphone */
.actus-liste { flex: none !important; width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .accueil-tete .actus { min-width: 0; }
  .actus-liste { --ligne-actu: 5.9rem; }
  .actus-liste li { padding-bottom: .35rem; }
  .actus-liste li a {
    white-space: normal; flex-basis: 100%; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
/* Correctif : sur ordinateur, la liste partage la largeur avec le titre « Actualités » (pas 100 %), rien ne dépasse à droite */
.accueil-tete .actus { min-width: 0; overflow: hidden; }
.actus-liste { flex: 1 1 0 !important; width: auto; min-width: 0; }
.actus-liste li { min-width: 0; }
.actus-liste li a { flex: 1 1 auto; }
.actus-source { flex: 0 1 auto; min-width: 0; max-width: 38%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .actus-liste { flex: none !important; width: 100%; }
  .actus-source { max-width: none; }
}
.actus-liste li a { flex: 1 1 0; }
.actus-source { flex: 0 0 auto; max-width: 12rem; }
/* Écrans moyens (tablette) : les actualités passent sous la salutation pour garder des titres lisibles */
@media (max-width: 1000px) {
  .accueil-tete { grid-template-columns: 1fr; }
}

/* ---------- Icônes au trait en pastilles rondes translucides (menus, vue d'ensemble) ---------- */
.pastille-ic {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 2px 6px rgba(31, 42, 31, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%);
}
.menu-gauche .ic.pastille-ic { width: 32px; height: 32px; }
.menu-gauche a { gap: .65rem; padding: .4rem .6rem; }
.menu-gauche a.actif .pastille-ic { box-shadow: 0 0 0 2px var(--accent-clair), 0 2px 6px rgba(31,42,31,.1); }
.tuile { grid-template-columns: auto 1fr auto; }
.tuile-icone.pastille-ic { width: 46px; height: 46px; font-size: 0; }
.tuile:hover .pastille-ic { transform: scale(1.05); }
.pastille-ic { transition: transform .15s; }
@media (max-width: 760px) {
  .menu-haut a, .menu-haut span { padding: .4rem .45rem; font-size: .9rem; }
  .compte-barre .lien-discret { font-size: .82rem; }
  .barre { gap: .5rem; }
}

/* ---------------- Traitements ---------------- */
[hidden] { display: none !important; }
.principal.petit, .secondaire-bouton.petit { padding: .4rem .75rem; font-size: .9rem; }
.principal.vert { background: #2f7d4a; }
.nb { text-align: right !important; }
.liste .nb input { text-align: right; }
.doux { color: var(--doux); }
.manque { color: var(--danger); }
.ok { color: #2f7d4a; }
.statut { display: inline-block; vertical-align: middle; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; margin-left: .3rem; }
.statut-prevu { background: #eef2fb; color: #3a5a9b; }
.statut-realise, .statut-livree { background: #e5f3e8; color: #2f7d4a; }
.statut-annule { background: #f3eeee; color: #8a6b6b; text-decoration: line-through; }
.statut-brouillon { background: #f1f1ee; color: #666; }
.statut-commandee { background: #fdf2dc; color: #946200; }
.badge-alerte, .badge-coef { font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; margin-left: .35rem; vertical-align: middle; }
.badge-alerte { background: #fde7e3; color: #a33a2a; }
.badge-coef { background: #efe9fb; color: #6243a8; }
.boutons-titre { display: flex; gap: .5rem; flex-wrap: wrap; }
.boutons-titre form, .titre-ligne form { margin: 0; }
.copier { margin: 0 0 0 .5rem; }

/* Programme d'hiver */
.programme { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .5rem 0; margin-bottom: 1rem; }
.prog-mois, .prog-ligne { display: grid; grid-template-columns: minmax(220px, 26%) 1fr 240px; gap: 0 1rem; align-items: center; padding: .55rem 1rem; }
.prog-mois { padding-top: .2rem; padding-bottom: .2rem; }
.prog-mois div { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .75rem; color: var(--doux); text-transform: uppercase; }
.prog-mois div span { border-left: 1px solid var(--ligne); padding-left: .25rem; }
.prog-ligne { border-top: 1px solid var(--ligne); }
.prog-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.prog-cible { font-weight: 700; text-decoration: none; color: var(--texte); font-size: 1.02rem; }
.prog-cat, .prog-compte, .prog-produits { font-size: .82rem; color: var(--doux); }
.prog-produits { color: #6243a8; }
.prog-frise { position: relative; min-height: 34px; display: flex; flex-direction: column; padding: 2px 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), var(--ligne) calc(100% / 12 - 1px), var(--ligne) calc(100% / 12)); border-radius: 6px; }
.prog-fenetre { position: absolute; top: 3px; bottom: 3px; min-width: 26px; margin-left: -3px; padding-right: 6px; border-radius: 13px; background: #d9e8d4; border: 1px solid #a9c9a0; box-sizing: content-box; }
.prog-piste { position: relative; height: 30px; z-index: 1; }
.avec-pistes .prog-piste { height: 34px; }
.avec-pistes .prog-piste + .prog-piste { border-top: 1px dashed rgba(0,0,0,.08); }
.prog-piste-nom { position: absolute; left: 4px; top: 1px; font-size: .68rem; font-weight: 700; line-height: 1.1; color: var(--c); white-space: nowrap; pointer-events: none; }
.prog-point { position: absolute; top: 13px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 3px solid var(--c); background: #fff; z-index: 2; box-sizing: border-box; }
.prog-point:hover, .prog-point.info-visible { z-index: 6; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.prog-point:hover::after, .prog-point.info-visible::after { content: attr(data-info); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #2b2b2b; color: #fff; font-size: .75rem; font-weight: 500; padding: .2rem .45rem; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.prog-point.info-gauche::after { left: auto; right: -6px; transform: none; }
.prog-point.info-droite::after { left: -6px; transform: none; }
@media (hover: none) { .prog-point:hover::after { content: none; } .prog-point.info-visible::after { content: attr(data-info); } }
.prog-point.realise { background: var(--c); }
.prog-auj { position: absolute; top: 0; bottom: 0; width: 2px; background: #c0392b; opacity: .6; z-index: 1; }
.prog-actions { display: flex; gap: .4rem; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.prog-actions form { margin: 0; }
.secondaire-bouton.supprimer-bouton { color: var(--danger); border-color: #e3b9b2; }
.secondaire-bouton.supprimer-bouton:hover { background: #fbecea; }
.prog-prevues { grid-column: 1 / -1; font-size: .9rem; margin: .2rem 0 0; }
.prog-prevues summary { cursor: pointer; color: var(--doux); }
.prog-prevues ul { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.prog-prevues li { display: flex; align-items: center; gap: .45rem; }
.prog-prevues li i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.prog-prevues form { display: inline; margin: 0; }
.prog-prevues .lien-danger { font-size: .88rem; }
.alerte-form { position: relative; }
.alerte-form summary { list-style: none; cursor: pointer; }
.alerte-form summary::-webkit-details-marker { display: none; }
.alerte-form form { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; width: 300px; display: flex; flex-direction: column; gap: .45rem;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.alerte-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.alerte-form label.case { flex-direction: row; align-items: center; gap: .4rem; }
.libelle-groupe { font-size: .85rem; font-weight: 600; color: var(--doux); margin-top: .2rem; }
.legende .l-fenetre { background: #d9e8d4; border: 1px solid #a9c9a0; width: 1.4rem; }
.legende .l-point { border-radius: 50%; border: 2px solid var(--doux); background: #fff; }
.legende .l-point.plein { background: var(--doux); }

/* Passage */
.resume-passage { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1.25rem; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.chiffres > div { background: var(--fond); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.chiffre { font-size: 1.3rem; font-weight: 700; }
.chiffres .lib { font-size: .82rem; color: var(--doux); }
.liste.mini td, .liste.mini th { padding: .45rem .65rem; }
.liste tfoot td { background: #fafbf8; font-size: .92rem; }
.infos-passage { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .8rem 0 0; font-size: .93rem; }
.alerte-ligne { margin: 0 0 .5rem; padding: .5rem .8rem; border-radius: 8px; font-size: .93rem; }
.alerte-ligne.niveau-moyen { background: #fdf2dc; color: #7a5200; }
.alerte-ligne.niveau-fort { background: #fde7e3; color: #8e2a1c; }
.passage-form h2 { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--ligne); }
.lignes-melange { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.ligne-melange { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 6rem 7.5rem 2rem; gap: .5rem; align-items: center; }
.ligne-melange .ls-x { grid-column: auto; grid-row: auto; height: auto; }
.dupliquer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.25rem; }
.dupliquer select { width: auto; }

/* Commandes, stocks, fumure */
.tableau-defile { overflow-x: auto; margin-bottom: .75rem; }
.petit-nb { width: 6rem; }
.grille-commande th .pastille-couleur { width: .8rem; height: .8rem; margin-right: .3rem; border-radius: 50%; }
.ajout-ligne { margin: .5rem 0; }
.ajout-ligne select { width: auto; }
.commande-form .fiche { margin-bottom: 1.25rem; }
.liste tr.groupe td { background: var(--accent-clair); font-weight: 700; font-size: .9rem; }
.npk-n strong { color: #3a5a9b; }
.npk-p strong { color: #946200; }
.npk-k strong { color: #6243a8; }

@media (max-width: 760px) {
  .prog-mois { display: none; }
  .prog-ligne { grid-template-columns: 1fr; gap: .5rem; }
  .prog-actions { justify-content: flex-start; }
  .alerte-form form { position: static; width: auto; margin-top: .5rem; box-shadow: none; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .ligne-melange { grid-template-columns: 1fr 1fr 2rem; }
  .ligne-melange select[name="ligne_produit[]"] { grid-column: 1 / 3; }
  .ligne-melange .ls-x { grid-column: 3; grid-row: 1; }
  .liste tfoot { display: block; }
  .liste tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: .45rem .9rem; }
  .liste tfoot td { display: block; width: auto; padding: 0; background: none; }
  .liste tfoot td[data-l]::before { margin-right: .5rem; }
  .liste tfoot td[colspan] { font-weight: 600; }
  .liste tr.groupe { background: var(--accent-clair); }
  .liste td.nb { text-align: left !important; }
  .petit-nb { width: 7rem; }
  .tableau-defile { overflow: visible; }
}

/* Consignes */
.sans-marge { margin: 0; }
.meteo-consigne { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: .75rem 1rem; border-radius: var(--rayon); margin-bottom: 1rem; }
.meteo-consigne.niveau-ok { background: #e5f3e8; }
.meteo-consigne.niveau-moyen { background: #fdf2dc; }
.meteo-consigne.niveau-fort { background: #fde7e3; }
.niv-ok { color: #2f7d4a; } .niv-moyen { color: #b26b00; } .niv-fort { color: var(--danger); }
.bloc-interdit { background: #fde7e3; border: 1px solid #f2b8ad; border-radius: var(--rayon); padding: .8rem 1rem; margin-bottom: 1rem; }
.bloc-interdit h2 { display: flex; align-items: center; gap: .4rem; color: #8e2a1c; margin: 0 0 .4rem; }
.bloc-interdit ul { margin: 0; padding-left: 1.2rem; }
.consigne { background: var(--surface); border: 1px solid var(--ligne); border-left: 5px solid var(--c); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1rem; }
.consigne-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.consigne-tete h2 { margin: .15rem 0 .5rem; }
.consigne-date { font-size: .85rem; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .03em; }
.consigne-date.auj { color: var(--accent); }
.consigne-date.retard { color: var(--danger); }
.consigne-infos { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: 0 0 .75rem; font-size: .95rem; }
.consigne-securite { margin-top: .8rem; background: #fff8e8; border-radius: 10px; padding: .7rem .9rem; }
.consigne-securite h3 { display: flex; align-items: center; gap: .35rem; color: #7a5200; }
.consigne-securite ul { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.consigne-remarque { margin: .7rem 0 0; color: var(--doux); font-style: italic; }
.liste-simple { padding-left: 1.2rem; }

/* Recherche */
.recherche-champ { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: .4rem .4rem .4rem .9rem; color: var(--doux); }
.recherche-champ input[type=search] { flex: 1; border: 0; outline: 0; font-size: 1.05rem; min-width: 0; background: none; padding: .5rem 0; }
.recherche-champ select { width: auto; border: 0; background: var(--fond); }
.recherche-groupee { margin: 1rem 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .7rem 1rem; }
.recherche-groupee summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.rg-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-top: .8rem; }
.rg-grille form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rg-grille h3 { width: 100%; margin: 0; }
.rg-grille select { width: auto; max-width: 100%; }
.compte-resultats { color: var(--doux); }
.resultats { margin-bottom: 1.25rem; }
.resultats h2 { margin-bottom: .4rem; }
.r-liste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.r-liste li + li { border-top: 1px solid var(--ligne); }
.r-liste a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .6rem .9rem; text-decoration: none; color: var(--texte); }
.r-liste a:hover { background: var(--accent-clair); }
.r-titre { font-weight: 700; }
.r-structure { font-size: .78rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, white); color: color-mix(in srgb, var(--c) 80%, black); }
.r-date { font-size: .85rem; color: var(--doux); }
.r-detail { flex-basis: 100%; font-size: .88rem; color: var(--doux); }
@media (max-width: 760px) {
  .recherche-champ { flex-wrap: wrap; }
  .recherche-champ input[type=search] { flex-basis: calc(100% - 2rem); }
  .recherche-champ select, .recherche-champ button { flex: 1; }
  .rg-grille { grid-template-columns: 1fr; }
}

/* Export */
.onglets-export { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.onglets-export a { padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); text-decoration: none; color: var(--texte); font-weight: 600; }
.onglets-export a.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.export-form .actions .principal { display: inline-flex; align-items: center; gap: .35rem; }
.apercu-export table { font-size: .85rem; white-space: nowrap; }
@media (max-width: 760px) { .apercu-export table { white-space: normal; } .apercu-export tr:nth-child(n+4) { display: none; } }

/* ---------- Actualités : barre de défilement toujours visible (dessinée par le site) ---------- */
.actus-defile { display: flex; gap: .45rem; flex: 1 1 0; min-width: 0; align-items: stretch; }
.actus-defile .actus-liste { flex: 1 1 0 !important; width: auto !important; min-width: 0; padding-right: 0; scrollbar-width: none; }
.actus-defile .actus-liste::-webkit-scrollbar { display: none; width: 0; }
.actus-rail { flex: 0 0 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; height: calc(var(--ligne-actu, 1.75rem) * 3); }
.actus-defile .actus-liste, .actus-rail { --ligne-actu: 1.75rem; }
.actus-fleche { border: 0; background: none; padding: 0; width: 14px; height: 12px; line-height: 12px; font-size: 11px; color: #7d8a74; cursor: pointer; }
.actus-fleche:hover { color: var(--accent); }
.actus-piste { flex: 1; width: 8px; border-radius: 4px; background: rgba(60, 80, 50, .13); position: relative; cursor: pointer; touch-action: none; }
.actus-curseur { position: absolute; left: 0; top: 0; width: 8px; border-radius: 4px; background: #6f8a5f; cursor: grab; }
.actus-curseur:active { cursor: grabbing; background: var(--accent); }
.actus-rail.inactif .actus-curseur { background: #b9c2b2; }
.actus-rail.inactif .actus-fleche { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .actus-defile { flex: none; width: 100%; }
}
@media (max-width: 760px) {
  .actus-defile .actus-liste, .actus-rail { --ligne-actu: 5.9rem; }
  .actus-rail { flex-basis: 18px; }
  .actus-piste, .actus-curseur { width: 10px; border-radius: 5px; }
  .actus-fleche { width: 18px; height: 16px; font-size: 13px; }
  .actus-defile .actus-liste li { flex-wrap: wrap; }
  .actus-defile .actus-liste li a { flex: 1 1 100%; }
  .actus-defile .actus-source { margin-left: 0; max-width: none; }
}

/* ---------- Barre du haut : fichiers et messagerie ---------- */
.ic-barre { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--texte); text-decoration: none; transition: background .15s; }
.ic-barre:hover, .ic-barre.actif { background: var(--accent-clair); color: var(--accent); }
.pastille-nonlus { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d64532; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface, #fff); }
.nom-utilisateur { display: inline-flex; align-items: center; gap: .3rem; }
.compte-barre { gap: .5rem; }
.compte-barre .nom-utilisateur { margin-right: .4rem; }
@media (max-width: 760px) {
  .ic-barre { width: 32px; height: 32px; }
  .compte-barre { gap: .15rem; }
}

/* ---------- Messagerie ---------- */
.boite { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.boite-liste, .boite-lecture { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); min-width: 0; }
.boite-liste { overflow: hidden; }
.boite-tete { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem .4rem; }
.boite-tete h1 { margin: 0; font-size: 1.3rem; }
.boite-tete .principal { display: inline-flex; align-items: center; gap: .3rem; }
.boite-recherche { padding: 0 1rem .7rem; }
.boite-recherche input { width: 100%; }
.boite-vide { padding: 1rem; }
.boite-messages { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 220px); overflow-y: auto; }
.boite-messages li { border-top: 1px solid var(--ligne); }
.boite-messages a { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .65rem 1rem; text-decoration: none; color: var(--texte); }
.boite-messages a:hover { background: #f6f8f3; }
.boite-messages li.courant a { background: var(--accent-clair); }
.boite-messages li.non-lu a { box-shadow: inset 3px 0 0 var(--accent); }
.boite-messages li.non-lu .bm-qui, .boite-messages li.non-lu .bm-sujet { font-weight: 700; }
.bm-qui { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bm-date { font-size: .8rem; color: var(--doux); }
.bm-sujet { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; display: flex; align-items: center; gap: .2rem; }
.bm-extrait { grid-column: 1 / -1; color: var(--doux); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boite-lecture { padding: 1.1rem 1.3rem; min-height: 320px; }
.boite-retour { display: none; margin-bottom: .6rem; }
.boite-accueil { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 280px; color: var(--doux); gap: .5rem; }
.pastille-ic.grande { width: 72px; height: 72px; }
.message-lu h2 { margin: 0 0 .8rem; }
.ml-entete { display: flex; gap: .75rem; align-items: flex-start; padding-bottom: .8rem; border-bottom: 1px solid var(--ligne); }
.ml-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--accent-clair); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ml-fil { font-size: .88rem; color: var(--doux); margin: .6rem 0 0; }
.ml-corps { padding: 1rem 0; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.ml-pieces { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ml-pieces li { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; padding: .5rem .7rem; border: 1px solid var(--ligne); border-radius: 10px; }
.ml-pieces a { display: inline-flex; align-items: center; gap: .25rem; font-size: .9rem; }
.ml-nom { flex: 1; min-width: 10rem; overflow-wrap: anywhere; }
.ml-ic { color: var(--doux); display: inline-flex; }
.ml-vignette img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.ml-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .8rem; border-top: 1px solid var(--ligne); }
.ml-actions form { margin: 0; }
.ml-actions .principal, .ml-actions .secondaire-bouton { display: inline-flex; align-items: center; gap: .3rem; }
.lien-discret.danger { color: var(--danger); display: inline-flex; align-items: center; gap: .25rem; }
.form-message .champ { margin-bottom: .9rem; }
.form-message .libelle { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-message textarea { width: 100%; }
.form-message .principal { display: inline-flex; align-items: center; gap: .35rem; }
.dest-choix { display: flex; flex-wrap: wrap; gap: .4rem; }
.dest-puce { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--ligne); border-radius: 999px; background: #fafbf8; cursor: pointer; font-size: .92rem; }
.dest-puce:has(input:checked) { background: var(--accent-clair); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.dest-puce.tous { border-style: dashed; }
@media (max-width: 860px) {
  .boite { grid-template-columns: 1fr; }
  .boite.boite-ouverte .boite-liste { display: none; }
  .boite:not(.boite-ouverte) .boite-lecture { display: none; }
  .boite-retour { display: inline-block; }
  .boite-messages { max-height: none; }
  .boite-lecture { padding: 1rem; }
}

/* ---------- Fichiers partagés ---------- */
.depot { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.zone-depot { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.4rem 1rem; border: 2px dashed #c4cdbd; border-radius: 12px; color: var(--doux); text-align: center; cursor: pointer; }
.zone-depot.survol, .zone-depot:hover { border-color: var(--accent); background: var(--accent-clair); color: var(--accent); }
.zone-depot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#depot-texte { font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.fichiers-liste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.fichiers-liste li { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; }
.fichiers-liste li + li { border-top: 1px solid var(--ligne); }
.fl-vignette { flex: 0 0 52px; height: 52px; border-radius: 10px; background: #f1f4ee; color: #6b7a62; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; }
.fl-vignette.photo img { width: 100%; height: 100%; object-fit: cover; }
.fl-ext { font-size: .6rem; font-weight: 700; letter-spacing: .03em; margin-top: -2px; max-width: 48px; overflow: hidden; }
.fl-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-nom { font-weight: 600; overflow-wrap: anywhere; }
.fl-desc { font-size: .88rem; }
.fl-meta { font-size: .8rem; color: var(--doux); }
.fl-actions { display: flex; gap: .2rem; align-items: center; }
.fl-actions form { margin: 0; }
.ic-action { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--texte); cursor: pointer; }
.ic-action:hover { background: var(--accent-clair); color: var(--accent); }
.ic-action.danger:hover { background: #fde7e3; color: var(--danger); }
.deconnexion { display: inline-flex; align-items: center; gap: .3rem; }
.deconnexion .ico { display: none; }
@media (max-width: 760px) {
  .deconnexion span { display: none; }
  .deconnexion .ico { display: inline-block; }
  .deconnexion { width: 32px; height: 32px; justify-content: center; }
  .menu-haut { overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .menu-haut::-webkit-scrollbar { display: none; }
  .compte-barre .nom-utilisateur { margin-right: 0; }
}

/* ---------- Lien E-Phy ---------- */
.lien-ephy { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 600; white-space: nowrap; padding: .05rem .45rem; border-radius: 999px; background: #eaf1fb; color: #2f5d9b; text-decoration: none; vertical-align: middle; }
.lien-ephy:hover { background: #d9e6f8; }
.liens-ephy { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; font-size: .9rem; }
.liens-ephy a { display: inline-flex; align-items: center; gap: .25rem; }

/* ---------- Liste des produits compacte ---------- */
.liste-produits { table-layout: auto; width: 100%; }
.liste-produits th, .liste-produits td { white-space: nowrap; padding: .5rem .6rem; }
.liste-produits .lp-nom { white-space: nowrap; max-width: 0; width: 40%; }
.lp-nom-bloc { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.lp-nom-txt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lp-nom-bloc .lien-ephy { flex: none; }
.liste-produits .lien-ephy { margin-left: .3rem; font-size: .72rem; }
.lp-type { font-size: .85rem; }
.liste-produits .boutons { width: 1%; }
@media (max-width: 760px) {
  .liste-produits .lp-nom { max-width: none; width: auto; }
  .liste-produits td { white-space: normal; }
  .lp-nom-txt { max-width: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; }
  .lp-nom-bloc { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
  .liste-produits .lien-ephy { margin-left: 0; }
}

/* ---------- Accueil : Météo et Aujourd'hui repliés à mi-hauteur, dépliés au survol (ordinateur seulement) ---------- */
.accueil-grille.condense > .carte { max-height: var(--h-replie); overflow: hidden; position: relative; transition: max-height .35s ease; }
.accueil-grille.condense > .carte::after {
  content: '▾'; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2rem; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: .25rem; font-size: .85rem; color: var(--doux); pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 70%); transition: opacity .25s; z-index: 2;
}
.accueil-grille.condense > .meteo.fond-ok::after { background: linear-gradient(to bottom, rgba(232, 244, 227, 0), rgba(232, 244, 227, .97) 70%); }
.accueil-grille.condense > .meteo.fond-moyen::after { background: linear-gradient(to bottom, rgba(253, 240, 220, 0), rgba(253, 240, 220, .97) 70%); }
.accueil-grille.condense > .meteo.fond-fort::after { background: linear-gradient(to bottom, rgba(252, 232, 228, 0), rgba(252, 232, 228, .97) 70%); }
.accueil-grille.condense:hover > .carte, .accueil-grille.condense:focus-within > .carte { max-height: var(--h-plein); }
.accueil-grille.condense:hover > .carte::after, .accueil-grille.condense:focus-within > .carte::after { opacity: 0; }
.accueil-grille.condense .mc-stats { margin-top: 0; }

/* Pluie sur 24 h : petit « 24 » sur la goutte pour la distinguer de la pluie du jour */
.ic-24 { position: relative; display: inline-flex; margin-right: 7px; }
.ic-24-n { position: absolute; right: -8px; bottom: -5px; font-size: .58rem; font-weight: 800; line-height: 1; color: inherit;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; letter-spacing: -.02em; }

/* Accès rapide : toutes les icônes sur une ligne, sur toute la largeur des bandeaux (ordinateur) */
@media (min-width: 900px) {
  .bureau { max-width: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .6rem .4rem; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .bureau { max-width: none; }
}
.r-liste .r-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .6rem .9rem; }

/* ---------- Événement (ordinateur) ---------- */
.ic-evenement { color: #d9731a; }
.ic-evenement:hover, .ic-evenement.actif { background: #fdeedd; color: #c05f0c; }

/* ---------- Téléphone : barre fine + menu hamburger, barre du bas pour le terrain ---------- */
.bouton-tiroir, .tiroir, .tiroir-fond, .barre-bas { display: none; }
@media (max-width: 760px) {
  .connecte .barre { height: 52px; justify-content: space-between; }
  .connecte .barre .logo { display: inline-flex; align-items: center; gap: .45rem; }
  .connecte .barre .logo span { display: inline; font-size: 1.05rem; }
  .connecte .barre .logo img { width: 30px; height: 30px; }
  .connecte .menu-haut, .connecte .compte-barre, .connecte .bouton-menu { display: none !important; }
  .connecte.avec-menu .menu-gauche { display: none; }
  .bouton-tiroir { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -.4rem; border: 0; background: none; color: var(--texte); border-radius: 12px; cursor: pointer; }
  .bouton-tiroir:active { background: var(--accent-clair); }
  .bouton-tiroir .pastille-nonlus { top: 4px; right: 2px; }
  .tiroir-fond { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 20, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .tiroir { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(86vw, 330px); overflow-y: auto;
            background: var(--surface); box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(102%); transition: transform .22s ease; padding: 0 0 1.5rem; }
  .tiroir-ouvert .tiroir { transform: none; }
  .tiroir-ouvert .tiroir-fond { opacity: 1; pointer-events: auto; }
  .tiroir-ouvert { overflow: hidden; }
  .tiroir-tete { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem .6rem; position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--ligne); }
  .tiroir-fermer { border: 0; background: none; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; color: var(--doux); }
  .tiroir-titre { margin: 1rem 1rem .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
  .tiroir a, .tiroir-sortie button { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: 0 1rem; color: var(--texte); text-decoration: none; font-size: 1rem; }
  .tiroir a.actif { background: var(--accent-clair); color: var(--accent); font-weight: 600; }
  .tiroir a:active { background: var(--fond); }
  .tiroir .ic { display: inline-flex; color: var(--accent); width: 22px; justify-content: center; }
  .tiroir .pastille-nonlus.en-ligne { position: static; margin-left: auto; box-shadow: none; }
  .tiroir-sortie { margin: 1rem 0 0; border-top: 1px solid var(--ligne); padding-top: .5rem; }
  .tiroir-sortie button { width: 100%; border: 0; background: none; cursor: pointer; font-family: inherit; color: var(--danger); }
  .tiroir-sortie .ic { color: var(--danger); }

  .barre-bas { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: .5rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
               background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 18px rgba(0,0,0,.06); backdrop-filter: blur(8px); }
  .barre-bas a { flex: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
                 border-radius: 16px; background: var(--fond); color: var(--texte); text-decoration: none; font-weight: 700; font-size: .92rem; }
  .barre-bas a.actif { background: var(--accent-clair); color: var(--accent); }
  .barre-bas a.bb-evenement { background: #e8771f; color: #fff; box-shadow: 0 4px 12px rgba(232, 119, 31, .35); }
  .barre-bas a.bb-evenement.actif { background: #c9600f; }
  .connecte .cadre { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media print { .barre, .barre-bas, .tiroir, .tiroir-fond, .menu-gauche, .pied-site { display: none !important; } .connecte .cadre { padding-bottom: 0; } }
.libelle-champ { display: block; font-weight: 600; margin-bottom: .35rem; }
.bouton-gps { margin-top: .4rem; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Événements indésirables ---------- */
.titre-evenement { display: flex; align-items: center; gap: .6rem; }
.pastille-alerte { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fdeedd; color: #d9731a; }
.bouton-orange { background: #e8771f !important; border-color: #e8771f !important; display: inline-flex; align-items: center; gap: .35rem; }
.form-evenement { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }
.types-evenement { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.types-evenement legend { font-weight: 700; margin-bottom: .5rem; font-size: 1.05rem; }
.type-tuile { position: relative; }
.type-tuile input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.type-tuile span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 84px; padding: .5rem; text-align: center;
  border: 2px solid var(--ligne); border-radius: 14px; background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--texte); }
.type-tuile span svg { color: #d9731a; }
.type-tuile input:checked + span { border-color: #e8771f; background: #fdeedd; color: #a24d06; box-shadow: 0 0 0 2px rgba(232, 119, 31, .25); }
.type-tuile input:focus-visible + span { outline: 3px solid #e8771f; outline-offset: 2px; }
.boutons-photos { display: flex; gap: .6rem; }
.gros-bouton { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.gros-bouton.secondaire-gros { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.apercus { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.apercu { position: relative; width: 88px; height: 88px; }
.apercu img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.apercu button { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #d64532; color: #fff; font-size: 1.1rem; cursor: pointer; }
.etat-gps { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .92rem; color: var(--doux); }
.bloc-position select { width: 100%; min-height: 48px; }
.principal.gros-envoyer { min-height: 60px; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #e8771f; border-color: #e8771f; }
.statut-ev { display: inline-block; vertical-align: middle; font-size: .75rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; }
.ev-nouveau { background: #fde7e3; color: #a33a2a; }
.ev-en_cours { background: #fdf2dc; color: #946200; }
.ev-resolu { background: #e5f3e8; color: #2f7d4a; }
.ev-infos { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.ev-infos span { display: inline-flex; align-items: center; gap: .3rem; }
.ev-commentaire { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .8rem 1rem; margin-bottom: 1rem; }
.ev-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.ev-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ev-carte { height: 260px; border-radius: var(--rayon); border: 1px solid var(--ligne); margin-bottom: .5rem; z-index: 0; background: #eef1ea; }
.ev-carte.grande { height: 360px; margin-bottom: 1rem; }
.ev-suivi { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ev-suivi li { border-left: 3px solid var(--ligne); padding-left: .8rem; }
.ev-liste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.ev-liste li + li { border-top: 1px solid var(--ligne); }
.ev-liste a { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; color: var(--texte); text-decoration: none; }
.ev-liste a:hover { background: #f6f8f3; }
.ev-vignette { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fdeedd; color: #d9731a; display: flex; align-items: center; justify-content: center; }
.ev-vignette img { width: 100%; height: 100%; object-fit: cover; }
.ev-texte { min-width: 0; }
.ev-extrait { font-size: .9rem; }
@media (max-width: 760px) { .types-evenement { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-carte.grande { height: 280px; } }

/* ---------- Pulvérisation ---------- */
.calculateur { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1rem; }
.calc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem 1rem; }
.calc-mode { border: 0; padding: 0; margin: .9rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; min-width: 0; }
.calc-mode legend { font-weight: 700; margin-bottom: .3rem; }
.calc-resultat { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1rem; }
.chiffres .cherche { background: var(--accent-clair); box-shadow: inset 0 0 0 2px var(--accent); }
.alerte-ligne.niveau-info { background: #eaf1fb; color: #23497a; }
.buses-table .pos-nom { width: 9rem; }
.buses-table select { width: 100%; }
.generer { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem; }
.generer select { width: auto; max-width: 100%; }
.historique-buses { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.historique-buses ul { list-style: none; padding-left: .8rem; margin: .2rem 0 0; font-size: .9rem; }
.historique-buses .ajout { color: #2f7d4a; }
.historique-buses .retrait { color: var(--danger); }

/* ---------- Fiche traitement (salariés) ---------- */
.fiche-outils { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.fiche-outils span { display: flex; gap: .5rem; }
.fiche-traitement { background: #fff; border: 2px solid var(--texte); border-radius: 14px; padding: 1.2rem 1.4rem; max-width: 900px; font-size: 1.2rem; }
.ft-tete { border-bottom: 2px solid var(--texte); padding-bottom: .6rem; margin-bottom: .8rem; }
.ft-structure { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
.ft-tete h1 { font-size: 2rem; margin: .1rem 0 0; }
.ft-avertissement { background: #e8771f; color: #fff; font-size: 1.15rem; padding: .7rem 1rem; border-radius: 10px; margin: 0 0 .8rem; }
.ft-lignes { list-style: none; counter-reset: ft; margin: 0; padding: 0; }
.ft-lignes > li { counter-increment: ft; display: grid; grid-template-columns: 2.2rem 12rem 1fr; gap: .5rem; padding: .65rem 0; border-bottom: 1px solid #d9ded4; align-items: baseline; }
.ft-lignes > li::before { content: counter(ft); font-weight: 800; color: #fff; background: var(--accent); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.ft-lib { font-weight: 700; color: var(--doux); font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.ft-val { font-size: 1.35rem; font-weight: 600; display: flex; flex-direction: column; gap: .2rem; }
.ft-petit { font-size: .95rem; font-weight: 400; color: var(--doux); }
.ft-produit strong, .ft-reglage strong { font-weight: 800; }
.ft-cuves { font-weight: 800; }
.ft-reglage-groupe { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; align-items: baseline; }
.ft-reglage { display: inline-flex; gap: .4rem; align-items: baseline; }
.ft-alerte { color: var(--danger); font-size: 1rem; flex-basis: 100%; }
.ft-securite { margin-top: 1rem; background: #fff8e8; border-radius: 10px; padding: .6rem 1rem; font-size: 1rem; }
.ft-securite p { margin: .25rem 0; }
.ft-remarque { font-style: italic; color: var(--doux); font-size: 1rem; }
.grand-format .fiche-traitement { max-width: none; font-size: 1.6rem; }
.grand-format .ft-val { font-size: 2rem; }
.grand-format .ft-tete h1 { font-size: 2.8rem; }
.grand-format .ft-lignes > li { grid-template-columns: 3rem 16rem 1fr; }
.grand-format .menu-gauche, .grand-format .barre { display: none; }
@media (max-width: 760px) {
  .fiche-traitement { padding: .9rem; font-size: 1rem; }
  .ft-tete h1 { font-size: 1.5rem; }
  .ft-lignes > li { grid-template-columns: 2rem 1fr; }
  .ft-lignes > li .ft-val { grid-column: 2; }
  .ft-val { font-size: 1.15rem; }
}
@media print {
  .fiche-outils, .aide-bas { display: none !important; }
  .fiche-traitement { border: 2px solid #000; max-width: none; font-size: 14pt; }
  .ft-val { font-size: 16pt; }
  .ft-avertissement { color: #000; background: none; border: 3px solid #000; }
  .contenu { padding: 0 !important; }
}
.boutons-consigne { display: flex; gap: .4rem; flex-shrink: 0; }
.tache.avec-fiche .b-fiche { display: block; font-size: .75rem; font-weight: 700; margin-top: .15rem; }

/* ---------- Import ---------- */
.etapes-import { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: et; flex-wrap: wrap; }
.etapes-import li { counter-increment: et; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); color: var(--doux); font-weight: 600; font-size: .9rem; }
.etapes-import li::before { content: counter(et) ". "; }
.etapes-import li.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.etapes-import li.fait { color: var(--accent); }
.modeles-import { display: flex; flex-wrap: wrap; gap: .5rem; }
.modeles-import a { display: inline-flex; align-items: center; gap: .3rem; }
.colonnes-import select { width: 100%; }
.colonnes-import tr.associee td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.resume-import { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.apercu-import tr.imp-rejet td { background: #fdf0ee; }
.apercu-import tr.imp-maj td { background: #f6f8ee; }
.apercu-import small { color: var(--danger); }
tr.annule td { opacity: .55; }
.ligne-modele { display: flex; gap: .5rem; align-items: center; margin: .3rem 0; }

/* Saisie d'une intervention (page autonome, téléphone d'abord, sur le modèle de la saisie des heures) */
.page-saisie-intervention .carte-salarie { display: grid; gap: .5rem; }
.page-saisie-intervention .cs-tete { margin-bottom: 0; }
.si-choix { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .25rem 0 .75rem; }
.si-bascule, .si-structure, .si-puce { position: relative; cursor: pointer; }
.si-bascule input, .si-structure input, .si-puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.si-bascule span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--ligne); background: var(--surface); font-weight: 700; font-size: 1.05rem;
}
.si-bascule input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.si-bascule input:focus-visible + span, .si-structure input:focus-visible + span, .si-puce input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.si-jour input { flex: 1; min-height: 44px; width: 100%; text-align: center; font-weight: 600; }
.si-structures { display: flex; flex-wrap: wrap; gap: .5rem; }
.si-structure { flex: 1 1 8rem; }
.si-structure span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .3rem .6rem;
  border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 45%, white); background: color-mix(in srgb, var(--c) 8%, white); font-weight: 600;
}
.si-structure input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, white); }
.si-parcelles { display: flex; flex-wrap: wrap; gap: .4rem; }
.si-puce[hidden] { display: none; }
.si-puce span {
  display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .8rem; border-radius: 999px;
  border: 1px solid var(--ligne); background: var(--surface); font-size: .95rem;
}
.si-puce input:checked + span { background: color-mix(in srgb, var(--accent) 14%, white); border-color: var(--accent); font-weight: 600; }
.si-puce input:checked + span::before { content: '✓ '; white-space: pre; color: var(--accent); }
.si-actions-puces { margin: 0; font-size: .9rem; }
.page-saisie-intervention select, .page-saisie-intervention input:not([type="radio"]):not([type="checkbox"]), .page-saisie-intervention textarea {
  min-height: 44px; font-size: 1rem; width: 100%; min-width: 0; box-sizing: border-box;
}
.si-ligne {
  display: grid; grid-template-columns: 1fr 5.5rem 2.4rem; gap: .4rem; align-items: center;
  padding: .45rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, white); border: 1px solid var(--ligne);
}
.si-ligne + .si-ligne { margin-top: .45rem; }
.si-produit { grid-column: 1 / 3; }
.si-ligne .ls-x { grid-column: 3; grid-row: 1; height: 44px; }
.si-dose { grid-column: 1; grid-row: 2; text-align: center; font-weight: 700; }
.si-unite { grid-column: 2 / 4; grid-row: 2; }
.si-cible { grid-column: 1 / 4; grid-row: 3; }
.si-deux { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.si-deux label, .si-plus label { display: grid; gap: .2rem; font-weight: 600; font-size: .92rem; }
.si-aide { color: var(--doux); font-size: .88rem; margin: 0; }
.si-plus summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.si-plus[open] { display: grid; gap: .5rem; }
.si-fait { border-color: var(--accent); }
.si-fait p { margin: 0; }
.si-liens a { font-weight: 600; }
#bloc-meteo[hidden] { display: none; }

/* Type d'intervention : trois grosses cases, une seule cochée ; le formulaire ne montre que les champs utiles */
.ti-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .25rem 0 .75rem; }
.ti-case { position: relative; cursor: pointer; min-width: 0; }
.ti-case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ti-case span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  min-height: 84px; padding: .5rem .35rem; border-radius: 14px; border: 2px solid var(--ligne); background: var(--surface);
  font-weight: 700; font-size: 1rem; line-height: 1.15; color: var(--texte, inherit);
}
.ti-case-phyto { --c: #6b5aa6; } .ti-case-desherbage { --c: #b07a2a; } .ti-case-fumure { --c: #3f7a3a; }
.ti-case span .ico { color: var(--c); }
.ti-case input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, white); box-shadow: 0 0 0 1px var(--c) inset; }
.ti-case input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.ti-consigne { display: none; color: var(--doux); font-weight: 600; text-align: center; margin: .5rem 0 1rem; }
.ti-sans-type .ti-consigne { display: block; }
.ti-sans-type .ti-reste { display: none !important; }
.ti-pour-fumure { display: none; }
.ti-fumure .ti-pour-fumure { display: block; }
.ti-fumure .ti-cuve, .ti-fumure .ti-meteo, .ti-fumure [name="ligne_cible[]"] { display: none !important; }
.ti-fumure .si-unite { pointer-events: none; background: #f4f5f1; }
.fiche .ti-cases { grid-column: 1 / -1; max-width: 640px; }
.badge-type { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.badge-type-phyto { background: #ece8f6; color: #4e3f86; } .badge-type-desherbage { background: #f6ecdc; color: #7a5317; } .badge-type-fumure { background: #e3efe1; color: #2f5d2b; }
.fiche .ti-reste { display: contents; }
.ti-sans-type .saisie-pied, .ti-sans-type > .actions { display: none; }

/* Gestion : modifier / archiver / supprimer */
.bouton-modifier { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; padding: .2rem .55rem; border: 1px solid var(--ligne); border-radius: 8px; text-decoration: none; }
.bouton-modifier:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); text-decoration: none; }
.supprimer-impossible { margin-left: .75rem; opacity: .45; cursor: help; text-decoration: line-through; }
.zone-suppression { border-color: color-mix(in srgb, var(--danger) 35%, var(--ligne)); }
.zone-suppression p { max-width: 70ch; }
.boutons-suppression { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.bouton-danger { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .9rem; border-radius: 10px; border: 1px solid var(--danger); background: none; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; }
.bouton-danger:hover { background: var(--danger); color: #fff; }

/* Menu de gauche : titres de groupes, séparateur, sous-pages des Réglages */
.menu-gauche .mg-titre { margin: .9rem .6rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--doux); }
.menu-gauche .mg-titre:first-child { margin-top: .1rem; }
.menu-gauche .mg-separateur { margin: .6rem .6rem; height: 1px; background: var(--ligne); padding: 0; }
.menu-gauche a.mg-sous { margin-left: 1.1rem; padding-top: .25rem; padding-bottom: .25rem; font-size: .95rem; }
.menu-gauche a.mg-sous .ic.pastille-ic { width: 26px; height: 26px; }
.teinte-gris { background: linear-gradient(180deg, #8e9399, #6c7178); color: #fff; }

/* Réglages, façon Réglages du Mac : icônes carrées arrondies en dégradé, par groupes */
.reglages-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: .5rem; }
.reglages-recherche { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .7rem; min-height: 38px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface, #fff); color: var(--doux); width: min(100%, 280px); }
.reglages-recherche input { border: 0; outline: 0; background: none; font: inherit; flex: 1; min-width: 0; padding: .35rem 0; color: var(--texte); }
.reglages-recherche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-clair); }
.reglages-groupe { margin-top: 1.4rem; }
.reglages-groupe h2 { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--doux); margin: 0 0 .6rem; }
.reglages-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; padding: 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ligne) 35%, transparent); border: 1px solid var(--ligne); }
.reglage { display: grid; justify-items: center; align-content: start; gap: .3rem; text-align: center; padding: .9rem .5rem .8rem; border-radius: 12px; color: var(--texte); text-decoration: none; transition: background .15s; }
.reglage:hover, .reglage:focus-visible { background: var(--surface, #fff); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); text-decoration: none; }
.reglage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reglage[hidden], .reglages-groupe[hidden] { display: none; }
.reglage-icone { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 5px rgba(0, 0, 0, .18); margin-bottom: .2rem; }
.reglage-icone svg { stroke: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15)); }
.reglage-sarcelle { background: linear-gradient(180deg, #3ba596, #23766a); }
.reglage-bleu     { background: linear-gradient(180deg, #4ea3e0, #2266a8); }
.reglage-ambre    { background: linear-gradient(180deg, #f2b84a, #cf7d16); }
.reglage-violet   { background: linear-gradient(180deg, #9a83d6, #6447a8); }
.reglage-vert     { background: linear-gradient(180deg, #6fbf5f, #3d7f34); }
.reglage-ardoise  { background: linear-gradient(180deg, #8e9399, #5d6268); }
.reglage-nom { font-weight: 700; font-size: .98rem; }
.reglage-desc { font-size: .82rem; color: var(--doux); line-height: 1.3; }
.reglage-etat { white-space: nowrap; font-size: .76rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: rgba(63, 107, 58, .12); color: #2f5a2c; margin-top: .15rem; }
.reglage-etat.a-configurer { background: rgba(195, 125, 30, .16); color: #93571a; }
@media (max-width: 760px) {
  .reglages-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .6rem; gap: .4rem; }
  .reglage-icone { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .reglage { transition: none; } }

/* Groupes repliables du menu de gauche */
.menu-gauche .mg-bascule { display: flex; width: calc(100% - 1.2rem); align-items: center; justify-content: space-between; gap: .5rem; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; padding: .3rem 0; border-radius: 6px; }
.menu-gauche .mg-bascule:hover { color: var(--texte); }
.menu-gauche .mg-bascule:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-gauche .mg-groupe:first-child .mg-bascule { margin-top: .1rem; }
.mg-fleche { flex: none; transition: transform .15s; opacity: .7; }
.mg-replie .mg-fleche { transform: rotate(-90deg); }
.mg-replie .mg-liens { display: none; }
.mg-liens { display: block; }
@media (prefers-reduced-motion: reduce) { .mg-fleche { transition: none; } }

/* Listes de Gestion : une seule ligne par élément, texte trop long coupé avec « … » (texte complet au survol) */
.defile-liste { overflow-x: auto; }
.liste-une-ligne th, .liste-une-ligne td { white-space: nowrap; }
.liste-une-ligne .cellule { display: inline-block; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.liste-une-ligne td.boutons { width: 1%; }
.titre-boutons { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.titre-boutons form { margin: 0; }
@media (max-width: 760px) {
  .liste-une-ligne td { white-space: nowrap; min-width: 0; }
  .liste-une-ligne .cellule { max-width: 100%; }
  .liste-une-ligne td[data-l] { display: flex; gap: .75rem; overflow: hidden; }
  .liste-une-ligne td[data-l] .cellule { flex: 1 1 auto; min-width: 0; }
  .liste-produits td { white-space: nowrap; }
  .lp-nom-txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; -webkit-line-clamp: unset; }
  .lp-nom-bloc { flex-direction: row; align-items: center; min-width: 0; max-width: 100%; }
}

/* Pièces du matériel : formulaire, stock et alertes */
.titre-form-piece { font-size: 1rem; margin: 1.1rem 0 .5rem; }
.form-piece { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem .8rem; align-items: end; }
.form-piece label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; min-width: 0; }
.form-piece input, .form-piece select { width: 100%; min-width: 0; box-sizing: border-box; }
.form-piece .fp-large { grid-column: span 2; }
.form-piece .actions { display: flex; gap: .6rem; align-items: center; }
@media (max-width: 760px) { .form-piece { grid-template-columns: 1fr; } .form-piece .fp-large { grid-column: auto; } }
.lien-fournisseur { display: inline-flex; align-items: center; gap: .25rem; max-width: 12rem; }
.piece-alerte td { background: rgba(195, 125, 30, .1); }
.piece-alerte td:first-child { box-shadow: inset 3px 0 0 #c37d1e; }
.piece-en-edition td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.badge-alerte { display: inline-block; margin-left: .35rem; font-size: .74rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: rgba(195, 125, 30, .18); color: #8a4f12; white-space: nowrap; }
.resume-alerte { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .6rem .9rem; border-radius: 10px; background: rgba(195, 125, 30, .12); color: #7a4a14; }
.stock-rapide { display: inline-flex; align-items: center; gap: .25rem; margin: 0; }
.stock-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--ligne); background: var(--surface, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.stock-btn:hover { background: var(--accent-clair); }
.stock-nb { width: 3rem; text-align: center; font-weight: 700; min-height: 32px; }
@media (max-width: 760px) { .liste-pieces .stock-rapide { flex: none; } .stock-btn { width: 40px; height: 40px; } }
.liste-t-buses .cellule { max-width: 11rem; }
.liste-t-buses td, .liste-t-buses th { padding-left: .5rem; padding-right: .5rem; }

/* Buses montées : choix d'une buse avec recherche */
.choix-buse { position: relative; min-width: 0; width: 100%; }
.cb-saisie { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; }
.cb-saisie::placeholder { color: var(--doux); }
.cb-liste { position: fixed; z-index: 200; left: 0; top: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: .25rem 0; list-style: none;
  background: var(--surface, #fff); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.cb-liste li { padding: .45rem .7rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.cb-liste li[data-i="0"] { color: var(--doux); font-style: italic; border-bottom: 1px solid var(--ligne); }
.cb-liste li.cb-actif, .cb-liste li[data-i]:hover { background: var(--accent-clair); }
.cb-liste li.cb-choisie { font-weight: 700; }
.cb-liste li.cb-vide { color: var(--doux); cursor: default; font-size: .88rem; }
.buses-table td[data-l="Buse"] { min-width: 18rem; }
.generer-buse { display: inline-flex; align-items: center; gap: .4rem; min-width: min(100%, 22rem); }
@media (max-width: 760px) { .buses-table td[data-l="Buse"] { min-width: 0; } .generer-buse { display: grid; width: 100%; } }
.liste-une-ligne th { white-space: normal; vertical-align: bottom; }
.liste-t-buses td[data-l="Type"] .cellule { max-width: 9rem; }
.symetrie-info { padding: .6rem .85rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, transparent); margin: .5rem 0 .75rem; max-width: 70ch; }
.pos-sym { white-space: nowrap; font-weight: 600; }
.pos-sym .doux { font-weight: 400; }
.cb-saisie.cb-colore { font-weight: 700; border-color: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cb-saisie.cb-colore:focus { background: var(--surface, #fff) !important; color: var(--texte) !important; font-weight: 400; }
.cb-pastille { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .45em; vertical-align: -.05em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }

/* Photo du matériel */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.col-photo { width: 52px; padding-right: 0 !important; }
.vignette-materiel { display: block; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--fond); border: 1px solid var(--ligne); }
.vignette-materiel.vide-photo { display: grid; place-items: center; color: var(--doux); opacity: .55; }
.photo-zone { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-start; }
.photo-apercu img { display: block; width: 180px; height: 135px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ligne); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.photo-actions { display: grid; gap: .35rem; min-width: 0; flex: 1 1 220px; }
.photo-actions input[type=file] { max-width: 100%; }
@media (max-width: 760px) {
  .liste-t-materiel td.col-photo { display: block; width: auto; padding: .4rem .9rem 0 !important; }
  .liste-t-materiel .vignette-materiel { width: 64px; height: 64px; }
}
/* Icône Réglages façon macOS : carré arrondi gris dégradé, engrenage argenté */
.pastille-ic.teinte-mac { background: linear-gradient(180deg, #d5d7da, #8a8e94); border-radius: 26%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 3px rgba(0, 0, 0, .22); }
.menu-gauche .ic.pastille-ic.teinte-mac svg { width: 24px; height: 24px; }
.liste-une-ligne td, .liste-une-ligne th { padding-left: .55rem; padding-right: .55rem; }
.liste-t-materiel .cellule { max-width: 10rem; }
.liste-une-ligne td.boutons form { margin-left: .5rem; }
/* Boutons toujours visibles à droite, même si le tableau doit défiler (ordinateur) */
@media (min-width: 761px) {
  .liste-une-ligne .cellule { max-width: 12rem; }
  .liste-une-ligne td.boutons, .liste-une-ligne thead th:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); }
  .liste-une-ligne td.boutons { box-shadow: -8px 0 10px -8px rgba(0, 0, 0, .18); }
  .liste-une-ligne tr.piece-alerte td.boutons { background: #fbf3e7; }
}
@media (min-width: 761px) {
  .defile-liste { border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); }
  .defile-liste > table.liste-une-ligne { overflow: visible; border: 0; border-radius: 0; }
}
@media (min-width: 761px) { .liste-une-ligne thead th:last-child { background: #fafbf8; } }

/* Calculateur : curseurs liés pression / vitesse / volume */
.curseurs { display: grid; gap: .8rem; }
.curseur { display: grid; grid-template-columns: 6.5rem 1fr 9rem; gap: .8rem; align-items: center; }
.curseur label { font-weight: 700; }
.curseur input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.curseur-val { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; color: var(--doux); }
.curseur-val input { width: 4.6rem; text-align: right; font-weight: 700; font-size: 1.05rem; color: var(--texte); min-height: 38px; }
.curseur-infos { margin: 0; font-weight: 600; }
.bouton-calculateur { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 10px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; }
.bouton-calculateur:hover { filter: brightness(1.08); text-decoration: none; }
@media (max-width: 760px) { .curseur { grid-template-columns: 1fr auto; } .curseur input[type=range] { grid-column: 1 / -1; grid-row: 2; } }

/* Historiques repliés par défaut : un titre cliquable pour les déplier */
details.historique-replie > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; min-height: 40px; }
details.historique-replie > summary::-webkit-details-marker { display: none; }
details.historique-replie > summary h2 { margin: 0; }
details.historique-replie > summary::before { content: ''; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; color: var(--accent); flex: none; margin-right: .1rem; }
details.historique-replie[open] > summary::before { transform: rotate(45deg); }
details.historique-replie[open] > summary { margin-bottom: .8rem; }
.replie-nb { font-size: .8rem; font-weight: 600; background: var(--fond); color: var(--doux); border-radius: 999px; padding: .1rem .55rem; }
.curseurs > h2 { margin-bottom: .3rem; } .curseurs > .aide-bas { margin-top: 0; }

/* Calculateur : sauvegarder la configuration */
.sauver-reglage { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 .8rem; }
.sauver-reglage input[type=text] { flex: 1 1 14rem; min-width: 0; max-width: 24rem; }
.sauver-reglage button { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 600px) { .sauver-reglage input[type=text], .sauver-reglage button { flex: 1 1 100%; max-width: none; justify-content: center; } }
/* Buses montées : configurations sauvegardées */
.reglages-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.reglages-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); }
.reglages-liste .rg-nom { font-weight: 600; flex: 1 1 12rem; min-width: 0; }
.reglages-liste .rg-chiffres { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-variant-numeric: tabular-nums; }
.reglages-liste .rg-qui { flex-basis: 100%; font-size: .85rem; color: var(--doux); }
.reglages-liste .rg-actions { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.reglages-liste .rg-actions form { margin: 0; }
.rg-alerte { flex-basis: 100%; font-size: .85rem; color: #a35a00; }

/* Gestion : nom cliquable et fiche en lecture seule */
button.lien-fiche { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; max-width: 100%; }
button.lien-fiche:hover { text-decoration-color: currentColor; }
button.lien-fiche.cellule { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.fiche-fenetre { border: 0; border-radius: 16px; padding: 0; width: min(36rem, calc(100vw - 2rem)); max-height: min(85vh, 50rem); background: var(--surface); color: var(--texte); box-shadow: 0 20px 60px rgba(0,0,0,.25); display: none; flex-direction: column; }
.fiche-fenetre[open] { display: flex; }
.fiche-fenetre::backdrop { background: rgba(20, 28, 20, .45); }
.fiche-corps { flex: 1 1 auto; overflow-y: auto; padding: 1.3rem 1.4rem .6rem; }
.fiche-tete { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fiche-titre { margin: 0; font-size: 1.3rem; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fiche-photo { width: 100%; max-height: 16rem; object-fit: cover; border-radius: 10px; }
.fiche-pastille { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.fiche-liste { margin: 0; display: grid; gap: 0; }
.fiche-liste > div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--ligne); }
.fiche-liste dt { color: var(--doux); font-size: .92rem; }
.fiche-liste dd { margin: 0; overflow-wrap: anywhere; }
.fiche-liste .pastille-couleur { vertical-align: -2px; }
.fiche-boutons { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.4rem; border-top: 1px solid var(--ligne); }
.fiche-boutons .principal { display: inline-flex; align-items: center; gap: .4rem; }
.badge-archive { font-size: .75rem; background: var(--fond); color: var(--doux); padding: .1rem .5rem; border-radius: 999px; }
@media (max-width: 600px) {
  .fiche-fenetre { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .fiche-liste > div { grid-template-columns: 1fr; gap: .15rem; }
  .fiche-boutons { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); }
  .fiche-boutons > * { flex: 1; justify-content: center; text-align: center; }
  .fiche-boutons > span:empty { display: none; }
  .fiche-boutons > span > a { width: 100%; justify-content: center; }
}

/* Fiche matériel : pièces et fluides en liste */
.fiche-sousliste { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.fiche-sousliste li { overflow-wrap: anywhere; }

/* Matériel : conversion de l'ancien coefficient d'une rampe */
.conversion-coef { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1rem; margin: 0 0 1rem; border-radius: var(--rayon); background: #fff6e5; border: 1px solid #f0d9a8; }
.conversion-coef p { flex-basis: 100%; margin: 0; }
.conversion-coef small { flex-basis: 100%; color: var(--doux); }
.coef-detail { font-size: .88rem; color: var(--doux); margin: 0; flex-basis: 100%; grid-column: 1 / -1; order: 99; }
.si-deux.si-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.si-config { display: grid; gap: .2rem; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.si-deux.si-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.si-config { display: grid; gap: .2rem; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.si-deux.si-trois label { grid-template-rows: 1fr auto; align-items: end; }

/* ---------- Programme de traitements : calendrier (repris du planning des gîtes, gestion.pagnagues.com) ---------- */
.cal-nav { align-items: center; }
.cal-nav .bouton-nav { text-decoration: none; }
.cal-nav button.bouton-nav { cursor: pointer; font: inherit; }
.cal-nav input[type=date] { width: auto; }
.cal-periode { font-size: 1.05rem; }
.cal-zoom { display: inline-flex; align-items: center; gap: .35rem; }
.cal-zoom span { min-width: 5.6rem; text-align: center; font-size: .88rem; font-weight: 600; }
.cal-zoom .bouton-nav:disabled { opacity: .35; cursor: default; }
.cal-legende i { border: 1px solid var(--ligne); }
.lg-fenetre { background: #d9e8d4; border-color: #a9c9a0 !important; width: 1.4rem !important; }
.lg-prevue { background: repeating-linear-gradient(135deg, var(--accent) 0 4px, #c9dcc4 4px 8px); border-color: var(--accent) !important; }
.lg-realisee { background: var(--accent); border-color: var(--accent) !important; }
.cal-defile { overflow-x: auto; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none; margin-bottom: .5rem; }
.cal-defile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-defile.cal-glisse { cursor: grabbing; }
.cal-defile.cal-glisse .cal-barre { pointer-events: none; }
.cal-defile a { -webkit-user-drag: none; }
.cal-chargement { padding: 2rem; }
.cal { --cw: 30px; --gw: 170px; width: calc(var(--gw) + var(--j) * var(--cw)); }
.cal-ligne { display: flex; border-bottom: 1px solid var(--ligne); }
.cal-ligne:last-child { border-bottom: 0; }
.cal-gite { position: sticky; left: 0; z-index: 5; width: var(--gw); flex-shrink: 0; display: flex; flex-direction: column; justify-content: center;
  padding: .45rem .75rem; background: var(--surface); border-right: 1px solid var(--ligne); text-decoration: none; color: var(--texte); box-sizing: border-box; }
.cal-nom { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-nom i { width: .65rem; height: .65rem; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.cal-gite small { color: var(--doux); font-size: .74rem; }
a.cal-gite:hover .cal-nom { color: var(--accent); }
.cal-coin { background: #fafbf8; font-size: .8rem; font-weight: 700; color: var(--texte); justify-content: flex-end; }
.cal-piste { position: relative; display: flex; width: calc(var(--j) * var(--cw)); flex-shrink: 0; }
.cal-tete { position: sticky; top: 0; z-index: 6; background: #fafbf8; }
.cal-tete .cal-piste { padding-top: 1.3rem; }
.cal-jour { position: relative; width: var(--cw); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: .15rem 0 .3rem;
  border-left: 1px solid #eef0ea; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.cal-jour.debut-mois { border-left: 2px solid #c9cec6; }
.cal-mois { position: absolute; top: -1.2rem; left: 4px; font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--texte); }
.cal-lettre { font-size: .66rem; color: var(--doux); }
.cal-num { font-size: .82rem; font-weight: 600; }
.cal-jour.we { background: #f3f4f0; }
.cal-jour.auj { background: var(--accent); color: #fff; border-radius: 6px 6px 0 0; }
.cal-jour.auj .cal-lettre { color: #fff; }
.cal-piste-cible, .cal-piste-structure { background-color: #fff;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--cw) * 5), #f5f6f2 calc(var(--cw) * 5) calc(var(--cw) * 7)),
    repeating-linear-gradient(90deg, #eef0ea 0 1px, transparent 1px var(--cw)); }
.cal-serre .cal-piste-cible, .cal-serre .cal-piste-structure { background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--cw) * 5), #f7f8f5 calc(var(--cw) * 5) calc(var(--cw) * 7)); }
.cal-tres-serre .cal-piste-cible, .cal-tres-serre .cal-piste-structure { background-image: none; }
.cal-piste-cible { height: 40px; }
.cal-piste-structure { height: 40px; }
.cal-ligne-cible { border-top: 2px solid #d6dad2; }
.cal-ligne-cible:first-of-type { border-top: 0; }
.cal-ligne-cible .cal-gite { background: #fafbf8; }
.cal-ligne-structure .cal-gite { padding-left: 1.4rem; }
.cal-ligne-structure .cal-nom { font-weight: 600; font-size: .85rem; color: var(--c); }
.cal-passe { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(240, 242, 237, .55); pointer-events: none; z-index: 2; }
.cal-auj-col { position: absolute; top: 0; bottom: 0; width: max(var(--cw), 2px); background: rgba(63, 107, 58, .12); box-shadow: inset 2px 0 0 rgba(63, 107, 58, .5); pointer-events: none; z-index: 2; }
.cal-sep-mois { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #d6dad2; pointer-events: none; z-index: 1; }
.cal-fenetre { position: absolute; top: 8px; height: 24px; z-index: 1; background: #d9e8d4; border: 1px solid #a9c9a0; border-radius: 7px; box-sizing: border-box;
  display: flex; align-items: center; padding: 0 .45rem; font-size: .74rem; font-weight: 600; color: #3f5f3a; white-space: nowrap; overflow: hidden; }
.cal-fenetre-fond { position: absolute; top: 0; bottom: 0; z-index: 0; background: rgba(169, 201, 160, .22); border-left: 1px dashed #a9c9a0; border-right: 1px dashed #a9c9a0; }
.cal-barre { position: absolute; top: 7px; height: 26px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .35rem;
  border-radius: 7px; font-size: .76rem; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap; box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(31, 42, 31, .18); transition: filter .15s, transform .15s; }
.cal-barre span { overflow: hidden; text-overflow: ellipsis; }
.cal-barre:hover { filter: brightness(1.06); transform: translateY(-1px); z-index: 4; }
.cb-realise { background: var(--c); color: #fff; border: 1px solid var(--c); }
.cb-prevu { background: repeating-linear-gradient(135deg, var(--c) 0 6px, var(--cl, #eee) 6px 12px); color: var(--texte); border: 1px solid var(--c); }
.cb-prevu span { background: rgba(255, 255, 255, .88); padding: 0 .3rem; border-radius: 5px; }
.cb-mini { padding: 0; border-radius: 4px; }
.cal-serre .cal-jour { border-left-color: transparent; }
.cal-serre .cal-jour.debut-mois { border-left: 2px solid #c9cec6; }
.cal-serre .cal-jour.lun { border-left: 1px solid #dfe3db; }
.cal-serre .cal-lettre { display: none; }
.cal-serre .cal-num { display: none; }
.cal-serre .cal-jour.lun .cal-num, .cal-serre .cal-jour.auj .cal-num { display: block; position: absolute; left: 1px; bottom: .2rem; font-size: .62rem; font-weight: 500; white-space: nowrap; }
.cal-serre .cal-tete .cal-piste { min-height: 2.5rem; }
.cal-tres-serre .cal-jour { padding: 0; min-height: .9rem; }
.cal-tres-serre .cal-jour.we { background: transparent; }
.cal-tres-serre .cal-jour.auj { border-radius: 0; }
.cal-tres-serre .cal-jour.lun { border-left-color: transparent; }
.cal-tres-serre .cal-jour.lun .cal-num, .cal-tres-serre .cal-jour.auj .cal-num { display: none; }
.cal-tres-serre .cal-tete .cal-piste { min-height: 1.6rem; }
.cal-etroit .cal-num { font-size: .68rem; letter-spacing: -.03em; }
.cal-etroit .cal-lettre { font-size: .58rem; }
.prog-titre-cibles { font-size: 1.1rem; margin: 1.4rem 0 .6rem; }
.programme .prog-ligne { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 760px) {
  .cal { --gw: 104px; }
  .cal-gite { padding: .4rem .5rem; }
  .cal-ligne-structure .cal-gite { padding-left: .6rem; }
  .cal-nom { font-size: .8rem; }
  .cal-ligne-structure .cal-nom { font-size: .74rem; white-space: normal; line-height: 1.15; }
  .cal-gite small { font-size: .68rem; }
  .cal-periode { width: 100%; order: -1; }
  .cal-nav { gap: .5rem; }
  .cal-nav input[type=date] { flex: 1 1 40%; min-width: 0; }
  .cal-zoom { order: 1; }
  .cal-zoom span { min-width: 4.8rem; }
  .cal-legende { font-size: .8rem; gap: .3rem .8rem; }
  .programme .prog-ligne { grid-template-columns: 1fr; }
}

/* ---------- Programme de traitements : calendrier « un carré = un passage » (couleur par cible) ---------- */
.calp-filtres { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .6rem; }
.calp-filtres button { font: inherit; font-size: .88rem; padding: .32rem .7rem; border-radius: 99px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); cursor: pointer; min-height: 36px; }
.calp-filtres button b { display: inline-block; min-width: 1.5em; margin-right: .15rem; padding: 0 .25em; border-radius: 4px; background: #eceee8; font-size: .78rem; text-align: center; }
.calp-filtres button.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.calp-filtres button.actif b { background: rgba(255, 255, 255, .25); color: #fff; }
.calp-legende .lg-plein { background: #6e6e6e; border-color: #6e6e6e !important; }
.calp-legende .lg-vide { background: #fff; border: 2px solid #6e6e6e !important; box-sizing: border-box; }
.calp-legende .lg-fenetre { background: #ecebe6; border-color: #dcdad3 !important; width: 1.4rem !important; }
.cal-prog { background: #fafaf8; }
.cal-prog .cal-ligne { border-bottom: 1px solid #e6e5df; }
.calp-ligne .cal-gite, .calp-axe .cal-gite { background: #fafaf8; border-right: 1px solid #d9d8d1; }
.calp-nom { flex-direction: row; align-items: center; justify-content: flex-end; gap: .45rem; text-align: right; font-size: .95rem; font-weight: 500; padding: .3rem .75rem; }
.calp-nom i { width: .7rem; height: .7rem; border-radius: 2px; background: var(--c); flex-shrink: 0; order: 2; }
.calp-nom span { overflow-wrap: anywhere; }
a.calp-nom:hover span { color: var(--accent); text-decoration: underline; }
.calp-piste { display: block; background: #fafaf8; }
.calp-fenetre { position: absolute; top: 0; bottom: 0; background: #ecebe6; z-index: 0; }
.calp-mois-trait { position: absolute; top: 0; bottom: 0; width: 1px; background: #dddcd5; pointer-events: none; z-index: 1; }
.calp-auj { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: .55; z-index: 1; pointer-events: none; }
.calp-carre { position: absolute; width: 20px; height: 20px; z-index: 3; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; text-decoration: none; border-radius: 2px; border: 2px solid var(--c); }
.calp-carre.realise { background: var(--c); color: #fff; }
.calp-carre.prevu { background: #fff; color: var(--c); }
.calp-carre:hover, .calp-carre:focus-visible { z-index: 5; outline: 2px solid rgba(0, 0, 0, .35); outline-offset: 1px; }
.calp-date { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 500; letter-spacing: 0; color: #55524c; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.calp-axe { border-top: 1px solid #c9c8c0; border-bottom: 0 !important; }
.calp-piste-axe { display: block; height: 2.7rem; background: #fafaf8; }
.calp-jour { position: absolute; top: .2rem; transform: translateX(-50%); font-size: .66rem; color: #8a877f; font-variant-numeric: tabular-nums; }
.calp-jour.auj { color: var(--accent); font-weight: 700; }
.calp-mois { position: absolute; bottom: .3rem; font-size: .85rem; color: #77746c; white-space: nowrap; }
.calp-piste-axe .calp-mois-trait { bottom: auto; height: .45rem; background: #c9c8c0; }
@media (max-width: 760px) {
  .calp-nom { font-size: .74rem; padding: .3rem .4rem; gap: .25rem; }
  .calp-nom span { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
  .calp-nom i { width: .55rem; height: .55rem; }
  .calp-mois { font-size: .7rem; }
  .calp-filtres button { font-size: .82rem; padding: .3rem .55rem; }
}

/* Vue Saison : tout tient dans la largeur, pas de défilement horizontal */
.cal-defile.calp-saison { overflow-x: hidden; cursor: default; }
.cal-nav .bouton-nav:disabled { opacity: .35; cursor: default; }

/* Calendrier du programme : une ligne par produit, une sous-ligne par structure */
.calp-groupe { border-bottom: 1px solid #cfcec6 !important; }
.calp-produit { position: sticky; left: 0; z-index: 6; width: var(--gp); flex-shrink: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-end; text-align: right; padding: .3rem .6rem; background: #fafaf8; border-right: 1px solid #e6e5df; }
.calp-produit b { font-size: .9rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.calp-produit small { font-size: .74rem; color: var(--doux); line-height: 1.25; margin-top: .1rem; }
.calp-sous { display: flex; flex-direction: column; }
.calp-sousligne { display: flex; }
.calp-sousligne + .calp-sousligne { border-top: 1px dashed #e0dfd8; }
.calp-struct { position: sticky; left: var(--gp); z-index: 5; width: var(--gs); flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end;
  text-align: right; padding: .2rem .55rem; background: #fafaf8; border-right: 1px solid #d9d8d1; font-size: .76rem; color: #5e5b54; line-height: 1.15; }
.calp-struct-ini { display: none; font-weight: 700; }
@media (max-width: 760px) {
  .calp-produit { padding: .3rem .35rem; }
  .calp-produit b { font-size: .74rem; hyphens: auto; -webkit-hyphens: auto; }
  .calp-produit small { font-size: .64rem; }
  .calp-struct { padding: .2rem .25rem; justify-content: center; font-size: .68rem; }
  .calp-struct-nom { display: none; }
  .calp-struct-ini { display: inline; }
}

/* Calendrier du programme : ronds (contour = cible, intérieur = structure), une ligne par produit */
.calp-ligne .calp-nom { align-items: center; }
.calp-nom-texte { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.calp-nom-texte b { font-size: .9rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.calp-nom-texte small { font-size: .74rem; color: var(--doux); line-height: 1.25; margin-top: .1rem; }
.calp-ico { width: .95em; height: .95em; margin-right: .3em; vertical-align: -.12em; fill: currentColor; }
.calp-type-desherbage .calp-nom, .calp-type-desherbage .calp-piste { background: #fbf4dc; }
.calp-type-desherbage .calp-ico { color: #a87400; }
.calp-type-fumure .calp-nom, .calp-type-fumure .calp-piste { background: #f1ebe2; }
.calp-type-fumure .calp-ico { color: #7a5a35; }
.calp-rond { position: absolute; width: 26px; height: 26px; z-index: 3; }
.cal-prog .calp-fenetre { background: rgba(110, 104, 88, .12); }
.calp-legende .lg-fenetre { background: rgba(110, 104, 88, .16); }
.calp-svg { display: block; overflow: visible; }
.calp-svg a { cursor: pointer; }
.calp-svg a:hover circle, .calp-svg a:hover path, .calp-svg a:focus-visible circle, .calp-svg a:focus-visible path { filter: brightness(.82); }
.calp-rond:hover { z-index: 5; }
.calp-lettre { font-size: 9.5px; font-weight: 700; fill: #2b2622; font-family: inherit; }
.calp-lettre.plein { fill: #fff; }
.calp-filtres button b { color: #fff; }
.calp-legende { margin-bottom: .3rem; }
.calp-legende .lg-titre { color: var(--texte); font-weight: 600; }
.calp-legende i.lg-anneau { width: .95rem; height: .95rem; border-radius: 50%; background: #fff; border: 3px solid #888; box-sizing: border-box; }
.calp-legende i.lg-rond { border-radius: 50%; }
.calp-legende i.lg-pale { background: #cfcfcf; border-color: #cfcfcf !important; }
.calp-legende i.lg-desherbage { background: #fbf4dc; border-color: #e3d08f !important; width: 1.4rem !important; }
.calp-legende i.lg-fumure { background: #f1ebe2; border-color: #d2c4ae !important; width: 1.4rem !important; }
@media (max-width: 760px) {
  .calp-nom-texte b { font-size: .74rem; hyphens: auto; -webkit-hyphens: auto; }
  .calp-nom-texte small { font-size: .64rem; }
}

/* Calendrier du programme : icônes visibles, contour plein / pointillé, fenêtre à la couleur de la cible */
.calp-ico { width: 1.25rem; height: 1.25rem; margin-right: .35rem; vertical-align: -.28rem; flex-shrink: 0; }
.calp-type-phyto .calp-ico { color: #b5482f; }
.calp-type-desherbage .calp-ico { color: #3f8f3a; }
.calp-type-fumure .calp-ico { color: #8a6a3c; }
.cal-prog .calp-fenetre { top: 3px; bottom: 3px; border: 0; border-radius: 3px; }   /* bande pâle seule, sans trait */
.calp-legende .lg-fenetre { background: rgba(42, 120, 214, .14); border: 0 !important; border-radius: 3px; width: 1.6rem !important; }
.calp-legende i.lg-trait-plein { border: 3px solid #555; }
.calp-legende i.lg-trait-pointille { border: 3px dotted #555; }
.calp-legende .lg-ico { display: inline-flex; align-items: center; }
.calp-legende .lg-ico .calp-ico { margin-right: .25rem; vertical-align: 0; }
@media (max-width: 760px) { .calp-ico { width: 1rem; height: 1rem; margin-right: .2rem; vertical-align: -.2rem; } }

/* Calendrier du programme : lignes toutes sur le même fond, icône calée à gauche, produit à droite */
.calp-type-desherbage .calp-nom, .calp-type-desherbage .calp-piste, .calp-type-fumure .calp-nom, .calp-type-fumure .calp-piste { background: #fafaf8; }
.calp-ligne .calp-nom { justify-content: space-between; gap: .4rem; }
.calp-ligne .calp-nom > .calp-ico { margin-right: 0; }
.calp-type-phyto .calp-ico { color: #7a5a2e; }

/* Programme : filtre (lettre dans un rond), légende en encadré, liste des interventions prévues avec produit */
.calp-filtres button b { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; min-width: 0; padding: 0; border-radius: 50%; font-size: .72rem; line-height: 1; margin-right: .25rem; }
.calp-legende-boite { display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 0 0 .7rem; padding: .55rem .2rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; font-size: .84rem; }
.lgb-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: 0 1.4rem 0 .9rem; }
.lgb-groupe:first-child { border-left: 0; }
.lgb-titre { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
.lgb-titre small { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.lgb-item { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; color: var(--texte); }
.lgb-anneau { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 3px solid #666; background: #fff; box-sizing: border-box; flex-shrink: 0; }
.lgb-anneau.lgb-pointille { border-style: dotted; }
.lgb-rond { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .66rem; font-weight: 700; font-style: normal; flex-shrink: 0; }
.lgb-fenetre { width: 1.9rem; height: .95rem; background: rgba(42, 120, 214, .14); border: 0; border-radius: 3px; flex-shrink: 0; }
.lgb-item.lg-ico .calp-ico { margin-right: 0; vertical-align: 0; }
.lgb-item.lg-ico > span { display: inline-flex; }
.prog-prevues ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: .3rem 1.2rem; }
.prog-prevues li { justify-content: flex-start; min-width: 0; }
.prog-prevues li a { min-width: 0; overflow-wrap: anywhere; }
.prog-prevues li form { margin-left: auto; }
@media (max-width: 760px) {
  .calp-legende-boite { font-size: .8rem; padding: .5rem .1rem; }
  .lgb-groupe { padding: 0 .6rem; border-left: 0; width: 100%; }
  .prog-prevues ul { grid-template-columns: 1fr; }
}

/* Calendrier du programme : glisser un rond prévu pour changer sa date */
.calp-rond.calp-mobile { cursor: grab; }
.calp-rond.calp-mobile .calp-svg a { cursor: grab; }
.calp-rond.calp-en-deplacement { z-index: 8; cursor: grabbing; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.calp-rond.calp-en-deplacement .calp-date { font-weight: 700; color: #fff; background: #2b2622; padding: .05rem .35rem; border-radius: 4px; }
.calp-rond.calp-enregistre { opacity: .6; }
.calp-message { margin: 0 0 .4rem; padding: .35rem .7rem; border-radius: 8px; background: var(--accent-clair); color: var(--accent); font-size: .88rem; font-weight: 600; }
.calp-legende-boite { margin-top: .6rem; }

/* Programme, liste « Cibles » : tableau des interventions prévues */
.prog-table-defile { overflow-x: auto; margin-top: .5rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface); }
.prog-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prog-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); font-weight: 700; padding: .45rem .7rem; background: #fafbf8; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.prog-table td { padding: .4rem .7rem; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.prog-table tr:last-child td { border-bottom: 0; }
.prog-table tbody tr:hover { background: #f7f8f4; }
.pt-structure { white-space: nowrap; }
.pt-structure i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; }
.pt-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-produit { font-weight: 600; }
.pt-dose { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog-table td.pt-actions { white-space: nowrap; text-align: right; }
.pt-actions form { display: inline; margin: 0 0 0 .35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .prog-table { font-size: .82rem; } .prog-table th, .prog-table td { padding: .4rem .5rem; } }
.prog-prevues { min-width: 0; max-width: 100%; }
.prog-table-defile { max-width: 100%; }
@media (max-width: 760px) {
  .programme .prog-ligne { grid-template-columns: minmax(0, 1fr); }
  .prog-table .pt-structure { white-space: normal; }
  .pt-actions .secondaire-bouton { padding-left: .5rem; padding-right: .5rem; }
}
@media (max-width: 760px) { .prog-prevues { overflow: hidden; } .prog-ligne { min-width: 0; overflow: hidden; } }

/* Fiche d'une intervention : bouton Supprimer (intervention prévue) */
.actions .bouton-supprimer-passage { margin-left: auto; }

/* Programme : message de confirmation placé au-dessus de la cible concernée */
.message-cible { scroll-margin-top: 5.5rem; margin: .6rem 0; }
.prog-ligne { scroll-margin-top: 5.5rem; }

/* ---------- Programme : boutons d'export PDF (téléchargement direct) ---------- */
.calp-filtres { align-items: center; }
.bouton-pdf { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .88rem; font-weight: 600; padding: .32rem .8rem; min-height: 36px; border-radius: 99px;
  border: 1px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }
.bouton-pdf:hover { background: var(--accent-clair); }
.calp-filtres .bouton-pdf { margin-left: auto; }
.prog-titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 .6rem; }
.prog-titre-ligne .prog-titre-cibles { margin: 0; }
a.bouton-pdf { text-decoration: none; }

/* ---------- Suivi des interventions : filtres et regroupement ---------- */
.nav-semaine .bouton-nav.actif { border-color: var(--accent); color: var(--accent); }
.suivi-choix { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 1.1rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; }
.suivi-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.suivi-ligne label { margin: 0; }
.suivi-ligne select { width: auto; max-width: 100%; }
.suivi-lib { min-width: 5.6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
.suivi-raz { font-size: .88rem; }
.suivi-segments { display: inline-flex; border: 1px solid var(--ligne); border-radius: 99px; overflow: hidden; }
.suivi-segments label { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; font-size: .9rem; cursor: pointer; border-left: 1px solid var(--ligne); background: var(--surface); }
.suivi-segments label:first-child { border-left: 0; }
.suivi-segments label.actif { background: var(--accent); color: #fff; font-weight: 600; }
.suivi-segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.suivi-segments label:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.suivi-ligne .compte { margin-left: auto; }
.suivi-groupe { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .6rem; margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.suivi-groupe i { align-self: center; width: .8rem; height: .8rem; border-radius: 50%; flex-shrink: 0; }
.suivi-groupe small { font-size: .85rem; font-weight: 400; color: var(--doux); }
@media (max-width: 760px) {
  .suivi-choix { padding: .6rem .65rem; }
  .suivi-lib { width: 100%; min-width: 0; }
  .suivi-ligne select { flex: 1 1 45%; }
  .suivi-ligne label:has(select) { flex: 1 1 45%; display: flex; }
  .suivi-ligne label:has(select) select { flex: 1; }
  .suivi-segments label { padding: 0 .7rem; font-size: .85rem; }
  .suivi-ligne .compte { margin-left: 0; width: 100%; }
}
.suivi-annee { min-width: 5rem; border-color: var(--accent); color: var(--accent); font-size: 1.05rem; }
.suivi-retour-annee { font-size: .9rem; margin-left: .3rem; }
@media (max-width: 760px) {
  .suivi-filtres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; }
  .suivi-filtres .suivi-lib, .suivi-filtres .suivi-raz { grid-column: 1 / -1; }
  .suivi-filtres label { display: block; min-width: 0; }
  .suivi-filtres select { width: 100%; min-width: 0; font-size: .9rem; padding-left: .55rem; padding-right: 1.6rem; text-overflow: ellipsis; }
}

/* ---------- Programme › formulaire d'une cible : interventions prévues ---------- */
.iv-section { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--ligne); }
.iv-section h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.iv-existantes { margin: 0 0 .7rem; font-size: .92rem; }
.iv-bloc { position: relative; margin: 0 0 .8rem; padding: .7rem .9rem .8rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--surface); min-width: 0; }
.iv-bloc legend { padding: 0 .35rem; font-weight: 700; font-size: .95rem; }
.iv-retirer { position: absolute; top: .35rem; right: .7rem; }
.iv-grille { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .6rem 1.2rem; align-items: start; }
.iv-date, .iv-structures { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.iv-date > span, .iv-structures > span, .iv-sous-titre { font-size: .78rem; font-weight: 600; color: var(--doux); }
.iv-structures > div { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.iv-struct { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
.iv-struct i { width: .75rem; height: .75rem; border-radius: 50%; flex-shrink: 0; }
.iv-produits { margin-top: .6rem; display: flex; flex-direction: column; gap: .35rem; }
.iv-lignes { display: flex; flex-direction: column; gap: .4rem; }
.iv-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 3.6rem 2.4rem; gap: .4rem; align-items: center; max-width: 34rem; }
.iv-ligne select, .iv-ligne input { width: 100%; min-width: 0; }
.iv-unite { font-size: .85rem; color: var(--doux); white-space: nowrap; }
.iv-moins { width: 2.4rem; height: 2.4rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--surface); font-size: 1.1rem; cursor: pointer; color: var(--doux); }
.iv-moins:hover { border-color: #b3261e; color: #b3261e; }
.iv-plus-produit { align-self: flex-start; }
#iv-ajouter { margin-top: .1rem; }
@media (max-width: 760px) {
  .iv-grille { grid-template-columns: minmax(0, 1fr); }
  .iv-ligne { grid-template-columns: minmax(0, 1fr) 5rem 2.6rem 2.4rem; }
  .iv-bloc { padding: .6rem .65rem .7rem; }
}
@media (max-width: 760px) {
  .iv-ligne { grid-template-columns: minmax(0, 1fr) 3.4rem 2.4rem; }
  .iv-ligne select { grid-column: 1 / -1; }
  .iv-ligne + .iv-ligne { padding-top: .45rem; border-top: 1px dashed var(--ligne); }
  .iv-struct > span { line-height: 1.25; }
}

/* ---------- Saisie d'une intervention : plusieurs structures ---------- */
.si-groupe-parcelles + .si-groupe-parcelles { margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--ligne); }
.si-groupe-parcelles[hidden] { display: none; }
.si-groupe-titre { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-weight: 600; font-size: .92rem; }
.si-groupe-titre[hidden] { display: none; }
.si-groupe-titre i { width: .75rem; height: .75rem; border-radius: 50%; flex-shrink: 0; }
.si-structure input:checked + span::before { content: '✓ '; white-space: pre; }

/* ---------- Commandes : préparer d'après les besoins (jours ou programme d'une campagne) ---------- */
.form-preparer { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.form-preparer select { width: auto; }
.q-unite { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.q-unite .unite { font-size: .8rem; min-width: 1.2rem; text-align: left; }

/* ---------- Commandes : une structure et une famille par commande, bons de commande ---------- */
.bouton-export { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; text-decoration: none; }
.bouton-export:hover { background: var(--surface); outline: 1px solid var(--ligne); }
.ic-xls { color: #1d6f42; }
.ic-pdf { color: #c62828; }
.exports-ligne { white-space: nowrap; }
.exports-commande { display: inline-flex; align-items: center; gap: .15rem; }
.exports-commande .unite { margin-right: .3rem; }
.liste-commande .petit-nb { width: 6.5rem; }
@media (max-width: 760px) {
  .liste-commandes .exports-ligne { text-align: left; }
}
.liste-commandes td.nb { white-space: nowrap; }

/* ---------- Commandes : statut depuis la liste, livraison en partie ---------- */
.statut-partielle { background: #e3eefb; color: #1f5fa8; }
.avancement { color: var(--doux); white-space: nowrap; }
.menu-statut { display: inline-block; position: relative; vertical-align: middle; }
.menu-statut > summary { list-style: none; cursor: pointer; color: var(--texte, #333); gap: 1px; width: auto; padding: 0 .35rem; }
.menu-statut > summary::-webkit-details-marker { display: none; }
.menu-statut > summary .chevron { color: var(--doux); }
.menu-statut[open] > summary { background: var(--surface); outline: 1px solid var(--ligne); }
.menu-statut-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 14rem; padding: .35rem; text-align: left;
  background: var(--fond-carte, #fff); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.menu-statut-titre { margin: .2rem .5rem .35rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
.menu-statut-liste form { margin: 0; }
.menu-statut-liste button { display: flex; align-items: center; gap: .35rem; width: 100%; min-height: 40px; padding: .3rem .5rem; border: 0; border-radius: 7px; background: none; cursor: pointer; font: inherit; text-align: left; }
.menu-statut-liste button:hover:not([disabled]) { background: var(--surface); }
.menu-statut-liste button[disabled] { cursor: default; opacity: .75; }
.liste-commande .col-recus, .liste-commande .col-reception { display: none; }
.liste-commande.avec-recus .col-recus { display: table-cell; }
.liste-commande.avec-reception .col-reception { display: table-cell; }
.liste-commande .ligne-recue td { background: #f3faf4; }
.reception-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0 0 .6rem; padding: .6rem .8rem; border: 1px solid #b9d3f0; background: #f2f7fd; border-radius: 10px; scroll-margin-top: 80px; }
.reception-tete[hidden] { display: none; }
.reception-tete input { width: auto; }
.reception-tete .aide-bas { margin: 0; flex-basis: 100%; }
.tout-recu { margin-left: .3rem; font-size: .85rem; }
@media (max-width: 760px) {
  .liste-commande.avec-recus .col-recus, .liste-commande.avec-reception .col-reception { display: flex; }
  .menu-statut-liste { right: auto; left: 0; }
}
table.liste-commandes { overflow: visible; }   /* le menu de statut doit pouvoir dépasser du tableau */
table.liste-commandes thead th:first-child { border-top-left-radius: var(--rayon); }
table.liste-commandes thead th:last-child { border-top-right-radius: var(--rayon); }
.tout-recu { white-space: nowrap; }
.menu-statut-suppr { margin-top: .3rem !important; padding-top: .3rem; border-top: 1px solid var(--ligne); }
.menu-statut-liste .menu-statut-suppr button { color: #b3261e; font-weight: 600; }
.menu-statut-liste .menu-statut-suppr button:hover { background: #fdecea; }

/* ---------- Stocks : menu engrenage et fenêtre « Modifier » ---------- */
.menu-statut-lien { display: flex; align-items: center; gap: .4rem; min-height: 40px; padding: .3rem .5rem; border-radius: 7px; color: inherit; text-decoration: none; }
.menu-statut-lien:hover { background: var(--surface); }
.menu-statut-liste .menu-statut-suppr button svg, .menu-statut-lien svg { flex-shrink: 0; }
.fenetre-stock { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--ligne); border-radius: 14px; background: var(--fond-carte, #fff); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.fenetre-stock::backdrop { background: rgba(20, 24, 18, .45); }
.fenetre-stock > * { margin-left: 1.1rem; margin-right: 1.1rem; }
.fs-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .9rem 1.1rem; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; background: inherit; z-index: 1; }
.fs-tete h2 { margin: 0; font-size: 1.2rem; }
/* Bouton de fermeture des fenêtres : croix fine dessinée dans un petit rond gris clair (zone de clic 40 × 40 px) */
.fs-fermer { position: relative; display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; font-size: 0; color: transparent; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fs-fermer::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #eef0eb; transition: background .15s; }
.fs-fermer::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent calc(50% - .8px), #5d6658 calc(50% - .8px), #5d6658 calc(50% + .8px), transparent calc(50% + .8px)),
    linear-gradient(-45deg, transparent calc(50% - .8px), #5d6658 calc(50% - .8px), #5d6658 calc(50% + .8px), transparent calc(50% + .8px)); }
.fs-fermer:hover::before { background: #dfe3da; }
.fs-fermer:hover::after { filter: brightness(.6); }
.fs-fermer:focus { outline: none; }
.fs-fermer:focus-visible::before { background: #e4e8df; }
.fs-compte { margin-top: .8rem; }
.fenetre-stock h3 { margin-top: 1.2rem; font-size: 1rem; }
.fs-mouvements { margin-bottom: 1.1rem; }
.fs-mouvements form { margin: 0; }
.fs-suppr { color: #b3261e; display: inline-flex; padding: .3rem; }
.liste-stocks td.nb { white-space: nowrap; }
table.liste-menus { overflow: visible; }   /* menus engrenage (Suivi des interventions) */
table.liste-menus thead th:first-child { border-top-left-radius: var(--rayon); }
table.liste-menus thead th:last-child { border-top-right-radius: var(--rayon); }
.liste-menus td.nb { white-space: nowrap; }
.fenetre-raz { width: min(520px, calc(100vw - 24px)); }
.fenetre-raz form { margin-top: .8rem; margin-bottom: 1rem; }
.raz-toutes { display: flex; margin: .6rem 0 .3rem; }
.raz-structures { display: flex; flex-direction: column; gap: .15rem; padding: .3rem 0 .6rem 1.4rem; border-left: 2px solid var(--ligne); }
.raz-structures .case, .raz-toutes { min-height: 40px; align-items: center; gap: .45rem; }
button.danger, .principal.danger { background: #b3261e; border-color: #b3261e; }
button.danger:hover, .principal.danger:hover { background: #8f1d17; }

/* Programme, calendrier : icône des engrais (granulés) en gris, à l'écran, dans la légende et le PDF */
.calp-type-fumure .calp-ico { color: #8b9096; }

/* Programme, calendrier : trois parties (Fumure et amendements, Désherbage, Traitements phyto) */
.calp-partie .cal-gite.calp-partie-nom { flex-direction: row; justify-content: flex-start; align-items: center; gap: .35rem; padding: .3rem .7rem;
  background: #eef0ea; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #3d4a38; white-space: nowrap; }
.calp-partie-nom small { margin-left: .25rem; font-size: .72rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--doux); }
.calp-partie-nom .calp-ico { width: 1rem; height: 1rem; margin-right: 0; vertical-align: 0; }
.calp-partie .calp-partie-piste { height: 30px; background: #eef0ea; position: relative; }
.calp-partie { border-top: 1.5px solid #c9cdbf; }
.calp-partie:first-child { border-top: 0; }
/* Le bandeau de partie s'élargit selon son titre ; la bande grise remplit le reste de la ligne */
.calp-partie .cal-gite.calp-partie-nom { width: auto; min-width: var(--gw); border-right: 0; overflow: visible; }
.calp-partie .calp-partie-piste { flex: 1 1 auto; width: auto; min-width: 0; }
.calp-partie .calp-partie-piste { height: auto; min-height: 30px; align-self: stretch; }

/* ---------- Programme : itinéraires techniques ---------- */
.itin-boutons { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.itin-vider { margin: 0; display: inline; }
.bouton-pdf.bouton-danger { color: #b3261e; border-color: #e6b8b4; }
.bouton-pdf.bouton-danger:hover { background: #fdecea; }
.fenetre-itin { width: min(620px, calc(100vw - 24px)); }
.itin-form { margin-top: .9rem; margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.itin-form fieldset { border: 0; padding: 0; margin: 0; }
.itin-form legend { font-weight: 700; margin-bottom: .35rem; }
.itin-liste { display: flex; flex-direction: column; gap: .35rem; max-height: 46vh; overflow: auto; }
.itin-ligne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--ligne); border-radius: 10px; cursor: pointer; font-weight: 400; }
.itin-ligne:has(input:checked) { border-color: var(--accent); background: #f2f7f0; }
.itin-ligne small { display: block; color: var(--doux); font-size: .82rem; }
.itin-suppr { color: #b3261e; padding: .35rem; display: inline-flex; }
.itin-choix { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.itin-choix select { width: auto; }
.itin-mode .case { font-weight: 400; min-height: 36px; }
@media (max-width: 760px) { .itin-boutons { width: 100%; } }
.calp-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.calp-actions #pdf-calendrier { margin-left: 0; }
@media (max-width: 760px) { .calp-actions { margin-left: 0; justify-content: flex-start; width: 100%; } }
.calp-actions .bouton-pdf { margin-left: 0; }

/* ---------- Icônes d'export au-dessus des tableaux (Stocks, Commandes, Suivi, Fumure N-P-K) ---------- */
.exports-tableau { margin-left: auto; display: inline-flex; align-items: center; gap: .1rem; box-sizing: border-box; min-height: 44px;
  padding: 0 .2rem 0 .7rem; background: #fff; border: 1px solid #d3d7cf; border-radius: 8px; }
.exports-tableau > .unite { margin-right: .3rem; font-size: .8rem; }
.exports-tableau .bouton-export { width: 36px; height: 36px; }
.suivi-ligne .exports-tableau { margin-left: .4rem; }
@media (max-width: 760px) { .exports-tableau { margin-left: 0; } }
.actions button[name=suivant] { white-space: nowrap; margin-left: .25rem; }
/* Planning cultural : glisser les barres à la souris (gestion) */
.g-barre[data-id] { cursor: grab; user-select: none; -webkit-user-drag: none; }
.g-barre .g-poignee { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; border-radius: 0 6px 6px 0; }
.g-barre[data-id]:hover .g-poignee { background: rgba(255,255,255,.35); box-shadow: inset 1px 0 0 rgba(255,255,255,.6); }
.g-barre.g-glisse { opacity: .85; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 5 !important; }
.g-barre.g-enregistre { opacity: .55; }
body.g-glisse-deplacer, body.g-glisse-deplacer * { cursor: grabbing !important; }
body.g-glisse-duree, body.g-glisse-duree * { cursor: ew-resize !important; }
.g-bulle-drag { position: fixed; z-index: 1000; background: #1f2a1f; color: #fff; font-size: .78rem; padding: .25rem .5rem; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.g-barre.etroite .g-poignee { display: none; }
/* Planning cultural : flèches d'enchaînement à la souris (gestion) */
.g-pastille { position: absolute; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #4f6b48; cursor: crosshair; z-index: 4; opacity: 0; transition: opacity .12s; }
.g-ligne:hover .g-pastille, body.g-trace-lien .g-pastille { opacity: 1; }
.g-pastille:hover { transform: scale(1.25); background: #4f6b48; }
@media (hover: none) { .g-pastille { display: none; } }
.g-fleches-actives .g-lien .zone { stroke: transparent; stroke-width: 12; fill: none; pointer-events: stroke; cursor: pointer; }
.g-fleches-actives .g-lien:hover .trait { stroke-width: 2.8; }
.g-calque-lien { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
.g-calque-lien line { stroke: #4f6b48; stroke-width: 2; stroke-dasharray: 6 4; }
body.g-trace-lien, body.g-trace-lien * { cursor: crosshair !important; }
.g-barre.g-cible-lien { outline: 3px solid #4f6b48; outline-offset: 2px; }
.fenetre-lien { width: min(520px, calc(100vw - 24px)); }
.fenetre-lien form { margin-top: .8rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.fenetre-lien .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fenetre-lien #lien-supprimer { margin-left: auto; }
.lien-noms { margin: 0; }
/* Planning Gantt : groupes par type de travail (bandeau repliable) */
.g-bandeau { position: relative; z-index: 4; display: flex; align-items: center; height: 34px; box-sizing: border-box;
  width: calc(var(--libelle) + var(--largeur)); text-decoration: none; color: var(--texte);
  background: color-mix(in srgb, var(--gc) 13%, #fff); border-top: 1px solid color-mix(in srgb, var(--gc) 30%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--gc) 30%, #fff); border-left: 4px solid var(--gc); }
.g-bandeau:hover { background: color-mix(in srgb, var(--gc) 20%, #fff); }
.g-bandeau-nom { position: sticky; left: 0; display: inline-flex; align-items: center; gap: .45rem; padding: 0 .75rem; font-weight: 700; font-size: .9rem; color: color-mix(in srgb, var(--gc) 75%, #000); white-space: nowrap; }
.g-bandeau-nb { font-weight: 500; font-size: .76rem; color: var(--doux); }
.g-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.g-bandeau.replie .g-chevron { transform: rotate(-45deg); }
/* Planning Gantt : zoom et échelle en bas, comme le calendrier du programme */
.g-zoom-lib { min-width: 4.6rem; text-align: center; font-weight: 600; }
.bouton-nav.inactif { opacity: .35; pointer-events: none; }
.g-axe { display: flex; width: calc(var(--libelle) + var(--largeur)); border-top: 1px solid #c9c8c0; background: #fafaf8; }
.g-coin-bas { position: sticky; left: 0; z-index: 4; width: var(--libelle); flex-shrink: 0; background: #fafaf8; border-right: 1px solid var(--ligne); }
.g-echelle-bas { position: relative; width: var(--largeur); flex-shrink: 0; height: 2.7rem; }
.g-jour { position: absolute; top: .2rem; transform: translateX(-50%); font-size: .66rem; color: #8a877f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-jour.we { color: #b0ada5; }
.g-jour.auj { color: var(--accent); font-weight: 700; }
.g-mois-bas { position: absolute; bottom: .3rem; font-size: .85rem; color: #77746c; white-space: nowrap; }
.g-mois-repere { position: absolute; top: 0; height: .45rem; width: 1px; background: #c9c8c0; }
.g-trait-sem { border-left-style: dashed; opacity: .7; }
.g-corps { padding-top: 0; }
/* Bulle de survol d'une barre */
.g-bulle { position: fixed; z-index: 1000; max-width: 300px; padding: .6rem .75rem .65rem; border-radius: 10px; background: #fff; color: var(--texte);
  border: 1px solid #e2e4dd; box-shadow: 0 8px 24px rgba(31, 42, 31, .16), 0 1px 3px rgba(31, 42, 31, .08); pointer-events: none; font-size: .82rem; line-height: 1.35; }
.g-bulle .gb-titre { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.g-bulle .gb-ligne { display: flex; align-items: center; gap: .35rem; color: var(--doux); }
.g-bulle .gb-ligne i { width: .6rem; height: .6rem; border-radius: 3px; flex-shrink: 0; }
.g-bulle .gb-dates { margin: .3rem 0 .4rem; font-variant-numeric: tabular-nums; }
.g-bulle .gb-dates span { color: var(--doux); }
.g-bulle .gb-statut { display: inline-block; padding: .08rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 600; }
.gb-statut.prevu { background: #eef1ea; color: #4f6b48; }
.gb-statut.encours { background: #e3eefb; color: #2a5d9a; }
.gb-statut.fini { background: #e7f4ea; color: #2e7a44; }
.gb-statut.retard { background: #fdecea; color: #b3261e; }
.cal-zoom span.bouton-nav { min-width: 0; font-size: inherit; font-weight: inherit; }
/* Planning Gantt : sous-groupes par structure */
.g-sous-bandeau { position: relative; z-index: 4; display: flex; align-items: center; height: 28px; box-sizing: border-box;
  width: calc(var(--libelle) + var(--largeur)); text-decoration: none; color: var(--texte);
  background: color-mix(in srgb, var(--sc) 7%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--sc) 22%, #fff); border-left: 4px solid color-mix(in srgb, var(--sc) 60%, #fff); }
.g-sous-bandeau:hover { background: color-mix(in srgb, var(--sc) 13%, #fff); }
.g-sous-bandeau .g-bandeau-nom { padding-left: 1.35rem; font-size: .82rem; font-weight: 600; color: var(--texte); }
.g-sous-bandeau .g-chevron { width: 6px; height: 6px; }
.g-sous-bandeau.replie .g-chevron { transform: rotate(-45deg); }
.g-sous-pastille { width: .6rem; height: .6rem; border-radius: 3px; background: var(--sc); flex-shrink: 0; }
/* Les flèches passent par-dessus les bandeaux de groupe (sinon elles disparaissent en traversant un bandeau) */
.g-bandeau, .g-sous-bandeau { z-index: 0; }
/* Planning Gantt : dates de début au-dessus (ou au-dessous) des barres, comme le calendrier du programme */
.g-barre { top: calc((var(--ligne) - 24px) / 2); }
.g-pastille { top: calc(var(--ligne) / 2 - 7px); }
.g-date { position: absolute; font-size: .66rem; font-weight: 500; color: #55524c; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; line-height: 1; z-index: 2; }
.g-date.dessus { top: 2px; }
.g-date.dessous { bottom: 2px; }
.duree-auto { margin: .2rem 0 .1rem; }
/* Téléphone : une liste déroulante aux libellés longs (ex. « Enchaîner avec… » d'un chantier) ne dépasse plus de l'écran */
main select { max-width: 100%; }
/* Menu engrenage fermé : il ne prend aucune place (il élargissait la page sur téléphone) */
.menu-statut:not([open]) > .menu-statut-liste { display: none; }
/* Téléphone : « 3 produits sur 5 reçus » passe à la ligne au lieu d'élargir la page */
@media (max-width: 760px) { .avancement { white-space: normal; } }
/* Planning Gantt : séparation très claire entre les jours (zooms où les jours sont assez larges) ; débuts de mois plus marqués */
.g-jours { position: absolute; inset: 0; background-image: linear-gradient(to right, #eef0ea 0, #eef0ea 1px, transparent 1px); background-repeat: repeat-x; pointer-events: none; }
.g-trait { border-left-color: #d6d9cf; z-index: 0; }
.g-trait-sem { border-left-color: #e2e5dc; }
/* Planning équipe à la souris : icônes supprimer / dupliquer, poignée pour étendre, cases visées */
.tache-outils { position: relative; padding-right: .7rem; cursor: grab; user-select: none; -webkit-user-drag: none; }
.tache-outils .t-outils { display: none; position: absolute; top: -.45rem; left: -.35rem; gap: .2rem; z-index: 3; }
.tache-outils:hover .t-outils { display: inline-flex; }
.t-outils button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 1px solid #dcdfd6; background: #fff; color: #5d6658; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.t-outils .t-suppr:hover { color: #b3261e; border-color: #e7b9b5; background: #fdf0ef; }
.t-outils .t-dupl:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, #fff); background: #f2f7ef; }
.t-poignee { position: absolute; top: 0; right: 0; bottom: 0; width: 9px; border-radius: 0 7px 7px 0; cursor: ew-resize; }
.tache-outils:hover .t-poignee { background: color-mix(in srgb, var(--c) 35%, transparent); }
.tache-outils:hover .t-poignee::after { content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 14px; transform: translateY(-50%);
  border-left: 1px solid rgba(0,0,0,.35); border-right: 1px solid rgba(0,0,0,.35); }
.tache.t-glisse { opacity: .55; }
.grille td.cible-drop { outline: 2px dashed var(--accent); outline-offset: -3px; background: #eef6ea; }
.grille td.cible-etendre { background: color-mix(in srgb, var(--accent) 12%, #fff); box-shadow: inset 0 -3px 0 var(--accent); }
body.p-glisse-deplacer, body.p-glisse-deplacer * { cursor: grabbing !important; }
body.p-glisse-etendre, body.p-glisse-etendre * { cursor: ew-resize !important; }
.fenetre-dupl { width: min(440px, calc(100vw - 24px)); }
.fenetre-dupl form { margin: .8rem 0 1rem; display: grid; gap: .6rem; }
.fenetre-dupl .actions { display: flex; gap: .5rem; }
.dupl-tache { margin: 0; font-weight: 600; }
body.p-glisse-deplacer .t-outils, body.p-glisse-etendre .t-outils { display: none !important; }
/* Planning équipe : repère d'insertion quand on change l'ordre des tâches */
.p-marqueur { position: fixed; z-index: 50; height: 3px; border-radius: 2px; background: var(--accent); pointer-events: none; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
/* Planning équipe : réduire une tâche (jours retirés) et case « Forcer le travail » du week-end */
.grille td.cible-reduire { background: #fdf0ef; box-shadow: inset 0 -3px 0 #c4554d; }
.grille td.cible-reduire .tache { opacity: .45; }
.case-forcer { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 500; color: #8a4b12; }
.case-forcer[hidden] { display: none; }
/* Pastille à côté des titres de page, même modèle partout (pastille_titre() / pastille_campagne()) : « Campagne 2026 », « Semaine 46 · du … au … », « 2026 »… */
.pastille-titre, .pastille-campagne { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .45rem; padding: .22em .7em; min-height: 1.45em; box-sizing: border-box;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .78em; font-weight: 700; line-height: 1.15; white-space: nowrap; letter-spacing: .01em; position: relative; top: -.08em; }
h2 .pastille-titre, .fs-tete .pastille-titre, h2 .pastille-campagne { font-size: .85em; }
@media (max-width: 760px) {
  h1 .pastille-titre { white-space: normal; margin-left: 0; margin-top: .3rem; max-width: 100%; text-align: left; }
  h1 .pastille-titre::before { content: none; }
}
/* Planning équipe › Ajouter : plusieurs salariés, chacun avec son matériel */
.multi-salaries { border: 0; padding: 0; margin: 0; min-width: 0; }
.multi-salaries legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.ms-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .3rem .5rem; border-radius: 8px; }
.ms-ligne:has(input:checked) { background: var(--accent-clair); }
.ms-nom { display: flex; align-items: center; gap: .45rem; min-width: 12rem; min-height: 36px; font-weight: 500; cursor: pointer; }
.ms-nom input { width: 18px; height: 18px; }
.ms-mat { flex: 1 1 14rem; max-width: 22rem; }
.ms-mat[hidden] { display: none; }
.ms-trac { flex: 1 1 13rem; max-width: 100%; }
.ms-trac[hidden] { display: none; }
.ms-str { flex: 1 1 13rem; max-width: 100%; }
.ms-str[hidden] { display: none; }
.ms-trav { flex: 1 1 13rem; max-width: 100%; }
.ms-trav[hidden] { display: none; }
.ms-chantier { flex: 1 1 13rem; max-width: 100%; }
.ms-chantier[hidden] { display: none; }
.fenetre-chantier { width: min(500px, calc(100vw - 24px)); }
.fenetre-chantier p { margin: .9rem 1.1rem; }
.fenetre-chantier .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 1.1rem 1.1rem; }

/* ---------- Parcellaire PAC ---------- */
.pac-pastille { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); flex: none; }
.pac-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; margin: 0 0 .8rem; font-size: .92rem; }
.pac-legende small { color: var(--doux); }
.pac-legende strong { margin-left: auto; }
.pac-liens-gestion { margin-left: auto; font-size: .92rem; }
.pac-carte-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.pac-carte { height: 68vh; min-height: 420px; border-radius: var(--rayon); border: 1px solid var(--ligne); background: #dfe5d8; }
.pac-carte-petite { height: 360px; min-height: 0; margin: 1rem 0; }
.pac-fiche { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem 1rem; min-height: 8rem; }
.pac-fiche h2 { font-size: 1.1rem; margin: 0 0 .6rem; display: flex; align-items: center; }
.pac-fiche h3 { font-size: .95rem; margin: .9rem 0 .35rem; }
.pac-resume { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem .9rem; margin: 0 0 .6rem; }
.pac-resume div { min-width: 0; }
.pac-resume dt { color: var(--doux); font-size: .8rem; }
.pac-resume dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pac-resume dd small { font-weight: 400; color: var(--doux); }
.pac-traitements { list-style: none; padding: 0; margin: 0; }
.pac-traitements li { padding: .35rem 0; border-bottom: 1px solid var(--ligne); display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.pac-date { font-variant-numeric: tabular-nums; color: var(--doux); font-size: .88rem; min-width: 5.6rem; }
.pac-statut { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-clair); color: var(--accent); }
.pac-statut-prevu { background: #fff1d6; color: #8a5a00; }
.pac-bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.pac-detail { margin: .6rem 0; }
.pac-cultures { display: grid; gap: .5rem; margin: .5rem 0 .8rem; }
.pac-culture { display: grid; grid-template-columns: 44px 3.2rem minmax(0, 1fr); gap: .6rem; align-items: center; }
.pac-culture input[type=color] { width: 44px; height: 36px; padding: 2px; }
.pac-corresp { display: grid; gap: .8rem; }
.pac-ligne { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .7rem 1rem .8rem; margin: 0; min-width: 0; }
.pac-ligne.a-verifier { border-color: #e8941f; box-shadow: 0 0 0 1px #e8941f inset; }
.pac-ligne legend { padding: 0 .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pac-badge { background: #e8941f; color: #fff; font-size: .75rem; padding: .05rem .5rem; border-radius: 999px; }
.pac-choix { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.pac-puce { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--ligne); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; background: #fafbf8; }
.pac-puce:has(input:checked) { background: var(--accent-clair); border-color: var(--accent); }
.pac-puce small { color: var(--doux); }
.pac-bas { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; justify-content: space-between; font-size: .9rem; }
.pac-somme.ok { color: var(--accent); }
.pac-somme.ecart { color: #b5541c; font-weight: 600; }
.pac-surface input { width: 6.5rem; display: inline-block; }
.pac-surface small { color: var(--doux); }
@media (max-width: 800px) {
  .pac-carte-fiche { grid-template-columns: 1fr; }
  .pac-carte { height: 58vh; min-height: 320px; }
  .pac-legende strong { margin-left: 0; width: 100%; }
  .pac-liens-gestion { margin-left: 0; }
}
.pac-bloc .avertissement, .avertissement { background: #fff4e0; border: 1px solid #f0c27a; color: #6b4300; border-radius: var(--rayon); padding: .6rem .9rem; margin: .6rem 0; }
.liste-pac + h2 { margin-top: 1.6rem; }
/* Correspondances : puces compactes (cases normales, pas en pleine largeur) */
.pac-choix { gap: .3rem; }
.pac-puce { padding: .15rem .55rem; font-size: .88rem; line-height: 1.3; gap: .3rem; }
.pac-puce input[type=checkbox] { width: 1rem; height: 1rem; min-height: 0; padding: 0; margin: 0; flex: none; }
.pac-puce small { font-size: .78rem; }
.pac-ligne { padding: .5rem .8rem .6rem; }
.pac-corresp { gap: .55rem; }
.pac-surface input { min-height: 34px; padding: .3rem .5rem; width: 5.5rem; }
.pac-fiche-liens .aide { margin: 0 0 .4rem; font-size: .85rem; }
.pac-fiche-liens .pac-somme { font-size: .85rem; margin: .2rem 0 .5rem; }
.pac-fiche-liens .pac-bas { justify-content: space-between; }
.pac-ok { color: var(--accent); font-weight: 600; margin: 0 0 .4rem; }
p.pac-badge { display: inline-block; margin: 0 0 .4rem; }
/* Parcellaire : parcelles Inovarbo dessinées et découpage */
.pac-etiquette { background: rgba(20, 30, 20, .72); color: #fff; border: 0; box-shadow: none; font-size: .78rem; line-height: 1.2; padding: .15rem .4rem; text-align: center; white-space: nowrap; }
.pac-etiquette::before { display: none; }
.pac-loin .pac-etiquette { display: none; }
.pac-pastille-inov { background: transparent; border: 2px solid #3f6b3a; }
.pac-decouper-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: .2rem 0 .6rem; }
.pac-decoupe h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.pac-bilan { margin: 0 0 .5rem; }
.pac-bilan.ok strong { color: var(--accent); }
.pac-message { font-size: .88rem; margin: 0 0 .5rem; color: var(--accent); }
.pac-consigne { background: #fffbe0; border: 1px solid #f1e08a; border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; margin: .4rem 0; }
.pac-morceaux { list-style: none; padding: 0; margin: 0 0 .6rem; }
.pac-morceaux li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; padding: .4rem 0; border-bottom: 1px solid var(--ligne); }
.pac-morceaux small { color: var(--doux); }
.pac-morceau-actions { display: inline-flex; gap: .8rem; }
.pac-morceau-actions button { font-size: .9rem; }
.pac-decoupe-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.pac-choix-parcelle { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; margin: .4rem 0; }
.pac-choix-parcelle select { font-weight: 400; }
.pac-surface-dessinee { margin: .4rem 0 .6rem; }
.pac-inov { color: var(--doux); font-size: .82em; font-weight: 400; }
.pac-modifier-morceaux { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin: .4rem 0 .6rem; }
/* Saisie intervention : forme rapide / forme graphique */
.si-formes { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: 0 0 1rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: .3rem; }
.si-forme { border: 0; background: none; border-radius: 9px; padding: .6rem .5rem; font: inherit; font-weight: 600; color: var(--doux); cursor: pointer; min-height: 44px; }
.si-forme[aria-pressed="true"] { background: var(--accent); color: #fff; }
.si-forme:disabled { opacity: .45; cursor: not-allowed; }
.si-carte { height: 52vh; min-height: 300px; border-radius: 10px; border: 1px solid var(--ligne); background: #dfe5d8; }
.si-carte-aide { font-size: .82rem; color: var(--doux); margin: .4rem 0 .2rem; }
.si-carte-info { font-weight: 600; margin: 0 0 .6rem; }
body.si-mode-graphique .saisie, body.si-mode-graphique .saisie-pied .principal { max-width: 1100px; }
@media (min-width: 900px) {
  body.si-mode-graphique .si-parcelles-zone { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
  body.si-mode-graphique .si-carte { height: 62vh; }
  body.si-mode-graphique .si-liste { max-height: 70vh; overflow: auto; }
}
/* Nom PAC + variété dans une puce de parcelle : simple texte, pas une seconde puce */
.si-puce span.pac-inov { display: inline; border: 0; padding: 0; margin: 0 0 0 .3rem; background: none; border-radius: 0; min-height: 0; font-weight: 400; font-size: .78em; color: var(--doux); }
.si-puce input:checked + span .pac-inov { font-weight: 400; }
/* Planning équipe : « Vider la semaine » à gauche de « Copier la semaine précédente » */
.semaine-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.semaine-actions form { margin: 0 !important; }
.bouton-vider { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--ligne)); }
.bouton-vider:disabled { color: var(--doux); border-color: var(--ligne); opacity: .55; cursor: not-allowed; }
.bouton-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.fenetre-vider { width: min(480px, calc(100vw - 24px)); }
.fenetre-vider p { margin-top: .5rem; margin-bottom: .5rem; }
.fenetre-vider .actions { margin-top: .9rem; margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .semaine-actions { margin-left: 0; width: 100%; } .semaine-actions form, .semaine-actions button { flex: 1 1 auto; } }
/* Ajouter au planning (création) : un bandeau par salarié coché, champs répartis sur toute la largeur */
.fiche-multi .multi-salaries { margin-top: .4rem; }
.fiche-multi .ms-ligne { display: block; padding: .5rem .75rem; margin-bottom: .45rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface); }
.fiche-multi .ms-ligne:has(input[type=checkbox]:checked) { background: var(--accent-clair); border-color: color-mix(in srgb, var(--accent) 35%, var(--ligne)); }
.fiche-multi .ms-nom { min-width: 0; font-weight: 600; }
.ms-champs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 6.5rem; gap: .5rem .6rem; margin-top: .4rem; align-items: end; }
.ms-champs[hidden] { display: none; }
.ms-champ { display: grid; gap: .2rem; min-width: 0; font-size: .8rem; color: var(--doux); font-weight: 600; }
.ms-champ select, .ms-champ input { width: 100%; max-width: none; min-width: 0; font-weight: 400; color: var(--texte); }
.ms-champ:has(> select[hidden]) { display: none; }
.ms-heures { text-align: right; }
@media (max-width: 1100px) { .ms-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ms-champs { grid-template-columns: 1fr; } .ms-champ-heures input { max-width: 8rem; } }
.fiche-multi .multi-salaries { grid-column: 1 / -1; }
.fiche-multi > .champ:has(#jour) { grid-column: 1 / -1; max-width: 22rem; }
/* Saisie des heures : propositions « Prévu » du planning, tracteur */
.cs-prevus { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .5rem; }
.cs-prevu { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; min-height: 44px; padding: .45rem .7rem; text-align: left;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--ligne)); border-radius: 10px; background: var(--accent-clair); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.cs-prevu small { font-weight: 400; color: var(--doux); font-size: .82rem; }
.cs-prevu::before { content: '+ '; display: none; }
.cs-prevu .cs-prevu-txt::before { content: '+ '; }
.cs-prevu.repris { background: var(--surface); border-style: dashed; color: var(--doux); }
.cs-prevu.repris .cs-prevu-txt::before { content: '✓ '; }
.ls:has(.ls-tr) { grid-template-rows: auto auto auto; }
.ls-tr { grid-column: 2 / 4; }
.ls:has(.ls-tr) .ls-h, .ls:has(.ls-tr) .ls-x { grid-row: 1 / span 3; }
.ls-planning { box-shadow: inset 3px 0 0 var(--accent); }
.ls:has(.ls-tr) .ls-t { grid-row: 1; }
.ls:has(.ls-tr) .ls-s, .ls:has(.ls-tr) .ls-m { grid-row: 2; }
.ls:has(.ls-tr) .ls-tr { grid-row: 3; }
/* Fiche d'intervention : carte du parcellaire sous les parcelles */
.pac-selection { border: 1px solid var(--ligne); border-radius: 12px; padding: .5rem; background: var(--surface); }
.pac-sel-carte { height: 380px; border-radius: 9px; background: #dfe5d8; }
.pac-sel-info { margin: .45rem .2rem .1rem; display: flex; flex-direction: column; gap: .15rem; }
.pac-sel-info > span:first-child { font-weight: 600; }
.pac-sel-info .aide { font-size: .82rem; color: var(--doux); }
@media (max-width: 760px) { .pac-sel-carte { height: 300px; } }
/* Pages consultées par les salariés en lecture seule (Programme, Stocks) */
.badge-lecture { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 99px; background: #eef0ec; color: var(--doux); font-weight: 600; font-size: .88rem; }
.badge-lecture::before { content: '👁'; }
/* Fiche salarié : carte du parcellaire (lecture seule) sous les parcelles */
.ft-carte-bloc { display: block; margin-top: .6rem; }
.ft-carte { display: block; height: 280px; border-radius: 10px; border: 1px solid var(--ligne); background: #dfe5d8; }
.ft-carte-legende { display: flex !important; align-items: center; gap: .4rem; margin-top: .3rem; }
.ft-carte-legende i { width: .9rem; height: .9rem; border-radius: 3px; background: #ffd400; border: 1px solid #c9a800; display: inline-block; }
.grand-format .ft-carte { height: 420px; }
@media print { .ft-carte { height: 9cm; break-inside: avoid; } }

/* ---------- Ma journée (bouton d'accueil + page) ---------- */
.accueil-salut-ligne { display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap; }
.bouton-journee { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 60px; padding: .7rem 1.4rem;
  border-radius: 14px; background: var(--accent); color: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 10px rgba(40, 70, 35, .25); }
.bouton-journee:hover, .bouton-journee:focus-visible { background: #33582f; color: #fff; }
@media (max-width: 760px) {
  .accueil-salut-ligne { flex-wrap: nowrap; gap: .75rem; align-items: center; }
  .accueil-salut-ligne > div { flex: 1 1 auto; min-width: 0; align-self: center; }
  .bouton-journee { flex: 0 0 auto; flex-direction: column; gap: .2rem; min-height: 76px; min-width: 104px; padding: .55rem .8rem; font-size: 1.05rem; line-height: 1.15; text-align: center; }
}

.mj { max-width: 760px; margin: 0 auto; }
.mj-tete { margin-bottom: .75rem; }
.mj-tete h1 { margin: .25rem 0 0; }
.mj-tete h1 > span:not(.pastille-titre):not(.avatar) { color: var(--doux); font-weight: 500; }
.mj-jours { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: .5rem; margin: .5rem 0 1rem;
  background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: .4rem; }
.mj-fleche { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 10px; background: var(--accent-clair);
  color: var(--accent); font-size: 2rem; line-height: 1; text-decoration: none; font-weight: 700; }
.mj-jour { text-align: center; min-width: 0; }
.mj-jour strong { display: block; font-size: 1.3rem; }
.mj-jour span { color: var(--doux); font-size: .95rem; }
.mj-vide { font-size: 1.15rem; text-align: center; padding: 2rem 1rem; background: #fff; border: 1px dashed var(--ligne); border-radius: 14px; color: var(--doux); }
.mj-total { color: var(--doux); margin: 0 0 .6rem; }
.mj-tache { border-left: 6px solid var(--c, var(--accent)); margin-bottom: 1rem; }
.mj-tache h2 { font-size: 1.35rem; margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.mj-heures { background: var(--accent-clair); color: var(--accent); border-radius: 8px; padding: .1rem .55rem; font-size: 1.1rem; }
.mj-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem .9rem; margin: 0 0 .8rem; }
.mj-infos dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--doux); }
.mj-infos dd { margin: 0; font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.mj-fiche { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; margin: 0 0 .7rem; border-radius: 12px; background: #f1ecf8;
  color: #4b2d7a; text-decoration: none; min-height: 52px; }
.mj-fiche span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mj-fiche small { color: #6b5690; overflow-wrap: anywhere; }
.mj-aller { display: flex; gap: .6rem; margin: 0 0 .4rem; }
.mj-y-aller { flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; font-size: 1.15rem; text-decoration: none; }
.mj-plans { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.1rem; text-decoration: none; }
.mj .ft-carte { height: 260px; }
@media (max-width: 760px) { .mj-tache h2 { font-size: 1.2rem; } .mj .ft-carte { height: 230px; } .mj-infos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Prévisions 7 jours (accueil + Consignes) ---------- */
.carte-prev { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 1rem 1.25rem 1rem; box-shadow: 0 1px 2px rgba(31,42,31,.04); margin: 0 0 1rem; }
.accueil-grille > .carte-prev { grid-column: 1 / -1; order: 3; margin: 0; }
@media (max-width: 760px) { .accueil-grille > .carte-prev { order: 0; } .accueil-grille > .meteo { order: -1; } }
.carte-prev .carte-tete { margin-bottom: .5rem; }
.prev-source { margin: .5rem 0 0; font-size: .8rem; color: var(--doux); }

.prev-legende { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .9rem; margin: 0 0 .6rem; }
.pl { display: inline-block; width: .95rem; height: .95rem; border-radius: 4px; }
.pl-ok, .ph-ok { background: #cfe8c6; } .pl-moyen, .ph-moyen { background: #fbd9a6; } .pl-fort, .ph-fort { background: #f4b7ad; }
.prev-jour { padding: .6rem 0; border-top: 1px solid var(--ligne); }
.pjc-creneaux { font-weight: 700; font-size: .95rem; }
.pjc-creneaux.oui { color: #2f6b2a; } .pjc-creneaux.non { color: #a5402f; }
.prev-heures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2.3rem, 1fr); gap: 3px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.9rem; border-radius: 6px; font-variant-numeric: tabular-nums; cursor: pointer; position: relative; line-height: 1.1; }
.ph-h { font-size: .72rem; color: rgba(0,0,0,.6); }
.ph-v { font-size: .95rem; font-weight: 700; color: #1f2a1f; }
.ph-p { position: absolute; top: 1px; right: 2px; font-size: .6rem; }
.ph-passe { opacity: .35; }
.ph.choisie, .ph:focus-visible { outline: 2px solid #1f2a1f; outline-offset: 1px; }
.prev-detail { margin: .3rem 0 0; font-size: .88rem; min-height: 0; }
.prev-detail:empty { display: none; }
.prev-aide { font-size: .82rem; color: var(--doux); margin: .5rem 0 0; }
.prev-glisser { display: none; } @media (max-width: 760px) { .prev-glisser { display: inline; } }

/* Vignettes de prévisions (accueil + Consignes) */
.prev-vignettes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; }
.pv { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .5rem .65rem; border-radius: 14px;
  background: linear-gradient(180deg, #f3f7fb 0%, #fff 70%); border: 1px solid #e3e9ef; text-align: center; min-width: 0; }
.pv-auj { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: linear-gradient(180deg, #eaf3e6 0%, #fff 70%); }
.pv-jour { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.pv-ciel { display: flex; align-items: center; justify-content: center; line-height: 0; }
.pv-temp { display: flex; align-items: baseline; gap: .35rem; font-variant-numeric: tabular-nums; }
.pv-max { font-size: 1.6rem; font-weight: 800; color: #1f2a1f; letter-spacing: -.02em; }
.pv-min { font-size: 1rem; color: #3b6aa5; font-weight: 600; }
.pv-pluie { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; }
.pv-barre { display: block; height: 8px; border-radius: 99px; background: #e4ecf4; overflow: hidden; }
.pv-eau { display: block; height: 100%; border-radius: 99px; background: #8cbbe8; }
.pv-eau-moyen { background: #4b93d8; } .pv-eau-fort { background: #1f63b0; }
.pv-mm { font-size: .8rem; color: #2f5f93; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-mm b { font-size: .92rem; }
.pv-vent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem; font-size: .8rem; color: var(--doux); }
.pv-vent .ico { flex: none; }
.pv-raf { white-space: nowrap; }
.pv-niv { display: inline-block; min-width: 1.9em; padding: .05rem .35rem; border-radius: 6px; font-weight: 700; font-size: .88rem; text-align: center; font-variant-numeric: tabular-nums; }
.pv-ok { background: #dcefd5; color: #2c5a26; } .pv-moyen { background: #fbe0b4; color: #8a4f06; } .pv-fort { background: #f6c3ba; color: #9c2b1c; }
.prev-legende-vent { margin: .55rem 0 0; font-size: .8rem; color: var(--doux); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.prev-legende-vent .pv-niv { font-size: .75rem; font-weight: 600; }
@media (max-width: 1000px) and (min-width: 761px) { .pv-max { font-size: 1.35rem; } .pv-vent { font-size: .75rem; } }
@media (max-width: 760px) {
  .prev-vignettes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .35rem; margin: 0 -.25rem; padding-left: .25rem; padding-right: .25rem; }
  .prev-vignettes .pv { flex: 0 0 31%; min-width: 104px; scroll-snap-align: start; }
}

/* Consignes : la vignette à gauche, les créneaux et les heures à droite */
.prev-jour { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: .5rem .9rem; align-items: center; }
.pjc-droite { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.prev-jour .pv { padding: .55rem .45rem; }
.prev-jour .pv-max { font-size: 1.35rem; }
@media (max-width: 760px) {
  .prev-jour { grid-template-columns: 1fr; }
  .prev-jour .pv { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; gap: .3rem .6rem; }
  .prev-jour .pv-jour { min-width: 5.4rem; }
  .prev-jour .pv-pluie { width: auto; flex: 1 1 6rem; }
  .prev-jour .pv-vent { justify-content: flex-start; }
}
.accueil-grille > .carte-prev, .prev-vignettes { min-width: 0; }
@media (max-width: 760px) { .accueil-grille { grid-template-columns: minmax(0, 1fr); } }
.prev-vignettes, .pv { position: relative; }

/* Messagerie › Nouveau message : puces de destinataires compactes (la case ne prend pas la taille des champs de saisie) */
.dest-choix { gap: .35rem; }
.dest-puce { padding: .38rem .7rem .38rem .55rem; min-height: 0; line-height: 1.2; font-size: .9rem; white-space: nowrap; }
.form-message .dest-puce input[type=checkbox], .dest-puce input[type=checkbox] { width: 1rem; height: 1rem; min-height: 0; min-width: 0; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }

/* ---------- Conseil du jour (un seul), barre « Poser une question », historique ---------- */
.conseils-liens { display: inline-flex; align-items: center; gap: .9rem; }
.conseil-du-jour { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: #f1f6ee; border: 1px solid #d7e6cf; }
.conseil-du-jour p { margin: .15rem 0 0; font-size: 1.08rem; line-height: 1.45; font-weight: 500; }
.cdj-icone { flex: none; display: inline-flex; width: 2.4rem; height: 2.4rem; border-radius: 50%; align-items: center; justify-content: center; background: #fff; color: var(--accent); }
.cdj-niveau { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.conseil-du-jour.conseil-attention { background: #fdf4e6; border-color: #f2d7a9; } .conseil-attention .cdj-icone, .conseil-attention .cdj-niveau { color: #a35d07; }
.conseil-du-jour.conseil-alerte { background: #fcebe7; border-color: #f1c1b6; } .conseil-alerte .cdj-icone, .conseil-alerte .cdj-niveau { color: #b0321f; }

.ia-question { margin-top: .8rem; }
.iaq-barre { display: flex; align-items: center; gap: .4rem; padding: .3rem .3rem .3rem .9rem; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(31,42,31,.06); }
.iaq-barre:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,107,58,.15); }
.iaq-barre input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; padding: .45rem 0; min-height: 0; box-shadow: none; }
.iaq-micro, .iaq-envoyer { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; min-height: 0; padding: 0; border-radius: 50%; border: 0; cursor: pointer; }
.iaq-micro { background: #eef2ea; color: var(--accent); }
.iaq-micro.iaq-ecoute { background: #c0392b; color: #fff; animation: iaq-pulse 1.2s ease-in-out infinite; }
@keyframes iaq-pulse { 50% { box-shadow: 0 0 0 7px rgba(192,57,43,.18); } }
.iaq-envoyer { background: var(--accent); color: #fff; }
.iaq-attente .iaq-envoyer { opacity: .5; }
.iaq-etat { margin: .35rem .2rem 0; font-size: .88rem; color: var(--doux); min-height: 0; }
.iaq-etat:empty { display: none; }
.iaq-reponses { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.iaq-reponses:empty { display: none; }
.iaq-echange { border-left: 3px solid var(--accent); padding: .1rem 0 .1rem .8rem; }
.iaq-q { margin: 0 0 .3rem; font-weight: 700; }
.iaq-r { line-height: 1.5; }
.iaq-erreur { margin: 0; color: #a5402f; }

.ch-liste { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ch-ligne { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--ligne); border-left: 5px solid var(--accent); border-radius: 12px; padding: .7rem .9rem; }
.ch-ligne.conseil-attention { border-left-color: #e2981c; } .ch-ligne.conseil-alerte { border-left-color: #c0392b; }
.ch-date { flex: none; width: 4.2rem; text-align: center; color: var(--doux); font-size: .8rem; line-height: 1.1; }
.ch-jour { display: block; font-size: 1.6rem; font-weight: 800; color: var(--texte); }
.ch-corps { min-width: 0; }
.ch-tete { margin: 0 0 .2rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ch-ligne.conseil-attention .cdj-niveau { color: #a35d07; } .ch-ligne.conseil-alerte .cdj-niveau { color: #b0321f; }
.ch-texte { margin: 0; line-height: 1.45; }
.conseils .carte-titre { white-space: nowrap; }
@media (max-width: 760px) { .conseils .carte-tete { flex-wrap: wrap; gap: .35rem .9rem; } .conseils-liens { gap: .8rem; margin-left: auto; } }

/* Trois conseils du jour par thème + compteur de questions + historique par jour */
.cdj-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.cdj-grille .conseil-du-jour { flex-direction: column; gap: .35rem; padding: .75rem .9rem; position: relative; }
.cdj-grille .conseil-du-jour p { margin: 0; font-size: 1rem; }
.cdj-tete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.cdj-theme { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--texte); }
.cdj-auto { align-self: flex-start; font-size: .7rem; color: var(--doux); border: 1px solid var(--ligne); border-radius: 99px; padding: 0 .45rem; }
@media (max-width: 900px) { .cdj-grille { grid-template-columns: 1fr; } }
.iaq-compteur { margin: .35rem .3rem 0; font-size: .82rem; color: var(--doux); text-align: right; }
.iaq-epuise .iaq-compteur { color: #a5402f; font-weight: 600; text-align: left; }
.iaq-epuise .iaq-barre { background: #f4f4f1; }
.iaq-barre input:disabled { color: var(--doux); }
.iaq-micro:disabled, .iaq-envoyer:disabled { opacity: .4; cursor: not-allowed; animation: none; }
.ch-jour-bloc { display: flex; gap: .9rem; align-items: flex-start; }
.ch-conseils { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.ch-jour-bloc .ch-date { padding-top: .5rem; }
@media (max-width: 760px) { .ch-jour-bloc { flex-direction: column; gap: .3rem; } .ch-jour-bloc .ch-date { width: auto; display: flex; align-items: baseline; gap: .4rem; text-align: left; padding: 0; } .ch-jour-bloc .ch-jour { display: inline; font-size: 1.3rem; } }
.ch-conseils .ch-ligne { display: block; }

/* Proposition d'envoi d'une fiche traitement depuis la barre de questions */
.iaq-fiche { margin-top: .6rem; padding: .75rem .9rem; border: 1px solid #d7e6cf; background: #f6faf3; border-radius: 12px; }
.iaq-fiche.iaqf-fait { background: #eaf4e5; }
.iaqf-titre { margin: 0 0 .3rem; font-weight: 700; }
.iaqf-quoi { margin: 0 0 .4rem; }
.iaqf-quoi a { margin-left: .3rem; white-space: nowrap; }
.iaqf-apercu { margin: 0 0 .5rem; font-size: .9rem; }
.iaqf-apercu summary { cursor: pointer; color: var(--accent); }
.iaqf-apercu p { margin: .3rem 0; overflow-wrap: anywhere; }
.iaqf-libelle { margin: .2rem 0 .3rem; font-size: .85rem; font-weight: 600; color: var(--doux); }
.iaqf-actions { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.iaqf-etat { margin: .4rem 0 0; font-size: .9rem; }
.iaqf-etat:empty { display: none; }
.iaq-outils { margin: .25rem 0 0; font-size: .78rem; color: var(--doux); }


/* ==========================================================================
   Corrections du rapport d'audit (novembre 2026)
   ========================================================================== */

/* E7 : petits textes portés à 13 px environ (lisibles dehors) */
.ph-h { font-size: .8125rem; color: rgba(0,0,0,.7); }
.prev-heures { grid-auto-columns: minmax(2.5rem, 1fr); }
.puce, .pastille, .mc-heure, .mc-note, .actus-titre, .actus-echelle, .actus-source, .conseils-source, .ts-tete, .actus-nb,
.statut, .badge-alerte, .badge-coef, .r-structure, .liste-produits .lien-ephy, .statut-ev, .tache.avec-fiche .b-fiche,
.badge-type, .menu-gauche .mg-titre, .reglages-groupe h2, .reglage-etat, .badge-archive, .prev-legende-vent .pv-niv,
.prev-source, .prev-legende-vent, .pv-mm, .pv-vent, .b-s, .b-d { font-size: .8125rem; }
@media (max-width: 760px) { .tiroir-titre { font-size: .8125rem; } }

/* E9 : Ma journée, prénom lisible : la couleur grise de l'en-tête ne s'applique plus à la pastille (voir .mj-tete h1 > span) */

/* E12 : messages non lus à côté de « Ma journée » */
.accueil-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.bouton-nonlus { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; padding: .6rem 1.1rem; border-radius: 16px;
  background: #fdeee9; color: #a3341f; border: 1px solid #f2c4b8; font-weight: 700; text-decoration: none; }
.bouton-nonlus:hover, .bouton-nonlus:focus-visible { background: #fbe0d8; color: #8a2a17; }
@media (max-width: 760px) {
  .accueil-actions { flex: 0 0 auto; flex-direction: column; gap: .4rem; }
  .bouton-nonlus { min-height: 44px; min-width: 104px; padding: .35rem .6rem; font-size: .88rem; flex-direction: column; gap: .1rem; text-align: center; line-height: 1.15; }
}

/* E11 : accueil salarié, prévisions repliées et placées après « Aujourd'hui » */
.prev-repliable > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; min-height: 44px; }
.prev-repliable > summary::-webkit-details-marker { display: none; }
.prev-repliable .prev-resume { color: var(--doux); font-weight: 600; font-size: .95rem; }
.prev-repliable .prev-ouvrir { margin-left: auto; width: 12px; height: 12px; border-right: 2.5px solid var(--doux); border-bottom: 2.5px solid var(--doux); transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.prev-repliable[open] .prev-ouvrir { transform: rotate(-135deg); margin-top: 4px; }
.prev-repliable[open] > summary { margin-bottom: .6rem; }
.accueil-salarie .accueil-grille > .carte-prev { order: 5; }
@media (max-width: 760px) { .accueil-salarie .accueil-grille > .carte-prev { order: 5; } }

/* E4 : Saisie des heures sur iPhone, une liste par ligne */
@media (max-width: 560px) {
  .saisie .ls:has(select) { grid-template-columns: 3.6rem minmax(0, 1fr) 2.2rem; }
  .saisie .ls:has(select) > .ls-t, .saisie .ls:has(select) > .ls-s, .saisie .ls:has(select) > .ls-m, .saisie .ls:has(select) > .ls-tr { grid-column: 2; grid-row: auto; }
  .saisie .ls:has(select) > .ls-h { grid-column: 1; grid-row: 1 / span 4; }
  .saisie .ls:has(select) > .ls-x { grid-column: 3; grid-row: 1 / span 4; }
  .saisie .ls select { min-width: 0; width: 100%; }
}

/* E1 : longues listes (assets/listes.js) */
.lg-barre { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; }
.lg-recherche { flex: 1 1 auto; min-width: 0; max-width: 26rem; min-height: 44px; }
.lg-compte { color: var(--doux); font-size: .9rem; white-space: nowrap; }
.lg-plus { display: block; width: 100%; min-height: 48px; margin: .2rem 0 1rem; }
.lg-tete td { padding: 0 !important; }
.lg-bascule { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 48px; padding: .55rem .9rem;
  border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--accent-clair); color: var(--texte); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.lg-bascule::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); margin-top: -4px; }
.lg-bascule[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.lg-nb { margin-left: auto; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .liste tr.lg-tete { background: none; border: 0; padding: 0; margin-bottom: .5rem; }
  .liste td.td-vide { display: none; }
  .liste td { padding: .2rem .9rem; }
  .liste td[data-l]::before { min-width: 7.5rem; }
  .liste-t-materiel td.col-photo:has(.vide-photo) { display: none; }
}

/* E8 : stocks à zéro masqués, buses montées en tableau compact */
.case-zero { margin: 0 0 .6rem; }
.liste-stocks.masquer-zero tr.ligne-zero { display: none; }
@media (max-width: 760px) {
  .liste-stocks td.zero { display: none; }
  table.buses-compact { display: table; width: 100%; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .buses-compact thead { display: table-header-group; }
  .buses-compact thead th { font-size: .8125rem; padding: .45rem .5rem; }
  .buses-compact thead th .doux { display: none; }
  .buses-compact tbody { display: table-row-group; }
  .buses-compact tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; }
  .buses-compact td { display: table-cell; padding: .4rem .5rem; border-top: 1px solid var(--ligne); width: auto; vertical-align: middle; }
  .buses-compact td[data-l]::before { content: none; }
}

/* E2 : sur ordinateur, les listes tiennent dans la largeur : textes longs abrégés (… et info-bulle), boutons resserrés */
@media (min-width: 761px) {
  .liste-une-ligne .cellule { max-width: 9.5rem; }
  .liste-t-materiel .cellule, .liste-pieces .cellule { max-width: 8rem; }
  .liste-une-ligne td.boutons form { margin-left: .3rem; }
  .liste-une-ligne td.boutons .lien-discret { padding-left: .15rem; padding-right: .15rem; }
  .liste-une-ligne td, .liste-une-ligne th { padding-left: .45rem; padding-right: .45rem; }
  /* Boutons d'action en icônes (texte en info-bulle et pour les lecteurs d'écran) */
  .liste-une-ligne td.boutons .lb-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .liste-une-ligne td.boutons .bouton-modifier, .liste-une-ligne td.boutons .lien-discret { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; vertical-align: middle; }
}
/* Ailleurs (téléphone, autres listes), l'icône accompagne le texte */
td.boutons .lien-discret svg { vertical-align: -3px; margin-right: .25rem; }
@media (min-width: 761px) { .liste-une-ligne td.boutons .lien-discret svg { margin-right: 0; } }

/* E3 : zones de toucher d'au moins 44 px sur écran tactile (aspect inchangé sur ordinateur) */
@media (pointer: coarse) {
  label.case { min-height: 44px; display: flex; align-items: center; gap: .55rem; }
  label.case input[type=checkbox], label.case input[type=radio] { width: 22px; height: 22px; flex: none; }
  .liste td .lien-discret, .liste td form .lien-discret, .liste td .lien-fiche, td.boutons a, td.boutons button { min-height: 44px; display: inline-flex; align-items: center; }
  .liste td .lien-fiche.cellule { min-height: 40px; }
  .pac-puce { min-height: 40px; padding: .25rem .65rem; }
  .pac-puce input[type=checkbox] { width: 20px; height: 20px; }
  .boutons a, .carte-lien.lien-bouton { min-height: 44px; display: inline-flex; align-items: center; }
  .actus-fleche { width: 32px; height: 32px; line-height: 32px; font-size: 14px; }
  .dest-puce { min-height: 44px; }
}

/* Consignes : lien vers les prévisions, placées en bas de page */
.lien-previsions { margin: -.25rem 0 1rem; }
.lien-previsions a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; }
.lien-previsions svg { transform: rotate(90deg); }
#previsions { scroll-margin-top: 70px; }
.bouton-deplier { width: 100%; min-height: 48px; }

/* PAC : sur téléphone, seules les parcelles liées sont visibles, un bouton montre les autres */
.pac-ligne.pac-replie .pac-puce:not(:has(input:checked)) { display: none; }
.pac-voir { margin-top: .4rem; min-height: 44px; }

/* Suppression d'un chantier (Gantt) ou d'une intervention (calendrier du programme) */
.calp-suppr { position: absolute; right: -11px; bottom: -9px; z-index: 4; display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border-radius: 50%; border: 1px solid #e3c4c0; background: #fff; color: #b3261e; cursor: pointer; opacity: .85; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.calp-suppr::before { content: ''; position: absolute; inset: -6px; }   /* zone de toucher élargie */
.calp-suppr:hover, .calp-suppr:focus-visible { opacity: 1; background: #fdecea; border-color: #b3261e; }
.calp-en-deplacement .calp-suppr { display: none; }
.suppr-dialogue { width: min(520px, calc(100vw - 24px)); padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.suppr-dialogue::backdrop { background: rgba(20, 30, 20, .35); }
.suppr-dialogue h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.suppr-impact { margin: .3rem 0 .8rem; padding-left: 1.1rem; line-height: 1.45; }
.suppr-impact li { margin: .15rem 0; }
.suppr-raison { background: #fdf3e6; border: 1px solid #f0d3a8; color: #7a4a10; border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.suppr-note { color: var(--doux); font-size: .9rem; margin: .5rem 0; }
.suppr-attente { color: var(--doux); margin: .3rem 0; }
.suppr-choix { display: grid; gap: .5rem; margin: .5rem 0 .8rem; }
.suppr-choix button { text-align: left; min-height: 44px; }
.suppr-dialogue .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.suppr-dialogue .actions > * { min-height: 44px; }
.zone-supprimer-chantier { border-color: #ecc9c4; }
.zone-supprimer-chantier > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; color: #b3261e; font-weight: 700; }
.zone-supprimer-chantier > summary::-webkit-details-marker { display: none; }
.zone-supprimer-chantier .zs-titre { display: inline-flex; align-items: center; gap: .45rem; }
.zone-supprimer-chantier .zs-intro { margin: .6rem 0 .2rem; font-weight: 600; }
.zs-choix { border: 1px solid var(--ligne); border-radius: 10px; padding: .5rem .8rem .6rem; margin: 0 0 .7rem; }
.zs-choix legend { font-weight: 600; padding: 0 .3rem; }
.zs-choix .case { align-items: flex-start; }
.form-supprimer-chantier .bouton-danger { margin-top: .4rem; }

/* ==========================================================================
   Affichage facile (Ma journée simplifiée) : gros boutons, icônes, couleurs
   ========================================================================== */
.mode-facile { font-size: 1.12rem; }
.fj { max-width: 1180px; margin: 0 auto; }
.fj-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .2rem 0 .9rem; }
.fj-salut h1 { margin: 0; font-size: 2rem; line-height: 1.1; }
.fj-date { margin: .25rem 0 0; color: var(--doux); font-size: 1.05rem; }
.fj-parler { cursor: pointer; font: inherit; font-weight: 800; }
.fj-ecouter-tout { flex: none; display: flex; align-items: center; gap: .6rem; min-height: 76px; padding: .6rem 1.1rem; border: 0; border-radius: 20px;
  background: #2a5d9f; color: #fff; box-shadow: 0 4px 14px rgba(42, 93, 159, .3); text-align: left; line-height: 1.15; font-size: 1.05rem; }
.fj-parler.parle { background: #c4581f !important; color: #fff !important; animation: fj-pulse 1.2s ease-in-out infinite; }
@keyframes fj-pulse { 50% { box-shadow: 0 0 0 8px rgba(196, 88, 31, .18); } }
.fj-jours { display: grid; grid-template-columns: 64px 1fr 64px; gap: .6rem; margin-bottom: 1rem; }
.fj-fleche { display: grid; place-items: center; min-height: 64px; border-radius: 18px; background: var(--accent-clair); color: var(--accent); font-size: 2.4rem; font-weight: 700; text-decoration: none; }
.fj-jour { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: 18px; background: var(--surface); border: 2px solid var(--ligne); text-decoration: none; color: var(--texte); }
.fj-jour.auj { border-color: var(--accent); }
.fj-jour strong { font-size: 1.35rem; } .fj-jour span { color: var(--doux); }
.fj-total { font-size: 1.25rem; font-weight: 700; margin: 0 0 .6rem; }
.fj-bravo { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-radius: 16px; background: #e3f2dc; color: #2d6a27; font-weight: 800; font-size: 1.2rem; margin: 0 0 .8rem; }
.fj-vide { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2rem 1rem; border-radius: 20px; background: var(--surface); color: var(--doux); font-size: 1.3rem; text-align: center; }
.fj-sans-voix { background: #fdf3e6; border: 1px solid #f0d3a8; border-radius: 12px; padding: .6rem .8rem; }
/* Carte d'une tâche */
.fc { position: relative; background: var(--surface); border: 2px solid var(--ligne); border-left: 12px solid var(--c); border-radius: 22px; padding: 1rem 1rem 1.1rem; margin: 0 0 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,.05); scroll-margin-top: 70px; }
.fc-tete { display: flex; align-items: center; gap: .8rem; }
.fc-icone { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: color-mix(in srgb, var(--t) 16%, white); color: var(--t); }
.fc-titre { flex: 1; min-width: 0; }
.fc-titre h2 { margin: 0; font-size: 1.65rem; line-height: 1.1; }
.fc-heures { margin: .2rem 0 0; display: inline-flex; align-items: center; gap: .35rem; font-size: 1.35rem; font-weight: 800; color: var(--texte); }
.fc-num { flex: none; align-self: flex-start; font-weight: 800; color: var(--doux); font-size: 1rem; background: var(--fond); border-radius: 99px; padding: .15rem .55rem; }
.fc-infos { list-style: none; margin: .9rem 0 .2rem; padding: 0; display: grid; gap: .55rem; }
.fc-infos li { display: flex; align-items: center; gap: .65rem; font-size: 1.2rem; line-height: 1.25; }
.fc-infos li > svg { flex: none; color: var(--doux); }
.fc-lieu strong { font-size: 1.3rem; }
.fc-pastille { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.fc-photo { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--ligne); }
.fc-remarque { background: #fff7e8; border-radius: 12px; padding: .45rem .6rem; }
.fc-remarque > svg { color: #c27a12 !important; }
.fc-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .9rem; }
.fc-ecouter, .fc-aller { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 68px; border-radius: 18px; font-size: 1.2rem; font-weight: 800; text-decoration: none; border: 2px solid transparent; }
.fc-ecouter { background: #e6eef9; color: #1f4f8a; border-color: #c7d8f0; }
.fc-aller { background: #2a5d9f; color: #fff; }
.fc-aller:hover, .fc-aller:focus-visible { background: #22508a; color: #fff; }
.fc-bouton-fait { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 88px; margin-top: .8rem; border: 0; border-radius: 22px;
  background: #2f8a3a; color: #fff; font: inherit; font-size: 1.8rem; font-weight: 900; letter-spacing: .02em; cursor: pointer; box-shadow: 0 5px 16px rgba(47, 138, 58, .35); }
.fc-bouton-fait:active { transform: scale(.98); }
.fc-bouton-fait:disabled { opacity: .6; }
.fc-etat-fait { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; padding: .7rem .9rem; border-radius: 20px; background: #e3f2dc; }
.fc-fait-texte { display: inline-flex; align-items: center; gap: .45rem; color: #2d6a27; font-size: 1.5rem; font-weight: 900; }
.fc-fait-texte > span { display: flex; flex-direction: column; line-height: 1.1; }
.fc-fait-heure { display: block; font-weight: 700; font-size: 1.05rem; }
.fc-annuler { min-height: 48px; padding: .3rem .9rem; border-radius: 14px; border: 1px solid #b9d6ad; background: #fff; color: #2d6a27; font: inherit; font-weight: 700; cursor: pointer; }
.fc.fc-fait { border-color: #b9d6ad; background: #f6fbf3; }
.fc.fc-fait .fc-titre h2 { color: #2d6a27; }
.fc-anim { animation: fc-ok .6s ease; }
@keyframes fc-ok { 30% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(47, 138, 58, .2); } }
.fc-erreur { color: var(--danger); font-weight: 700; margin: .4rem 0 0; }
.fc-details { margin-top: .9rem; border-top: 1px solid var(--ligne); padding-top: .6rem; }
.fc-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; background: var(--fond); font-weight: 800; font-size: 1.15rem; color: var(--texte); }
.fc-details > summary::-webkit-details-marker { display: none; }
.fc-details > summary span::after { content: ' ▾'; } .fc-details[open] > summary span::after { content: ' ▴'; }
.fc-ecouter-details { width: 100%; min-height: 60px; margin: .7rem 0; }
.fc-traitement { border: 1px solid var(--ligne); border-radius: 16px; padding: .7rem .9rem; margin: .6rem 0; }
.fc-traitement h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: 1.2rem; }
.fc-produits { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fc-produits li { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; font-size: 1.15rem; padding: .45rem .6rem; border-radius: 12px; background: #f3f6fb; }
.fc-produits strong { font-size: 1.2rem; }
.fc-cuve { color: #1f4f8a; font-weight: 700; }
.fc-cuves { font-weight: 700; margin: .5rem 0; }
.fc-consignes { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .4rem; }
.fc-consignes li { display: flex; gap: .5rem; align-items: flex-start; font-size: 1.1rem; }
.fc-consignes svg { flex: none; color: #b3261e; margin-top: 2px; }
.fc-fiche { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; font-weight: 700; }
.fj-pied { text-align: center; margin: 1rem 0; }
/* Semaine : sur ordinateur, à côté des tâches */
.fj-semaine { display: none; }
@media (min-width: 900px) {
  .fj-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
  .fj-semaine { display: block; position: sticky; top: 70px; background: var(--surface); border: 2px solid var(--ligne); border-radius: 22px; padding: 1rem; }
  .fj-semaine h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
  .fj-semaine ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
  .fj-semaine a { display: grid; gap: .25rem; padding: .5rem .6rem; border-radius: 14px; text-decoration: none; color: var(--texte); border: 2px solid transparent; }
  .fj-semaine a:hover { background: var(--fond); }
  .fj-semaine li.courant a { border-color: var(--accent); background: var(--accent-clair); }
  .fj-semaine li.auj .fs-jour b::after { content: ' · aujourd\'hui'; color: var(--accent); font-weight: 600; }
  .fs-jour { font-size: 1rem; } .fs-rien { color: var(--doux); }
  .fs-tache { display: flex; align-items: center; gap: .4rem; font-size: .95rem; border-left: 5px solid var(--c); padding-left: .45rem; }
  .fs-tache > svg:first-child { color: var(--t); flex: none; }
  .fs-faite { color: #2d6a27; } .fs-faite > svg:last-child { color: #2f8a3a; flex: none; }
  .fj-salut h1 { font-size: 2.4rem; }
  .fc { padding: 1.3rem 1.4rem 1.4rem; }
  .fc-titre h2 { font-size: 1.9rem; }
}
@media (max-width: 420px) {
  .fj-salut h1 { font-size: 1.7rem; }
  .fj-ecouter-tout { min-height: 68px; padding: .5rem .8rem; font-size: .98rem; }
  .fj-ecouter-tout svg { width: 28px; height: 28px; }
}
/* Barre du bas de l'affichage facile : trois très gros boutons */
@media (max-width: 760px) {
  .barre-facile a { min-height: 72px; font-size: 1rem; position: relative; }
  .barre-facile .pastille-nonlus { top: 6px; right: calc(50% - 26px); }
}
/* Comptes : case « Affichage facile » */
.choix-facile { border: 1px solid var(--ligne); border-radius: 12px; padding: .6rem .9rem .8rem; }
.choix-facile legend { font-weight: 700; padding: 0 .3rem; }
.case-forte { font-size: 1.05rem; }
.niveau-detail { margin-top: .6rem; display: grid; gap: .2rem; }
.pastille-facile { background: #e6eef9; color: #1f4f8a; }
.cs-fait { color: #2d6a27; font-weight: 800; white-space: nowrap; }

/* Affichage facile, retouches : menus réduits, icônes plus grosses, « Signaler un problème » en rouge */
.mode-facile .menu-haut .mh-facile { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.2rem; font-weight: 800; padding: .5rem 1rem; }
.mode-facile .barre { height: auto; min-height: 78px; padding-top: .4rem; padding-bottom: .4rem; }
.compte-facile { display: flex; align-items: center; gap: .5rem; }
.compte-facile form { margin: 0; }
.cf-bouton { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 84px; min-height: 64px; padding: .3rem .6rem;
  border-radius: 16px; border: 0; background: var(--fond); color: var(--texte); font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.cf-bouton:hover, .cf-bouton.actif { background: var(--accent-clair); color: var(--accent); }
.cf-bouton .pastille-nonlus { top: 4px; right: 14px; }
.cf-signaler, .cf-signaler:hover, .cf-signaler.actif { flex-direction: row; gap: .5rem; min-width: 0; padding: .4rem 1.1rem; background: #d32f22; color: #fff; font-size: 1.1rem; font-weight: 800; box-shadow: 0 4px 12px rgba(211, 47, 34, .3); }
.cf-sortie { background: none; color: var(--doux); }
@media (max-width: 760px) {
  .mode-facile .barre { min-height: 0; height: 52px; padding-top: 0; padding-bottom: 0; }
  .mode-facile .bouton-tiroir svg { width: 30px; height: 30px; }
  .barre-facile { gap: .6rem; padding-top: .55rem; }
  .barre-facile a { min-height: 86px; font-size: 1.05rem; gap: .25rem; }
  .barre-facile a.bb-signaler, .barre-facile a.bb-signaler.actif { background: #d32f22; color: #fff; box-shadow: 0 4px 14px rgba(211, 47, 34, .35); }
  .mode-facile.connecte .cadre { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mode-facile .tiroir a { min-height: 60px; font-size: 1.15rem; }
  .mode-facile .tiroir a .ic svg { width: 26px; height: 26px; }
}
/* Gros bouton rouge en haut de Ma journée */
.fj-signaler-ligne { display: grid; grid-template-columns: 1fr 76px; gap: .6rem; margin: 0 0 1rem; }
.fj-signaler { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 88px; padding: .6rem 1rem; border-radius: 22px; background: #d32f22; color: #fff;
  font-size: 1.45rem; font-weight: 900; text-decoration: none; box-shadow: 0 5px 16px rgba(211, 47, 34, .35); line-height: 1.1; }
.fj-signaler:hover, .fj-signaler:focus-visible { background: #b8261b; color: #fff; }
.fj-signaler-ecouter { display: grid; place-items: center; border-radius: 22px; border: 2px solid #f1c3be; background: #fdeceb; color: #b3261e; }
/* Page « Signaler un problème » en affichage facile */
.mode-facile .titre-evenement { font-size: 1.8rem; }
.mode-facile .titre-evenement .pastille-alerte { width: 64px; height: 64px; background: #d32f22; color: #fff; }
.mode-facile .ev-ecouter { width: 100%; max-width: 640px; margin: 0 0 1rem; }
.mode-facile .type-tuile span { min-height: 120px; font-size: 1.15rem; }
.mode-facile .type-tuile svg { width: 40px; height: 40px; }
.mode-facile .gros-bouton { min-height: 72px; font-size: 1.2rem; }
.mode-facile .gros-envoyer { min-height: 80px; font-size: 1.35rem; }

/* Plusieurs stations météo */
.mc-onglets { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-left: .5rem; }
.mc-onglet { min-height: 32px; padding: .15rem .65rem; border-radius: 99px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.75); color: var(--texte); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.mc-onglet.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (pointer: coarse) { .mc-onglet { min-height: 40px; } }
.mcons-station { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; margin-right: .4rem; }
.meteo-consigne + .meteo-consigne { margin-top: -.4rem; }
.mj-meteo, .fj-meteo { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 14px; margin: 0 0 .9rem; background: #e8f4e3; color: #2d4a2a; }
.mj-meteo.niveau-moyen, .fj-meteo.niveau-moyen { background: #fdf0dc; color: #6b4410; }
.mj-meteo.niveau-fort, .fj-meteo.niveau-fort { background: #fce4e0; color: #8a2a1b; }
.fj-meteo { font-size: 1.2rem; padding: .7rem 1rem; border-radius: 18px; }
.fj-meteo strong { margin-right: .3rem; }
.form-station { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem 1rem; margin: .6rem 0 1rem; background: var(--surface); }
.form-station h3 { margin: 0; }
.st-coord { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.st-coord input { width: 8.5rem; }
.st-identifiants { border-top: 1px solid var(--ligne); padding-top: .6rem; }
.st-identifiants summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; gap: .3rem; }
.liste-stations tr.st-masquee td { color: var(--doux); }
.st-oui { display: inline-flex; align-items: center; gap: .25rem; color: #2d6a27; font-weight: 700; }
.st-identifiants summary { list-style: none; }
.st-identifiants summary::-webkit-details-marker { display: none; }
.st-identifiants summary::before { content: '▸'; color: var(--accent); }
.st-identifiants[open] summary::before { content: '▾'; }

/* « Peut-on traiter ? » : réponse claire en haut de page */
.titre-traiter { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.titre-traiter > svg { color: var(--accent); flex: none; }
.verdicts { display: grid; gap: .8rem; margin: 0 0 1rem; }
@media (min-width: 900px) { .verdicts-plusieurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.verdict { border-radius: 18px; padding: .9rem 1.1rem 1rem; border: 2px solid; }
.verdict-ok { background: #e8f4e3; border-color: #b9d6ad; color: #22501f; }
.verdict-moyen { background: #fdf0dc; border-color: #f1cf98; color: #6b4410; }
.verdict-fort { background: #fce4e0; border-color: #efb4aa; color: #8a2a1b; }
.verdict-tete { display: flex; align-items: center; gap: .7rem; }
.verdict-feu { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; }
.verdict-ok .verdict-feu { background: #2f8a3a; } .verdict-moyen .verdict-feu { background: #d98a12; } .verdict-fort .verdict-feu { background: #c63a2b; }
.verdict-titre { display: block; font-size: 1.35rem; line-height: 1.15; }
.verdict-source { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; opacity: .85; margin-top: .15rem; }
.verdict-raisons { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .3rem; }
.verdict-raisons li { display: flex; align-items: flex-start; gap: .4rem; font-size: 1rem; }
.verdict-raisons li svg { flex: none; margin-top: 2px; }
.verdict-raisons .r-ok { color: #2d6a27; } .verdict-raisons .r-moyen { color: #8a5a12; font-weight: 700; } .verdict-raisons .r-fort { color: #a3301f; font-weight: 800; }
.titre-traitements-prevus { font-size: 1.15rem; margin: 1.2rem 0 .6rem; }

/* Messagerie : dossiers, sélection de plusieurs messages, corbeille */
.boite-onglets { display: flex; gap: .3rem; padding: 0 1rem .6rem; flex-wrap: wrap; }
.boite-onglets a { display: inline-flex; align-items: center; gap: .25rem; min-height: 36px; padding: .2rem .7rem; border-radius: 99px; background: var(--fond); color: var(--texte); text-decoration: none; font-size: .9rem; font-weight: 600; }
.boite-onglets a.actif { background: var(--accent); color: #fff; }
.bs-barre { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; padding: .4rem 1rem; border-top: 1px solid var(--ligne); background: #fafbf8; }
.bs-tout { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; font-size: .9rem; cursor: pointer; }
.bs-compte { color: var(--doux); font-size: .88rem; margin-right: auto; }
.bs-action { display: inline-flex; align-items: center; gap: .3rem; }
.bs-action:disabled { opacity: .45; cursor: default; }
.bs-danger:not(:disabled) { color: var(--danger); border-color: #e6b8b4; }
.boite-messages li { display: flex; align-items: stretch; }
.boite-messages li > a { flex: 1 1 auto; min-width: 0; padding-left: .3rem; }
.bm-case { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; padding-left: .4rem; cursor: pointer; }
.bm-case input { width: 18px; height: 18px; margin: 0; }
.bm-bouton { flex: none; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin-right: .4rem; border: 0; border-radius: 10px; background: none; color: var(--doux); cursor: pointer; }
.bm-bouton:hover, .bm-bouton:focus-visible { background: var(--fond); color: var(--texte); }
.bm-danger:hover, .bm-danger:focus-visible { color: var(--danger); background: #fdecea; }
.bs-vider { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .8rem 1rem; border-top: 1px solid var(--ligne); }
@media (pointer: coarse) { .bm-case { width: 46px; } .bm-case input { width: 22px; height: 22px; } .bm-bouton { width: 46px; height: 46px; } }
/* Affichage facile : boutons de la messagerie plus gros */
.mode-facile .boite-onglets a { min-height: 48px; font-size: 1.05rem; padding: .3rem 1rem; }
.mode-facile .bm-bouton { width: 56px; height: 56px; }
.mode-facile .bm-bouton svg { width: 26px; height: 26px; }
.mode-facile .bm-case input { width: 26px; height: 26px; }
.mode-facile .bs-action, .mode-facile .ml-actions .principal, .mode-facile .ml-actions .secondaire-bouton, .mode-facile .ml-actions .bouton-danger { min-height: 52px; font-size: 1.05rem; }
.mode-facile .boite-messages a { padding-top: .85rem; padding-bottom: .85rem; font-size: 1.05rem; }

/* ---------- Photos des personnes (miniatures rondes, silhouette grise sans photo) ---------- */
.avatar { --av: 24px; display: inline-flex; flex: 0 0 var(--av); width: var(--av); height: var(--av); border-radius: 50%; overflow: hidden; vertical-align: middle;
          background: #e3e6e1; color: #a3aaa0; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-vide svg { width: 88%; height: 88%; margin-top: 18%; }
.nom-avec-avatar { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; max-width: 100%; }
.nom-avec-avatar > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.avant-nom { margin-right: .55rem; vertical-align: -.3em; }
.fj-salut h1 { display: flex; align-items: center; }
.nom-utilisateur .avatar { margin-right: .1rem; }
.tiroir-moi { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.champ-photo-personne .cpp-zone { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }
.champ-photo-personne .cpp-boutons { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; flex: 1 1 220px; }
.champ-photo-personne .cpp-bouton { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px; }
.champ-photo-personne .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ligne); }

/* ---------- Bouton « Signaler un événement » : rouge, nettement plus gros ---------- */
.signaler-bloc { position: relative; display: inline-flex; margin-right: .35rem; }
.bouton-signaler { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 .95rem 0 .7rem; border-radius: 21px; background: #c8251d; color: #fff !important;
                   font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(200,37,29,.35); transition: background .15s, transform .1s; }
.bouton-signaler:hover, .bouton-signaler.actif { background: #a51c15; }
.bouton-signaler:active { transform: scale(.97); }
.bouton-signaler svg { color: #fff; }
.signaler-nouveaux { position: absolute; top: -6px; right: -8px; text-decoration: none; background: #1d2b1d !important; color: #fff !important; border: 2px solid #fff; }
.signaler-mobile { display: none; }
@media (max-width: 760px) {
  .connecte .signaler-mobile { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto; margin-right: .35rem; border-radius: 12px;
                               background: #c8251d; color: #fff; box-shadow: 0 2px 6px rgba(200,37,29,.35); }
  .connecte .signaler-mobile:active { background: #a51c15; }
}
.boite-messages .bm-avatar { align-self: center; margin: 0 .15rem 0 .2rem; }
.ml-entete .ml-photo { flex: 0 0 auto; }
.dest-puce .avatar { margin: -2px 0; }
.ps-carte { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; }
.ps-carte .reglage-icone { margin: 0; flex: 0 0 auto; }
.ps-texte { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 260px; min-width: 0; }
.ps-texte small { color: var(--doux); }
.ps-action { margin: 0; }

/* ---------- Exploitants (migration 032) ---------- */
.pastille-exploitant { background: #e8eef7; color: #2a5288; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; margin-left: .2rem; white-space: nowrap; }
.titre-exploitants { margin: 1.4rem 0 .5rem; font-size: 1rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.filtre-personnes { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.filtre-personnes a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); text-decoration: none; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.filtre-personnes a.actif { background: var(--accent); border-color: var(--accent); color: #fff; }
.recap-table tr.sous-total td { background: #f6f7f3; font-weight: 600; }

/* Corbeille des interventions (Traitements › Programme) : au survol de la souris, ou au premier toucher sur téléphone */
.calp-suppr { opacity: 0; pointer-events: none; transition: opacity .12s; }
.calp-rond:hover .calp-suppr, .calp-rond:focus-within .calp-suppr, .calp-rond.calp-touche .calp-suppr { opacity: 1; pointer-events: auto; }
.calp-rond.calp-touche { z-index: 6; }

/* ---------- Mot de passe oublié ---------- */
.mdp-lien a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1.05rem; min-height: 44px; }
.mdp-oubli { text-align: left; }
.mdp-tete { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 .8rem; }
.mdp-tete h1 { margin: 0; font-size: 1.6rem; }
.mdp-icone { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #fdf1df; color: #b46a12; flex: 0 0 auto; }
.mdp-texte { font-size: 1.12rem; line-height: 1.45; margin: 0 0 .7rem; }
.mdp-ecouter { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .55rem 1.1rem; border-radius: 14px; border: 2px solid #c9d8ee;
               background: #eef4fc; color: #234f8a; font-size: 1.08rem; font-weight: 700; cursor: pointer; margin-bottom: .9rem; }
.mdp-form label { display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; }
.mdp-form input { font-size: 1.2rem; min-height: 54px; }
.mdp-prevenir { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 72px; font-size: 1.25rem; margin-top: .9rem; }
.mdp-fini { text-align: center; padding: 1.2rem 1rem; border-radius: 16px; background: #eef7ec; border: 1px solid #cfe5c9; margin-bottom: 1rem; font-size: 1.12rem; }
.mdp-fini p { margin: .3rem 0; }
.mdp-ok { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #3f7a3a; color: #fff; margin-bottom: .4rem; }
.mdp-fini .mdp-ecouter { margin: .8rem 0 0; }
.mdp-retour { display: block; text-align: center; text-decoration: none; }
.pastille-mdp { background: #fdf1df; color: #9a5a0c; text-decoration: none; font-weight: 700; }
@media (hover: none) {   /* écran tactile : corbeille absente (même pour le « toucher approximatif ») tant qu'on n'a pas touché l'intervention */
  .calp-suppr { display: none; }
  .calp-rond.calp-touche .calp-suppr { display: grid; }
}
/* La corbeille ne recouvre plus le centre de l'intervention (sinon toucher ou cliquer le rond ouvrait la suppression) */
.calp-suppr { right: -14px; bottom: -12px; }
.calp-suppr::before { inset: -3px; }
@media (hover: none) {
  .calp-suppr { right: -12px; bottom: -28px; width: 26px; height: 26px; }
  .calp-suppr svg { width: 15px; height: 15px; }
  .calp-suppr::before { inset: -5px; }
}
.formulaire-simple button.mdp-prevenir { display: flex; align-items: center; justify-content: center; gap: .6rem; line-height: 1.2; }
.formulaire-simple button.mdp-prevenir svg { flex: 0 0 auto; display: block; }

/* ---------- Compte technicien (lecture seule) ---------- */
.pastille-technicien { display: inline-flex; align-items: center; height: 34px; padding: 0 .8rem; border-radius: 17px; background: #eef4fc; color: #234f8a; font-weight: 700; font-size: .85rem; white-space: nowrap; margin-right: .3rem; }
.bouton-lecture-seule { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem; border-radius: 10px; border: 2px dashed #9fb3cf;
  background: #f3f6fb; color: #33507a; font-weight: 700; cursor: not-allowed; text-align: center; line-height: 1.25; }
.jour-colonnes.sans-equipe { grid-template-columns: 1fr; }

/* ---------- Mentions légales, confidentialité, note aux salariés ---------- */
.pied-site a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.a-completer { background: #fdf1df; color: #9a5a0c; border: 1px dashed #e0a456; border-radius: 6px; padding: 0 .35rem; font-weight: 600; }
.page-legale { background: var(--fond); }
.legal-barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 16px; background: var(--surface); border-bottom: 1px solid var(--ligne); }
.legal-barre .logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--texte); text-decoration: none; }
.legal-retour { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.legal-retour svg { transform: rotate(180deg); }
.legal { max-width: 860px; margin: 0 auto; padding: 1.5rem 16px 2rem; line-height: 1.55; }
.legal h1 { font-size: 1.7rem; margin: .2rem 0 .6rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.legal-intro { font-size: 1.05rem; color: var(--doux); }
.legal-fiche { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .4rem 1rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 0; }
.legal-fiche dt { font-weight: 600; color: var(--doux); }
.legal-fiche dd { margin: 0; overflow-wrap: anywhere; }
.legal-liste { padding-left: 1.2rem; }
.legal-liste li { margin: .35rem 0; }
.legal-tableau { overflow-x: auto; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.legal-tableau table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal-tableau th, .legal-tableau td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--ligne); }
.legal-tableau th { background: var(--fond); font-size: .85rem; }
.legal-tableau tr:last-child td { border-bottom: 0; }
.legal-note { font-size: .92rem; color: var(--doux); }
.legal-maj { margin-top: 2rem; font-size: .9rem; color: var(--doux); }
.legal code { background: var(--fond); padding: .05rem .35rem; border-radius: 5px; font-size: .88rem; }
@media (max-width: 640px) {
  .legal-fiche { grid-template-columns: 1fr; gap: .1rem; }
  .legal-fiche dd { margin-bottom: .6rem; }
  .legal-tableau table, .legal-tableau tbody, .legal-tableau tr, .legal-tableau td { display: block; width: auto; }
  .legal-tableau thead { display: none; }
  .legal-tableau tr { border-bottom: 1px solid var(--ligne); padding: .5rem 0; }
  .legal-tableau td { border: 0; padding: .25rem .8rem; }
  .legal-tableau td:nth-child(2)::before { content: "À quoi ça sert : "; font-weight: 600; }
  .legal-tableau td:nth-child(3)::before { content: "Durée : "; font-weight: 600; }
}
.etat-mentions { font-weight: 700; padding: .55rem .9rem; border-radius: 10px; display: inline-block; }
.etat-mentions.a-faire { background: #fdf1df; color: #9a5a0c; }
.etat-mentions.ok { background: #eef7ec; color: #2f6a2a; }
.titre-groupe-fiche { margin: .4rem 0 -.2rem; font-size: 1rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.filtre-note { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.filtre-note select { min-height: 44px; max-width: 100%; }
/* Note à imprimer (A4) */
.page-note { background: #e9ebe6; }
.note-outils { max-width: 210mm; margin: 1rem auto .6rem; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.note-a4 { box-sizing: border-box; max-width: 210mm; margin: 0 auto 2rem; background: #fff; padding: 14mm 15mm; color: #1b241b; font-size: 10.5pt; line-height: 1.45; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.note-tete { display: flex; align-items: center; gap: .8rem; border-bottom: 2px solid #3f6b3a; padding-bottom: .5rem; margin-bottom: .8rem; }
.note-tete h1 { font-size: 16pt; margin: 0; }
.note-tete p { margin: 0; color: #5b665b; }
.note-a4 h2 { font-size: 11.5pt; margin: .8rem 0 .25rem; color: #2f5a2b; }
.note-a4 ul { margin: .2rem 0; padding-left: 1.1rem; }
.note-a4 p { margin: .25rem 0; }
.note-ligne { display: inline-block; min-width: 70mm; border-bottom: 1px solid #333; font-weight: 700; }
.note-ligne.court { min-width: 35mm; }
.note-accord { border: 2px solid #3f6b3a; border-radius: 8px; padding: .5rem .8rem; margin-top: .9rem; page-break-inside: avoid; }
.note-case { display: flex; align-items: center; gap: .6rem; font-size: 11.5pt; margin: .45rem 0; }
.case-vide { width: 5mm; height: 5mm; border: 1.6px solid #222; border-radius: 2px; flex: 0 0 auto; }
.note-petit { font-size: 9pt; color: #555; }
.note-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: .9rem; page-break-inside: avoid; }
.note-cadre { height: 20mm; border: 1px solid #999; border-radius: 4px; margin-top: .2rem; }
.note-bas { margin-top: .6rem; }
.note-a4 .a-completer { background: none; border: 0; padding: 0; color: #9a5a0c; }
@media (max-width: 640px) { .note-a4 { padding: 18px 16px; font-size: 15px; } .note-signatures { grid-template-columns: 1fr; } .note-ligne { min-width: 50%; } }
@media print {
  @page { size: A4; margin: 0; }
  .page-note { background: #fff; }
  .note-outils { display: none; }
  .note-a4 { box-shadow: none; margin: 0; max-width: none; padding: 9mm 12mm; font-size: 9.6pt; line-height: 1.36; }
  .note-a4 h2 { margin: .5rem 0 .15rem; font-size: 10.6pt; }
  .note-a4 p, .note-a4 li { margin: .12rem 0; }
  .note-tete { margin-bottom: .45rem; }
  .note-accord { margin-top: .55rem; padding: .35rem .7rem; }
  .note-case { margin: .25rem 0; }
  .note-signatures { margin-top: .55rem; }
  .note-cadre { height: 16mm; }
}

/* ---------- Événements signalés : poubelle (responsables) ---------- */
.ev-liste .ev-ligne { position: relative; }
.ev-liste.avec-suppr a { padding-right: 3.6rem; }
.ev-suppr { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #e6b8b4; background: #fff; color: var(--danger); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12);
  opacity: 0; pointer-events: none; transition: opacity .12s; }
.ev-ligne:hover .ev-suppr, .ev-ligne:focus-within .ev-suppr, .ev-ligne.ev-touche .ev-suppr { opacity: 1; pointer-events: auto; }
.ev-suppr:hover, .ev-suppr:focus-visible { background: #fbeceb; }
@media (hover: none) {
  .ev-suppr { display: none; width: 46px; height: 46px; }
  .ev-ligne.ev-touche .ev-suppr { display: grid; }
  .ev-ligne.ev-touche > a { background: #f6f8f3; }
}
.ev-dialogue { border: 0; border-radius: 16px; padding: 1.2rem 1.3rem; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.ev-dialogue::backdrop { background: rgba(20, 30, 20, .45); }
.ev-dialogue h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.ev-dialogue p { margin: .3rem 0; }
.ev-dlg-quoi { font-weight: 700; }
.ev-dialogue .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ev-dialogue .bouton-danger { min-height: 44px; background: var(--danger); color: #fff; }
