/* ── Variables & Reset ─────────────────────────────────────────────────────── */
:root {
  --primary:   #28c8b4;
  --dark:      #28786e;
  --gradient:  linear-gradient(135deg, #28786e 0%, #28c8b4 100%);
  --gradient-r:linear-gradient(135deg, #28c8b4 0%, #28786e 100%);
  --accent:    #f97316;
  --accent-d:  #ea6c0c;
  --bg:        #f0fdfc;
  --surface:   #ffffff;
  --text:      #1e3a38;
  --muted:     #5a8a83;
  --border:    #b2dfdb;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(40,120,110,.1);
  --shadow-lg: 0 12px 40px rgba(40,120,110,.15);
  --container: 1160px;
  --nav-h:     64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section-sm { padding: 1.5rem 0; }

/* ── Typography ──────────────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: .4rem;
}
.section-title span { color: var(--primary); }

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,.35); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

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

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(40,200,180,.06); }

.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-hover {
  transition: transform .2s, box-shadow .2s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-teal { background: rgba(40,200,180,.15); color: var(--dark); }
.badge-orange { background: rgba(249,115,22,.12); color: #c2440c; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ── Alert / Flash ───────────────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .9rem;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.alert-error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }

/* ════════════════════════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--gradient);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(40,120,110,.3);
}

.navbar {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.nav-logo-text small {
  display: block;
  font-weight: 400;
  font-size: .72rem;
  opacity: .85;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: #fff; }
.nav-links a.active { background: rgba(255,255,255,.2); color: #fff; }

.nav-cta {
  margin-left: .5rem;
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: .4rem;
}

/* ════════════════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--gradient);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  opacity: .9;
}

.hero-meta-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-visual {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 220px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}

.hero-visual-num {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.hero-visual-label {
  font-size: .82rem;
  opacity: .8;
  margin-top: .25rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.countdown-block {
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  min-width: 56px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.2);
}
.countdown-num { font-size: 1.6rem; font-weight: 700; display: block; line-height: 1; }
.countdown-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }

/* ════════════════════════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 1rem;
  text-align: center;
}

.stat-item { }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* ════════════════════════════════════════════════════════════════════════════════
   SECTIONS PUBLIQUES
════════════════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.programme-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.programme-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.programme-block h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.programme-item {
  display: flex;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--bg);
  font-size: .88rem;
}

.programme-time {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  min-width: 52px;
}

/* Registration CTA block */
.cta-block {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-block h2 { margin-bottom: .75rem; font-size: 1.75rem; }
.cta-block p { opacity: .9; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════════════════════════════════
   INSCRIPTION FORM
════════════════════════════════════════════════════════════════════════════════ */
.form-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-step-tab {
  flex: 1;
  padding: .9rem .5rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  user-select: none;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

.form-step-tab.active {
  color: var(--dark);
  border-bottom-color: var(--primary);
  background: rgba(40,200,180,.04);
}

.form-step-tab .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: .72rem;
  margin-right: .35rem;
}

.form-step-tab.active .step-num { background: var(--primary); color: #fff; }
.form-step-tab.done .step-num { background: #22c55e; color: #fff; }

.form-pane { display: none; }
.form-pane.active { display: block; }

/* Form controls */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.form-label span { color: #ef4444; margin-left: .15rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,200,180,.15);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* Atelier cards in inscription */
.atelier-theme-section { margin-bottom: 2rem; }

.atelier-theme-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  border-left: 3px solid var(--primary);
  padding-left: .75rem;
  margin-bottom: 1rem;
}

.ateliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.atelier-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: all .2s;
  cursor: default;
}

.atelier-card.selected { border-color: var(--primary); background: rgba(40,200,180,.04); }
.atelier-card.full { opacity: .55; }

.atelier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .6rem;
}

.atelier-name { font-weight: 700; font-size: .95rem; flex: 1; }
.atelier-interv { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.atelier-desc { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.5; }

.atelier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
  font-size: .75rem;
}

.creneaux-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.creneau-btn {
  padding: .3rem .7rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: var(--text);
}
.creneau-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--dark); background: rgba(40,200,180,.08); }
.creneau-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.creneau-btn.conflict { border-color: #fca5a5; color: #ef4444; background: #fef2f2; cursor: not-allowed; }
.creneau-btn.full { border-color: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.creneau-btn:disabled { cursor: not-allowed; }

/* Selected summary sidebar */
.selection-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.selection-list { list-style: none; }

.selection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--bg);
  font-size: .82rem;
  gap: .5rem;
}

.selection-item-name { flex: 1; font-weight: 600; }
.selection-item-time { color: var(--primary); font-size: .75rem; }
.selection-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: .85rem;
  padding: .2rem;
  border-radius: 4px;
  line-height: 1;
}
.selection-item-remove:hover { background: #fef2f2; }

.inscription-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

/* Specialites */
.specialites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1rem;
}

.specialite-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.specialite-card:hover { border-color: var(--primary); }
.specialite-card.selected { border-color: var(--primary); background: rgba(40,200,180,.04); }
.specialite-card.full { opacity: .55; cursor: not-allowed; }

.specialite-checkbox {
  display: none;
}

.specialite-name { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.specialite-desc { font-size: .82rem; color: var(--muted); }

/* Récapitulatif */
.recap-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.recap-table th {
  background: var(--bg);
  padding: .7rem 1rem;
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.recap-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--bg);
  vertical-align: top;
}

/* ════════════════════════════════════════════════════════════════════════════════
   PROGRAMME PAGE
════════════════════════════════════════════════════════════════════════════════ */
.programme-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: .35rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: var(--text);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.programme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.1rem;
}

.programme-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
  transition: transform .2s, box-shadow .2s;
}
.programme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ════════════════════════════════════════════════════════════════════════════════
   CONFIRMATION PAGE
