/* Trameo — console de pilotage. Même charte que l'app. */
@font-face { font-family: "Barlow"; src: url(polices/Barlow-Regular.ttf); font-weight: 400; }
@font-face { font-family: "Barlow"; src: url(polices/Barlow-Medium.ttf); font-weight: 500; }
@font-face { font-family: "Barlow"; src: url(polices/Barlow-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: "Barlow"; src: url(polices/Barlow-Bold.ttf); font-weight: 700; }
@font-face { font-family: "Barlow Condensed"; src: url(polices/BarlowCondensed-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: "Barlow Condensed"; src: url(polices/BarlowCondensed-Bold.ttf); font-weight: 700; }

:root {
  --papier: #F4F2ED; --carte: #fff; --bordure: #E3DFD7; --bordure-forte: #C9C5BC;
  --encre: #14171C; --encre-claire: #23272D; --texte: #141413; --texte-2: #4A4F57; --discret: #8B9098;
  --orange: #DE5A1E; --orange-sombre: #B8430F; --vert: #007F57; --vert-clair: #3FBE8E;
  --rouge: #C22E22; --jaune: #D99A0B;
  --condense: "Barlow Condensed", "Arial Narrow", sans-serif; --corps: Barlow, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--papier); color: var(--texte); font-family: var(--corps); font-size: 15px; }
[hidden] { display: none !important; }
h1 { font-family: var(--condense); font-weight: 700; font-size: 34px; margin: 0; letter-spacing: .5px; text-transform: uppercase; }
.sous-titre { color: var(--discret); margin-top: 2px; }
.etiquette, .carte-titre { font-family: var(--condense); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--discret); }
.carte-titre { color: var(--texte); font-weight: 700; font-size: 17px; letter-spacing: 1.5px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.discret { color: var(--discret); font-family: var(--corps); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 14px; }

/* Connexion */
.ecran-connexion { min-height: 100%; }
.connexion-haut { background: var(--encre); color: #fff; padding: 64px 32px 40px; }
.marque { font-family: var(--condense); font-weight: 700; font-size: 44px; letter-spacing: 3px; }
.marque.petite { font-size: 18px; letter-spacing: 2.5px; }
.sous-marque { color: #B4B8BE; margin-top: 4px; }
.connexion-form { max-width: 420px; margin: 40px auto; padding: 0 24px; display: grid; gap: 16px; width: 100%; align-content: start; }
label { display: grid; gap: 6px; font-family: var(--condense); font-weight: 600; letter-spacing: 1.8px; font-size: 12px; text-transform: uppercase; color: var(--discret); }
input, .champ, .champ-date { font: 500 16px var(--corps); padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; color: var(--texte); }
input:focus, .champ:focus { outline: none; border-color: var(--orange); }
button { font-family: var(--corps); cursor: pointer; }
.btn-principal { font-family: var(--condense); font-weight: 700; font-size: 19px; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: var(--orange); border: 0; border-radius: 12px; min-height: 54px; }
.btn-principal:disabled { opacity: .5; }
.btn-noir { font-family: var(--condense); font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: var(--encre); border: 0; border-radius: 10px; padding: 10px 16px; }
.btn-secondaire { font-weight: 600; font-size: 15px; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 9px 14px; color: var(--texte-2); }
.lien { background: none; border: 0; color: var(--discret); text-decoration: underline; padding: 0; font-size: 13px; }
.bandeau-erreur { background: var(--rouge); color: #fff; padding: 12px 14px; border-radius: 8px; font-weight: 500; }

/* Structure */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.barre { background: var(--encre); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.barre-titre { padding: 28px 24px 20px; }
.barre nav { display: flex; flex-direction: column; }
.barre nav a { color: #B4B8BE; text-decoration: none; padding: 14px 24px; font-weight: 500; font-size: 16px; border-left: 4px solid transparent; display: flex; gap: 12px; align-items: center; }
.barre nav a.actif { color: #fff; background: var(--encre-claire); border-left-color: var(--orange); }
.ico { width: 18px; text-align: center; color: var(--discret); }
.barre nav a.actif .ico { color: #fff; }
.barre-bas { margin-top: auto; padding: 20px 24px; display: grid; gap: 10px; }
.etat-crm { border: 1px solid rgba(63,190,142,.35); background: rgba(0,127,87,.15); border-radius: 10px; padding: 10px 12px; font-family: var(--condense); font-weight: 700; letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; color: var(--vert-clair); display: flex; gap: 8px; align-items: center; }
.pastille { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pastille.verte { background: var(--vert-clair); }
.utilisateur { color: #B4B8BE; font-size: 14px; }
.contenu { padding: 28px 32px 48px; min-width: 0; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 18px 20px; }
.kpi.sombre { background: var(--encre); color: #fff; border-color: var(--encre); }
.kpi .etiquette { margin-bottom: 8px; }
.kpi.sombre .etiquette { color: #B4B8BE; }
.kpi .valeur { font-family: var(--condense); font-weight: 700; font-size: 40px; line-height: 1; }
.kpi .valeur small { font-family: var(--corps); font-weight: 600; font-size: 14px; margin-left: 6px; color: var(--vert); }
.kpi.sombre .valeur small { color: var(--orange); }
.grille-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.carte-blanche { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.map { height: 520px; border-radius: 10px; }
.carte-map.haute .map { height: calc(100vh - 200px); }
.note { color: var(--discret); font-size: 13px; margin: 14px 0 0; }

/* Liste commerciaux */
.commercial { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bordure); cursor: pointer; }
.commercial:last-child { border-bottom: 0; }
.commercial.actif { background: var(--papier); margin: 0 -12px; padding: 12px; border-radius: 10px; }
.initiales { width: 44px; height: 44px; border-radius: 50%; background: var(--encre-claire); color: #fff; font-family: var(--condense); font-weight: 700; display: grid; place-items: center; font-size: 15px; letter-spacing: 1px; }
.commercial .nom { font-weight: 700; font-size: 17px; }
.commercial .detail { color: var(--discret); font-size: 13px; }
.chiffres { display: flex; gap: 14px; }
.chiffre { text-align: right; }
.chiffre b { display: block; font-family: var(--condense); font-weight: 700; font-size: 22px; line-height: 1; }
.chiffre span { font-family: var(--condense); font-weight: 600; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--discret); }
.badge { font-family: var(--condense); font-weight: 700; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; border-radius: 6px; padding: 4px 8px; }
.badge.vert { background: var(--vert); } .badge.orange { background: var(--orange); } .badge.gris { background: var(--bordure-forte); color: var(--texte); }
.badge.rouge { background: var(--rouge); } .badge.jaune { background: var(--jaune); } .badge.noir { background: var(--encre); }
.tournees-detail { grid-column: 1 / -1; font-size: 13px; color: var(--texte-2); display: grid; gap: 4px; padding-left: 56px; }

/* Table semaine */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { font-family: var(--condense); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--discret); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bordure); }
td { padding: 10px; border-bottom: 1px solid var(--bordure); font-variant-numeric: tabular-nums; vertical-align: top; }
td.nom { font-weight: 700; }
td .mini { display: block; color: var(--discret); font-size: 12px; }
tr.total td { font-weight: 700; background: var(--papier); }

/* Prospects */
.liste-prospects { max-height: calc(100vh - 220px); overflow: auto; }
.prospect { padding: 12px 4px; border-bottom: 1px solid var(--bordure); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.prospect.actif { background: var(--papier); }
.prospect .nom { font-weight: 700; font-size: 16px; }
.prospect .adresse { color: var(--discret); font-size: 13px; }
.fiche h2 { font-family: var(--condense); font-weight: 700; font-size: 28px; margin: 0 0 4px; text-transform: uppercase; }
.fiche .section { margin-top: 18px; }
.fiche .ligne { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bordure); }
.fiche .ligne b { text-align: right; }
.fiche .points li { margin: 4px 0; }
.fiche a { color: var(--orange-sombre); }
.puce { font-family: var(--condense); font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; background: #fff; border: 1px solid var(--bordure); border-radius: 999px; padding: 9px 16px; color: var(--texte); }
.puce.actif { background: var(--encre); color: #fff; border-color: var(--encre); }

/* Leaflet habillage */
.leaflet-container { font-family: var(--corps); }
.pastille-carte { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.marqueur-position { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(222,90,30,.35); }
.etiquette-rue { background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .barre { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .barre-titre { padding: 14px 16px; }
  .barre nav { flex-direction: row; overflow-x: auto; flex: 1; }
  .barre nav a { padding: 12px 14px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .barre nav a.actif { border-bottom-color: var(--orange); }
  .barre-bas { display: none; }
  .contenu { padding: 16px; }
  .grille-2 { grid-template-columns: 1fr; }
  .map { height: 360px; }
  h1 { font-size: 26px; }
}


/* Pilotage : RDV du jour, comptes-rendus en attente, silence radio */
.commercial .rdv-jour { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.commercial .rdv-jour span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #EAF5F0; color: var(--vert); font-weight: 600; }
.commercial .rdv-jour span.honore { background: var(--vert); color: #fff; }
.commercial .attente { font-size: 12px; color: var(--orange); font-weight: 600; margin-top: 4px; }
.badge.alerte { background: var(--rouge); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.liste-cr .cr { padding: 14px 0; border-bottom: 1px solid var(--bordure); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.liste-cr .cr .titre { font-weight: 700; font-size: 16px; }
.liste-cr .cr .meta { color: var(--discret); font-size: 13px; margin: 2px 0 6px; }
.liste-cr .cr .synthese { font-size: 14px; line-height: 1.45; max-width: 820px; }
.liste-cr .cr .action { font-size: 13px; color: var(--orange); font-weight: 600; margin-top: 4px; }
.liste-cr .badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.table-scroll td.chaud { color: var(--vert); font-weight: 700; }

/* ---- sélecteur d'équipe (barre) ---- */
.selecteur { padding: 4px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.selecteur-titre { font-family: var(--condense); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--discret); padding: 0 8px 6px; }
.selecteur-liste { display: flex; flex-direction: column; gap: 2px; }
.selecteur-liste button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #B4B8BE; text-align: left; padding: 7px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.selecteur-liste button:hover { background: rgba(255,255,255,.06); }
.selecteur-liste button.actif { background: var(--orange); color: #fff; }
.selecteur-liste .rond { width: 22px; height: 22px; border-radius: 50%; font-family: var(--condense); font-weight: 700; font-size: 10px; letter-spacing: .5px; display: grid; place-items: center; color: #fff; flex: none; }
.selecteur-liste button.actif .rond { background: rgba(255,255,255,.25) !important; }

/* ---- objectifs & secteurs ---- */
.btn-secondaire.petit, .btn-noir.petit { font-size: 13px; padding: 6px 10px; letter-spacing: .8px; }
.carte-titre .actions { gap: 6px; }
.map.dessin { cursor: crosshair; }
.liste-secteurs { margin-top: 12px; display: grid; gap: 6px; }
.secteur { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--bordure); cursor: pointer; }
.secteur:last-child { border-bottom: 0; }
.secteur .pastille-secteur { width: 14px; height: 14px; border-radius: 4px; }
.secteur .nom { font-weight: 700; }
.secteur .detail { color: var(--discret); font-size: 12px; }
.secteur .actions button { font-size: 12px; }
.liste-objectifs { display: grid; gap: 12px; }
.objectif { border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px; border-left: 5px solid var(--bordure-forte); cursor: pointer; }
.objectif:hover { background: var(--papier); }
.objectif .tete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.objectif .nom { font-weight: 700; font-size: 16px; }
.objectif .secteur-nom { color: var(--discret); font-size: 13px; }
.objectif .consigne { font-size: 13px; color: var(--texte-2); margin-top: 6px; font-style: italic; }
.barres { display: grid; gap: 6px; margin-top: 10px; }
.barre-obj { display: grid; grid-template-columns: 74px 1fr 84px; gap: 10px; align-items: center; font-size: 13px; }
.barre-obj .etiquette { font-size: 11px; letter-spacing: 1.2px; }
.barre-obj .jauge { height: 10px; background: var(--papier); border: 1px solid var(--bordure); border-radius: 999px; position: relative; overflow: hidden; }
.barre-obj .jauge .fait { position: absolute; left: 0; top: 0; bottom: 0; background: var(--vert); border-radius: 999px; }
.barre-obj .jauge .attendu { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--encre); }
.barre-obj .chiffres-obj { text-align: right; font-weight: 700; font-family: var(--condense); font-size: 16px; }
.barre-obj .chiffres-obj small { font-family: var(--corps); font-weight: 500; color: var(--discret); font-size: 11px; }
.badge.etat-dans_le_rythme { background: var(--vert); } .badge.etat-en_retard { background: var(--rouge); } .badge.etat-atteint { background: var(--encre); }
.badge.etat-a_venir, .badge.etat-libre { background: var(--bordure-forte); color: var(--texte); } .badge.etat-termine { background: var(--jaune); }
.objectif.etat-en_retard { border-left-color: var(--rouge); } .objectif.etat-dans_le_rythme { border-left-color: var(--vert); } .objectif.etat-atteint { border-left-color: var(--encre); }
.commercial .objectif-jour { font-size: 12px; margin-top: 4px; color: var(--texte-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.commercial .objectif-jour .mini-jauge { width: 70px; height: 6px; background: var(--papier); border: 1px solid var(--bordure); border-radius: 999px; overflow: hidden; }
.commercial .objectif-jour .mini-jauge i { display: block; height: 100%; background: var(--vert); }

/* ---- dialogues ---- */
.dialogue { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); box-sizing: border-box; }
.dialogue::backdrop { background: rgba(20,23,28,.55); }
.dialogue form { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dialogue form > * { min-width: 0; }
.dialogue h2 { font-family: var(--condense); font-weight: 700; font-size: 24px; letter-spacing: 1.5px; margin: 0 0 4px; }
.dialogue label { display: grid; gap: 4px; font-family: var(--condense); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--discret); }
.dialogue input, .dialogue select, .dialogue textarea { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-family: var(--corps); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--texte); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; background: #fff; }
.dialogue .deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dialogue .trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dialogue-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.btn-principal.compact { min-height: 44px; font-size: 16px; padding: 0 18px; }
.lien.rouge { color: var(--rouge); }
.couleurs { display: flex; gap: 8px; }
.couleurs button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.couleurs button.actif { border-color: var(--encre); }
.ciblage { display: grid; gap: 8px; }
.ciblage .groupe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ciblage .groupe .etiquette { font-size: 11px; width: 80px; flex: none; }
.ciblage .groupe { min-width: 0; }
.ciblage .puce { font-size: 12px; padding: 5px 10px; letter-spacing: .8px; }

/* ---- objectifs : par commercial ---- */
.segment { display: inline-flex; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 3px; gap: 2px; }
.segment button { font-family: var(--condense); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; background: none; border: 0; border-radius: 8px; padding: 7px 14px; color: var(--texte-2); cursor: pointer; }
.segment button.actif { background: var(--encre); color: #fff; }
.aide-dessin { background: var(--encre); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.commercial-obj { border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.commercial-obj.libre { background: var(--papier); border-style: dashed; }
.commercial-obj .tete { display: flex; align-items: center; gap: 12px; }
.commercial-obj .tete .nom { font-weight: 700; font-size: 17px; flex: 1; }
.commercial-obj .tete .initiales { width: 36px; height: 36px; font-size: 13px; }
.commercial-obj .libre-texte { color: var(--discret); font-size: 14px; }
.objectif-ligne { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; border-left: 4px solid var(--bordure-forte); padding: 8px 12px; background: #fff; border-radius: 0 10px 10px 0; cursor: pointer; }
.objectif-ligne:hover { background: var(--papier); }
.objectif-ligne .quoi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.objectif-ligne .quoi .quand { font-family: var(--condense); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.objectif-ligne .quoi .secteur-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.objectif-ligne .quoi .secteur-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.objectif-ligne .consigne { font-size: 13px; color: var(--texte-2); font-style: italic; }
.objectif-ligne .barres { margin-top: 6px; }
.objectif-ligne.etat-en_retard { border-left-color: var(--rouge); } .objectif-ligne.etat-dans_le_rythme { border-left-color: var(--vert); } .objectif-ligne.etat-atteint { border-left-color: var(--encre); }

/* ---- recherche de lieu ---- */
.recherche-lieu { display: flex; gap: 8px; margin-bottom: 8px; }
.recherche-lieu input { flex: 1; min-width: 0; }
.lieu-resultats { border: 1px solid var(--bordure); border-radius: 10px; margin-bottom: 8px; max-height: 220px; overflow: auto; }
.lieu { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--bordure); cursor: pointer; font-size: 14px; }
.lieu:last-child { border-bottom: 0; }
.lieu:hover, .lieu.actif { background: var(--papier); }
.lieu .badge { flex: none; }
.lieu .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.genre-zone { background: var(--orange); } .badge.genre-commune { background: var(--encre); } .badge.genre-rue { background: #2F6DB5; } .badge.genre-adresse, .badge.genre-lieu { background: var(--bordure-forte); color: var(--texte); }
.proposition { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--encre); color: #fff; border-radius: 10px; padding: 10px 14px; margin-top: 8px; font-size: 14px; }
.proposition span { flex: 1; min-width: 200px; }

/* ---- réglages : courriel de confirmation ---- */
.formulaire { display: grid; gap: 12px; }
.formulaire.compact { gap: 6px; }
.formulaire label { display: grid; gap: 4px; font-family: var(--condense); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--discret); }
.formulaire label.ligne-case { display: flex; align-items: center; gap: 10px; font-family: var(--corps); font-weight: 500; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--texte); }
.formulaire input, .formulaire textarea, .formulaire select { font: inherit; font-family: var(--corps); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--texte); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; box-sizing: border-box; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formulaire .trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.formulaire .tel-commercial { display: grid; grid-template-columns: 1fr 200px; gap: 10px; align-items: center; font-size: 14px; }
.bandeau-info { background: #EAF5F0; color: var(--vert); padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.apercu-courriel { width: 100%; height: calc(100vh - 220px); border: 1px solid var(--bordure); border-radius: 10px; background: #F4F2ED; }
.commercial .rdv-jour span.confirme::after { content: " ✉"; color: var(--vert); }
.commercial .rdv-jour span.sans-email::after { content: " ✉ ?"; color: var(--rouge); }

/* Réglages : un bloc par type de rendez-vous */
.types-rdv { display: grid; gap: 8px; }
.type-rdv { border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 12px; background: #FAFAFC; }
.type-rdv.eteint { opacity: .55; }
.type-rdv .entete { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.type-rdv .entete b { letter-spacing: .5px; }
.type-rdv .entete .discret { flex: 1; }
.type-rdv .entete .badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #EEF2FF; color: #3730A3; }
.type-rdv .entete .badge.absent { background: #FEF3C7; color: #92400E; }
.type-rdv .corps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.type-rdv .corps label { font-size: 12px; color: #6B7280; display: grid; gap: 3px; }
.type-rdv .corps input, .type-rdv .corps textarea { font-size: 13px; }
.type-rdv .corps .large { grid-column: 1 / -1; }
