/* ======================================================================
   Maquette prestations minimal — affichée sous « Notre philosophie ».
   Toutes les classes sont préfixées pour cohabiter avec le système Graphen.
   ====================================================================== */

.prestations-minimal {
  --minimal-noir: #111;
  --minimal-gris: #9a9a9a;
  --minimal-filet: #111;
  position: relative;
  z-index: 4;
  color: var(--minimal-noir);
  font-family: "Outfit", sans-serif;
}

.prestations-minimal,
.prestations-minimal * {
  box-sizing: border-box;
}

.minimal-prestations-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 22vw) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "web . production"
    "visibility . .";
  gap: 2rem 4vw;
  padding: 10vh 6vw 8vh;
  opacity: 0;
  animation: minimal-prestations-reveal linear both;
  animation-timeline: --sequence;
  animation-range: contain 26% contain 100%;
  pointer-events: none;
}

.minimal-prestation-station.station {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  border-block: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(9, 22, 28, 0.42), rgba(9, 22, 28, 0.12));
  color: #fff;
  opacity: 1;
  transform: none;
  animation: none;
}

.minimal-prestation-1 { grid-area: web; align-self: center; }
.minimal-prestation-2 { grid-area: production; align-self: center; }
.minimal-prestation-3 {
  grid-area: visibility;
  justify-self: start;
  align-self: center;
  width: min(100%, 24rem);
}

@keyframes minimal-prestations-reveal {
  0%   { opacity: 0; transform: translateY(1.2rem); }
  10%  { opacity: 1; transform: translateY(0); }
  78%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-1.2rem); }
}

@media (max-width: 987px), (prefers-reduced-motion: reduce) {
  .minimal-prestations-grid {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-template-areas:
      "web production"
      "visibility .";
    gap: 1.5rem;
    padding: 0 5vw 4rem;
    opacity: 1;
    animation: none;
    pointer-events: auto;
  }
}

.minimal-prestation-label {
  grid-column: 1 / 3;
  align-self: start;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minimal-story-eyebrow::before {
  content: "▸";
  margin-right: 0.5em;
  font-size: 0.7em;
}

.minimal-prestation-copy {
  width: 100%;
}

.minimal-prestation-sur {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minimal-prestation-copy h3 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.6vw, 3rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.minimal-prestation-copy ul {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.78rem, 0.95vw, 0.96rem);
  line-height: 1.55;
  text-transform: uppercase;
}

.minimal-prestation-copy li::before {
  content: "—\00a0";
  color: rgba(255, 255, 255, 0.62);
}

@supports (animation-timeline: view()) {
  @media (min-width: 988px) and (prefers-reduced-motion: no-preference) {
    .scene {
      /* Cinq ecrans donnent une vraie respiration a l'eau, au buste et a la
         lecture de la philosophie avant les prestations. */
      height: 520vh;
    }

    .station.station-intro {
      animation-name: sq-relever;
      animation-range: contain 10% contain 85%;
    }

    .station-intro .cale-corps,
    .station-intro .cale-appui {
      animation-range: contain 35% contain 80%;
    }
  }
}

.minimal-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2.5rem 2.5rem 3rem;
  background: #000;
  color: #fff;
}

.minimal-story-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1.5rem;
  color: #9a9a9a;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minimal-story-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--ls-snug);
  text-transform: none;
}

.minimal-story-web {
  color: var(--color-brand-studio); /* gris #545450 */
}

.minimal-story-title span {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.minimal-story-title em {
  font-style: italic;
  font-weight: 700;
}

.minimal-story-nav {
  position: absolute;
  top: 2.2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: #fff;
}

.minimal-story-nav span {
  display: block;
  width: 2px;
  height: 1rem;
  background: #000;
}

.minimal-story-nav span:last-child {
  width: 5px;
}

.minimal-story-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: auto;
  padding-top: 8rem;
}

.minimal-story-copy {
  padding-left: 12rem;
}

