:root {
    /* ---- Palette "maquette" : fond clair, header sombre, accent flash ---- */
    --navy: #201a14;          /* ink : texte principal + fond du header */
    --navy-deep: #15110d;     /* ink un cran plus sombre (hover header) */
    --paper: #ffffff;         /* cartes/blocs */
    --paper-dim: #f2ead9;     /* fonds secondaires (légende, hover léger) */
    --amber: #12958c;         /* accent "flash" : boutons principaux, liens, actif */
    --amber-bright: #17b2a7;  /* hover de l'accent */
    --steel: #9a8f7c;         /* texte discret / secondaire */

    --stone: #faf3e7;         /* fond de page */
    --line: #e8dfcb;          /* bordures */

    --axe-entreprise: #cc8033;
    --axe-equipe: #4c8a5e;
    --axe-challenge: #a83f63;
    --axe-communication: #2483a0;
    --axe-ouverture: #7859b5;

    --status-valide: #2e6b3e;
    --status-attente: #95591b;
    --status-refuse: #a83f63;

    --radius: 10px;
    --shadow: 0 10px 26px rgba(32, 26, 20, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--stone);
    color: var(--navy);
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; padding: 0 0 80px; }

.mono { font-family: 'Inter', sans-serif; }

/* ---------- LOGO "APERTURE" (roue des 5 axes) ---------- */
.aperture-mark {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    vertical-align: -6px;
    background:
        radial-gradient(circle at 50% 50%, var(--navy) 0 30%, transparent 31%),
        conic-gradient(from -90deg,
            var(--axe-entreprise) 0deg 72deg,
            var(--axe-equipe) 72deg 144deg,
            var(--axe-challenge) 144deg 216deg,
            var(--axe-communication) 216deg 288deg,
            var(--axe-ouverture) 288deg 360deg);
    flex-shrink: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    background: var(--navy);
    border-radius: 0 0 16px 16px;
}

.navbar-brand .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--amber-bright);
    margin: 0 0 6px;
    text-transform: uppercase;
}

.navbar-brand h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #f5efe2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand h1 em { font-style: italic; font-weight: 500; color: var(--amber-bright); }

.total-stamp {
    border: 2px solid var(--amber);
    border-radius: 50%;
    width: 76px;
    height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: rgba(18, 149, 140, 0.08);
}

.total-stamp .num {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--amber-bright);
    line-height: 1;
}

.total-stamp .label {
    font-family: 'Inter', sans-serif;
    font-size: 7.5px;
    letter-spacing: 0.04em;
    color: #cfc6b4;
    margin-top: 3px;
    text-align: center;
}

/* ---------- TABS (dans la navbar) : pilules ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.tab-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(245, 239, 226, 0.18);
    color: #cfc6b4;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.tab-btn:hover { border-color: var(--amber); color: #f5efe2; }

.tab-btn.active {
    color: white;
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 4px 14px rgba(18, 149, 140, 0.35);
}

.tab-btn .badge-count { font-size: 10px; opacity: 0.75; margin-left: 4px; }

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amber);
    color: white;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-btn:hover { background: var(--amber-bright); }
.profile-btn.active { border-color: #f5efe2; }

@media (max-width: 720px) {
    .navbar { padding: 16px 18px; border-radius: 0 0 14px 14px; }
    .tabs { order: 3; width: 100%; gap: 8px; }
    .total-stamp { order: 2; width: 60px; height: 60px; }
}

/* ---------- PROFIL ---------- */
.profil-page { display: none; margin: 24px 0; }
.profil-page.show { display: block; }
.profil-page h2 { margin: 0 0 20px; font-size: 1.4rem; font-weight: 600; font-family: 'Fraunces', serif; }

/* ---------- PAGE "LE PROGRAMME" ---------- */
.presentation-page { display: none; margin: 24px 0 40px; max-width: 900px; }
.presentation-page.show { display: block; }
.presentation-page h2 { margin: 0 0 14px; font-size: 1.6rem; font-weight: 600; font-family: 'Fraunces', serif; }
.presentation-page h3 { margin: 32px 0 14px; font-size: 1.05rem; font-weight: 600; font-family: 'Fraunces', serif; }

.presentation-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--steel);
    max-width: 640px;
}

.presentation-axes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.presentation-axe-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.presentation-axe-card .name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.presentation-axe-card .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.presentation-axe-card p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--steel);
    margin: 0;
}

.presentation-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.presentation-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.presentation-step .step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amber);
    color: white;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-step strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.presentation-step p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--steel);
    margin: 0;
}

