/* ============================
   MXBZH - CSS Optimisé et Organisé
   ============================ */

/* ============================
   1. VARIABLES & RESET
   ============================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f2f4f8;
  --card: #ffffff;
  --accent: #095bd7;
  --accent-soft: rgba(15, 74, 163, 0.12);
  --text: #0d1117;
  --muted: rgba(13, 17, 23, 0.55);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --duration: 0.4s;
  --shadow: 0 20px 40px rgba(15, 74, 163, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================
   2. NAVBAR FLOTTANTE MODERNE
   ============================ */

.floating-navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 50px 8px 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 70px;
  min-width: 580px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease;
}

.floating-navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-1px);
}

/* Navbar scrolled - fond blanc */
.floating-navbar.scrolled {
  background: #ffffff;
  border: 1px solid rgba(15, 74, 163, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.floating-navbar.scrolled:hover {
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.floating-navbar.scrolled .floating-nav-link {
  color: #374151;
}

.floating-navbar.scrolled .floating-nav-link:hover {
  color: #0f4aa3;
  background: rgba(15, 74, 163, 0.08);
}

.floating-navbar.scrolled .floating-nav-link.active {
  color: #ffffff;
}

.floating-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.floating-navbar-logo:hover {
  transform: scale(1.08);
}

.floating-navbar-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: -28px 0;
}

.floating-navbar-brand {
  display: none;
}

.floating-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.floating-nav-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s ease,
              background 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.floating-nav-link:hover {
  color: #0f4aa3;
  background: rgba(15, 74, 163, 0.08);
}

.floating-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 4px 15px rgba(15, 74, 163, 0.35);
  font-weight: 600;
  transform: scale(1.02);
}

.floating-nav-cta {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 2px 8px rgba(15, 74, 163, 0.25);
  margin-left: 8px;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: -0.01em;
}

.floating-nav-cta:hover {
  background: linear-gradient(135deg, #1a67e3 0%, #2a7aff 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.35);
  transform: translateY(-1px);
}

.floating-nav-profile {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111827;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-nav-profile:hover {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.35);
  transform: translateY(-1px) scale(1.05);
}

.floating-nav-profile svg {
  width: 16px;
  height: 16px;
  color: white;
}

.floating-nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.floating-nav-toggle span {
  width: 22px;
  height: 2px;
  background: #0d1117;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(15, 74, 163, 0.1);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar.visible {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f4aa3, #1a67e3);
  transition: width 0.1s ease;
}


/* ============================
   3. BOUTONS
   ============================ */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
  text-decoration: none;
}

.btn-primary {
  background: #0071e3;
  color: #ffffff;
  padding: 8px 16px;
}

.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #0071e3;
  padding: 8px 16px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.full { width: 100%; }

.contact-btn {
  position: relative;
  background: #1a1a1a !important;
  border: none !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 74, 163, 0.4) !important;
  background: linear-gradient(135deg, #0f4aa3, #1a67e3) !important;
}

.contact-btn:active {
  background: linear-gradient(135deg, #0f4aa3, #1a67e3) !important;
}


/* ============================
   4. HERO
   ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 12rem 0 8rem;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, #ffffff 0%, #e7eff9 70%);
  display: flex;
  align-items: center;
}

/* Hero Video Background */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.7) 0%, rgba(15, 15, 25, 0.85) 100%);
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -20%, rgba(15, 74, 163, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-grid.hero-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-centered .hero-content {
  max-width: 800px;
}

.hero-centered .hero-actions {
  justify-content: center;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-badge span {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* Hero Description */
.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* Hero Buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(15, 74, 163, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 74, 163, 0.6);
  background: linear-gradient(135deg, #1a67e3 0%, #2a7aff 100%);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Typewriter Effect */
.btn-typewriter {
  min-width: 200px;
}

.typewriter-text {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.7s infinite;
  font-weight: 400;
}

.typewriter-cursor.hidden {
  opacity: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-card {
  background: #ffffff;
  border: 1px solid rgba(11, 53, 111, 0.05);
  border-radius: 1.3rem;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 20px 50px rgba(10, 29, 54, 0.08);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.status-pill {
  background: rgba(15, 74, 163, 0.11);
  color: #0d1117;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 .8rem;
}

.stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(13, 17, 23, 0.4);
  letter-spacing: 0.06em;
}

.stat-value {
  font-weight: 600;
  color: #0d1117;
}


/* ============================
   5. SECTIONS
   ============================ */

.section {
  padding: 5rem 0;
  background: #ffffff;
  scroll-margin-top: 80px;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Section Disponibilités - Style moderne clair */
#dispos {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

#dispos::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(15, 74, 163, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

#dispos::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(26, 103, 227, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

#dispos .section-header {
  position: relative;
  z-index: 1;
}

#dispos .section-header h2 {
  color: #0d1117;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

#dispos .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

#dispos .section-subtitle a {
  color: #0f4aa3 !important;
}

#dispos .section-subtitle a:hover {
  color: #1a67e3 !important;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: #0d1117;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-text, .section-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================
   6. CARDS
   ============================ */

.cards-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.tc-card {
  background: #ffffff;
  border: 1px solid rgba(11, 53, 111, 0.04);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 30px rgba(10, 29, 54, 0.05);
  position: relative;
  min-height: 380px;
}

.tc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 29, 54, 0.15);
}

.tc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(15, 74, 163, 0.18), 0 14px 36px rgba(15, 74, 163, 0.16);
  opacity: 0;
  transition: opacity 220ms ease;
}

.tc-card:hover::after {
  opacity: 1;
}

.tc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.8 / 1;
  background: linear-gradient(135deg, #e5edf7, #cfd8e6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tc-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.tc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.15rem;
}

.tc-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 999px;
  background: #edf2ff;
  color: #2349a0;
  border: 1px solid rgba(35, 73, 160, 0.12);
  font-weight: 500;
}

.tc-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
  color: #0d1117;
  line-height: 1.3;
}

.tc-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

.tc-card-meta {
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.tc-card-meta > div {
  display: flex;
  gap: 0.35rem;
  font-size: 0.86rem;
}

.tc-card-meta dt {
  font-weight: 600;
  color: #374151;
}

.tc-card-meta dd {
  margin: 0;
  color: #6b7280;
}

.tc-card-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #f3f6ff;
  color: #0f4aa3;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
}

.tc-card-cta:hover {
  background: #e0e9ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 74, 163, 0.12);
}

/* ============================
   7. BADGES
   ============================ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.55rem;
}

.badge-green {
  background: rgba(29, 177, 120, 0.15);
  color: #0e8356;
}

.badge-orange {
  background: rgba(255, 172, 74, 0.08);
  color: #cb7d1c;
}

.badge-grey {
  background: rgba(13, 17, 23, 0.04);
  color: rgba(13, 17, 23, 0.5);
}


/* ============================
   8. RECHERCHE & FILTRES
   ============================ */

.searchbar {
  margin: 0.5rem auto 2rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.searchbar-field {
  width: min(700px, 100%);
  position: relative;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.searchbar-field:hover {
  background: #ffffff;
  border-color: rgba(15, 74, 163, 0.15);
  box-shadow: 0 4px 20px rgba(15, 74, 163, 0.08);
}

#searchInput {
  width: 100%;
  background: transparent;
  color: #1e293b;
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  outline: none;
  border: none;
  font-size: 0.95rem;
}

#searchInput::placeholder {
  color: #94a3b8;
}

.searchbar-field:focus-within {
  background: #ffffff;
  border-color: #0f4aa3;
  box-shadow: 0 0 0 4px rgba(15, 74, 163, 0.1), 0 4px 20px rgba(15, 74, 163, 0.1);
}

.filters-bar {
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.filters-inner {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15, 74, 163, 0.06);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  flex: 1 1 0;
  font-size: 0.8rem;
  color: #64748b;
}

