/* ===== Cinematic scroll-story module (light theme) ===== */
.cine-hero {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 52px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--creme) 100%);
  overflow: hidden;
}
.cine-hero::before, .cine-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--or-clair);
  opacity: 0.35;
  pointer-events: none;
}
.cine-hero::before { width: 520px; height: 520px; top: -220px; right: -180px; }
.cine-hero::after { width: 320px; height: 320px; bottom: -160px; left: -120px; }
.cine-kicker {
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--or);
  font-weight: 600;
  margin-bottom: 22px;
}
.cine-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 600;
  color: var(--marine);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  max-width: 720px;
  margin: 0 0 16px;
}
.cine-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.98rem;
  color: var(--gris);
  max-width: 580px;
  margin: 0;
  line-height: 1.6;
}
.cine-scrollcue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, var(--or) 0%, transparent 100%);
}
.cine-scrollcue::after {
  content: '';
  position: absolute;
  top: 0; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--or);
  animation: cineScrollDot 1.8s ease-in-out infinite;
}
@keyframes cineScrollDot {
0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(46px); opacity: 0; }
  100% { transform: translateY(46px); opacity: 0; }
}

.cine-section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
}
.cine-section.alt { background: var(--creme); }
.cine-row {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cine-row.reverse { direction: rtl; }
.cine-row.reverse > * { direction: ltr; }
.cine-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 600;
  color: var(--or-clair);
  line-height: 1;
  opacity: 0.55;
  margin: 0 0 18px;
}
.cine-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--marine);
  margin: 0 0 18px;
  font-weight: 600;
}
.cine-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--texte);
  max-width: 480px;
}
.cine-visual {
  position: relative;
  min-height: 320px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--marine) 0%, var(--marine-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cine-visual .cine-visual-num {
  font-family: 'Instrument Serif', serif;
  font-size: 7rem;
  color: rgba(255,255,255,0.12);
  font-weight: 600;
}
.cine-visual .cine-visual-mark {
  position: absolute;
  width: 74%;
  height: 74%;
  border: 1px solid rgba(200,144,42,0.45);
  border-radius: 50%;
}

.cine-parallax {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--or-clair);
  opacity: 0.3;
  pointer-events: none;
  will-change: transform;
}

.cine-stat-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.cine-stat h3 {
  font-family: 'Instrument Serif', serif;
  color: var(--marine);
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.cine-stat p {
  font-family: 'Work Sans', sans-serif;
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.cine-stat .cine-stat-icon {
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  border: 1px solid var(--or);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--or);
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
}

.cine-cta {
  text-align: center;
  padding: 100px 24px;
}
.cine-cta .cine-heading { margin-left: auto; margin-right: auto; }

/* reveal extensions for cinematic blocks */
.cine-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(.22,.68,0,1.01), transform 0.9s cubic-bezier(.22,.68,0,1.01);
}
.cine-reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
.cine-row { grid-template-columns: 1fr; gap: 36px; }
  .cine-row.reverse { direction: ltr; }
  .cine-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cine-section { padding: 80px 20px; }
}

