/* ============================================
   HOME — page d'accueil
   ============================================ */

/* --- Cadre --- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-secondary);
}

.hero-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--hero-photo-focus);
  opacity: var(--hero-photo-opacity);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  top: var(--hero-nav-offset);
  left: 50%;
  z-index: 2;
  max-width: none;
  transform: translateX(-50%);
}

/* --- Logo --- */

.hero-logo {
  position: absolute;
  top: 25%;
  left: 50%;
  z-index: 2;
  width: var(--hero-logo-width);
  height: var(--hero-logo-height);
  margin: 0;
  transform: translateX(-50%);
}

.hero-logo-piece {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.hero-logo-piece--1 {
  top: 0.46%;
  left: 0;
}

.hero-logo-piece--2 {
  top: 0.5%;
  left: 71.09%;
}

.hero-logo-piece--3 {
  top: 28.02%;
  left: 58.34%;
}

.hero-logo-piece--4 {
  top: 57.97%;
  left: 16.76%;
}

.hero-logo-piece--5 {
  top: 0.48%;
  left: 55.32%;
}

.hero-logo-piece--6 {
  top: 0;
  left: 86.55%;
}

.hero-logo-piece--7 {
  top: 0.49%;
  left: 27.12%;
}

.hero-logo-piece--8 {
  top: 0.5%;
  left: 42.76%;
}

.hero-logo-piece--9 {
  top: 0.5%;
  left: 15.81%;
}

.hero-logo-piece--10 {
  top: 57.49%;
  left: 72.75%;
}

.hero-logo-piece--11 {
  top: 28.02%;
  left: 28.83%;
}

.hero-logo-piece--12 {
  top: 70.53%;
  left: 30.51%;
}

.hero-logo-piece--13 {
  top: 75.85%;
  left: 45.6%;
}

.hero-logo-piece--14 {
  top: 55.07%;
  left: 42.91%;
}

.hero-logo-piece--15 {
  top: 70.53%;
  left: 60.68%;
}

/* --- Slogan --- */

.hero-tagline {
  position: absolute;
  bottom: calc(var(--hero-ticker-height) + var(--hero-tagline-offset));
  left: 50%;
  z-index: 2;
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-text);
  text-align: center;
  text-decoration: underline;
  transform: translate(-50%, 50%);
}

/* --- Tablette --- */

@media (max-width: 1024px) {
  .hero {
    --font-size-nav: var(--font-size-xl);
  }

  .hero-nav-group {
    gap: var(--space-lg);
  }

  .hero-logo {
    transform: translateX(-50%) scale(0.9);
  }
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .hero {
    --hero-nav-padding-start: var(--space-lg);
    --hero-nav-padding-end: var(--space-lg);
    --font-size-nav: var(--font-size-md);
    --hero-tagline-offset: 5.5rem;
    --font-size-ticker: var(--font-size-md);
  }

  .hero-nav-group {
    gap: var(--space-md);
  }

  .hero-logo {
    top: 28%;
    transform: translateX(-50%) scale(0.7);
  }

  .hero-mark {
    transform: translateX(-50%) scale(0.7);
  }

  .hero-tagline {
    font-size: var(--font-size-lg);
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .hero {
    --hero-nav-padding-start: var(--space-md);
    --hero-nav-padding-end: var(--space-md);
    --font-size-nav: var(--font-size-sm);
    --font-size-ticker: var(--font-size-base);
    --hero-tagline-offset: 5rem;
  }

  .hero-nav {
    justify-content: space-between;
    height: auto;
    min-height: calc(var(--hero-mark-size) * 0.7);
  }

  .hero-logo {
    top: 30%;
    transform: translateX(-50%) scale(0.58);
  }

  .hero-mark {
    transform: translateX(-50%) scale(0.65);
  }
}

/* ============================================
   Section rêve — photo, polaroïds, texte
   ============================================ */

.dream {
  position: relative;
  background-color: var(--color-secondary);
  overflow: hidden;
}

.dream-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Décale la photo pour cadrer le champ, pas le ciel */
.dream-photo {
  position: absolute;
  top: -64.84rem;
  left: 0;
  width: 100%;
  max-width: none;
  height: 157.46rem;
  object-fit: cover;
  object-position: center center;
  opacity: var(--dream-photo-opacity);
}

.dream-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 90rem);
  height: calc(68.6875rem + var(--space-xl));
  margin-inline: auto;
}

.dream-title {
  position: absolute;
  top: 14rem;
  left: 50%;
  z-index: 1;
  width: min(16em, 86%);
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.dream-collage {
  position: absolute;
  inset: 0;
}

.polaroid {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--polaroid-width);
  height: var(--polaroid-height);
  padding: 0.4rem 0.4375rem 0;
}

.polaroid--boy {
  top: 26.75rem;
  left: 7.96%;
  background-color: var(--color-polaroid-terre);
  transform: rotate(-9.5deg);
}

.polaroid--girl {
  top: 33.75rem;
  left: 26.57%;
  background-color: var(--color-polaroid-ciel);
  transform: rotate(9.26deg);
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 30% 40%;
}

.polaroid-photo--girl {
  object-position: center 32%;
}

.polaroid-caption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
  text-align: center;
}

.dream-doodle {
  position: absolute;
  width: auto;
  max-width: none;
  height: auto;
}

.dream-doodle--plane {
  top: 26.0625rem;
  left: 28.44%;
}

.dream-doodle--map {
  top: 45.25rem;
  left: 11.64%;
  transform: rotate(-14.42deg);
}

.dream-doodle--camera {
  top: 56.125rem;
  left: 10.35%;
}

.dream-doodle--globe {
  top: 54.8125rem;
  left: 26.22%;
}