.filter-group label {
  padding-left: 0.25rem;
  font-weight: 500;
}

.filter-group select {
  border-radius: 10px;
  border: 1px solid rgba(15, 74, 163, 0.12);
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}


.filter-group select:hover {
  border-color: rgba(15, 74, 163, 0.3);
  background: #ffffff;
}

.filter-group select:focus {
  outline: none;
  border-color: #0f4aa3;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 74, 163, 0.1);
}

.filter-reset {
  border-radius: 10px;
  border: none;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(15, 74, 163, 0.25);
}

.filter-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 74, 163, 0.35);
}

/* Cards grid */
#dispos .cards-grid {
  position: relative;
  z-index: 1;
}


/* ============================
   9. MODALS
   ============================ */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  perspective: 1000px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-backdrop {
  opacity: 1;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.modal-content {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  width: min(480px, 92vw);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(40px) scale(0.92) rotateX(8deg);
  opacity: 0;
  filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform-origin: center center;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
  filter: blur(0px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal-close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  color: #1d1d1f;
  font-size: 1.1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  font-weight: 300;
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  animation: fadeInRotate 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  z-index: 10;
  pointer-events: auto;
  line-height: 1;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.1) rotate(90deg);
}

.modal-close:active {
  transform: scale(0.9) rotate(90deg);
}

/* Modal Compte */
.auth-card-modal h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  text-align: center;
}

.auth-card-modal .auth-subtitle {
  font-size: 14px;
  color: #86868b;
  margin: 0 0 24px;
  line-height: 1.4;
  text-align: center;
}

.auth-card-modal .auth-form {
  display: grid;
  gap: 12px;
}

/* Animations uniquement quand le modal est actif */
.modal.active .auth-card-modal h2 {
  animation: slideInContent 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.modal.active .auth-card-modal .auth-subtitle {
  animation: slideInContent 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.modal.active .auth-card-modal .auth-form {
  animation: slideInContent 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-modal .auth-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.auth-card-modal .auth-form input {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-card-modal .auth-form input:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.auth-card-modal .auth-form input:focus {
  outline: none;
  border-color: #0071e3;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-card-modal .auth-form input::placeholder {
  color: #86868b;
  opacity: 1;
}

.auth-card-modal .btn-primary {
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
  background: #0071e3;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.auth-card-modal .btn-primary:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.auth-card-modal .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}

.auth-card-modal .auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(13, 17, 23, 0.6);
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-card-modal .link-btn {
  color: #0071e3;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
}

.auth-card-modal .link-btn:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.auth-card-modal .link-btn:active {
  opacity: 0.5;
}

.auth-card-modal .form-status {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
  animation: fadeInStatus 0.3s ease;
}

/* ============================
   MODAL PROFIL
   ============================ */

.modal-profile {
  max-width: 380px;
  padding: 2rem 1.5rem;
}

.profile-modal-content {
  text-align: center;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 36px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.profile-avatar svg {
  width: 44px;
  height: 44px;
  color: white;
}

.profile-modal-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1d1d1f;
}

.profile-email {
  font-size: 14px;
  color: #86868b;
  margin: 0 0 1.5rem;
}

.profile-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 0 1.5rem;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.profile-menu-item:hover {
  background: #f0f1f3;
  transform: translateX(4px);
}

.profile-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.profile-menu-icon.blue {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
}

.profile-menu-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.profile-menu-icon.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.profile-menu-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.profile-menu-text {
  flex: 1;
}

.profile-menu-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 2px;
}

.profile-menu-subtitle {
  font-size: 13px;
  color: #86868b;
  margin: 0;
}

/* Sous-modal pour modifier le compte */
.profile-edit-section {
  display: none;
}

.profile-edit-section.active {
  display: block;
}

.profile-main-section.hidden {
  display: none;
}

.profile-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #0f4aa3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
}

.profile-back-btn:hover {
  opacity: 0.7;
}

.profile-back-btn svg {
  width: 18px;
  height: 18px;
}

.profile-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.profile-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.profile-form input {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.profile-form input:focus {
  outline: none;
  border-color: #0f4aa3;
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 74, 163, 0.1);
}

.profile-form .btn-primary {
  margin-top: 8px;
  padding: 14px 20px;
  border-radius: 12px;
}

.profile-form .form-status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  margin-top: 4px;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations pour le switch entre login/register */
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ============================
   10. DASHBOARD
   ============================ */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 74, 163, 0.08), rgba(15, 74, 163, 0) 65%);
  border-radius: 1.3rem;
}

.dashboard-header h1 {
  margin: 0 0 0.3rem;
  font-size: 2rem;
  color: #0d1117;
}

.dashboard-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid rgba(11, 53, 111, 0.05);
  border-radius: 1.3rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(10, 29, 54, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(10, 29, 54, 0.12);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 17, 23, 0.08);
}

.dashboard-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0d1117;
}

.dashboard-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: rgba(15, 74, 163, 0.08);
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover {
  background: rgba(15, 74, 163, 0.15);
  transform: scale(1.1);
}

.btn-icon.btn-delete {
  background: #0071e3 !important;
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
}

.btn-icon.btn-delete:hover {
  background: #0f4aa3 !important;
  transform: scale(1.05);
}

.btn-icon.btn-delete svg {
  stroke: white !important;
  fill: none !important;
}

.dashboard-card-body {
  margin-bottom: 1rem;
}

.dashboard-card-body p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #374151;
}

.dashboard-card-body strong {
  color: #0d1117;
  font-weight: 600;
}

.dashboard-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(15, 74, 163, 0.04);
  border-radius: 0.8rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card-footer {
  margin-top: 1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(15, 74, 163, 0.03);
  border-radius: 1.5rem;
  border: 2px dashed rgba(15, 74, 163, 0.2);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #0d1117;
}

.empty-state p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* ============================
   11. CARTE
   ============================ */

#osm-map {
  width: 100%;
  height: 500px;
  border-radius: 1rem;
  z-index: 1;
  border: 1px solid rgba(11, 53, 111, 0.1);
}

.map-shell {
  border-radius: 1rem;
  overflow: hidden;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(11, 53, 111, 0.1);
}

