/* French Hut — site vitrine semi-sombre (quiet luxury 2026)
   Aligné sur application/docs/CHARTE_GRAPHIQUE.md + app_theme.dart dark()
   Canvas unique : pas de thème clair parallèle. */

:root {
  /* Tokens dark — source de vérité : app_theme.dart dark() */
  --scaffold: #0D1117;
  --surface: #151A22;
  --card: #1C2330;
  --text: #E8EDF2;
  --text-muted: rgba(232, 237, 242, 0.7);
  --text-faint: rgba(232, 237, 242, 0.5);
  --blue: #2B6CB0;
  --blue-light: #7EB6E8;
  --clay: #C47B4A;
  --border: rgba(232, 237, 242, 0.12);
  --header-bg: rgba(13, 17, 23, 0.72);
  --dock-bottom: 0.85rem;
  --dock-reserve: 5.75rem;

  /* Typographie système — pas de webfont CDN */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, monospace;

  --wrap-max: 1120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body + grain ── */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--scaffold);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-reserve);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ── Layout ── */
.wrap {
  width: min(var(--wrap-max), calc(100% - 2rem));
  margin: 0 auto;
}

main.wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

main.site-main {
  padding: 0;
}

main.site-main > .wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ── Dock bas unique, centré (verre) ── */
.site-dock {
  position: fixed;
  left: 50%;
  bottom: var(--dock-bottom);
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 1.25rem);
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.site-dock::-webkit-scrollbar {
  display: none;
}

.site-dock a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.35rem 0.2rem;
}

.site-dock a:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-light);
  letter-spacing: 0.02em;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.site-dock a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.15rem;
  width: auto;
  height: 1px;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-dock a:not(.cta):hover::after,
.site-dock a:not(.cta):focus-visible::after,
.site-dock a.is-current:not(.cta)::after {
  transform: scaleX(1);
}

.site-dock a:hover,
.site-dock a.is-current {
  color: var(--blue-light);
}

.site-dock a.cta {
  background: var(--blue);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  margin-left: 0.15rem;
}

.site-dock a.cta:hover {
  color: #fff;
  opacity: 0.9;
}

.cart-fab {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 110;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.cart-fab:hover,
.cart-fab:focus-visible {
  color: #fff;
  opacity: 0.92;
}

.cart-fab__icon {
  display: block;
}

.cart-fab__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

/* ── Hero ── */
.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  max-width: 38rem;
  color: var(--text-muted);
}

/*
 * Hero (plan) : pin ~180vh + sticky = bandeau seul (ratio natif, wipe G→D).
 * Interdit sur le bandeau : object-fit:cover + 100vh.
 * Suite (texte+vidéo, frise, modules) en flux APRÈS le pin.
 */
.hero {
  position: relative;
  background: var(--scaffold);
}

.hero-pin {
  height: 180vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--scaffold);
  padding-bottom: 0.5rem;
}

.hero-band {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--scaffold);
}

.hero-band__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--scaffold);
}

.hero-band__img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 42% 0 0);
}

.hero-band__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 2px;
  background: var(--clay);
  box-shadow: 0 0 12px rgba(196, 123, 74, 0.55);
  pointer-events: none;
  z-index: 2;
}

.hero-copy--on-band {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: min(22rem, 36%);
  opacity: 1;
  will-change: opacity;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.hero-copy__tagline {
  font-size: 1.05rem;
  max-width: 22rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-copy .btn {
  margin-top: 1rem;
}

.hero-under {
  position: relative;
  z-index: 1;
  background: var(--scaffold);
  margin: 0;
  padding: 1.75rem 0 0.5rem;
}

.hero-under__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-video {
  display: block;
  width: 100%;
}

.hero-video__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video__veil {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 58% 48% at 50% 52%, transparent 0%, transparent 42%, rgba(13, 17, 23, 0.55) 68%, rgba(13, 17, 23, 0.82) 100%);
  pointer-events: none;
}

.hero-video__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  border-radius: 50%;
  border: 1px solid rgba(232, 237, 242, 0.45);
  background: rgba(13, 17, 23, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.hero-video__play:hover .hero-video__orb {
  transform: scale(1.08);
  border-color: var(--clay);
  background: rgba(196, 123, 74, 0.25);
}

.hero-video__orb-tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #E8EDF2;
  margin-left: 0.15rem;
}

.hero-video__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  border-radius: 2px;
}

.hero-video__play--no-thumb {
  min-height: 180px;
  background: var(--surface);
}