.presentation-page p, .presentation-page ul { font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 1.6; color: var(--steel); }
.presentation-page strong { color: var(--navy); }

.presentation-rules {
    margin: 0;
    padding-left: 20px;
}

.presentation-rules li { margin-bottom: 6px; }

/* ---------- COPYRIGHT ---------- */
.app-footer {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--steel);
    padding: 18px 24px 28px;
}

.app-footer--auth {
    padding: 14px 0 0;
    margin-top: 6px;
}

/* ---------- PROFIL ---------- */
.profil-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin: 20px 0;
}

.profil-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--amber);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 21px;
    flex-shrink: 0;
}

.profil-nom { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.profil-total { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--steel); }
.profil-total strong { color: var(--amber); font-size: 18px; }

.profil-axes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

/* ---------- AXES STRIP ---------- */
.axes-strip {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.axe-meter {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.axe-meter .name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.axe-meter .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.axe-meter .bar {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.axe-meter .bar span { display: block; height: 100%; border-radius: 3px; }

.axe-meter .count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--steel);
    margin-top: 6px;
}

/* ---------- MAIN CONTENT ---------- */
.content { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- FILTER BAR ---------- */
.filters { margin: 24px 0 0; }

.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* display:contents : le wrapper disparaît de la boîte, ses boutons de statut restent des
   items flex directs de #statusRow — on peut les cacher hors de "Mes actions" sans
   entraîner la recherche/le tri avec eux (voir ui.js). */
.status-pills { display: contents; }

.pill {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--steel);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pill .dot { width: 7px; height: 7px; border-radius: 50%; }

.pill:hover { border-color: var(--amber); color: var(--navy); }

.pill.active { background: var(--navy); color: white; border-color: var(--navy); }

.secondary-controls { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }

select, .search-box {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--navy);
    padding: 9px 12px;
    border-radius: 8px;
}

select:focus, .search-box:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

.results-count {
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--steel);
    letter-spacing: 0.02em;
}

/* ---------- CARDS GRID ---------- */
.grid {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.ticket {
    position: relative;
    background: var(--paper);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    min-height: 148px;
}

.tab-color { width: 6px; flex-shrink: 0; }
.tab-color span { display: none; }
.perforation { display: none; }

.ticket .body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.ticket .meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.ticket h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.25; font-family: 'Fraunces', serif; }

.ticket .desc { font-size: 12.5px; line-height: 1.45; color: var(--steel); margin: 0; }

.ticket .points {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 19px;
    white-space: nowrap;
    color: var(--amber);
}

.ticket .points small {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    display: block;
    text-align: right;
    color: var(--steel);
}

.ticket .meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--steel);
    margin-top: auto;
    flex-wrap: wrap;
}

.just-flag { display: inline-flex; align-items: center; gap: 4px; }
.just-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.just-flag.attached { color: var(--axe-ouverture); text-decoration: none; cursor: pointer; }
.just-flag.attached:hover { text-decoration: underline; }
.just-flag.none { color: rgba(154, 143, 124, 0.6); }

.upload-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    background: var(--paper-dim);
    border: 1px dashed var(--line);
    color: var(--navy);
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.upload-btn:hover { background: var(--line); }

.stamp {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.stamp.valide { color: white; background: var(--status-valide); }
.stamp.attente { color: white; background: var(--status-attente); }
.stamp.refuse { color: white; background: var(--status-refuse); }

.add-btn {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    background: var(--amber);
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 4px 14px rgba(18, 149, 140, 0.28);
}

.add-btn:hover { background: var(--amber-bright); }
.add-btn.added { background: transparent; color: var(--steel); border: 1px solid var(--steel); box-shadow: none; cursor: default; }

.mark-done-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    background: var(--navy);
    color: white;
    border: none;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
}

.mark-done-btn:hover { background: var(--navy-deep); }

.delete-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    background: none;
    border: 1px solid var(--line);
    color: var(--steel);
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    margin-left: auto;
}

.delete-btn:hover { border-color: var(--axe-challenge); color: var(--axe-challenge); }

.btn-itineraire {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--amber);
    color: var(--amber);
    background: rgba(18, 149, 140, 0.08);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.btn-itineraire:hover { background: var(--amber); color: white; }

.empty-state {
    margin: 40px 0 0;
    padding: 40px 24px;
    text-align: center;
    color: var(--steel);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    display: none;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: #f5efe2;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2100;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- DECLARE BAR ---------- */
.declare-bar { margin: 18px 0 0; display: flex; justify-content: flex-end; gap: 10px; }

.declare-open-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: var(--amber);
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(18, 149, 140, 0.32);
}