.map-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.legend-green { background: #10b981; }
.legend-red { background: #ef4444; }
.legend-orange { background: #f59e0b; }
.legend-grey { background: #6b7280; }

/* ============================
   12. CONTACT & FOOTER
   ============================ */

/* ============================
   CONTACT SECTION
   ============================ */

.contact-section {
  background: #ffffff;
  padding: 6rem 0;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.contact-subtitle {
  color: #64748b;
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0;
}

.contact-input-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 0;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-btn-dark {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-btn-dark:hover {
  background: linear-gradient(135deg, #0f4aa3, #1a67e3);
}

.contact-info {
  padding-top: 1rem;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h4 {
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.contact-info-block p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.3s ease;
}

.contact-social-link:hover {
  color: #0f4aa3;
}

.contact-social-link svg {
  width: 20px;
  height: 20px;
}

.contact-section .form-status {
  color: #64748b;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-title {
    font-size: 2.2rem;
  }
}

.footer {
  padding: 2.8rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(13, 17, 23, 0.03);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: rgba(13, 17, 23, 0.45);
  font-size: 0.7rem;
}

/* ============================
   13. ANIMATIONS
   ============================ */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================
   14. RESPONSIVE
   ============================ */

@media (max-width: 950px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 5rem;
  }
  
  .hero-card {
    order: -1;
  }
}

@media (max-width: 760px) {
  /* Navbar flottante responsive */
  .floating-navbar {
    padding: 8px 16px;
    gap: 12px;
    top: 16px;
  }
  
  .floating-nav-links {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(15, 74, 163, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    width: calc(100vw - 32px);
    max-width: 320px;
  }
  
  .floating-nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .floating-nav-link,
  .floating-nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  
  .floating-nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .floating-nav-toggle {
    display: flex;
  }
  
  .floating-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .floating-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .floating-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .floating-navbar-brand {
    font-size: 15px;
  }
  
  .floating-navbar-logo img {
    width: 28px;
    height: 28px;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #osm-map {
    height: 400px;
  }
  
  .map-legend {
    gap: 1rem;
  }
  
  .map-legend-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .searchbar {
    margin-bottom: 1.4rem;
  }
  
  #searchInput {
    padding: .85rem 1rem .85rem 2.4rem;
  }
  
  .tc-card-body {
    padding: 1rem 1rem 1.1rem;
  }
  
  .tc-card-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .tc-card-cta {
    align-self: stretch;
    text-align: center;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .dashboard-header button {
    width: 100%;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-reset {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .tc-card-media {
    aspect-ratio: 16 / 9;
  }
}

/* Animation du hamburger */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-card {
    animation: none;
  }
}

/* ============================
   16. TIME PICKER PERSONNALISÉ APPLE
   ============================ */

.apple-time-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.apple-time-picker-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.apple-time-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.apple-time-picker-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  padding: 0;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.apple-time-picker-modal.active .apple-time-picker-content {
  transform: scale(1);
  opacity: 1;
}

.apple-time-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.apple-time-picker-title {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

.apple-time-picker-cancel,
.apple-time-picker-done {
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.apple-time-picker-cancel {
  color: #86868b;
}

.apple-time-picker-done {
  color: #0071e3;
  font-weight: 600;
}

.apple-time-picker-cancel:hover,
.apple-time-picker-done:hover {
  background: rgba(0, 0, 0, 0.05);
}

.apple-time-picker-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
  border-radius: 0 0 20px 20px;
}

.time-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.time-picker-btn {
  background: rgba(0, 113, 227, 0.08);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0071e3;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.1);
}

.time-picker-btn:hover {
  background: rgba(0, 113, 227, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.time-picker-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.15);
}

.time-picker-display {
  font-size: 56px;
  font-weight: 700;
  color: #1d1d1f;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(0, 113, 227, 0.04));
  padding: 20px 32px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.1);
  border: 2px solid rgba(0, 113, 227, 0.15);
  font-variant-numeric: tabular-nums;
}

.time-picker-separator {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  padding: 0 8px;
  align-self: center;
  margin-top: 64px;
}

/* Masquer le picker natif et normaliser l'affichage */
input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

input[type="time"]::-webkit-datetime-edit {
  padding: 0;
}

input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-second-field {
  padding: 2px 4px;
  background: transparent;
  border-radius: 4px;
}

input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-second-field:focus {
  background: rgba(59, 130, 246, 0.1);
}

input[type="time"]::-webkit-datetime-edit-text {
  color: #64748b;
  padding: 0 2px;
}

input[type="time"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================
   FIN DU CSS OPTIMISÉ
   ============================ */


/* ============================
   15. MODAL AJOUTER TERRAIN - WIZARD
   ============================ */

/* Modal */
#addTerrainModal .modal-content {
  width: min(480px, 94vw);
  max-height: calc(100vh - 3rem);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Empêcher les SVG géants - reset complet */
#addTerrainModal .modal-content > svg,
#addTerrainModal .add-terrain-body > svg,
#addTerrainModal .wizard-panel > svg,
#addTerrainModal form > svg,
#addTerrainModal .add-terrain-form > svg {
  display: none !important;
}

#addTerrainModal .leaflet-marker-icon,
#addTerrainModal .custom-marker,
#addTerrainModal .marker-pin,
#addTerrainModal .marker-pill {
  display: none !important;
}

/* S'assurer que tous les SVG dans le modal ont une taille raisonnable */
#addTerrainModal svg:not(.wizard-nav svg) {
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Header */
.add-terrain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.add-terrain-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.add-terrain-header p {
  display: none;
}

.add-terrain-header .modal-close {
  position: static;
  background: transparent;
  color: #9ca3af;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  opacity: 1;
  transform: none;
  animation: none;
}

.add-terrain-header .modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Progress Steps */
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  background: transparent;
  transition: all 0.2s;
}

.wizard-step.active {
  background: #111827;
}

.wizard-step.completed {
  background: #dcfce7;
}

.wizard-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step.active .wizard-step-num {
  background: #ffffff;
  color: #111827;
}

.wizard-step.completed .wizard-step-num {
  background: #22c55e;
  color: white;
}

.wizard-step-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  display: none;
}

.wizard-step.active .wizard-step-label {
  display: block;
  color: #ffffff;
}

/* Body */
.add-terrain-body {
  padding: 1rem 1.25rem;
  background: #ffffff;
}

/* Panels */
.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

/* Form */
.add-terrain-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 450px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.add-terrain-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.add-terrain-form label .required {
  color: #dc2626;
}

.add-terrain-form label input,
.add-terrain-form label textarea,
.add-terrain-form label select {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
}

.add-terrain-form input,
.add-terrain-form textarea,
.add-terrain-form select {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.8rem;
  background: #f9fafb;
  color: #111827;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.add-terrain-form input:focus,
.add-terrain-form textarea:focus,
.add-terrain-form select:focus {
  outline: none;
  border-color: #111827;
  background: #ffffff;
}

.add-terrain-form textarea {
  resize: vertical;
  min-height: 40px;
}

.add-terrain-form input::placeholder,
.add-terrain-form textarea::placeholder {
  color: #9ca3af;
}

.add-terrain-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

/* Input with unit */
.input-with-unit {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.input-with-unit input {
  margin-top: 0;
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.input-with-unit span {
  padding: 8px 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Days selector - jours complets */
.days-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.day-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.day-btn:hover {
  border-color: #111827;
}

.day-btn.active {
  background: #111827;
  border-color: #111827;
  color: white;
}

/* Pricing Sliders */
.pricing-sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.slider-value {
  font-weight: 600;
  color: #111827;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111827;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111827;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #e5e7eb;
}

.wizard-nav .btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.wizard-nav .btn-secondary:hover {
  background: #f9fafb;
}

.wizard-nav .btn-primary {
  background: #111827;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.wizard-nav .btn-primary:hover {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.3);
}

.add-terrain-submit {
  background: #111827;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.add-terrain-submit:hover {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.3);
}

.add-terrain-submit svg {
  width: 14px;
  height: 14px;
}

/* File input */
.add-terrain-form input[type="file"] {
  padding: 10px;
  border: 1px dashed #d1d5db;
  background: #fafafa;
  cursor: pointer;
  font-size: 0.75rem;
}

.add-terrain-form input[type="file"]:hover {
  border-color: #111827;
}

/* Système d'horaires flexible */
.hours-section {
  display: grid;
  gap: 0.6rem;
}

.hours-section > label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Périodes matin/après-midi */
.hours-periods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.period-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.period-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  min-width: 90px;
  cursor: pointer;
}

.period-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}

.period-times {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.period-times input[type="time"] {
  padding: 6px 2px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  background: #ffffff;
  min-width: 95px;
  width: 95px;
  text-align: center;
  color: #1e293b;
}

.period-times input[type="time"]:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.period-times input[type="time"]:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.period-times span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.hours-mode-selector {
  display: flex;
  gap: 0.5rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  width: fit-content;
}

.mode-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mode-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mode-btn.active {
  background: #ffffff;
  color: #0071e3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hours-mode-content {
  display: grid;
  gap: 1rem;
}

.period-section {
  display: grid;
  gap: 0.4rem;
}

.period-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
}

.period-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0071e3;
}

#customMode textarea {
  width: 100%;
  min-height: 80px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  color: #1d1d1f;
  resize: vertical;
  line-height: 1.5;
}

#customMode textarea:focus {
  outline: none;
  border-color: #0071e3;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.days-selector {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.day-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.day-btn:hover {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.05);
  transform: translateY(-1px);
}

.day-btn.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-row input[type="time"] {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.hours-row input[type="time"]:disabled {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.hours-row span {
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
}

/* Input fichier */
.add-terrain-form input[type="file"] {
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  padding: 24px 20px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  color: #1e293b;
}

.add-terrain-form input[type="file"]::file-selector-button {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 16px;
  transition: all 0.2s ease;
}

.add-terrain-form input[type="file"]::file-selector-button:hover {
  background: #2563eb;
}

.add-terrain-form input[type="file"]:hover {
  border-color: #3b82f6;
  background: #f1f5f9;
}

/* Autocomplete suggestions */
.suggestions-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.suggestions-list:not(:empty) {
  display: block;
  padding: 0.4rem;
}

.suggestions-list li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.suggestions-list li:hover {
  background: rgba(15, 74, 163, 0.08);
}

/* Styles déplacés vers #addTerrainModal h3 et #addTerrainModal p plus haut */

/* Section tarifs */
.pricing-section {
  display: grid;
  gap: 0.8rem;
}

/* Contact row (email + phone) */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #1d1d1f;
  font-weight: 500;
}

.contact-field input {
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
}

@media (max-width: 640px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.pricing-table {
  display: grid;
  gap: 0.6rem;
  background: rgba(0, 113, 227, 0.03);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 113, 227, 0.1);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 1.5rem;
}

.pricing-label {
  font-size: 0.85rem;
  color: #1d1d1f;
  font-weight: 500;
}

.pricing-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 120px;
}

.pricing-input-group:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.pricing-input-group:focus-within {
  border-color: #0071e3;
  outline: none !important;
}

.pricing-input-group input {
  border: none;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  flex: 1;
  text-align: right;
  background: transparent;
  min-width: 0;
}

.pricing-input-group input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.pricing-input-group input::placeholder {
  color: #86868b;
  font-weight: 400;
}

.pricing-unit {
  font-size: 16px;
  font-weight: 600;
  color: #0071e3;
  flex-shrink: 0;
  min-width: 15px;
}

/* Masquer les flèches des inputs number */
.pricing-input-group input[type="number"]::-webkit-inner-spin-button,
.pricing-input-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pricing-input-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Picker d'heures personnalisé style Apple */
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="time"]::-webkit-datetime-edit {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0;
}

input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type="time"]::-webkit-datetime-edit-text {
  color: #86868b;
  padding: 0 4px;
}

input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  color: #0071e3;
  font-weight: 600;
}