/* About page: photo matched to the height of the first two paragraphs, mission block full-width below */
.cine-sticky-row {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
}
.cine-sticky-media {
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
}
.cine-sticky-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cine-sticky-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cine-sticky-text > div {
  margin-bottom: 40px;
}
.cine-sticky-text > div:last-child {
  margin-bottom: 0;
}
.cine-mission-full {
  max-width: 1080px;
  margin: 56px auto 0;
}
@media (max-width: 860px) {
.cine-sticky-row { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .cine-sticky-media { min-height: 280px; margin-bottom: 8px; }
  .cine-sticky-text > div { margin-bottom: 40px; }
  .cine-mission-full { margin-top: 36px; }
}

/* About page: compact history block so Origine / Opportunité / Mission fit with barely any scroll */
.cine-history {
  padding: 56px 24px 64px;
}
.cine-history .cine-sticky-media {
  min-height: 220px;
}
.cine-history .cine-sticky-text > div {
  margin-bottom: 18px;
}
.cine-history .cine-kicker {
  font-size: 0.7rem;
  margin-bottom: 6px;
}
.cine-history .cine-heading {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  margin-bottom: 6px;
}
.cine-history .cine-text {
  font-size: 0.86rem;
  line-height: 1.42;
  max-width: none;
}
.cine-history .cine-text + .cine-text {
  margin-top: 8px !important;
}
.cine-history .cine-mission-full {
  margin-top: 24px;
}
@media (max-width: 860px) {
.cine-history .cine-sticky-media { min-height: 200px; }
}

/* Jamones-Blazquez-style directional reveals (About page) */
.cine-reveal--side {
  transform: translateX(46px);
}
.cine-reveal--side.visible {
  transform: translateX(0);
}
.cine-reveal--fade {
  transform: none !important;
}


.order-recap {
  padding-top: 78px;
  padding-bottom: 86px;
}
.order-recap-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.order-recap-head .cine-heading {
  text-transform: uppercase;
  letter-spacing: .015em;
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3rem);
}
.order-recap-head .cine-heading span {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: .52em;
  letter-spacing: .16em;
  font-weight: 600;
  margin-top: 4px;
}
.order-recap-list {
  width: min(720px, 100%);
  margin: 0 auto;
}
.order-recap-step {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 82px 1fr 126px;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}
.order-recap-number {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--marine);
  text-align: center;
}
.order-recap-copy h3 {
  margin: 0;
  max-width: 290px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 500;
  color: var(--texte);
}
.order-recap-icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin-left: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(34,52,73,.12);
}
.order-recap-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--marine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.order-recap-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 3px dotted var(--or);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(32deg);
}
.order-recap-step.reverse-icon .order-recap-icon::after {
  transform: rotate(212deg);
}
.order-recap-step + .order-recap-step {
  margin-top: 2px;
}

@media (max-width: 860px) {
.order-recap { padding-top: 62px; padding-bottom: 70px; }
  .order-recap-step {
    grid-template-columns: 54px 1fr 94px;
    gap: 10px;
    min-height: 100px;
  }
  .order-recap-icon { width: 76px; height: 76px; }
  .order-recap-icon svg { width: 45px; height: 45px; }
  .order-recap-icon::after { inset: -9px; }
  .order-recap-copy h3 { font-size: .98rem; }
}


/* ==========================================================
   FINAL HOW-IT-WORKS REFINEMENTS
   - Branches stop below the text, never through the copy.
   - Branches draw progressively with the central thread.
   - Compact vertical rhythm.
   - Recap redesigned as a horizontal 5-step winding diagram.
   ========================================================== */
#how-timeline .cine-section { padding: 58px 24px; }

/* The branch starts at the center thread, drops below the copy, then ends under it. */
#how-timeline .cine-row::before {
  top: 54%;
  width: 168px;
  height: 86px;
  background: none;
  border: 0;
  border-top: 0;
  opacity: 1;
  transform: scaleX(var(--branch-progress,0));
  transition: transform .14s linear;
  z-index: 2;
}

/* Keep the copy safely above the end of the branch. */
#how-timeline .cine-row:not(.reverse) > .cine-reveal { margin-right: 0; }

/* Page tabs */
.how-page-tabs { max-width: 760px; margin: 0 auto 20px; padding: 0 20px; }
.how-page-tabs .page-tab-btn { min-width: 180px; }
.how-process-panel { padding-bottom: 0; }
.how-info-panel { padding-top: 10px; }

/* Reference-inspired 5-step recap: horizontal, airy, winding dotted path.
   Navy background (theme blue), compact size. */
.order-recap {
  padding: 40px 30px 48px;
  overflow: hidden;
  background: var(--sauge) !important;
}
.order-recap-head { max-width: 900px; margin: 0 auto 26px; text-align:center; }
.order-recap-head .cine-kicker { margin-bottom: 6px; }
.order-recap-head .cine-heading {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  margin: 0;
  color: var(--marine);
}
.order-recap-head .cine-heading span {
  display:block;
  font-family:'Work Sans',sans-serif;
  font-size:.4em;
  letter-spacing:.28em;
  font-weight:500;
  margin-top:6px;
  color: var(--gris);
}
.order-recap-list {
  position:relative;
  width:min(1000px,100%);
  min-height:190px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:start;
  gap:0;
}
.order-recap-step {
  position:relative;
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:0 8px;
  text-align:center;
}
.order-recap-step:nth-child(1){ transform:translateY(40px); }
.order-recap-step:nth-child(2){ transform:translateY(3px); }
.order-recap-step:nth-child(3){ transform:translateY(-10px); }
.order-recap-step:nth-child(4){ transform:translateY(4px); }
.order-recap-step:nth-child(5){ transform:translateY(-1px); }
.order-recap-number {
  order:3;
  font-family:'Work Sans',sans-serif;
  font-size:.62rem;
  line-height:1;
  letter-spacing:.18em;
  color:var(--or);
  margin-top:9px;
  font-weight:600;
}
.order-recap-copy { order:4; max-width:150px; }
.order-recap-copy h3 {
  margin:0;
  font-family:'Work Sans',sans-serif;
  font-size:.74rem;
  line-height:1.26;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:600;
  color:var(--marine);
}
.order-recap-icon {
  order:1;
  width:56px;
  height:56px;
  margin:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(16,34,64,.14);
  z-index:3;
}
.order-recap-icon svg { width:30px; height:30px; stroke:var(--marine); stroke-width:1.6; fill:none; }
.order-recap-icon::after {
  content:'';
  position:absolute;
  inset:-16px -38px;
  border:0;
  border-top:1.5px dashed rgba(34,52,73,.45);
  border-radius:50%;
  transform:rotate(0deg);
  z-index:-1;
  pointer-events:none;
}
.order-recap-step:nth-child(2) .order-recap-icon::after,
.order-recap-step:nth-child(4) .order-recap-icon::after { transform:rotate(180deg); }
.order-recap-step:nth-child(5) .order-recap-icon::after { display:none; }