.declare-open-btn:hover { background: var(--amber-bright); }

.download-all-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: var(--paper);
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.download-all-btn:hover { background: var(--paper-dim); }

/* ---------- MODAL ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32, 26, 20, 0.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--paper);
    color: var(--navy);
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    padding: 28px 26px 22px;
    box-shadow: var(--shadow);
}

.modal-box h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; font-family: 'Fraunces', serif; }
.modal-sub { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--steel); margin: 0 0 18px; }

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.03em;
    color: var(--steel);
    margin-bottom: 6px;
}

.field input, .field select {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
}

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.btn-secondary, .btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.btn-secondary { background: transparent; color: var(--steel); }
.btn-primary { background: var(--amber); color: white; font-weight: 600; box-shadow: 0 4px 14px rgba(18, 149, 140, 0.3); }
.btn-primary:hover { background: var(--amber-bright); }

/* ---------- AGENDA ---------- */
.agenda-page { display: none; margin: 24px 0; }
.agenda-page.show { display: block; }
.agenda-page h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; font-family: 'Fraunces', serif; }

.agenda-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 820px) { .agenda-layout { grid-template-columns: 1fr; } }

.agenda-calendar {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    position: sticky;
    top: 16px;
}

@media (max-width: 820px) { .agenda-calendar { position: static; } }

.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.calendar-month {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
}

.cal-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--navy);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.cal-nav-btn:hover { border-color: var(--amber); color: var(--amber); }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--navy);
    cursor: default;
}

.calendar-day.outside { color: rgba(154, 143, 124, 0.4); }
.calendar-day.has-events { cursor: pointer; font-weight: 600; }
.calendar-day.has-events:hover { background: var(--paper-dim); }
.calendar-day.today { box-shadow: inset 0 0 0 1.5px var(--amber); }
.calendar-day.selected { background: var(--amber); color: white; }
.calendar-day.selected .day-dots span { background: white !important; }

.day-dots { display: flex; gap: 2px; height: 4px; }
.day-dots span { width: 4px; height: 4px; border-radius: 50%; }

.cal-today-btn {
    width: 100%;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--paper-dim);
    border: 1px dashed var(--line);
    color: var(--navy);
    padding: 8px;
    border-radius: 999px;
    cursor: pointer;
}

.cal-today-btn:hover { background: var(--line); }

.agenda-list { display: flex; flex-direction: column; gap: 14px; }

.agenda-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--steel);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.event-ticket {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
}

.event-ticket.passe { opacity: 0.55; }

.event-date-stub {
    flex-shrink: 0;
    width: 80px;
    color: #f5efe2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    text-align: center;
    background-image: radial-gradient(circle at 6px 0, transparent 6px, var(--paper) 6.5px),
                       radial-gradient(circle at 6px 100%, transparent 6px, var(--paper) 6.5px);
    background-repeat: no-repeat;
    background-position: right top, right bottom;
    background-size: 12px 12px;
    border-right: 2px dashed rgba(245, 239, 226, 0.3);
}

.event-date-stub .jour { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; line-height: 1; color: var(--amber-bright); }
.event-date-stub .mois { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 3px; }
.event-date-stub .jour-fin { font-family: 'Inter', sans-serif; font-size: 9px; opacity: 0.7; margin-top: 4px; }

.event-ticket .body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.event-ticket .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.event-ticket h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; font-family: 'Fraunces', serif; }
.event-ticket .desc { font-size: 12.5px; line-height: 1.45; color: var(--steel); margin: 0; }

.axe-tag { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; margin-top: 2px; }

.event-ticket .meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--steel);
    flex-wrap: wrap;
}

.event-stamp {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    color: white;
}

.event-stamp.bientot { background: var(--amber); }
.event-stamp.passe { background: var(--steel); }

.ext-link {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--amber);
    text-decoration: none;
}

.ext-link:hover { text-decoration: underline; }

/* ---------- LIEUX / CARTE ---------- */
.lieu-form { display: none; margin: 24px 0; }
.lieu-form.show { display: block; }
.lieu-form h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; font-family: 'Fraunces', serif; }

.lieu-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
    position: relative;
}

@media (max-width: 720px) { .lieu-layout { grid-template-columns: 1fr; } }

.lieu-list {
    border-right: 1px solid var(--line);
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    position: relative;
}

