/* ============================================================
   SARGAWATT – Home (v2)  editorial / de-carded layouts
   ============================================================ */

/* ---------- HERO – full-bleed image, content overlaid ---------- */
.hero {
  --home-header-space: 76px;
  position: relative; z-index: 0;
  height: 100vh;
  height: 100svh;
  display: flex; align-items: stretch; overflow: hidden;
  /* Evite le filet clair entre le hero et le bandeau de preuves. */
  border-bottom: 0;
}
.hero-bg {
  /* L'image reste fixe pendant que les contenus du hero defilent normalement. */
  position: fixed; inset: 0; z-index: 0;
  transform-origin: center top;
  pointer-events: none;
}
.hero-bg .ph {
  position: absolute; inset: 0; height: 100%; width: 100%;
  min-height: 0; border-radius: 0;
}
.hero-overlay {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,35,39,0.46) 0%, rgba(7,35,39,0.16) 33%, rgba(7,35,39,0.84) 100%);
}
.hero-shell {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(8px, 1.4vh, 18px);
  padding-top: calc(var(--home-header-space) + clamp(12px, 2.2vh, 28px));
  padding-bottom: clamp(10px, 1.6vh, 20px);
}
.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; padding-bottom: 0;
}
.hero-logo {
  display: block;
  width: min(100%, 1180px); height: auto; max-height: clamp(76px, 17vh, 148px);
  margin-inline: auto; margin-bottom: clamp(8px, 1.3vh, 14px);
  --logo-ink: #fff; --logo-teal: #fff;
  filter: brightness(0) invert(1) drop-shadow(0 2px 20px rgba(0,0,0,0.34));
}
.hero h1 {
  color: #fff; font-size: clamp(28px, 4vw, 54px); line-height: 1.01;
  max-width: min(100%, 1000px); text-shadow: 0 2px 34px rgba(0,0,0,0.28);
  text-align: center; margin-inline: auto; text-wrap: balance;
}
.hero .sub {
  margin-top: clamp(8px, 1.1vh, 12px); font-size: clamp(14.5px, 1.15vw, 17px);
  color: rgba(255,255,255,0.92); max-width: min(100%, 980px); line-height: 1.38;
  text-shadow: 0 1px 18px rgba(0,0,0,0.3);
  text-align: center; margin-inline: auto; text-wrap: pretty;
}
.hero-break { display: none; }
.hero h1 .hero-break {
  /* Force la promesse secondaire du titre sur sa propre ligne dans les trois langues. */
  display: block;
}

