/* ==========================================================================
   Soy Almería — page d'accueil : les strates de lumière
   Chaque bloc correspond à une maquette de docs/concepts/01-06.
   ========================================================================== */

/* --- 01 · Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--chalk);
  overflow: clip;
}

.hero__media {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(74%, 68rem);
}

.hero__media picture {
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

/* Déchirure de chaux sur le bas de la photo, tracée par la ligne topographique. */
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(4.5rem, 9vw, 6.75rem);
  background-color: var(--chalk);
  -webkit-mask: url('../vectors/decorative/paper-torn-edge.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/paper-torn-edge.svg') center / 100% 100% no-repeat;
  transform: scaleY(-1);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(33rem, 80vh, 44rem);
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(5rem, 9vw, 7rem);
}

.hero__title {
  max-width: 9.5em;
}

.hero__lead {
  margin-top: 1.6rem;
  max-width: 30ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2rem;
  margin-top: 2.3rem;
}

.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-soft);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.hero__tags {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(1.4rem, 3vw, 2.2rem);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.1em;
  font-size: 0.75rem;
  font-weight: 620;
  font-stretch: 82%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__tags li:not(:last-child)::after {
  content: '•';
  margin-left: 0.9em;
  color: var(--terra);
  font-size: 0.7em;
  vertical-align: 0.15em;
}

@media (max-width: 62rem) {
  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hero__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    margin-top: -14%;
  }

  .hero__inner {
    min-height: 0;
    padding-block: 2.5rem 1rem;
  }

  .hero__line {
    display: none;
  }

  .hero__tags {
    position: static;
    margin-top: 2rem;
  }
}

/* --- 01 · Gestes ------------------------------------------------------------- */

.gestures {
  position: relative;
  background: var(--chalk);
  padding-block: var(--section-y);
}

.gestures::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  right: 0;
  width: 52%;
  aspect-ratio: 1600 / 120;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/topographic-single.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/topographic-single.svg') center / 100% 100% no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.gestures__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem) var(--gap);
  align-items: center;
}

.gestures__title {
  grid-column: 1 / -1;
}

.gestures__intro {
  margin-top: 0.4rem;
  max-width: 30em;
}

.gestures__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gestures__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-block: 0.75rem;
  text-align: center;
  text-decoration: none;
}

.gestures__list li + li .gestures__item {
  border-left: 1px solid rgb(28 39 51 / 0.18);
}

.gestures__item .deco--icon {
  color: var(--copper);
  transition: color 250ms var(--ease-out), transform 250ms var(--ease-out);
}

.gestures__item:hover .deco--icon {
  color: var(--terra);
  transform: translateY(-4px);
}

.gestures__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}

.gestures__item:hover .gestures__name {
  color: var(--terra);
}

@media (max-width: 62rem) {
  .gestures__grid {
    grid-template-columns: 1fr;
  }
}

/* --- 02 · Chronologie -------------------------------------------------------- */

.timeline {
  position: relative;
  background: var(--paper);
  padding-block: 0 var(--section-y);
}

.timeline.grain::before {
  opacity: 0.85;
}

.timeline__grid {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-top: calc(var(--section-y) * 0.75);
}

.timeline__aside .display--xl {
  font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.4rem);
}

/* L'aside reste statique, comme la maquette : les époques basses
   glissent dans l'espace libéré sous le texte. */
.timeline__aside {
  align-self: start;
}

.timeline__aside .lead {
  margin-top: 1.4rem;
  max-width: 24em;
}

.timeline__aside .btn {
  margin-top: 2rem;
}

.epochs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

/* Le fleuve de cuivre qui descend en diagonale à travers les époques. */
.epochs::before {
  content: '';
  position: absolute;
  top: -1rem;
  bottom: -1rem;
  left: -17.5rem;
  width: 23rem;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/timeline-cascade.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/timeline-cascade.svg') center / 100% 100% no-repeat;
  opacity: 0.85;
}

.epoch {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(11rem, 0.5fr) minmax(0, 1.5fr);
  gap: 0 clamp(1rem, 2vw, 1.8rem);
  align-items: center;
}

/* Chaque époque glisse vers la gauche, suivant le fleuve.
   Pas fixes en rem : la frise (dessinée en rem) reste calée sur les nœuds
   à toutes les largeurs, sans jamais passer sous les textes. */
