/* Accueil — effets waouh (scopés .home) */

.home .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), #7ef0dc);
  box-shadow: 0 0 16px rgba(30, 200, 176, 0.55);
  transform-origin: left;
}

/* Intro flash */
/* Écran de démarrage ultra waouh */
.home.is-intro {
  overflow: hidden;
}

.home .splash {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: all;
}

.home .splash__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(30, 200, 176, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(212, 165, 116, 0.08), transparent 55%),
    linear-gradient(160deg, #040a14 0%, var(--ink) 45%, #0a1628 100%);
}

.home .splash__orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  animation: splash-orb 2.4s var(--ease) forwards;
}

.home .splash__orbs span:nth-child(1) {
  width: 28rem;
  height: 28rem;
  background: rgba(30, 200, 176, 0.35);
  top: -10%;
  right: -5%;
  animation-delay: 0.1s;
}

.home .splash__orbs span:nth-child(2) {
  width: 20rem;
  height: 20rem;
  background: rgba(30, 200, 176, 0.2);
  bottom: -8%;
  left: -6%;
  animation-delay: 0.25s;
}

.home .splash__orbs span:nth-child(3) {
  width: 12rem;
  height: 12rem;
  background: rgba(212, 165, 116, 0.18);
  top: 55%;
  left: 55%;
  animation-delay: 0.4s;
}

.home .splash__shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(30, 200, 176, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 60%
  );
  transform: translateX(-40%) rotate(8deg);
  animation: splash-shine 2.2s var(--ease) 0.35s forwards;
  pointer-events: none;
}

.home .splash__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2rem;
}

.home .splash__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 22rem);
  height: min(70vw, 22rem);
  margin: calc(min(70vw, 22rem) / -2) 0 0 calc(min(70vw, 22rem) / -2);
  border-radius: 50%;
  border: 1px solid rgba(30, 200, 176, 0.15);
  box-shadow: 0 0 60px rgba(30, 200, 176, 0.08);
  opacity: 0;
  transform: scale(0.7);
  animation: splash-ring 1.4s var(--ease) 0.15s forwards;
  pointer-events: none;
}

.home .splash__ring::before,
.home .splash__ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(30, 200, 176, 0.28);
  animation: splash-spin 8s linear infinite;
}

.home .splash__ring::after {
  inset: -8%;
  border-style: solid;
  border-color: transparent;
  border-top-color: rgba(30, 200, 176, 0.45);
  border-right-color: rgba(30, 200, 176, 0.15);
  animation-duration: 5s;
  animation-direction: reverse;
}

.home .splash__logo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 1;
  z-index: 1;
}

.home .splash__logo .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotateX(50deg);
  transform-origin: bottom;
  animation: splash-char 0.75s var(--ease) forwards;
  animation-delay: calc(0.35s + var(--i) * 0.055s);
}

.home .splash__logo .char.accent {
  color: var(--teal);
  text-shadow: 0 0 40px rgba(30, 200, 176, 0.45);
}

.home .splash__tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  transform: translateY(12px);
  animation: splash-fade-up 0.7s var(--ease) 1.05s forwards;
}

.home .splash__bar {
  width: min(12rem, 40vw);
  height: 2px;
  margin-top: 0.5rem;
  background: rgba(232, 241, 244, 0.1);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: splash-fade-up 0.5s var(--ease) 0.9s forwards;
}

.home .splash__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), #7ef0dc);
  box-shadow: 0 0 16px rgba(30, 200, 176, 0.6);
  animation: splash-load 1.5s var(--ease) 1s forwards;
}

.home .splash.is-leaving {
  animation: splash-fade-away 0.7s var(--ease) forwards;
  pointer-events: none;
}

.home .splash.is-leaving .splash__content {
  animation: splash-content-out 0.55s var(--ease) forwards;
}

/* Hero wow */
.home .hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home .hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: orb-float 12s ease-in-out infinite;
}

.home .hero-orbs span:nth-child(1) {
  width: 22rem;
  height: 22rem;
  background: rgba(30, 200, 176, 0.35);
  top: 10%;
  right: 5%;
  animation-duration: 14s;
}