/* ---------- ACTORS – "Vous êtes" : 3 columns, CTAs aligned ---------- */
.actors { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4vw, 56px); }
.hero .actors {
  /* La rangee acteurs sort du wrap pour occuper la largeur visible du hero. */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--gutter);
  transform: translateY(clamp(-34px, -3.2vh, -18px));
  background: transparent; border-bottom: 0; padding-block: 0;
}
.actors-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.hero .actors-head { margin-bottom: clamp(7px, 1vh, 12px); }
.actors-head .ask {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px); color: var(--ink);
}
.hero .actors-head .ask {
  color: #fff; font-size: clamp(20px, 2vw, 28px);
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.actors-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px); align-items: stretch;
}
.hero .actors-3 {
  /* Les trois acteurs occupent chacun un tiers de la largeur du hero. */
  gap: 0;
}
.actor-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 2px solid var(--teal); border-radius: var(--radius);
  padding: clamp(18px, 1.8vw, 24px);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero .actor-card {
  /* Dans le hero, les acteurs ne sont plus traites comme des cartes. */
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 clamp(18px, 3vw, 44px);
  box-shadow: none;
}
.actor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero .actor-card:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}
.hero .actor-card + .actor-card {
  /* Separateur fin entre les profils d'acteurs du hero. */
  border-left: 1px solid var(--teal);
}
.actor-card .actor-thumb {
  height: 150px; min-height: 150px; border-radius: var(--radius-sm);
  margin: 14px 0 18px;
}
.hero .actor-card .actor-thumb {
  height: clamp(96px, 12vh, 140px); min-height: clamp(96px, 12vh, 140px);
  margin: 8px 0 10px;
}
.hero .actor-thumb.biomass .ph-img {
  /* Cadrage haut pour montrer le convoyeur et le procede industriel. */
  object-position: center 16%;
}
.hero .actor-thumb.sand .ph-img {
  /* Cadrage haut pour garder le resort visible derriere le littoral. */
  object-position: center 10%;
}
.hero .actor-thumb.marine .ph-img {
  /* Cadrage remonte pour mieux montrer le tracteur dans son contexte. */
  object-position: center 34%;
}
.actor-card .actor-thumb .ph-label { top: 9px; left: 9px; font-size: 9px; padding: 4px 7px; }
.actor-card .actor-thumb::before { inset: 8px; }
.actor-card .actor-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px;
}
.actor-card p { font-size: clamp(15px, 1.4vw, 17px); color: var(--ink); line-height: 1.42; }
.hero .actor-card .actor-role {
  /* Roles hero visibles sans prendre le dessus sur la phrase et le CTA. */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13.5px, 1.1vw, 16.5px);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.96);
  margin-bottom: clamp(9px, 1vh, 12px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.34);
}
.hero .actor-card p {
  color: #fff;
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.34;
  margin-bottom: clamp(9px, 1vh, 12px);
  text-shadow: 0 2px 14px rgba(0,0,0,0.38);
}
.actor-card .actor-cta {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--teal-700);
}
.hero .actor-card .actor-cta {
  /* Le lien d'action est traite comme un vrai bouton pour clarifier le clic. */
  align-self: flex-start;
  /* margin-top: auto plaque le bouton au bas de la colonne (hauteur egale en
     grille) : les 3 boutons restent alignes meme si une phrase fait une ligne
     de plus que les autres. */
  margin-top: auto;
  padding-top: 8px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 14.5px;
  box-shadow: 0 10px 24px rgba(0,151,157,0.28);
}
.actor-card .actor-cta svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.actor-card:hover .actor-cta svg { transform: translateX(5px); }

/* Les sections suivantes recouvrent l'image fixe du hero avec leur propre fond. */
.proofline,
.context,
.voies,
.team,
.final {
  position: relative;
  z-index: 1;
}
.page-home .footer {
  position: relative;
  z-index: 1;
}

/* ---------- CONTEXT ---------- */
.context { background: var(--bg); }
.context-top {
  display: grid; grid-template-columns: 0.99fr 1.01fr;
  gap: clamp(24px, 3.4vw, 46px); align-items: end;
}
.context-lead {
  font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); line-height: 1.55;
}
.context-lead strong { color: var(--ink); font-weight: 600; }
.context-figure .ph {
  /* Ratio natif de l'animation (1200x680) pour eviter un cadre trop plat sur desktop. */
  aspect-ratio: 30 / 17;
  min-height: clamp(245px, 24.5vw, 305px);
}
.sargassum-animation-embed {
  /* Cadre sombre dedie a l'animation iframe, sans habillage placeholder autour du mini-site integre. */
  background: #03090c;
  background-image: none;
  border-radius: 0;
  overflow: hidden;
}
.sargassum-animation-embed::before {
  display: none;
}
.sargassum-animation-frame {
  /* L'iframe remplit exactement le visuel source et laisse l'animation gerer son propre rendu responsive. */
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.sargassum-animation-embed .ph-label {
  display: none;
}
.sargassum-animation-credit {
  /* Reprend le style global .sources avec une marge plus proche du visuel iframe. */
  margin-top: 10px;
}
.context .stats { margin-top: clamp(46px, 5vw, 66px); }

/* ---------- VOIES – alternating editorial bands ---------- */
.voies { background: var(--surface-2); border-top: 1px solid var(--line); }
.voie {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.voie + .voie { margin-top: clamp(56px, 7vw, 100px); }
.voie .voie-visual .ph { min-height: 520px; }
.voie-video {
  /* La video remplace une image de couverture : elle remplit donc le cadre comme un visuel photo. */
  object-fit: cover;
  /* La video porte elle-meme le coin arrondi (le conteneur .ph n'a pas a repeindre un masque
     par-dessus elle). PAS de translateZ/will-change : sinon, une fois la video lue, l'element reste
     accroche a une couche GPU permanente qui se recompose pendant le scroll avec les couches fixes
     du hero -> scroll qui rame des qu'on a lance la video. */
  border-radius: var(--radius);
}
/* Bloc video interactif : le slot signale qu'on peut survoler/tapoter pour lancer la video. */
.ph.has-hover-video { cursor: pointer; }
.voie-video-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  /* Fond solide volontaire (pas de backdrop-filter) : le flou en direct est l'operation de
     compositing la plus couteuse et provoquait des saccades au scroll. */
  background: rgba(7, 35, 39, 0.82);
  color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
  white-space: nowrap; pointer-events: none;
  opacity: 1; transition: opacity 0.25s var(--ease);
}
.voie-video-hint svg { width: 14px; height: 14px; flex: 0 0 auto; }
/* La video joue : on efface l'indice. */
.ph.is-playing .voie-video-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .voie-video-hint { transition: none; }
}
.voie:nth-child(even) .voie-visual { order: 2; }
.voie-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px;
}
.voie h3 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.05; }
.voie .lead { margin-top: 18px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.voie ul { margin-top: 26px; display: grid; gap: 0; }
.voie li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: start; padding: 13px 0; font-size: 15.5px; line-height: 1.45;
  border-top: 1px solid var(--line);
}
.voie li:last-child { border-bottom: 1px solid var(--line); }
.voie li .mk {
  font-family: var(--font-mono); font-size: 11px; color: var(--teal);
  margin-top: 3px; letter-spacing: 0.05em;
}
.voie li b { font-weight: 600; color: var(--ink); }
.voie .voie-cta { margin-top: 30px; }

