/* =========================================================
   E Deal Bordeaux — feuille de style unique
   ========================================================= */
/* Police hébergée sur le site (aucun appel à Google) — licence SIL OFL, voir assets/fonts/OFL.txt */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFFFF;
  --surface: #F4F6F7;     /* bandes et fonds de cartes */
  --surface-2: #EBEFF1;
  --ink: #14212A;         /* texte principal, reprend le « DEAL » du logo */
  --muted: #5B6870;
  --line: #E1E6E9;
  --line-strong: #CBD3D8;
  --brand: #00A19D;       /* turquoise du logo */
  --brand-ink: #00777A;   /* version lisible sur fond blanc */
  --brand-soft: #E3F5F4;
  --open: #15924A;
  --closed: #C2410C;
  --wa: #1FAF5A;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(20,33,42,.06), 0 8px 24px rgba(20,33,42,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p, dl, dd { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #24343F; }
.btn--outline { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }

/* ---------- Statut d'ouverture ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.status__dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(21,146,74,.15); }
.status.is-closed .status__dot { background: var(--closed); box-shadow: 0 0 0 4px rgba(194,65,12,.12); }
.status__title { font-weight: 700; }
.status.is-open .status__title { color: var(--open); }
.status.is-closed .status__title { color: var(--closed); }
.status__detail { color: var(--muted); }

.status--compact {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: var(--bg);
}
.status--compact:hover { border-color: var(--line-strong); }
.status--compact .status__title::after { content: ""; }

.status--large {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center;
}
.status--large .status__dot { width: 12px; height: 12px; }
.status--large .status__title { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.15; }
.status--large .status__detail { grid-column: 2; font-size: 1.05rem; }

.status--inline { margin-top: 24px; font-size: 1rem; flex-wrap: wrap; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.top__logo img { width: 108px; }
.top__nav { display: flex; gap: 28px; margin-left: 12px; }
.top__nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .975rem; }
.top__nav a:hover { color: var(--ink); }
.top .status { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 88px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__where { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; font-size: .975rem; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  max-width: 16ch; text-wrap: balance;
}
.hero__lead { margin-top: 24px; max-width: 50ch; color: var(--muted); font-size: 1.175rem; line-height: 1.55; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo { margin-top: 64px; position: relative; }
.hero__photo img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%;
  border-radius: var(--r-lg); background: var(--surface);
}
.hero__photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }

.visit {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative; overflow: hidden;
}
.visit::before {   /* filet aux couleurs du logo */
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, #3EDB6E, #12E0D6 55%, #1590E0);
}
.visit__list { margin-top: 28px; border-top: 1px solid var(--line); }
.visit__list > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .975rem; }
.visit__list dt { color: var(--muted); }
.visit__list dd { font-weight: 500; }
.visit__actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Services ---------- */
.services { background: var(--surface); border-bottom: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 56px 0; }
.service__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); background: var(--bg); color: var(--brand-ink);
  border: 1px solid var(--line);
}
.service h2 { margin-top: 18px; font-size: 1.3rem; }
.service p { margin-top: 8px; color: var(--muted); max-width: 36ch; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; max-width: 54ch; color: var(--muted); }