.home .hero-orbs span:nth-child(2) {
  width: 16rem;
  height: 16rem;
  background: rgba(212, 165, 116, 0.22);
  bottom: 15%;
  left: 8%;
  animation-duration: 11s;
  animation-delay: -3s;
}

.home .hero-orbs span:nth-child(3) {
  width: 10rem;
  height: 10rem;
  background: rgba(30, 200, 176, 0.28);
  top: 45%;
  left: 40%;
  animation-duration: 9s;
  animation-delay: -5s;
}

.home .hero-media {
  clip-path: inset(0 0 100% 0);
  animation: hero-reveal 1.4s var(--ease) 0.55s forwards;
}

.home .hero-content {
  z-index: 2;
}

.home .hero-brand,
.home .hero h1,
.home .hero-lead,
.home .hero .btn-group {
  animation: none;
  opacity: 1;
}

.home .hero-brand {
  overflow: hidden;
}

.home .hero-brand span {
  animation: none;
  text-shadow: none;
}

.home .hero-brand .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotateX(40deg);
  transform-origin: bottom;
  animation: char-in 0.7s var(--ease) forwards;
  animation-delay: calc(0.7s + var(--i) * 0.035s);
}

.home .hero-brand .char.space {
  width: 0.28em;
}

.home .hero-brand .char.accent {
  color: var(--teal);
  text-shadow: 0 0 28px rgba(30, 200, 176, 0.35);
}

.home .hero h1 .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.28em;
  vertical-align: bottom;
}

.home .hero h1 .word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: word-up 0.75s var(--ease) forwards;
  animation-delay: calc(1.15s + var(--i) * 0.07s);
}

.home .hero-lead,
.home .hero .btn-group {
  opacity: 0;
  animation: rise 0.85s var(--ease) forwards;
}

.home .hero-lead {
  animation-delay: 1.7s;
}

.home .hero .btn-group {
  animation-delay: 1.9s;
}

.home .hero .btn-primary {
  animation: cta-glow 2.4s ease-in-out 2.2s infinite, rise 0.85s var(--ease) 1.9s forwards;
}

.home .hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: scaleX(0);
  animation: line-grow 1.2s var(--ease) 1.4s forwards;
}

/* Marquee — typo large, épurée */
.home .marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-block: 1px solid var(--line);
  background: rgba(232, 241, 244, 0.02);
}

.home .marquee::before,
.home .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(7rem, 16vw);
  z-index: 2;
  pointer-events: none;
}

.home .marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.home .marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.home .marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.home .marquee:hover .marquee-track {
  animation-play-state: paused;
}

.home .marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(30, 200, 176, 0.45);
  white-space: nowrap;
  animation: marquee-stroke 3.5s ease-in-out infinite;
  transition: color 0.35s, -webkit-text-stroke 0.35s, text-shadow 0.35s, transform 0.35s;
}

.home .marquee-track span::after {
  content: "✦";
  font-size: 0.45em;
  font-weight: 400;
  -webkit-text-stroke: 0;
  color: var(--teal);
  opacity: 0.9;
  text-shadow: 0 0 18px rgba(30, 200, 176, 0.7);
  animation: marquee-star 2.8s ease-in-out infinite;
}

.home .marquee-track span:nth-child(odd) {
  -webkit-text-stroke: 0;
  background: linear-gradient(
    100deg,
    var(--foam) 0%,
    var(--foam) 35%,
    #7ef0dc 50%,
    var(--foam) 65%,
    var(--foam) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: marquee-shimmer 3.2s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.15s);
}

.home .marquee-track span:nth-child(even) {
  animation-delay: calc(var(--i, 0) * 0.12s + 0.4s);
}

.home .marquee-track span:nth-child(3n)::after {
  animation-delay: 0.6s;
}

.home .marquee-track span:hover {
  transform: scale(1.06);
  -webkit-text-stroke: 0;
  background: none;
  color: var(--teal);
  text-shadow:
    0 0 20px rgba(30, 200, 176, 0.55),
    0 0 48px rgba(30, 200, 176, 0.25);
  animation: none;
}