input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus {
  background: #0071e3;
  color: #ffffff;
  outline: none;
}

/* Mode personnalisé - Horaires jour par jour */
.custom-schedule {
  display: grid;
  gap: 0.5rem;
}

.custom-day-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.custom-day-row:has(.custom-day-toggle.active) {
  background: rgba(0, 113, 227, 0.05);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.custom-day-toggle {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-align: left;
  width: 100%;
}

.custom-day-toggle:hover {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.05);
  transform: translateY(-1px);
}

.custom-day-toggle.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.custom-day-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.custom-day-hours input[type="time"] {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.custom-day-hours input[type="time"]:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.custom-day-hours span {
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
}


/* ============================
   16. SUCCESS MODAL (Apple Style)
   ============================ */

.success-modal-content {
  max-width: 420px !important;
  padding: 3rem 2rem !important;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%) !important;
}

.success-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 80px;
  height: 80px;
}

.success-icon-circle {
  stroke: #34c759;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  transform-origin: 50% 50%;
}

.success-icon-check {
  stroke: #34c759;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.success-icon.animate .success-icon-circle {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-icon.animate .success-icon-check {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
}

.success-message {
  font-size: 1rem;
  color: #86868b;
  margin: 0;
  line-height: 1.5;
}

.success-btn {
  margin-top: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  min-width: 200px;
}


/* Success modal variant for delete (red with cross) */
.delete-circle {
  stroke: #ff3b30;
}

.delete-cross {
  stroke: #ff3b30;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 57;
  stroke-dashoffset: 57;
}

.delete-icon.animate .delete-circle {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.delete-icon.animate .delete-cross {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

/* ============================
   17. MANAGE TERRAIN MODAL - NOUVEAU DESIGN
   ============================ */

.manage-modal-content {
  max-width: 1200px !important;
  width: 95vw !important;
  max-height: 95vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.manage-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.manage-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.manage-header h2 {
  margin: 0 0 0.8rem;
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manage-subtitle {
  margin: 0;
  opacity: 0.95;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.manage-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0 1rem;
}

.tab-btn {
  flex: 1;
  padding: 1.2rem 1.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 12px 12px 0 0;
}

.tab-btn:hover::before {
  width: 100%;
}

.tab-btn:hover {
  color: #667eea;
  transform: translateY(-2px);
}

.tab-btn.active {
  color: #667eea;
  background: transparent;
  border-bottom-color: #667eea;
}

.tab-btn.active::before {
  width: 100%;
}

.manage-content {
  height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.manage-content::-webkit-scrollbar {
  width: 6px;
}

.manage-content::-webkit-scrollbar-track {
  background: transparent;
}

.manage-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.tab-content {
  display: none;
  padding: 3rem;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
  display: block;
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.98);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

.manage-form {
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: white;
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.form-actions .btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-actions .btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.photos-section,
.news-section,
.races-section {
  text-align: center;
  padding: 2rem 0;
}

.upload-area {
  margin-bottom: 3rem;
}

.btn-upload {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-upload:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.photos-grid,
.news-list,
.races-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.empty-message {
  color: #9ca3af;
  font-style: italic;
  padding: 3rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 2px dashed #d1d5db;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .manage-modal-content {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 2.5vh auto !important;
  }
  
  .manage-content {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .manage-modal-content {
    max-width: 98vw !important;
    width: 98vw !important;
    margin: 1vh auto !important;
    max-height: 98vh !important;
  }
  
  .manage-header {
    padding: 2rem 1.5rem;
  }
  
  .manage-header h2 {
    font-size: 1.8rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .manage-tabs {
    flex-wrap: wrap;
    padding: 0 0.5rem;
  }
  
  .tab-btn {
    font-size: 0.9rem;
    padding: 1rem;
  }
  
  .manage-content {
    height: 400px;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
}


/* ============================
   18. CARTES TERRAINS PREMIUM
   ============================ */

.terrains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .terrains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .terrains-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
}

.terrain-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.terrain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 74, 163, 0.15);
}

.terrain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(15, 74, 163, 0.2), rgba(15, 74, 163, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.terrain-card:hover::before {
  opacity: 1;
}

.terrain-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1117;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.terrain-card-location {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.terrain-card-location svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  flex-shrink: 0;
}

.terrain-card-hours {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.terrain-card-hours svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Carrousel d'images - EN HAUT */
.terrain-card-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5edf7, #cfd8e6);
  border-radius: 16px 16px 0 0;
}

/* Body de la carte - EN BAS */
.terrain-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terrain-card-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terrain-card-slide {
  min-width: 100%;
  height: 100%;
}

.terrain-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terrain-card-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 3rem;
}

/* Indicateurs du carrousel */
.terrain-card-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.terrain-card-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.terrain-card-indicator.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Flèches du carrousel */
.terrain-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.terrain-card:hover .terrain-card-arrow {
  opacity: 1;
}

.terrain-card-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.terrain-card-arrow.prev {
  left: 12px;
}

.terrain-card-arrow.next {
  right: 12px;
}

.terrain-card-arrow svg {
  width: 18px;
  height: 18px;
  color: #374151;
}

.terrain-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0;
}

.terrain-card-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(15, 74, 163, 0.08);
  color: #0f4aa3;
}

.terrain-card-tag.status-disponible,
.terrain-card-tag.status-ouvert {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.terrain-card-tag.status-option {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.terrain-card-tag.status-indisponible {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.terrain-card-tag.status-ferme {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.terrain-card-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
}

.terrain-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

/* ============================
   19. GRANDE MODALE TERRAIN DETAIL
   ============================ */

.terrain-detail-modal .modal-content {
  width: min(1100px, 95vw);
  max-width: 1100px;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
}

.terrain-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 600px;
  max-height: 85vh;
}

/* Colonne gauche - Infos */
.terrain-detail-sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  max-height: 85vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 74, 163, 0.3) transparent;
}

.terrain-detail-sidebar::-webkit-scrollbar {
  width: 6px;
}

.terrain-detail-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.terrain-detail-sidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 74, 163, 0.3);
  border-radius: 3px;
}

.terrain-detail-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 74, 163, 0.5);
}

