/* ============================================================
   kiosque.css — Styles du Kiosque Simplifié LeBled
   Accessibilité prioritaire : police ≥22px, touch targets ≥60px
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --accent:       #2d6a4f;
  --accent-dark:  #1b4332;
  --accent-light: #d8f3dc;
  --text:         #1a1a1a;
  --text-muted:   #555555;
  --bg:           #ffffff;
  --bg-card:      #f8f9fa;
  --border:       #d0d0d0;
  --error:        #c0392b;
  --error-bg:     #fde8e8;
  --warning-bg:   #fff3cd;
  --info-bg:      #e0f2fe;

  --fs-sm:   18px;
  --fs-base: 22px;
  --fs-lg:   28px;
  --fs-xl:   36px;

  --touch: 60px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { display: block; }

/* ── Header ────────────────────────────────────────────────── */
.header {
  background: var(--accent);
  color: #fff;
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-brand {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.header-brand span { font-weight: 400; opacity: .85; }

.header-members-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.88);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  transition: background .2s;
  white-space: nowrap;
}
.header-members-link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.header-user-name {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.9);
  margin-right: 12px;
}

.btn-header-logout {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.88);
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn-header-logout:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── Main ──────────────────────────────────────────────────── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px;
}

/* ── Titres de page ────────────────────────────────────────── */
.page-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  margin-bottom: 24px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .5; }

/* ── Grandes cartes d'action (index.html) ──────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.action-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 260px;
  justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .1s;
}
.action-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.action-card-icon  { font-size: 80px; line-height: 1; }
.action-card-title { font-size: var(--fs-xl); font-weight: 700; color: var(--accent); }
.action-card-desc  { font-size: var(--fs-base); color: var(--text-muted); }
.action-card-note  { font-size: var(--fs-sm); color: var(--text-muted); opacity: .75; }

.action-card--atelier .action-card-title { color: #1a5276; }
.action-card--atelier:hover { border-color: #1a5276; }

/* ── Grille ressources ─────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.resource-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color .2s, box-shadow .2s;
}
.resource-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.resource-card-img-wrap { width: 100%; height: 200px; overflow: hidden; background: var(--bg-card); }
.resource-card-img      { width: 100%; height: 100%; object-fit: cover; }
.resource-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: var(--accent-light);
}

.resource-card-body { padding: 22px 24px 24px; }
.resource-card-name { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.resource-card-type { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 14px; }

/* ── Badge de disponibilité ────────────────────────────────── */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
}
.availability-badge.available { background: var(--accent-light); color: var(--accent-dark); }
.availability-badge.busy      { background: var(--error-bg);     color: var(--error); }

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Fiche ressource détail ────────────────────────────────── */
.resource-detail-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.resource-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.resource-detail-title { font-size: var(--fs-xl); font-weight: 700; }
.resource-detail-desc  { font-size: var(--fs-base); color: var(--text-muted); margin-bottom: 24px; }

/* ── Boîte règles ──────────────────────────────────────────── */
.rules-box {
  background: var(--warning-bg);
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: var(--fs-sm);
}
.rules-box-title { font-size: var(--fs-base); font-weight: 700; margin-bottom: 8px; }

/* ── Section calendrier ────────────────────────────────────── */
.calendar-section { margin: 40px 0; }
.section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 20px;
}

/* Surcharge FullCalendar pour accessibilité */
.fc { font-size: var(--fs-sm); }
.fc .fc-toolbar-title { font-size: var(--fs-base) !important; }
.fc .fc-button { min-height: 40px; font-size: var(--fs-sm); }

/* ── Formulaire de réservation ─────────────────────────────── */
.booking-section {
  background: var(--bg-card);
  border: 2px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 36px;
}

.form-group  { margin-bottom: 24px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label  { display: block; font-size: var(--fs-base); font-weight: 600; margin-bottom: 10px; }

.form-input,
.form-textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 16px;
  font-size: var(--fs-base);
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}

.form-textarea { min-height: 100px; resize: vertical; }

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch);
  padding: 0 32px;
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-light); }

.btn-lg {
  min-height: 72px;
  padding: 0 48px;
  font-size: var(--fs-lg);
  border-radius: 14px;
}

/* ── Login prompt ──────────────────────────────────────────── */
.login-prompt {
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-top: 36px;
}
.login-prompt-title { font-size: var(--fs-lg); font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.login-prompt-desc  { font-size: var(--fs-base); color: var(--text-muted); margin-bottom: 28px; }

/* ── Alertes ───────────────────────────────────────────────── */
.alert {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: var(--fs-base);
  line-height: 1.5;
}
.alert-success { background: var(--accent-light); border: 1px solid #74c69d; color: var(--accent-dark); }
.alert-error   { background: var(--error-bg);     border: 1px solid #f5a5a5; color: #7b0000; }
.alert-info    { background: var(--info-bg);       border: 1px solid #93c5fd; color: #1e3a5f; }
.alert-warning { background: var(--warning-bg);    border: 1px solid #f0c040; color: #5c4000; }

/* ── Loading spinner ───────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 48px 28px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --fs-sm:   16px;
    --fs-base: 19px;
    --fs-lg:   24px;
    --fs-xl:   30px;
  }

  .main               { padding: 24px 16px; }
  .action-grid,
  .resource-grid      { grid-template-columns: 1fr; gap: 20px; }
  .form-row           { grid-template-columns: 1fr; gap: 0; }
  .resource-detail-header { flex-direction: column; }
  .btn-lg             { min-height: 64px; font-size: var(--fs-lg); padding: 0 32px; }
  .booking-section    { padding: 24px 20px; }
}
