@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --c-bg: #0a1626;
    --c-bg2: #0d1d31;
    --c-surface: #122a42;
    --c-surface2: #173251;
    --c-border: #21394f;
    --c-primary: #34d399;
    --c-primary-d: #22a87a;
    --c-text: #eaf2fb;
    --c-muted: #8ca2bb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(1100px 560px at 85% -12%, #14324a55, transparent),
                linear-gradient(160deg, var(--c-bg), var(--c-bg2));
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    background: #081320;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar__brand {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.topbar__title { font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.agenda__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.agenda__label { font-size: 0.9rem; color: var(--c-muted); }

.agenda__select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-text);
    min-height: 40px;
}

.agenda__calendar {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgba(2, 8, 18, 0.5);
}

/* ---------- FullCalendar 6 — thème sombre navy ---------- */
.fc {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: #0e2236;
    --fc-neutral-text-color: var(--c-muted);
    --fc-border-color: var(--c-border);
    --fc-today-bg-color: rgba(52, 211, 153, 0.06);
    --fc-now-indicator-color: var(--c-primary);
    --fc-event-border-color: transparent;
    --fc-event-text-color: #ffffff;
    --fc-list-event-hover-bg-color: var(--c-surface2);
    color: var(--c-text);
}
.fc .fc-toolbar-title { color: var(--c-text); font-family: 'Bricolage Grotesque', sans-serif; }
.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid { border-color: var(--c-border); }
.fc .fc-col-header-cell-cushion { color: #cdd9e8; }
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-list-day-text,
.fc .fc-list-day-side-text { color: var(--c-muted); }

/* Boutons */
.fc .fc-button-primary {
    background: var(--c-surface);
    border-color: var(--c-border);
    color: var(--c-text);
}
.fc .fc-button-primary:hover { background: var(--c-surface2); border-color: var(--c-border); }
.fc .fc-button-primary:disabled { background: #0e2236; border-color: var(--c-border); color: var(--c-muted); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #06231a;
}
.fc .fc-button-primary:focus,
.fc .fc-button-primary:focus-visible { box-shadow: 0 0 0 0.2rem rgba(52, 211, 153, 0.25); }

/* Mobile-first : confort tactile, titres compacts */
@media (max-width: 767px) {
    .container { padding: 0.5rem; }
    .fc .fc-toolbar-title { font-size: 1.05rem; }
    .fc .fc-button { padding: 0.3rem 0.5rem; }
}

/* Login */
.login {
    max-width: 360px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.login__label { font-size: 0.85rem; margin-top: 0.5rem; color: var(--c-muted); }

.login__input {
    padding: 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg2);
    color: var(--c-text);
    min-height: 44px;
}

.login__submit {
    margin-top: 1rem;
    padding: 0.7rem;
    border: 0;
    border-radius: 8px;
    background: var(--c-primary);
    color: #06231a;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.login__error {
    background: rgba(225, 80, 80, 0.15);
    color: #ffb4b4;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
