/* =========================================================================
   CRM Batiment — feuille de style
   Design moderne, clair, responsive (utilisable sur telephone).
   ========================================================================= */

:root {
  /* Couleurs de la marque Bati HALLI (accent orange du site) */
  --bleu:      #e8731c;  /* accent principal = orange de marque */
  --bleu-fonce:#1e293b;  /* bleu nuit (menu, titres) */
  --bleu-clair:#fef6ee;  /* orange tres clair (survols, etiquettes) */
  --gris-fond: #f1f5f9;
  --gris-bord: #e2e8f0;
  --gris-texte:#475569;
  --gris-doux: #94a3b8;
  --blanc:     #ffffff;
  --vert:      #16a34a;
  --rouge:     #dc2626;
  --orange:    #ea580c;
  --jaune:     #ca8a04;
  --ombre:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --ombre-fort:0 10px 25px rgba(0,0,0,.15);
  --rayon:     10px;
  --largeur-menu: 230px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--gris-fond);
  color: #0f172a;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Menu lateral ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--largeur-menu);
  background: var(--bleu-fonce);
  color: #cbd5e1;
  display: flex; flex-direction: column;
  padding: 16px 0;
  z-index: 100;
  transition: transform .25s ease;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 18px 20px; }
.logo-img { height: 40px; width: auto; }
.logo-texte { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.marque-bati { color: var(--bleu); font-weight: 800; } /* "Bati" en orange, comme sur le site */
.topbar-logo { height: 30px; width: auto; }
.sidebar a {
  display: block; padding: 12px 20px;
  color: #cbd5e1; text-decoration: none;
  font-weight: 500; border-left: 3px solid transparent;
}
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.actif { background: rgba(232,115,28,.22); border-left-color: var(--bleu); color: #fff; }
.sidebar-bas { margin-top: auto; padding: 16px 20px 4px; }

/* ---------- Barre superieure (mobile) ---------- */
.topbar {
  display: none;
  position: sticky; top: 0; z-index: 90;
  background: var(--bleu-fonce); color: #fff;
  align-items: center; gap: 12px; padding: 10px 14px;
}
.btn-menu { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.topbar-titre { font-weight: 700; }
.overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 95;
}

/* ---------- Contenu ---------- */
.contenu { margin-left: var(--largeur-menu); padding: 24px 28px 60px; min-height: 100vh; }
.page-entete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-entete h1 { font-size: 24px; font-weight: 700; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bleu); color: #fff; border: none;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-clair { background: var(--blanc); color: var(--bleu-fonce); border: 1px solid var(--gris-bord); }
.btn-clair:hover { background: var(--gris-fond); }
.btn-vert { background: var(--vert); }
.btn-rouge { background: var(--rouge); }
.btn-petit { padding: 5px 10px; font-size: 13px; }
.btn-icone { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 6px; }
.btn-icone:hover { background: var(--gris-fond); }

/* ---------- Cartes / blocs ---------- */
.carte {
  background: var(--blanc); border: 1px solid var(--gris-bord);
  border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px;
}
.grille { display: grid; gap: 16px; }
.grille-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat { background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.stat-valeur { font-size: 28px; font-weight: 800; color: var(--bleu-fonce); }
.stat-libelle { color: var(--gris-texte); font-size: 13px; margin-top: 4px; }
.stat-icone { float: right; font-size: 26px; opacity: .5; }

.bloc-titre { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ---------- Barre de filtres ---------- */
.filtres {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--blanc); border: 1px solid var(--gris-bord);
  border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 18px;
}
.filtres input, .filtres select { min-width: 130px; }

/* ---------- Champs de formulaire ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--gris-texte); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--gris-bord); border-radius: 8px; background: #fff; color: #0f172a;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(232,115,28,.18); }
textarea { resize: vertical; min-height: 80px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.aide { font-size: 12px; color: var(--gris-doux); margin-top: 4px; font-weight: 400; }

/* ---------- Tableaux ---------- */
.table-enveloppe { overflow-x: auto; background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--gris-bord); white-space: nowrap; }
th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--gris-texte); }
tbody tr:hover { background: var(--bleu-clair); cursor: pointer; }
td.actions { text-align: right; }
.vide { text-align: center; padding: 40px; color: var(--gris-doux); }