.hero-rest {
  position: relative;
  z-index: 1;
  background: var(--scaffold);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.hero-deck {
  margin: 0 0 1.75rem;
}

.hero-deck .mat-rail {
  margin: 0 0 1.1rem;
}

.hero-deck .stat-line {
  margin: 0 0 1rem;
}

.hero-deck .atelier-label {
  margin: 0 0 0.85rem;
}

@media (max-width: 700px) {
  .hero-pin {
    height: 140vh;
  }
  .hero-copy--on-band {
    width: min(15rem, 44%);
    right: 0.75rem;
  }
  .hero-copy h1 {
    font-size: 1.45rem;
  }
  .hero-under__row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .stat-line {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pin {
    height: auto;
  }
  .hero-sticky {
    position: relative;
    top: 0;
  }
  .hero-copy--on-band {
    display: none;
  }
  .hero-band__img {
    clip-path: none;
  }
  .hero-band__edge {
    display: none;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.88; }

.btn--disabled,
.btn[aria-disabled="true"] {
  background: var(--border);
  color: var(--muted, #6b7280);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.75;
}

/* ── Grid (3 axes index) ── */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2.5rem 0 3rem;
}

.grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.grid article h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.grid article p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Tile grid (fonctionnalités) ── */
.tile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 2rem 0 2.5rem;
}

.tile-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.5rem;
}

.tile-grid article h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tile-grid article p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Section intro ── */
.section-intro {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 1px solid transparent;
  transition: border-color 0.6s ease;
}

/* ── CTA row ── */
.cta-row {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.cta-row .btn { margin: 0; }

.cta-row a:not(.btn) {
  color: var(--blue-light);
  text-decoration: none;
}

.cta-row a:not(.btn):hover {
  text-decoration: underline;
}

/* ── Forms (contact) ── */
form {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.3);
}

input::placeholder, textarea::placeholder {
  color: var(--text-faint);
}

button {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

button:hover { opacity: 0.9; }

/* ── Page titles (pages internes) ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

main.wrap p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 42rem;
}

main.wrap a {
  color: var(--blue-light);
  text-decoration: none;
}

main.wrap a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero { padding-top: 3rem; }

  .site-dock a {
    font-size: 0.78rem;
  }

  .grid, .tile-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Personas (Lot 4/4) ── */
.persona-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 1.5rem 0 2.5rem;
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
}

.persona-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--clay);
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.persona-card:hover::before {
  height: 100%;
}

.persona-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.persona-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Contact focus + sent (Lot 4/4) ── */
.contact-field {
  position: relative;
}

.contact-field input,
.contact-field textarea {
  border-color: var(--clay);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.3);
}

.checkout-shipping {
  border: 0;
  padding: 0;
  margin: 1.5rem 0;
}

.checkout-shipping legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.checkout-shipping__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .checkout-shipping__row {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-shipping__num {
    max-width: 6rem;
  }

  .checkout-shipping__cp {
    max-width: 8rem;
  }
}

.contact-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--clay);
  border-radius: 4px;
  background: var(--paper);
  color: inherit;
  font: inherit;
}

.contact-submit {
  justify-self: start;
}

.contact-sent {
  text-align: center;
  padding: 2rem 0;
}

.contact-sent p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}

@media (max-width: 700px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Modules interactifs (Lot 3/4) ── */
.modules {
  margin: 3.5rem 0;
}

.modules__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text);
  margin-bottom: 0.4rem;
}

.modules__intro {
  margin-bottom: 1.5rem;
}

.modules__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  counter-reset: outil;
}

.module-card {
  counter-increment: outil;
}

