/* ============================================================
   GBIN — Green Business Innovation Network
   EURL Green Incubator · Charte graphique
   ============================================================ */

:root {
  /* Verts */
  --emerald: #0F4C3A;
  --emerald-600: #135a44;
  --emerald-50: #eaf3ee;
  --sage: #88B04B;
  --sage-soft: #A3C9A8;

  /* Bleus (accent / rupture) */
  --ocean: #1D4ED8;
  --ocean-600: #1a44bd;
  --navy: #0A2540;

  /* Neutres */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #eef2f6;
  --gray-200: #e2e8f0;
  --ink: #0F172A;
  --muted: #475569;

  /* Système */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 76, 58, .18);
  --container: 1160px;
  --header-h: 74px;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--ocean);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .82em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.btn-primary { background: var(--ocean); color: #fff; box-shadow: 0 8px 22px rgba(29, 78, 216, .30); }
.btn-primary:hover { background: var(--ocean-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29, 78, 216, .38); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .6em 1.15em; font-size: .92rem; }
.btn-lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn-xl { padding: 1.15em 2.4em; font-size: 1.18rem; }
.btn-note { font-weight: 500; opacity: .8; font-size: .85em; }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage);
  margin-bottom: .7rem;
}
.eyebrow-light { color: var(--sage-soft); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-200); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--emerald); }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a { padding: .55em .8em; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .15s, background .15s; }
.nav-menu > li > a:hover { color: var(--emerald); background: var(--emerald-50); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: linear-gradient(155deg, var(--emerald) 0%, #0c3f30 45%, var(--navy) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 460px; height: 460px; background: var(--sage); top: -120px; right: -100px; opacity: .35; }
.blob-2 { width: 380px; height: 380px; background: var(--ocean); bottom: -140px; left: -80px; opacity: .40; }
.blob-3 { width: 520px; height: 520px; background: var(--ocean); top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .28; }

.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.86); max-width: 660px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 2rem; color: var(--sage-soft); line-height: 1; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: .3rem; }

/* ============================================================
   SECTIONS génériques
   ============================================================ */
.section { padding: 88px 0; }
.section-tint { background: var(--gray-50); border-block: 1px solid var(--gray-200); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .8rem; color: var(--ink); }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.1rem; }
.about-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.4rem; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: .8rem; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald-50); color: var(--emerald);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* Orbit visuel */
.about-card { display: grid; place-items: center; }
.orbit {
  position: relative; width: 320px; height: 320px; max-width: 100%;
  border-radius: 50%; border: 1px dashed var(--sage-soft);
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, var(--emerald-50), transparent 62%);
}
.orbit-core {
  width: 108px; height: 108px; border-radius: 50%;
  background: linear-gradient(150deg, var(--emerald), var(--navy));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  box-shadow: var(--shadow-md);
}
.orbit-node {
  position: absolute; background: #fff; color: var(--emerald);
  font-size: .82rem; font-weight: 600; padding: .4em .9em; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); white-space: nowrap;
}
.orbit-node.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 28%; right: -24px; }
.orbit-node.n3 { bottom: 22%; right: -14px; }
.orbit-node.n4 { bottom: 22%; left: -20px; }
.orbit-node.n5 { top: 28%; left: -34px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--sage));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 1.9rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 4px; color: var(--ink); }
.service-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ocean); background: rgba(29,78,216,.08);
  padding: .25em .7em; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.service-card > p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.service-cta {
  font-family: var(--font-display); font-weight: 600; color: var(--emerald);
  display: inline-flex; align-items: center; gap: 6px; font-size: .96rem;
}
.service-cta span { transition: transform .2s; }
.service-cta:hover { color: var(--ocean); }
.service-cta:hover span { transform: translateX(4px); }

.service-card-cta {
  background: linear-gradient(155deg, var(--emerald), var(--navy)); color: #fff;
  border: none; justify-content: center; align-items: flex-start; gap: 14px;
}
.service-card-cta::before { display: none; }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(255,255,255,.82); flex: none; }
.service-card-cta:hover { transform: translateY(-6px); }

/* ---------- Actualités / LinkedIn ---------- */
.linkedin-feed { min-height: 120px; }
.feed-fallback {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: var(--radius);
  padding: 48px 32px;
}
.feed-fallback-icon { color: #0A66C2; display: grid; place-items: center; margin-bottom: 14px; }
.feed-fallback h3 { font-size: 1.3rem; margin-bottom: .6rem; color: var(--ink); }
.feed-fallback p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Réseau GBIN ---------- */
.network {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--emerald) 100%);
  padding: 96px 0;
}
.network-bg { position: absolute; inset: 0; z-index: 0; }
.network-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.network h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.1rem; }
.network-lead { font-size: 1.14rem; color: rgba(255,255,255,.86); margin-bottom: 2.2rem; }
.privacy-note {
  margin-top: 1.8rem; font-size: .92rem; color: rgba(255,255,255,.75);
  max-width: 620px; margin-inline: auto; line-height: 1.6;
}
.privacy-note strong { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-name { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer-tag { font-size: .94rem; color: #94a3b8; max-width: 260px; }
.footer-col h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-family: var(--font-display); }
.footer-col ul li { margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: var(--sage-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem; color: #94a3b8;
}

/* ============================================================
   Animations d'apparition
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4) { transition-delay: .06s; }
.services-grid .reveal:nth-child(5) { transition-delay: .12s; }

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

@media (max-width: 780px) {
  /* Menu mobile */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
    z-index: 120;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; margin-inline: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 22px 26px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { display: block; padding: .8em .4em; border-radius: 8px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 18px 28px; }
  .orbit { width: 260px; height: 260px; }
}

/* ============================================================
   Préférences de mouvement réduit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