/* ---------- Etiquettes / pastilles ---------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- Pipeline / Kanban ---------- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.colonne { flex: 0 0 270px; background: #eef2f7; border-radius: var(--rayon); display: flex; flex-direction: column; max-height: calc(100vh - 190px); }
.colonne-entete { padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--gris-bord); }
.colonne-total { font-size: 11px; color: var(--gris-texte); font-weight: 600; }
.colonne-liste { padding: 10px; overflow-y: auto; flex: 1; min-height: 60px; }
.carte-affaire { background: #fff; border: 1px solid var(--gris-bord); border-left: 4px solid var(--bleu); border-radius: 8px; padding: 11px 12px; margin-bottom: 10px; cursor: grab; box-shadow: var(--ombre); }
.carte-affaire:active { cursor: grabbing; }
.carte-affaire h4 { font-size: 14px; margin-bottom: 5px; }
.carte-affaire .meta { font-size: 12px; color: var(--gris-texte); }
.carte-affaire .montant { font-weight: 700; color: var(--bleu-fonce); }
.sortable-ghost { opacity: .4; }
.relance-tard { color: var(--rouge); font-weight: 700; }

/* ---------- Blocs de visite (observations) ---------- */
.bloc-visite { border-left: 4px solid var(--bleu); background: #fffdfb; }
.bloc-visite textarea { min-height: 64px; }

/* ---------- Galerie photos ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-vignette { position: relative; }
.photo-vignette img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gris-bord); cursor: pointer; }
.photo-vignette .suppr { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px; }
.photo-legende { font-size: 11px; color: var(--gris-texte); text-align: center; margin-top: 2px; }

/* ---------- Visionneuse plein ecran ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- Fenetre modale ---------- */
.modal-fond { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 200; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; box-shadow: var(--ombre-fort); width: 100%; max-width: 640px; margin: auto; }
.modal-entete { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--gris-bord); }
.modal-entete h2 { font-size: 18px; }
.modal-x { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gris-texte); }
.modal-corps { padding: 22px; }

