/* ——— Accueil X — Développement (layout éditorial) ——— */

.home-body {
  --home-ink: #121212;
  --home-accent: #c24a2e;
  --home-sand: #f3efe8;
  --home-sand-deep: #e8e0d4;
  --home-line: rgba(18, 18, 18, 0.1);
}

.home-body .site-header {
  background: rgba(250, 248, 244, 0.82);
}

.home-flash-wrap {
  padding-top: 1rem;
}

.home-v2 {
  overflow-x: clip;
}

/* Hero */
.home-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(520px, 70vh);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(194, 74, 46, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(47, 107, 79, 0.08), transparent 50%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 550;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.home-hero-brand {
  display: block;
  font-size: 0.55em;
  letter-spacing: -0.02em;
}

.home-hero-dash {
  display: none;
}

.home-hero-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--home-accent);
}

.home-hero-lede {
  margin: 0;
  max-width: 34rem;
  color: var(--mute);
  font-size: 1.06rem;
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--home-line);
}

.home-stat {
  min-width: 4.5rem;
}

.home-stat dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.home-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Spotlight produit hero */
.home-hero-stage {
  position: relative;
}

.home-hero-orbit {
  position: absolute;
  inset: -8% -6%;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
  animation: home-orbit 28s linear infinite;
}

@keyframes home-orbit {
  to {
    transform: rotate(360deg);
  }
}

.home-spotlight {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--home-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px rgba(18, 18, 18, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.home-spotlight:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 32px 64px rgba(18, 18, 18, 0.12);
}

.home-spotlight-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f7f3ec 0%, #ebe4d8 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-spotlight-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.home-spotlight:hover .home-spotlight-frame img {
  transform: scale(1.04);
}

.home-spotlight-frame--logo img {
  width: 55%;
  height: auto;
}

.home-spotlight-placeholder {
  width: 60%;
  height: 60%;
  border: 1px dashed var(--home-line);
  border-radius: 4px;
}

.home-spotlight-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--home-ink);
  color: var(--paper);
  border-radius: 2px;
}

.home-spotlight-meta {
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid var(--home-line);
}

.home-spotlight-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.home-spotlight-meta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-spotlight-price {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--mute);
}

.home-spotlight-price strong {
  color: var(--home-ink);
  font-weight: 700;
}

.home-spotlight-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--home-accent);
}

/* Marquee */
.home-marquee {
  border-block: 1px solid var(--home-line);
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  padding: 0.85rem 0;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: home-marquee 32s linear infinite;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.home-marquee-track span {
  white-space: nowrap;
}

.home-marquee-track span::after {
  content: "◆";
  margin-left: 3rem;
  font-size: 0.45rem;
  vertical-align: middle;
  opacity: 0.45;
}

@keyframes home-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Blocs sections */
.home-block {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.home-block--sand {
  background: rgba(243, 239, 232, 0.65);
  border-block: 1px solid var(--home-line);
}

.home-block--team {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-kicker--light {
  color: rgba(250, 248, 244, 0.7);
}

.home-block-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.home-block-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-block-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-block-lede {
  margin: 0.65rem 0 0;
  color: var(--mute);
  max-width: 32rem;
  line-height: 1.6;
}

.home-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Bento expertise */
.home-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.home-bento-cell {
  position: relative;
  padding: 1.65rem 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.home-bento-cell:hover {
  border-color: rgba(194, 74, 46, 0.35);
  transform: translateY(-2px);
}

.home-bento-cell--1 { grid-column: span 6; }
.home-bento-cell--2 { grid-column: span 6; }
.home-bento-cell--3 { grid-column: span 4; }
.home-bento-cell--4 { grid-column: span 8; }

.home-bento-index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 450;
  font-style: italic;
  color: rgba(194, 74, 46, 0.35);
  line-height: 1;
}

.home-bento-cell h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.home-bento-cell p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Grille produits */
.home-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.home-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
}

.home-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f7f3ec 0%, #ebe4d8 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-product-media img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.home-product-card:hover .home-product-media img {
  transform: scale(1.03);
}

.home-product-placeholder {
  width: 50%;
  height: 50%;
  border: 1px dashed var(--home-line);
}

.home-product-shield {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.85rem;
}

.home-product-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-product-tag {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.home-product-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.25;
}

.home-product-rating {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--mute);
}

.home-product-rating strong {
  color: var(--home-ink);
}

.home-product-price {
  margin: auto 0 0;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.home-catalog-foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

/* Étapes */
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: home-step;
}

.home-step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--home-line);
  border-radius: 4px;
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 550;
  background: var(--home-ink);
  color: var(--paper);
  border-radius: 50%;
}

.home-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
}

.home-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Équipe accueil */
.home-team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.home-team-row .team-member-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  padding-bottom: 0.25rem;
}

/* Vidéos */
.home-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.home-video-card {
  border: 1px solid var(--home-line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}

.home-video-media {
  aspect-ratio: 16 / 9;
  background: var(--home-sand-deep);
  overflow: hidden;
}

.home-video-media iframe,
.home-video-media video,
.home-video-media img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.home-video-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 10rem;
  color: var(--home-accent);
  font-weight: 600;
  text-decoration: none;
}

.home-video-body {
  padding: 1rem 1.15rem 1.2rem;
}

.home-video-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 550;
}

.home-video-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.5;
}

/* CTA bande sombre */
.home-cta-band {
  margin-top: 1rem;
  background: var(--home-ink);
  color: var(--paper);
}

.home-cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.home-cta-band-copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-cta-band-copy p {
  margin: 0;
  max-width: 28rem;
  color: rgba(250, 248, 244, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-invert.btn-primary {
  background: var(--paper);
  color: var(--home-ink);
}

.btn-invert.btn-primary:hover {
  background: var(--home-accent);
  color: var(--paper);
}

.btn-invert.btn-ghost {
  border-color: rgba(250, 248, 244, 0.25);
  color: var(--paper);
}

.btn-invert.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

/* Animations scroll */
.home-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

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

.home-reveal--delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee-track,
  .home-hero-orbit {
    animation: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-stage {
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }

  .home-bento-cell--1,
  .home-bento-cell--2,
  .home-bento-cell--3,
  .home-bento-cell--4 {
    grid-column: span 12;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-team-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-stats {
    gap: 1.25rem 2rem;
  }

  .home-team-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .home-cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— UI polish v2 ——— */
.home-spotlight,
.home-product-card,
.home-bento-cell,
.home-video-card {
  backdrop-filter: blur(8px);
}

.home-bento-cell--1,
.home-bento-cell--4 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.42) 100%);
}

.home-product-card:hover,
.home-bento-cell:hover {
  border-color: rgba(194, 74, 46, 0.22);
}

.home-cta-band {
  position: relative;
  overflow: hidden;
}

.home-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(194, 74, 46, 0.15), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(47, 107, 79, 0.1), transparent 50%);
  pointer-events: none;
}

.home-cta-band-inner {
  position: relative;
}

.home-marquee {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-block--sand {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--home-accent);
  border-radius: 1px;
}

.home-kicker--light::before {
  background: rgba(250, 248, 244, 0.5);
}