/* ---------- TEAM ---------- */
.team { background: var(--bg); }
.team-layout {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 38px); }
.founder .ph { min-height: 300px; }
.founder h3 { font-size: 22px; margin-top: 18px; }
.founder .role {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-700); margin-top: 8px;
}
.founder .bio { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.team-side { border-left: 1px solid var(--line-2); padding-left: clamp(24px, 3vw, 40px); }
.team-side .ph { min-height: 220px; margin-bottom: 22px; }
.team-visual-embed {
  /* Cadre du visuel equipe qui remplace l'ancienne carte integree de la home. */
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.team-visual-embed::before,
.team-visual-embed .ph-label {
  display: none;
}
.team-visual-embed .ph-img {
  object-position: center center;
}
.team-side h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px;
}
.team-proof { display: grid; gap: 0; }
.team-proof li {
  font-size: 14.5px; color: var(--ink); padding: 11px 0;
  border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline;
}
.team-proof li:last-child { border-bottom: 1px solid var(--line); }
.team-proof li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px;
  border: 1.5px solid var(--teal); border-radius: 50%;
}
.team-cta { margin-top: clamp(34px, 4vw, 48px); }

/* ---------- FINAL – marine routing ---------- */
.final { background: var(--marine); position: relative; overflow: hidden; }
.final svg.contours {
  /* Les vagues de fond rattachent le CTA final au footer, comme sur la page a-propos. */
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}
.final .wrap { position: relative; z-index: 2; }
.page-home .footer-merged > .final {
  padding-block: clamp(58px, 7vw, 94px) clamp(34px, 4vw, 58px);
}
.page-home .footer-merged > .wrap {
  padding-top: clamp(36px, 5vw, 62px);
  border-top: 1px solid rgba(255,255,255,0.13);
}
.final .section-head { max-width: 720px; }
.final .section-head h2 {
  /* Aligne la lisibilite du CTA final d'accueil avec les pages internes. */
  color: #ffffff;
  font-weight: 750;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}