.epoch:nth-child(2) { margin-left: -3.5rem; }
.epoch:nth-child(3) { margin-left: -7rem; }
.epoch:nth-child(4) { margin-left: -10.5rem; }
.epoch:nth-child(5) { margin-left: -14rem; }
.epoch:nth-child(6) { margin-left: -17.5rem; }

/* Largeurs intermédiaires : plus assez de place pour la cascade —
   on replie sur le rail vertical simple, sans risque de chevauchement. */
@media (min-width: 62rem) and (max-width: 75rem) {
  .epoch {
    margin-left: 0 !important;
  }

  .epochs::before {
    left: 0 !important;
    width: 4.5rem !important;
    -webkit-mask-image: url('../vectors/decorative/meander-vertical.svg') !important;
    mask-image: url('../vectors/decorative/meander-vertical.svg') !important;
    -webkit-mask-size: 100% auto !important;
    mask-size: 100% auto !important;
    -webkit-mask-repeat: repeat-y !important;
    mask-repeat: repeat-y !important;
  }

  .epoch .photo {
    margin-left: 0 !important;
  }
}

.epoch::before {
  content: '';
  grid-area: 1 / 1;
  justify-self: center;
  width: 0.85rem;
  aspect-ratio: 1;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.epoch__date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.15rem);
  font-weight: 760;
  color: var(--terra);
  line-height: 1.12;
  text-wrap: balance;
}

.epoch__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  font-style: italic;
  font-weight: 430;
  color: var(--ink-soft);
  line-height: 1.3;
}

.epoch .photo {
  aspect-ratio: 10 / 3;
  box-shadow: none;
  /* Les bandes filent jusqu'au bord droit du viewport, comme la maquette. */
  margin-right: calc(-1 * max((100vw - var(--shell)) / 2, var(--shell-pad)));
}

/* La première bande, plus haute, ouvre la séquence. */
.epoch:nth-child(1) .photo {
  aspect-ratio: 21 / 9;
  margin-left: clamp(0rem, 5vw, 5rem);
}

@media (max-width: 62rem) {
  .timeline__grid {
    grid-template-columns: 1fr;
  }

  .timeline__aside {
    position: static;
  }

  .epoch {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.7rem 0.9rem;
    margin-left: 0 !important;
  }

  .epochs::before {
    left: 0;
    width: 2.75rem;
    -webkit-mask-image: url('../vectors/decorative/meander-vertical.svg');
    mask-image: url('../vectors/decorative/meander-vertical.svg');
    -webkit-mask-size: 100% auto;
    mask-size: 100% auto;
    -webkit-mask-repeat: repeat-y;
    mask-repeat: repeat-y;
  }


  .epoch::before {
    background: var(--paper);
  }

  .epoch .photo {
    grid-column: 2;
    aspect-ratio: 5 / 2;
    margin: 0 !important;
  }
}

/* --- 02 · Parcours monumental -------------------------------------------------- */

.route {
  position: relative;
  background: var(--chalk-cool);
  padding-block: 0 var(--section-y);
  overflow: clip;
}

.route::after {
  content: '';
  position: absolute;
  bottom: 4rem;
  left: -5rem;
  width: 46rem;
  aspect-ratio: 1600 / 180;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  opacity: 0.6;
  pointer-events: none;
}


/* Cascade plus douce pour le parcours monumental. */
.route .epochs::before {
  left: -8.5rem;
  width: 13rem;
  -webkit-mask-image: url('../vectors/decorative/route-cascade.svg');
  mask-image: url('../vectors/decorative/route-cascade.svg');
}

.route .epoch:nth-child(2) { margin-left: -2rem; }
.route .epoch:nth-child(3) { margin-left: -4rem; }
.route .epoch:nth-child(4) { margin-left: -6rem; }
.route .epoch:nth-child(5) { margin-left: -8rem; }

.route .epoch:nth-child(1) .photo {
  aspect-ratio: 3 / 1;
  margin-left: clamp(0rem, 2vw, 2rem);
}

.stop::before {
  background: var(--chalk-cool);
}

.stop__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem);
  font-weight: 800;
  color: var(--terra);
  margin-right: 0.55rem;
}

.stop__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 480;
  color: var(--ink);
}

.stop .photo {
  aspect-ratio: 3 / 1;
}

@media (max-width: 62rem) {
  .stop .photo {
    aspect-ratio: 5 / 2;
  }
}