.dream-copy {
  position: absolute;
  top: 50.5rem;
  right: 6%;
  z-index: 1;
  width: min(48rem, 54%);
  transform: translateY(-50%);
}

.dream-copy p {
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: right;
}

.dream-copy p + p {
  margin-top: 1.15em;
}

/* --- Tablette : la composition passe en colonne --- */

@media (max-width: 1024px) {
  .dream-photo {
    top: -82.73%;
    height: 200.91%;
  }

  .dream-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  }

  .dream-title {
    position: relative;
    top: auto;
    left: auto;
    width: min(16em, 100%);
    transform: none;
  }

  .dream-collage {
    position: relative;
    inset: auto;
    flex-shrink: 0;
    width: 32rem;
    height: 40rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xl);
  }

  .polaroid--boy {
    top: 1.75rem;
    left: 1.54rem;
  }

  .polaroid--girl {
    top: 8.75rem;
    left: 18.29rem;
  }

  .dream-doodle--plane {
    top: 1.06rem;
    left: 19.98rem;
  }

  .dream-doodle--map {
    top: 20.25rem;
    left: 4.85rem;
  }

  .dream-doodle--camera {
    top: 31.125rem;
    left: 3.69rem;
  }

  .dream-doodle--globe {
    top: 29.81rem;
    left: 17.98rem;
  }

  .dream-copy {
    position: relative;
    top: auto;
    right: auto;
    width: min(40rem, 100%);
    transform: none;
  }

  .dream-copy p {
    text-align: left;
  }
}

/* --- Mobile : collage simplifié, lecture aérée --- */

@media (max-width: 768px) {
  .dream-stage {
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
  }

  .dream-title {
    width: 100%;
    line-height: 1.15;
  }

  .dream-collage {
    width: min(22rem, 100%);
    height: 17.5rem;
    margin-top: var(--space-lg);
    margin-bottom: 0;
    transform: none;
  }

  .polaroid {
    width: 9rem;
    height: 10.75rem;
  }

  .polaroid--boy {
    top: 0.25rem;
    left: 0;
  }

  .polaroid--girl {
    top: 4.25rem;
    left: auto;
    right: 0;
  }

  .dream-doodle--plane,
  .dream-doodle--camera,
  .dream-doodle--globe {
    display: none;
  }

  .dream-doodle--map {
    top: auto;
    bottom: 0.5rem;
    left: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .dream-copy {
    width: 100%;
    margin-top: var(--space-sm);
  }

  .dream-copy p {
    font-size: var(--font-size-lg);
    line-height: 1.45;
    letter-spacing: 0;
    text-shadow: var(--shadow-dream-text);
  }

  .dream-copy p + p {
    margin-top: 1em;
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .dream-stage {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .dream-collage {
    width: 100%;
    height: 16.5rem;
  }

  .polaroid {
    width: 8.25rem;
    height: 9.85rem;
  }

  .polaroid--girl {
    top: 4rem;
  }

  .dream-copy p {
    font-size: var(--font-size-md);
    line-height: 1.5;
  }
}

/* ============================================
   Section hello — Billie, Enrick, Koda
   ============================================ */

.hello {
  background-color: var(--color-white);
  overflow-x: clip;
}

/* Le cadre Figma fait 1440 px. En dessous, on le réduit
   pour garder la même composition. */
.hello-fit {
  container-type: inline-size;
  width: min(100%, var(--hello-canvas-width));
  height: calc(var(--hello-canvas-height) * min(1, 100cqi / var(--hello-canvas-width)));
  margin-inline: auto;
  overflow: hidden;
}

.hello-canvas {
  position: relative;
  width: var(--hello-canvas-width);
  height: var(--hello-canvas-height);
  transform: scale(min(1, 100cqi / var(--hello-canvas-width)));
  transform-origin: top left;
  background-color: var(--color-white);
}

.hello-sky {
  position: absolute;
  top: 0;
  left: -12.625rem;
  z-index: 0;
  width: 111.25rem;
  height: 99.6875rem;
  overflow: hidden;
  opacity: var(--hello-sky-opacity);
  pointer-events: none;
}

.hello-sky-photo {
  position: absolute;
  top: -60.8%;
  left: -6.89%;
  width: 100%;
  max-width: none;
  height: 198.5%;
}

.hello-landscape {
  position: absolute;
  top: 72.3125rem;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 45.1875rem;
  overflow: hidden;
}

.hello-landscape img {
  position: absolute;
  top: -113.42%;
  left: 0;
  width: 100%;
  max-width: none;
  height: 354.08%;
}

/* Au-delà du cadre 1440, le ciel et la photo vont jusqu'aux bords */
@media (min-width: 90rem) {
  .hello-fit {
    overflow: visible;
  }

  .hello-sky {
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
  }

  .hello-sky-photo {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
  }

  .hello-landscape {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  .hello-landscape img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44.6%;
  }
}

.hello-title {
  position: absolute;
  top: var(--section-title-offset);
  left: 3.625rem;
  z-index: 2;
  width: 27.625rem;
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.175;
  color: var(--color-primary);
  text-transform: uppercase;
}

.hello-copy {
  position: absolute;
  top: 20.1875rem;
  left: 3.625rem;
  z-index: 2;
  width: 32.9375rem;
}

.hello-copy p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--color-secondary);
}

.hello-copy p + p {
  margin-top: 1.3em;
}

.hello-script {
  position: absolute;
  top: 40.6875rem;
  left: 3.625rem;
  z-index: 2;
  width: 64rem;
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--color-primary);
  white-space: nowrap;
}

.hello-collage {
  position: absolute;
  top: 5.4375rem;
  left: 43.25rem;
  z-index: 2;
  width: 39.125rem;
  height: 29.25rem;
}

.snapshot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--snapshot-width);
  height: var(--snapshot-height);
  background-color: var(--color-white);
}

