/* ============================================================
   Hero — Figma 3:6174 · 1905 × 1146,59
   Panneau crème r40 · pt 47 · pb 40 · conteneur 1320 · gap 42 · pb 200
   ============================================================ */
/* Le fond crème couvre TOUTE la largeur (1497 @1512), pas un panneau de 1320.
   overflow visible : la vidéo remonte de 223 px derrière le titre sans être rognée. */
.hero {
  padding: 47px var(--pad-x) 40px;
  background: var(--c-cream);
  border-radius: var(--r-panel);
  overflow: visible;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-42);
  padding-bottom: 200px;
}

/* --- Zone de titre : 1320 × 342,59 --- */
/* Rythme vertical relevé sur le live (Hero area = 342,59) :
   pilule 34 → gap 16 → H1 154 → gap 5 → lead 81 → gap 5 → boutons 48 */
.hero__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.hero__title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);             /* pilule 34 + 16 → H1 à y = 50 */
  width: 100%;
}

.hero__h1 {
  width: 924px;
  max-width: 100%;
  text-align: center;
}

/* Le wrapper fait 81 pour 61 de texte : 20 px de respiration en bas (live) */
.hero__lead {
  width: 981px;
  max-width: 100%;
  padding-bottom: 20px;
  font-size: var(--fs-hero-lead);
  line-height: var(--lh-hero-lead);
  letter-spacing: normal;
  color: var(--c-text);
  text-align: center;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

/* --- Accroche : bloc pleine largeur (1320), texte centré dedans --- */
.hero__tagline {
  width: 100%;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: normal;
  color: var(--c-text);
  text-align: center;
}

/* --- Marquee des logos clients : piste 937 × 57, gap 65, −90 px/s --- */
.hero__clients {
  width: 937px;
  max-width: 100%;
  height: 57px;
  /* dégradé relevé sur le live : 5% → 20% → 80% → 95% */
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 20%, #000 80%, transparent 95%);
          mask-image: linear-gradient(to right, transparent 5%, #000 20%, #000 80%, transparent 95%);
}
.hero__clients-track { gap: var(--sp-65); }
.hero__clients-track li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Les ratios natifs des fichiers ne correspondent pas aux tailles de rendu :
   on garde la boîte des attributs width/height et on laisse `contain` cadrer
   dedans (comportement du site d'origine). Sans cela, `height: auto` donne
   jusqu'à 72 px de haut et les logos sont rognés par la piste de 57. */
.hero__clients-track img {
  object-fit: contain;   /* aucun filtre ni opacité sur le site d'origine */
}
.hero__clients-track li { height: 100%; }

/* --- Média : cadre 1320 × 300, vidéo en débord --- */
.hero__media {
  position: relative;
  width: 100%;
  height: 300px;
  /* la video et les pastilles debordent vers le haut : pas de rognage ici,
     c'est le panneau du hero (overflow hidden) qui borne l'ensemble */
}

/* Mesuré sur le live : 1364 × 763, calée sur le bord GAUCHE du cadre
   et remontée de 223 px — elle déborde donc de 44 px à droite (rognés
   par le panneau) et de 223 px vers le haut, derrière le titre. */
.hero__video {
  position: absolute;
  top: -223px;
  left: 0;
  width: 1364px;
  max-width: none;
  height: 763px;
  object-fit: cover;
  pointer-events: none;
}

/* --- 5 pastilles-outils 155 × 155, coordonnées Figma relatives au cadre --- */
.hero__tool {
  position: absolute;
  width: 155px;
  height: 155px;
  pointer-events: none;
}
.hero__tool--gmail    { left: 69px;   top: -518px; }
.hero__tool--notion   { left: 81px;   top: -230px; }
.hero__tool--calendar { left: 1084px; top: -589px; }
.hero__tool--linkedin { left: 1176px; top: -372px; }
.hero__tool--drive    { left: 943px;  top: -277px; }

/* ---------- Tablette ---------- */
@media (max-width: 991px) {
  .hero { padding: 80px 0 0; }
  .hero__inner { padding-bottom: 120px; gap: 32px; }
  .hero__lead { font-size: 18px; line-height: 30px; }
  .hero__tagline { font-size: 18px; }
  .hero__media { height: 220px; }
  .hero__video { width: 1000px; height: 560px; top: -163px; }
  /* Les pastilles quittent le flux visuel : elles déborderaient du panneau */
  .hero__tool--calendar,
  .hero__tool--linkedin { display: none; }
  .hero__tool { width: 110px; height: 110px; }
  .hero__tool--gmail  { left: 8px;  top: -380px; }
  .hero__tool--notion { left: 16px; top: -180px; }
  .hero__tool--drive  { right: 8px; left: auto; top: -220px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .hero { padding: 60px 0 14px; }
  .hero__inner { padding-bottom: 60px; gap: 24px; }
  .hero__h1 { text-align: center; }
  .hero__lead { font-size: 16px; line-height: 27.2px; }
  .hero__lead br { display: none; }
  .hero__buttons { flex-direction: column; align-items: stretch; width: 100%; margin-top: 16px; }
  .hero__buttons .btn { width: 100%; }
  .hero__tagline { font-size: 16px; }
  .hero__clients { width: 100%; }
  .hero__clients-track { gap: 36px; }
  .hero__clients-track img { max-height: 36px; }
  .hero__media { height: 160px; }
  .hero__video { width: 700px; height: 392px; top: -114px; left: 50%; transform: translateX(-50%); }
  .hero__tool { display: none; }
}
