/* ===== Agenda façon Google Agenda (19/10/2026) — dessiné par agenda.js =====
 * Mise en page et gestes de Google Agenda, couleurs prises dans les jetons du thème choisi (Apparence).
 * Préfixe gc- : aucune règle commune avec l'ancien agenda (theme.css habille encore .agenda-*). */
.gc, .gc-pop, .gc-dialogue-fond, .gc-snack, .gc-fab {
  --gc-bleu: #8ab4f8;
  --gc-sur-bleu: #202124;
  --gc-bleu-doux: rgba(138, 180, 248, 0.16);
  --gc-fond: var(--surface, var(--bg-panel));
  --gc-pop-fond: var(--bg-panel);
  --gc-trait: var(--trait, var(--border-soft));
  --gc-trait-fort: var(--border);
  --gc-dim: var(--text-dim);
  --gc-faible: var(--text-faint);
  --gc-survol: rgba(var(--voile-rgb, 255, 255, 255), 0.07);
  --gc-ombre: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
}
:is([data-theme="blanc"], [data-theme="sable"]) :is(.gc, .gc-pop, .gc-dialogue-fond, .gc-snack, .gc-fab) {
  --gc-bleu: #1a73e8; --gc-sur-bleu: #fff; --gc-bleu-doux: rgba(26, 115, 232, 0.1);
}

.gc { display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 520px; color: var(--text); }
.gc button { font: inherit; }
.only-gc-mobile { display: none !important; }

/* ---------- Barre du haut ---------- */
.gc-haut { display: flex; align-items: center; gap: 6px; padding: 0 4px 12px; min-width: 0; }
.gc-marque { display: flex; align-items: center; gap: 10px; width: 250px; flex-shrink: 0; font-size: 22px; color: var(--text); }
.gc-logo { display: inline-flex; }
.gc-bouton { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gc-trait-fort); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.gc-bouton:hover { background: var(--gc-survol); }
.gc-bouton.danger { color: #ea4335; }
.gc-rond { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--gc-dim); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gc-rond:hover { background: var(--gc-survol); color: var(--text); }
.gc-rond.petit { width: 28px; height: 28px; font-size: 15px; }
.gc-fleches { display: flex; margin: 0 4px; }
.gc-titre { font-size: 22px; font-weight: 400; margin: 0 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gc-espace { flex: 1; }
.gc-choix-vue { position: relative; }
.gc-chev { font-size: 10px; color: var(--gc-dim); }
.gc-menu { position: absolute; right: 0; top: 42px; z-index: 60; min-width: 190px; padding: 8px 0; border-radius: 8px; background: var(--gc-pop-fond); box-shadow: var(--gc-ombre); }
.gc-menu button { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; color: var(--text); padding: 9px 16px; font-size: 14px; cursor: pointer; text-align: left; }
.gc-menu button:hover { background: var(--gc-survol); }
.gc-menu button.on { background: var(--gc-bleu-doux); }
.gc-menu kbd { font-family: inherit; color: var(--gc-faible); font-size: 13px; }

/* ---------- Corps : menu latéral + vue ---------- */
.gc-corps { display: flex; flex: 1; min-height: 0; gap: 0; }
.gc-cote { width: 256px; flex-shrink: 0; padding: 0 16px 16px 0; overflow-y: auto; }
.gc-voile { display: none; }
.gc-vue { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--gc-fond); border: 1px solid var(--gc-trait); border-radius: 16px; overflow: hidden; }

.gc-creer { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 14px; border-radius: 16px; border: 0; background: var(--gc-pop-fond); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); margin-bottom: 18px; }
.gc-creer:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 14px 4px rgba(0, 0, 0, 0.18); }
.gc-plus { display: inline-flex; }

