/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-page);
}
.hero__inner {
  max-width: var(--layout-wide);
  min-height: 82rem;
  margin: 0 auto;
  padding: 9.6rem var(--layout-gutter-wide);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 7.2rem;
  align-items: stretch;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 8.8rem;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-heading);
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line:first-child {
  padding-bottom: 0.06em;
}
.hero__line > span {
  display: block;
  animation: ie-line 1.1s var(--ease-in-out) 0.35s both;
}
.hero__line:first-child > span {
  white-space: nowrap;
}
.hero__line + .hero__line > span {
  animation-delay: 0.5s;
}

.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.rotator__word {
  grid-area: 1 / 1;
  color: var(--ie-wine);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-in-out), opacity 0.6s ease;
}
.rotator.is-on .rotator__word {
  transform: translateY(-105%);
}
.rotator.is-on .rotator__word.is-active,
html:not(.js) .rotator__word:first-child {
  opacity: 1;
  transform: none;
}

.hero__lead {
  max-width: 52rem;
  margin-top: 3.4rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.2rem;
  line-height: 1.55;
  color: var(--text-body);
  animation: ie-rise 1s var(--ease-out) 0.9s both;
}
.hero__actions {
  margin-top: 4.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  animation: ie-rise 1s var(--ease-out) 1.05s both;
}

.hero-photos {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0.6rem;
  animation: ie-clip-in 1.4s var(--ease-in-out) 0.35s both;
}
.hero-photos__cols {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1.6rem;
}
.hero-photos__col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.hero-photos__track {
  display: flex;
  flex-direction: column;
  animation: ie-scroll-y 90s linear infinite;
}
.hero-photos__col + .hero-photos__col .hero-photos__track {
  animation-direction: reverse;
}
.hero-photo {
  flex: none;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.6rem;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--ie-sand);
  display: grid;
  place-items: center;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-body);
}

@media (max-width: 1099px) {
  .hero__inner {
    min-height: 0;
    padding: 6.4rem 4rem 7.2rem;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5.6rem;
  }
  .hero__title {
    margin-top: 0;
    font-size: 7.2rem;
  }
  .hero__lead {
    font-size: 2rem;
  }
  .hero-photos {
    height: 52rem;
  }
}
@media (max-width: 767px) {
  .hero__inner {
    padding: 4rem 2rem 5.6rem;
    row-gap: 4.4rem;
  }
  .hero__title {
    font-size: clamp(3.4rem, 10.6vw, 5.6rem);
  }
  .hero__lead {
    margin-top: 2.4rem;
    font-size: 1.8rem;
  }
  .hero__actions {
    margin-top: 3.2rem;
    gap: 2.4rem;
  }
  .hero-photos {
    height: 44rem;
  }
  .hero-photos__cols {
    gap: 1.2rem;
  }
  .hero-photo {
    margin-bottom: 1.2rem;
  }
}

/* ---------- Sections ---------- */

.section--b81 {
  --pad-bottom: 8.1rem;
}
.section--cta {
  --pad-top: 10rem;
  --pad-bottom: 10rem;
  --pad-top-sm: 7.2rem;
  --pad-bottom-sm: 7.2rem;
}
.section {
  scroll-margin-top: 9rem;
}

/* ---------- Réalisations (automatic slideshow) ---------- */

.realisations__body {
  margin-top: 4.4rem;
}
/* Fixed height, width set by each photo's own ratio: nothing is cropped and the
   page does not jump from one photo to the next. */
.realisations__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.realisations__slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.realisations__slide.is-active {
  opacity: 1;
}
.realisations__slide img {
  width: auto;
  max-width: 100%;
  height: 100%;
}
.realisations__more {
  margin-top: 2.4rem;
}

@media (max-width: 767px) {
  .realisations__body {
    margin-top: 3.2rem;
  }
  .realisations__more {
    margin-top: 2rem;
  }
}

/* ---------- Services (stacked cards) ---------- */