.snapshot--rencontre {
  top: 0.5625rem;
  left: 0;
}

.snapshot--voyage {
  top: 3.375rem;
  left: 14.9375rem;
}

.snapshot--vide {
  top: 0;
  left: 29.875rem;
}

.snapshot--jour {
  top: 17.6875rem;
  left: 6.5rem;
}

.snapshot--construction {
  top: 18.1875rem;
  left: 27.1875rem;
}

.snapshot-frame {
  position: absolute;
  top: var(--snapshot-photo-offset);
  left: var(--snapshot-photo-offset);
  width: var(--snapshot-photo);
  height: var(--snapshot-photo);
  overflow: hidden;
}

.snapshot-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.snapshot-photo--voyage {
  object-position: 42% center;
}

.snapshot-photo--jour,
.snapshot-photo--construction {
  object-position: center 32%;
}

.snapshot-caption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: calc(var(--snapshot-photo-offset) + var(--snapshot-photo));
  padding-right: var(--space-xs);
  padding-left: var(--space-xs);
  font-family: var(--font-script);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
  color: var(--color-ink);
  text-align: center;
}

.hello-line {
  position: absolute;
  width: auto;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.hello-line--1 {
  top: 8.0348rem;
  left: 12.4095rem;
  transform: translate(-50%, -50%) rotate(27.45deg);
}

.hello-line--2 {
  top: 11.8632rem;
  left: 26.83rem;
  transform: translate(-50%, -50%) rotate(-40.46deg);
}

.hello-line--5 {
  top: 15.0824rem;
  left: 37.1099rem;
  transform: translate(-50%, -50%) rotate(115.62deg);
}

.hello-line--6 {
  top: 24.653rem;
  left: 21.4688rem;
  transform: translate(-50%, -50%) rotate(-178.93deg);
}

.hello-project-title {
  position: absolute;
  top: 48.9375rem;
  left: 45.875rem;
  z-index: 2;
  width: 37.9375rem;
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.175;
  color: var(--color-primary);
  text-align: right;
  text-transform: uppercase;
}

.hello-project-lead {
  position: absolute;
  top: 56.1875rem;
  left: 6.3125rem;
  z-index: 2;
  width: 37.125rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
  line-height: 1.16;
  color: var(--color-primary);
}

.hello-project-points {
  position: absolute;
  top: 61.4375rem;
  left: 26rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.3125rem;
  width: 57.8125rem;
  text-align: right;
}

.hello-project-points li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.214;
  color: var(--color-secondary);
}

.hello-point-mark {
  display: block;
  flex-shrink: 0;
  width: var(--font-size-xl);
  height: var(--font-size-xl);
  object-fit: contain;
  /* L’asset est terracotta ; ce filtre le peint en brun, comme le texte */
  filter: brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(1640%) hue-rotate(352deg) brightness(110%) contrast(85%);
}

.hello-point-text {
  min-width: 0;
}

.hello-project-points .hello-point--strong {
  font-weight: var(--font-weight-bold);
}

/* --- Tablette : la composition passe en colonne --- */

@media (max-width: 1024px) {
  .hello-fit {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .hello-canvas {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) 0;
    transform: none;
  }

  .hello-sky {
    left: 0;
    width: 100%;
    height: 100%;
  }

  .hello-sky-photo {
    top: -20%;
    left: 0;
    width: 100%;
    height: 160%;
    object-fit: cover;
  }

  .hello-title,
  .hello-copy,
  .hello-script,
  .hello-project-title,
  .hello-project-lead,
  .hello-project-points {
    position: relative;
    top: auto;
    left: auto;
    width: min(40rem, 100%);
    text-align: left;
  }

  .hello-copy {
    margin-top: var(--space-xl);
  }

  .hello-script {
    margin-top: var(--space-lg);
    white-space: normal;
  }

  .hello-collage {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    margin-top: var(--space-2xl);
    margin-right: auto;
    margin-bottom: var(--space-3xl);
    margin-left: auto;
  }

  .hello-project-title {
    margin-top: var(--space-xl);
  }

  .hello-project-lead {
    margin-top: var(--space-lg);
  }

  .hello-project-points {
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-2xl);
  }

  .hello-project-points li {
    justify-content: flex-start;
  }

  .hello-landscape {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% + var(--space-xl) * 2);
    height: auto;
    aspect-ratio: 1440 / 723;
    margin-top: auto;
    margin-right: calc(var(--space-xl) * -1);
    margin-left: calc(var(--space-xl) * -1);
  }
}

/* --- Mobile : photos d’abord, moins de décor --- */

