:root {
  --accent-primary: #3B82F6; /* Corrigé avec votre couleur phare TikTok */
  --accent-green: #4ADE80;
  --accent-blue: #3B82F6;
  --accent-purple: #A855F7;
  --accent-yellow: #FACC15;
  --accent-coral: #FF6B6B;
  --dark: #111827; /* gray-900 pour un contraste rétro fort */
  --body: #475569;
  --light-gray: #F8FAFC;
  --border: #E2E8F0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  color: var(--dark);
  line-height: 1.2;
}

/* Pixel font for numbers */
.pixel-number {
  font-family: 'BACKTO1982', sans-serif;
}

/* Pixel art inspired elements */
.pixel-box {
  background: white;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 0 var(--dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pixel-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--dark);
}

.pixel-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 0 var(--dark);
  transition: all 0.15s;
  cursor: pointer;
}

.pixel-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--dark);
}

.pixel-btn-primary {
  background: var(--accent-primary);
  color: white;
}

.pixel-btn-secondary {
  background: white;
  color: var(--dark);
}

.pixel-btn-green {
  background: var(--accent-green);
  color: var(--dark);
}

/* Pixel accent decorations */
.pixel-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: currentColor;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--light-gray);
  border: 2px solid var(--dark);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Hero Base Structure */
.hero-bg {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0.60) 50%, rgba(255,255,255,0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-bg::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.1) 100%);
  }
}

.pixel-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Font Faces Loading */
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--thin.ttf") format("truetype"); font-style: normal; font-weight: 100; font-display: swap; }
@font-face { font-family: 'BACKTO1982'; src: url("../fonts/BACKTO1982.ttf") format("opentype"); font-style: normal; font-weight: normal; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--extralight.ttf") format("truetype"); font-style: normal; font-weight: 200; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--light.ttf") format("truetype"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--semibold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url("../fonts/sora-wght--extrabold.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-thin.ttf") format("truetype"); font-style: normal; font-weight: 100; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-thinitalic.ttf") format("truetype"); font-style: italic; font-weight: 100; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-extralight.ttf") format("truetype"); font-style: normal; font-weight: 200; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-extralightitalic.ttf") format("truetype"); font-style: italic; font-weight: 200; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-light.ttf") format("truetype"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-lightitalic.ttf") format("truetype"); font-style: italic; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-italic.ttf") format("truetype"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-mediumitalic.ttf") format("truetype"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-semibold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-semibolditalic.ttf") format("truetype"); font-style: italic; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-bolditalic.ttf") format("truetype"); font-style: italic; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-extrabold.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-extrabolditalic.ttf") format("truetype"); font-style: italic; font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-black.ttf") format("truetype"); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url("../fonts/montserrat-blackitalic.ttf") format("truetype"); font-style: italic; font-weight: 900; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url("../fonts/pressstart2p-regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

/* Hero Animation Staggering */
#hero-anim > * {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero-anim > *:nth-child(1) { animation-delay: 0.20s; }
#hero-anim > *:nth-child(2) { animation-delay: 0.50s; }
#hero-anim > *:nth-child(3) { animation-delay: 0.70s; }
#hero-anim > *:nth-child(4) { animation-delay: 0.90s; }
#hero-anim > *:nth-child(5) { animation-delay: 1.10s; }

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .img-decor-responsive {
    top: -40px !important;
    left: 15px !important;
    bottom: auto !important;
    width: 80px !important;
  }
}

/* FAQ Section Accordion */
.faq-box {
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 0 var(--dark);
  background: #ffffff;
  overflow: hidden;
}

.faq-box summary {
  list-style: none;
  cursor: pointer;
}
.faq-box summary::-webkit-details-marker {
  display: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-box .faq-icon {
  transition: transform 0.3s ease;
}
.faq-box.is-open .faq-icon {
  transform: rotate(45deg);
}

/* TikTok Feed / About Section */
.story-feed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 550px;
  margin: 0 auto;
}

.story-card {
  background: white;
  border: 4px solid var(--dark);
  box-shadow: 8px 8px 0 0 var(--dark);
  overflow: hidden;
}