.services {
  margin-top: 3.94rem;
}
.service-card {
  --fg: var(--text-heading);
  --mute: var(--text-body);
  position: sticky;
  top: 12rem;
  height: 42rem;
  margin-bottom: 14rem;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
  border: 1px solid var(--border-hairline);
  background: var(--ie-paper-2);
  box-shadow: 0 -1.8rem 4rem rgba(34, 31, 30, 0.1);
}
.service-card:nth-child(2) { top: 14.8rem; background: var(--ie-sand); }
.service-card:nth-child(3) { top: 17.6rem; }
.service-card:nth-child(4) { top: 20.4rem; margin-bottom: 0; }
.service-card--wine,
.service-card--ink {
  --fg: var(--ie-paper);
  --mute: var(--text-on-inverse-muted);
}
.service-card--wine { background: var(--ie-wine); }
.service-card--ink { background: var(--ie-ink); }

.service-card__body {
  height: 100%;
  padding: 4.4rem 5.6rem;
  display: grid;
  grid-template-columns: 26rem minmax(0, 1fr);
  column-gap: 4.8rem;
  align-items: end;
}
.service-card__num {
  align-self: start;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20rem;
  line-height: 1;
  color: var(--fg);
  opacity: 0.9;
}
.service-card__text {
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 5.6rem;
  line-height: 1.08;
  letter-spacing: var(--type-h3-ls);
  color: var(--fg);
}
.service-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--mute);
}

@media (max-width: 1099px) {
  .service-card { top: 10rem; height: 38rem; margin-bottom: 10rem; }
  .service-card:nth-child(2) { top: 12.4rem; }
  .service-card:nth-child(3) { top: 14.8rem; }
  .service-card:nth-child(4) { top: 17.2rem; }
  .service-card__body {
    padding: 4rem;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 3.2rem;
  }
  .service-card__num { font-size: 14rem; }
  .service-card__title { font-size: 4.4rem; }
  .service-card__desc { font-size: 1.9rem; }
}
@media (max-width: 767px) {
  .services { margin-top: 0; }
  .service-card { top: 8.8rem; height: auto; min-height: 34rem; margin-bottom: 6rem; }
  .service-card:nth-child(2) { top: 10.4rem; }
  .service-card:nth-child(3) { top: 12rem; }
  .service-card:nth-child(4) { top: 13.6rem; }
  .service-card__body {
    min-height: 34rem;
    padding: 2.8rem 2.4rem;
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
    row-gap: 2.4rem;
  }
  .service-card__num { font-size: 8.8rem; }
  .service-card__text { gap: 1.2rem; }
  .service-card__title { font-size: 3rem; }
  .service-card__desc { font-size: 1.7rem; }
}

/* ---------- Avis ---------- */

/* Wider than the text column, like the offers, so long reviews stay short in height */
.reviews {
  position: relative;
  overflow: hidden;
  margin: 0 -14rem;
  padding: 5.6rem 7.2rem 4.4rem;
  border-radius: 1.5rem;
  background: var(--ie-sand);
}
.reviews__mark {
  position: absolute;
  top: -3.4rem;
  left: 3.6rem;
  font-family: var(--font-display);
  font-size: 28rem;
  line-height: 1;
  color: var(--ie-wine);
  opacity: 0.16;
  user-select: none;
}
.reviews__slides {
  position: relative;
  display: grid;
}
.review {
  grid-area: 1 / 1;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.8rem;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.review.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.review__avatar {
  width: 4.4rem;
  height: 4.4rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ie-wine);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ie-paper);
}
.review__who {
  display: flex;
  flex-direction: column;
}
.review__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--type-attrib-size);
  color: var(--text-heading);
}
.review__stars {
  margin-top: 0.2rem;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--ie-wine);
}
.review__quote {
  max-width: 92rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  text-wrap: pretty;
}