@media (max-width: 768px) {
  .hello-canvas {
    gap: 0;
    padding: var(--space-2xl) var(--space-lg) 0;
  }

  .hello-copy-block {
    display: contents;
  }

  .hello-title {
    order: 1;
    width: 100%;
    line-height: 1.15;
  }

  .hello-collage {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 9rem);
    justify-content: center;
    gap: var(--space-md) var(--space-sm);
    width: 100%;
    height: auto;
    margin-top: var(--space-xl);
    margin-right: 0;
    margin-bottom: var(--space-xl);
    margin-left: 0;
    transform: none;
  }

  .snapshot {
    position: relative;
    top: auto;
    left: auto;
    width: 9rem;
    height: auto;
  }

  .snapshot--rencontre {
    transform: rotate(-2deg);
  }

  .snapshot--voyage {
    transform: rotate(2deg);
    margin-top: var(--space-md);
  }

  .snapshot--jour {
    grid-column: 1 / -1;
    width: 9rem;
    margin-inline: auto;
    margin-top: var(--space-xs);
    transform: rotate(-1.5deg);
  }

  .snapshot--vide,
  .snapshot--construction,
  .hello-line {
    display: none;
  }

  .snapshot-frame {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }

  .snapshot-caption {
    margin-top: 0;
    padding: var(--space-sm) var(--space-xs);
    font-size: var(--font-size-xs);
  }

  .hello-copy {
    order: 3;
    width: 100%;
    margin-top: var(--space-md);
  }

  .hello-copy p {
    font-size: var(--font-size-base);
    line-height: 1.55;
    letter-spacing: 0;
  }

  .hello-copy p + p {
    margin-top: 1.1em;
  }

  .hello-script {
    order: 4;
    width: 100%;
    margin-top: var(--space-lg);
    font-size: var(--font-size-lg);
    line-height: 1.4;
  }

  .hello-project {
    order: 5;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-2xl);
  }

  .hello-project-title,
  .hello-project-lead,
  .hello-project-points {
    width: 100%;
  }

  .hello-project-title {
    margin-top: 0;
    line-height: 1.15;
  }

  .hello-project-lead {
    margin-top: var(--space-md);
    line-height: 1.35;
  }

  .hello-project-points {
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .hello-project-points li {
    align-items: flex-start;
    line-height: 1.45;
  }

  .hello-landscape {
    order: 6;
    width: calc(100% + var(--space-lg) * 2);
    margin-right: calc(var(--space-lg) * -1);
    margin-left: calc(var(--space-lg) * -1);
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .hello-canvas {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
  }

  .hello-collage {
    grid-template-columns: repeat(2, 8.25rem);
    gap: var(--space-sm);
  }

  .snapshot,
  .snapshot--jour {
    width: 8.25rem;
  }

  .snapshot--voyage {
    margin-top: var(--space-sm);
  }

  .hello-script {
    font-size: var(--font-size-md);
  }

  .hello-landscape {
    width: calc(100% + var(--space-md) * 2);
    margin-right: calc(var(--space-md) * -1);
    margin-left: calc(var(--space-md) * -1);
  }
}

/* ============================================
   Section générations — rêves qui traversent
   ============================================ */

/* Au-dessus des sections voisines pour que les tirages
   inclinés restent lisibles s’ils frôlent le bord. */
.generations {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  overflow-y: visible;
  background-color: var(--color-white);
}

.generations-fit {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  width: min(100%, var(--generations-canvas-width));
  height: calc(var(--generations-canvas-height) * min(1, 100cqi / var(--generations-canvas-width)));
  margin-inline: auto;
  overflow: visible;
}

.generations-canvas {
  position: relative;
  width: var(--generations-canvas-width);
  height: var(--generations-canvas-height);
  transform: scale(min(1, 100cqi / var(--generations-canvas-width)));
  transform-origin: top left;
  background-color: transparent;
}

/* Le fond couvre toute la section, pas seulement le cadre centré. */
.generations-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: var(--generations-map-opacity);
  pointer-events: none;
}

.generations-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.generations-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--color-generations-wash);
  opacity: var(--generations-wash-opacity);
  pointer-events: none;
}

.generations-photo {
  position: absolute;
  z-index: 3;
  width: var(--generations-photo-width);
  height: var(--generations-photo-height);
  padding: var(--generations-photo-mat);
  overflow: hidden;
  background-color: var(--color-white);
  border: var(--generations-photo-border) solid var(--color-secondary);
  border-radius: var(--radius-generations-photo);
  box-shadow: var(--shadow-generations-photo);
}

.generations-photo--elders {
  top: 1.75rem;
  left: 2rem;
  transform: rotate(var(--generations-photo-tilt-elders));
  transform-origin: center;
}

.generations-photo--selfie {
  top: 20.5rem;
  right: 2rem;
  transform: rotate(var(--generations-photo-tilt-selfie));
  transform-origin: center;
}

.generations-photo--group {
  top: 49.5rem;
  left: 2.25rem;
  width: var(--generations-photo-group-width);
  height: var(--generations-photo-group-height);
  transform: rotate(var(--generations-photo-tilt-group));
  transform-origin: center;
}

.generations-photo img {
  position: absolute;
  top: var(--generations-photo-mat);
  right: var(--generations-photo-mat);
  bottom: var(--generations-photo-mat);
  left: var(--generations-photo-mat);
  width: calc(100% - (var(--generations-photo-mat) * 2));
  height: calc(100% - (var(--generations-photo-mat) * 2));
  max-width: none;
  max-height: none;
  border-radius: calc(var(--radius-generations-photo) - var(--generations-photo-mat));
  object-fit: cover;
  object-position: center;
}

.generations-photo--elders img {
  object-position: center 42%;
}

.generations-photo--selfie img {
  object-position: center 72%;
}

.generations-photo--group img {
  object-position: center 46%;
}

.generations-star {
  position: absolute;
  top: 4rem;
  left: 67.1506rem;
  z-index: 4;
  width: 4.875rem;
  height: 4.875rem;
  max-width: none;
}

.generations-title {
  position: absolute;
  top: var(--section-title-offset);
  left: 50%;
  z-index: 4;
  width: 38rem;
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
  color: var(--color-secondary);
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  transform: translateX(-50%);
}

.generations-lead {
  position: absolute;
  z-index: 4;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
  line-height: 1.186;
  color: var(--color-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.generations-lead--gather {
  top: 18rem;
  left: 27.9621rem;
}

.generations-lead--behind {
  top: 27.0521rem;
  left: 27.7377rem;
}

.generations-lead--share {
  top: 36.7026rem;
  left: 27.9621rem;
}

.generations-body {
  position: absolute;
  z-index: 4;
  width: 53rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-secondary);
}

.generations-body--gather {
  top: 21.142rem;
  left: 18.5rem;
  text-align: center;
}

.generations-body--behind {
  top: 29.85rem;
  left: 18.5rem;
  text-align: center;
}

.generations-body--share {
  top: 39.35rem;
  left: 18.5rem;
  text-align: center;
}

.generations-script {
  position: absolute;
  top: 45.15rem;
  left: 16rem;
  z-index: 4;
  width: 58rem;
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: var(--font-weight-regular);
  line-height: 1.486;
  color: var(--color-secondary);
  text-align: center;
  white-space: nowrap;
}

.generations-peak {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 24rem;
  height: 14.7963rem;
  overflow: hidden;
  opacity: var(--generations-peak-opacity);
  pointer-events: none;
}

.generations-peak img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 243.24%;
}