.minimal-story-bracket {
  margin: 0 0 4rem;
  color: #cfcfcf;
  font-size: 0.85rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.minimal-story-subbracket {
  margin: 3.5rem 0 1.5rem;
}

.minimal-story-paragraph {
  max-width: 30ch;
  margin: 0;
  color: #d8d8d8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Card Graphic Pierre & Liquide (décalée à gauche, coins non arrondis, parallaxe au scroll) ---- */
.minimal-story-graphic-wrap {
  position: relative;
  align-self: flex-start;
  justify-self: start;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 0 0;
  padding: 0;
  border-radius: 0 !important; /* Pas de coins arrondis */
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-sizing: border-box;
  background: #000;
}

.minimal-story-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 0 !important;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Composition issue du PSD Stone Liquid Title : le fond et les pierres restent
   rasterisés, tandis que le logo et les mentions sont du vrai texte pour
   reprendre exactement les tokens du logotype Graphen. */
.stone-composition-base,
.stone-composition-layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.stone-composition-base {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-composition-layer {
  height: auto;
}

.stone-layer-cube {
  top: 22.685%;
  left: 20.365%;
  width: 2.76%;
}

.stone-layer-cube-lines {
  top: 24.444%;
  left: 24.479%;
  width: 0.938%;
}

.stone-layer-arrow-top {
  top: 23.796%;
  left: 26.771%;
  width: 6.354%;
}

.stone-layer-brick-right {
  top: 42.5%;
  left: 69.167%;
  width: 12.708%;
  z-index: 3;
}

.stone-wordmark {
  position: absolute;
  top: 31.5%;
  left: 24.5%;
  display: flex;
  flex-direction: column;
  color: var(--logo-encre, #000);
  font-family: var(--font-main);
  font-size: clamp(2.3rem, 10.4cqw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.86;
  white-space: nowrap;
  z-index: 2;
}

.stone-wordmark-studio {
  margin-left: 25%;
  margin-top: 0;
  transform: translateX(45%);
  color: var(--color-brand-studio, #545450);
}

.stone-date,
.stone-webdesign {
  position: absolute;
  color: #1b1b1b;
  font-family: var(--font-main);
  font-weight: 600;
  white-space: nowrap;
}

.stone-date {
  z-index: 4;
  top: 23.5%;
  left: 73.9%;
  font-size: clamp(0.7rem, 1.6cqw, 1.85rem);
  letter-spacing: 0.04em;
}

.stone-webdesign {
  z-index: 4;
  top: 70%;
  left: 60.7%;
  font-size: clamp(0.7rem, 1.7cqw, 2rem);
  letter-spacing: -0.025em;
}

.minimal-story-third {
  padding-left: 12rem;
}

.minimal-story-third .minimal-story-paragraph {
  max-width: 42ch;
}

.minimal-story-drag { display: none; }

.minimal-lena-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  height: 100vh;
  padding: 1.75rem 3rem 2.5rem;
  background: #000;
  box-sizing: border-box;
}

.minimal-lena-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 2rem 2rem 2.75rem;
  aspect-ratio: 16 / 9;
  background: url("lena-photo.png") center / cover no-repeat;
  overflow: hidden;
}

[data-lena-slide="0"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

[data-lena-slide="0"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.minimal-lena-menu-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  z-index: 2;
}

.minimal-lena-menu-btn span {
  display: block;
  height: 1px;
  background: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.minimal-lena-menu-btn span:first-child { width: 1.1rem; }
.minimal-lena-menu-btn span:last-child { width: 0.7rem; }

.minimal-lena-icons {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
  z-index: 2;
}

.minimal-lena-icons svg {
  width: 1.15rem;
  height: 1.15rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.minimal-lena-top {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.minimal-lena-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.minimal-lena-season {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Outfit", sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.minimal-lena-logo {
  margin: 0;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.minimal-lena-chatbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(400px, 80%);
  padding: 0.3rem 0.35rem 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.minimal-lena-pin,
.minimal-lena-send {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  cursor: pointer;
}

.minimal-lena-pin {
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  background: none;
}

.minimal-lena-pin svg { width: 1.1rem; height: 1.1rem; }

.minimal-lena-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minimal-lena-caret {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.58);
  vertical-align: middle;
  animation: minimal-lena-blink 1s steps(1) infinite;
}

@keyframes minimal-lena-blink {
  50% { opacity: 0; }
}

.minimal-lena-send {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.minimal-lena-send svg { width: 0.75rem; height: 0.75rem; }

@media (max-width: 720px) {
  .minimal-prestations-grid {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "web"
      "production"
      "visibility";
    gap: 1rem;
    padding: 0 1.5rem 3.5rem;
    opacity: 1;
    animation: none;
    pointer-events: auto;
  }

  .minimal-prestation-station.station {
    padding: 1.4rem 1.2rem 1.5rem;
  }

  .minimal-prestation-copy h3 {
    max-width: 11ch;
    font-size: clamp(1.8rem, 10vw, 3.2rem);
  }

  .minimal-story {
    padding: 2rem 1.5rem 3rem;
  }

  .minimal-story-nav {
    top: 1.5rem;
    right: 1.5rem;
    width: 3.6rem;
    height: 3.6rem;
  }

  .minimal-story-bottom {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 4rem;
  }

  .minimal-story-copy {
    padding-left: 0;
  }

  .minimal-story-quote {
    justify-self: start;
    margin-right: 0;
  }

  .minimal-lena-wrap {
    height: 78vh;
    min-height: 32rem;
    padding: 1rem;
  }

  .minimal-lena-card {
    padding: 1.5rem 1rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .minimal-lena-caret { animation: none; }
}
