/* style.css - LIVRO Modern Style - Version intégrale */

:root {
  --brand-green: #0f7a3a;
  --brand-green-dark: #0b5c2c;
  --brand-yellow: #f5b301;
  --brand-light: #eaf5ee;
  --dark-blue: #091e13;
  --primary-color: #0f7a3a;
  --secondary-color: #f5b301;
  --text-dark: #1b1b1b;
  --text-muted: #6b7280;
  --code-bg: #0d1b12;
  --border: #e5ecea;
  --shadow: 0 18px 40px rgba(0,0,0,.08);
}

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

section {
  padding: 4.5rem 0;
  width: 100%;
}

/* Typographie & Accents */
.accent {
  color: var(--brand-green);
}

.section-title {
  text-align: center;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.section-title.green {
  color: var(--brand-green);
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  max-width: 760px;
  margin: 0 auto 2.6rem;
}

/* Boutons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-green), #128f44);
  color: #fff !important;
  border-radius: 10px;
  padding: .72rem 1.4rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 24px rgba(15, 122, 58, 0.2);
  transition: all .25s ease;
}

.btn-brand:hover {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 122, 58, 0.3);
}

.btn-brand-outline {
  border: 2px solid var(--brand-green);
  color: var(--brand-green) !important;
  background: transparent;
  border-radius: 10px;
  padding: .7rem 1.4rem;
  font-weight: 600;
  transition: all .25s ease;
}

.btn-brand-outline:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
}

/* Navbar */
.logo {
  height: 48px;
  width: auto;
}

.nav-link-livro {
  font-weight: 500;
  color: var(--text-dark);
  padding: .5rem 1rem !important;
  transition: color .2s ease;
}

.nav-link-livro:hover, 
.nav-link-livro.active {
  color: var(--brand-green) !important;
}

.navbar {
  backdrop-filter: blur(12px);
  transition: box-shadow .3s ease, padding .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.navbar-brand-livro {
  font-weight: 800;
  color: var(--brand-green);
  font-size: 1.6rem;
  letter-spacing: .5px;
  line-height: 1;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top left, rgba(15,122,58,.08), transparent 22%), #fff;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  color: var(--brand-green);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.hero h1 .accent {
  color: var(--brand-yellow);
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 1rem 0 1.8rem;
  max-width: 540px;
  line-height: 1.55;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.hero-badge {
  background: var(--brand-light);
  color: var(--brand-green);
  font-size: .78rem;
  font-weight: 700;
  padding: .34rem .7rem;
  border-radius: 20px;
  transition: transform .25s ease, background .25s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  background: #dff0e4;
}

.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: .55;
  animation: blobFloat 9s ease-in-out infinite;
}

.hero .blob-1 {
  width: 320px;
  height: 320px;
  background: rgba(15,122,58,.16);
  top: -80px;
  left: -60px;
}

.hero .blob-2 {
  width: 260px;
  height: 260px;
  background: rgba(245,179,1,.18);
  top: 40px;
  right: -60px;
}

.hero .blob-3 {
  width: 180px;
  height: 180px;
  background: rgba(15,122,58,.1);
  bottom: -60px;
  left: 40%;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  33% {
    transform: translate(20px,-25px) scale(1.08);
  }
  66% {
    transform: translate(-15px,15px) scale(.95);
  }
}

/* Cards & Animations */
.card-anim {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform, opacity;
}

.card-anim:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,.08);
  border-color: rgba(15,122,58,.18);
}

.transition-hover {
  transition: all 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-5px);
}

/* Sliders Style */
.swiper {
  width: 100%;
  padding-bottom: 50px !important;
}

.swiper-pagination-bullet-active {
  background: var(--brand-green) !important;
}

.swiper-button-next, 
.swiper-button-prev {
  color: var(--brand-green) !important;
}

/* Service Cards */
.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
}

.bg-orange-light {
  background: var(--brand-light);
}

.usecase-card {
  border: 1px solid #e5ecea;
  border-radius: 14px;
  padding: 1.6rem;
  height: 100%;
  background: #fff;
}

.usecase-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: transform .3s ease;
}

.usecase-card:hover .usecase-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Dashboard Mockup */
.dashboard-mockup {
  position: relative;
  background: linear-gradient(135deg, var(--brand-light), #ffffff);
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s ease;
}

.dashboard-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(0,0,0,.12);
}

