/* ============================================
   SABRILLE — design tokens
   ============================================ */
:root {
  --blue-primary: #4A93C6;
  --blue-deep: #1F4A63;
  --blue-light: #9CCBEA;
  --blue-ink: #14313F;
  --gold: #FF7A00; /* orange vif */
  --cream: #DEEFF6;
  --white: #FFFFFF;
  --gray-text: #4A5568;
  --border-soft: #C9DEEA;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Georgia, 'Times New Roman', serif;

  --radius: 14px;
  --shadow-card: 0 8px 24px rgba(20, 49, 63, 0.08);

  --base-font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

/* Accessibilité : agrandissement du texte pour les personnes qui en ont besoin */
body.large-text {
  --base-font-size: 20px;
}
body.large-text .price-summary,
body.large-text .booking-form label span,
body.large-text input,
body.large-text select,
body.large-text textarea,
body.large-text button {
  font-size: 1.15rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin: 0 0 0.5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-text); }

a { color: var(--blue-primary); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.site-logo {
  height: 56px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  text-decoration: none;
  color: var(--blue-deep);
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue-primary); }
.nav-cta {
  background: var(--blue-primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-deep); }

/* Bouton hamburger : caché par défaut, affiché seulement sur petit écran */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--blue-deep);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--blue-deep);
  border-radius: 2px;
}

.a11y-btn {
  border: 1.5px solid var(--blue-deep);
  background: var(--white);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.a11y-btn[aria-pressed="true"] {
  background: var(--blue-deep);
  color: var(--white);
}
.a11y-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   Admin banner
   ============================================ */
.admin-banner {
  background: var(--blue-ink);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero-ring {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1.5px solid rgba(74, 147, 198, 0.35);
  border-radius: 50%;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1.5px solid rgba(193, 89, 44, 0.35);
  border-radius: 50%;
}
.hero-inner { position: relative; max-width: 680px; }
.eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero-lead { font-size: 1.1rem; max-width: 520px; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}
.btn-ghost:hover { background: var(--blue-deep); color: var(--white); }
.btn-secondary {
  background: var(--blue-light);
  color: var(--blue-deep);
  padding: 10px 20px;
  font-size: 0.92rem;
}
.btn-secondary:hover { background: var(--blue-primary); color: var(--white); }
.btn-text {
  background: transparent;
  border: none;
  color: #B23A3A;
  padding: 10px 14px;
  font-size: 0.92rem;
  text-decoration: underline;
}
.btn-danger {
  background: #B23A3A;
  color: var(--white);
  padding: 12px 24px;
}
.btn-danger:hover { background: #8f2d2d; }

/* ============================================
   Page modifier.html — gestion des réservations
   ============================================ */
.occurrence-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}
.occurrence-card {
  background: var(--white);
  border: 1px solid rgba(31, 74, 99, 0.15);
  border-radius: 14px;
  padding: 18px 20px;
}
.occurrence-card.occurrence-cancelled,
.occurrence-card.occurrence-past {
  opacity: 0.6;
}
.occurrence-info { font-size: 1.05rem; margin-bottom: 10px; }
.occurrence-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(31, 74, 99, 0.1);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.occurrence-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.occurrence-edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 74, 99, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.occurrence-edit-form .field { min-width: 160px; }
.occurrence-status { margin-top: 10px; width: 100%; }
.cancel-series-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 74, 99, 0.15);
}
.modifier-loading, .modifier-error { font-size: 1.05rem; }
.modifier-error { color: #B23A3A; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-lead { max-width: 620px; font-size: 1.05rem; }

.price-highlight {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin: 24px 0 40px;
}
.price-highlight-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--blue-primary);
  line-height: 1;
}
.price-highlight-unit {
  font-weight: 600;
  color: var(--blue-deep);
}
.price-highlight-desc {
  width: 100%;
  color: var(--gray-text);
  margin-top: 6px;
}

.price-highlight-avs {
  border-color: var(--gold);
  background: rgba(193, 89, 44, 0.06);
}
.price-highlight-avs .price-highlight-amount { color: var(--gold); }

.avs-row {
  background: rgba(193, 89, 44, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.extras-title { margin-top: 8px; }
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.extra-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.extra-name { font-weight: 600; color: var(--blue-deep); }
.extra-price { color: var(--gold); font-weight: 700; }

.travel-note {
  font-size: 0.95rem;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.step { text-align: left; }
.step-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ============================================
   Booking form
   ============================================ */
.reservation-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: start;
}
.reservation-intro { grid-column: 1 / -1; max-width: 640px; }
.help-note {
  font-size: 0.95rem;
  background: var(--blue-primary);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.help-note a { color: var(--white); text-decoration: underline; font-weight: 700; }
.help-note a:visited { color: var(--white); }

.booking-form {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-block { margin-bottom: 32px; }
.form-block h3 { margin-bottom: 16px; }
.admin-only {
  background: rgba(193, 89, 44, 0.08);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field span { font-weight: 600; color: var(--blue-deep); font-size: 0.95rem; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  background: var(--cream);
  color: var(--blue-ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-primary);
  background: var(--white);
}
.field-note {
  font-size: 0.9rem;
  color: var(--blue-primary);
  margin-top: -8px;
}
.field-error {
  color: #b3261e;
  font-weight: 500;
}
.legal-section details {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.legal-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 4px 0;
}
.legal-text { margin-top: 12px; }
.legal-text h4 {
  margin-top: 18px;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 1rem;
}
.legal-text p { margin: 6px 0; line-height: 1.6; }
.legal-date { font-style: italic; opacity: 0.8; }

.extras-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}
.extras-fieldset legend {
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 8px;
  padding: 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: var(--blue-ink);
  padding: 8px 0;
  cursor: pointer;
}
.checkbox-row input { width: 20px; height: 20px; flex-shrink: 0; }
.checkbox-row em { color: var(--gold); font-style: normal; font-weight: 600; }

.btn-submit {
  width: 100%;
  border: none;
  font-size: 1.1rem;
}
.form-status {
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
  min-height: 1.4em;
}
.form-status.success { color: #2E7D4F; }
.form-status.error { color: #B23A3A; }

/* Price summary sidebar */
.price-summary {
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.price-summary h3 { color: var(--white); }
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}
.price-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  border-bottom: none;
  padding-top: 16px;
}
.price-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #4898C6;
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { margin-bottom: 4px; }
.footer-logo-img { height: 64px; width: auto; display: block; margin-bottom: 8px; }
.footer-inner p { color: rgba(255,255,255,0.7); margin: 6px 0 0; }
.footer-inner a { color: var(--white); text-decoration: underline; font-weight: 700; }
.footer-inner a:visited { color: var(--white); }

/* ============================================
   Responsive
   ============================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-form,
.devis-form {
  max-width: 640px;
}
@media (max-width: 860px) {
  .reservation-wrap { grid-template-columns: 1fr; }
  .price-summary { position: static; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 20px 16px;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-soft);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta {
    text-align: center;
    margin-top: 10px;
  }
  .header-inner { position: relative; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}
