:root {
  --bg: #0d0d0f;
  --bg-alt: #16161a;
  --surface: #1c1c21;
  --border: #2b2b31;
  --text: #f2f1ee;
  --text-muted: #a8a6a1;
  --red: #c62828;
  --red-hover: #e53935;
  --gold: #d4a94a;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--red); }
.logo-img { height: 40px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }

.btn-nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
}
.btn-nav-cta:hover { background: var(--red-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(198,40,40,0.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.hero-tagline {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-hover); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-muted); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-logo {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 40px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col h3 { margin-top: 0; }
.two-col p { color: var(--text-muted); }

.values-card, .price-card, .salle-card, .sport-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.values-card h3 { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.sport-card { text-align: center; transition: transform 0.2s, border-color 0.2s; }
.sport-card:hover { transform: translateY(-4px); border-color: var(--red); }
.sport-icon { font-size: 2.2rem; margin-bottom: 12px; }
.sport-card h3 { margin: 0 0 10px; text-transform: uppercase; font-size: 1.05rem; }
.sport-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.salle-card h3 { margin-top: 0; text-transform: uppercase; font-size: 1.1rem; }
.salle-meta { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin: 4px 0 14px; }
.salle-grid-single { max-width: 420px; margin: 0 auto; }
.salle-grid-single .salle-card { text-align: center; }
.salle-grid-single .salle-card p { color: var(--text-muted); }

.placeholder-note {
  color: #7d7b76;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
}
.placeholder-note.center { text-align: center; margin-top: 24px; }
.placeholder-inline {
  color: #7d7b76;
  font-style: italic;
}

/* Planning */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.planning-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.planning-table th, .planning-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.planning-table th {
  background: var(--surface);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.planning-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.planning-table tbody tr:last-child td { border-bottom: none; }

/* Booking */
.booking-embed { max-width: 720px; margin: 0 auto; }
.booking-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
}
.booking-placeholder p:not(.hero-kicker) { color: var(--text-muted); margin: 8px 0 0; }
.booking-placeholder .placeholder-note { margin-top: 14px; }

/* Pricing */
.pricing-grid { align-items: stretch; }
.price-card { text-align: center; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--red); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.price-card h3 { margin: 6px 0 6px; text-transform: uppercase; font-size: 1.05rem; }
.price { font-size: 2rem; font-weight: 800; margin: 0 0 20px; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.price-card .check-list { text-align: left; margin-top: auto; }

/* Form */
.reg-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label, .form-field legend {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  padding: 0;
}
fieldset.form-field { border: none; padding: 0; margin: 0 0 20px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkbox-item input { width: auto; }
.checkbox-item.consent { margin-bottom: 22px; align-items: flex-start; }
.form-status {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #4caf50; }
.form-status.error { color: var(--red-hover); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  aspect-ratio: 4 / 3;
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover { transform: translateY(-3px); border-color: var(--red); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--text);
  font-size: 0.78rem;
  text-align: left;
  padding: 20px 12px 10px;
  font-weight: 600;
}

.memorial-grid { margin-top: 32px; }

.memorial-highlight {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
}
.memorial-highlight-photo {
  aspect-ratio: 16 / 10;
  padding: 0;
}
.memorial-highlight-text h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 4px 0 14px;
}
.memorial-highlight-text p:not(.hero-kicker) { color: var(--text-muted); margin: 0; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Contact */
.contact-info p { margin: 0 0 14px; }
.contact-info a { color: var(--gold); }
.contact-form-note { color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .memorial-highlight { grid-template-columns: 1fr; }
  .memorial-highlight-photo { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .btn-nav-cta { align-self: flex-start; }
}