/* --- Tablette : la composition passe en colonne --- */

@media (max-width: 1024px) {
  .generations-fit {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .generations-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) 0;
    transform: none;
  }

  .generations-map {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .generations-map img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
  }

  .generations-title,
  .generations-lead,
  .generations-body,
  .generations-script {
    position: relative;
    top: auto;
    left: auto;
    width: min(40rem, 100%);
    white-space: normal;
    text-align: center;
  }

  .generations-title {
    order: -1;
    margin-top: 0;
    line-height: 1.12;
    transform: none;
  }

  .generations-lead {
    margin-top: var(--space-2xl);
  }

  .generations-body {
    margin-top: var(--space-sm);
    line-height: 1.45;
  }

  .generations-script {
    margin-top: var(--space-2xl);
    line-height: 1.3;
  }

  .generations-star {
    position: relative;
    top: auto;
    left: auto;
    width: 3.5rem;
    height: 3.5rem;
    margin-top: var(--space-xl);
  }

  .generations-photo {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    width: min(var(--generations-photo-width), 58%);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .generations-photo--elders {
    align-self: flex-start;
    margin-top: var(--space-2xl);
    margin-left: 0;
  }

  .generations-photo--selfie {
    align-self: flex-end;
    margin-top: var(--space-2xl);
    margin-right: 0;
  }

  .generations-photo--group {
    align-self: flex-start;
    width: min(var(--generations-photo-group-width), 82%);
    aspect-ratio: 4 / 3;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-3xl);
    margin-left: 0;
  }

  .generations-peak {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: flex-end;
    width: min(16rem, 48%);
    height: auto;
    aspect-ratio: 540 / 333;
    margin-top: calc(var(--space-3xl) * -1);
    margin-bottom: 0;
  }
}

/* --- Mobile : récit linéaire, moins de bruit --- */

