/* ==========================================================================
   CS Diététique
   Palette « Méditerranée », illustrations dessinées (pyramides de La Grande-Motte,
   olivier, agrumes) et icônes au trait sur mesure.
   ========================================================================== */

:root {
  --sand: #f8f6f1;        /* fond principal */
  --mist: #e8eef0;        /* surface secondaire */
  --navy: #0e2a3b;        /* texte, bandeaux */
  --navy-2: #173a4f;
  --sea: #2c6a85;         /* liens, détails */
  --muted: #4b5f6b;       /* texte secondaire */
  --line: #d9e0e3;
  --coral: #e07a5f;       /* réservé à la prise de rendez-vous */
  --coral-hover: #ea927a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  interpolate-size: allow-keywords;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--sand); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--sand);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 400;
  letter-spacing: -.015em;
}
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: var(--step-3); line-height: 1.1; text-wrap: balance; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 500; }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 34em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.link {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { color: var(--navy); text-decoration-thickness: 2px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy .muted, .section--navy .lead { color: #b9c8cf; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 44rem; }

/* ---------- Boutons ---------- */

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn--book { background: var(--coral); color: var(--navy); }
.btn--book:hover { background: var(--coral-hover); }
.btn--ghost { border-color: currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.section--navy .btn--ghost { color: var(--sand); }
.section--navy .btn--ghost:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(248 246 241 / .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* backdrop-filter crée un bloc conteneur : on le retire quand le menu plein écran est ouvert */
.site-header:has(.nav.is-open) {
  background: var(--sand);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand img { width: 172px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__link {
  position: relative;
  white-space: nowrap;
  padding-block: 6px;
  font-weight: 500;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 10px 20px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__text { display: grid; gap: 28px; padding-bottom: 8px; }
.hero__meta {
  display: grid;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}
.hero__meta strong { color: var(--navy); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.breadcrumb a { color: inherit; text-underline-offset: .2em; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* Photo du hero : rectangle arrondi, illustrations dessinées en débord */
.hero-media { position: relative; margin: 0; }
.hero-media__img {
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  overflow: hidden;
  animation: settle 1.2s var(--ease) both;
}
.hero-media__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-media__deco { position: absolute; pointer-events: none; }
.hero-media__deco--citrus { width: 120px; top: -42px; right: -28px; animation: turn 50s linear infinite; }
.hero-media__deco--olive { width: 230px; bottom: -54px; left: -70px; }
.hero-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--sand);
  box-shadow: 0 18px 40px -18px rgb(14 42 59 / .45);
  font-size: var(--step--1);
  color: var(--muted);
}
.hero-card strong {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--navy);
}

@keyframes settle { from { scale: 1.04; } to { scale: 1; } }
@keyframes turn { to { rotate: 360deg; } }

/* ---------- Présentation ---------- */

.statement {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-2);
  line-height: 1.4;
  max-width: 30em;
}
.credentials { display: grid; gap: 0; border-top: 1px solid var(--line); }
.credentials li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.portrait-plate { margin-top: 40px; max-width: 360px; }

.deco { display: block; pointer-events: none; }
.deco--olive { width: min(280px, 70%); margin-top: 32px; }
.deco--leaf { width: 90px; margin-top: 8px; }
.deco--bowl { width: 180px; }
.deco--citrus { width: 110px; }

/* ---------- Prestations en cartes photo ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 340px;
  gap: 20px;
}
.bento__card:nth-child(1), .bento__card:nth-child(4) { grid-column: span 2; }
.bento__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--sand);
  text-decoration: none;
}
.bento__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .9s var(--ease);
}
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(14 42 59 / 0) 35%, rgb(14 42 59 / .88) 100%);
}
.bento__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-2);
  line-height: 1.15;
}
.bento__desc { max-width: 30em; color: #dbe5ea; font-size: var(--step--1); }
.bento__price {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--step--1);
}
.bento__go {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(248 246 241 / .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .3s, color .3s, rotate .45s var(--ease);
}
.bento__go svg { width: 20px; height: 20px; }
.bento__card:hover img { scale: 1.05; }
.bento__card:hover .bento__go { background: var(--coral); color: var(--navy); rotate: -45deg; }

/* ---------- Cartes à icône ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
}
.section--mist .cards > li { background: var(--sand); }
.section--navy .cards > li { background: var(--navy-2); }
.cards p { color: var(--muted); }
.section--navy .cards p { color: #b9c8cf; }
.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--mist);
  color: var(--sea);
}
.section--navy .icon { background: rgb(224 122 95 / .16); color: var(--coral); }
.icon svg { width: 26px; height: 26px; }

/* Étapes : contenu réellement séquentiel, donc numéroté */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--sea);
}
.steps p { color: var(--muted); }
.steps-figure { position: sticky; top: 112px; }
.steps-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }

/* ---------- Tarifs ---------- */

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.price-group h2 { font-size: var(--step-2); margin-bottom: 8px; }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.price-row:last-of-type { border-bottom: 1px solid var(--line); }
.price-row h3 { font-size: var(--step-1); }
.price-row p { grid-column: 1 / -1; color: var(--muted); max-width: 32em; }
.price-row__amount {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-3);
  line-height: 1;
}
.notice {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--mist);
  border-radius: 20px;
  max-width: 44rem;
}

/* ---------- Bandeau rendez-vous ---------- */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--navy);
  color: var(--sand);
  border-radius: 28px;
  overflow: hidden;
}
.booking__text { display: grid; gap: 20px; align-content: center; padding: clamp(32px, 5vw, 72px); }
.booking__text p { color: #b9c8cf; max-width: 32em; }
.booking__img { min-height: 320px; }
.booking__img img { width: 100%; height: 100%; object-fit: cover; }
.booking .btn--ghost { color: var(--sand); }
.booking .btn--ghost:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-1);
  line-height: 1.35;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sea); }