════════════════════════════════════════════════════════════════════════════════ */
.schedule-timeline { position: relative; }

.schedule-item {
  display: flex;
  gap: 1.25rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--bg);
}
.schedule-time {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 52px;
  padding-top: .1rem;
}
.schedule-name { font-weight: 600; margin-bottom: .2rem; }
.schedule-meta { font-size: .78rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN LAYOUT
════════════════════════════════════════════════════════════════════════════════ */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 1rem;
  margin-bottom: .5rem;
}

.sidebar-heading {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  padding: .5rem .75rem;
  margin-bottom: .25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.sidebar-link:hover { background: var(--bg); color: var(--dark); }
.sidebar-link.active { background: rgba(40,200,180,.12); color: var(--dark); font-weight: 600; }
.sidebar-link.active svg { opacity: 1; }

.admin-main { padding: 2rem; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-title { font-size: 1.4rem; color: var(--dark); }
.admin-title small { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon.teal { background: rgba(40,200,180,.12); }
.stat-card-icon.orange { background: rgba(249,115,22,.12); }
.stat-card-icon.blue { background: rgba(59,130,246,.12); }
.stat-card-icon.green { background: rgba(34,197,94,.12); }
.stat-card-icon svg { width: 22px; height: 22px; }
.teal svg { color: var(--primary); }
.orange svg { color: var(--accent); }
.blue svg { color: #3b82f6; }
.green svg { color: #22c55e; }

.stat-card-body { }
.stat-card-num { font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--text); }
.stat-card-label { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table thead th {
  background: var(--bg);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.admin-table tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bg);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg); }

/* Progress bar */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient);
  transition: width .3s ease;
}
.progress-fill.warning { background: linear-gradient(90deg, #f59e0b, #f97316); }
.progress-fill.danger { background: linear-gradient(90deg, #f97316, #ef4444); }

/* Admin form */
.admin-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.horaire-list { display: flex; flex-direction: column; gap: .5rem; }
.horaire-row { display: flex; gap: .5rem; align-items: center; }
.horaire-row .form-input { max-width: 140px; }

/* Search bar */
.search-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN LOGIN
════════════════════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 2rem;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img { height: 56px; margin: 0 auto .75rem; }
.login-logo h1 { font-size: 1.25rem; color: var(--dark); }
.login-logo p { font-size: .82rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img { height: 44px; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; opacity: .75; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .9rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ════════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
  }
  .sidebar-section { display: flex; flex-wrap: wrap; gap: .25rem; }
  .sidebar-heading { display: none; }
  .sidebar-link { padding: .4rem .7rem; font-size: .82rem; }
  .about-grid, .programme-cols, .footer-grid { grid-template-columns: 1fr; }
  .inscription-layout { grid-template-columns: 1fr; }
  .selection-sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .countdown { gap: .4rem; }
  .countdown-block { min-width: 44px; padding: .4rem .6rem; }
  .countdown-num { font-size: 1.2rem; }
}

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .82rem; }
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.fw-700 { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }
