/* ── Hero wrapper ─────────────────────────────────── */

.hero-wrapper {
  position: relative;
  background: radial-gradient(ellipse at top, var(--base-color-brand--teal-700) 0%, var(--base-color-brand--teal-800) 55%, #021418 100%);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Animations d'entrée ─────────────────────────── */

.hero__title {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero__subtitle {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero__ctas {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero__col-right {
  animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero section — 2 colonnes desktop ───────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--section-py) + 36px) var(--border-radius--padding--global--regular) var(--section-py);
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 3;
  gap: 24px;
}

/* ── Colonne gauche ── */
.hero__col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__col-left {
    padding-top: 36px;
  }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 -16px;
}

/* ── Colonne droite ── */
.hero__col-right {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero__col-right {
    display: flex;
  }
}

.hero__scroll-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Title ── */

.hero__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  max-width: 800px;
  margin-top: -12px;
  color: var(--base-color-neutral--white);
}

.hero__tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.hero__tag {
  display: inline-block;
  width: fit-content;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #f8ead5;
  background: #cca677ab;
  backdrop-filter: blur(4px);
  border: 1px solid rgb(235 213 185);
  border-radius: 999px;
}

.hero__title-accent {
  color: #d7ae7c;
}

.hero__title-break {
  display: block;
  margin-top: 0.2em;
}

.hero__title-glow {
  color: #eae6e0;
}

.hero__title-underline {
  text-decoration: underline;
  text-decoration-color: var(--base-color-neutral--white);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* ── Subtitle ── */

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--base-color-neutral--white);
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  margin: 0;
}

.hero__lede {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: #ffd17f;
  text-align: center;
  margin: 0;
}

/* ── CTAs ── */

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hero__ctas .btn-glow {
  background: var(--base-color-neutral--white);
  color: var(--base-color-neutral--black);
  font-weight: 700;
  border-color: var(--base-color-neutral--white);
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hero__ctas .btn-glow:hover {
  background: var(--base-color-neutral--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero__ctas .btn-glow-outline {
  background: transparent;
  color: var(--base-color-neutral--white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.hero__ctas .btn-glow-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--base-color-neutral--white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: none;
}

.hero__cta-offres {
  display: none;
}

/* ── Scroll vertical (colonne droite) ────────────── */

.hero__scroll-mask {
  position: relative;
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero__scroll-track {
  display: flex;
  flex-direction: column;
}

.hero__scroll-track--up {
  animation: hero-scroll-up 15s linear infinite;
}

.hero__scroll-track--down {
  animation: hero-scroll-down 15s linear infinite;
}

.hero__scroll-slide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.hero__scroll-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--border-radius--regular);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero__scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__scroll-icon svg {
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

@keyframes hero-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes hero-scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────── */

@media (min-width: 768px) {
  .hero__cta-offres {
    display: inline-flex;
  }

  .hero {
    padding: calc(var(--section-py) + 42px) var(--border-radius--padding--global--regular) var(--section-py);
    gap: 32px;
  }

  .hero__title {
    font-size: clamp(52px, 8vw, 80px);
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__ctas {
    flex-direction: row;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: calc(var(--section-py) + 8px) var(--border-radius--padding--global--regular) var(--section-py);
    gap: 48px;
  }

  .hero__col-left {
    flex: 1;
    min-width: 0;
    gap: 36px;
    padding-top: 48px;
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    margin-top: -24px;
    text-align: left;
  }

  .hero__subtitle {
    text-align: left;
  }

  .hero__tagline {
    text-align: left;
  }

  .hero__lede {
    align-items: flex-start;
  }

  .hero__ctas {
    align-items: flex-start;
  }

  .hero__col-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 540px;
    height: 620px;
  }

  .hero__title {
    font-size: clamp(58px, 6vw, 88px);
    font-weight: 400;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding: calc(var(--section-py) + 8px) var(--border-radius--padding--global--regular) var(--section-py);
    gap: 60px;
  }

  .hero__col-right {
    flex: 0 0 340px;
    height: 660px;
  }
}

/* ── Landscape mobile — cap du titre ── */
@media (max-width: 767px) and (orientation: landscape) {
  .hero__title {
    font-size: clamp(28px, 5vw, 40px);
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__ctas,
  .hero__col-right {
    animation: none;
  }

  .hero__scroll-track--up,
  .hero__scroll-track--down {
    animation: none;
  }
}

/* ── Orbite tech (colonne droite) ─────────────────── */

.orbit {
  --orbit-radius: 220px;
  --orbit-item-size: 72px;
  --orbit-center-size: 128px;
  position: relative;
  width: calc(var(--orbit-radius) * 2 + var(--orbit-item-size));
  height: calc(var(--orbit-radius) * 2 + var(--orbit-item-size));
  margin: 0 auto;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgb(24 59 68 / 59%);
  pointer-events: none;
}

.orbit::before {
  width: calc(var(--orbit-radius) * 2);
  height: calc(var(--orbit-radius) * 2);
  margin: calc(var(--orbit-radius) * -1) 0 0 calc(var(--orbit-radius) * -1);
}

.orbit::after {
  width: calc(var(--orbit-radius) * 1.4);
  height: calc(var(--orbit-radius) * 1.4);
  margin: calc(var(--orbit-radius) * -0.7) 0 0 calc(var(--orbit-radius) * -0.7);
  border-color: rgb(41 78 88 / 30%);
}

.orbit__glow {
  position: absolute;
  inset: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  background: radial-gradient(circle, rgb(14 45 52) 0%, rgb(13 43 50) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.orbit__center {
  position: absolute;
  inset: 50%;
  width: var(--orbit-center-size);
  height: var(--orbit-center-size);
  margin: calc(var(--orbit-center-size) / -2) 0 0 calc(var(--orbit-center-size) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #072025;
  border-radius: 50%;
  box-shadow: 0 4px 24px #123640;
  z-index: 2;
}

.orbit__logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  opacity: 0.9;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 40s linear infinite;
  z-index: 1;
}

.orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-item-size);
  height: var(--orbit-item-size);
  margin: calc(var(--orbit-item-size) / -2) 0 0 calc(var(--orbit-item-size) / -2);
  transform: rotate(calc(var(--i) * 36deg)) translateY(calc(var(--orbit-radius) * -1));
}

.orbit__item-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #103641;
  border-radius: 50%;
  transform: rotate(calc(var(--i) * -36deg));
  animation: orbit-counter 40s linear infinite;
}

.orbit__item-inner img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(550%) hue-rotate(357deg) brightness(92%) contrast(85%);
}

.orbit__text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--base-color-brand--teal-800);
  text-align: center;
  line-height: 1.1;
  padding: 0 6px;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-counter {
  from { transform: rotate(calc(var(--i) * -36deg)); }
  to { transform: rotate(calc(var(--i) * -36deg - 360deg)); }
}

@media (max-width: 767px) {
  .orbit {
    --orbit-radius: 110px;
    --orbit-item-size: 44px;
    --orbit-center-size: 72px;
  }

  .orbit__logo {
    width: 40px;
    height: 40px;
  }

  .orbit__item-inner img {
    width: 24px;
    height: 24px;
  }

  .orbit__glow {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit__ring,
  .orbit__item-inner {
    animation: none;
  }
}
