/* Theme sombre premium : fond noir, texte blanc, accent rouge #D32F2F */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --surface: #0d0d0f;
  --surface-2: #121218;
  --text: #ffffff;
  --muted: #c2c6d0;
  --accent: #d32f2f;
  --accent-strong: #f04b4b;
  --border: #1f1f26;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

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

body.modal-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: "Futura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 55px;
  width: auto;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 60px 5vw 90px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.45), rgba(0,0,0,0.75));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-left {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  display: none;
}

.hero h1 {
  font-size: clamp(3rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  margin: 0;
}

.hero-sub {
  color: #f1f1f1;
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn {
  border-radius: 14px;
  font-weight: 800;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero .btn.primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.hero .btn.primary:hover {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  color: #000000;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.3);
}

.hero .btn.primary:active {
  transform: translateY(-2px) scale(0.98);
}

.hero .btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.hero .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.2);
}

.hero .btn.secondary:active {
  transform: translateY(-2px) scale(0.98);
}

.hero-advantages {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(320px, 100%);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adv-item {
  text-align: center;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.adv-item:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Bloc avantages sous le hero */
.advantages-section {
  padding: 32px 5vw 38px;
  position: relative;
  z-index: 2;
}

.advantages-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.advantages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-dots {
  display: none !important;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.05);
}

.section {
  padding: 50px 5vw;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 500px));
  gap: 22px;
  justify-content: center;
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.car-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .car-image {
    height: 240px;
  }
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
}

.badge-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.car-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.car-year {
  margin: 0 0 4px;
}
.car-year:empty {
  display: none;
}

.car-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.car-band span {
  word-break: break-word;
  hyphens: auto;
}

.car-footer {
  padding: 12px 16px 16px;
  margin-top: auto;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn::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.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  color: #000000;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn.primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 185, 11, 0.15);
}

.btn.secondary:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn.ghost:active {
  transform: translateY(0);
}

.vehicle-cta {
  display: inline-block;
  width: 100%;
  border: 1px solid #ffffff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  color: #000000;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.vehicle-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
  transition: left 0.6s ease;
}

.vehicle-cta:hover::before {
  left: 100%;
}

.vehicle-cta:hover,
.vehicle-cta:focus-visible {
  background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
  border-color: #ffffff;
  color: #000000;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.vehicle-cta:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.contact-list,
.social-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.contact-label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.contact-value {
  color: var(--text);
  font-weight: 700;
}

.contact-list a,
.social-list a {
  color: var(--text);
  font-weight: 700;
}

.social-icons {
  gap: 10px;
}

.social-icons li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 32px;
  overflow-y: auto;
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  width: min(1300px, 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid var(--border);
  margin-top: 24px;
}

.booking-modal {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
}

.modal-header h3 {
  margin: 4px 0;
}

.booking-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.booking-top {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.booking-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
}

.date-time-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.date-display {
  cursor: default;
  background: var(--surface) !important;
  color: var(--text);
  user-select: none;
}

.date-display::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.booking-form-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariffs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariffs-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tariff-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tariff-section .tariff-heading {
  font-weight: 700;
  margin: 0;
}

.tariff-line {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.booking-gallery {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  position: relative;
  height: 105/*  */0px;
  border-radius: 12px;
  overflow: hidden;
  background: #070707;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

/* Galerie : mini carrousel de 6 vignettes max */
.gallery-thumbs-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 2px 0;
  max-width: calc((88px + 10px) * 10); /* Affiche jusqu'à 10 vignettes visibles */
  scroll-behavior: smooth;
}

.gallery-thumb {
  width: 88px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #000000;
  cursor: pointer;
  flex: 0 0 auto;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: #ffffff;
}

.thumbs-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.thumbs-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-thumbs-wrapper {
  column-gap: 6px;
}

.booking-form-wrap {
  display: flex;
  flex-direction: column;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

/* Inputs date/time : les popups natives peuvent varier selon le navigateur */
input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
}

select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 40px 12px 14px;
  width: 100%;
  max-width: 300px;
  appearance: none;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: var(--surface);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
}

select option {
  background: var(--surface);
  color: var(--text);
  padding: 12px;
}

/* Select wrapper */
.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.select-wrapper select {
  max-width: 100%;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 4px;
}

.full-width {
  grid-column: 1 / -1;
}

.half {
  grid-column: span 1;
}

.status {
  margin-top: 10px;
  font-weight: 700;
}

.status.error {
  color: #f07178;
}

.status.success {
  color: #7de28d;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.modal-actions .btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d4a50a 100%);
  color: #000000;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.modal-actions .btn.primary:hover {
  background: linear-gradient(135deg, #ffc107 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.modal-actions .btn.primary:active {
  transform: translateY(-1px) scale(0.98);
}

.modal-actions .btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.modal-actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.info-note {
  margin-top: 10px;
}

.field-error {
  color: #f07178;
  font-size: 0.85rem;
  min-height: 16px;
}

.calendar-block {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-month {
  font-weight: 800;
}

.calendar-nav {
  display: flex;
  gap: 6px;
}

.calendar-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.calendar-weekday {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 6px 0;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px 8px;
  min-height: 52px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-day.muted {
  color: var(--muted);
}

.calendar-day.booked {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.calendar-day.in-range {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.day--booked {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(211, 47, 47, 0.7);
  box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.35);
  opacity: 0.55;
}

.calendar-day.day--booked-outline {
  border-color: rgba(211, 47, 47, 0.7);
  box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.35);
}

.calendar-day.day--edge {
  /* Même style que les autres jours réservés */
  border-color: rgba(211, 47, 47, 0.7);
  box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.35);
}

/* Jour edge qui est aussi disabled (début ET fin de réservations) -> grisé */
.calendar-day.day--edge.disabled {
  opacity: 0.55;
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, 0.4);
}

.calendar-day.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day .day-number {
  display: block;
  line-height: 1.2;
}

.calendar-day .day-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
  min-height: 10px;
}

.calendar-day .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.calendar-day .day-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
}

