/* =====================
   FLEXISTRAP — CSS PARTAGÉ
   style.css
===================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #080f09;
  --bg2:       #0d1a0f;
  --bg3:       #111e13;
  --green:     #4ade80;
  --green-dim: #2d7a4f;
  --white:     #ffffff;
  --gray:      rgba(255,255,255,0.55);
  --gray-dim:  rgba(255,255,255,0.12);
  --radius:    14px;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================== NAV ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(8,15,9,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--gray-dim);
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green) !important;
  color: var(--bg) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover {
  box-shadow: 0 8px 24px rgba(74,222,128,0.35) !important;
  color: var(--bg) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  background: none;
  border: none;
}

/* ===================== BOUTONS ===================== */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74,222,128,0.4);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--gray-dim);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}

/* ===================== SECTIONS ===================== */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
}
.section-tag.visible { opacity: 1; transform: translateY(0); }

h2.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}
h2.section-title.visible { opacity: 1; transform: translateY(0); }

.section-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.2s;
}
.section-sub.visible { opacity: 1; transform: translateY(0); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--gray-dim);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--green); }
.footer-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--green); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-dim);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* ── Word-by-word reveal ── */
.word-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-split .word.go {
  opacity: 1;
  transform: translateY(0);
}
@keyframes lineGrow { to { width: 100%; } }
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
