@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ═══════════════════════════════════════════════════
   TSP+ — Core Design System
   Mode: Core System (fond clair, accents verts)
═══════════════════════════════════════════════════ */

:root {
  --black:       #1C2526;
  --green:       #27AE60;
  --green-light: #2ECC71;
  --green-pale:  #E8F8EF;
  --green-mid:   #D1F0DF;
  --white:       #FFFFFF;
  --off-white:   #F7F8F6;
  --grey-light:  #EFEFEF;
  --grey:        #8A9199;
  --grey-dark:   #4A5568;
  --border:      #E2E8E4;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(28,37,38,0.08);
  --shadow-lg: 0 12px 48px rgba(28,37,38,0.12);

  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(247,248,246,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-dark);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}
/* Hamburger → X animation */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── LAYOUT ─────────────────────────────────────── */
.page-wrapper { padding-top: var(--nav-height); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

section { padding: 96px 0; }

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-dark);
  max-width: 580px;
  line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39,174,96,0.3);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: #2d3748;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}
/* Global btn-white — works on any bg color */
.btn-white {
  background: var(--white);
  color: var(--green);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-mid);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* ── TAG / BADGE ─────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tag-green { background: var(--green-pale); color: var(--green); }
.tag-dark  { background: var(--black); color: var(--white); }
.tag-grey  { background: var(--grey-light); color: var(--grey-dark); }

/* ── GREEN ACCENT BAR ────────────────────────────── */
.accent-bar {
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  display: block;
}
.footer-logo span { color: var(--green); }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(39,174,96,0); }
}

.animate-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--off-white);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(28,37,38,0.08);
    z-index: 99;
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── ACCESSIBILITY ───────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* Focus visible — keyboard navigation */
:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Remove outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .animate-up { opacity: 1; animation: none; }
}

/* ── PRINT ───────────────────────────────────────── */
@media print {
  .nav, footer, .cta-section, .cta-offre, .cta-vision,
  .cta-secteurs, .cta-protocole, .cta-fondateur { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  h1, h2, h3 { page-break-after: avoid; }
  .card, .sector-card, .pitch-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: black; text-decoration: underline; }
  .page-wrapper { padding-top: 0; }
}


.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