.reviews__controls {
  position: relative;
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
html:not(.js) .reviews__controls {
  display: none;
}
.reviews__counter {
  min-width: 6.2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--type-attrib-size);
  color: var(--text-heading);
}
.reviews__total {
  color: var(--text-body);
}
.reviews__progress {
  flex: 1;
  display: flex;
  gap: 0.6rem;
}
.reviews__dot {
  flex: 1;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.reviews__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 0.2rem;
  background: var(--border-hairline);
}
.reviews__fill {
  position: absolute;
  inset: 0;
  background: var(--ie-wine);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.reviews__arrows {
  display: flex;
  gap: 1rem;
}
.reviews__arrow {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 1px solid var(--border-hairline);
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-heading);
  cursor: pointer;
}

@media (max-width: 1099px) {
  .reviews {
    margin: 0;
    padding: 4.8rem 4.8rem 4rem;
  }
  .review__quote { font-size: 2.1rem; }
}
@media (max-width: 767px) {
  .reviews {
    padding: 3.2rem 2.4rem 2.8rem;
    border-radius: 1.2rem;
  }
  .reviews__mark {
    top: -2rem;
    left: 1.6rem;
    font-size: 18rem;
  }
  .review {
    min-height: 26rem;
    gap: 2.4rem;
  }
  .review__quote {
    font-size: 1.75rem;
    line-height: 1.55;
  }
  .reviews__controls {
    margin-top: 2.4rem;
    gap: 1.2rem;
  }
  .reviews__counter { min-width: 5.2rem; }
  .reviews__arrows { gap: 0.8rem; }
  .reviews__arrow { width: 4rem; height: 4rem; }
}

/* ---------- Formules ---------- */

.offers {
  margin: 0 -14rem;
}
.offers__grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr 1fr;
  align-items: center;
  gap: 1.6rem;
}
.offer {
  --fg: var(--text-heading);
  --mute: var(--text-body);
  --line: var(--border-hairline);
  --accent: var(--ie-wine);
  position: relative;
  padding: 5rem 3rem 4rem;
  border: 1px solid var(--border-hairline);
  background: var(--ie-card);
  text-align: center;
  transition: transform 0.35s var(--ease-out);
}
.offer--featured {
  --fg: var(--ie-paper);
  --mute: rgba(247, 244, 238, 0.82);
  --line: var(--border-on-inverse);
  --accent: var(--ie-rose);
  padding: 5.8rem 3rem 4.6rem;
  border-color: var(--ie-ink);
  background: var(--ie-ink);
}
@media (hover: hover) {
  .offer:hover {
    transform: translateY(-0.6rem);
  }
}
.offer__badge {
  position: absolute;
  top: -1.3rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-button);
  background: var(--ie-wine);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--ie-paper);
}
.offer__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.04rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.offer__prints {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.472rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.offer__price {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.offer__tag {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.472rem;
  color: var(--mute);
}
.offer__divider {
  width: 4rem;
  height: 1px;
  margin: 2.8rem auto 2.2rem;
  background: var(--line);
}
.offer--featured .offer__divider {
  background: var(--accent);
}
.offer__features li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.55rem;
  color: var(--fg);
}
.offer__features li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.offer-custom {
  max-width: 60rem;
  margin: 4.4rem auto 0;
  padding: 5rem 3.2rem 4rem;
  border: 1px solid var(--border-hairline);
  background: var(--ie-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}
.offer-custom__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.offer-custom__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.55rem;
  color: var(--text-body);
  text-wrap: pretty;
}
.offer-custom__link,
.offer-custom__link:hover {
  margin-top: 0.8rem;
  display: inline-flex;
  padding: 1.3rem 3.2rem;
  border: 1px solid var(--ie-ink);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--ie-ink);
}

@media (max-width: 1099px) {
  .offers {
    max-width: 52rem;
    margin: 0 auto;
  }
  .offers__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.2rem;
  }
  .offer--featured {
    padding: 5rem 3rem 4rem;
  }
  .offer-custom {
    margin-top: 3.2rem;
  }
}
@media (max-width: 767px) {
  .offer-custom {
    padding: 4rem 2.4rem 3.2rem;
  }
}
