:root {
  --navy: #1c2fb0;
  --navy-dark: #10186a;
  --blue: #3547d1;
  --green: #2e8b3d;
  --gold: #d99a2b;
  --red: #d8452b;
  --cream: #faf7f0;
  --ink: #1f2430;
  --ink-soft: #5a6272;
  --border: #e6e2d8;
  --radius: 16px;
  --shadow: 0 12px 30px -12px rgba(28, 47, 74, 0.18);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 10px;
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 8px 20px -8px rgba(217, 154, 43, 0.6);
}
.btn-primary:hover { background: #c98a25; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: inherit;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-badge {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
}
.logo-text small { color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav li { flex-shrink: 0; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-active { color: var(--blue); }

.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;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #2e40c9, var(--navy-dark) 65%);
  color: #fff;
  padding: 110px 0 130px;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero-lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-shape {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,227,74,0.35), transparent 70%);
  z-index: 1;
}

/* SECTIONS */
.section { padding: 96px 0; }
.section-alt { background: #f1ede2; }

.objet-grid, .actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.objet-card, .action-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.objet-icon, .action-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.objet-card p, .action-card p { margin-bottom: 0; font-size: 0.95rem; }

.actions-cta { margin-top: 32px; }

.affiliation-box {
  margin-top: 48px;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.affiliation-box p:last-child { margin-bottom: 0; }

/* ADHÉRER */
.adherer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.check-list {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--ink-soft);
}
.check-list li { margin-bottom: 8px; }

.note {
  font-size: 0.9rem;
  font-style: italic;
  background: #f1ede2;
  padding: 14px 18px;
  border-radius: 12px;
}

.adherer-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.adherer-card h3 { color: #fff; }
.adherer-card p { color: rgba(255,255,255,0.75); }

.adherer-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.adherer-form label { font-size: 0.85rem; font-weight: 600; }
.adherer-form input, .adherer-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.adherer-form .btn { margin-top: 8px; align-self: flex-start; }
.adherer-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin: 0;
  font-size: 0.9rem;
  display: none;
}
.form-feedback.is-success { display: block; color: #b8f0c8; }
.form-feedback.is-error { display: block; color: #ffc9bd; }

/* ACTUALITÉS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.news-tag {
  display: inline-block;
  background: rgba(53, 71, 209, 0.1);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.news-date { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.news-card p:last-child { margin-bottom: 0; font-size: 0.92rem; }

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(28, 47, 74, 0.28); }
.social-link svg {
  color: #fff;
  background: #1877F2;
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}

.map-placeholder {
  height: 280px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #eee6d4, #eee6d4 10px, #e6dcc5 10px, #e6dcc5 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 600;
  border: 1px dashed var(--border);
}

.contact-map {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* FOOTER */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p { color: rgba(255,255,255,0.6); max-width: 420px; }
.footer-copy { font-size: 0.85rem; margin: 0; }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* PLANNING D'ACTIVITÉS */
.hero-motto {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.day-group { margin-top: 44px; }
.day-group:first-of-type { margin-top: 40px; }

.day-title {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.activity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.activity-icon { font-size: 1.6rem; margin-bottom: 8px; }
.activity-time {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 6px;
}
.activity-card h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.activity-place { font-size: 0.9rem; margin-bottom: 10px; }
.activity-contact { font-size: 0.88rem; margin-bottom: 0; color: var(--ink); }
.activity-contact a { color: var(--blue); text-decoration: none; font-weight: 600; }
.activity-contact a:hover { text-decoration: underline; }
.activity-contact-multi { display: flex; gap: 4px; }
.activity-contact-multi .contact-label { flex-shrink: 0; }
.activity-contact-multi .contact-names { display: flex; flex-direction: column; }

/* LOCATION DE SALLE - homepage banner */
.location-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.location-banner h2 { color: #fff; margin-bottom: 10px; }
.location-banner .section-lead { color: rgba(255,255,255,0.78); margin: 0; max-width: 480px; }
.location-banner .eyebrow { color: var(--gold); }

/* LOCATION DE SALLE - page interne */
.hero-compact { padding: 90px 0 100px; }

.reservation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.reservation-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.reservation-card p:last-child { margin-bottom: 0; }
.reservation-card a { color: var(--blue); }

.cheque-vacances-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(46, 139, 61, 0.12);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

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

.gallery-placeholder {
  height: 200px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #eee6d4, #eee6d4 10px, #e6dcc5 10px, #e6dcc5 20px);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 600;
}

.gallery-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -12px rgba(28, 47, 74, 0.28);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 24, 60, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.salle-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.salle-specs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.salle-specs p:last-child { margin-bottom: 0; color: var(--ink); }

.salle-totals {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.salle-total {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1;
}
.salle-total-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--gold);
}
.salle-total-label { margin: 4px 0 0; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* CALENDRIER DE DISPONIBILITE */
.calendar-wrapper { margin-top: 40px; }

.calendar-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-months {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex: 1;
}

.calendar-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.calendar-nav:hover:not(:disabled) { background: var(--cream); }
.calendar-nav:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 640px) {
  .calendar-nav { width: 36px; height: 36px; font-size: 1.2rem; }
}

.calendar-month {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  max-width: 320px;
}

.calendar-month h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: var(--navy);
  text-align: center;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table th {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding-bottom: 6px;
}
.calendar-table td {
  text-align: center;
  padding: 0;
}
.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 2px auto;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink);
}
.calendar-day.day-libre { background: #dcefde; }
.calendar-day.day-occupee { background: #f6d6d0; }
.calendar-day.day-non-louee { background: #fbe6ad; }
.calendar-day.day-en-attente { background: #e3d9f8; }

.calendar-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.9rem;
}
.legend-item { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.legend-libre { background: #dcefde; }
.legend-occupee { background: #f6d6d0; }
.legend-non-louee { background: #fbe6ad; }
.legend-en-attente { background: #e3d9f8; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .adherer-inner, .contact-inner, .salle-grid { grid-template-columns: 1fr; }
  .location-banner { text-align: center; justify-content: center; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 64px 0; }
}

/* FORMULAIRE DE RÉSERVATION EN LIGNE */
.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  margin-top: 32px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.form-field input[type="file"] { padding: 10px 14px; cursor: pointer; }

.reservation-summary {
  background: rgba(46, 139, 61, 0.08);
  color: var(--green);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 4px 0 0;
}
.reservation-summary.is-error { background: rgba(216, 69, 43, 0.08); color: var(--red); }

.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin: 8px 0 0;
  display: none;
}
.form-error.is-visible { display: block; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; flex-shrink: 0; }

.reservation-form .form-feedback.is-success { color: var(--green); margin-top: 12px; }
.reservation-form .form-feedback.is-error { color: var(--red); margin-top: 12px; }

.reservation-form .btn { margin-top: 16px; }
.reservation-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.confirmation-card { max-width: 720px; margin-top: 32px; }
.confirmation-card h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 12px; font-size: 1.4rem; }

.confirmation-steps {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
}
.confirmation-steps h4 { margin: 0 0 10px; color: var(--navy); font-size: 1rem; }
.confirmation-steps ol { margin: 0; padding-left: 20px; color: var(--ink); }
.confirmation-steps li { margin-bottom: 6px; }
.confirmation-steps li:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