@media (max-width: 768px) {
  .generations-canvas {
    gap: 0;
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  }

  .generations-star,
  .generations-peak {
    display: none;
  }

  .generations-title {
    order: 1;
    width: 100%;
    margin-bottom: var(--space-lg);
  }

  .generations-photo--elders {
    order: 2;
    align-self: center;
    width: 9rem;
    margin-top: 0;
    margin-bottom: var(--space-xl);
  }

  .generations-lead--gather {
    order: 3;
    width: 100%;
    margin-top: 0;
  }

  .generations-body--gather {
    order: 4;
    width: 100%;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  .generations-photo--selfie {
    order: 5;
    align-self: center;
    width: 9rem;
    margin-top: 0;
    margin-bottom: var(--space-xl);
  }

  .generations-lead--behind {
    order: 6;
    width: 100%;
    margin-top: 0;
  }

  .generations-body--behind {
    order: 7;
    width: 100%;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  .generations-lead--share {
    order: 8;
    width: 100%;
    margin-top: 0;
  }

  .generations-body--share {
    order: 9;
    width: 100%;
    margin-top: var(--space-sm);
  }

  .generations-script {
    order: 10;
    width: 100%;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-lg);
    line-height: 1.4;
  }

  .generations-photo--group {
    order: 11;
    align-self: center;
    width: 12rem;
    margin-top: 0;
    margin-bottom: var(--space-md);
  }

  .generations-lead {
    line-height: 1.25;
  }

  .generations-body {
    line-height: 1.55;
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .generations-canvas {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
  }

  .generations-photo--elders,
  .generations-photo--selfie {
    width: 8.25rem;
  }

  .generations-photo--group {
    width: 11rem;
  }

  .generations-script {
    font-size: var(--font-size-md);
  }
}

/* ============================================
   Section audience — que vous soyez
   ============================================ */

.audience {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  background-color: var(--color-secondary);
}

.audience-fit {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  width: min(100%, var(--audience-canvas-width));
  height: calc(var(--audience-canvas-height) * min(1, 100cqi / var(--audience-canvas-width)));
  margin-inline: auto;
}

.audience-canvas {
  position: relative;
  width: var(--audience-canvas-width);
  height: var(--audience-canvas-height);
  overflow: hidden;
  transform: scale(min(1, 100cqi / var(--audience-canvas-width)));
  transform-origin: top left;
}

/* Le fond dépasse le cadre de 1440 px et couvre toute la largeur.
   59.07 % aligne le même cadrage que dans la maquette. */
.audience-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.audience-media img {
  position: absolute;
  top: calc(0.5907 * (var(--audience-photo-height) * min(1, 100cqi / var(--audience-canvas-width)) - 100cqw * 1.5));
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 612 / 918;
  opacity: var(--audience-photo-opacity);
}

.audience-title {
  position: absolute;
  top: var(--section-title-offset);
  left: 50%;
  z-index: 2;
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.161;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.audience-card {
  position: absolute;
  top: 17.25rem;
  z-index: 2;
  width: 20.0107rem;
  height: 31.0218rem;
  background-color: var(--color-audience-card);
  border: var(--audience-card-border) solid var(--color-secondary);
  border-radius: var(--radius-audience-card);
  box-shadow: var(--shadow-audience-card);
}

.audience-card--brand {
  left: 9.125rem;
}

.audience-card--media {
  left: 34.2587rem;
}

.audience-card--creator {
  left: 59.3924rem;
}

.audience-icon {
  position: absolute;
  z-index: 1;
  width: 9.7905rem;
  height: 9.7905rem;
  max-width: none;
}

.audience-card--brand .audience-icon {
  top: 2.0172rem;
  left: 4.9613rem;
}

.audience-card--media .audience-icon {
  top: 2.4534rem;
  left: 4.8523rem;
}

.audience-card--creator .audience-icon {
  top: 1.9082rem;
  left: 5.0703rem;
}

.audience-card-title {
  position: absolute;
  left: 50%;
  z-index: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  line-height: 1.194;
  color: var(--color-secondary);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.audience-card--brand .audience-card-title {
  top: 13.1393rem;
}

.audience-card--media .audience-card-title {
  top: 13.5209rem;
}

.audience-card--creator .audience-card-title {
  top: 13.63rem;
}

.audience-card-text {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 16.5195rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.21;
  color: var(--color-secondary);
  text-align: center;
  transform: translateX(-50%);
}

.audience-card--brand .audience-card-text {
  top: 17.1738rem;
}

.audience-card--media .audience-card-text {
  top: 16.6831rem;
}

.audience-card--creator .audience-card-text {
  top: 18.2641rem;
}

.audience-script {
  position: absolute;
  top: 52.6879rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--color-white);
  letter-spacing: var(--audience-script-tracking);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  white-space: nowrap;
}

.audience-script a {
  color: inherit;
  text-decoration: inherit;
}

/* --- Tablette : les cartes passent en colonne --- */

@media (max-width: 1024px) {
  .audience-fit {
    width: 100%;
    height: auto;
  }

  .audience-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
    overflow: hidden;
    transform: none;
    gap: var(--space-xl);
  }

  .audience-media img {
    top: 0;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 58%;
  }

  .audience-title,
  .audience-script {
    position: relative;
    top: auto;
    left: auto;
    white-space: normal;
    text-align: center;
    transform: none;
  }

  .audience-card {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(20.0107rem, 100%);
    height: auto;
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  }

  .audience-card--brand .audience-icon,
  .audience-card--media .audience-icon,
  .audience-card--creator .audience-icon {
    position: relative;
    top: auto;
    left: auto;
    width: 7.5rem;
    height: 7.5rem;
  }

  .audience-card--brand .audience-card-title,
  .audience-card--media .audience-card-title,
  .audience-card--creator .audience-card-title,
  .audience-card--brand .audience-card-text,
  .audience-card--media .audience-card-text,
  .audience-card--creator .audience-card-text {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  .audience-card-title {
    margin-top: var(--space-lg);
    white-space: normal;
  }

  .audience-card-text {
    margin-top: var(--space-lg);
    line-height: 1.45;
  }

  .audience-script {
    max-width: 22rem;
    margin-top: var(--space-lg);
  }
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .audience-canvas {
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  }

  .audience-title {
    width: 100%;
    line-height: 1.15;
  }

  .audience-card {
    width: 100%;
    max-width: 24rem;
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
  }

  .audience-card--brand .audience-icon,
  .audience-card--media .audience-icon,
  .audience-card--creator .audience-icon {
    width: 5.5rem;
    height: 5.5rem;
  }

  .audience-card-title {
    margin-top: var(--space-md);
  }

  .audience-card-text {
    margin-top: var(--space-md);
    line-height: 1.5;
  }

  .audience-script {
    max-width: 100%;
    margin-top: var(--space-md);
    font-size: var(--font-size-lg);
    line-height: 1.35;
  }

  .kit {
    width: 100%;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .kit-text {
    line-height: 1.5;
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .audience-canvas {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
    padding-bottom: var(--space-2xl);
  }

  .audience-card--brand .audience-icon,
  .audience-card--media .audience-icon,
  .audience-card--creator .audience-icon {
    width: 4.75rem;
    height: 4.75rem;
  }

  .audience-script {
    font-size: var(--font-size-md);
  }
}

/* ============================================
   Section invitation — Patreon
   ============================================ */

.embark {
  position: relative;
  z-index: 1;
  background-color: var(--color-white);
}

.embark-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: var(--generations-map-opacity);
  pointer-events: none;
}

.embark-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--color-generations-wash);
  opacity: var(--generations-wash-opacity);
  pointer-events: none;
}

.embark-map img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.embark-fit {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  width: min(100%, var(--embark-canvas-width));
  height: calc(var(--embark-canvas-height) * min(1, 100cqi / var(--embark-canvas-width)));
  margin-inline: auto;
}

.embark-canvas {
  position: relative;
  width: var(--embark-canvas-width);
  height: var(--embark-canvas-height);
  transform: scale(min(1, 100cqi / var(--embark-canvas-width)));
  transform-origin: top left;
}

.embark-photo {
  position: absolute;
  top: 8.25rem;
  left: 8.5rem;
  z-index: 2;
  width: var(--embark-photo-width);
  height: var(--embark-photo-height);
  margin: 0;
  padding: var(--generations-photo-mat);
  overflow: hidden;
  background-color: var(--color-white);
  border: var(--generations-photo-border) solid var(--color-secondary);
  border-radius: var(--radius-generations-photo);
  box-shadow: var(--shadow-generations-photo);
  transform: rotate(var(--embark-photo-tilt));
  transform-origin: center;
}

.embark-photo img {
  position: absolute;
  top: var(--generations-photo-mat);
  right: var(--generations-photo-mat);
  bottom: var(--generations-photo-mat);
  left: var(--generations-photo-mat);
  width: calc(100% - (var(--generations-photo-mat) * 2));
  height: calc(100% - (var(--generations-photo-mat) * 2));
  max-width: none;
  max-height: none;
  border-radius: calc(var(--radius-generations-photo) - var(--generations-photo-mat));
  object-fit: cover;
  object-position: center 42%;
}

.embark-title {
  position: absolute;
  top: var(--section-title-offset);
  left: var(--embark-copy-left);
  z-index: 2;
  width: var(--embark-copy-width);
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.161;
  color: var(--color-secondary);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.embark-text {
  position: absolute;
  top: 12.5rem;
  left: calc(var(--embark-copy-left) + var(--space-3xl));
  z-index: 2;
  width: calc(var(--embark-copy-width) - var(--space-4xl));
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-secondary);
  text-align: center;
}

.embark-link {
  position: absolute;
  top: 18.35rem;
  left: calc(var(--embark-copy-left) + (var(--embark-copy-width) / 2));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
  background-color: var(--color-secondary);
  border: var(--audience-card-border) solid var(--color-secondary);
  border-radius: var(--radius-audience-card);
  box-shadow: var(--shadow-audience-card);
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  line-height: 1.2;
  color: var(--color-audience-card);
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.embark-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}

.embark-link:focus-visible {
  outline-color: var(--color-secondary);
}

.embark-script {
  position: absolute;
  top: 24.5rem;
  left: var(--embark-copy-left);
  z-index: 2;
  width: var(--embark-copy-width);
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--color-secondary);
  text-align: center;
  white-space: nowrap;
}

/* --- Tablette : le polaroïd passe sous le titre --- */

@media (max-width: 1024px) {
  .embark-fit {
    width: 100%;
    height: auto;
  }

  .embark-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
    transform: none;
    gap: var(--space-xl);
  }

  .embark-photo,
  .embark-title,
  .embark-text,
  .embark-link,
  .embark-script {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    white-space: normal;
  }

  .embark-title,
  .embark-text,
  .embark-script,
  .embark-link {
    transform: none;
  }

  .embark-title {
    order: 1;
    max-width: 36rem;
  }

  .embark-photo {
    order: 2;
    width: 14rem;
    height: 18.667rem;
    transform: rotate(var(--embark-photo-tilt));
  }

  .embark-text {
    order: 3;
    max-width: 36rem;
  }

  .embark-link {
    order: 4;
  }

  .embark-script {
    order: 5;
    max-width: 36rem;
  }
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .embark-canvas {
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  }

  .embark-title {
    max-width: 100%;
    line-height: 1.15;
  }

  .embark-photo {
    order: 1;
    width: 9rem;
    height: auto;
    aspect-ratio: 3 / 4;
    transform: rotate(var(--embark-photo-tilt));
  }

  .embark-title {
    order: 2;
  }

  .embark-text {
    order: 3;
    max-width: 100%;
    line-height: 1.55;
  }

  .embark-link {
    order: 4;
    width: 100%;
    max-width: 20rem;
    padding: var(--space-md) var(--space-xl);
  }

  .embark-script {
    order: 5;
    max-width: 100%;
    font-size: var(--font-size-lg);
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .embark-canvas {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
    padding-bottom: var(--space-2xl);
  }

  .embark-photo {
    width: 8.25rem;
  }

  .embark-script {
    font-size: var(--font-size-md);
  }
}

/* ============================================
   Section suivi — suis nos aventures
   ============================================ */

.follow {
  container-type: inline-size;
  position: relative;
  background-color: var(--color-secondary);
}

.follow-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.follow-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

.follow-shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: calc(var(--follow-canvas-height) * min(1, 100cqi / var(--follow-canvas-width)));
  background-image: linear-gradient(to bottom, transparent, var(--color-follow-shade));
  pointer-events: none;
}