.terrain-detail-sidebar-section {
  margin-bottom: 2rem;
}

.terrain-detail-sidebar-section:last-child {
  margin-bottom: 0;
}

.terrain-detail-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.terrain-detail-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.terrain-detail-info-item:last-child {
  margin-bottom: 0;
}

.terrain-detail-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 74, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.terrain-detail-info-icon svg {
  width: 18px;
  height: 18px;
  color: #0f4aa3;
}

.terrain-detail-info-content {
  flex: 1;
}

.terrain-detail-info-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.15rem;
}

.terrain-detail-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0d1117;
  margin: 0;
  line-height: 1.4;
}

.terrain-detail-info-value a {
  color: #0071e3;
  text-decoration: none;
}

.terrain-detail-info-value a:hover {
  text-decoration: underline;
}

/* Statut dynamique dans la sidebar */
.terrain-detail-status-icon {
  transition: all 0.3s ease;
}

.terrain-detail-status-icon.ouvert,
.terrain-detail-status-icon.disponible {
  color: #10b981;
}

.terrain-detail-status-icon.ferme {
  color: #ef4444;
}

.terrain-detail-status-icon.option {
  color: #f59e0b;
}

.terrain-detail-status-icon.indisponible {
  color: #6b7280;
}

.terrain-detail-status-text {
  font-weight: 600 !important;
}

.terrain-detail-status-text.ouvert,
.terrain-detail-status-text.disponible {
  color: #10b981 !important;
}

.terrain-detail-status-text.ferme {
  color: #ef4444 !important;
}

.terrain-detail-status-text.option {
  color: #f59e0b !important;
}

.terrain-detail-status-text.indisponible {
  color: #6b7280 !important;
}

/* Spécificités avec badges */
.terrain-detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.terrain-detail-spec {
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: #374151;
}

.terrain-detail-spec strong {
  color: #0d1117;
}

/* Colonne droite - Contenu principal */
.terrain-detail-main {
  padding: 2rem;
  overflow-y: auto;
  background: #ffffff;
}

.terrain-detail-header {
  margin-bottom: 1.5rem;
}

.terrain-detail-name {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1117;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.terrain-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.terrain-detail-status.disponible,
.terrain-detail-status.status-disponible {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.terrain-detail-status.ouvert,
.terrain-detail-status.status-ouvert {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.terrain-detail-status.option,
.terrain-detail-status.status-option {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.terrain-detail-status.indisponible,
.terrain-detail-status.status-indisponible {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.terrain-detail-status.ferme,
.terrain-detail-status.status-ferme {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.terrain-detail-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Carrousel principal */
.terrain-detail-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e5edf7, #cfd8e6);
}

.terrain-detail-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terrain-detail-slide {
  min-width: 100%;
  height: 100%;
}

.terrain-detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terrain-detail-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.terrain-detail-carousel-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.terrain-detail-carousel-nav.prev {
  left: 16px;
}

.terrain-detail-carousel-nav.next {
  right: 16px;
}

.terrain-detail-carousel-nav svg {
  width: 20px;
  height: 20px;
  color: #374151;
}

.terrain-detail-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.terrain-detail-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.terrain-detail-carousel-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Section horaires */
.terrain-detail-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.terrain-detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0d1117;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terrain-detail-section-title svg {
  width: 20px;
  height: 20px;
  color: #0f4aa3;
}

.terrain-detail-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.terrain-detail-hours-day {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.terrain-detail-hours-day-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f4aa3;
  margin: 0 0 0.25rem;
}

.terrain-detail-hours-day-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.terrain-detail-hours-day-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1117;
  margin: 0;
}

/* Section courses */
.terrain-detail-races {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terrain-detail-race {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.terrain-detail-race:hover {
  border-color: rgba(15, 74, 163, 0.2);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.08);
}

.terrain-detail-race-date {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.terrain-detail-race-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f4aa3;
  line-height: 1;
}

.terrain-detail-race-month {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
}

.terrain-detail-race-info {
  flex: 1;
}

.terrain-detail-race-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d1117;
  margin: 0 0 0.25rem;
}

.terrain-detail-race-time {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.terrain-detail-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .terrain-detail-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }
  
  .terrain-detail-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 300px;
  }
  
  .terrain-detail-main {
    max-height: 60vh;
  }
  
  .terrain-detail-hours-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .terrains-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .terrain-detail-modal .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .terrain-detail-name {
    font-size: 1.5rem;
  }
}

/* Close button pour la modale terrain */
.terrain-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.terrain-detail-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}

.terrain-detail-close svg {
  width: 20px;
  height: 20px;
  color: #374151;
}


/* ============================
   20. MODALE GESTION TERRAIN (ADMIN)
   ============================ */

/* Champs de formulaire dans la sidebar */
.manage-field {
  margin-bottom: 1rem;
}

.manage-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.manage-field input,
.manage-field textarea,
.manage-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  background: white;
  transition: all 0.2s ease;
}

.manage-field input:focus,
.manage-field textarea:focus,
.manage-field select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.manage-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Status select */
.status-select {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
  cursor: pointer;
}

/* Section title row */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-add-small {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(15, 74, 163, 0.1);
  color: #0f4aa3;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-small:hover {
  background: rgba(15, 74, 163, 0.2);
}

/* Photo upload zone compact */
.photo-upload-zone {
  border: 2px dashed rgba(15, 74, 163, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: rgba(15, 74, 163, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.photo-upload-zone:hover {
  border-color: #0071e3;
  background: rgba(15, 74, 163, 0.05);
}

.photo-upload-zone span {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Photos grid manage */
.photos-grid-manage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.photo-item-edit {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}

.photo-item-edit.is-main {
  box-shadow: 0 0 0 3px #0071e3;
}

.photo-item-edit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge-main {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: #0071e3;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.photo-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-item-edit:hover .photo-actions {
  opacity: 1;
}

.photo-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.photo-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.photo-set-main-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.photo-set-main-btn:hover {
  background: #f59e0b;
  transform: scale(1.1);
}

/* Races list manage */
.races-list-manage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.race-item-manage {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.race-item-manage .race-date-box {
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.race-item-manage .race-day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f4aa3;
  line-height: 1;
}

.race-item-manage .race-month {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
}

.race-item-manage .race-info {
  flex: 1;
}

.race-item-manage .race-name {
  font-weight: 600;
  color: #0d1117;
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.race-item-manage .race-time {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.race-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.race-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Add race form inline */
.add-race-form-inline {
  background: rgba(15, 74, 163, 0.05);
  border-radius: 12px;
  padding: 1rem;
}

.form-row-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-row-inline input {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-row-inline input[type="text"] {
  flex: 2;
  min-width: 150px;
}

.form-row-inline input[type="date"],
.form-row-inline input[type="time"] {
  flex: 1;
  min-width: 120px;
}

.btn-primary-small {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  background: #0071e3;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel-small {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: #6b7280;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Empty message */
.empty-msg {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .manage-field-row {
    grid-template-columns: 1fr;
  }
  
  .form-row-inline {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-row-inline input {
    width: 100%;
  }
}


/* ============================
   21. FIX SCROLL MODALE GESTION
   ============================ */

/* Fix pour la modale de gestion terrain */
#manageTerrainModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh !important;
}

#manageTerrainModal .terrain-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#manageTerrainModal .terrain-detail-sidebar {
  overflow-y: auto;
  max-height: calc(90vh - 20px);
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#manageTerrainModal .terrain-detail-sidebar::-webkit-scrollbar {
  width: 6px;
}

#manageTerrainModal .terrain-detail-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#manageTerrainModal .terrain-detail-main {
  overflow-y: auto;
  max-height: calc(90vh - 20px);
  padding: 1.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 74, 163, 0.3) transparent;
}

#manageTerrainModal .terrain-detail-main::-webkit-scrollbar {
  width: 6px;
}

#manageTerrainModal .terrain-detail-main::-webkit-scrollbar-thumb {
  background: rgba(15, 74, 163, 0.3);
  border-radius: 3px;
}

/* Responsive pour la modale */
@media (max-width: 900px) {
  #manageTerrainModal .terrain-detail-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  #manageTerrainModal .terrain-detail-sidebar {
    max-height: 40vh;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  #manageTerrainModal .terrain-detail-main {
    max-height: 50vh;
  }
}


/* ============================
   22. STYLES MODALE GESTION AMÉLIORÉE
   ============================ */

/* Autocomplétion d'adresse */
#manageAddressSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0.25rem 0 0;
  display: none;
}

#manageAddressSuggestions li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.15s ease;
}

#manageAddressSuggestions li:hover {
  background: rgba(15, 74, 163, 0.08);
  color: #0f4aa3;
}

