/* ESPRIT TRAITEUR — monochrome editorial.
   Palette reelle du site client : encre #111, papier #fff, gris chaud #ededea.
   Aucune couleur d'accent : la maison n'en a pas. Le rythme vient du poids
   typographique, du filet et du point. */

.es-page {
  --es-ink: #111;
  --es-paper: #fff;
  --es-warm: #ededea;
  --es-line: rgba(17, 17, 17, 0.16);
  --accent: #111;
  --paper: #fff;
  --dark: #111;
  background: var(--es-paper);
}

/* ---- Hero ---- */
.es-page .oc-hero { color: #fff; background: #0b0b0b; }
.es-page .oc-hero__media img { object-position: center 42%; filter: grayscale(1) contrast(1.06); }
.es-page .oc-hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.5) 46%, rgba(8, 8, 8, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.78), transparent 48%);
}
.es-page .case-header { color: #fff; mix-blend-mode: difference; }
.es-page .oc-meta, .es-page .oc-hero__foot { border-color: rgba(255, 255, 255, 0.32); }
.es-page .oc-hero__title { max-width: 900px; }
.es-page .oc-hero__title > span { color: #fff; }
.es-page .oc-hero h1 { font-size: clamp(4.2rem, 6.6vw, 7.4rem); letter-spacing: -0.06em; }

/* ---- Intro ---- */
.es-page .oc-intro { color: var(--es-ink); background: var(--es-paper); }
.es-page .oc-intro__lead > span, .es-page .section-index span:first-child { color: var(--es-ink); }
.es-page .oc-facts { border-color: var(--es-line); }
.es-page .oc-facts div { border-color: var(--es-line); }

/* ---- 02 / La matiere : recit sticky + reel ---- */
.es-story {
  padding: 120px var(--page) 140px;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 7vw;
  color: var(--es-ink);
  background: var(--es-warm);
}
.es-story__intro { position: sticky; top: 105px; align-self: start; min-height: calc(100svh - 150px); display: flex; flex-direction: column; }
.es-story__intro > span { font: 10px/1.2 var(--font-mono),monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.es-story__intro h2 { max-width: 560px; margin: 34px 0 30px; font-size: clamp(3.4rem, 5.2vw, 6.2rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.065em; }
.es-story__intro > p { max-width: 390px; margin: 0; color: #5a5751; font-size: 15px; line-height: 1.5; }
.es-story__index { margin-top: auto; border-top: 1px solid var(--es-line); }
.es-story__index span { padding: 14px 0; display: block; border-bottom: 1px solid var(--es-line); color: #5a5751; font: 9px/1.2 var(--font-mono),monospace; text-transform: uppercase; }

.es-reel { display: flex; flex-direction: column; gap: 9vw; }
.es-frame { position: relative; height: 78svh; margin: 0; overflow: hidden; background: #dedbd6; }
.es-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 1.1s var(--ease); }
.es-frame:hover img { transform: scale(1.025); }
.es-frame::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(8, 8, 8, 0.72), transparent); }
.es-frame figcaption { position: absolute; z-index: 2; right: 25px; bottom: 24px; left: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; color: #fff; }
.es-frame figcaption span { font: 9px/1.2 var(--font-mono),monospace; text-transform: uppercase; }
.es-frame figcaption b { max-width: 380px; font-size: clamp(1.7rem, 2.5vw, 3.2rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.045em; text-align: right; }
.es-frame--sceno { width: 62%; height: 82svh; }
.es-frame--lieux { width: 100%; height: 62svh; }
.es-frame--maison { width: 78%; height: 66svh; margin-left: auto; }

.es-manifesto { margin: 1vw 0 2vw; padding: 72px 0 72px 10%; border-top: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.es-manifesto span { font: 9px/1.2 var(--font-mono),monospace; text-transform: uppercase; }
.es-manifesto p { max-width: 800px; margin: 25px 0 0; font-size: clamp(2.2rem, 3.4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }

/* ---- 03 / Le systeme : brand board monochrome ---- */
.es-page .oc-system { color: var(--es-ink); background: var(--es-paper); }
.es-page .oc-system__head p { max-width: 460px; }

.es-board {
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  grid-template-rows: 1.15fr 0.85fr auto;
  overflow: hidden;
  border: 1px solid var(--es-line);
  color: var(--es-ink);
  background: var(--es-paper);
}
.es-board > div { position: relative; padding: 28px; border-right: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.es-board span, .es-board small { font: 9px/1.3 var(--font-mono),monospace; text-transform: uppercase; letter-spacing: 0.04em; }

.es-board__logo { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--es-ink); }
.es-board__logo > span { position: absolute; top: 28px; left: 28px; color: rgba(255, 255, 255, 0.7); }
.es-board__logo img { width: min(74%, 560px); height: auto; }

/* Le point : signature d'interaction du site client (le "e" se replie en point,
   le point fuit le curseur). Ici il grossit au survol du panneau. */
.es-board__dot { display: flex; align-items: center; justify-content: center; background: var(--es-warm); }
.es-board__dot > span { position: absolute; top: 28px; left: 28px; }
.es-board__dot i { display: block; width: 96px; height: 96px; border-radius: 50%; background: var(--es-ink); transition: transform 0.6s var(--ease); }
.es-board__dot:hover i { transform: scale(1.28); }
.es-board__dot small { position: absolute; right: 28px; bottom: 28px; max-width: 190px; color: #5a5751; text-align: right; text-transform: none; font-size: 10px; line-height: 1.45; }

.es-board__voice { display: flex; flex-direction: column; color: #fff; background: #1b1b1b; }
.es-board__voice b { margin: auto 0; font-size: clamp(2.6rem, 4vw, 4.6rem); font-weight: 500; line-height: 0.86; letter-spacing: -0.06em; }
.es-board__voice small { color: rgba(255, 255, 255, 0.62); }

.es-board__type { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 12px; background: var(--es-warm); }
.es-board__type span { grid-column: 1 / -1; }
.es-board__type b { align-self: center; font-size: clamp(6rem, 10vw, 12rem); font-weight: 300; line-height: 0.7; letter-spacing: -0.07em; }
.es-board__type p { align-self: end; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.4rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-align: right; }

.es-board__colors { grid-column: 2 / 4; display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 0 !important; }
.es-board__colors i { min-height: 130px; padding: 15px; display: flex; align-items: flex-end; font-style: normal; font: 9px/1.3 var(--font-mono),monospace; text-transform: uppercase; }
.es-board__colors i:nth-child(1) { color: #fff; background: #111; }
.es-board__colors i:nth-child(2) { color: #111; background: #ededea; }
.es-board__colors i:nth-child(3) { color: #111; background: #fff; box-shadow: inset 0 0 0 1px var(--es-line); }

.es-board__ribbon { grid-column: 1 / -1; padding: 17px 28px !important; border: 0 !important; overflow: hidden; white-space: nowrap; color: var(--es-paper); background: var(--es-ink); font: 9px/1.4 var(--font-mono),monospace; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---- 04 / L'ecran : maquette navigateur ---- */
.es-stage-section { padding: 120px var(--page) 150px; color: #fff; background: var(--es-ink); }
.es-stage__intro { display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 2vw; align-items: end; margin-bottom: 70px; }
.es-stage__intro > span { align-self: start; font: 9px/1.2 var(--font-mono),monospace; text-transform: uppercase; }
.es-stage__intro h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 6.2rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.06em; }
.es-stage__intro p { max-width: 390px; margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 15px; line-height: 1.45; }

.es-stage { overflow: hidden; background: var(--es-paper); box-shadow: 0 45px 90px rgba(0, 0, 0, 0.42); }
.es-stage__bar { height: 74px; padding: 0 25px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--es-line); color: var(--es-ink); font: 9px/1 var(--font-mono),monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.es-stage__bar img { width: 148px; height: auto; }
.es-stage__bar span { justify-self: center; color: #5a5751; }
.es-stage__bar i { justify-self: end; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--es-ink); }
.es-stage__view { position: relative; overflow: hidden; background: #dedbd6; }
.es-stage__view img { width: 100%; height: auto; display: block; }

.es-stage__facts { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.24); }
.es-stage__facts div { padding: 24px 24px 24px 0; border-right: 1px solid rgba(255, 255, 255, 0.24); }
.es-stage__facts div:last-child { border-right: 0; }
.es-stage__facts div + div { padding-left: 24px; }
.es-stage__facts b { display: block; font-size: clamp(1.5rem, 2.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; }
.es-stage__facts span { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.58); font: 9px/1.4 var(--font-mono),monospace; text-transform: uppercase; }

/* ---- 05 / La presence ---- */
.es-finale { position: relative; min-height: 100svh; padding: 95px var(--page) 0; overflow: hidden; color: var(--es-ink); background: var(--es-warm); }
.es-finale__top { position: relative; z-index: 3; padding-bottom: 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--es-line); font: 9px/1 var(--font-mono),monospace; text-transform: uppercase; }
.es-finale h2 { position: relative; z-index: 2; margin: 9vh 0 0; font-size: clamp(4.4rem, 9vw, 11rem); font-weight: 500; line-height: 0.82; letter-spacing: -0.07em; }
.es-finale > p { position: relative; z-index: 3; margin: 6vh 0 150px; max-width: 520px; font-size: 16px; line-height: 1.45; }
.es-finale__mark { position: absolute; z-index: 1; right: 4%; bottom: 15%; width: min(34vw, 460px); opacity: 0.09; }
.es-finale__marquee { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; padding: 18px 0; overflow: hidden; white-space: nowrap; color: var(--es-paper); background: var(--es-ink); font: 9px/1.4 var(--font-mono),monospace; text-transform: uppercase; letter-spacing: 0.2em; }

@media (max-width: 900px) {
  .es-story { grid-template-columns: 1fr; gap: 75px; }
  .es-story__intro { position: relative; top: auto; min-height: 0; }
  .es-story__intro h2 { max-width: 700px; }
  .es-story__intro > p { max-width: 560px; }
  .es-story__index { margin-top: 50px; }
  .es-reel { gap: 80px; }
  .es-frame--sceno, .es-frame--maison { width: 82%; }
  .es-board { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .es-board__logo { grid-row: 1 / 3; min-height: 62svh; }
  .es-board__voice, .es-board__type { min-height: 36svh; }
  .es-board__colors { grid-column: 1 / 3; }
  .es-board__ribbon { grid-column: 1 / 3; }
  .es-stage__intro { grid-template-columns: 1fr; gap: 26px; }
  .es-stage__facts { grid-template-columns: 1fr 1fr; }
  .es-stage__facts div:nth-child(2) { border-right: 0; }
  .es-finale__mark { right: -6%; width: 52vw; }
}

@media (max-width: 720px) {
  .es-story { padding-top: 80px; padding-bottom: 95px; gap: 60px; }
  .es-story__intro h2 { margin: 26px 0 24px; font-size: clamp(3rem, 13vw, 4.6rem); }
  .es-reel { gap: 55px; }
  .es-frame, .es-frame--sceno, .es-frame--lieux, .es-frame--maison { width: 100%; height: 62svh; margin: 0; }
  .es-frame figcaption { right: 16px; bottom: 16px; left: 16px; display: block; }
  .es-frame figcaption b { display: block; margin-top: 8px; text-align: left; }
  .es-manifesto { margin: 0; padding: 48px 0; }
  .es-manifesto p { font-size: clamp(2rem, 9vw, 3rem); }
  .es-board { display: block; }
  .es-board > div { border-right: 0; }
  .es-board__logo { min-height: 52svh; }
  .es-board__logo img { width: 86%; }
  .es-board__dot { min-height: 44svh; }
  .es-board__voice { min-height: 44svh; }
  .es-board__type { min-height: 44svh; }
  .es-board__colors { grid-template-columns: 1fr; }
  .es-board__colors i { min-height: 92px; }
  .es-board__ribbon { display: block !important; }
  .es-stage-section { padding-top: 80px; padding-bottom: 95px; }
  .es-stage__bar { height: 60px; padding: 0 14px; gap: 12px; }
  .es-stage__bar img { width: 108px; }
  .es-stage__bar span { display: none; }
  .es-stage__facts { grid-template-columns: 1fr; }
  .es-stage__facts div, .es-stage__facts div + div { padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); }
  .es-finale { min-height: 92svh; padding-top: 70px; }
  .es-finale h2 { margin-top: 8vh; font-size: clamp(3.6rem, 17vw, 6rem); }
  .es-finale > p { max-width: 78%; margin-top: 5vh; font-size: 14px; }
  .es-finale__mark { right: -14%; bottom: 12%; width: 78vw; }
}
