/* Accueil — typo, palette et rythme calés sur la maquette. */

.home {
  --home-navy: var(--color-navy);
  --home-cream: var(--color-cream);
  --home-coral: var(--color-coral);
  --home-ink: var(--color-ink);
  --home-sky: var(--color-pastel-blue);
  --home-peach: var(--color-pastel-rose);
  --home-sage: var(--color-pastel-green);
  --home-butter: var(--color-pastel-peach);
  --home-note: "Kalam", "Segoe Print", cursive;
  --font-title: "Kalam", "Segoe Print", cursive;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --home-shadow: 0 4px 16px rgba(4, 4, 4, 0.06);
  --home-radius: 14px;
  background: var(--home-cream);
  color: var(--home-navy);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.2vw + 0.96rem, 1.0625rem);
  line-height: 1.55;
  overflow-x: clip;
}

.home .container-narrow {
  width: min(var(--layout-max), 100%);
  max-width: var(--layout-max);
}

.home h1,
.home h2,
.home h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  color: var(--home-navy);
}

.home h1 {
  font-size: clamp(2.125rem, 1.4vw + 1.7rem, 3rem);
  line-height: 1.08;
  max-width: 9.5ch;
  margin: 0 0 0.85rem;
}

.home h2 {
  font-size: clamp(1.625rem, 0.7vw + 1.45rem, 2rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

.home h3 {
  font-size: clamp(1.1875rem, 0.3vw + 1.12rem, 1.375rem);
  line-height: 1.25;
  margin: 0;
}

.home p {
  font-size: inherit;
  line-height: 1.55;
  color: var(--home-ink);
  margin: 0;
}

.home-hero,
.home-creations,
.home-sarah,
.home-instagram,
.home-magnet,
.home-cta,
.home-trust {
  padding: 1.85rem 0;
}

.home-hero {
  padding-top: 1.5rem;
}

.home-trust {
  padding-bottom: 2.4rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.2vw + 0.82rem, 1rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--color-pink);
  color: var(--color-black);
  box-shadow: none;
  transform: none;
}

.home-btn:hover {
  background: var(--color-black);
  color: var(--color-cream);
  transform: none;
  box-shadow: none;
}

.home-btn:focus-visible {
  outline: 2px solid var(--home-navy);
  outline-offset: 3px;
}

.home-cta-band .home-btn {
  background: #fff;
  color: var(--color-black);
}

.home-cta-band .home-btn:hover {
  background: #fff;
  color: var(--color-black);
  box-shadow: inset 0 0 0 1.5px var(--color-black);
}

.home-hero-grid,
.home-sarah-card,
.home-magnet-band,
.home-cta-band {
  display: grid;
  gap: 1.25rem;
}

.home-hero-copy .lead {
  max-width: 38em;
  margin-bottom: 1.1rem;
  color: var(--home-ink);
}

.home-hero-copy .lead p {
  margin: 0;
}

.home-hero-copy .lead p + p {
  margin-top: 0.75rem;
}

.home-hero-copy {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.45rem;
  padding-top: 0.35rem;
}

.home-hero-copy > h1 {
  order: 0;
  flex: 0 0 auto;
  margin-bottom: 0.85rem;
}

.home-hero-copy > .lead,
.home-hero-copy > .home-btn,
.home-hero-copy > .home-hero-mascot {
  order: 2;
  flex: 1 0 100%;
}

.home .home-intro-cat {
  order: 1;
  width: 80px;
  flex: 0 0 80px;
  margin: 0 0 0.85rem;
}

@container (min-width: 320px) {
  .home .home-intro-cat {
    width: 108px;
    flex-basis: 108px;
  }
}

@container (min-width: 420px) {
  .home .home-intro-cat {
    width: 128px;
    flex-basis: 128px;
  }
}

.home .home-intro-cat .media-slot {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.home .home-intro-cat img {
  object-fit: contain;
}

.home-hero-mascot {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 1.35rem;
}

.home-hero-mascot-cat {
  width: 92px;
  flex: 0 0 92px;
}

.home-bubble {
  font-family: var(--home-note);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.3vw + 0.88rem, 1.125rem);
  line-height: 1.2;
  color: var(--home-navy);
  background: #fff;
  border: 1.5px solid var(--home-navy);
  border-radius: 16px 16px 16px 6px;
  padding: 0.45rem 0.7rem;
  margin: 0 0 0.7rem;
  max-width: 18rem;
  transform: rotate(-2deg);
  box-shadow: var(--home-shadow);
}

.home-hero-stage,
.home-sarah-visual,
.home-magnet-photo {
  position: relative;
}

.home-scribble {
  font-family: var(--home-note);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.3vw + 0.88rem, 1.125rem);
  line-height: 1.2;
  color: var(--home-navy);
  margin: 0;
}