/* Grille des tarifs */
.pricing-grid-manage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pricing-item-manage {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pricing-item-manage label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.pricing-input-wrap {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.pricing-input-wrap:focus-within {
  border-color: #0071e3;
}

.pricing-input-wrap input {
  flex: 1;
  border: none;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  background: transparent;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}

.pricing-input-wrap input::-webkit-outer-spin-button,
.pricing-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pricing-input-wrap span {
  padding: 0 0.75rem;
  color: #6b7280;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  align-items: center;
}

/* Système d'horaires amélioré */
.hours-section-manage {
  background: rgba(15, 74, 163, 0.03);
  border-radius: 12px;
  padding: 1rem;
}

.days-selector-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.day-btn-manage {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-btn-manage:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.day-btn-manage.active {
  background: linear-gradient(135deg, #0071e3, #0077ed);
  border-color: #0071e3;
  color: white;
}

.hours-periods-manage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.period-row-manage {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.period-label-manage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #374151;
  min-width: 100px;
  cursor: pointer;
}

.period-label-manage input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0071e3;
}

.hours-inputs-manage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-inputs-manage input[type="time"] {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  background: white;
}

.hours-inputs-manage span {
  color: #9ca3af;
  font-size: 0.85rem;
}

.hours-preview-manage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(15, 74, 163, 0.2);
}

.hours-preview-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.hours-preview-value {
  font-size: 0.9rem;
  color: #0f4aa3;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .pricing-grid-manage {
    grid-template-columns: 1fr;
  }
  
  .period-row-manage {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .days-selector-manage {
    justify-content: center;
  }
}


/* ============================
   23. MARQUEURS CARTE LEAFLET
   ============================ */

.custom-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: #0071e3;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-pin::after {
  content: '';
  width: 14px;
  height: 14px;
  margin: 8px 0 0 8px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
}

/* Couleurs selon le statut */
.marker-pin.disponible,
.marker-pin.ouvert {
  background: #10b981;
}

.marker-pin.option {
  background: #f59e0b;
}

.marker-pin.indisponible {
  background: #6b7280;
}

.marker-pin.ferme {
  background: #ef4444;
}

/* Popup de la carte */
.map-popup {
  min-width: 200px;
}

.map-popup h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0d1117;
}

.map-popup p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #374151;
}


/* === STATUT RAISON (Dashboard) === */
.statut-raison-container {
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.statut-raison-box {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid;
  transition: all 0.3s ease;
}

.statut-raison-box.option {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.statut-raison-box.indisponible {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.statut-raison-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.statut-raison-box.option .statut-raison-label {
  color: #d97706;
}

.statut-raison-box.indisponible .statut-raison-label {
  color: #dc2626;
}

.statut-raison-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.2s ease;
}

.statut-raison-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.statut-raison-box.option .statut-raison-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.statut-raison-box.indisponible .statut-raison-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Affichage de la raison dans les cards et modales */
.terrain-card-raison,
.terrain-detail-raison {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.terrain-card-raison.option {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.terrain-card-raison.indisponible {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.terrain-card-raison svg,
.terrain-detail-raison svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================
   BOUTON ENREGISTRER MODERNE
   ============================ */

.btn-save-modern {
  position: relative;
  width: calc(100% - 2rem) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  border: none !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3) !important;
  margin: 1.5rem 1rem 1rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.btn-save-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-save-modern:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4) !important;
  background: linear-gradient(135deg, #5b52f0 0%, #8b46f7 100%) !important;
}

.btn-save-modern:hover::before {
  left: 100%;
}

.btn-save-modern:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3) !important;
}

/* Icône simple pour le bouton */
.btn-save-modern .save-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse-save {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  }
}

.btn-save-modern.pulse {
  animation: pulse-save 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-save-modern {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
}

/* ============================
   BROWSE LAYOUT - Liste + Carte (Full Width)
   ============================ */

.browse-section {
  padding: 2rem 0;
  margin: 0;
  background: #f8fafc;
}

.browse-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 600px;
}

.browse-sidebar {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  height: 100%;
  max-height: 600px;
}

.browse-header {
  padding: 1.5rem 1.5rem 1rem;
}

.browse-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
}

.browse-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.browse-subtitle a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}

.browse-subtitle a:hover {
  text-decoration: underline;
}

.browse-filters {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Search Box - toujours visible */
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  width: 100%;
}

.search-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin: 2px;
}

.search-toggle:hover {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #1a1a1a;
  outline: none;
  padding: 0.75rem 1rem;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #475569;
  cursor: pointer;
  min-width: 130px;
}

.filter-select:focus {
  outline: none;
  border-color: #0071e3;
}

.searchbar-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.searchbar-inline:focus-within {
  border-color: #0071e3;
  background: #fff;
}

.searchbar-inline svg {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
  flex-shrink: 0;
}

.searchbar-inline input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: #334155;
  outline: none;
}

.searchbar-inline input::placeholder {
  color: #94a3b8;
}