.faq summary::after {
  content: "";
  width: 28px;
  height: 28px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding: 0 52px 28px 0; color: var(--muted); max-width: 44em; }
.faq-aside { display: grid; gap: 20px; align-content: start; }

/* ---------- Autres prestations ---------- */

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related a { display: grid; gap: 14px; text-decoration: none; }
.related img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 20px; transition: filter .4s, scale .6s var(--ease); }
.related span { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: var(--step-1); }
.related a:hover img { filter: brightness(1.05) saturate(1.1); }
.related a:hover span { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Présentation (accueil) ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about__media { position: relative; margin: 0; }
.about__media > img:not([class]) {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgb(14 42 59 / .22));
  animation: bob 9s ease-in-out infinite;
}
.about__citrus { position: absolute; z-index: 0; width: 42%; top: -6%; right: -4%; animation: turn 60s linear infinite; }
.about__leaf { position: absolute; z-index: 2; width: 18%; bottom: -4%; left: 2%; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.about__text { display: grid; gap: 24px; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.creds li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #fff;
  font-size: var(--step--1);
  font-weight: 500;
  transition: translate .4s var(--ease), box-shadow .4s;
}
.creds .icon { width: 38px; height: 38px; margin: 0; border-radius: 12px; flex: none; transition: rotate .5s var(--spring), background-color .3s, color .3s; }
.creds .icon svg { width: 20px; height: 20px; }
.creds li:hover { translate: 0 -3px; box-shadow: 0 14px 30px -18px rgb(14 42 59 / .4); }
.creds li:hover .icon { rotate: -10deg; background: var(--coral); color: var(--navy); }

/* ---------- Intro des prestations ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.intro__text { display: grid; gap: 24px; }
.intro__media { position: relative; margin: 0; }
.intro__media--photo > img:not(.intro__art) { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 28px; }
.intro__media--cutout > img:not(.intro__art) {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgb(14 42 59 / .22));
  animation: bob 9s ease-in-out infinite;
}
.intro__art { position: absolute; pointer-events: none; }
.intro__media--photo .intro__art { width: 52%; bottom: -12%; right: -8%; animation: sway 7s ease-in-out infinite; transform-origin: 0 100%; }
.intro__media--cutout .intro__art { width: 22%; top: -6%; left: -4%; z-index: -1; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.intro__media--cutout .intro__art[src*="citrus"] { width: 30%; animation: turn 60s linear infinite; }
.intro__media--cutout { isolation: isolate; }

/* ---------- Cartes tarifs ---------- */

.price-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.price-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 8px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  transition: translate .5s var(--ease), box-shadow .5s;
}
.price-card__tag { color: var(--sea); font-weight: 700; font-size: var(--step--1); }
.price-card h3 { font-size: var(--step-1); }
.price-card__amount {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--step-4);
  line-height: 1;
  margin: 8px 0;
  transition: color .3s, scale .5s var(--spring);
  transform-origin: left center;
}
.price-card__amount--text { font-size: var(--step-3); white-space: nowrap; padding-block: .35em; }
.price-card__desc { color: var(--muted); font-size: var(--step--1); }
.price-card__link {
  margin-top: 12px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.price-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.price-card__link::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 2px;
  margin-right: 0;
  vertical-align: middle;
  background: var(--coral);
  transition: width .4s var(--ease), margin .4s var(--ease);
}
.price-card:hover { translate: 0 -8px; box-shadow: 0 30px 50px -28px rgb(14 42 59 / .45); }
.price-card:hover .price-card__amount { color: var(--coral); scale: 1.06; }
.price-card:hover .price-card__link::before { width: 22px; margin-right: 10px; }
.price-card .icon { transition: rotate .5s var(--spring), background-color .3s, color .3s; }
.price-card:hover .icon { rotate: -12deg; background: var(--navy); color: var(--sand); }