@media (max-width: 900px) {
.order-recap-list { grid-template-columns:1fr; min-height:0; gap:22px; }
  .order-recap-step,
  .order-recap-step:nth-child(n) { transform:none; min-height:125px; }
  .order-recap-icon::after { display:none; }
  .order-recap-step { display:grid; grid-template-columns:72px 1fr 44px; grid-template-rows:auto; text-align:left; align-items:center; }
  .order-recap-icon { grid-column:1; grid-row:1; }
  .order-recap-copy { grid-column:2; grid-row:1; max-width:none; }
  .order-recap-number { grid-column:3; grid-row:1; margin:0; text-align:center; }
}

/* ==========================================================
   V4 — compact Genetics thread / branches below the copy
   ========================================================== */
#how-timeline .cine-section {
  min-height: 0;
  padding: 42px 24px 48px;
}
/* Retire the old branch pseudo-elements completely. */
#how-timeline .cine-row::before,
#how-timeline .cine-row::after { display: none !important; }

/* Make the process noticeably shorter while keeping breathing room. */
#how-timeline .cine-heading { font-size: clamp(1.8rem, 3vw, 2.75rem); margin-bottom: 12px; }

/* Practical-info tab: make it impossible to miss. */
.how-page-tabs {
  position: sticky;
  top: 72px;
  z-index: 15;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: -2px auto 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(16,34,64,.12);
  border: 1px solid rgba(16,34,64,.08);
  backdrop-filter: blur(10px);
}
.how-page-tabs .page-tab-btn {
  min-width: 190px;
  padding: 12px 25px;
  border-radius: 999px;
  font-weight: 600;
}

/* Homepage cards: softer, rounded and more alive. */
.home-features .card,
.grid[data-reveal-group="home-features"] .card,
.grid[data-reveal-group="home-steps"] .step {
  border-radius: 24px !important;
  overflow: hidden;
  position: relative;
  transition: transform .55s cubic-bezier(.22,1,.36,1), box-shadow .55s cubic-bezier(.22,1,.36,1), border-color .35s ease !important;
}
.grid[data-reveal-group="home-features"] .card::before,
.grid[data-reveal-group="home-steps"] .step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,0));
  pointer-events: none;
  opacity: .65;
}
.grid[data-reveal-group="home-features"] .card:hover,
.grid[data-reveal-group="home-steps"] .step:hover {
  transform: translateY(-8px) rotate(.25deg) !important;
  box-shadow: 0 24px 45px -26px rgba(55,70,44,.42) !important;
}
.grid[data-reveal-group="home-steps"] .step {
  border-radius: 22px !important;
}

@media (max-width: 860px) {
.how-page-tabs { top: 62px; }
  .how-page-tabs .page-tab-btn { min-width: 0; padding: 10px 16px; }
}