/* --- 03 · Tapas -------------------------------------------------------------------
   Composition en pleine page : la photo occupe tout le viewport, le texte se pose
   sur la zone claire en haut à gauche, voilée d'un dégradé de chaux. */

.tapas {
  position: relative;
  background: var(--chalk);
  padding-block: 0;
  overflow: clip;
}

.tapas__figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.tapas__figure picture {
  height: 100%;
}

.tapas__figure > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tapas__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, var(--chalk) 6%, rgb(246 242 234 / 0.82) 26%, transparent 54%);
}

.tapas > .torn {
  position: relative;
  z-index: 1;
}

/* Filet de cuivre qui longe la déchirure vers les fêtes. */
.fiesta__thread {
  width: 100%;
  height: 2.4rem;
  margin-top: -2.6rem;
  color: var(--copper);
  opacity: 0.7;
  pointer-events: none;
}

/* La lanterne qui clôt la liane du calendrier. */
.calendar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.13rem;
  width: 1.7rem;
  aspect-ratio: 1;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/icons/lantern.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/icons/lantern.svg') center / 100% 100% no-repeat;
}

.tapas__grid {
  position: relative;
  z-index: 1;
  min-height: clamp(36rem, 60vw, 56rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.tapas__intro {
  max-width: 26rem;
}

.tapas__intro .lead {
  margin-top: 1.4rem;
  max-width: 23em;
}

.tapas__badge {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 620;
  font-stretch: 80%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.tapas__intro .btn {
  margin-top: 1.6rem;
}

.callout {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.7rem + 1vw, 1.45rem);
  font-style: italic;
  font-weight: 520;
  color: var(--terra);
  white-space: nowrap;
  text-shadow: 0 0 14px rgb(246 242 234 / 0.7);
}

.callout--light {
  color: #f8f3e7;
  text-shadow: 0 1px 12px rgb(28 39 51 / 0.65);
}

.callout::after {
  content: '';
  position: absolute;
  background: currentColor;
  opacity: 0.75;
}

/* Point terminal cerclé posé sur le plat. */
.callout::before {
  content: '';
  position: absolute;
  width: 0.5rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.callout--down::after {
  left: 50%;
  top: calc(100% + 0.35em);
  width: 1px;
  height: var(--clen, 3.5rem);
}

.callout--down::before {
  left: calc(50% - 0.25rem);
  top: calc(100% + 0.35em + var(--clen, 3.5rem));
}

.callout--right::after {
  left: calc(100% + 0.5em);
  top: 50%;
  height: 1px;
  width: var(--clen, 3.5rem);
}

.callout--right::before {
  left: calc(100% + 0.5em + var(--clen, 3.5rem));
  top: calc(50% - 0.25rem);
}

.callout--up::after {
  left: 50%;
  bottom: calc(100% + 0.35em);
  width: 1px;
  height: var(--clen, 3.5rem);
}

.callout--up::before {
  left: calc(50% - 0.25rem);
  bottom: calc(100% + 0.35em + var(--clen, 3.5rem));
}

.tapas__menu {
  display: none;
  padding: 0.9rem var(--shell-pad) 0;
  font-size: var(--text-sm);
  color: var(--ink-mute);
}

@media (max-width: 62rem) {
  .tapas__figure {
    position: static;
  }

  .tapas__figure > picture img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .tapas__scrim {
    display: none;
  }

  .tapas__grid {
    min-height: 0;
    padding-block: 3rem 2.5rem;
  }

  .tapas__intro {
    max-width: none;
  }

  .callout {
    display: none;
  }

  .tapas__menu {
    display: block;
  }

  .tapas__menu strong {
    font-family: var(--font-display);
    font-size: 1.1em;
    color: var(--terra-deep);
    font-weight: 640;
  }
}

/* --- 03 · Fêtes ------------------------------------------------------------------ */

.fiesta {
  position: relative;
  background: var(--chalk);
  padding-block: 0;
}

.fiesta__head .lead {
  margin-top: 1.3rem;
  max-width: 22em;
}

.fiesta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.fiesta__col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.fiesta .photo {
  box-shadow: none;
}

ol.calendar {
  position: relative;
  padding: 0.5rem 0 3.5rem 4.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2rem;
}

.calendar::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3.75rem;
  background-color: var(--copper);
  /* Un tracé unique remplit toute la frise : aucune reprise ni extrémité
     tronquée lorsque la hauteur du calendrier change. */
  -webkit-mask: url('../vectors/decorative/botanical-timeline.svg') top center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/botanical-timeline.svg') top center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Les pousses gardent des proportions fixes et s'ancrent sur les vraies dates. */
.calendar li {
  position: relative;
}

.calendar li::before {
  content: '';
  position: absolute;
  top: calc(0.5em - 1.2rem);
  left: -4.75rem;
  width: 3.75rem;
  height: 3rem;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/botanical-sprig.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/botanical-sprig.svg') center / 100% 100% no-repeat;
  transform-origin: 52.667% 50%;
  pointer-events: none;
}

.calendar li:nth-child(even)::before {
  transform: scaleX(-1);
}

/* Anneau de connexion posé sur la tige (à x ≈ 53 % du rail de 3,75 rem). */
.calendar li::after {
  content: '';
  position: absolute;
  top: 0.5em;
  left: -3.07rem;
  z-index: 1;
  width: 0.6rem;
  aspect-ratio: 1;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  background: var(--chalk);
}


.calendar__date {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  font-weight: 740;
  color: var(--terra);
}

.calendar__date::after {
  content: ' —';
  color: var(--copper);
  font-weight: 400;
}

.calendar__event {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-style: italic;
  font-weight: 430;
  color: var(--ink-soft);
  line-height: 1.35;
}

.fiesta__note {
  position: relative;
  z-index: 1;
  padding-block: 1.5rem;
  font-size: var(--text-sm);
  color: var(--on-navy-mute);
}

@media (max-width: 62rem) {
  .fiesta__grid {
    grid-template-columns: 1fr;
  }
}

/* --- 04 · Cinéma ------------------------------------------------------------------ */

.cinema {
  position: relative;
  background: var(--navy);
  color: var(--on-navy-mute);
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y);
}

.cinema__grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

.cinema .display {
  color: var(--on-navy);
}

.cinema__intro .lead {
  margin-top: 1.5rem;
  max-width: 24em;
}

.cinema__media {
  position: relative;
  aspect-ratio: 14 / 9;
}

.cinema__film {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: calc(-1 * max((100vw - var(--shell)) / 2, var(--shell-pad)));
  color: var(--copper-soft);
  opacity: 0.85;
}

.cinema .display--xl,
.lennon .display--xl,
.guitar .display--xl {
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
}

.cinema__titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 0;
  justify-content: space-between;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-style: italic;
  font-weight: 460;
  color: var(--on-navy);
}

.cinema__titles li {
  display: flex;
  align-items: center;
}

.cinema__titles li:not(:last-child)::after {
  content: '·';
  margin-inline: clamp(0.7em, 1.5vw, 1.3em);
  color: var(--copper-soft);
}

.cinema > .shell > .btn {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 62rem) {
  .cinema__grid {
    grid-template-columns: 1fr;
  }

  .cinema__titles {
    justify-content: flex-start;
  }
}

/* --- 04 · Lennon ------------------------------------------------------------------- */

.lennon {
  position: relative;
  background: var(--paper);
  padding-block: 0 var(--section-y);
}

.lennon__grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.lennon__intro .lead {
  margin-top: 1.5rem;
  max-width: 24em;
}

.torn-photo {
  position: relative;
}

.torn-photo img {
  width: 100%;
  border-radius: var(--radius);
}

.torn-photo::before,
.torn-photo::after {
  content: '';
  position: absolute;
  background-color: var(--torn-color, var(--paper));
  -webkit-mask: url('../vectors/decorative/paper-torn-edge.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/paper-torn-edge.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}

/* bord déchiré vertical, côté gauche */
.torn-photo::before {
  inset-block: -1px;
  left: -1px;
  width: clamp(1.2rem, 2.5vw, 2rem);
  -webkit-mask-image: url('../vectors/decorative/paper-torn-edge-v.svg');
  mask-image: url('../vectors/decorative/paper-torn-edge-v.svg');
}

/* bord déchiré horizontal, en bas */
.torn-photo::after {
  inset-inline: -1px;
  bottom: -1px;
  height: clamp(1.2rem, 2.5vw, 2rem);
  transform: scaleY(-1);
}

@media (max-width: 62rem) {
  .lennon__grid {
    grid-template-columns: 1fr;
  }
}

/* --- 04 · Guitare ------------------------------------------------------------------- */

.guitar {
  position: relative;
  background: var(--paper-mid);
  padding-block: 0 var(--section-y);
  overflow: clip;
}

.guitar__grid {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.guitar .torn-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.guitar__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.guitar__intro {
  position: relative;
  z-index: 3;
}

.guitar__intro .lead {
  margin-top: 1.5rem;
  max-width: 22em;
}

.guitar__intro .btn {
  margin-top: 3rem;
}

.guitar__strings {
  position: absolute;
  inset-inline: calc(50% - 50vw);
  bottom: 21%;
  color: var(--copper);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}

.guitar .photo--portrait,
.guitar .torn-photo {
  position: relative;
  z-index: 1;
}

.guitar .torn-photo {
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

@media (max-width: 62rem) {
  .guitar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .guitar__intro {
    grid-column: 1 / -1;
  }

  .guitar__strings {
    bottom: 30%;
  }
}

/* --- 05 · Nature ------------------------------------------------------------------- */

.salinas-hero {
  position: relative;
}

.salinas-hero img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

/* Fines lignes horizontales sur la lame d'eau, comme une portée. */
.salinas-hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 16%;
  height: 3.5rem;
  background: repeating-linear-gradient(
    to bottom,
    rgb(246 242 234 / 0.5) 0 1px,
    transparent 1px 13px
  );
  pointer-events: none;
}

.coast {
  position: relative;
  background: var(--chalk);
  padding-block: var(--section-y);
  overflow: clip;
}

/* Courbes topographiques entrant par le bord gauche, sous le bouton. */
.coast::before {
  content: '';
  position: absolute;
  left: -7rem;
  top: clamp(22rem, 34vw, 30rem);
  width: 22rem;
  aspect-ratio: 1600 / 180;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.coast .photo {
  box-shadow: none;
}

.coast__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.coast__row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(12rem, 0.75fr);
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  align-items: center;
}

.coast__row--lead {
  grid-template-columns: minmax(22rem, 1.05fr) minmax(0, 1.2fr) minmax(11rem, 0.55fr);
}

.coast__intro .lead {
  margin-top: 1.4rem;
  max-width: 22em;
}

.coast__intro .btn {
  margin-top: 1.8rem;
}

.coast__row .photo {
  aspect-ratio: 16 / 7;
}

/* Cascade panoramique : chaque bande s'élargit et s'aplatit. */
.coast__row:nth-child(2) .photo { margin-left: clamp(0rem, 9vw, 9rem); aspect-ratio: 2.3 / 1; }
.coast__row:nth-child(3) .photo { margin-left: clamp(0rem, 4.5vw, 4.5rem); aspect-ratio: 3 / 1; }
.coast__row:nth-child(4) .photo { aspect-ratio: 3.5 / 1; }

.coast__label h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  font-weight: 700;
  color: var(--terra);
  line-height: 1.25;
}

.coast__label h3::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin-left: 0.6em;
  vertical-align: 0.3em;
  background: var(--copper);
}

.coast__label p {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-stretch: 82%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--copper-ink);
}

.coast__note {
  display: grid;
  grid-template-columns: minmax(8rem, 0.5fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.8rem);
  background: var(--chalk-soft);
  border-radius: var(--radius);
}

.coast__note .deco {
  color: var(--copper);
  opacity: 0.8;
}

.coast__note p {
  font-size: var(--text-sm);
  line-height: 1.7;
  border-left: 2px solid var(--copper);
  padding-left: 1.4rem;
}

@media (max-width: 62rem) {
  .coast__row,
  .coast__row--lead {
    grid-template-columns: 1fr;
  }

  .coast__row .photo {
    margin: 0 !important;
    aspect-ratio: 2 / 1;
  }

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

/* --- 05 · Itinéraires ----------------------------------------------------------------- */

.iti {
  position: relative;
  background: var(--chalk);
  padding-block: 0 var(--section-y);
  overflow: clip;
}

/* Vagues topographiques dans l'angle bas-gauche, comme la maquette. */
.iti::before {
  content: '';
  position: absolute;
  left: -5rem;
  bottom: -1.5rem;
  width: 24rem;
  aspect-ratio: 1600 / 180;
  background-color: var(--copper);
  -webkit-mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/topographic-wave.svg') center / 100% 100% no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.iti .photo {
  box-shadow: none;
}

.iti__list {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.iti__row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.35fr) minmax(11rem, 0.75fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.iti__num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2.2rem + 4vw, 6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  transition: color 200ms var(--ease-out), -webkit-text-stroke-color 200ms var(--ease-out);
}

/* Chiffres en réserve : contour d'encre, remplissage au survol. */
@supports (-webkit-text-stroke: 1px black) {
  .iti__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
  }

  .iti__row:hover .iti__num {
    color: var(--terra);
    -webkit-text-stroke-color: var(--terra);
  }
}

@supports not (-webkit-text-stroke: 1px black) {
  .iti__row:hover .iti__num {
    color: var(--terra);
  }
}

.iti__meta {
  position: relative;
}

.iti__meta::after {
  content: '';
  position: absolute;
  top: 0.65em;
  left: calc(100% + clamp(0.2rem, 1vw, 0.8rem));
  width: 0.6rem;
  aspect-ratio: 1;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
}

/* Courbe de sentier reliant le titre au petit cercle. */
.iti__meta::before {
  content: '';
  position: absolute;
  top: 1.15em;
  left: 42%;
  right: calc(-1 * clamp(0.2rem, 1vw, 0.8rem) + 0.15rem);
  height: 1.4em;
  border-bottom: 1.5px solid var(--copper);
  border-bottom-right-radius: 100% 95%;
  opacity: 0.9;
  transform: translateY(-100%);
  pointer-events: none;
}

.iti__unit {
  font-size: 0.72rem;
  font-weight: 640;
  font-stretch: 80%;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.iti__unit::after {
  content: ' —';
  color: var(--copper);
}

.iti__name {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem);
  font-weight: 660;
  color: var(--ink);
}

.iti__row:hover .iti__name {
  color: var(--terra);
}

.iti__desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 24em;
}

