/* ==========================================================================
   L'Atelier B — stylesheet
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3634;
  --cream: #faf6ef;
  --cream-alt: #f2ebe0;
  --white: #ffffff;
  --coral: #ff6b5b;
  --coral-dark: #e14f3f;
  --gold: #e8b23d;
  --teal: #2f9c95;

  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(26, 26, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, 0.16);

  --container: 1180px;
  --header-h: 78px;
}

/* ---------- reset ---------- */
*, *::before, *::after { 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;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--coral);
  font-size: 1.08em;
  display: inline-block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 66px;
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-flex; }
.logo-text { font-size: 1.4rem; font-weight: 700; }
.logo-text em { font-family: var(--font-script); font-style: normal; color: var(--coral); font-size: 1.15em; }
.logo-img { display: block; height: 44px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .logo-img { height: 38px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: var(--cream-alt); }
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
}
.nav-cta:hover { background: var(--coral); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 450;
    padding: 100px 32px 32px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .nav-link { width: 100%; padding: 14px 16px; font-size: 1.05rem; }
}

/* ---------- header on dark hero (legal pages) ---------- */
.site-header.on-dark-hero .nav-link { color: var(--cream); }
.site-header.on-dark-hero .nav-link:hover { background: rgba(250, 246, 239, 0.15); }
.site-header.on-dark-hero .burger span { background: var(--cream); }

.site-header.on-dark-hero.is-scrolled .nav-link { color: var(--ink); }
.site-header.on-dark-hero.is-scrolled .nav-link:hover { background: var(--cream-alt); }
.site-header.on-dark-hero.is-scrolled .burger span { background: var(--ink); }

.site-header.on-dark-hero .logo-img-scrolled { display: none; }
.site-header.on-dark-hero.is-scrolled .logo-img-scrolled { display: block; }
.site-header.on-dark-hero.is-scrolled .logo-img-dark-hero { display: none; }

@media (max-width: 860px) {
  /* the mobile nav panel always has a cream background, regardless of scroll state */
  .site-header.on-dark-hero .main-nav .nav-link { color: var(--ink); }
  .site-header.on-dark-hero .main-nav .nav-link:hover { background: var(--cream-alt); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--coral); top: -140px; right: -120px; opacity: 0.35; }
.blob-2 { width: 380px; height: 380px; background: var(--gold); bottom: -120px; left: -100px; opacity: 0.35; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--teal); top: 40%; left: 55%; opacity: 0.22; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 .script { display: block; font-size: 1.15em; margin-top: 4px; }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.social-pill:hover { transform: translateY(-2px); color: var(--coral); }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- section shared ---------- */
section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--coral-dark);
  margin-bottom: 12px;
}
.section-head h2, h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
}
.section-lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-media { position: relative; }
.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--cream-alt);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 220px;
  box-shadow: var(--shadow-md);
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--ink-soft); margin-bottom: 16px; }
.about-content p em { color: var(--ink); opacity: 0.65; }
.about-highlights { margin-top: 24px; display: grid; gap: 12px; }
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; margin-inline: auto; }
}

/* ---------- services ---------- */
.services { background: var(--cream-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: var(--coral-dark);
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); margin-bottom: 18px; }
.service-list { margin-bottom: 22px; display: grid; gap: 8px; }
.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--gold);
}
.service-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--coral-dark);
  transition: gap 0.2s ease;
}
.service-link:hover { color: var(--coral); }

/* ---------- process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process-steps li { position: relative; padding-top: 8px; }
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(100% - 4px);
  width: calc(100% - 20px);
  border-top: 2px dashed var(--cream-alt);
  display: none;
}
@media (min-width: 861px) {
  .process-steps li:not(:last-child)::after { display: block; }
}
.step-num {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--coral);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.process-steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-steps p { color: var(--ink-soft); font-size: 0.94rem; }

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--cream-alt);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--coral); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: hue-rotate(var(--hue, 0deg));
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(26,26,26,0.75);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.gallery-item.is-hidden { display: none; }

.portfolio-more { text-align: center; margin-top: 44px; }

@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- events ---------- */
.events { background: var(--ink); color: var(--cream); }
.events-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.events-inner h2 { color: var(--cream); margin-bottom: 10px; }
.events-inner p { color: rgba(250,246,239,0.75); max-width: 480px; }
.events .section-kicker { color: var(--gold); }

