/* Kynoria — thème « Luxe noir & or ». Chargé après app.css : il remplace les couleurs, polices et surfaces.
   Aucun statut n'est communiqué par la seule couleur : les libellés et icônes de app.css restent en place. */
:root {
  color-scheme: dark;
  --gold: #c9a24a; --gold-2: #e3c06f; --gold-3: #8a6420; --gold-soft: #17120a;
  --gold-grad: linear-gradient(135deg, #8a6420 0%, #e9cb7e 42%, #b88a30 72%, #f1d78f 100%);
  --gold-line: rgba(201, 162, 74, .42); --gold-line-2: rgba(201, 162, 74, .2);
  --bg: #030303; --surface: #0a0a0a; --surface-2: #111111; --line: rgba(201, 162, 74, .24);
  --text: #f6f0e2; --muted: #b3a88f;
  --navy: #030303; --navy-2: #121212; --navy-3: #e3c06f;
  --ok: #7ee0a8; --ok-bg: rgba(31, 107, 66, .28); --warn: #f3cb6a; --warn-bg: rgba(160, 108, 10, .26);
  --urgent: #ffa06a; --urgent-bg: rgba(190, 74, 20, .26); --crit: #ff8197; --crit-bg: rgba(170, 20, 46, .3);
  --info: #ded7c6; --info-bg: rgba(255, 255, 255, .07);
  --radius: 18px; --shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 26px rgba(201, 162, 74, .07);
  --display: "Playfair Display", Didot, "Bodoni 72", "Hoefler Text", Georgia, serif;
  --font: "Cormorant Garamond", "Playfair Display", Baskerville, "Hoefler Text", Georgia, serif;
  --sidebar: 268px;
}
html { background: #000; }
body { font-family: var(--font); font-size: 17.5px; font-weight: 500; background: radial-gradient(1400px 600px at 85% -10%, rgba(201, 162, 74, .07), transparent 60%), #030303; color: var(--text); }
h1, h2, h3, .brand .name, .kpi .n { font-family: var(--display); }
button, input, select, textarea { font-family: inherit; }
a { color: var(--gold-2); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { color: #f6dc9a; }
::selection { background: rgba(201, 162, 74, .35); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.muted, .small.muted { color: var(--muted); }
.ico { flex: none; color: var(--gold-2); }

/* ---------- Menu latéral ---------- */
.sidebar { background: linear-gradient(180deg, #040404 0%, #070604 60%, #0d0a04 100%); color: #efe6d2; padding: 22px 14px 18px; gap: 3px; box-shadow: inset -1px 0 0 var(--gold-line), 8px 0 36px rgba(201, 162, 74, .07); position: sticky; overflow-x: hidden; }
.sidebar::after { content: ""; position: absolute; left: -60%; right: -60%; bottom: -80px; height: 240px; pointer-events: none; background: radial-gradient(closest-side, rgba(227, 192, 111, .32), rgba(201, 162, 74, .1) 55%, transparent 75%); }
.sidebar > * { position: relative; z-index: 1; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px 14px; text-decoration: none; color: inherit; }
.brand .ram { width: 112px; height: auto; display: block; }
.brand .name { font-size: 1.55rem; font-weight: 500; letter-spacing: .16em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.brand .spark { width: 100%; height: 12px; display: block; background: linear-gradient(90deg, transparent, var(--gold-line) 30%, #f6dc9a 50%, var(--gold-line) 70%, transparent) center / 100% 1px no-repeat; position: relative; }
.brand .spark::after { content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); color: #f6dc9a; font-size: .8rem; background: #060504; padding: 0 6px; }
.brand.inline { flex-direction: row; gap: 10px; padding: 0; }
.brand.inline .ram { width: 46px; } .brand.inline .name { font-size: 1.25rem; }
.nav-group { font-size: 0; height: 1px; padding: 0; margin: 9px 14px; background: linear-gradient(90deg, transparent, var(--gold-line-2), transparent); }
.nav a { color: #efe6d2; font-family: var(--font); font-size: 1.08rem; font-weight: 600; padding: 9px 14px; border-radius: 14px; border: 1px solid transparent; min-height: 42px; gap: 14px; letter-spacing: .01em; }
.nav a:hover { background: rgba(201, 162, 74, .09); color: #fff; }
.nav a[aria-current=page] { color: #fff; background: linear-gradient(180deg, rgba(227, 192, 111, .26), rgba(201, 162, 74, .08)); border-color: var(--gold-2); box-shadow: 0 0 18px rgba(201, 162, 74, .28), inset 0 1px 0 rgba(255, 232, 170, .28); }
.nav a .ico { color: var(--gold-2); } .nav a[aria-current=page] .ico { color: #f8e2a6; }
.nav .count { background: rgba(0, 0, 0, .55); color: var(--gold-2); border: 1px solid var(--gold-2); min-width: 24px; text-align: center; padding: 0 7px; font-family: var(--display); font-size: .78rem; }
.side-user { padding: 6px 14px 2px; color: var(--muted); font-size: .95rem; font-style: italic; }

/* ---------- Barre du haut ---------- */
.main { position: relative; background: transparent; }
.main::before { content: ""; position: absolute; top: 78px; right: 0; width: min(820px, 70%); height: 150px; background: url(/img/swirl.png) right top / cover no-repeat; opacity: .95; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.topbar { background: #020202; border-bottom: 1px solid var(--gold-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 6px 26px rgba(201, 162, 74, .06); padding: 14px 28px; gap: 16px; z-index: 30; }
.tagline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tagline .bar { width: 3px; height: 26px; background: var(--gold-grad); border-radius: 2px; }
.tagline .t { font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em; color: #f6efe0; white-space: nowrap; }
.tagline .sep { width: 1px; height: 26px; background: var(--gold-line); }
.tagline .s { display: flex; align-items: center; gap: 8px; font-style: italic; color: #efe6d2; font-size: 1.15rem; white-space: nowrap; }
.tagline .s .ico { width: 18px; height: 18px; }
.search-btn { border: 1px solid var(--gold-line); background: #060606; border-radius: 999px; color: var(--muted); padding: 10px 18px; margin-left: auto; min-width: 280px; max-width: 520px; flex: 1; font-size: 1rem; }
.search-btn .ico { color: var(--gold-2); width: 20px; height: 20px; }
.search-btn:hover { border-color: var(--gold-2); box-shadow: 0 0 16px rgba(201, 162, 74, .16); }
.kbd { border: 1px solid var(--gold-line-2); color: var(--muted); border-radius: 6px; padding: 0 6px; font-size: .75rem; }
.icon-btn { border: 1px solid transparent; background: transparent; color: var(--gold-2); width: 46px; height: 46px; border-radius: 50%; }
.icon-btn:hover { border-color: var(--gold-line); }
.icon-btn .dot { background: var(--gold-grad); color: #1a1204; top: 3px; right: 2px; font-family: var(--display); font-weight: 700; border: 0; padding: 1px 6px; }
.avatar { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); text-decoration: none; }
.avatar .pic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2b2210, #0b0905); border: 1.5px solid var(--gold-2); box-shadow: 0 0 14px rgba(201, 162, 74, .3); font-family: var(--display); font-size: 1.15rem; color: #f6dc9a; }
.content { position: relative; z-index: 1; padding: 30px 32px; max-width: 1500px; }

/* ---------- Titres de page ---------- */
.page-head { margin-bottom: 24px; }
.page-head h1, h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: .01em; color: #fbf6ea; }
.page-head > div:first-child { border-left: 3px solid transparent; border-image: var(--gold-grad) 1; padding-left: 20px; }
.page-head p.muted { font-style: italic; font-size: 1.3rem; color: #e9dfc8; margin: 2px 0 0; }
h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: .01em; color: #fbf6ea; }
h3 { font-family: var(--display); font-weight: 500; }

/* ---------- Cartes ---------- */
.card { background: linear-gradient(180deg, #0e0d0b 0%, #070707 100%); border: 1px solid var(--gold-line); border-radius: 20px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 30px rgba(201, 162, 74, .07), inset 0 1px 0 rgba(255, 226, 160, .1); padding: 22px; position: relative; }
.card.flat { box-shadow: inset 0 1px 0 rgba(255, 226, 160, .06); }
.card h2 { display: flex; align-items: center; gap: 12px; }
.card h2 .ico { width: 26px; height: 26px; }
.card .title-italic { font-style: italic; }
.kpi { flex-direction: row; align-items: center; gap: 16px; padding: 22px 24px; min-height: 108px; }
.kpi .ico { width: 46px; height: 46px; stroke-width: 1.25; color: #e8c978; filter: drop-shadow(0 0 8px rgba(227, 192, 111, .35)); }
.kpi .txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.kpi .n { font-size: 2.7rem; font-weight: 500; line-height: 1; color: #fbf6ea; letter-spacing: 0; }
.kpi .l { color: #e9dfc8; font-size: 1.1rem; }
.kpi.link:hover { border-color: var(--gold-2); box-shadow: 0 0 30px rgba(201, 162, 74, .22); color: inherit; }
.card-human { border: 1.5px solid var(--gold-2); background: linear-gradient(180deg, #17120a, #0a0907); box-shadow: 0 0 24px rgba(201, 162, 74, .18); }
.card-human .tag { color: var(--gold-2); }
.alert { background: var(--info-bg); color: var(--text); border: 1px solid var(--gold-line-2); border-radius: 14px; }
.alert.ok { background: linear-gradient(180deg, rgba(31, 107, 66, .45), rgba(22, 80, 50, .35)); border-color: #2f8a58; color: #e3f6ea; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 1.1rem; }
.alert.ok .ico { color: #6fe0a0; width: 30px; height: 30px; }
.alert.err { border-color: var(--crit); } .alert.warn { border-color: var(--warn); }

/* ---------- Boutons ---------- */
.btn { border: 1px solid var(--gold-2); background: rgba(0, 0, 0, .35); color: #f6dc9a; border-radius: 12px; font-family: var(--display); font-weight: 500; letter-spacing: .02em; padding: 10px 20px; }
.btn:hover { background: rgba(201, 162, 74, .14); box-shadow: 0 0 18px rgba(201, 162, 74, .25); color: #fff1c8; }
.btn.primary, .btn.gold, .bigbtn { background: var(--gold-grad); color: #1a1204; border-color: #f1d78f; font-weight: 700; box-shadow: 0 0 22px rgba(201, 162, 74, .28), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover, .btn.gold:hover, .bigbtn:hover { background: var(--gold-grad); filter: brightness(1.08); color: #1a1204; box-shadow: 0 0 30px rgba(227, 192, 111, .45); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--gold-2); }
.btn.danger { color: var(--crit); border-color: var(--crit); background: transparent; }
.btn[disabled] { opacity: .45; }
.chip { background: #070707; border-color: var(--gold-line-2); color: #efe6d2; font-family: var(--font); }
.chip[aria-pressed=true] { background: var(--gold-grad); color: #1a1204; border-color: #f1d78f; }
.tab { color: var(--muted); font-family: var(--display); } .tab[aria-selected=true] { color: var(--gold-2); border-bottom-color: var(--gold-2); }
.tabs { border-bottom-color: var(--gold-line-2); }

/* ---------- Formulaires & tableaux ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], select, textarea { background: #060606; color: var(--text); border: 1px solid var(--gold-line); border-radius: 12px; font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); outline: none; }
input::placeholder, textarea::placeholder { color: #7d745f; }
select option { background: #0a0a0a; color: var(--text); }
label { color: #efe6d2; }
table { color: var(--text); } th, td { border-bottom: 1px solid var(--gold-line-2); }
th { background: #0d0c09; color: var(--gold-2); font-family: var(--display); letter-spacing: .06em; font-weight: 500; }
tr:hover td { background: rgba(201, 162, 74, .04); }
.badge { background: rgba(255, 255, 255, .07); color: var(--text); font-family: var(--font); font-weight: 700; }
.badge.gold { background: rgba(201, 162, 74, .18); color: var(--gold-2); }

/* ---------- Pastilles, fenêtres, toasts ---------- */
.overlay { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.drawer, .dialog, .modal, .palette { background: linear-gradient(180deg, #0e0d0b, #070707); color: var(--text); border: 1px solid var(--gold-line); box-shadow: 0 0 50px rgba(201, 162, 74, .14); }
.toast { background: #0a0a0a; border: 1px solid var(--gold-line); border-left: 5px solid var(--gold-2); color: var(--text); }
.toast.err { background: #1c0910; border-left-color: var(--crit); }
.empty { color: var(--muted); } .empty .big { color: var(--gold-2); }
.tl-item::before { background: #000; border-color: var(--gold-2); }
.timeline { border-left-color: var(--gold-line-2); }
.cal-ev { background: linear-gradient(135deg, #8a6420, #c9a24a); color: #1a1204; font-weight: 700; }
.bubble { background: #14110a; color: var(--text); } .bubble.me { background: var(--gold-grad); color: #1a1204; } .bubble.ai { background: #17120a; border: 1px solid var(--gold-line-2); }
.mock-tag { background: rgba(201, 162, 74, .16); color: var(--gold-2); }

/* ---------- Bloc « Aujourd'hui » vide et « Bilan & Activité » ---------- */
.timeline { max-height: 560px; overflow-y: auto; padding-right: 8px; scrollbar-color: var(--gold-3) transparent; }
.today-empty { text-align: center; padding: 26px 10px 18px; }
.today-empty .ico { width: 54px; height: 54px; stroke-width: 1.1; color: #f2d48a; filter: drop-shadow(0 0 12px rgba(242, 212, 138, .6)); }
.today-empty h3 { font-style: italic; font-size: 1.5rem; margin: 8px 0 2px; color: #f2d48a; }
.today-empty p { margin: 0; color: #efe6d2; }
.bilan { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .7fr); gap: 0; align-items: stretch; padding: 0; overflow: hidden; }
.bilan > section { padding: 22px 26px; }
.bilan .line-chart { width: 100%; height: auto; display: block; }
.bilan .b-list { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.bilan .b-list li { list-style: none; display: flex; align-items: center; gap: 14px; font-size: 1.2rem; }
.bilan .b-list { padding-left: 8px; margin: 0; } .bilan .b-list .ico { width: 30px; height: 30px; color: #e3c06f; }
.bilan .b-logo { border-left: 1px solid var(--gold-line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; background: radial-gradient(closest-side, rgba(201, 162, 74, .1), transparent); }
.bilan .b-logo .ram { width: 150px; }
.bilan .b-logo .name { font-family: var(--display); font-size: 1.7rem; letter-spacing: .14em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bilan .b-logo em { font-size: 1.2rem; color: #efe6d2; }
.line-chart .grid { stroke: rgba(201, 162, 74, .14); } .line-chart text { fill: #b3a88f; font-family: var(--font); font-size: 12px; }
.line-chart .area { fill: url(#kgArea); } .line-chart .ln { fill: none; stroke: url(#kgLine); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(227, 192, 111, .6)); }
.line-chart .pt { fill: #fff1c8; stroke: #e3c06f; stroke-width: 2; }

/* ---------- Pages publiques (accueil, connexion) ---------- */
.pub-nav { background: #020202; border-bottom: 1px solid var(--gold-line); }
.pub-nav a:not(.btn) { color: #efe6d2; } .pub-nav .brand { color: inherit; }
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 74px); display: flex; align-items: center; background: radial-gradient(1100px 520px at 80% 38%, rgba(201, 162, 74, .16), transparent 70%), radial-gradient(700px 400px at 10% 100%, rgba(201, 162, 74, .08), transparent 70%), #020202; color: #fff; border-bottom: 0; }
.hero > div { position: relative; z-index: 1; width: 100%; }
.hero::before { content: ""; position: absolute; z-index: 0; left: 28%; right: 0; top: 50%; height: 62%; transform: translateY(-62%); background: url(/img/swirl-hero.png) right center / 100% 100% no-repeat; opacity: .95; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 45%, #000 60%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 45%, #000 60%, transparent 100%); mask-composite: intersect; }
@media (max-width: 760px) { .hero { min-height: auto; } .hero::before { left: 0; height: 40%; top: 0; transform: none; opacity: .5; } }
.hero h1 { font-weight: 500; max-width: 22ch; text-wrap: balance; } .hero p { color: #e4dac4; }
footer.pub { background: #020202; color: var(--muted); border-top: 1px solid var(--gold-line); }
.auth-card, .card.auth { background: linear-gradient(180deg, #0e0d0b, #070707); }
.skip:focus { background: #000; color: var(--gold-2); }

/* ---------- Espace prestataire (mobile) ---------- */
.prov-top { background: #020202; border-bottom: 1px solid var(--gold-line); } .prov-top .brand { color: inherit; padding: 0; } .prov-top .brand .mark { display: none; }

@media (max-width: 1100px) { .bilan { grid-template-columns: 1fr; } .bilan .b-logo { border-left: 0; border-top: 1px solid var(--gold-line); } .tagline .s, .tagline .sep { display: none; } }
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 8px; } .tagline .t { display: none; } .tagline .bar { display: none; }
  .search-btn { min-width: 0; margin-left: 0; } .content { padding: 18px 16px; } .main::before { top: 66px; opacity: .6; }
  .kpi { min-height: 90px; padding: 16px; } .kpi .n { font-size: 2.1rem; } .kpi .ico { width: 38px; height: 38px; }
  .sidebar { background: #050403; }
}
@media (max-width: 760px) { .pub-nav { flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; } .pub-nav nav { order: 3; width: 100%; flex-wrap: wrap; gap: 6px 14px; } .pub-nav .btn { padding: 8px 14px; } }
.tagline { flex-shrink: 0; }
.search-btn { min-width: 150px; white-space: nowrap; overflow: hidden; }
.search-btn > span, .search-btn .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1500px) { .tagline .s, .tagline .sep { display: none; } }
/* ---- Calendrier ---- */
.cal-bar { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.cal-title { margin: 0 8px; min-width: 220px; text-align: center; font-family: var(--display); font-weight: 500; font-size: 1.7rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cal-nav { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.cal-bar .btn:last-child { margin-left: auto; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #0c0c0c, #050505); box-shadow: 0 0 34px rgba(201, 162, 74, .06); }
.cal-dow { padding: 12px 8px; text-align: center; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); border-bottom: 1px solid var(--gold-line); background: rgba(201, 162, 74, .06); }
.cal-day { min-height: 118px; padding: 8px; border-right: 1px solid rgba(201, 162, 74, .16); border-bottom: 1px solid rgba(201, 162, 74, .16); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-month.week .cal-day { min-height: 340px; }
.cal-month > .cal-day:nth-child(7n + 8) { border-right: 0; }
.cal-day.is-other { opacity: .38; }
.cal-day:hover { background: rgba(201, 162, 74, .05); }
.cal-day.is-today { background: radial-gradient(120% 90% at 50% 0%, rgba(201, 162, 74, .2), rgba(201, 162, 74, .04)); box-shadow: inset 0 0 0 1px var(--gold-2); }
.cal-num { align-self: flex-start; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; border: 0; background: transparent; color: #efe6d2; font-family: var(--display); font-size: 1.1rem; cursor: pointer; }
.cal-num:hover { background: rgba(201, 162, 74, .2); }
.is-today .cal-num { background: var(--gold-grad); color: #1a1204; font-weight: 700; }
.cal-items { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 3px 8px; font-size: .78rem; font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal-ev.in { background: linear-gradient(135deg, #8a6420, #d9b45c); color: #1a1204; font-weight: 700; }
.cal-ev.out { background: transparent; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.cal-ev.stay { background: rgba(201, 162, 74, .16); color: #efe6d2; }
.cal-ev.cancelled { opacity: .5; text-decoration: line-through; }
.cal-prop-name { display: block; font-weight: 400; font-size: .72rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.cal-task { font-size: .74rem; color: var(--muted); padding: 1px 8px; border-left: 2px solid var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-task.big { font-size: .95rem; color: #efe6d2; padding: 10px 14px; white-space: normal; }
.cal-more { background: none; border: 0; color: var(--gold-2); font-size: .74rem; text-align: left; cursor: pointer; padding: 0 8px; font-family: inherit; }
.cal-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-style: italic; text-align: center; }
.cal-note .ico { color: var(--gold-2); }
.cal-note a { color: var(--gold-2); }
.cal-dayview { display: flex; flex-direction: column; gap: 10px; }
.cal-dayview .cal-ev { padding: 12px 14px; font-size: .95rem; }
.cal .cal-head { color: var(--gold-2); }
@media (max-width: 760px) { .cal-day { min-height: 76px; padding: 4px; } .cal-month.week .cal-day { min-height: 200px; } .cal-ev { font-size: .66rem; padding: 2px 4px; } .cal-dow { font-size: .62rem; letter-spacing: .05em; padding: 8px 2px; } .cal-title { font-size: 1.3rem; min-width: 0; } .cal-task { display: none; } .cal-month.week .cal-task { display: block; } }
/* Mobile : le menu latéral est un tiroir caché (sinon il occupe tout le 1er écran) */
@media (max-width: 960px) {
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw); z-index: 50; transform: translateX(-105%); transition: transform .22s ease; }
  .app.open .sidebar { transform: none; }
  .app { display: block; }
  .main::before { top: 64px; opacity: .6; }
}
@media (max-width: 760px) { .topbar .search-btn { min-width: 0; flex: 1 1 60px; padding: 10px 12px; } .topbar .btn { white-space: nowrap; padding: 9px 12px; font-size: .95rem; } .topbar .avatar { flex-shrink: 0; } }
/* Écrans de téléphone : respecter la zone de l'heure/encoche et garder l'en-tête compact */
.pub-nav { padding-top: max(16px, env(safe-area-inset-top)); }
.topbar { padding-top: max(14px, env(safe-area-inset-top)); }
@media (max-width: 760px) {
  .pub-nav { padding: max(10px, env(safe-area-inset-top)) 14px 8px; gap: 8px 10px; position: sticky; }
  .pub-nav .brand .ram { width: 34px; height: auto; } .pub-nav .brand .name { font-size: 1.05rem; letter-spacing: .14em; }
  .pub-nav > .btn { padding: 7px 12px; font-size: .9rem; white-space: nowrap; }
  .pub-nav nav { flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 2px; font-size: .95rem; scrollbar-width: none; }
  .pub-nav nav::-webkit-scrollbar { display: none; }
  .pub-nav nav a { white-space: nowrap; }
  .pub-nav .brand { margin-right: auto; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
  .hero { min-height: calc(100svh - 120px); }
}
@media (max-width: 760px) { .pub-nav > .btn.gold { display: none; } }