.story-toggle {
  display: none;
}

.story-expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.story-more-btn {
  color: var(--body);
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

.story-more-btn:hover {
  text-decoration: underline;
}

.story-toggle:checked ~ .story-expanded-content {
  max-height: 1200px;
  margin-top: 1rem;
}

.story-toggle:checked ~ p .story-more-btn {
  display: none;
}

.justify-between { gap: 16px; }

/* Webflow Hero Background Elements */
.img-abso {
  z-index: 0;
  aspect-ratio: auto;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.coeur-abso-1   { width: 50px;  position: absolute; inset: auto 22% 10% auto; z-index: 2; }
.abso-like      { width: 100px; position: absolute; inset: auto 25% 10% auto; z-index: 2; }
.aboso-share    { width: 120px; position: absolute; inset: auto 14% 15% auto; z-index: 2; }
.com-count-abso { width: 90px;  position: absolute; inset: auto 9% 23% auto;  z-index: 2; }
.coeur-abso-2   { width: 33px;  position: absolute; inset: auto 30% 16% auto; z-index: 2; }
.coeur-abso-3   { width: 29px;  position: absolute; inset: auto 10% 18% auto; z-index: 2; }

@media screen and (max-width: 991px) {
  .coeur-abso-1 { width: 40px; }
  .abso-like { width: 80px; }
  .aboso-share { width: 100px; bottom: 14%; right: 10%; }
  .com-count-abso { bottom: 27%; right: 7%; }
  .coeur-abso-2 { width: 25px; }
  .coeur-abso-3 { width: 25px; right: 8%; }
}

@media screen and (max-width: 767px) {
  .img-abso { object-position: 100% 100%; }
  .abso-like { right: 40%; }
  .aboso-share { bottom: 16%; right: 24%; }
  .com-count-abso { bottom: 15%; right: 49%; }
  .coeur-abso-2 { width: 24px; bottom: 25%; right: 40%; }
  .coeur-abso-3 { width: 24px; right: 13%; }
}

@media screen and (max-width: 479px) {
  .img-abso { object-position: 85% 100%; }
  .coeur-abso-1 { width: 30px; right: 40%; }
  .abso-like, .aboso-share { width: 60px; }
  .com-count-abso { width: 70px; bottom: 17%; right: 50%; }
  .coeur-abso-2 { width: 19px; right: 24%; }
  .coeur-abso-3 { width: 19px; right: 16%; }
}

/* Continuous TikTok Notifications Animation */
.coeur-abso-1, .coeur-abso-2, .coeur-abso-3, 
.com-count-abso, .abso-like, .aboso-share {
  opacity: 0;
  will-change: transform, opacity;
  animation: tiktokBubble 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.coeur-abso-1 { animation-delay: 0.2s; animation-duration: 3.8s; }
.abso-like { animation-delay: 0.8s; animation-duration: 4.2s; }
.coeur-abso-2 { animation-delay: 1.5s; animation-duration: 3.5s; }
.com-count-abso { animation-delay: 2.2s; animation-duration: 4.5s; }
.coeur-abso-3 { animation-delay: 2.8s; animation-duration: 3.9s; }
.coeur-abso-3 { animation-delay: 2.8s; animation-duration: 3.9s; }
.aboso-share { animation-delay: 3.5s; animation-duration: 4.3s; }

@keyframes tiktokBubble {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7) rotate(0deg); 
  }
  
  8% {
    opacity: 1;
    transform: translateY(-10px) scale(1) rotate(-2deg);
  }
  
  50% { opacity: 1; }
  85% { opacity: 1; }
  
  100% {
    opacity: 0;
    transform: translateY(-450px) scale(1) rotate(5deg); /* Légèrement augmenté pour l'envolée */
  }
}

@media screen and (max-width: 767px) {
  @keyframes tiktokBubble {
    0% {
      opacity: 0;
      transform: translateY(0) scale(0.7);
    }
    10% {
      opacity: 1;
      transform: translateY(-10px) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(-480px) scale(0.8); /* Monte haut sur mobile tel demandé */
    }
  }
}