.follow-fit {
  container-type: inline-size;
  position: relative;
  z-index: 2;
  width: min(100%, var(--follow-canvas-width));
  height: calc(var(--follow-canvas-height) * min(1, 100cqi / var(--follow-canvas-width)));
  margin-inline: auto;
}

.follow-canvas {
  position: relative;
  width: var(--follow-canvas-width);
  height: var(--follow-canvas-height);
  overflow: hidden;
  transform: scale(min(1, 100cqi / var(--follow-canvas-width)));
  transform-origin: top left;
}

.follow-title {
  position: absolute;
  top: var(--section-title-offset);
  left: 50%;
  z-index: 2;
  margin: 0;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.161;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.follow-list {
  position: absolute;
  top: 14.375rem;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xl);
  width: 80rem;
  transform: translateX(-50%);
}

.follow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 13.5rem;
  color: var(--color-white);
  text-align: center;
}

.follow-link:hover {
  opacity: 1;
}

.follow-icon {
  width: var(--follow-icon-size);
  height: var(--follow-icon-size);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-follow-icon));
  transition: transform var(--transition-base);
}

.follow-item:nth-child(odd) .follow-icon {
  transform: rotate(-4deg);
}

.follow-item:nth-child(even) .follow-icon {
  transform: rotate(3.5deg);
}

.follow-link:hover .follow-icon {
  transform: rotate(0deg) scale(1.06);
}

.follow-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  line-height: 1.2;
  color: var(--color-audience-card);
  text-transform: uppercase;
}

.follow-text {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  color: var(--color-white);
}

.follow-email {
  position: absolute;
  top: 27.75rem;
  left: 50%;
  z-index: 2;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  cursor: text;
  user-select: all;
}

.follow-script {
  position: absolute;
  top: 32.125rem;
  left: 50%;
  z-index: 2;
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--font-size-quote);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* --- Tablette : la rangée se replie --- */

