/* =============================================================
   APBS Groupe — demos.apbs-groupe.com
   style.css — Styles communs à toutes les pages
   ============================================================= */

/* --- Variables CSS et reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00dc00;
  --black: #0a0a0a;
  --dark: #111111;
  --card: #161616;
  --card2: #1c1c1c;
  --border: rgba(0, 220, 0, 0.15);
  --border-strong: rgba(0, 220, 0, 0.35);
  --text: #f0f0f0;
  --muted: #888;
  --font-main: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Navigation sticky --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-divider { width: 1px; height: 24px; background: var(--border-strong); }
.nav-product img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--green); background: rgba(0, 220, 0, .07); }
.nav-cta {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
  margin-left: 8px;
}
.nav-cta:hover { background: #00ff00; transform: translateY(-1px); }

/* --- Boutons --- */
.btn-primary {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #00ff00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 220, 0, .25);
}
.btn-secondary {
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .15);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* --- Hero — partagé entre toutes les pages produit --- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 100px;
  position: relative;
  overflow: hidden;
}

/* Motif de points en grille — texture subtile sur tout le hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,220,0,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Halo vert en haut à droite */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 220, 0, .10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Le contenu du hero passe au-dessus du motif */
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 220, 0, .1);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 32px;
  width: fit-content;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  max-width: 900px;
}
.hero-title .accent { color: var(--green); }
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 32px;
  max-width: 700px;
}
.hero-desc {
  font-size: 18px;
  color: #aaa;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- Bande logos / certifications --- */
.partners {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partners-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.partners-logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.partners-logos img { height: 32px; width: auto; opacity: .85; transition: opacity .2s; }
.partners-logos img:hover { opacity: 1; }

/* --- Sections de contenu génériques --- */
.section { padding: 96px 40px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  max-width: 800px;
}
.section-title .accent { color: var(--green); }
.section-desc {
  font-size: 18px;
  color: #aaa;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* --- Section CTA partagée (appel à l'action partenaire) --- */
.cta-section {
  padding: 96px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 220, 0, .08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: 24px;
  position: relative;
}
.cta-title .accent { color: var(--green); }
.cta-desc {
  font-size: 18px;
  color: #999;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
  position: relative;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-left img { height: 28px; width: auto; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-right { display: flex; align-items: center; gap: 16px; }
.footer-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: var(--green); }

/* --- Animations --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: .5; }
}

/* Animation d'entrée du hero — chaque enfant direct s'anime */
.hero > * { animation: fadeInUp .6s ease both; }
.hero > *:nth-child(1) { animation-delay: .1s; }
.hero > *:nth-child(2) { animation-delay: .2s; }
.hero > *:nth-child(3) { animation-delay: .3s; }
.hero > *:nth-child(4) { animation-delay: .4s; }
.hero > *:nth-child(5) { animation-delay: .5s; }
.hero > *:nth-child(6) { animation-delay: .6s; }
.hero > *:nth-child(7) { animation-delay: .7s; }

/* Indicateur de scroll en bas du hero */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  animation: fadeInUp 1s 1s ease both;
}
.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s infinite;
}

/* --- Responsive mobile (max 768px) --- */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  /* Le menu nav est masqué sur mobile — à remplacer par un menu hamburger si besoin */
  .nav-links { display: none; }
  .hero { padding: 60px 20px 60px; }
  .section { padding: 60px 20px; }
  .cta-section { padding: 60px 20px; }
  .hero-stats { gap: 24px; }
  .partners { padding: 20px; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
