:root {
  --ink: #0c0f0c;
  --ink-2: #151a15;
  --paper: #f3f5ef;
  --muted: rgba(243, 245, 239, 0.58);
  --lime: #c8f542;
  --lime-deep: #9bc422;
  --line: rgba(243, 245, 239, 0.14);
  --danger: #ff7a6a;
  --radius: 16px;
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  line-height: 1.5;
  overflow-x: clip;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 50% at 10% -5%, rgba(200, 245, 66, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(155, 196, 34, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 110%, rgba(20, 40, 18, 0.95), transparent 55%),
    linear-gradient(165deg, #080a08 0%, #121612 45%, #0a0d0a 100%);
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  from { filter: saturate(1); transform: scale(1); }
  to { filter: saturate(1.08); transform: scale(1.03); }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right), clamp(1rem, 4vw, 3.5rem))
    0.85rem
    max(1rem, env(safe-area-inset-left), clamp(1rem, 4vw, 3.5rem));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(12, 15, 12, 0.72);
  border-bottom: 1px solid transparent;
  animation: rise 0.6s ease both;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover { color: var(--paper); }

.nav-cta {
  color: var(--ink) !important;
  background: var(--lime);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: hero-pan 22s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.35) 0%, rgba(8, 10, 8, 0.2) 35%, rgba(8, 10, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 10, 8, 0.72) 0%, rgba(8, 10, 8, 0.2) 55%, rgba(8, 10, 8, 0.45) 100%);
}

@keyframes hero-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  padding: 5rem clamp(1.2rem, 4vw, 3.5rem) 3.5rem;
  max-width: 48rem;
  animation: rise 0.75s 0.05s ease both;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--lime);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.8rem, 16vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 300;
  color: rgba(243, 245, 239, 0.82);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  background: linear-gradient(160deg, var(--lime), var(--lime-deep));
  color: var(--ink);
  padding: 0.95rem 1.35rem;
  border-radius: 14px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.btn.ghost {
  background: rgba(12, 15, 12, 0.35);
  color: var(--paper);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.methode,
.rdv {
  padding: 4.5rem clamp(1.2rem, 4vw, 3.5rem);
  max-width: 56rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  min-height: clamp(14rem, 32vw, 22rem);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  min-height: inherit;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(14rem, 32vw, 22rem);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.gallery figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.08);
}

.methode h2,
.rdv h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-lead {
  margin: 0.85rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillars li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.6s ease both;
}

.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars li:nth-child(1) { animation-delay: 0.05s; }
.pillars li:nth-child(2) { animation-delay: 0.12s; }
.pillars li:nth-child(3) { animation-delay: 0.19s; }

.pillar-k {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--lime);
}

.pillars strong {
  font-size: 1.2rem;
  font-weight: 600;
}

.pillars span:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

.rdv {
  width: 100%;
  max-width: 40rem;
}

.booking {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(12, 15, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: rgba(243, 245, 239, 0.04);
  color: var(--paper);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 16px; /* évite le zoom auto iOS */
  outline: none;
  min-height: 48px;
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="date"] {
  min-height: 48px;
  color-scheme: dark;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(200, 245, 66, 0.55);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%),
    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option { color: #111; }

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

.slot:hover { border-color: rgba(200, 245, 66, 0.5); }

.slot.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 600;
}

.booking .btn { width: 100%; margin-top: 0.35rem; }

.form-status {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--lime); }

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

.success {
  margin-top: 2rem;
  padding: 1.6rem 0;
  animation: rise 0.45s ease both;
}

.success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--lime);
}

.success p {
  margin: 0.8rem 0 1.4rem;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1.1rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding:
    2rem
    max(1rem, env(safe-area-inset-right), clamp(1rem, 4vw, 3.5rem))
    max(1.4rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left), clamp(1rem, 4vw, 3.5rem));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot strong {
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.foot .admin-link {
  margin-left: auto;
  color: rgba(243, 245, 239, 0.4);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.foot .admin-link:hover,
.foot .admin-link:focus-visible {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  outline: none;
}

.powered {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(243, 245, 239, 0.28);
}

.powered a {
  color: rgba(243, 245, 239, 0.42);
  text-decoration: none;
}

.powered a:hover,
.powered a:focus-visible {
  color: rgba(243, 245, 239, 0.7);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(70%, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar { display: none; }

  .gallery figure {
    scroll-snap-align: start;
    min-width: 70%;
  }

  .gallery img,
  .gallery figure {
    min-height: 14rem;
  }
}

@media (max-width: 700px) {
  nav a:not(.nav-cta) { display: none; }

  .logo {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }

  .nav-cta {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-media img {
    object-position: center 25%;
    animation: none;
    transform: none;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 8, 0.55) 0%, rgba(8, 10, 8, 0.28) 40%, rgba(8, 10, 8, 0.92) 100%),
      linear-gradient(90deg, rgba(8, 10, 8, 0.55) 0%, rgba(8, 10, 8, 0.25) 100%);
  }

  .hero-content {
    padding:
      3.5rem
      max(1rem, env(safe-area-inset-right))
      max(2rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .hero h1 {
    font-size: clamp(3.6rem, 22vw, 5.5rem);
    word-break: break-word;
  }

  .lead {
    max-width: 34ch;
    font-size: 1.08rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  .methode,
  .rdv {
    padding: 3rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
    max-width: none;
  }

  .methode h2,
  .rdv h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .section-lead {
    font-size: 1rem;
    max-width: none;
  }

  .pillars {
    margin-top: 1.6rem;
  }

  .pillars li {
    grid-template-columns: 2.4rem 1fr;
    column-gap: 0.75rem;
    padding: 1rem 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .booking {
    padding: 1rem;
    border-radius: 16px;
  }

  .slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .slot {
    text-align: center;
    padding: 0.7rem 0.35rem;
    font-size: 0.88rem;
  }

  .foot {
    flex-direction: column;
    gap: 0.35rem;
  }

  .foot .admin-link {
    margin-left: 0;
    margin-top: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .powered {
    margin-top: 0.15rem;
  }
}

@media (max-width: 380px) {
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .atmosphere,
  .hero-media img,
  .gallery img,
  .top,
  .hero-content,
  .pillars li,
  .success {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img,
  .gallery figure:hover img {
    transform: none !important;
  }
}

@media (hover: none) {
  .gallery figure:hover img {
    transform: none;
    filter: saturate(0.92) contrast(1.05);
  }

  .btn:hover:not(:disabled) {
    transform: none;
  }
}