.home-sarah-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-sarah-visual .category-video-frame {
  width: min(70vw, 260px);
}

.home-scribble--sarah {
  position: static;
  margin: 0.7rem 0 0;
  max-width: 12rem;
  text-align: center;
  transform: rotate(-4deg);
  font-size: 1.15rem;
  pointer-events: none;
}

.home-heart {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.home-heart--hero {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 20px;
  height: 20px;
}

.home-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin: 0.4rem 0 1.15rem;
}

.home-kicker::before,
.home-kicker::after {
  content: "";
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: #e7b7b2;
}

.home-card-grid {
  display: grid;
  gap: 1.1rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--home-radius);
  overflow: visible;
  color: inherit;
  box-shadow: var(--home-shadow);
}

.home-card:hover {
  color: inherit;
}

.home-card--paused {
  cursor: default;
}

.home-card--paused .home-card-body p {
  margin-bottom: 0;
}

.home-card:focus-visible {
  outline: 2px solid var(--home-navy);
  outline-offset: 3px;
}

.home-card .media-slot--card {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  box-shadow: none;
}

.home-card .media-slot--card.media-slot--empty .prod-ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-card .media-slot--card .prod-ph-meta {
  display: none;
}

.home-card--rose .media-slot { background: var(--home-peach); }
.home-card--sage .media-slot { background: var(--home-sage); }
.home-card--butter .media-slot { background: var(--home-butter); }
.home-card--sky .media-slot { background: var(--home-sky); }

.home-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}

.home-card-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.home-card-heading img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}

.home-card-body p {
  flex: 1;
  font-size: inherit;
  line-height: 1.55;
  max-width: 38em;
  margin-bottom: 0.7rem;
}

.home-card-link,
.home-text-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.2vw + 0.82rem, 1rem);
  color: var(--color-black);
}

.home-card-link:hover,
.home-text-link:hover {
  color: var(--color-black);
  text-decoration: underline;
}

.home-cta-band--measure {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.home-cta-band--measure .home-cta-copy p {
  max-width: 38em;
}

.home-card-link::after,
.home-text-link::after {
  content: " →";
}

.home-instagram-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-instagram-story {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-instagram-grid--posts {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-instagram-grid > li > a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-instagram-grid > .home-instagram-story > a:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-align: center;
}

.home-instagram-grid > .home-instagram-story > .home-instagram-profile {
  display: inline-flex;
  margin-top: 0.85rem;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.home-instagram-grid > .home-instagram-story > .home-whatsapp-portrait {
  display: block;
  margin-top: auto;
  padding-top: 2.25rem;
  line-height: 0;
}

.home-instagram-grid > .home-instagram-story > .home-whatsapp-portrait img {
  width: calc(6.4rem + 6px);
  height: calc(6.4rem + 6px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 3px solid #fff;
}

.home-instagram-grid > .home-instagram-story > .home-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  background: #25D366;
  color: #fff;
  border: none;
  line-height: 1.25;
}

.home-instagram-grid > .home-instagram-story > .home-whatsapp:hover,
.home-instagram-grid > .home-instagram-story > .home-whatsapp:focus-visible {
  background: #1daf56;
  color: #fff;
}

.home-instagram-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  background: #f3ebe3;
}

.home-instagram-ring {
  display: block;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7c56b, #e85a78 55%, #7a4b8a);
}

.home-instagram-ring img {
  width: 6.4rem;
  height: 6.4rem;
  border: 3px solid var(--color-cream, #fffaf6);
  border-radius: 50%;
  aspect-ratio: 1;
}

.home-instagram-play {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1c1c;
  font-size: 0.72rem;
  line-height: 1.7rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  .home-instagram-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .home-instagram-story {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .home-instagram-grid {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
  }

  .home-instagram-ring img {
    width: 7.6rem;
    height: 7.6rem;
  }

  .home-instagram-grid > .home-instagram-story > .home-whatsapp-portrait img {
    width: calc(7.6rem + 6px);
    height: calc(7.6rem + 6px);
  }
}

.home-sarah-card,
.home-magnet-band,
.home-cta-band {
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--home-shadow);
}

.home-sarah-copy p {
  max-width: 38em;
  margin-bottom: 0.85rem;
}

.home-sarah-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.1rem;
}

.home-sarah-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 220px;
  min-width: 0;
}

.home-sarah-note .media-slot {
  width: 110px;
  flex: 0 0 110px;
}

.home-sarah-note .media-slot--sketch:not(.media-slot--empty) {
  width: 180px;
  flex-basis: 180px;
}

.home-magnet-band {
  position: relative;
  background: var(--home-sky);
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}

.home-magnet-cat {
  width: 108px;
  justify-self: center;
}

.home-magnet-copy p {
  margin-bottom: 0.85rem;
  max-width: 38em;
}

.home-magnet-photo {
  max-width: 280px;
  justify-self: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--home-radius);
}