.filter-chip {
  padding: 0.35rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 0.7rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.filter-chip.active {
  background: #0071e3;
  border-color: #0071e3;
  color: #fff;
}

.browse-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.browse-count strong {
  color: #1e293b;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.view-btn {
  padding: 0.4rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn svg {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
}

.view-btn.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn.active svg {
  stroke: #0071e3;
}

.browse-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  max-height: calc(100% - 200px);
}

.browse-list::-webkit-scrollbar {
  width: 6px;
}

.browse-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.browse-loading {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Terrain Item - Style carte comme la reference */
.terrain-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.terrain-item:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 12px rgba(0,113,227,0.1);
  transform: translateY(-1px);
}

.terrain-item-img {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.terrain-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.terrain-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.terrain-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.terrain-item-fav {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s;
}

.terrain-item-fav:hover {
  color: #ef4444;
}

.terrain-item-fav svg {
  width: 18px;
  height: 18px;
}

.terrain-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.terrain-item-type {
  color: #64748b;
}

.terrain-item-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #22c55e;
  font-weight: 500;
}

.terrain-item-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.terrain-item-status.closed {
  color: #ef4444;
}

.terrain-item-location {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.terrain-item-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.terrain-item-hours {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.terrain-item-hours svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.terrain-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.terrain-item-owner {
  display: flex;
  align-items: center;
}

.terrain-item-owner-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terrain-item-owner-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.terrain-item-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.terrain-item-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
}

.terrain-item-btn {
  padding: 0.4rem 0.75rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.terrain-item-btn:hover {
  background: #0071e3;
}

/* Carte */
.browse-map {
  position: relative;
  background: #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

.browse-map #osm-map {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Bouton localisation sur la carte */
.map-locate-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.map-locate-btn:hover {
  background: #0071e3;
}

.map-locate-btn:hover svg {
  stroke: #fff;
}

.map-locate-btn svg {
  width: 20px;
  height: 20px;
  stroke: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
  .browse-layout {
    grid-template-columns: 1fr 1fr;
    height: 550px;
    gap: 1rem;
  }
  
  .browse-section {
    padding: 1.5rem 0;
  }
}

@media (max-width: 900px) {
  .browse-layout {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
  }
  
  .browse-sidebar {
    max-height: 500px;
  }
  
  .browse-map {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .browse-layout {
    padding: 0 1rem;
  }
  
  .browse-sidebar {
    border-radius: 12px;
    order: 1;
  }
  
  .browse-map {
    order: 2;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .filter-row {
    flex-wrap: wrap;
  }
  
  .filter-select {
    flex: 1;
    min-width: 100px;
  }
  
  .terrain-item-img {
    width: 80px;
    height: 60px;
  }
}


/* Message quand aucun terrain */
.browse-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  height: 100%;
}

.browse-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.browse-empty h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.browse-empty p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}


/* Marqueurs carte style pin premium */
.map-marker-pill {
  background: transparent;
  border: none;
}

.marker-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid #22c55e;
  position: relative;
}

.marker-pill.closed {
  border-color: #ef4444;
}

.marker-pill:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.marker-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.marker-pill-icon svg {
  width: 16px;
  height: 16px;
  stroke: #1a1a1a;
}

.marker-pill-name {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: rotate(45deg) translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.marker-pill-name::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
}

.marker-pill:hover .marker-pill-name {
  opacity: 1;
}

/* Popup moderne */
.map-popup-modern {
  padding: 0.5rem;
  min-width: 200px;
}

.map-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.map-popup-modern h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.map-popup-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.map-popup-status.open {
  background: #dcfce7;
  color: #166534;
}

.map-popup-status.closed {
  background: #fee2e2;
  color: #991b1b;
}

.map-popup-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
  margin: 0.25rem 0;
}

.map-popup-location svg {
  flex-shrink: 0;
}

.map-popup-type {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.25rem 0;
}

.map-popup-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.map-popup-btn:hover {
  background: #0071e3;
}

/* Override Leaflet popup styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
  margin: 0.75rem;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ============================
   DASHBOARD PREMIUM
   ============================ */

.dashboard-page {
  background: #f8fafc;
}

.dash-main {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

/* Sidebar */
.dash-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.dash-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.dash-user-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.dash-user-role {
  font-size: 0.75rem;
  color: #64748b;
}

.dash-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.dash-nav-item svg {
  width: 20px;
  height: 20px;
}

.dash-nav-item:hover {
  background: #f1f5f9;
  color: #1a1a1a;
}

.dash-nav-item.active {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  color: #fff;
}

.dash-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

.dash-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #ef4444;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.dash-logout svg {
  width: 20px;
  height: 20px;
}

.dash-logout:hover {
  background: #fef2f2;
}

/* Content */
.dash-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dash-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.dash-header p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dash-btn-primary svg {
  width: 18px;
  height: 18px;
}

.dash-btn-primary:hover {
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 74, 163, 0.4);
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.dash-stat-icon.blue { background: linear-gradient(135deg, #0f4aa3, #1a67e3); }
.dash-stat-icon.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.dash-stat-icon.green { background: linear-gradient(135deg, #059669, #10b981); }
.dash-stat-icon.orange { background: linear-gradient(135deg, #d97706, #f59e0b); }

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.dash-stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

/* Main Grid */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

.dash-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

.dash-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.dash-section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.dash-badge {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* Terrain List */
.dash-terrain-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-terrain-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s;
}

.dash-terrain-card:hover {
  background: #f1f5f9;
}

.dash-terrain-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.dash-terrain-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-terrain-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-terrain-thumb-placeholder svg {
  width: 24px;
  height: 24px;
  color: #94a3b8;
}

.dash-terrain-info {
  flex: 1;
  min-width: 0;
}

.dash-terrain-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.dash-terrain-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.dash-terrain-location svg {
  width: 14px;
  height: 14px;
}

.dash-terrain-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.dash-terrain-stats strong {
  color: #1a1a1a;
}

.dash-terrain-actions {
  display: flex;
  gap: 0.5rem;
}

.dash-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dash-btn-icon svg {
  width: 18px;
  height: 18px;
}

.dash-btn-icon:hover {
  background: #0f4aa3;
  color: #fff;
}

.dash-btn-icon.danger:hover {
  background: #ef4444;
}

/* Empty State */
.dash-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.dash-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-empty-icon svg {
  width: 32px;
  height: 32px;
  color: #94a3b8;
}

.dash-empty h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.dash-empty p {
  margin: 0 0 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.dash-empty-small {
  padding: 2rem;
  text-align: center;
}

.dash-empty-small p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Activity List */
.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 10px;
}

.dash-activity-date {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f4aa3, #1a67e3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.dash-activity-date .day {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.dash-activity-date .month {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
}

.dash-activity-info h5 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
}

.dash-activity-info p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Chart Placeholder */
.dash-chart-placeholder {
  padding: 1rem 0;
}

.dash-mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.dash-chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #0f4aa3, #1a67e3);
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: height 0.3s ease;
}

.dash-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0;
  font-size: 0.65rem;
  color: #94a3b8;
}

/* ===== Premium Analytics Card ===== */
.dash-analytics-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.dash-period-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 20px;
  font-weight: 500;
}

.dash-analytics-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.dash-analytics-total {
  display: flex;
  flex-direction: column;
}

.dash-analytics-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.dash-analytics-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.dash-analytics-trend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dash-analytics-trend.up {
  background: #dcfce7;
  color: #16a34a;
}

.dash-analytics-trend.down {
  background: #fee2e2;
  color: #dc2626;
}

.dash-analytics-trend svg {
  width: 16px;
  height: 16px;
}

.dash-area-chart {
  height: 80px;
  margin-bottom: 0.5rem;
}

.dash-area-chart svg {
  width: 100%;
  height: 100%;
}

.dash-chart-days {
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.dash-chart-days span {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.dash-chart-days span.today {
  color: #3b82f6;
  font-weight: 700;
}

/* ===== Stats Overview Cards ===== */
.dash-stats-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-stat-overview-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.dash-stat-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-stat-overview-title {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.dash-stat-overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-overview-icon svg {
  width: 20px;
  height: 20px;
}

.dash-stat-overview-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.dash-stat-overview-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.dash-stat-overview-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.dash-stat-overview-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dash-stat-overview-change {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.dash-stat-overview-change.up {
  color: #16a34a;
}

.dash-stat-overview-change svg {
  width: 14px;
  height: 14px;
}

.dash-stat-overview-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== Main Line Chart ===== */
.dash-main-chart {
  margin-bottom: 1.5rem;
}

.dash-chart-legend {
  display: flex;
  gap: 1rem;
}

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.dash-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-legend-dot.blue {
  background: #3b82f6;
}

.dash-line-chart {
  display: block;
  padding: 1.5rem 0;
}

.dash-chart-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0;
  min-width: 30px;
  flex-shrink: 0;
}

.dash-chart-y-axis span {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: right;
}

.dash-chart-area {
  flex: 1;
  position: relative;
  height: 200px;
  min-width: 0;
}

.dash-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-chart-points {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5% 0;
  pointer-events: none;
}

.dash-chart-point {
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.dash-chart-point:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.dash-chart-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.dash-chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.dash-chart-point:hover .dash-chart-tooltip {
  opacity: 1;
  visibility: visible;
}

.dash-chart-tooltip strong {
  font-size: 1rem;
}

.dash-chart-tooltip small {
  color: #94a3b8;
}

.dash-chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-left: 38px;
}

.dash-chart-x-axis span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

/* ===== Performance Section ===== */
.dash-performance-section {
  margin-bottom: 1.5rem;
}

.dash-performance-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.dash-performance-item {
  padding: 0.75rem 0;
}

.dash-performance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dash-performance-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.dash-performance-stats {
  display: flex;
  gap: 1rem;
}

.dash-perf-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #64748b;
}

.dash-perf-stat svg {
  width: 14px;
  height: 14px;
}

.dash-perf-stat.likes svg {
  color: #ef4444;
}

.dash-performance-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.dash-performance-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Responsive Stats */
@media (max-width: 1024px) {
  .dash-stats-overview {
    grid-template-columns: 1fr;
  }
  
  .dash-chart-area {
    height: 150px;
  }
}

/* Aside */
.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dash-main-grid {
    grid-template-columns: 1fr;
  }
  
  .dash-aside {
    flex-direction: row;
  }
  
  .dash-aside .dash-section {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .dash-sidebar {
    display: none;
  }
  
  .dash-content {
    margin-left: 0;
    padding: 1rem;
  }
  
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .dash-aside {
    flex-direction: column;
  }
}


/* Stats Section Full */
.dash-stats-section {
  margin-top: 0;
}

.dash-stats-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dash-stats-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
}

.dash-stat-row-label {
  color: #64748b;
  font-size: 0.9rem;
}

.dash-stat-row-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f4aa3;
}

.dash-chart-large {
  padding: 1rem 0;
}

.dash-mini-chart.large {
  height: 150px;
}

@media (max-width: 768px) {
  .dash-stats-full-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================
   SECTION A PROPOS
   ============================ */

.about-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(15, 74, 163, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(15, 74, 163, 0.08);
  color: #0f4aa3;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.about-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #0d1117;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 2rem;
  max-width: 540px;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(15, 74, 163, 0.08);
  border-bottom: 1px solid rgba(15, 74, 163, 0.08);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0f4aa3;
  line-height: 1;
}

.about-stat-label {
  font-size: 0.9rem;
  color: #64748b;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 74, 163, 0.06);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.about-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 74, 163, 0.1);
  border-color: rgba(15, 74, 163, 0.12);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.about-feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d1117;
  margin: 0 0 0.35rem;
}

.about-feature-text p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e5edf7 0%, #cfd8e6 100%);
  box-shadow: 0 20px 50px rgba(15, 74, 163, 0.15);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-wrapper.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrapper.no-image::after {
  content: "MXBZH";
  font-size: 3rem;
  font-weight: 700;
  color: rgba(15, 74, 163, 0.15);
  letter-spacing: 0.1em;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 74, 163, 0.1) 100%);
  pointer-events: none;
}

/* About Video */
.about-video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  aspect-ratio: 3/4;
  max-height: 580px;
  width: 100%;
  max-width: 450px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 
    0 25px 50px -12px rgba(15, 74, 163, 0.35),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(15, 74, 163, 0.1);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  animation: videoPulse 3s ease-in-out infinite;
}

/* Bordure lumineuse animée */
.about-video-wrapper::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(
    45deg,
    #0f4aa3,
    #3b82f6,
    #60a5fa,
    #0f4aa3,
    #3b82f6
  );
  background-size: 400% 400%;
  border-radius: 27px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
  filter: blur(8px);
  opacity: 0.7;
}

/* Effet de brillance qui passe */
.about-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: videoShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  border-radius: 24px;
}