.lieu-list::-webkit-scrollbar { width: 6px; }
.lieu-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.lieu-map-wrap { position: relative; z-index: 0; isolation: isolate; }

@media (max-width: 720px) {
    .lieu-list { border-right: none; border-bottom: 1px solid var(--line); max-height: 220px; }
}

.lieu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    position: relative;
    transition: background 0.15s ease;
}

.lieu-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--couleur-active, var(--amber));
    opacity: 0.35;
    transition: opacity 0.15s ease;
}

.lieu-item:last-child { border-bottom: none; }
.lieu-item:hover { background: var(--paper-dim); }
.lieu-item:hover::before { opacity: 0.75; }

.lieu-item.selectionne { background: rgba(18, 149, 140, 0.08); }
.lieu-item.selectionne::before { opacity: 1; }

.lieu-item .pastille {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

.lieu-item .infos { min-width: 0; flex: 1; }
.lieu-item .btn-itineraire { flex-shrink: 0; align-self: center; }
.lieu-item .nom { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--navy); }
.lieu-item .axe-txt { font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--steel); margin-top: 2px; }

.lieu-item.campus {
    background: var(--paper-dim);
    border-bottom: 2px solid var(--line);
    align-items: center;
}
.lieu-item.campus::before { background: var(--amber); opacity: 1; }
.lieu-item.campus.selectionne { background: rgba(18, 149, 140, 0.12); }

.logo-campus {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--navy);
    padding: 3px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--amber);
}

.lieu-item.campus .axe-txt { color: var(--amber); font-weight: 600; }

#carteLieux { height: 480px; width: 100%; background: var(--paper-dim); }

/* Fond de carte neutre : le style Wikimedia redevient une carte routière très saturée en
   zoomant sur la ville (couleurs vives des grands axes, zones vertes/roses...), donc on
   désature fortement + teinte sépia pour forcer un rendu "papier" discret à tout niveau
   de zoom, cohérent avec le fond crème du reste du site. */
#carteLieux .leaflet-tile-pane {
    filter: grayscale(55%) saturate(60%) brightness(1.05) contrast(0.95) sepia(12%);
}

#carteLieux .leaflet-control-zoom {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
}
#carteLieux .leaflet-control-zoom a {
    background: var(--paper) !important;
    color: var(--navy) !important;
    border: none !important;
    font-family: 'Inter', sans-serif;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}
#carteLieux .leaflet-control-zoom a:hover { background: var(--paper-dim) !important; }
#carteLieux .leaflet-control-zoom-in { border-bottom: 1px solid var(--line) !important; }

#carteLieux .leaflet-control-attribution {
    background: rgba(255,255,255,0.85) !important;
    color: var(--steel) !important;
    font-family: 'Inter', sans-serif;
    font-size: 9px !important;
}
#carteLieux .leaflet-control-attribution a { color: var(--navy) !important; }

/* Popups */
#carteLieux .leaflet-popup-content-wrapper {
    background: var(--paper);
    color: var(--navy);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}
#carteLieux .leaflet-popup-content { margin: 0; min-width: 200px; max-width: 260px; }
#carteLieux .leaflet-popup-tip { background: var(--paper); }
#carteLieux a.leaflet-popup-close-button { color: var(--steel); padding: 6px 8px 0 0; font-size: 18px; }
#carteLieux a.leaflet-popup-close-button:hover { color: var(--navy); }

.popup-lieu .bande { height: 4px; background: var(--couleur-popup, var(--amber)); }
.popup-lieu .corps { padding: 13px 15px 14px; }
.popup-lieu .axe {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--couleur-popup, var(--amber));
    margin: 0 0 4px;
}
.popup-lieu .titre { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.25; }
.popup-lieu .adresse { font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--steel); margin: 0 0 6px; line-height: 1.4; }
.popup-lieu .horaires { font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--navy); margin: 0 0 4px; line-height: 1.4; }
.popup-lieu .tarifs { font-size: 11.5px; color: var(--navy); opacity: 0.75; margin: 0 0 6px; line-height: 1.4; }
.popup-lieu .desc { font-size: 12.5px; line-height: 1.4; color: var(--navy); opacity: 0.85; margin: 0; }
.popup-lieu .popup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }

.popup-lieu .lien {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    background: var(--navy);
    color: white;
    padding: 6px 11px;
    border-radius: 999px;
    text-decoration: none;
}
.popup-lieu .lien:hover { background: var(--navy-deep); }