.module-card__btn::before {
  content: counter(outil, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 0.35rem;
}

.module-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 0;
  background: var(--clay);
  z-index: 2;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-card:hover::before,
.module-card.is-open::before {
  width: 100%;
}

.module-card:hover,
.module-card.is-open {
  border-color: rgba(196, 123, 74, 0.45);
}

.module-card__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.module-card__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.module-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.module-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.module-card__hint {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.module-card__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.module-card.is-open .module-card__panel {
  height: auto;
}

.module-card__desc {
  padding: 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.module-card__cta {
  display: inline-block;
  margin: 0.75rem 1.25rem 1.1rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.module-card__cta:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Grid axes hover (Lot 3/4) ── */
.grid article {
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.grid article:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(43, 108, 176, 0.15);
}

.grid article:nth-child(2):hover {
  border-color: var(--clay);
  box-shadow: 0 0 0 1px rgba(196, 123, 74, 0.15);
}

.grid article:nth-child(3):hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 1px rgba(126, 182, 232, 0.15);
}

@media (max-width: 700px) {
  .modules__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Video duo ── */
.video-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card.revealed,
.video-card:hover {
  clip-path: inset(0 0 0 0);
}

.video-card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.video-card:hover .video-card__play-icon {
  transform: translate(-50%, -50%) scale(1.12);
}

.video-card__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.video-card__play img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.video-card__play:hover img {
  opacity: 0.85;
}

.video-card__play--no-thumb {
  min-height: 180px;
  background: var(--surface);
  line-height: 1.4;
}

.video-card__iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.video-card__title {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .video-duo {
    grid-template-columns: 1fr;
  }
}

/* ── Atelier (typo, coupe, relevé) — pas de halo souris ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.word-cycle {
  display: inline-block;
  min-width: 7.5ch;
  color: var(--clay);
  font-weight: 600;
}

.word-cycle [data-cycle] {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.word-cycle [data-cycle].is-out {
  opacity: 0;
  transform: translateY(0.4em);
}

.mat-rail {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 2rem;
  padding: 0.65rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mat-rail__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: mat-scroll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mat-rail__track span {
  white-space: nowrap;
}

@keyframes mat-scroll {
  to { transform: translateX(-50%); }
}

.page-video {
  max-width: 36rem;
  margin: 2.5rem auto 1rem;
}

.page-video__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.stat-line {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 0;
}

.stat-line li {
  font-size: 0.92rem;
  color: var(--text-muted);
  border-left: 1px solid var(--clay);
  padding-left: 0.9rem;
}

.stat-line em {
  font-style: normal;
  color: var(--text);
}

.stat-line__n {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.wipe-title {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.wipe-title.is-in,
[data-reveal].revealed.wipe-title {
  clip-path: inset(0 0 0 0);
}

.axes-grid article {
  position: relative;
  padding-top: 2.2rem;
  border-radius: 2px;
}

.axes-grid article::before {
  content: attr(data-axe);
  position: absolute;
  top: 0.7rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.axes-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--blue);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.axes-grid article:hover::after,
.axes-grid article.revealed::after {
  width: 40%;
}

.axes-grid article:nth-child(2)::after { background: var(--clay); }
.axes-grid article:nth-child(3)::after { background: var(--blue-light); }

/* Touches légères atelier / éditorial (MFPB · Fallend) */
.atelier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.65rem;
}

.section-intro.revealed,
[data-reveal].revealed.section-intro {
  border-left-color: var(--clay);
}

main.wrap > h1,
main.site-main .wrap > h1 {
  letter-spacing: -0.02em;
}

.persona-card,
.module-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
}

.page-video .hero-video__play {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.page-video .hero-video__play:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

.site-dock a:first-child {
  transition: letter-spacing 0.4s ease, color 0.2s ease;
}

.site-dock a:first-child:hover {
  letter-spacing: 0.06em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

#reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.25);
}

@keyframes ripple-expand {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .mat-rail__track {
    animation: none;
  }
  .word-cycle [data-cycle] {
    transition: none;
  }
  .video-card {
    clip-path: none;
  }
  .hero-video {
    opacity: 1 !important;
    transform: none !important;
  }
  #reading-bar { height: 0; }
}

/* ── Distribution : boutique, docs, plateformes ── */
.stripe-test-banner {
  margin: 0;
  padding: 0.45rem 4.2rem 0.45rem 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--clay);
}

.note-box {
  border: 1px solid var(--border);
  border-left: 2px solid var(--clay);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.75rem;
  max-width: 42rem;
}

.note-box p:last-child {
  margin-bottom: 0;
}

.shop-card form {
  margin-top: 1rem;
  max-width: none;
}

.shop-card .btn {
  justify-self: start;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
}

.shop-card__kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.45rem;
}

.doc-block {
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.doc-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.cart-table {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.cart-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.cart-table .btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.cart-table form {
  display: inline;
  max-width: none;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0 2rem;
}

.video-grid .page-video {
  margin: 0;
  max-width: none;
}

/* ── Boutique (hero + grille + cart-fab) ── */
.hero-shop {
  padding: 4.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--scaffold) 0%, var(--surface) 100%);
}

.hero-shop h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.hero-shop .section-intro {
  max-width: 36rem;
}

.shop-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin: 0.75rem 0 2.5rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.35rem;
  margin: 1rem 0 0.65rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: none;
}