.iti__row .photo {
  aspect-ratio: 16 / 5;
}

.iti__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 62rem) {
  .iti__row {
    grid-template-columns: minmax(4rem, auto) 1fr;
  }

  .iti__meta::after {
    display: none;
  }

  .iti__desc {
    grid-column: 2;
  }

  .iti__row .photo {
    grid-column: 1 / -1;
    aspect-ratio: 5 / 2;
  }
}

/* --- 06 · Pratique ---------------------------------------------------------------------- */

.practical {
  background: var(--chalk);
  padding-block: var(--section-y) 0;
}

.practical .display--xl {
  font-size: clamp(3rem, 1.6rem + 5vw, 6rem);
}

.practical__sky {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--copper);
  opacity: 0.9;
}

.practical__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.practical__col {
  padding-right: clamp(1rem, 2vw, 2rem);
}

.practical__col:not(:last-child) {
  border-right: 1px solid var(--hairline);
}

.practical__col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.8rem);
  font-weight: 720;
  color: var(--terra);
}

.practical__col p {
  margin-top: 0.9rem;
  font-size: var(--text-sm);
  font-weight: 410;
  line-height: 1.75;
}

.practical__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.practical__photos .photo {
  aspect-ratio: 6 / 5;
  box-shadow: none;
}

.practical__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.practical__cta .deco {
  width: min(72rem, 96%);
  color: var(--copper);
  opacity: 0.75;
  margin-bottom: 1.8rem;
}