.popup-lieu .lien-action {
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    background: var(--amber);
}
.popup-lieu .lien-action:hover { background: var(--amber-bright); }

.declare-lieu-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    background: var(--amber);
    color: white;
    border: none;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
}
.declare-lieu-btn:hover { background: var(--amber-bright); }

.popup-lieu.campus .bande { height: 40px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.popup-lieu.campus .bande img { height: 24px; max-width: 70%; object-fit: contain; }

/* Marqueurs */
.marqueur-lieu {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(32,26,20,0.35);
}
.marqueur-lieu.actif {
    width: 26px;
    height: 26px;
    box-shadow: 0 0 0 5px rgba(18, 149, 140, 0.3), 0 2px 6px rgba(32,26,20,0.4);
    animation: pop-marqueur 0.45s ease;
}
@keyframes pop-marqueur {
    0%   { transform: rotate(-45deg) scale(0.7); }
    60%  { transform: rotate(-45deg) scale(1.12); }
    100% { transform: rotate(-45deg) scale(1); }
}

.marqueur-campus {
    width: 100%;
    height: 100%;
    background: var(--navy);
    border: 2px solid var(--amber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 3px 8px rgba(32,26,20,0.4);
}
.marqueur-campus::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--amber);
}
.marqueur-campus img { width: 76%; height: 76%; object-fit: contain; }
.marqueur-campus.actif {
    box-shadow: 0 0 0 6px rgba(18, 149, 140, 0.3), 0 3px 10px rgba(32,26,20,0.45);
    animation: pop-campus 0.45s ease;
}
@keyframes pop-campus {
    0%   { transform: scale(0.75); }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.lieu-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--paper-dim);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--navy);
}
.lieu-legende .cle { display: flex; align-items: center; gap: 6px; }
.lieu-legende .cle .pastille { width: 8px; height: 8px; border-radius: 50%; }
.lieu-legende .cle .logo-campus { width: 16px; height: 16px; padding: 1px; border-radius: 4px; box-shadow: 0 0 0 1px var(--amber); }

@media (max-width: 560px) {
    .content { padding: 0 18px; }
    .secondary-controls { margin-left: 0; width: 100%; }
    select, .search-box { flex: 1; }
}

/* ---------- ESPACE D'IDENTIFICATION / CONNEXION ---------- */
.app-shell { display: none; }
.app-shell.show { display: block; }

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    padding: 20px;
}

.auth-screen.hide { display: none; }

/* ---------- ÉCRAN DE CHARGEMENT (vérification de session au démarrage) ---------- */
.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--navy);
    color: var(--stone);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.boot-loader.hide { display: none; }

/* ---------- ALERTE "PHP NON EXÉCUTÉ" ---------- */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #7a1f1f;
    color: #fff2ea;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 44px 10px 16px;
    text-align: center;
}

.dev-banner code {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

.dev-banner.hide { display: none; }

.dev-banner #devBannerClose {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    border: none;
    color: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
}

.boot-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(250, 243, 231, 0.25);
    border-top-color: var(--amber);
    animation: boot-spin 0.7s linear infinite;
}

@keyframes boot-spin {
    to { transform: rotate(360deg); }
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--paper);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 34px 30px 26px;
}

.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .aperture-mark { margin-bottom: 6px; }
.auth-brand h1 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; margin: 8px 0 4px; color: var(--navy); }
.auth-brand h1 em { font-style: italic; font-weight: 500; color: var(--amber); }
.auth-brand .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0;
}

.auth-tabs {
    display: flex;
    background: var(--paper-dim);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 999px;
    color: var(--steel);
    cursor: pointer;
}

.auth-tab-btn.active {
    background: var(--amber);
    color: white;
    box-shadow: 0 4px 14px rgba(18, 149, 140, 0.3);
}

.auth-form { display: flex; flex-direction: column; }

.auth-error {
    background: rgba(168, 63, 99, 0.1);
    border: 1px solid var(--status-refuse);
    color: var(--status-refuse);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
}

/* Champ mot de passe + bouton œil pour afficher/masquer */
.password-field { position: relative; }
.password-field input { padding-right: 40px; }

.toggle-pw-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 9px;
    line-height: 1;
    color: var(--steel);
}

.field-hint {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--steel);
    margin: 6px 0 0;
}

/* Indicateur de robustesse du mot de passe (inscription uniquement) */
.pw-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    margin-top: 9px;
    overflow: hidden;
}

.pw-strength span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width .15s ease, background-color .15s ease;
    background: var(--status-refuse);
}