.gc-mini { padding: 0 4px 0 8px; }
.gc-mini-tete { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; padding: 0 0 6px 6px; }
.gc-mini-grille { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.gc-mini-js { text-align: center; font-size: 10.5px; font-weight: 500; color: var(--gc-dim); line-height: 24px; }
.gc-mini-j { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 0; background: none; color: var(--text); font-size: 11px; cursor: pointer; padding: 0; }
.gc-mini-j:hover { background: var(--gc-survol); }
.gc-mini-j.hors { color: var(--gc-faible); }
.gc-mini-j.plage { background: var(--gc-bleu-doux); border-radius: 0; width: 100%; }
.gc-mini-j.sel { background: var(--gc-bleu-doux); color: var(--gc-bleu); font-weight: 700; border-radius: 50%; width: 28px; }
.gc-mini-j.auj { background: var(--gc-bleu); color: var(--gc-sur-bleu); font-weight: 700; border-radius: 50%; width: 28px; }

.gc-agendas { margin-top: 22px; padding-left: 8px; }
.gc-agendas-titre { font-size: 14px; font-weight: 500; padding: 6px 6px 8px; }
.gc-agenda { display: flex; align-items: center; gap: 14px; padding: 6px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.gc-agenda:hover { background: var(--gc-survol); }
.gc-agenda input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 3px; border: 2px solid var(--c); background: transparent; cursor: pointer; position: relative; flex-shrink: 0; }
.gc-agenda input:checked { background: var(--c); }
.gc-agenda input:checked::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Grille horaire ---------- */
.gc-grille { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gc-tete-grille, .gc-entiers { display: flex; overflow-y: hidden; scrollbar-gutter: stable; }
.gc-fuseau { width: 64px; flex-shrink: 0; font-size: 10px; color: var(--gc-faible); text-align: right; padding: 0 8px 4px 0; align-self: flex-end; }
.gc-jts { display: grid; flex: 1; min-width: 0; }
.gc-jt { text-align: center; padding: 10px 0 4px; min-width: 0; }
.gc-jt-nom { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gc-dim); }
.gc-jt-num { display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; color: var(--text); font-size: 26px; cursor: pointer; padding: 0; }
.gc-jt-num:hover { background: var(--gc-survol); }
.gc-jt.passe .gc-jt-num { color: var(--gc-dim); }
.gc-jt.auj .gc-jt-nom { color: var(--gc-bleu); }
.gc-jt.auj .gc-jt-num { background: var(--gc-bleu); color: var(--gc-sur-bleu); }
.gc-entiers { border-bottom: 1px solid var(--gc-trait); box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.25); position: relative; z-index: 3; }
.gc-entiers-zone { display: grid; flex: 1; min-width: 0; min-height: 26px; padding: 2px 0 4px; align-content: start; }
.gc-entier-case { border-left: 1px solid var(--gc-trait); cursor: pointer; }
.gc-barre { margin: 1px 2px; height: 20px; line-height: 20px; padding: 0 8px; border-radius: 4px; background: var(--c); color: var(--t); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; position: relative; z-index: 1; min-width: 0; }
.gc-barre:hover, .gc-ev:hover { filter: brightness(1.08); }
.gc-defile { flex: 1; overflow-y: auto; display: flex; position: relative; scrollbar-gutter: stable; overscroll-behavior: contain; }
.gc-heures { width: 64px; flex-shrink: 0; }
.gc-heure { position: relative; }
.gc-heure span { position: absolute; top: -7px; right: 8px; font-size: 10px; color: var(--gc-faible); }
.gc-cols { display: grid; flex: 1; min-width: 0; }
.gc-col { position: relative; height: calc(var(--h) * 24); border-left: 1px solid var(--gc-trait); background-image: linear-gradient(to bottom, var(--gc-trait) 1px, transparent 1px); background-size: 100% var(--h); cursor: default; }
.gc-ev { position: absolute; background: var(--c); color: var(--t); border-radius: 6px; padding: 3px 7px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--gc-fond-opaque, var(--bg-panel)); user-select: none; -webkit-user-select: none; }
.gc-ev-t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev-h, .gc-ev-s { font-size: 11.5px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev.court { padding: 0 7px; display: flex; align-items: center; }
.gc-ev-l { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev-l b { font-weight: 500; }
.gc-poignee { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.gc-ev.passe, .gc-barre.passe, .gc-puce.passe, .gc-pl-ev.passe { opacity: 0.6; }
.gc-ev.passe:hover, .gc-barre.passe:hover { opacity: 0.85; }
.gc-glisse, .gc-glisse * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.gc-glisse .gc-ev { transition: none; }
.gc-fantome { position: absolute; left: 1px; right: 4px; z-index: 40; border-radius: 6px; padding: 3px 7px; background: #039be5; color: #fff; font-size: 12px; line-height: 1.3; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); overflow: hidden; pointer-events: none; }
.gc-fantome b { display: block; font-weight: 500; }
.gc-maintenant { position: absolute; left: -1px; right: 0; height: 2px; background: #ea4335; z-index: 25; pointer-events: none; }
.gc-maintenant::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ea4335; }

/* ---------- Mois ---------- */
.gc-mois { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gc-mois-tete { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gc-mois-tete div { text-align: center; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gc-dim); padding: 8px 0 2px; border-left: 1px solid var(--gc-trait); }
.gc-mois-tete div:first-child, .gc-case:first-child { border-left: 0; }
.gc-mois-grille { flex: 1; display: grid; min-height: 0; }
.gc-semaine { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--gc-trait); min-height: 0; overflow: hidden; }
.gc-semaine:first-child { border-top: 0; }
.gc-case { grid-row: 1; border-left: 1px solid var(--gc-trait); position: relative; text-align: center; padding-top: 4px; min-width: 0; }
.gc-case.cible { background: var(--gc-bleu-doux); }
.gc-case-num { border: 0; background: none; color: var(--text); font-size: 12px; font-weight: 500; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px; cursor: pointer; }
.gc-case-num:hover { background: var(--gc-survol); }
.gc-case.hors .gc-case-num { color: var(--gc-faible); }
.gc-case.auj .gc-case-num { background: var(--gc-bleu); color: var(--gc-sur-bleu); }
.gc-semaine-evs { position: absolute; left: 0; right: 0; top: 30px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; pointer-events: none; }
.gc-semaine-evs > * { pointer-events: auto; }
.gc-puce { display: flex; align-items: center; gap: 4px; margin: 0 4px; padding: 0 4px; height: 20px; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; cursor: pointer; min-width: 0; }
.gc-puce:hover { background: var(--gc-survol); }
.gc-puce i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.gc-puce-h { color: var(--gc-dim); flex-shrink: 0; }
.gc-puce-t { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.gc-plus-de { position: absolute; left: 4px; right: 4px; height: 20px; border: 0; background: none; color: var(--text); text-align: left; font-size: 12px; font-weight: 500; padding: 0 6px; border-radius: 4px; cursor: pointer; z-index: 2; }
.gc-plus-de:hover { background: var(--gc-survol); }

/* ---------- Planning ---------- */
.gc-planning { overflow-y: auto; height: 100%; padding: 6px 0 20px; }
.gc-pl-jour { display: flex; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--gc-trait); }
.gc-pl-date { display: flex; align-items: center; gap: 10px; width: 140px; flex-shrink: 0; align-self: flex-start; border: 0; background: none; color: var(--text); padding: 6px 4px; cursor: pointer; text-align: left; }
.gc-pl-num { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.gc-pl-date:hover .gc-pl-num { background: var(--gc-survol); }
.gc-pl-mj { font-size: 11px; font-weight: 500; color: var(--gc-dim); letter-spacing: 0.4px; }
.gc-pl-jour.auj .gc-pl-num { background: var(--gc-bleu); color: var(--gc-sur-bleu); }
.gc-pl-jour.auj .gc-pl-mj { color: var(--gc-bleu); }
.gc-pl-evs { flex: 1; min-width: 0; }
.gc-pl-ev { display: grid; grid-template-columns: 14px 160px minmax(0, 1fr); align-items: center; column-gap: 12px; width: 100%; border: 0; background: none; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.gc-pl-ev:hover { background: var(--gc-survol); }
.gc-pl-pt { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gc-pl-h { color: var(--gc-dim); white-space: nowrap; }
.gc-pl-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-pl-s { grid-column: 3; font-size: 12px; color: var(--gc-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-pl-vide { color: var(--gc-dim); font-size: 14px; padding: 13px 10px; }
.gc-pl-vide.grand { text-align: center; padding: 60px 20px; }

/* ---------- Fenêtres flottantes ---------- */
.gc-pop { position: fixed; z-index: 1000; width: 440px; max-width: calc(100vw - 24px); background: var(--gc-pop-fond); color: var(--text); border-radius: 16px; box-shadow: var(--gc-ombre); padding-bottom: 14px; font-size: 14px; }
.gc-pop.feuille { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 22px 22px 0 0; max-height: 82dvh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); animation: gc-monte 0.18s ease-out; }
@keyframes gc-monte { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.gc-pop-barre { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 0; }
.gc-pop-outils { display: flex; gap: 2px; }
.gc-pop-corps { padding: 0 22px 2px; }
.gc-titre-in { width: calc(100% - 36px); margin-left: 36px; font-size: 22px; border: 0; border-bottom: 1px solid var(--gc-trait-fort); background: transparent; color: var(--text); padding: 6px 0 8px; outline: none; }
.gc-titre-in:focus { border-bottom: 2px solid var(--gc-bleu); padding-bottom: 7px; }
.gc-onglets-type { margin: 10px 0 4px 36px; }
.gc-onglets-type span { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--gc-bleu-doux); color: var(--gc-bleu); font-size: 13px; font-weight: 500; }
.gc-ligne { display: flex; gap: 16px; align-items: flex-start; padding: 7px 0; line-height: 1.45; }
.gc-ico { width: 20px; text-align: center; color: var(--gc-dim); flex-shrink: 0; }
.gc-quand { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gc-pop input[type="date"], .gc-pop input[type="datetime-local"], .gc-pop select, .gc-desc-in,
.gc-dialogue input[type="date"], .gc-dialogue select, .gc-dialogue input[data-lead], .gc-dialogue textarea {
  background: var(--bg-input); border: 0; border-radius: 6px; color: var(--text); padding: 7px 9px; font: inherit; font-size: 14px; color-scheme: inherit;
}
.gc-desc-in { flex: 1; min-width: 0; }
.gc-case-j { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.gc-pop-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.gc-pop-actions.gauche { justify-content: flex-start; flex-wrap: wrap; margin-left: 36px; }
.gc-primaire { height: 36px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--gc-bleu); color: var(--gc-sur-bleu); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.gc-primaire:hover { filter: brightness(1.06); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.gc-bouton-lien { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--gc-bleu); font-weight: 500; font-size: 14px; cursor: pointer; }
.gc-bouton-lien:hover { background: var(--gc-bleu-doux); }
.gc-det-titre { display: flex; gap: 20px; align-items: flex-start; padding: 2px 0 10px; }
.gc-carre { width: 15px; height: 15px; border-radius: 4px; margin: 8px 0 0 3px; flex-shrink: 0; }
.gc-det-nom { font-size: 22px; line-height: 1.3; word-break: break-word; }
.gc-det-quand { color: var(--gc-dim); margin-top: 3px; }
.gc-det-desc { white-space: pre-wrap; word-break: break-word; }
.gc-dim { color: var(--gc-dim); }
.gc-pop a { color: var(--gc-bleu); text-decoration: none; }
.gc-changer { display: flex; gap: 8px; margin: 10px 0 0 36px; }
.gc-liste-jour { width: 260px; }
.gc-jour-pop { padding-bottom: 6px; }
.gc-jour-pop-tete { text-align: center; margin-bottom: 8px; }
.gc-jour-pop-tete span { display: block; font-size: 11px; font-weight: 500; color: var(--gc-dim); letter-spacing: 0.8px; }
.gc-jour-pop .gc-barre, .gc-jour-pop .gc-puce { margin: 2px 0; }

/* ---------- Éditeur complet ---------- */
.gc-dialogue-fond { position: fixed; inset: 0; z-index: 1001; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; }
.gc-dialogue { width: 660px; max-width: 100%; background: var(--gc-pop-fond); color: var(--text); border-radius: 18px; padding: 14px 22px 20px 14px; box-shadow: var(--gc-ombre); font-size: 14px; }
.gc-dlg-haut { display: flex; gap: 12px; align-items: center; }
.gc-dlg-titre { flex: 1; min-width: 0; font-size: 22px; border: 0; border-bottom: 1px solid var(--gc-trait-fort); background: var(--bg-input); border-radius: 6px 6px 0 0; padding: 10px 12px; color: var(--text); outline: none; }
.gc-dlg-titre:focus { border-bottom: 2px solid var(--gc-bleu); }
.gc-dlg-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 10px 48px; }
.gc-dialogue > .gc-case-j { margin-left: 48px; }
.gc-dlg-champ { display: flex; gap: 16px; align-items: center; margin: 16px 0 0 14px; }
.gc-dlg-champ.haut { align-items: flex-start; }
.gc-dlg-champ input, .gc-dlg-champ textarea { flex: 1; min-width: 0; resize: vertical; }
.gc-couleurs { display: flex; flex-wrap: wrap; gap: 9px; }
.gc-pastille { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; position: relative; padding: 0; }
.gc-pastille.on::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.gc-dlg-bas { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 0 48px; font-size: 12px; }

/* ---------- Bandeau « Annuler » et bouton + flottant ---------- */
.gc-snack { position: fixed; left: 24px; bottom: 24px; z-index: 1002; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 16px; border-radius: 6px; background: #323232; color: #fff; font-size: 14px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
.gc-snack button { border: 0; background: none; color: #8ab4f8; font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 10px; border-radius: 4px; }
.gc-snack button:hover { background: rgba(138, 180, 248, 0.12); }
.gc-fab { position: fixed; right: 18px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 50; width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--gc-pop-fond); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
#view-agenda[hidden] ~ .gc-fab { display: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .gc { height: calc(100dvh - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 430px; }
  .only-gc-mobile { display: inline-flex !important; }
  .gc-haut { gap: 2px; padding-bottom: 10px; }
  .gc-marque { display: none; }
  .gc-bouton { padding: 0 12px; height: 34px; font-size: 13px; }
  .gc-fleches { margin: 0; }
  .gc-titre { font-size: 18px; margin-left: 2px; }
  .gc-vue-btn { padding: 0 10px; }
  .gc-cote { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000; width: 290px; max-width: 86vw; padding: calc(18px + env(safe-area-inset-top)) 14px 20px; background: var(--gc-pop-fond); transform: translateX(-105%); transition: transform 0.22s ease; box-shadow: var(--gc-ombre); }
  .gc.tiroir .gc-cote { transform: none; }
  .gc.tiroir .gc-voile { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, 0.45); }
  .gc-vue { border-radius: 14px; }
  .gc-fuseau, .gc-heures { width: 46px; }
  .gc-jt-num { width: 36px; height: 36px; font-size: 20px; }
  .gc-pl-date { width: 92px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .gc-pl-jour { padding: 6px 8px; }
  .gc-pl-ev { grid-template-columns: 12px minmax(0, 1fr); padding: 8px 6px; }
  .gc-pl-h { grid-column: 2; font-size: 12px; }
  .gc-pl-t, .gc-pl-s { grid-column: 2; }
  .gc-pl-pt { grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .gc-pop input, .gc-pop select, .gc-dialogue input, .gc-dialogue select, .gc-dialogue textarea { font-size: 16px !important; }
  .gc-titre-in, .gc-dlg-titre { font-size: 20px !important; }
  .gc-dialogue-fond { padding: 0; align-items: stretch; }
  .gc-dialogue { border-radius: 0; min-height: 100%; padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)) 8px; }
  .gc-dlg-dates, .gc-dialogue > .gc-case-j, .gc-dlg-bas { margin-left: 12px; }
  .gc-dlg-champ { margin-left: 8px; }
  .gc-snack { left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .gc-puce-h { display: none; }
  .gc-puce { margin: 0 1px; padding: 0 2px; font-size: 10.5px; }
  .gc-puce i { display: none; }
  .gc-barre { font-size: 10.5px; padding: 0 4px; margin: 1px; }
  .gc-plus-de { font-size: 10.5px; padding: 0 2px; }
}

/* Le CRM et la charte donnent width: 100 % et un contour orange à tous les champs : pas dans l'agenda */
.gc-pop select, .gc-pop input[type="date"], .gc-pop input[type="datetime-local"], .gc-dialogue select, .gc-dialogue input[type="date"] { width: auto; min-width: 0; height: auto; margin: 0; }
.gc-pop input, .gc-pop select, .gc-pop textarea, .gc-dialogue input, .gc-dialogue select, .gc-dialogue textarea { box-shadow: none; outline: none; }
.gc-pop :is(input, select, textarea):focus-visible, .gc-dialogue :is(select, textarea, input[type="date"], input[data-lead]):focus-visible { outline: 2px solid var(--gc-bleu); outline-offset: 0; }
.gc-titre-in:focus, .gc-titre-in:focus-visible, .gc-dlg-titre:focus, .gc-dlg-titre:focus-visible { outline: none !important; box-shadow: none !important; }
.gc-pop input[type="checkbox"], .gc-dialogue input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--gc-bleu); }
.gc-agenda input { box-shadow: none; }
.gc-auj-num { display: none; }
@media (max-width: 760px) {
  .gc-fleches { display: none; }                  /* balayage gauche/droite à la place, comme l'appli */
  .gc-auj { width: 34px; padding: 0; justify-content: center; border-radius: 8px; border-width: 2px; height: 30px; }
  .gc-auj-txt { display: none; }
  .gc-auj-num { display: inline; font-size: 13px; font-weight: 700; }
  .gc-titre { font-size: 19px; margin-left: 8px; }
}