/* ---------- Produits ---------- */
.products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.product:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.product__price { font-weight: 800; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product__detail { margin-top: 4px; color: var(--muted); font-size: .925rem; }
.product__link {
  margin-top: auto; padding-top: 16px;
  color: var(--brand-ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.product__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Un seul produit : grande carte horizontale */
.products__grid.products__grid--single { grid-template-columns: 1fr; max-width: 880px; }
.products__grid--single .product { flex-direction: row; }
.products__grid--single .product__img { flex: 0 0 48%; }
.products__grid--single .product__body { padding: 32px; justify-content: center; }
.products__grid--single .product h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.products__grid--single .product__price { font-size: 1.6rem; }
.products__grid--single .product__row { flex-direction: column; gap: 6px; }
.products__grid--single .product__detail { margin-top: 12px; font-size: 1rem; }
.products__grid--single .product__link { margin-top: 24px; padding-top: 0; }
@media (max-width: 720px) {
  .products__grid--single .product { flex-direction: column; }
  .products__grid--single .product__img { flex: none; }
  .products__grid--single .product__body { padding: 20px; }
  .products__grid--single .product h3, .products__grid--single .product__price { font-size: 1.35rem; }
}

/* ---------- Estimation ---------- */
.estimate { background: var(--surface); border-block: 1px solid var(--line); }
.estimate__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.estimate__intro { position: sticky; top: 120px; }
.estimate__intro > p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; border-left: 1px solid var(--line-strong); }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 26px 32px; max-width: 44ch;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: -15px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: .875rem; color: var(--brand-ink);
}

.form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 36px; display: grid; gap: 24px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field select {
  width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #94A0A7; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6870' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field input:hover, .field select:hover { border-color: #AEB9C0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(0,161,157,.18); }
.field [aria-invalid="true"] { border-color: var(--closed); }

/* Choix de l'état : contrôle segmenté */
.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden;
}
.segmented label { position: relative; cursor: pointer; }
.segmented label + label { border-left: 1px solid var(--line-strong); }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 6px 10px;
  font-size: .925rem; font-weight: 500; line-height: 1.25;
  transition: background-color .12s, color .12s;
}
.segmented label:hover span { background: var(--surface); }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: -4px; border-radius: 6px; }