.final .section-head .eyebrow { color: #9fe7ea; }
.final .section-head .eyebrow::before { background: #9fe7ea; }
.final-list { border-top: 1px solid rgba(255,255,255,0.16); }
.final-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 32px) 12px clamp(22px, 2.6vw, 32px) 4px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.final-row:hover { background: rgba(255,255,255,0.05); padding-left: 16px; }
.final-idx { font-family: var(--font-mono); font-size: 13px; color: #7fd0d4; }
.final-row .fr-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px;
}
.final-row h3 { color: #fff; font-size: clamp(20px, 2.2vw, 28px); }
.final-row .fr-arrow {
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; display: grid; place-items: center; color: #7fd0d4;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.final-row .fr-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.final-row:hover .fr-arrow { background: #7fd0d4; color: var(--marine); border-color: #7fd0d4; }
.final-row:hover .fr-arrow svg { transform: translateX(3px); }

/* ============================================================
   RESPONSIVE – home
   ============================================================ */
@media (max-width: 940px) {
  .hero-shell {
    padding-top: calc(var(--home-header-space) + clamp(14px, 2vh, 24px));
    gap: clamp(10px, 1.6vh, 18px);
  }
  .hero-logo { max-height: clamp(58px, 10vh, 96px); }
  .hero h1 { font-size: clamp(27px, 5.2vw, 42px); max-width: 24ch; }
  .hero .sub { max-width: 58ch; line-height: 1.38; }
  .actors-3 { grid-template-columns: 1fr; }
  .hero .actors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .actor-card .actor-thumb {
    height: clamp(78px, 10vh, 106px); min-height: clamp(78px, 10vh, 106px);
  }
  .context-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .context-figure .ph { min-height: clamp(240px, 58vw, 360px); }
  .voie, .voie:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .voie .voie-visual, .voie:nth-child(even) .voie-visual { order: -1; }
  .team-layout { grid-template-columns: 1fr; }
  .team-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 30px; }
}
@media (max-width: 720px) {
  .hero {
    /* Sur les petits mobiles, le hero grandit avec son contenu au lieu de couper le dernier profil. */
    height: auto;
    min-height: 100svh;
  }
  .hero-bg,
  .hero-overlay {
    min-height: 100svh;
  }
  .hero {
    --home-header-space: 66px;
  }
  .hero-shell {
    justify-content: flex-start;
    padding-top: calc(var(--home-header-space) + 12px);
    padding-bottom: 28px;
    min-width: 0;
    gap: 16px;
  }
  .hero-inner {
    flex: none;
    justify-content: flex-start;
    padding-top: clamp(8px, 2vh, 18px);
  }
  .hero-inner,
  .hero .actors {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero .actors {
    /* Sur mobile, on revient dans le flux pour eviter tout debord horizontal. */
    margin-inline: 0;
    padding-inline: 0;
    transform: none;
  }
  .hero-logo {
    width: min(100%, 300px);
    max-height: clamp(38px, 6vh, 52px);
    margin-bottom: 7px;
  }
  .hero h1 { font-size: clamp(22px, 6.4vw, 32px); max-width: 20ch; }
  .hero .sub {
    width: 100%;
    max-width: 40ch;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.34;
  }
  .hero .sub,
  .hero .actor-card p,
  .hero .actor-card .actor-role,
  .hero .actor-card .actor-cta {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .hero .actors-head {
    gap: 8px 12px;
    margin-bottom: 10px;
  }
  .hero .actors-head .ask { font-size: 20px; }
  .hero .actors-3 {
    grid-template-columns: 1fr;
    width: min(100%, 340px);
    gap: 10px;
  }
  .hero .actor-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 7px 10px;
    padding: 0;
    width: 100%;
    min-width: 0;
  }
  .hero .actor-card + .actor-card {
    border-left: 0;
    border-top: 1px solid var(--teal);
    padding-top: 11px;
  }
  .hero .actor-card .actor-thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 56px; height: 46px; min-height: 46px;
    margin: 0;
  }
  .hero .actor-card .actor-thumb .ph-label {
    top: 5px; left: 5px; font-size: 7px; padding: 3px 5px;
  }
  .hero .actor-card .actor-thumb::before { inset: 5px; }
  .hero .actor-card .actor-role {
    grid-column: 2;
    grid-row: 1;
    font-size: 11.5px;
    margin-bottom: 0;
  }
  .hero .actor-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.28;
    margin-bottom: 0;
  }
  .hero .actor-card .actor-cta {
    grid-column: 2;
    grid-row: 3;
    margin-top: 2px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: normal;
  }
  .founders { grid-template-columns: 1fr; }
  .final-row { grid-template-columns: 36px 1fr auto; gap: 16px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(20px, 6.4vw, 27px); }
  .hero .sub { font-size: 12.4px; }
  .hero .actor-card .actor-role { font-size: 11px; }
  .hero .actor-card p { font-size: 12.4px; }
  .hero .actor-card .actor-cta { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-overlay,
  .hero-shell {
    transform: none !important;
  }
}
