/* =============================================================================
 * Interface Mobile Parent — RDV École (Cloudflare Pages / Edge)
 * Poids plume, sans dépendance, optimisé écran smartphone tactile
 * ============================================================================= */

:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --border: 2px solid #0f172a;
  --border-radius: 16px;
  --shadow: 4px 4px 0px #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.mobile-container {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin: auto 0;
}

.school-header {
  border-bottom: var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.school-illustration-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.6rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.4rem;
  border: 1px solid #e2e8f0;
}

.school-illustration {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.school-name {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
  border: 1.5px solid #0f172a;
}

.pupil-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.greeting-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.greeting-name {
  font-weight: 800;
  color: var(--text-main);
}

/* ─── Liste des Créneaux ─────────────────────────────────────────────── */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.day-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
}

.slot-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  background: #ffffff;
  border: var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
  box-shadow: 2px 2px 0px #0f172a;
}

.slot-btn:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px #0f172a;
}

.slot-btn.available:hover {
  background: #f0fdf4;
}

.slot-btn.booked {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.slot-status-tag {
  font-size: 0.8rem;
  font-weight: 700;
}

.slot-btn.available .slot-status-tag {
  color: var(--success);
}

/* ─── Écran de Succès & Calendrier ───────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.booking-details-box {
  background: #f8fafc;
  border: var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.2rem 0;
  text-align: left;
}

.btn-calendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  background: var(--primary);
  color: #ffffff;
  border: var(--border);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0px #0f172a;
  margin-bottom: 0.8rem;
}

.link-apple-cal {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
  margin-top: 0.5rem;
}

.link-google-cal {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
  margin-top: 0.5rem;
}
