/* FONTS */
/* SF Pro Text*/
@font-face {
  font-family: "SF Pro Text";
  src: url("./assets/fonts/sf-pro-text_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "SF Pro Text";
  src: url("./assets/fonts/sf-pro-text_regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "SF Pro Text";
  src: url("./assets/fonts/sf-pro-text_semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "SF Pro Text";
  src: url("./assets/fonts/sf-pro-text_semibold-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "SF Pro Icons";
  src: url("./assets/fonts/sf-pro-icons_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "SF Pro Icons";
  src: url("./assets/fonts/sf-pro-icons_semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
/* SF Pro Display */
@font-face {
  font-family: "SF Pro Display";
  src: url("./assets/fonts/sf-pro-display_semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}

:root {
  --font-text: "SF Pro Text";
  --font-display: "SF Pro Display";
  --margin-global: 1.5rem;
  /* Color */
  --blue: #0071e3;
  --white: #fff;
  --purple-light: #f1f0ff;
  --red-light: #ffedf1;
  --orange-light: #fff0e9;
  --grey: #86868b;
  --grey-light: #f5f5f7;
  --off-black: #1d1d1f;
  --beautiful-gradient: linear-gradient(
    115deg,
    #00d0ff 0%,
    #09f 20%,
    #c95eff 42%,
    #ff2569 63%,
    #ff8300 83%,
    #ffb000 100%
  );
  --animation-bezier: cubic-bezier(0, 0, 0.5, 1);
  --animation-timing: 500ms var(--animation-bezier);
}
h1,
h2,
h3 {
  margin: unset;
}
* {
  box-sizing: border-box;
  margin: 0;
}
*::after,
*::before {
  box-sizing: border-box;
}
body {
  font-family: var(--font-text);
  background-color: #fff;
  margin: 0;
  display: flex;
  justify-content: center;
}
strong {
  font-weight: unset;
}
@media (min-width: 38rem) {
  body {
    background-color: #000;
  }
}
.mobile-container {
  width: 100%;
  max-width: 38rem;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden; /* Sécurité anti-débordement */
}

/* Atoms */
a.btn-primary {
  background-color: var(--blue);
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.5px;
  padding: 0.5rem 1.25rem;
  line-height: 1.5;
}

/* Typography */
.title-lg {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--off-black);
}
.title-md {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--off-black);
}
.title-s {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--off-black);
}
.title-xs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--off-black);
}
.text-xl {
  font-family: var(--font-text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.text-md {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.text-grey {
  color: var(--grey);
}

/* Header */
header {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 1rem;
  position: fixed;
  width: 100%;
  margin-top: 1rem;
  max-width: 38rem;
  z-index: 100;
  transform: translateY(-150%);
  transition: transform var(--animation-timing);
}
header.on-screen {
  transform: translateY(0);
}
.header-container {
  border: 1px solid rgba(29, 29, 31, 0.1);
  background: rgba(232, 232, 237, 0.72);
  backdrop-filter: blur(3.5px);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apple-icon {
  font-family: "SF Pro Icons", sans-serif;
  font-style: normal;
}

/* ================================================== */
/* SECTION HERO */
/* ================================================== */
.hero {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  height: 100svh;
  overflow: hidden;
  position: relative;
}
.hero .first-slide,
.hero .second-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}
.hero .first-slide {
  background-color: var(--grey-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.scroll-cta {
  display: flex; /* Aligne SVG et Texte sur la même ligne */
  align-items: center; /* Centre verticalement */
  gap: 0.75rem; /* Espace entre la flèche et le texte */
  color: #000; /* Change la couleur ici (ex: white) */
  cursor: pointer; /* Indique que c'est interactif */
  opacity: 0.8;
  transition: opacity 0.3s;
  margin: 0 auto 1rem auto;
  transition: opacity 0.3s;
  opacity: 0;
  animation: containerAppear 1s ease-out 5s forwards;
}
@keyframes containerAppear {
  from {
    opacity: 0; /* Le bloc arrive du bas */
  }
  to {
    opacity: 0.8; /* On s'arrête à 0.8 (ton niveau d'opacité de base) */
  }
}

.scroll-cta:hover {
  opacity: 1;
}

/* L'animation spécifique sur la flèche */
.scroll-arrow {
  animation: bounceDown 1s infinite ease-in-out;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0); /* Position de départ */
  }
  50% {
    transform: translateY(4px); /* Descend de 6 pixels */
  }
}
.hero .second-slide {
  z-index: 1;
  background: linear-gradient(
    0deg,
    #fff 0%,
    #fff 0.75%,
    #fff 2.92%,
    #fffeff 6.37%,
    #fffdfe 10.97%,
    #fffcfe 16.59%,
    #fff9fd 23.1%,
    #fff6fb 30.37%,
    #fff2fa 38.27%,
    #ffecf7 46.66%,
    #ffe5f4 55.41%,
    #ffddf1 64.39%,
    #ffd2ed 73.47%,
    #ffc6e8 82.52%,
    #ffb8e2 91.41%,
    #ffa8db 100%
  );
  padding: 0 var(--margin-global);
  display: flex;
  flex-direction: column;
  gap: 5rem;
  justify-content: center;
}

.gum-anim-container {
  height: 64.854svh;
  background-image: url(./assets/images/woman-hero.webp);
  background-size: cover;
  background-position: center;
  position: relative;
}
.gum-anim-container .gum {
  position: absolute;
  top: 51.29%;
  left: 50.682%;
  transform: translate(-50%, -50%) scale(0);
}

.hero .second-slide .product-hello .title {
  text-align: center;
  --anim-transform: translateY(10%);
  --anim-opacity: 0;
}
.product-hello .title h1,
.product-hello .title h2 {
  transform: var(--anim-transform);
  opacity: var(--anim-opacity);
  transition: transform var(--animation-timing), opacity var(--animation-timing);
}
.product-hello .title h2 {
  background: linear-gradient(0deg, #dc439d 0%, #db0e87 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1rem;
}
.hero .second-slide.reveal .product-hello .title {
  --anim-transform: translateY(0);
  --anim-opacity: 1;
}

.product-hello .product-photos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  --scale-anim: 0.9;
  --translate-anim: 50%;
  --opacity-anim: 0;
}
.second-slide.reveal .product-hello .product-photos {
  --scale-anim: 1;
  --translate-anim: 0;
  --opacity-anim: 1;
}
.product-hello .product-photos img {
  width: 100%;
}
.product-hello .product-photos div {
  opacity: var(--opacity-anim);
  transition: transform var(--animation-timing), opacity var(--animation-timing);
}
.product-hello .product-photos .first {
  width: 50%;
  height: 50%;
  margin: 0 calc(-1 * 28.5%);
  z-index: 3;
  position: relative;
  aspect-ratio: 1/1;
  transform: scale(var(--scale-anim));
  transition: opacity 200ms var(--animation-bezier),
    scale 500ms var(--animation-bezier);
}
/* Flous colorés derrière les fruits */
.product-hello .product-photos .strawberry-wrapper::before,
.product-hello .product-photos .strawberry-wrapper::after {
  display: block;
  content: "";
  position: absolute;
  background-color: rgba(125, 48, 66, 0.7);
  width: 17%;
  height: 85%;
  border-radius: 99%;
  filter: blur(12px);
  z-index: -1;
  top: 50%;
}
.product-hello .product-photos .strawberry-wrapper::before {
  left: 0;
  transform: translateX(-10%) translateY(-50%);
}
.product-hello .product-photos .strawberry-wrapper::after {
  right: 0;
  transform: translateX(-3%) translateY(-50%);
}

.product-hello .product-photos .second {
  width: 43%;
  height: 50%;
  z-index: 2;
  aspect-ratio: 1/1;
}
.product-hello .product-photos .tangerine-wrapper::after {
  display: block;
  content: "";
  position: absolute;
  background-color: rgba(174, 84, 55, 0.7);
  width: 17%;
  height: 85%;
  border-radius: 99%;
  filter: blur(12px);
  z-index: -1;
  top: 50%;
  right: 0;
  transform: translateX(-3%) translateY(-50%);
}
.product-hello .product-photos .grape-wrapper::before {
  display: block;
  content: "";
  position: absolute;
  background-color: rgba(55, 53, 78, 0.7);
  width: 17%;
  height: 85%;
  border-radius: 99%;
  filter: blur(12px);
  z-index: -1;
  top: 50%;
  left: 0;
  transform: translateX(-3%) translateY(-50%);
}
.product-hello .product-photos .third {
  width: 37%;
  height: 50%;
  margin: 0 calc(-1 * 25.5%);
  z-index: 1;
  aspect-ratio: 1/1;
}

.product-hello .product-photos .grape-wrapper {
  transform: scale(var(--scale-anim)) translateX(var(--translate-anim));
  transition-delay: 200ms;
}
.product-hello .product-photos .blueberry-wrapper {
  transform: scale(var(--scale-anim)) translateX(var(--translate-anim));
  transition-delay: 300ms;
}
.product-hello .product-photos .tangerine-wrapper {
  transform: scale(var(--scale-anim))
    translateX(calc(-1 * var(--translate-anim)));
  transition-delay: 200ms;
}
.product-hello .product-photos .lime-wrapper {
  transform: scale(var(--scale-anim))
    translateX(calc(-1 * var(--translate-anim)));
  transition-delay: 300ms;
}

.hero .second-slide h3 {
  opacity: 0;
  transform: translateY(10%);
  transition: var(--animation-timing);
}
.hero .second-slide.reveal h3 {
  opacity: 1;
  transform: translateY(0);
}
.hero .second-slide .buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(-10%);
  transition: var(--animation-timing);
}
.hero .second-slide.reveal .buy {
  opacity: 1;
  transform: translateY(0);
}

/* Innovations carousel */
.innovations {
  position: relative;
  padding-bottom: 6rem;
}
.best-point-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  height: 30rem;
  background-color: var(--card-bg);
  z-index: 1;
  padding: 2rem;
}
.card-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.waves-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.w-1 {
  width: 13rem;
  height: 13rem;
  z-index: 4;
  border: 0.5px solid var(--white);
  background: radial-gradient(
    50% 50% at 50% 50%,
    #f1f0ff 80.37%,
    rgba(255, 255, 255, 0.5) 100%
  );
}
.w-2 {
  width: 25rem;
  height: 25rem;
  z-index: 3;
  border: 0.5px solid var(--white);
  background: radial-gradient(
    50% 50% at 50% 50%,
    #f1f0ff 84.9%,
    rgba(255, 255, 255, 0.5) 100%
  );
}
.w-3 {
  width: 43.75rem;
  height: 43.75rem;
  z-index: 2;
  border: 0.5px solid var(--white);
  background: radial-gradient(
    50% 50% at 50% 50%,
    #f1f0ff 90.48%,
    rgba(255, 255, 255, 0.5) 100%
  );
}
.w-4 {
  width: 52.25rem;
  height: 52.25rem;
  z-index: 1;
  border: 0.5px solid var(--white);
  background: radial-gradient(
    50% 50% at 50% 50%,
    #f1f0ff 94.62%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

@keyframes bloomEffect {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.splide__slide.played .wave {
  animation: bloomEffect 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.w-1 {
  animation-delay: 0s;
}
.w-2 {
  animation-delay: 0.4s;
}
.w-3 {
  animation-delay: 0.8s;
}
.w-4 {
  animation-delay: 1.2s;
}

.best-point-card img {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.splide__slide.played .best-point-card img {
  animation: fadeInUp var(--animation-timing) forwards;
  animation-delay: 0;
}
.battery-charge {
  transform: translateX(-150px);
  opacity: 0;
  transition: opacity 0.2s;
}
.wiper {
  transition: width 2s var(--animation-bezier);
  will-change: width;
}
.splide__slide.played .wiper {
  width: 200px;
}
.splide__slide.played .battery-charge {
  animation: fillBattery 2s var(--animation-bezier) forwards;
}

.innovations .carousel-control {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  position: sticky;
  justify-content: center;
  bottom: 2rem;
  left: 0;
}
.carousel-control .splide__toggle.best-point {
  background: rgba(232, 232, 237, 0.7);
  border: 0.5px rgba(29, 29, 31, 0.05);
  width: 3.5rem;
  height: 3.5rem;
  color: var(--off-black);
  padding: 0;
  border-radius: 99%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-control .splide__toggle.best-point > span {
  height: 1.5rem;
}
.carousel-control .splide__pagination {
  padding: 0 1.5rem !important;
  bottom: 0;
  position: relative;
  right: 0;
  z-index: 1;
  background: rgba(232, 232, 237, 0.7);
  border: 0.5px rgba(29, 29, 31, 0.05);
  height: 3.5rem;
  color: var(--off-black);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.11);
  backdrop-filter: blur(7px);
}
.carousel-control .splide__pagination > li > button {
  margin: 0;
  height: 0.5rem;
  width: 0.5rem;
  background-color: rgba(29, 29, 31, 0.6);
  border-radius: 999px;
  transition: width 300ms var(--animation-bezier);
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.11);
  backdrop-filter: blur(7px);
}
.carousel-control .splide__pagination > li > button.is-active {
  transform: unset;
  width: 3rem;
  overflow: hidden;
}
@keyframes fillProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
.carousel-control .splide__pagination > li > button.is-active::before {
  content: "";
  display: block;
  height: 100%;
  background-color: var(--off-black);
  border-radius: 999px;
  width: 0%;
  animation: fillProgress 5s linear forwards;
}

/* ================================================== */
/* SECTION SEQUENCE (CORRECTION ICI) */
/* ================================================== */
.sequence-section {
  height: 100vh; /* CORRECTION : On laisse à 100vh, c'est GSAP qui épingle */
  width: 100%;
  background-color: #000;
  position: relative; /* CORRECTION : Pas de Sticky ici */
  overflow: hidden;
  z-index: 5;
}

.sticky-wrapper {
  position: relative; /* CORRECTION : Pas de Sticky ici */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#sequence-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.sequence-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  text-align: center;
  color: white;
  margin: 0 var(--margin-global);
}
.step-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.step-text.is-active {
  opacity: 1;
}

/* ================================================== */
/* SECTION PRESENTATION FLOWS (CORRECTION ICI) */
/* ================================================== */
.presentation-flows {
  background-color: var(--off-black);
  color: var(--grey);
  padding: 4rem var(--margin-global);
  position: relative; /* Indispensable */
  z-index: 6; /* Doit être au-dessus du canvas scrollé */
}

.presentation-flows .cards-container {
  transform: translateY(3%);
  opacity: 0;
  transition: transform var(--animation-timing), opacity var(--animation-timing);
}
.presentation-flows.done .cards-container {
  transform: translateY(0);
  opacity: 1;
}
.presentation-flows .flow-card {
  margin: 3rem 0;
}
.presentation-flows .flow-card svg {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.presentation-flows .flow-card strong {
  color: var(--white);
}

/* ================================================== */
/* SECTION FLAVORS */
/* ================================================== */
.flavors {
  padding: 8rem var(--margin-global);
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative; /* Indispensable */
  z-index: 10; /* Le plus haut pour couvrir le reste */
}

.flavors .images-container {
  position: relative;
  height: 10rem;
  margin: 2rem auto;
}
.flavors .images-container img {
  width: 10rem;
  height: 10rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--animation-timing);
}
.flavors .images-container img.active {
  z-index: 2;
  opacity: 1;
}

.flavors .text-container {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.flavors .text-container h3 {
  --text-color: linear-gradient(90deg, #000000 0%, #ffffff 100%);
  opacity: 0.3;
  transition: opacity var(--animation-timing);
}
.flavors .text-container h3.active {
  background: var(--text-color);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
}
/* Processor section */
.processor {
  text-align: center;
}
.processor h2,
.processor h3,
.processor p {
  margin: 0 var(--margin-global);
}
.processor h2 {
  background: var(--beautiful-gradient);
  background-clip: text;
}
.processor h2 strong {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.processor video {
  width: 100%;
}
.processor p {
  color: var(--grey);
}
.processor p strong {
  color: var(--off-black);
}

/* ================================================== */
/* SECTION BIOMESH (Design + Animation) */
/* ================================================== */

.biomesh {
  /* --- TA PARTIE (Design) --- */
  padding: 8rem var(--margin-global);
  text-align: center;
  background-color: #ffffff; /* Fond blanc */

  /* --- MA PARTIE (Mécanique obligatoire) --- */
  height: 100vh; /* Force la hauteur écran pour le "Pin" */
  width: 100%;
  position: relative; /* Référence pour les éléments absolus */
  overflow: hidden; /* Cache ce qui dépasse pendant le zoom */
  z-index: 20; /* Passe au-dessus des sections précédentes */

  /* Flexbox pour gérer le Header en haut */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- LE HEADER (Titre) --- */
.biomesh-header {
  position: relative;
  z-index: 10;
  /* On garde ton padding du parent pour le positionner */
}

/* Tes dégradés (Je les ai bien remis) */
.biomesh h2 {
  /* Si tu as une variable --beautiful-gradient définie ailleurs */
  background: var(
    --beautiful-gradient,
    linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  /* Fallback couleur si var pas chargée */
  color: var(--off-black);
}

.biomesh h2 strong {
  /* Ton style pour le mot "créative" */
  background: linear-gradient(
    90deg,
    #ff2569 0%,
    #ff8300 100%
  ); /* Exemple de dégradé vif */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LA SCÈNE (Zone d'animation) --- */
.biomesh-stage {
  position: absolute; /* Se superpose à toute la section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permet de cliquer au travers */
  z-index: 5;
}

/* --- LE PRODUIT --- */
.biomesh-product {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrage parfait initial */
  z-index: 5;

  /* Ombre portée pour le réalisme (optionnel mais recommandé) */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.biomesh img {
  /* TES DIMENSIONS */
  width: 16rem;
  height: 16rem;

  /* MES AJOUTS TECHNIQUES */
  object-fit: contain;
  display: block;
}

/* --- LE NARRATIF (Textes) --- */
.biomesh-narrative {
  position: absolute;

  /* 1. On définit la "zone" disponible */
  top: 15vh; /* Commence un peu sous le titre (ajuste si besoin) */
  bottom: 30vh; /* S'arrête pile au-dessus de l'image (quand elle est en bas) */

  /* 2. On prend toute la largeur */
  left: 0;
  width: 100%;
  padding: 0 1rem;

  /* 3. On centre le texte DANS cette zone spécifique */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centre verticalement dans l'espace libre */
  align-items: center; /* Centre horizontalement */

  z-index: 6;
  pointer-events: none; /* Pour ne pas bloquer le scroll */
}

.biomesh-narrative p {
  /* Superposition des textes les uns sur les autres */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - var(--margin-global));
  margin: 0;

  /* État initial : Caché */
  opacity: 0;

  /* Style du texte */
  color: var(--off-black);
  font-weight: 600;
}

/* --- Structure de base --- */
.battery {
  padding: 0 var(--margin-global);
  position: relative;
  height: 100svh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; /* Centre tout, y compris le popup */
  overflow: hidden;
}

.battery img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.battery img.day {
  z-index: 1;
}
.battery img.night {
  z-index: 2;
  opacity: 0;
} /* Nuit invisible au début */

.battery .title {
  position: relative;
  z-index: 3;
  transition: opacity 0.5s ease; /* Pour disparaître en douceur */
}

/* --- Le Conteneur Stats (Popup) --- */
.stats-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;

  /* État initial : Caché et sans flou */
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px);
  transition: all 0.5s ease;
}

/* --- Le Cercle SVG --- */
.stats-container svg {
  width: 100%; /* Taille du cercle */
  height: 100%;
  transform: rotate(-90deg); /* On tourne pour commencer en haut */
}

.circle-progress {
  stroke-dasharray: 283; /* 2 * PI * 45 ≈ 283 */
  stroke-dashoffset: 283; /* Pleinement décalé = invisible */
  transition: stroke-dashoffset 1.5s ease-out;
  transition-delay: 0.2s; /* Petit délai pour attendre l'arrivée du flou */
}

/* --- Contenu Texte du Cercle --- */
.stats-container .circle-wrap {
  position: relative;
  width: calc(100% - var(--margin-global));
  aspect-ratio: 1/1;
}
.stats-container .stats-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.stats-content .number {
  font-size: 6.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* Empêche les sauts pendant le comptage */
}

/* ====== L'ÉTAT ACTIVÉ (Ajouté par JS) ====== */
.battery.show-stats .stats-container {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px); /* Le flou s'active */
}

.battery.show-stats .title {
  opacity: 0; /* Le titre original disparaît */
}

.battery.show-stats .circle-progress {
  stroke-dashoffset: 0; /* Le cercle se remplit */
}

/* Section charge */
.charge {
  margin: 4rem var(--margin-global);
  text-align: center;
}
.charge .title {
  margin-bottom: -2px;
}
.charge h2 {
  background: linear-gradient(90deg, #00954a 0%, #04de71 28.85%, #00ff80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--off-black);
}
.charge h2 strong {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.charge .echo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}
.echo span {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 1s var(--animation-bezier),
    transform 1s var(--animation-bezier);
  /* Calcule le délai automatiquement */
  transition-delay: calc(0.3s * var(--i));
}
.charge.done .echo span {
  opacity: 1;
  transform: scale(1);
}
.charge .image-container {
  position: relative;
  margin: 2rem 0;
}
.charge img {
  width: 15rem;
}
.charge img.first-plan {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s var(--animation-bezier);
  transition-delay: 3s;
}
.charge.done img.first-plan {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 1s var(--animation-bezier);
}
.charge .big-number {
  margin-top: 2rem;
}
.charge .big-number p {
  display: flex;
  flex-direction: column;
}
.charge .big-number p span {
  background: linear-gradient(90deg, #00954a 0%, #04de71 28.85%, #00ff80 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Section ecology */
.ecology {
  background-color: var(--grey-light);
  padding: 6rem 0;
}
.ecology .splide__track {
  margin: 3rem 0;
}
.ecology .card {
  background: var(--white);
  padding: 1.5rem 1.5rem 4.5rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 102px 29px 0 rgba(31, 31, 31, 0),
    0 66px 26px 0 rgba(31, 31, 31, 0), 0 37px 22px 0 rgba(31, 31, 31, 0),
    0 16px 16px 0 rgba(31, 31, 31, 0), 0 4px 9px 0 rgba(31, 31, 31, 0);
}
.ecology .card svg {
  width: 2rem;
  height: 2rem;
  color: var(--argument-color);
  margin-bottom: 0.5rem;
}
.ecology .card h3 strong {
  color: var(--argument-color);
}
.ecology .splide__arrows {
  display: flex;
  justify-content: end;
  gap: 1rem;
}
.ecology .splide__arrow {
  background-color: #d2d2d7;
  position: static;
  width: 2rem;
  height: 2rem;
  transform: unset;
  opacity: 1;
}
.ecology .splide__arrow:disabled {
  opacity: 0.4;
}
.ecology .splide__arrow--prev svg {
  transform: unset;
}
.ecology .splide__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(0, 0, 0, 0.56);
}
footer {
  background-color: var(--off-black);
  color: var(--white);
  padding: 6rem var(--margin-global);
  text-align: center;
}