.dots-pattern {
  position: absolute;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(var(--brand-green) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .18;
  z-index: 0;
}

.dots-pattern.dots-left {
  top: -30px;
  left: -30px;
}

.dots-pattern.dots-right {
  bottom: -30px;
  right: -30px;
}

.floating-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .6rem 1.1rem;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* How it works */
.how-section {
  background: var(--brand-light);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto .8rem;
}

.step-icon {
  width: 90px;
  height: 90px;
  background: #d9ecdf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand-green);
  font-size: 2rem;
  transition: transform .3s ease;
}

.choice-container {
  background: #fff;
}

.choice-box {
  background: #fdfdfd;
  transition: 0.3s;
}

.choice-box:hover {
  background: var(--brand-light);
  border-color: var(--brand-green) !important;
}

.step-arrow {
  color: var(--brand-green);
  font-size: 1.4rem;
  opacity: 0.3;
}

/* API Code window */
.api-section {
  background: #0f6033;
  color: #e6f1ea;
  position: relative;
  overflow: hidden;
}

.api-tag {
  display: inline-block;
  background: rgba(245,179,1,.15);
  color: var(--brand-yellow);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: .78rem;
  animation: tagPulse 2.8s infinite;
}

@keyframes tagPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.code-window {
  background: var(--code-bg);
  border: 1px solid #1c3a26;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .7rem 1rem;
  background: #08160e;
  border-bottom: 1px solid #1c3a26;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.code-body {
  padding: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #cfe8d9;
  line-height: 1.55;
}

.kw { color: #f5b301; }
.str { color: #7ee0a8; }
.prop { color: #8ec5ff; }
.cmt { color: #4f7360; }
.fn { color: #ffb480; }

/* Testimonials */
.why-list {
  padding-left: 0;
  list-style: none;
}

.why-list li {
  padding: .5rem 0;
}

.why-list li i {
  color: var(--brand-green);
  background: var(--brand-light);
  border-radius: 50%;
  padding: 6px;
  margin-right: 10px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}

.quote-icon {
  color: var(--brand-green);
  font-size: 1.6rem;
  margin-bottom: .6rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: .8rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Preloader & Utilities */
#preloader { 
  position: fixed; 
  inset: 0; 
  z-index: 99999; 
  background: #ffffff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: opacity 0.6s ease; 
}

#preloader.done { 
  opacity: 0; 
  visibility: hidden; 
}

.preloader-box-clean { 
  width: 100px; 
  height: auto;
  margin-bottom: 25px;
}

.preloader-img-anim {
  width: 100%;
  height: auto;
  display: block;
  animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
  }
  50% { 
    transform: translateY(-10px) scale(1.05); 
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.1));
  }
}

.preloader-bar { 
  width: 120px; 
  height: 3px; 
  border-radius: 10px; 
  background: #f0f0f0; 
  overflow: hidden; 
}

.preloader-bar span {
  display: block; 
  height: 100%; 
  width: 40%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
  animation: preloaderSlide 1.5s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes prePulse { 
  0%, 100% { transform: scale(1); } 
  50% { transform: scale(1.1); } 
}

#scrollProgress { 
  position: fixed; 
  top: 0; 
  left: 0; 
  height: 3px; 
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow)); 
  z-index: 2000; 
  transition: width .1s; 
}

.btn-ripple { 
  position: absolute; 
  border-radius: 50%; 
  transform: scale(0); 
  background: rgba(255,255,255,.4); 
  animation: rippleAnim .6s forwards; 
}

@keyframes rippleAnim { 
  to { transform: scale(2.6); opacity: 0; } 
}

/* Footer */
footer { 
  background: var(--brand-green); 
  color: #fff; 
  padding: 3rem 0 1.5rem; 
}

footer a { 
  color: #d9ecdf; 
  display: block; 
  padding: .25rem 0; 
  font-size: .95rem; 
}

footer a:hover { 
  color: var(--brand-yellow); 
}

.social-icons a { 
  display: inline-flex; 
  width: 34px; 
  height: 34px; 
  border: 1px solid #fff; 
  border-radius: 50%; 
  align-items: center; 
  justify-content: center; 
  margin-right: 8px; 
  color: #fff; 
}

@media (max-width: 991px) { 
  .navbar-collapse { 
    background: #fff; 
    margin-top: 1rem; 
    padding: 1rem; 
    border-radius: 12px; 
  } 
}

@media (max-width: 768px) { 
  .hero h1 { 
    font-size: 2.1rem; 
  } 
  .step-arrow { 
    display: none; 
  } 
}