/* ---------- Carte Leaflet ---------- */
#carte-leaflet { height: calc(100vh - 210px); min-height: 400px; border-radius: var(--rayon); border: 1px solid var(--gris-bord); z-index: 1; }
.legende-carte { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.legende-carte span { font-size: 13px; color: var(--gris-texte); }

/* ---------- Notifications ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bleu-fonce); color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: var(--ombre-fort); font-weight: 500; animation: apparait .2s; }
.toast.ok { background: var(--vert); }
.toast.err { background: var(--rouge); }
@keyframes apparait { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Divers ---------- */
.liste-simple { list-style: none; }
.liste-simple li { padding: 10px 0; border-bottom: 1px solid var(--gris-bord); display: flex; justify-content: space-between; gap: 10px; }
.liste-simple li:last-child { border-bottom: none; }
.muted { color: var(--gris-doux); }
.mono { font-variant-numeric: tabular-nums; }
.bandeau-info { background: var(--bleu-clair); border: 1px solid #bfdbfe; color: #1e40af; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* ---------- Responsive (telephone / tablette) ---------- */
@media (max-width: 820px) {
  .topbar { display: flex; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--ombre-fort); }
  .sidebar.ouvert { transform: translateX(0); }
  .overlay.visible { display: block; }
  .contenu { margin-left: 0; padding: 16px 14px 60px; }
  .form-2col { grid-template-columns: 1fr; }
  .page-entete h1 { font-size: 20px; }
}

/* =========================================================================
   EVOLUTION 2026 — planning des chantiers, fiches de travaux, statistiques
   ========================================================================= */

/* ---------- Menu : intertitres ---------- */
.sidebar-separateur {
  padding: 14px 20px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #64748b;
}

/* ---------- Boutons supplementaires ---------- */
.btn-gros { padding: 11px 16px; font-size: 15px; }
.btn-vert { background: var(--vert); }
.btn-vert:hover { filter: brightness(1.08); }

/* ---------- Etiquettes de statut du planning ---------- */
.statut-planifie { background: #e0e7ff; color: #3730a3; }
.statut-encours  { background: #ffedd5; color: #9a3412; }
.statut-termine  { background: #dcfce7; color: #166534; }
.statut-reporte  { background: #f1f5f9; color: #475569; }

/* ---------- Barre d'outils du planning ---------- */
.planning-barre {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.planning-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.planning-titre { font-size: 17px; margin-left: 8px; text-transform: capitalize; }
.planning-vues { display: flex; gap: 6px; }
.planning-case { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris-texte); }
.planning-legende { display: flex; gap: 16px; margin-bottom: 8px; font-size: 12px; color: var(--gris-texte); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.pastille-chantier { background: var(--bleu); }
.pastille-rdv { background: #0891b2; }

/* ---------- Grille du calendrier ---------- */
.planning-grille {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: transparent;
}
.planning-entete-jour {
  text-align: center; font-weight: 700; font-size: 12px; color: var(--gris-texte);
  text-transform: uppercase; letter-spacing: .05em; padding-bottom: 2px;
}
.planning-jour {
  background: var(--blanc); border: 1px solid var(--gris-bord); border-radius: 8px;
  min-height: 96px; padding: 5px; overflow: hidden;
}
.planning-jour.hors-mois { background: #fafbfc; opacity: .55; }
.planning-jour.aujourdhui { border-color: var(--bleu); box-shadow: 0 0 0 2px rgba(232,115,28,.18); }
.planning-numero { font-size: 12px; font-weight: 700; color: var(--gris-doux); margin-bottom: 3px; }
.planning-item {
  border-radius: 6px; padding: 3px 6px; margin-bottom: 3px; cursor: pointer;
  font-size: 11.5px; line-height: 1.25; border-left: 3px solid transparent;
  background: var(--bleu-clair); color: #7c2d12;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.planning-item:hover { filter: brightness(.97); }
.planning-item b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.planning-item-sous { color: inherit; opacity: .75; font-size: 10.5px; }
.item-chantier { border-left-color: var(--bleu); }
.item-chantier.statut-encours { background: #ffedd5; }
.item-chantier.statut-termine { background: #dcfce7; color: #14532d; border-left-color: var(--vert); }
.item-rdv { background: #e0f2fe; color: #075985; border-left-color: #0891b2; }
.planning-ligne {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--gris-bord);
}
.planning-ligne:last-child { border-bottom: none; }

/* ---------- Fiche de travaux (vue equipe / telephone) ---------- */
.fiche-travaux { max-width: 720px; }
.fiche-bloc {
  border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  padding: 14px; margin-bottom: 12px; background: var(--blanc);
}
.fiche-etiquette {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gris-doux); margin-bottom: 3px;
}
.fiche-valeur { font-size: 17px; font-weight: 700; color: #0f172a; }
.fiche-acces { background: #fffbeb; border-color: #fcd34d; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fiche-actions .btn { text-decoration: none; }
.fiche-periode {
  border-top: 1px dashed var(--gris-bord); padding-top: 10px; margin-top: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.fiche-periode:first-of-type { border-top: none; }
.journal-ligne {
  border: 1px solid var(--gris-bord); border-radius: 8px;
  padding: 10px; margin-bottom: 10px; background: #fcfcfd;
}

/* ---------- Cartes chantier (page Fiches de travaux) ---------- */
.carte-jour { border-left: 4px solid var(--bleu); }
.chantier-carte { padding: 2px 0; }
.chantier-carte + .chantier-carte { border-top: 1px solid var(--gris-bord); margin-top: 12px; padding-top: 12px; }
.chantier-acces {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px;
  padding: 6px 8px; margin-top: 8px; font-size: 13px;
}

/* ---------- Documents ---------- */
.docs-liste { display: flex; flex-direction: column; gap: 2px; }
.docs-categorie {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gris-doux); margin: 10px 0 2px;
}
.doc-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.doc-lien { display: flex; align-items: center; gap: 8px; color: #0f172a; text-decoration: none; flex: 1; min-width: 0; }
.doc-lien:hover { color: var(--bleu); }
.doc-lien > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-icone { font-size: 18px; }

/* ---------- Tableaux de statistiques ---------- */
.tableau-scroll { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tableau th, .tableau td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--gris-bord); }
.tableau th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gris-doux); font-weight: 700; white-space: nowrap;
}
.tableau td.num, .tableau th.num { text-align: right; white-space: nowrap; }
.tableau tbody tr:hover { background: var(--bleu-clair); }
.ligne-inactive { opacity: .5; }

/* ---------- Barre empilee (repartition en %) ---------- */
.barre-empilee {
  display: flex; height: 30px; border-radius: 8px; overflow: hidden;
  margin-bottom: 16px; background: var(--gris-fond);
}
.barre-part {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; min-width: 3px;
}
.stat-apporteur .stat-valeur { font-size: 20px; }
.stat-montant { font-weight: 700; color: var(--vert); margin-top: 6px; }

/* ---------- Telephone ---------- */
@media (max-width: 700px) {
  .planning-grille { gap: 3px; }
  .planning-jour { min-height: 66px; padding: 3px; }
  .planning-item { font-size: 10px; padding: 2px 4px; }
  .planning-item-sous { display: none; }
  .planning-barre { flex-direction: column; align-items: stretch; }
  .fiche-actions .btn { flex: 1 1 46%; text-align: center; }
  .planning-titre { margin-left: 0; }
}

/* =========================================================================
   Connexion, comptes et mode hors connexion
   ========================================================================= */

/* ---------- Ecran de connexion ---------- */
body.deconnecte .sidebar,
body.deconnecte .topbar,
body.deconnecte .overlay { display: none; }
body.deconnecte .contenu { margin-left: 0; padding-top: 40px; }

.connexion-carte {
  max-width: 380px; margin: 40px auto; text-align: left;
}
.connexion-logo { height: 54px; width: auto; display: block; margin: 0 auto 14px; }
.connexion-titre { font-size: 20px; text-align: center; margin-bottom: 6px; }
.connexion-carte .muted { text-align: center; }
.connexion-erreur { color: var(--rouge); font-weight: 600; font-size: 14px; margin-top: 10px; min-height: 18px; }

/* ---------- Identite et deconnexion dans le menu ---------- */
.qui-suis-je {
  color: #94a3b8; font-size: 12px; margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-bas .btn { width: 100%; margin-bottom: 6px; }

/* ---------- Bandeau hors connexion ---------- */
.bandeau-hors-ligne {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #1e293b; color: #fff; padding: 8px 14px;
  font-size: 13px; text-align: center;
}
.bandeau-hors-ligne.visible { display: block; }
.bandeau-hors-ligne.visible ~ .topbar { top: 34px; }
.hors-ligne-attente { display: block; color: #fbbf24; font-weight: 700; font-size: 12px; }
body:has(.bandeau-hors-ligne.visible) .contenu { padding-top: 46px; }
/* Le bandeau hors connexion ne doit pas recouvrir le titre d'une fenetre */
body:has(.bandeau-hors-ligne.visible) .modal-fond { padding-top: 62px; }

/* =========================================================================
   Lecture automatique des devis + etapes du chantier
   ========================================================================= */

/* ---------- Zone de depot du PDF ---------- */
.depot-zone {
  border: 2px dashed var(--gris-bord); border-radius: var(--rayon);
  padding: 32px 20px; text-align: center; cursor: pointer;
  background: var(--blanc); transition: border-color .15s, background .15s;
}
.depot-zone:hover { border-color: var(--bleu); background: var(--bleu-clair); }
.depot-zone b { display: block; margin: 8px 0 4px; font-size: 16px; }

/* ---------- Attente pendant la lecture ---------- */
.tourniquet {
  width: 34px; height: 34px; margin: 0 auto;
  border: 3px solid var(--gris-bord); border-top-color: var(--bleu);
  border-radius: 50%; animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Listes modifiables (etapes, materiel, vigilance) ---------- */
.liste-modifiable { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ligne-modifiable { display: flex; align-items: center; gap: 8px; }
.ligne-modifiable input { flex: 1; }
.poignee { color: var(--gris-doux); font-size: 18px; }

/* ---------- Etapes a cocher ---------- */
.tache-ligne {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--gris-bord);
  cursor: pointer; font-size: 15px;
}
.tache-ligne:last-child { border-bottom: none; }
.tache-ligne input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--vert); }
.tache-faite > span:nth-child(2) { text-decoration: line-through; color: var(--gris-doux); }
.taches-avancement { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.taches-barre {
  flex: 1; height: 8px; background: var(--gris-fond);
  border-radius: 999px; overflow: hidden;
}
.taches-barre > div { height: 100%; background: var(--vert); transition: width .25s; }

/* La ligne d'une etape cochee ne doit pas s'ecraser sur le telephone */
@media (max-width: 700px) {
  .tache-ligne { flex-wrap: wrap; }
  .tache-ligne .aide { flex-basis: 100%; margin-left: 30px; margin-top: 2px; }
}

/* Barre de validation toujours visible en bas de la relecture */
.barre-validation {
  position: sticky; bottom: 0; background: var(--blanc);
  border-top: 1px solid var(--gris-bord); padding: 12px 0 4px;
  margin-top: 6px; box-shadow: 0 -6px 12px rgba(15,23,42,.06);
}

/* ---------- Mise en reserve pour le terrain ---------- */
.reserve-bandeau {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; border-left: 4px solid var(--vert); margin-bottom: 14px;
}
.reserve-etat { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--gris-texte); }
@media (max-width: 700px) {
  .reserve-bandeau { flex-direction: column; align-items: stretch; }
  .reserve-bandeau .btn { width: 100%; }
}

/* Repere de version, en bas du menu */
.version-app { color: #64748b; font-size: 11px; margin-bottom: 8px; }