@keyframes videoPulse {
  0%, 100% {
    box-shadow: 
      0 25px 50px -12px rgba(15, 74, 163, 0.35),
      0 12px 24px -8px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 
      0 30px 60px -12px rgba(15, 74, 163, 0.5),
      0 15px 30px -8px rgba(0, 0, 0, 0.3),
      0 0 50px rgba(59, 130, 246, 0.4);
  }
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes videoShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.about-video-wrapper:hover {
  box-shadow: 
    0 35px 70px -15px rgba(15, 74, 163, 0.6),
    0 20px 40px -10px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 130, 246, 0.5);
  transform: translateY(-15px) scale(1.03) rotate(0deg);
  animation-play-state: paused;
}

.about-video-wrapper:hover::before {
  opacity: 0.4;
  filter: blur(6px);
}

.about-video-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  border-radius: 24px;
}

/* Responsive About */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-visual {
    order: -1;
  }
  
  .about-image-wrapper {
    aspect-ratio: 16/9;
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 4rem 0;
  }
  
  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .about-stat {
    min-width: 80px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .about-feature {
    padding: 1rem;
  }
  
  .about-feature-icon {
    width: 42px;
    height: 42px;
  }
  
  .about-feature-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* ============================
   SYSTÈME D'HORAIRES FLEXIBLE
   ============================ */

/* Toggle mode horaires */
.hours-mode-toggle {
  display: flex;
  gap: 0;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 1rem;
}

.hours-mode-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hours-mode-btn:hover {
  color: #374151;
}

.hours-mode-btn.active {
  background: #ffffff;
  color: #0071e3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Apercu horaires */
.hours-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  margin-top: 0.75rem;
}

.hours-preview-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.hours-preview-value {
  font-size: 0.8rem;
  color: #0369a1;
  font-weight: 600;
}

/* Mode personnalise - Liste verticale compacte */
.custom-days-list,
.custom-days-list-manage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.custom-day-row,
.custom-day-row-manage {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.custom-day-row:has(.custom-day-check:checked),
.custom-day-row-manage:has(.custom-day-check-manage:checked) {
  background: #eff6ff;
  border-color: #93c5fd;
}

.custom-day-toggle,
.custom-day-toggle-manage {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 80px;
  flex-shrink: 0;
  cursor: pointer;
}

.custom-day-toggle input[type="checkbox"],
.custom-day-toggle-manage input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-day-name,
.custom-day-toggle-manage span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
}

.custom-day-hours,
.custom-day-hours-manage {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.custom-day-hours input[type="time"],
.custom-day-hours-manage input[type="time"] {
  padding: 6px 2px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #ffffff;
  min-width: 95px;
  width: 95px;
  text-align: center;
  color: #1e293b;
  font-family: inherit;
}

.custom-day-hours input[type="time"]:disabled,
.custom-day-hours-manage input[type="time"]:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.custom-day-hours input[type="time"]:not(:disabled):focus,
.custom-day-hours-manage input[type="time"]:not(:disabled):focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.custom-day-hours span,
.custom-day-hours-manage span {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Mode simple/custom visibility */
.hours-simple-mode,
.hours-simple-mode-manage {
  display: block;
}

.hours-custom-mode,
.hours-custom-mode-manage {
  display: none;
}

/* Scrollbar custom */
.custom-days-list::-webkit-scrollbar,
.custom-days-list-manage::-webkit-scrollbar {
  width: 4px;
}

.custom-days-list::-webkit-scrollbar-track,
.custom-days-list-manage::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.custom-days-list::-webkit-scrollbar-thumb,
.custom-days-list-manage::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .hours-mode-toggle {
    width: 100%;
  }
  
  .hours-mode-btn {
    flex: 1;
    text-align: center;
    padding: 8px 8px;
    font-size: 0.75rem;
  }
  
  .custom-day-toggle,
  .custom-day-toggle-manage {
    width: 70px;
  }
  
  .custom-day-hours input[type="time"],
  .custom-day-hours-manage input[type="time"] {
    width: 70px;
    font-size: 0.75rem;
  }
}
