﻿/* ═══════════════════════════════════════════════════════════════
   En Plein Vol.ca — Shared Design System
   All HTML preview files link to this stylesheet.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ────────────────────────────────────────────────────── */
:root {
  --bg:          oklch(96% 0.008 120);
  --bg-warm:     oklch(93% 0.014 120);
  --surface:     oklch(99.5% 0.005 120);
  --ink:         oklch(18% 0.015 52);
  --ink-2:       oklch(40% 0.012 52);
  --ink-3:       oklch(60% 0.010 52);
  --border:      oklch(88% 0.010 72);
  --border-soft: oklch(92% 0.010 72);

  --terra:       oklch(58% 0.13 36);
  --terra-light: oklch(93% 0.04 36);
  --terra-dark:  oklch(45% 0.13 36);

  --green:       oklch(42% 0.12 155);
  --green-light: oklch(93% 0.04 155);

  --red:         oklch(52% 0.18 22);
  --red-light:   oklch(94% 0.04 22);

  --amber:       oklch(70% 0.14 75);
  --amber-light: oklch(95% 0.04 75);

  --blue:        oklch(48% 0.12 240);
  --blue-light:  oklch(94% 0.04 240);

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-primary   { background: var(--terra); color: #fff; box-shadow: 0 2px 8px oklch(58% 0.13 36 / 0.28); }
.btn-primary:hover   { background: var(--terra-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink-2); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--terra); color: var(--terra); }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover   { background: oklch(36% 0.12 155); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover    { background: oklch(44% 0.18 22); }

/* ── BADGES ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── INPUTS ────────────────────────────────────────────────────── */
.input {
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px oklch(58% 0.13 36 / 0.1);
}
.input::placeholder { color: var(--ink-3); }

/* ── PUBLIC NAV ────────────────────────────────────────────────── */

/* ── PUBLIC FOOTER ─────────────────────────────────────────────── */

/* ── MESSAGE PAGE ──────────────────────────────────────────────── */
.msg-page {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.msg-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.msg-icon-success { background: var(--green-light); color: var(--green); }
.msg-icon-fail    { background: var(--red-light);   color: var(--red); }
.msg-icon-neutral { background: var(--terra-light); color: var(--terra); }
.msg-h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.msg-p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 380px;
  line-height: 1.65;
}
.msg-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── ADMIN LAYOUT ──────────────────────────────────────────────── */
.admin-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 24px;
}
.admin-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 14px;
}
.admin-description { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }

/* Flash message */
.flash {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Admin alert */
.admin-alert {
  background: var(--amber-light);
  border: 1px solid oklch(70% 0.14 75 / 0.3);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-alert a { color: var(--terra); font-weight: 600; }

/* ── STAT CARDS ────────────────────────────────────────────────── */

/* ── FILTER TABS ───────────────────────────────────────────────── */

/* ── DATA TABLE ────────────────────────────────────────────────── */

/* Entries sub-table */

/* ── SCHEDULER ─────────────────────────────────────────────────── */

/* ── QUICK ADD FORM ────────────────────────────────────────────── */

/* ── BATCH ACTIONS ─────────────────────────────────────────────── */

/* ── IMAGE GRID ────────────────────────────────────────────────── */

/* ── SEARCH FORM ───────────────────────────────────────────────── */
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form .input { max-width: 320px; }

/* ── PAGINATION ────────────────────────────────────────────────── */

/* ── RESPONSIVE ────────────────────────────────────────────────── */