/* Accessoires : vraies cases à cocher */
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .975rem; min-height: 32px; }
.check input {
  appearance: none; margin: 0; flex: none;
  width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--bg);
  display: grid; place-items: center; cursor: pointer; transition: background-color .12s, border-color .12s;
}
.check input::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check:hover input { border-color: #AEB9C0; }

.form__error { color: var(--closed); font-weight: 600; font-size: .95rem; }
.form__note { font-size: .875rem; color: var(--muted); text-align: center; margin-top: -8px; }

.field__hint { margin-top: 8px; font-size: .875rem; color: var(--muted); }

/* ---------- Questions fréquentes ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__intro p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.faq__intro a { color: var(--brand-ink); font-weight: 600; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 600; font-size: 1.075rem; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq__item summary:hover { color: var(--brand-ink); }
.faq__answer { padding: 0 40px 22px 0; color: var(--muted); max-width: 64ch; }
.faq__answer p + p { margin-top: 10px; }

/* ---------- Magasin ---------- */
.shop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: stretch; }
.shop__addr { margin-top: 16px; font-size: 1.15rem; font-weight: 500; }
.hours { margin-top: 20px; width: 100%; max-width: 380px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours tr.is-today th::after {
  content: "Aujourd'hui"; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: .75rem; font-weight: 600; vertical-align: 2px;
}
.hours__note { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.shop__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.shop__map { min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shop__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Note Google */
.rating { color: var(--ink); text-decoration: none; }
.rating:hover { text-decoration: underline; text-underline-offset: 3px; }
.rating__stars { color: #E8A317; letter-spacing: 1px; margin-right: 4px; position: relative; }
.rating__part { color: var(--line-strong); }
.shop__review { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.shop__review a { color: var(--brand-ink); font-weight: 600; }

/* Plan Google chargé seulement au clic */
.map-gate {
  height: 100%; min-height: inherit; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface);
  color: var(--brand-ink);
}
.map-gate__title { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.map-gate__text { color: var(--muted); max-width: 34ch; margin-bottom: 8px; }
.map-gate__note { color: var(--muted); font-size: .8rem; margin-top: 6px; }

.form__done { background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; font-size: .95rem; padding: 12px 14px; border-radius: var(--r-sm); }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 104px; font-size: .925rem; }
.foot__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot img { width: 112px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__copy { width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 14px rgba(20,33,42,.22);
  transition: transform .15s;
}
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Page texte (mentions légales) ---------- */
.legal { padding: 72px 0 104px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; }
.legal p { margin-top: 12px; }
.legal a { color: var(--brand-ink); }
.legal .back { display: inline-block; margin-top: 48px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .hero__grid, .estimate__grid, .shop__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 48px; }
  .visit { max-width: 560px; }
  .estimate__grid { gap: 48px; }
  .estimate__intro { position: static; }
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__intro { position: static; }
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .top__inner { height: 64px; gap: 12px; }
  .top__logo img { width: 88px; }
  .status--compact { padding: 6px 12px; font-size: .85rem; }
  .status--compact { gap: 6px; }
  .top__cta { display: none; }

  .hero { padding: 40px 0 56px; }
  .hero__lead { font-size: 1.075rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__photo { margin-top: 40px; }
  .hero__photo img { aspect-ratio: 4 / 3; object-position: 45% 60%; border-radius: var(--r-md); }
  .visit { padding: 24px; }
  .visit__list > div { grid-template-columns: 96px 1fr; }
  .status--large .status__title { font-size: 1.35rem; }

  .services__grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 28px; }
  .products__grid { gap: 12px; }
  .product__body { padding: 14px; }
  .product__row { flex-direction: column; gap: 2px; }

  .form { padding: 22px; gap: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .segmented span { font-size: .875rem; padding: 6px; }

  .shop__map, .shop__map iframe { min-height: 320px; }
  .shop__actions .btn { flex: 1 1 auto; }
  .foot__links { margin-left: 0; width: 100%; }
}

/* =========================================================
   Animations (uniquement si html.fx : mouvement autorisé)
   Règle : transform + opacity seulement, jamais de texte masqué
   si le script ne se charge pas.
   ========================================================= */
.top { transition: box-shadow .25s ease, border-color .25s ease; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20,33,42,.06); border-bottom-color: transparent; }

/* 1. Arrivée du haut de page : un seul mouvement orchestré */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
}
@keyframes card-in {
  from { opacity: 0; transform: perspective(1100px) translate3d(0, 28px, 0) rotateX(9deg) rotateY(-7deg); }
}
html.fx .hero__text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
html.fx .hero__text > :nth-child(2) { animation-delay: .06s; }
html.fx .hero__text > :nth-child(3) { animation-delay: .14s; }
html.fx .hero__text > :nth-child(4) { animation-delay: .22s; }
html.fx .visit { animation: card-in 1.1s cubic-bezier(.16,.8,.24,1) .2s backwards; transform-origin: 50% 100%; }

/* 2. Apparition progressive au défilement (classe posée par main.js) */
html.fx .reveal.reveal {
  transform-origin: 50% 100%;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--d, 0ms);
}
html.fx .reveal:not(.is-in) {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 26px, 0) rotateX(7deg);
}

/* 3. Profondeur au survol (souris uniquement, pas sur écran tactile) */
@media (hover: hover) and (pointer: fine) {
  html.fx .visit,
  html.fx .product {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0);
    transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .2s ease;
  }
  html.fx .visit.is-tilting,
  html.fx .product.is-tilting { transition: transform .12s linear, box-shadow .3s ease, border-color .2s ease; }
  html.fx .product:hover { --ty: -4px; box-shadow: 0 2px 4px rgba(20,33,42,.05), 0 18px 40px rgba(20,33,42,.10); }
  html.fx .product__img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  html.fx .product:hover .product__img img { transform: scale(1.04); }
  html.fx .visit:hover { box-shadow: 0 2px 4px rgba(20,33,42,.05), 0 20px 44px rgba(20,33,42,.09); }
}

/* Mobile : mouvements plus courts, sans inclinaison */
@media (max-width: 720px) {
  html.fx .reveal:not(.is-in) { transform: translate3d(0, 16px, 0); }
  html.fx .visit { animation-name: rise; }
}

@media (max-width: 380px) {
  .status--compact .status__detail { display: none; }
}

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