@media (max-width: 1024px) {
  .follow-media img {
    opacity: 0.72;
  }

  .follow-shade {
    display: none;
  }

  .follow-fit {
    width: 100%;
    height: auto;
  }

  .follow-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    overflow: visible;
    transform: none;
    gap: var(--space-2xl);
  }

  .follow-title,
  .follow-list,
  .follow-email,
  .follow-script {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 100%;
    white-space: normal;
    transform: none;
  }

  .follow-list {
    flex-wrap: wrap;
    max-width: 42rem;
    gap: var(--space-xl) var(--space-lg);
  }

  .follow-link {
    width: 11rem;
  }

}

/* --- Mobile --- */

@media (max-width: 768px) {
  .follow-canvas {
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
  }

  .follow-title {
    width: 100%;
    line-height: 1.15;
  }

  .follow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 22rem;
    gap: var(--space-xl) var(--space-md);
  }

  .follow-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .follow-link {
    width: auto;
    gap: var(--space-xs);
  }

  .follow-icon {
    width: 4.75rem;
    height: 4.75rem;
  }

  .follow-text {
    display: none;
  }

  .follow-email {
    margin-top: var(--space-sm);
  }

  .follow-script {
    font-size: var(--font-size-lg);
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .follow-canvas {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
  }

  .follow-list {
    max-width: 18rem;
    gap: var(--space-lg) var(--space-sm);
  }

  .follow-icon {
    width: 4.25rem;
    height: 4.25rem;
  }

  .follow-script {
    font-size: var(--font-size-md);
  }
}

/* ============================================
   Kit — sous la phrase d'invitation
   ============================================ */

.kit {
  position: absolute;
  top: 56.75rem;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: min(40rem, 70%);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.kit-text {
  max-width: 40rem;
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
  color: var(--color-white);
  text-align: center;
  text-shadow: var(--shadow-kit-text);
}

.kit-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background-color: var(--color-secondary);
  border: var(--audience-card-border) solid var(--color-secondary);
  border-radius: var(--radius-audience-card);
  box-shadow: var(--shadow-audience-card);
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  line-height: 1.2;
  color: var(--color-audience-card);
  text-align: center;
  text-transform: uppercase;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.kit-download:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}

/* --- Tablette : le kit suit la phrase dans la colonne --- */

@media (max-width: 1024px) {
  .kit {
    position: relative;
    top: auto;
    left: auto;
    width: min(36rem, 100%);
    transform: none;
  }
}

/* --- Mobile petit --- */

@media (max-width: 480px) {
  .kit-download {
    padding-right: var(--space-lg);
    padding-left: var(--space-lg);
  }
}

/* ============================================
   MOUVEMENT — apparition au défilement
   translate, scale et rotate s'ajoutent aux
   transform déjà en place (rotations, centrages).
   ============================================ */

@media (max-width: 768px) {
  :root {
    --reveal-distance-sm: 0.5rem;
    --reveal-distance: 1.1rem;
    --reveal-distance-lg: 1.45rem;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero-photo {
    opacity: 0;
    scale: var(--hero-intro-zoom);
    transition: opacity var(--hero-intro-fade) var(--ease-out), scale var(--hero-intro-duration) var(--ease-out);
  }

  .hero.is-ready .hero-photo {
    opacity: var(--hero-photo-opacity);
    scale: 1;
  }

  .reveal {
    opacity: 0;
    translate: 0 var(--reveal-distance);
    transition-property: opacity, translate;
    transition-duration: var(--reveal-duration);
    transition-timing-function: var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .hero-logo-piece.reveal:not(.is-in) {
    translate: 0 var(--reveal-distance-sm);
  }

  .reveal[data-reveal="fade"] {
    translate: 0 0;
  }

  .reveal[data-reveal="title"] {
    translate: 0 var(--reveal-distance-lg);
    filter: blur(var(--reveal-blur));
    transition-property: opacity, translate, filter;
    transition-duration: var(--reveal-duration-slow);
  }

  .reveal[data-reveal="photo"] {
    translate: 0 var(--reveal-distance-lg);
    scale: var(--reveal-scale-photo);
    transition-property: opacity, translate, scale;
    transition-duration: var(--reveal-duration-slow);
  }

  .reveal[data-reveal="pop"] {
    translate: 0 var(--reveal-distance);
    scale: var(--reveal-scale);
    transition-property: opacity, translate, scale;
    transition-duration: var(--reveal-duration-fast);
    transition-timing-function: var(--ease-pop);
  }

  .polaroid--boy.reveal:not(.is-in) {
    translate: calc(var(--reveal-distance) * var(--reveal-drift) * -1) var(--reveal-distance-lg);
  }

  .polaroid--girl.reveal:not(.is-in) {
    translate: calc(var(--reveal-distance) * var(--reveal-drift)) var(--reveal-distance-lg);
  }

  .dream-doodle.reveal,
  .generations-star.reveal {
    transition-property: opacity, translate, scale, rotate;
  }

  .dream-doodle.reveal:not(.is-in) {
    rotate: var(--reveal-tilt);
  }

  .generations-star.reveal:not(.is-in) {
    scale: var(--reveal-scale-star);
    rotate: var(--reveal-spin);
  }

  .hello-landscape.reveal,
  .generations-peak.reveal {
    transition-duration: var(--reveal-duration-slow);
  }

  .reveal.is-in,
  .reveal:focus-within {
    opacity: 1;
    translate: 0 0;
  }

  .reveal[data-reveal="title"].is-in,
  .reveal[data-reveal="title"]:focus-within {
    filter: blur(0);
  }

  .reveal[data-reveal="photo"].is-in,
  .reveal[data-reveal="pop"].is-in,
  .reveal[data-reveal="photo"]:focus-within,
  .reveal[data-reveal="pop"]:focus-within {
    scale: 1;
  }

  .dream-doodle.reveal.is-in,
  .generations-star.reveal.is-in {
    rotate: 0deg;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: none;
    scale: none;
    rotate: none;
    filter: none;
    transition: none;
  }
}