.pw-strength span.level-2 { background: var(--status-attente); }
.pw-strength span.level-3, .pw-strength span.level-4 { background: var(--status-valide); }

.auth-submit-btn { width: 100%; margin-top: 8px; padding: 12px; font-size: 13px; }

.auth-note {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--steel);
    margin: 18px 0 0;
}

@media (max-width: 460px) {
    .auth-card { padding: 26px 20px 20px; }
}

/* ---------- PROFIL : identité + déconnexion ---------- */
.profil-identity { flex: 1; }
.profil-email { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--steel); margin-bottom: 6px; }

.logout-btn {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--steel);
    cursor: pointer;
    flex-shrink: 0;
    align-self: flex-start;
}

.logout-btn:hover { border-color: var(--status-refuse); color: var(--status-refuse); }

@media (max-width: 560px) {
    .profil-header { flex-wrap: wrap; }
    .logout-btn { margin-left: auto; }
}

/* ---------- CHATBOT "OPI" ---------- */
/* pointer-events: none ici est essentiel : le panneau garde sa taille en layout même fermé
   (opacity: 0, pas display: none, pour l'animation), donc sans ça cette boîte invisible
   couvre une bonne partie de l'écran et intercepte les clics destinés à ce qu'il y a dessous
   (profil, filtres…). La bulle et le panneau ouvert redonnent pointer-events: auto pour eux-mêmes. */
.chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

/* Caché par défaut : uniquement affiché une fois connecté (voir showChatbot/hideChatbot
   dans chatbot.js, appelés depuis onAuthSuccess()/logout() dans auth.js). Avant ce patch,
   la bulle et le panneau restaient visibles même sur l'écran de connexion. */
.chatbot.hide { display: none; }

.chatbot-bulle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--amber);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(18, 149, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: auto;
}

.chatbot-bulle:hover { transform: scale(1.06); background: var(--amber-bright); }
.chatbot-bulle.actif { background: var(--navy); box-shadow: 0 8px 24px rgba(32, 26, 20, 0.35); }

.chatbot-panel {
    width: 320px;
    max-width: calc(100vw - 44px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(32, 26, 20, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-panel.ouvert { opacity: 1; transform: none; pointer-events: auto; }

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--navy);
    color: #f5efe2;
}

.chatbot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chatbot-nom { font-weight: 600; font-size: 14px; }
.chatbot-statut { font-size: 11px; color: rgba(245, 239, 226, 0.65); display: flex; align-items: center; gap: 5px; }
.chatbot-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4c8a5e; box-shadow: 0 0 6px #4c8a5e; }

.chatbot-fermer {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(245, 239, 226, 0.7);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 6px;
}
.chatbot-fermer:hover { color: #f5efe2; }

.chatbot-messages {
    height: 280px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--stone);
}

.chatbot-msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    animation: chatbot-pop 0.2s ease;
}

.chatbot-msg.bot { background: var(--paper); color: var(--navy); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chatbot-msg.moi { background: var(--amber); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatbot-msg.typing { color: var(--steel); letter-spacing: 3px; animation: chatbot-pop 0.2s ease, chatbot-typing 1s ease-in-out infinite; }

@keyframes chatbot-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chatbot-typing { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.chatbot-msg.cartes { max-width: 100%; padding: 0; background: none; border: none; align-self: stretch; display: flex; flex-direction: column; gap: 8px; }

.chatbot-carte {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--couleur-carte, var(--amber));
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
}
.chatbot-carte-axe { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--couleur-carte, var(--steel)); }
.chatbot-carte-titre { color: var(--navy); font-weight: 600; margin: 3px 0 8px; line-height: 1.35; }
.chatbot-carte-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chatbot-carte-points { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--steel); }
.chatbot-carte-bas button {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: white;
    background: var(--amber);
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    flex-shrink: 0;
}
.chatbot-carte-bas button:hover { background: var(--amber-bright); }

.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 10px 10px;
    background: var(--paper);
}
.chatbot-chip {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--navy);
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 11px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.chatbot-chip:hover { background: var(--paper-dim); border-color: var(--amber); }

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.chatbot-form input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--navy);
}
.chatbot-form input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(18, 149, 140, 0.2); }

.chatbot-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--amber);
    color: white;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}
.chatbot-form button:hover { background: var(--amber-bright); }

@media (max-width: 560px) {
    .chatbot { right: 14px; bottom: 14px; }
    .chatbot-messages { height: 240px; }
}
