:root {
  --primary: #ff5a5f;
  --primary-dark: #e04347;
  --secondary: #2b2d42;
  --accent: #ffd23f;
  --bg: #fbfaf8;
  --card-bg: #ffffff;
  --text: #22223b;
  --text-light: #6c6f80;
  --success: #2ecc71;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.08);
  --shadow-hover: 0 16px 40px rgba(43, 45, 66, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43,45,66,0.06);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
}
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.btn-nav {
  background: var(--secondary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at top right, #fff0e0 0%, var(--bg) 55%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--secondary);
  line-height: 1.1;
}
.hero h1 span { color: var(--primary); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0 8px;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.hero-stats span { color: var(--text-light); font-size: 0.9rem; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(255,90,95,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,90,95,0.45); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.coiffeur-card { text-align: center; cursor: pointer; }
.coiffeur-card .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.6rem;
}
.coiffeur-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.coiffeur-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.coiffeur-card.selected { border: 2px solid var(--primary); }

/* ---------- Booking widget ---------- */
.booking-box {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px;
}
.step-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 14px;
}
.date-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.date-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #f3f2ef;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.date-pill.active { background: var(--secondary); color: #fff; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.slot-btn {
  padding: 12px 6px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid #eee;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.slot-btn:hover { border-color: var(--primary); }
.slot-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e4e2dd;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e8f8ef; color: #1c7c4c; }
.alert-error { background: #fdeaea; color: #b23434; }
.alert-info { background: #eef4ff; color: #2c579e; }

/* ---------- Timeline / infos ---------- */
.infos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.info-card { text-align: center; }
.info-card .icon { font-size: 2.2rem; margin-bottom: 12px; }

.vr-banner {
  background: linear-gradient(120deg, var(--secondary), #4a4e77);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}
.vr-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.vr-banner p { color: #d7d8e6; max-width: 560px; margin: 0 auto 24px; }

footer {
  background: var(--secondary);
  color: #d7d8e6;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer .bottom { text-align: center; margin-top: 32px; font-size: 0.85rem; color: #9799b3; }

/* ---------- Admin layout ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--secondary);
  color: #fff;
  padding: 24px 16px;
  flex-shrink: 0;
}
.admin-sidebar .brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 30px; padding: 0 8px; }
.admin-sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #d7d8e6;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 32px; max-width: 1200px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0efec; font-size: 0.92rem; }
th { background: #f7f6f3; font-weight: 700; color: var(--secondary); }
tr:last-child td { border-bottom: none; }

.badge-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-confirme { background: #e8f8ef; color: #1c7c4c; }
.badge-annule { background: #fdeaea; color: #b23434; }

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at top right, #fff0e0 0%, var(--bg) 55%);
}
.login-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); width: 100%; max-width: 380px; }
.login-card h2 { text-align: center; margin-bottom: 24px; }

@media (max-width: 800px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; }
  .admin-sidebar .brand { display: none; }
  .nav-links { display: none; }
}