/* Effets de texte — titres accueil */
.home .text-shine {
  background: linear-gradient(
    105deg,
    var(--foam) 0%,
    var(--foam) 40%,
    #7ef0dc 50%,
    var(--foam) 60%,
    var(--foam) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: marquee-shimmer 4.5s linear infinite;
}

.home .section-head.is-in .text-shine,
.home .split-copy.is-in .text-shine,
.home .cta-inner.is-in .text-shine {
  animation: marquee-shimmer 4.5s linear infinite;
}

.home .text-glow-word {
  color: var(--teal);
  text-shadow: 0 0 24px rgba(30, 200, 176, 0.35);
  animation: text-soft-glow 2.8s ease-in-out infinite;
}

.home .eyebrow {
  position: relative;
}

.home .section-head.is-in .eyebrow,
.home .split-copy.is-in .eyebrow {
  animation: eyebrow-flash 2.4s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Impact counters */
.home .impact {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.home .impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.home .impact-item {
  padding: 1.5rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(232, 241, 244, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s;
}

.home .impact-item.is-in {
  animation: impact-pop 0.7s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

.home .impact-item:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 200, 176, 0.45);
  box-shadow: 0 18px 40px rgba(30, 200, 176, 0.12);
}

.home .impact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.home .impact-item p {
  color: var(--mist);
  font-size: 0.95rem;
}

/* Split image cinematic */
.home .split-visual {
  overflow: hidden;
}

.home .split-visual.reveal {
  filter: none;
  transform: none;
  opacity: 1;
}

.home .split-visual img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.15);
  transition: clip-path 1.15s var(--ease), transform 1.4s var(--ease), filter 0.5s;
}

.home .split-visual.is-in img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* Project media curtain */
.home .project-media {
  overflow: hidden;
}

.home .project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.home .project.is-in .project-media::before {
  animation: curtain 0.9s var(--ease) forwards;
}

.home .project.is-in .project-media img {
  animation: img-after-curtain 0.85s var(--ease) 0.35s both;
}

.home .project-media {
  position: relative;
}

/* Magnetic buttons feedback */
.home .btn-primary.is-magnet {
  transition: transform 0.2s var(--ease);
}

@keyframes splash-orb {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 0.55;
    transform: scale(1);
  }
}

@keyframes splash-shine {
  to {
    transform: translateX(40%) rotate(8deg);
  }
}

@keyframes splash-ring {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splash-char {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-load {
  to {
    width: 100%;
  }
}

@keyframes splash-content-out {
  to {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(8px);
  }
}

@keyframes splash-fade-away {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes hero-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes char-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes word-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-4%, 6%) scale(1.12);
  }
}

@keyframes line-grow {
  to {
    transform: scaleX(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-shimmer {
  0% {
    background-position: 120% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

@keyframes marquee-stroke {
  0%,
  100% {
    -webkit-text-stroke-color: rgba(30, 200, 176, 0.3);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    -webkit-text-stroke-color: rgba(126, 240, 220, 0.75);
    filter: drop-shadow(0 0 10px rgba(30, 200, 176, 0.25));
  }
}

@keyframes marquee-star {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(1.25);
    opacity: 1;
  }
}

@keyframes text-soft-glow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(30, 200, 176, 0.2);
  }
  50% {
    text-shadow: 0 0 28px rgba(30, 200, 176, 0.55);
  }
}

@keyframes eyebrow-flash {
  0%,
  100% {
    opacity: 0.85;
    letter-spacing: 0.16em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}

@keyframes impact-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes curtain {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  55% {
    transform: scaleX(1);
    transform-origin: left;
  }
  56% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes img-after-curtain {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .home .impact-grid {
    grid-template-columns: 1fr;
  }

  .home .hero-orbs span:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .splash {
    display: none !important;
  }

  .home.is-intro {
    overflow: auto;
  }

  .home .hero-media,
  .home .hero-brand .char,
  .home .hero h1 .word > span,
  .home .marquee-track,
  .home .marquee-track span,
  .home .marquee-track span::after,
  .home .text-shine,
  .home .text-glow-word,
  .home .split-visual img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .home .text-shine {
    color: var(--foam);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}