.calendar-day .booked-dot {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.calendar-day.has-confirmed {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Légende du calendrier */
.calendar-legend {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
}

.legend-booked {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(211, 47, 47, 0.7);
  box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.35);
}

/* Jours edge cliquables - même style visuel mais curseur pointer */
.calendar-day.day--edge-clickable {
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.85;
}

.calendar-day.day--edge-clickable:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Sélecteur d'heure personnalisé */
.custom-time-picker {
  position: relative;
  width: 100%;
}

.time-picker-display {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.time-picker-display:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.time-picker-display:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.time-picker-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.custom-time-picker.open .time-picker-arrow {
  transform: rotate(180deg);
}

.time-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
}

.custom-time-picker.open .time-picker-dropdown {
  display: block;
}

.time-picker-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
}

.time-column {
  overflow-y: auto;
  padding: 8px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.time-column:first-child {
  border-right: 1px solid var(--border);
}

.time-column::-webkit-scrollbar {
  width: 4px;
}

.time-column::-webkit-scrollbar-track {
  background: transparent;
}

.time-column::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.time-column::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.time-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.time-option:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.time-option:active:not(.disabled) {
  transform: scale(0.97);
}

.time-option.selected {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.time-option.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.confirmation {
  margin-top: 12px;
  color: #7de28d;
  font-weight: 700;
}

.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .hero {
    min-height: 90vh;
    padding: 50px 5vw 70px;
    align-items: flex-end;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: 320px;
  }

  .booking-modal {
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero {
    padding: 40px 4vw 60px;
    justify-content: center;
  }

  .modal-content {
    padding: 16px;
  }

  .booking-layout {
    gap: 12px;
  }

  .gallery-main {
    height: 320px;
  }

  .gallery-thumbs {
    max-width: 100%;
  }

  .modal-content {
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Layout mobile hero + menu */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    padding: 12px 4vw;
  }

  .logo-wrap {
    flex: 1;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
    padding: 12px 5vw 14px;
    background: #000000;
    border-bottom: 1px solid var(--border);
    z-index: 25;
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: left;
  }

  .hero {
    padding: 32px 4vw 64px;
    justify-content: flex-end;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 20px;
  }

  .hero-left {
    order: 1;
    max-width: 100%;
    gap: 14px;
  }
  .advantages-section {
    padding: 24px 5vw 30px;
  }

  .advantages-inner {
    max-width: 680px;
  }

  .advantages-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .adv-item {
    white-space: normal;
  }
}

/* Admin */
.admin-wrapper {
  padding: 40px 5vw 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.admin-header {
  margin-bottom: 20px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  font-size: 0.95rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.muted-note {
  color: var(--muted);
  font-size: 0.9rem;
}