.shop-toolbar__fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.shop-toolbar__legend,
.shop-toolbar__sort label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0;
}

.shop-toolbar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.shop-toolbar__pill {
  display: inline-flex;
  cursor: pointer;
  margin: 0;
  gap: 0;
}

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

.shop-toolbar__pill span {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.shop-toolbar__pill:hover span {
  border-color: rgba(196, 123, 74, 0.45);
  color: var(--text);
}

.shop-toolbar__pill input:checked + span {
  border-color: var(--clay);
  color: var(--text);
  background: rgba(196, 123, 74, 0.16);
}

.shop-toolbar__pill input:focus-visible + span {
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.45);
}

.shop-toolbar__sort {
  display: grid;
  gap: 0.4rem;
  min-width: 12rem;
}

.shop-toolbar select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-toolbar select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.3);
}

.shop-toolbar__submit {
  background: var(--clay);
  color: #fff;
  border: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.shop-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 0.25rem;
}

.shop-toolbar__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

.shop-toolbar__reset {
  font-size: 0.88rem;
  color: var(--clay);
  text-decoration: none;
}

.shop-toolbar__reset:hover {
  color: var(--text);
}

.shop-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.shop-empty a {
  color: var(--clay);
}

.shop-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.shop-card__media {
  display: block;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--scaffold);
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.04);
}

.shop-card--cloud .shop-card__media {
  border-bottom-color: rgba(43, 108, 176, 0.35);
}

.shop-card__kind {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  background: rgba(196, 123, 74, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin: 1.25rem 0 0.65rem 1.25rem;
}

.shop-card--cloud .shop-card__kind {
  color: var(--blue-light);
  background: rgba(43, 108, 176, 0.12);
}

.shop-card .persona-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.4rem;
  padding: 0 1.25rem;
}

.shop-card .persona-card__title a {
  color: inherit;
  text-decoration: none;
}

.shop-card .persona-card__title a:hover {
  color: var(--clay);
}

.shop-card--cloud .persona-card__title a:hover {
  color: var(--blue-light);
}

.shop-card .persona-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  padding: 0 1.25rem 0.75rem;
}

.shop-card__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  padding: 0 1.25rem 1rem;
}

.shop-card form {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  max-width: none;
}

.shop-card .btn {
  width: 100%;
  text-align: center;
  justify-self: start;
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 123, 74, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.shop-card--cloud:hover {
  border-color: rgba(43, 108, 176, 0.45);
}

/* ── Fiche produit ── */
.product-detail {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  margin: 1rem 0 2.5rem;
}

.product-detail__media {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--scaffold);
}

.product-detail__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-detail__body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--clay);
  margin: 0 0 1rem;
}

.product-detail--cloud .product-detail__price {
  color: var(--blue-light);
}

.product-detail__body form {
  margin: 1rem 0;
  max-width: none;
}

.product-detail__body .cta-row {
  margin-top: 0.5rem;
}

.cart-total small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 400;
}

/* ── Cart total ── */
.cart-total {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 42rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cart-total__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
}

.cart-table tbody tr {
  transition: background 0.2s ease;
}

.cart-table tbody tr:hover {
  background: rgba(232, 237, 242, 0.03);
}

/* ── Cart-fab amélioré ── */
.cart-fab {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.cart-fab__badge {
  animation: fab-pulse 2s ease-in-out 1;
}

@keyframes fab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Shop adding micro-interaction ── */
.shop-card.is-adding .btn {
  background: #3d8b5e;
  pointer-events: none;
}

/* ── Boutique responsive ── */
@media (max-width: 700px) {
  .hero-shop {
    padding-top: 3rem;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    padding: 0.9rem 1rem;
  }

  .shop-toolbar__sort {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .shop-toolbar__submit {
    width: 100%;
  }

  .shop-card__media {
    height: 140px;
  }

  .shop-card .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .cart-total {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-fab__badge {
    animation: none;
  }

  .shop-card:hover {
    transform: none;
    border-color: rgba(196, 123, 74, 0.3);
    box-shadow: none;
  }

  .shop-card:hover .shop-card__media img {
    transform: none;
  }

  .shop-card--cloud:hover {
    border-color: rgba(43, 108, 176, 0.3);
  }

  .cart-fab:hover {
    transform: none;
  }

  .shop-toolbar__pill span {
    transition: none;
  }
}