.home-heart--magnet {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
}

.home-cta-band {
  background: var(--home-peach);
  align-items: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.home-scribble--cta {
  transform: rotate(-6deg);
  font-size: 1.35rem;
  max-width: 9rem;
  margin-inline: auto;
}

.home-cta-copy p {
  margin: 0 auto 0.9rem;
  max-width: 38em;
}

.home-cta-copy p a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-cta-cat {
  width: 120px;
  margin-inline: auto;
}

.home-trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1rem;
  margin: 0.8rem 0 0;
  padding: 0;
}

.home-trust-row li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.home-trust-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 60px;
}

.home-trust-row h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.home-trust-row p {
  font-size: 0.875rem;
  line-height: 1.4;
}

.home .media-slot {
  border-radius: var(--home-radius);
  background: #f3ebe3;
  box-shadow: none;
}

.home .media-slot--hero,
.home .media-slot--story,
.home .media-slot--product {
  overflow: hidden;
  box-shadow: var(--home-shadow);
}

.home .media-slot--hero.media-slot--empty .prod-ph,
.home .media-slot--story.media-slot--empty .prod-ph,
.home .media-slot--product.media-slot--empty .prod-ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home .media-slot--compact,
.home .media-slot--cat-hero,
.home .media-slot--cat-cta,
.home .media-slot--cat-magnet,
.home .media-slot--sketch,
.home .media-slot--doodle,
.home .media-slot--trust {
  overflow: visible;
}

.home .media-slot--compact:not(.media-slot--empty),
.home .media-slot--cat-hero:not(.media-slot--empty),
.home .media-slot--cat-cta:not(.media-slot--empty),
.home .media-slot--cat-magnet:not(.media-slot--empty),
.home .media-slot--sketch:not(.media-slot--empty),
.home .media-slot--doodle:not(.media-slot--empty),
.home .media-slot--trust:not(.media-slot--empty) {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.home .media-slot--hero img,
.home .media-slot--card img,
.home .media-slot--story img,
.home .media-slot--product img {
  object-fit: cover;
  object-position: var(--media-focus, center);
}

.home .media-slot--compact img,
.home .media-slot--cat-hero img,
.home .media-slot--cat-cta img,
.home .media-slot--cat-magnet img,
.home .media-slot--sketch img,
.home .media-slot--doodle img,
.home .media-slot--trust img {
  object-fit: contain;
}

.home-card-heading .media-slot {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 0;
  background: transparent;
}

.home-trust-row .media-slot {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-trust .media-slot img {
  object-fit: contain;
}

.home .media-slot--product.media-slot--empty .prod-ph-meta {
  display: none;
}

.home .media-slot--product.media-slot--empty:hover .prod-ph-brief,
.home .media-slot--product.media-slot--empty:focus-within .prod-ph-brief {
  display: block;
}

.home .media-slot--product.media-slot--empty:hover .prod-ph-meta {
  display: block;
}

.home-heart .media-slot {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.home .media-slot--empty .prod-ph {
  min-height: 100%;
}

.home .media-slot--cat-hero.media-slot--empty,
.home .media-slot--cat-cta.media-slot--empty,
.home .media-slot--cat-magnet.media-slot--empty,
.home .media-slot--sketch.media-slot--empty {
  background: #f3ebe3;
  border-radius: 16px;
}

@media (min-width: 640px) {
  .home-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}

@media (min-width: 768px) {
  .home-hero,
  .home-creations,
  .home-sarah,
  .home-instagram,
  .home-magnet,
  .home-cta,
  .home-trust {
    padding: 2.6rem 0;
  }

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

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 24rem);
    gap: 2rem 2.5rem;
    align-items: center;
  }

  .home-hero-stage {
    width: 100%;
    max-width: 24rem;
    justify-self: end;
  }

  .home-sarah-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.15rem;
  }

  .home-magnet-band {
    grid-template-columns: 108px minmax(0, 1fr) 260px;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.4rem;
    text-align: left;
  }

  .home-cta-band {
    grid-template-columns: 150px 1fr 140px;
    text-align: center;
    padding: 1.75rem 1.5rem;
  }

  .home-cta-band--measure {
    grid-template-columns: 140px 1fr;
    text-align: left;
    padding: 1.75rem 1.75rem;
  }

  .home-cta-band--measure .home-cta-copy p {
    margin-left: 0;
    margin-right: 0;
  }

  .home-scribble--cta {
    margin: 0;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .home-hero,
  .home-creations,
  .home-sarah,
  .home-instagram,
  .home-magnet,
  .home-cta,
  .home-trust {
    padding: 3.1rem 0;
  }

  .home-hero-grid {
    gap: 2.5rem;
  }

  .home-trust-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .home-hero-mascot {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scribble--sarah,
  .home-scribble--cta {
    transform: none;
  }
}