/* V5 — final branch direction correction + softer homepage cards */
#how-timeline .cine-row.reverse .cine-branch {
  right: 50%;
  left: auto;
  transform: none !important;
  transform-origin: right center;
  border-left: 0;
  border-right: 2px solid var(--how-line);
  border-bottom: 2px solid var(--how-line);
  border-bottom-right-radius: 38px;
  border-bottom-left-radius: 0;
}
/* Step 5: let the branch finish clearly below the copy. */
#how-timeline .cine-section[data-cine-group="step5"] .cine-row {
  min-height: 255px;
}
/* Softer, more organic cards on the home page. */
.grid[data-reveal-group="home-steps"] .step,
.grid[data-reveal-group="home-features"] .card,
.home-features .card {
  border-radius: 38px !important;
}
@media (min-width: 861px) {
.grid[data-reveal-group="home-steps"] .step,
  .grid[data-reveal-group="home-features"] .card,
  .home-features .card {
    border-radius: 42px !important;
  }
}

/* ==========================================================
   HOW IT WORKS — clean single-source thread + branch system
   Fond blanc uniforme, version compacte (hauteur proche de la
   page À propos). Le fil central descend en continu ; à chaque
   étape, une branche part du fil vers le texte au moment précis
   où le fil (point lumineux) atteint cette étape, puis le fil
   continue de descendre.
   ========================================================== */
#how-timeline {
  position: relative;
  background: #fff;
}
/* Cancel the generic .cine-row.reverse { direction: rtl } used elsewhere (About page),
   which was flipping the grid-column layout and pushing steps 2/4 back to the right. */
#how-timeline .cine-row,
#how-timeline .cine-row.reverse,
#how-timeline .cine-row.reverse > * {
  direction: ltr;
}
#how-timeline .cine-section,
#how-timeline .cine-section.alt {
  background: #fff;
  min-height: 0;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  overflow: visible;
}
#how-timeline .cine-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(200,144,42,0.18);
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
}
#how-timeline .cine-thread-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--or);
  box-shadow: 0 0 8px rgba(200,144,42,0.4);
}
#how-timeline .cine-thread-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 5px rgba(200,144,42,0.15);
  transform: translate(-50%, -50%);
  z-index: 3;
}
#how-timeline .cine-row {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}
#how-timeline .cine-row > .cine-reveal {
  position: relative;
  z-index: 4;
  max-width: 400px;
}
#how-timeline .cine-row:not(.reverse) > .cine-reveal {
  grid-column: 2;
  padding-left: 54px;
  text-align: left;
}
#how-timeline .cine-row.reverse > .cine-reveal {
  grid-column: 1;
  grid-row: 1;
  padding-right: 54px;
  text-align: left;
}
#how-timeline .cine-num {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--or);
  opacity: 1;
  margin: 0 0 6px;
}
#how-timeline .cine-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.12;
  margin: 0 0 6px;
  color: var(--marine);
}
#how-timeline .cine-text {
  max-width: 340px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--gris);
}
#how-timeline .cine-branch {
  position: absolute;
  width: 54px;
  height: 28px;
  border: 0;
  z-index: 2;
  pointer-events: none;
  --branch-reveal: 0%;
  transition: clip-path 0.1s linear;
  box-sizing: border-box;
}
/* Curved elbow: a vertical tick leaves the center thread, then curves into
   a horizontal stroke that runs to the text block. */
#how-timeline .cine-row:not(.reverse) .cine-branch {
  left: 50%;
  top: calc(50% - 28px);
  border-left: 2px solid var(--or);
  border-bottom: 2px solid var(--or);
  border-bottom-left-radius: 14px;
  clip-path: inset(0 calc(100% - var(--branch-reveal)) 0 0);
}
#how-timeline .cine-row.reverse .cine-branch {
  right: 50%;
  top: calc(50% - 28px);
  border-right: 2px solid var(--or);
  border-bottom: 2px solid var(--or);
  border-bottom-right-radius: 14px;
  clip-path: inset(0 0 0 calc(100% - var(--branch-reveal)));
}
#how-timeline .cine-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.75s cubic-bezier(.22,1,.36,1);
}
#how-timeline .cine-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  #how-timeline .cine-thread { left: 22px; }
  #how-timeline .cine-thread-dot { left: 22px; }
  #how-timeline .cine-section { padding: 26px 24px 26px 52px; }
  #how-timeline .cine-row {
    display: block;
    min-height: 0;
  }
  #how-timeline .cine-row:not(.reverse) > .cine-reveal,
  #how-timeline .cine-row.reverse > .cine-reveal {
    grid-column: auto;
    max-width: none;
    padding: 0;
    text-align: left;
  }
  #how-timeline .cine-branch { display: none; }
}

.how-page-tabs { max-width: 760px; margin: 0 auto 20px; padding: 0 20px; }
.how-page-tabs .page-tab-btn { min-width: 180px; }
