/* ==========================================================================
   BERNIGAUD — style.css
   Design tokens : bourgogne / ivoire / charbon / champagne
   ========================================================================== */

:root {
  --ink: #1b1b18;
  --ink-soft: #2b2b26;
  --sage: #4a2e1e;
  --sage-deep: #37220f;
  --brass: #a1793f;
  --ivory: #f5eedf;
  --ivory-warm: #eee2c8;
  --champagne: #c9a86b;
  --mahogany: #6b3226;
  --mahogany-deep: #4e2419;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background-color: var(--sage);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--champagne);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.8rem 1.2rem;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 86rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 3.5rem;
  }
}

section {
  padding-block: 3.5rem;
}

.section-tight {
  padding-block: 2rem;
}

@media (min-width: 768px) {
  section {
    padding-block: 5rem;
  }
  .section-tight {
    padding-block: 2.75rem;
  }
}

.section-tight {
  padding-block: 2.5rem;
}

@media (min-width: 768px) {
  .section-tight { padding-block: 3.25rem; }
}

.bg-ivory { background-color: var(--ivory); }
.bg-ivory-warm { background-color: var(--ivory-warm); }

.bg-sage-tint { background-color: color-mix(in srgb, var(--sage) 7%, var(--ivory)); }
.bg-ink { background-color: var(--ink); color: var(--ivory); }
.bg-sage {
  background-color: var(--sage);
  background-image: linear-gradient(rgba(55,34,15,0.55), rgba(55,34,15,0.55)), url("../images/marble-chocolate.jpg");
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.display-xl {
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.display-md {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.lede {
  font-size: clamp(1.075rem, 1.55vw, 1.3rem);
  line-height: 1.65;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--champagne);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.95rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.wordmark .reg,
.nav-link-logo .reg {
  font-family: var(--font-body);
  font-size: 0.55em;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 0.15em;
  opacity: 0.75;
}

.wordmark-daily {
  font-family: "Quicksand", var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark-daily .reg {
  font-family: var(--font-body);
  font-size: 0.5em;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 0.1em;
  opacity: 0.75;
}

.wordmark-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wordmark-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--champagne);
  white-space: nowrap;
}

.nav.is-solid .wordmark-tagline {
  color: var(--sage);
}

.rule {
  height: 1px;
  max-width: 6rem;
  background-color: color-mix(in srgb, var(--ink) 16%, transparent);
  margin-block: 2.5rem;
}

.rule-light {
  height: 1px;
  background-color: color-mix(in srgb, var(--ivory) 22%, transparent);
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 1rem 2.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-align: center;
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}

.btn-solid-dark {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--ivory);
}
.btn-solid-dark:hover { background-color: transparent; color: var(--ink); }

.btn-solid-light {
  border-color: var(--ivory);
  background-color: var(--ivory);
  color: var(--ink);
}
.btn-solid-light:hover { background-color: transparent; color: var(--ivory); }

.btn-solid-sage {
  border-color: var(--sage);
  background-color: var(--sage);
  background-image: linear-gradient(rgba(55,34,15,0.6), rgba(55,34,15,0.6)), url("../images/marble-chocolate.jpg");
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}
.btn-solid-sage:hover { background-color: transparent; background-image: none; color: var(--sage); }

.btn-outline {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-light {
  border-color: color-mix(in srgb, var(--ivory) 50%, transparent);
}
.btn-outline-light:hover { border-color: var(--ivory); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  color: var(--ivory);
  transition: background-color 500ms ease, color 500ms ease, box-shadow 500ms ease;
}

.nav.is-solid {
  background-color: var(--ivory);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(24, 23, 22, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 0.83rem;
  letter-spacing: 0.055em;
  font-weight: 500;
}

.nav-link-logo {
  font-family: "Quicksand", var(--font-body);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: currentColor;
  transition: transform 400ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  background-color: var(--ivory);
  color: var(--ink);
  overflow: hidden;
  max-height: 0;
  transition: max-height 420ms ease;
}

.mobile-menu.is-open {
  max-height: 26rem;
}

.mobile-menu-inner {
  padding: 0.5rem 1.5rem 2.5rem;
}

.mobile-menu li {
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.mobile-menu a.display-sm {
  display: block;
  padding-block: 1rem;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, var(--ink) 0%, rgba(24,23,22,0.72) 55%, rgba(24,23,22,0.45) 100%);
}

.hero-light::after {
  background: linear-gradient(to top, rgba(24,23,22,0.82) 0%, rgba(24,23,22,0.48) 45%, rgba(24,23,22,0.2) 75%, rgba(24,23,22,0.55) 100%);
}

.hero-extra-veil {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background: rgba(24, 23, 22, 0.08);
}

.hero-compact {
  min-height: 78vh;
  min-height: 78svh;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 7rem 3rem;
}

@media (min-width: 768px) {
  .hero-inner { padding-block: 9rem 4rem; }
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: flex-end;
  }
}

/* Page header (pages secondaires) */
.page-header {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-color: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.page-header .media {
  position: absolute;
  inset: 0;
}

.page-header .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header .media img.media-focus-low {
  object-position: center 62%;
}

.page-header.veil-strong .veil {
  background: linear-gradient(
    to right,
    rgba(24, 23, 22, 0.94) 0%,
    rgba(24, 23, 22, 0.88) 40%,
    rgba(24, 23, 22, 0.55) 68%,
    rgba(24, 23, 22, 0.15) 100%
  );
}

.page-header .veil {
  position: absolute;
  inset: 0;
  background-color: rgba(24, 23, 22, 0.68);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 7.5rem 3.5rem;
  max-width: 46rem;
}

@media (min-width: 768px) {
  .page-header-inner { padding-block: 9rem 4.5rem; }
}

/* --------------------------------------------------------------------------
   Grilles génériques
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.frame {
  position: relative;
  overflow: hidden;
  background-color: var(--ivory-warm);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .frame:hover img { transform: scale(1.045); }
}

.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-square { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   Services list
   -------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 5rem 1fr;
    gap: 2.5rem;
    padding-block: 2rem;
  }
}

.service-row .service-content {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .service-row .service-content {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: baseline;
  }
}

.service-row .service-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-row .service-title em {
  font-style: italic;
  color: var(--sage);
}

.service-row .service-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
  max-width: 34rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--brass);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  gap: 1px;
  background-color: color-mix(in srgb, var(--ivory) 12%, transparent);
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .process-grid.process-grid-3col { grid-template-columns: repeat(3, 1fr); }
}

.process-item {
  background-color: var(--ink);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .process-item { padding: 2rem 1.75rem; }
}

/* --------------------------------------------------------------------------
   Carrousel générique — bande défilante (clic pour faire défiler)
   Utilisé par les témoignages ET la galerie de plats.
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  margin-top: 3.5rem;
}

.carousel-track {
  display: flex;
  gap: 1px;
  background-color: color-mix(in srgb, var(--ink) 12%, transparent);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

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

.carousel-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background-color: var(--ivory);
}

@media (min-width: 640px) {
  .carousel-item { flex-basis: 46%; }
}

@media (min-width: 1024px) {
  .carousel-item { flex-basis: 31.5%; }
}

.testimonial-item {
  padding: 2.25rem 1.75rem;
}

@media (min-width: 1024px) {
  .testimonial-item { padding: 2.5rem 2.25rem; }
}

.gallery-carousel-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .gallery-carousel-item:hover img { transform: scale(1.045); }
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--ink);
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.carousel-arrow:hover {
  border-color: var(--sage);
  background-color: var(--sage);
  color: var(--ivory);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;

}

/* --------------------------------------------------------------------------
   Galerie / Lightbox
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 3rem;
}

.filter-btn {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  padding-bottom: 4px;
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 300ms ease;
}

.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  color: var(--sage);
}
.filter-btn[aria-pressed="true"]::after {
  transform: scaleX(1);
  background-color: var(--sage);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
  .gallery-item { aspect-ratio: auto; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(24, 23, 22, 0);
  transition: background-color 500ms ease;
}

.gallery-item:hover::after { background-color: rgba(24, 23, 22, 0.2); }
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.045); }
}

@media (min-width: 768px) {
  .gallery-item.span-2 { grid-column: span 2; }
  .gallery-item.row-2 { grid-row: span 2; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(24, 23, 22, 0.97);
  color: var(--ivory);
  display: none;
  flex-direction: column;
}

.lightbox.is-open { display: flex; }

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .lightbox-top { padding: 1.25rem 2.5rem; }
}

.lightbox-figure {
  position: relative;
  flex: 1;
  padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .lightbox-figure { padding: 0 2.5rem 1.5rem; }
}

.lightbox-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem 2rem;
}

@media (min-width: 768px) {
  .lightbox-bottom { padding: 0 2.5rem 2rem; }
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  margin-bottom: 0.2rem;
}

.field {
  width: 100%;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  padding: 0.65rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 300ms ease;
}

.field:hover { border-bottom-color: color-mix(in srgb, var(--ink) 42%, transparent); }
.field:focus { outline: none; border-bottom-color: var(--sage); }
.field::placeholder { color: color-mix(in srgb, var(--ink) 38%, transparent); }

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

select.field {
  border-radius: 0;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% + 1px), calc(100% - 8px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .form-actions { flex-direction: row; align-items: center; }
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  min-height: 1.4em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ivory) 50%, transparent);
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-bottom .legal-links { display: flex; gap: 1.5rem; }

/* --------------------------------------------------------------------------
   WhatsApp bouton flottant
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--sage);
  background-image: linear-gradient(rgba(55,34,15,0.6), rgba(55,34,15,0.6)), url("../images/marble-chocolate.jpg");
  background-size: cover;
  background-position: center;
  color: var(--ivory);
  padding: 0.9rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 28px rgba(24, 23, 22, 0.24);
  transition: opacity 500ms ease, transform 500ms ease, background-color 400ms ease, box-shadow 400ms ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: wa-breathe 3.2s ease-in-out infinite;
}

.wa-float:hover {
  background-color: var(--sage-deep);
  animation-play-state: paused;
  box-shadow: 0 10px 34px rgba(24, 23, 22, 0.3);
}

.wa-float svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

@keyframes wa-breathe {
  0%, 100% { box-shadow: 0 6px 28px rgba(24, 23, 22, 0.24), 0 0 0 0 color-mix(in srgb, var(--sage) 45%, transparent); }
  50% { box-shadow: 0 6px 28px rgba(24, 23, 22, 0.24), 0 0 0 9px color-mix(in srgb, var(--sage) 0%, transparent); }
}

/* --------------------------------------------------------------------------
   Reveal (une seule animation d'entrée, discrète)
   -------------------------------------------------------------------------- */
/* Par défaut (sans JS, ou avant l'exécution du script) : tout est visible.
   L'animation n'est activée que si le script early-js a pu poser la classe
   .js-reveal sur <html> — c'est une amélioration progressive, jamais une
   condition d'affichage du contenu. */
.reveal {
  opacity: 1;
  transform: none;
}

.veil {
  position: absolute;
  inset: 0;
  background-color: var(--ivory);
  transform-origin: top;
  transform: scaleY(0);
  z-index: 1;
}

.veil.veil-dark { background-color: var(--ink); }

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal .veil {
  transform: scaleY(1);
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
}

.js-reveal .veil.is-hidden {
  transform: scaleY(0);
}

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

  .reveal, .veil, .frame img, .gallery-item img, .nav, .mobile-menu, .wa-float, .btn {
    transition: none !important;
    animation: none !important;
  }

  .js-reveal .reveal { opacity: 1; transform: none; }
  .js-reveal .veil { transform: scaleY(0); }
}

/* --------------------------------------------------------------------------
   Utilitaires de texte
   -------------------------------------------------------------------------- */
.text-muted { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.text-muted-light { color: color-mix(in srgb, var(--ivory) 78%, transparent); }
.max-w-content { max-width: 42rem; }
.mt-note { margin-top: 2.5rem; font-size: 0.92rem; color: color-mix(in srgb, var(--ink) 58%, transparent); }

.warning-note {
  font-size: 0.88rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   FAQ — accordéon accessible (élément natif <details>/<summary>)
   -------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding-block: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--ink);
}

@media (min-width: 768px) {
  .faq-item summary { padding-block: 1.75rem; }
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--sage);
  transform: translate(-50%, -50%);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 350ms ease;
}

.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after { width: 1px; height: 14px; }

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer {
  padding-bottom: 1.75rem;
  padding-right: 2.5rem;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
}

/* Ouverture douce du contenu — respecte prefers-reduced-motion via la règle globale déjà en place */
.faq-item[open] summary {
  color: var(--sage);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-answer {
    animation: faq-reveal 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Daily Table — pages spécifiques (citations éditoriales, pastilles de
   sélection, bascules oui/non, diagramme famille, confirmation de formulaire)
   -------------------------------------------------------------------------- */
.pull-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 42rem;
}

.pull-quote .accent { color: var(--sage); font-style: normal; }

/* Bascule oui/non façon segmented control */
.toggle-group {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.toggle-group label {
  position: relative;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.toggle-group label:not(:last-child) {
  border-right: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.toggle-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-group label:has(input:checked) {
  background-color: var(--sage);
  background-image: linear-gradient(rgba(55,34,15,0.6), rgba(55,34,15,0.6)), url("../images/marble-chocolate.jpg");
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}

/* Pastilles de sélection multiple (cuisines, préférences) */
.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-option {
  position: relative;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.pill-option input:checked + span {
  background-color: var(--sage);
  background-image: linear-gradient(rgba(55,34,15,0.6), rgba(55,34,15,0.6)), url("../images/marble-chocolate.jpg");
  background-size: cover;
  background-position: center;
  border-color: var(--sage);
  color: var(--ivory);
}

/* Diagramme famille — une rangée de cartes plutôt qu'un tableau nutritionnel */
.household-row {
  display: grid;
  gap: 1px;
  background-color: color-mix(in srgb, var(--ink) 10%, transparent);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .household-row { grid-template-columns: repeat(4, 1fr); }
}

.household-card {
  background-color: var(--ivory);
  padding: 2rem 1.5rem;
}

.household-card .role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.household-card .need {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

/* Section secondaire (Nutrition & Performance) — visuellement plus discrète */
.section-secondary {
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .section-secondary { padding-block: 4.5rem; }
}

/* État de confirmation du formulaire */
.form-confirmation {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.form-confirmation h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
}

.form-confirmation p {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  max-width: 30rem;
  margin-inline: auto;
}