@media (max-width: 62rem) {
  .practical__cols {
    grid-template-columns: 1fr;
  }

  .practical__col {
    border-right: 0 !important;
    padding-right: 0;
  }

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

  .practical__photos .photo {
    aspect-ratio: 2 / 1;
  }
}

/* --- 06 · Final ---------------------------------------------------------------------------- */

.final {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy-mute);
  overflow: clip;
}

.final__media {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(58%, 56rem);
}

.final__media picture {
  height: 100%;
}

.final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Filet topographique cuivré qui traverse le bas du panneau marine. */
.final::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 1.2rem;
  height: clamp(2rem, 4vw, 3.5rem);
  background-color: var(--copper-soft);
  -webkit-mask: url('../vectors/decorative/topographic-single.svg') center / 100% 100% no-repeat;
  mask: url('../vectors/decorative/topographic-single.svg') center / 100% 100% no-repeat;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.final__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 10vw, 9.5rem);
  max-width: 34rem;
}

.final .display {
  color: var(--on-navy);
}

.final .display::after {
  content: '';
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 1.4rem;
  background: var(--terra-bright);
}

.final__lead {
  margin-top: 1.5rem;
  max-width: 24em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.65;
}

.final .btn {
  margin-top: 2.2rem;
}

@media (max-width: 62rem) {
  .final__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .final__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }

  .final__inner {
    padding-block: 3rem 3.5rem;
  }
}