/* ---------- testimonials ---------- */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card.is-placeholder { border: 2px dashed var(--cream-alt); box-shadow: none; }
.testimonial-card blockquote {
  font-size: 1.02rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.92rem; }
.testimonial-card figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

@media (max-width: 860px) { .testimonial-track { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 70px);
}
.contact-intro p { color: var(--ink-soft); margin: 18px 0 28px; }
.contact-info { display: grid; gap: 14px; margin-bottom: 28px; }
.contact-info li { display: flex; align-items: center; gap: 10px; font-weight: 500; flex-wrap: wrap; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }
.contact-info em { color: var(--ink-soft); opacity: 0.6; font-size: 0.82rem; }
.contact-socials { display: flex; gap: 12px; }
.contact-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-socials a:hover { background: var(--ink); color: var(--cream); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 8px; }
.form-row-split { grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-split > div { display: grid; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
  border: 1.5px solid var(--cream-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  background: var(--cream);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-row-check { grid-template-columns: auto 1fr; align-items: start; }
.form-row-check label { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.form-row-check label a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; }
.form-row-check label a:hover { color: var(--coral); }
.form-row-check input { margin-top: 3px; }

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

#submitBtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
#submitBtn.is-loading .btn-spinner { display: inline-block; }
#submitBtn.is-loading { opacity: 0.85; cursor: wait; pointer-events: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-note {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.form-note:empty { min-height: 0; }
.form-note.is-success, .form-note.is-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  animation: form-note-in 0.25s ease;
}
.form-note.is-success::before, .form-note.is-error::before {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
}
.form-note.is-success { color: var(--teal); background: rgba(47, 156, 149, 0.1); }
.form-note.is-success::before { content: "✓"; background: var(--teal); }
.form-note.is-error { color: var(--coral-dark); background: rgba(225, 79, 63, 0.1); }
.form-note.is-error::before { content: "!"; background: var(--coral-dark); }
@keyframes form-note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-top: 60px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,246,239,0.15);
}
.footer-brand p { color: rgba(250,246,239,0.65); margin-top: 8px; max-width: 260px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a:hover, .footer-socials a:hover { color: var(--coral); }
.footer-socials { display: flex; gap: 20px; font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  font-size: 0.85rem;
  color: rgba(250,246,239,0.6);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.92);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(90vw, 560px); margin: 0; }
.lightbox img { border-radius: var(--radius-md); max-height: 72vh; width: auto; margin-inline: auto; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 2rem; color: var(--cream); line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  color: var(--cream); font-size: 1.4rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.12); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 300;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--coral); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- legal pages (mentions légales / confidentialité) ---------- */
.legal-hero {
  background: var(--ink);
  color: var(--cream);
  padding: calc(var(--header-h) + 70px) 0 56px;
}
.legal-hero .section-kicker { color: var(--coral); }
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 12px;
}
.legal-updated { color: rgba(250,246,239,0.65); font-size: 0.92rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.legal-back:hover { opacity: 1; transform: translateX(-3px); }

.legal-body { padding-block: clamp(56px, 8vw, 96px); }
.legal-layout {
  max-width: 980px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--coral-dark);
  margin-bottom: 10px;
}
.legal-toc a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-toc a:hover { background: var(--cream-alt); color: var(--ink); }

.legal-content { max-width: 680px; color: var(--ink-soft); font-size: 1rem; }
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p { margin-bottom: 14px; line-height: 1.75; }
.legal-content ul { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { position: relative; padding-left: 20px; line-height: 1.65; }
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a:not(.legal-back) { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:not(.legal-back):hover { color: var(--coral); }

.legal-callout {
  background: var(--cream-alt);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-cross-links {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-alt);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legal-toc-title { display: none; }
  .legal-toc a { background: var(--cream-alt); }
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