/* ---------- Vie : survols ---------- */

.btn { transition: background-color .25s, border-color .25s, color .25s, translate .35s var(--ease), box-shadow .35s; }
.btn:hover { translate: 0 -2px; }
.btn--book:hover { box-shadow: 0 12px 24px -12px rgb(224 122 95 / .9); }
.btn:active { translate: 0 0; transition-duration: .08s; }
.btn svg { transition: rotate .5s var(--spring); }
.btn:hover svg { rotate: -14deg; }

.cards > li { transition: translate .5s var(--ease), box-shadow .5s, background-color .3s; }
.cards > li:hover { translate: 0 -6px; box-shadow: 0 26px 46px -26px rgb(14 42 59 / .4); }
.section--navy .cards > li:hover { background: #1d4560; box-shadow: 0 26px 46px -22px rgb(0 0 0 / .6); }
.cards .icon { transition: rotate .55s var(--spring), scale .55s var(--spring), background-color .3s, color .3s; }
.cards > li:hover .icon { rotate: -10deg; scale: 1.1; background: var(--coral); color: var(--navy); }
.cards h3 { transition: color .3s; }
.cards > li:hover h3 { color: var(--sea); }
.section--navy .cards > li:hover h3 { color: var(--coral-hover); }

.bento__desc { transition: translate .5s var(--ease), opacity .5s; }
.bento__title { transition: translate .5s var(--ease); }
.bento__card:hover .bento__title { translate: 0 -4px; }
.bento__card:hover .bento__desc { translate: 0 -4px; }
.bento__price { transition: scale .45s var(--spring); }
.bento__card:hover .bento__price { scale: 1.08; }

.steps li { transition: background-color .3s, padding .45s var(--ease); border-radius: 0; }
.steps li::before { transition: color .3s, translate .45s var(--spring); }
.steps li:hover::before { color: var(--coral); translate: 6px 0; }

.faq summary { transition: color .2s, padding .4s var(--ease); }
.faq summary:hover { padding-left: 8px; }

.related a > img { transition: scale .7s var(--ease), filter .4s; }
.related a:hover > img { scale: 1.03; }

.hero-card { animation: bob 7s ease-in-out infinite; }
.hero-media__deco--olive { transform-origin: 100% 0; animation: sway 8s ease-in-out infinite; }
.hero-media__deco, .about__citrus, .about__leaf, .intro__art { translate: var(--px, 0) var(--py, 0); transition: translate .6s var(--ease); }

.social a:hover svg { animation: wiggle .5s var(--ease); }
.footer-grid a { position: relative; }

/* ---------- Vie : apparitions au défilement ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 32px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 3deg; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -14deg; } 60% { rotate: 10deg; } }

@media (max-width: 1080px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about__grid, .intro { grid-template-columns: minmax(0, 1fr); }
  .about__media, .intro__media--cutout { max-width: 420px; margin-inline: auto; }
  .intro__media--photo .intro__art { width: 40%; right: -2%; }
}
@media (max-width: 560px) {
  .creds, .price-cards { grid-template-columns: minmax(0, 1fr); }
  .statement { font-size: var(--step-1); }
}

/* ---------- Pages légales ---------- */

.legal { max-width: 46rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 32px; }
.legal h2 { font-size: var(--step-2); margin: 56px 0 16px; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 1em; }
.legal ul { display: grid; gap: 6px; margin: 12px 0; padding-left: 1.2em; list-style: disc; }
.legal strong { color: var(--navy); font-weight: 700; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.legal dt { font-weight: 700; }
.legal dd { color: var(--muted); }
/* ---------- Pied de page illustré ---------- */

.site-footer {
  position: relative;
  margin-top: 200px;
  padding: 150px 0 120px;
  background: var(--mist);
  color: var(--navy);
}
.site-footer__art {
  position: absolute;
  left: 50%;
  top: -96px;
  width: min(440px, 86vw);
  translate: -50% 0;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h2 { font-size: var(--step-1); margin-bottom: 14px; }
.footer-grid p, .footer-grid li { color: var(--muted); }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand img { width: 160px; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--navy);
  transition: background-color .25s, color .25s, translate .3s var(--ease);
}
.social a:hover { background: var(--navy); color: var(--sand); translate: 0 -3px; }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: inherit; text-underline-offset: .2em; }
.footer-bottom a:hover { color: var(--navy); }

/* Barre d'action mobile */
.mobile-bar { display: none; }

/* ---------- 404 ---------- */

.not-found { min-height: 60vh; display: grid; align-content: center; gap: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav:not(.is-open) { display: none; }
  .nav__list { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav .btn { display: none; }
  .nav.is-open {
    position: fixed;
    inset: 80px 0 0;
    display: grid;
    align-content: start;
    gap: 32px;
    padding: 32px var(--gutter);
    background: var(--sand);
    overflow-y: auto;
  }
  .nav.is-open .nav__list { display: grid; gap: 4px; }
  .nav.is-open .nav__link {
    display: block;
    padding: 10px 0;
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "WONK" 0;
    font-size: var(--step-3);
    font-weight: 400;
  }
  .nav.is-open .nav__link::after { display: none; }
  .nav.is-open .btn { display: inline-flex; justify-self: start; }
}

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

@media (max-width: 860px) {
  .hero__grid, .split, .booking, .prices { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 40px; }
  .hero-media { order: -1; margin-top: 24px; }
  .hero-card { left: auto; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; }
  .hero-card strong { font-size: var(--step-0); }
  .hero-media__deco--olive { width: 150px; left: -20px; bottom: -40px; }
  .hero-media__deco--citrus { width: 80px; right: -6px; top: -30px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 300px; }
  .bento__card:nth-child(1), .bento__card:nth-child(4) { grid-column: auto; }
  .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: minmax(0, 1fr); }
  .related a { grid-template-columns: 120px 1fr; align-items: center; }
  .steps-figure { position: static; }
  .steps-figure img { aspect-ratio: 3 / 2; }
  .booking__img { min-height: 220px; order: -1; }
  .faq .answer { padding-right: 0; }
}

@media (max-width: 560px) {
  .brand img { width: 148px; }
  .site-header__inner { height: 68px; }
  .nav.is-open { inset: 68px 0 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding-top: 110px; }
  .site-footer__art { top: -70px; }
  .price-row__amount { font-size: var(--step-2); }
  .actions .btn { flex: 1 1 100%; }
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal dd { margin-bottom: 10px; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(248 246 241 / .96);
    border-top: 1px solid var(--line);
    translate: 0 100%;
    transition: translate .35s var(--ease);
  }
  .mobile-bar.is-visible { translate: 0 0; }
  .mobile-bar .btn { min-height: 46px; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
