/* ============================================================
   GREEN PRESS DIGITAL — LUXURY WHITE DESIGN SYSTEM
   Fond Blanc Épuré · Typographie Haute Couture · Accents Vert Émeraude
   Animations : GSAP 3 & ScrollTrigger
   ============================================================ */

/* ===== RESET & ROOT TOKENS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette de fond blanc & surfaces claires */
  --bg-primary: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-subtle: #F1F5F9;

  /* Bordures fines élégantes */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.12);
  --border-accent: rgba(16, 185, 129, 0.35);

  /* Typographie & Couleurs de texte */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-accent: #059669;

  /* Accents vert émeraude & feuille fraîche */
  --accent-primary: #059669;
  --accent-light: #10B981;
  --accent-dark: #047857;
  --accent-subtle: rgba(16, 185, 129, 0.08);
  --accent-glow: rgba(16, 185, 129, 0.2);

  /* Gradients subtils */
  --grad-text: linear-gradient(135deg, #0F172A 30%, #059669 100%);
  --grad-card: #FFFFFF;
  --grad-accent: linear-gradient(135deg, #10B981 0%, #059669 100%);

  /* Ombres aériennes haut de gamme */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 40px rgba(16, 185, 129, 0.12);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Typographies */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.35s;

  --nav-h: 84px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Lueur subtile en fond clair */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(5, 150, 105, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grille subtile filigrane sur fond blanc */
.bg-subtle-grid {
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR & SELECTION ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: var(--text-primary);
}

/* ===== STRUCTURE & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section--sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.pill-badge__dot {
  width: 7px;
  height: 7px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent-primary);
}

.num-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border: 1px solid var(--border-accent);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== BOUTONS PREMIUM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
  background: #047857;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== CARTES BLANCHES & EFFETS DE LUMIÈRE ===== */
.card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--dur-base);
}

.card-luxury:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-luxury:hover::before {
  opacity: 1;
}

/* Médias d'images dans cartes */
.card-media {
  width: 100%;
  height: 190px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border-subtle);
  background: #F1F5F9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.card-luxury:hover .card-media img {
  transform: scale(1.06);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
  pointer-events: none;
}

/* ===== NAVIGATION NAVBAR SUR FOND BLANC ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--dur-base) var(--ease-smooth);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo__symbol {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
  transition: transform var(--dur-fast);
}

.brand-logo:hover .brand-logo__symbol {
  transform: rotate(-6deg) scale(1.05);
}

.brand-logo__info {
  display: flex;
  flex-direction: column;
}

.brand-logo__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-logo__title span {
  color: var(--accent-primary);
}

.brand-logo__caption {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--r-full);
  transition: all var(--dur-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-dark);
  background: var(--accent-subtle);
}

.nav-menu a.active {
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-fast);
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer blanc */
.mobile-nav-panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-smooth);
}

.mobile-nav-panel.open {
  transform: translateY(0);
}

.mobile-nav-panel a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  color: var(--accent-primary);
}

/* ===== BANDEAU DÉFILANT SUR FOND BLANC ===== */
.ticker-wrap {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-move 40s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-node {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-node span.icon {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.ticker-node span.dot {
  color: var(--border-light);
}

/* ===== PAGE HERO INTÉRIEURE ===== */
.page-hero {
  padding: calc(var(--nav-h) + 50px) 0 50px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.breadcrumb-nav a:hover {
  color: var(--accent-primary);
}

.breadcrumb-nav .sep {
  opacity: 0.4;
}

.breadcrumb-nav .current {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ===== SERVICES BENTO ===== */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--text-muted);
}

.service-card:hover .tag-pill {
  color: var(--accent-dark);
  border-color: var(--border-accent);
  background: var(--accent-subtle);
}

/* ===== METRICS ROW ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-item {
  text-align: center;
  padding: 32px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast);
}

.metric-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== FOOTER NOBLE & ANCRÉ ===== */
.footer-main {
  background: #0B1120;
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 36px;
  position: relative;
  z-index: 1;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-bio {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.8;
  margin: 18px 0 24px;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--dur-fast);
}

.social-circle:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-head {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94A3B8;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748B;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #64748B;
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: #CBD5E1;
}

/* ===== ANIMATIONS & GSAP PREPARATION ===== */
.reveal {
  opacity: 1; /* Fallback par défaut si JS est désactivé */
}

/* Bouton Back-to-Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--dur-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

/* ===== BOUTON FLOTTANT WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  height: 52px;
  padding: 0 20px 0 14px;
  border-radius: var(--r-full);
  background: #25D366;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  z-index: 998;
  transition: all var(--dur-base) var(--ease-smooth);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: #20BA5A;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    bottom: 24px;
    left: 20px;
  }
  .whatsapp-float span {
    display: none;
  }
  .back-to-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0F172A;
  border: 1px solid var(--accent-primary);
  padding: 12px 24px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all var(--dur-base);
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .services-bento {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 70px 0;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
