/* ═══════════════════════════════════════════════════
   GROUPE PYLVIA — Feuille de style principale
   Charte : vert (croissance) × violet (excellence)
   Design : glassmorphisme + animations douces
   ═══════════════════════════════════════════════════ */

:root {
  --green: #2e8b3d;
  --green-bright: #57b544;
  --green-deep: #1c5726;
  --violet: #8e24aa;
  --violet-deep: #5c1270;
  --ink: #14201a;
  --ink-soft: #46564d;
  --paper: #f4f8f4;
  --white: #ffffff;
  --line: rgba(20, 32, 26, .09);
  --grad: linear-gradient(120deg, var(--green-bright), var(--green) 45%, var(--violet));
  --shadow-sm: 0 2px 10px rgba(20, 32, 26, .06);
  --shadow-md: 0 12px 40px rgba(20, 32, 26, .10);
  --shadow-lg: 0 30px 80px rgba(20, 32, 26, .16);
  --r-md: 18px;
  --r-lg: 28px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ─── Icônes SVG ────────────────────────────── */
.ico    { width: 19px; height: 19px; flex-shrink: 0; }
.ico-lg { width: 26px; height: 26px; flex-shrink: 0; }
.ico-xl { width: 54px; height: 54px; flex-shrink: 0; }

/* ─── Utilitaires glassmorphisme ────────────── */
.glass {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.glass-card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 32px rgba(20, 32, 26, .08);
}
.glass-dark {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* ─── Preloader ─────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, #17301d 0%, #0d1a11 60%, #120a18 100%);
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-word {
  display: flex; gap: .1em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600; letter-spacing: .22em; color: #fff;
}
.preloader-word span {
  opacity: 0; transform: translateY(.6em) rotate(4deg);
  animation: letterUp .7s var(--ease-out) forwards;
  background: linear-gradient(120deg, #a5e88f, #57b544 40%, #c77ddd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preloader-word span:nth-child(1) { animation-delay: .05s }
.preloader-word span:nth-child(2) { animation-delay: .13s }
.preloader-word span:nth-child(3) { animation-delay: .21s }
.preloader-word span:nth-child(4) { animation-delay: .29s }
.preloader-word span:nth-child(5) { animation-delay: .37s }
.preloader-word span:nth-child(6) { animation-delay: .45s }
@keyframes letterUp { to { opacity: 1; transform: none } }
.preloader-bar {
  width: min(240px, 50vw); height: 3px; margin: 28px auto 0;
  background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 0;
  background: var(--grad); border-radius: 99px;
  animation: loadBar 1.1s .2s var(--ease-out) forwards;
}
@keyframes loadBar { to { width: 100% } }

/* ─── Barre de progression ──────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 990;
  height: 3px; width: 0;
  background: var(--grad);
  border-radius: 0 99px 99px 0;
  box-shadow: 0 0 12px rgba(87, 181, 68, .55);
}

/* ─── Header ────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(46, 139, 61, .35);
  transition: transform .4s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text {
  font-weight: 500; font-size: 1.02rem; letter-spacing: .02em;
  color: #fff; transition: color .4s;
}
.brand-text b { font-weight: 800; }
.header.scrolled .brand-text { color: var(--ink); }
.brand-text.light { color: #fff !important; }

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 99px;
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.85); transition: color .3s, background .3s;
}
.header.scrolled .nav-link { color: var(--ink-soft); }
.nav-link:hover { color: var(--green-bright); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.header.scrolled .nav-link.active { color: var(--green); background: rgba(46,139,61,.1); }

/* ─── Boutons ───────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 99px;
  font-family: var(--font-body); font-weight: 600; font-size: .97rem;
  cursor: pointer; border: none;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}
.btn .ico { transition: transform .3s var(--ease-out); }
.btn:hover .ico { transform: translateX(5px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px rgba(46, 139, 61, .35);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 45%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .6s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(46, 139, 61, .45); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-nav { padding: 10px 20px; font-size: .9rem; background: var(--grad); color: #fff; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46,139,61,.4); }
.btn-nav .ico { width: 16px; height: 16px; }

/* ─── Burger ────────────────────────────────── */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto; z-index: 950;
}
.burger span {
  width: 26px; height: 2.5px; border-radius: 2px;
  background: #fff; transition: .35s var(--ease-out);
}
.header.scrolled .burger span { background: var(--ink); }
.burger.open span { background: #fff; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 90px;
  background: radial-gradient(130% 110% at 15% 0%, #1d3a24 0%, #0e1f13 48%, #150b1d 100%);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; top: -140px; right: -80px;
  background: radial-gradient(circle, #8e24aa 0%, transparent 70%); }
.orb-2 { width: 420px; height: 420px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, #2e8b3d 0%, transparent 70%);
  animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; top: 35%; left: 45%;
  background: radial-gradient(circle, #57b544 0%, transparent 70%);
  opacity: .3; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 36px) scale(1.14); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero-layout {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}
.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 99px;
  font-size: .88rem; font-weight: 500; letter-spacing: .04em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(87, 181, 68, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 11px rgba(87, 181, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 181, 68, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -.01em; margin: 26px 0 24px;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(110deg, #a5e88f 0%, #57b544 30%, #d48ae8 65%, #a5e88f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: rgba(255,255,255,.72);
  max-width: 560px; font-weight: 300;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero-stats {
  display: flex; align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  margin-top: 46px;
  padding: 20px clamp(18px, 3vw, 30px);
  border-radius: var(--r-md);
  width: fit-content;
  flex-wrap: wrap;
}
.stat { display: block; }
.stat-line { display: flex; align-items: baseline; }
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 600; line-height: 1.1;
}
.stat-plus { color: var(--green-bright); }
.stat-label {
  display: block;
  font-size: .78rem; color: rgba(255,255,255,.55);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 3px;
}
.stat-sep { width: 1px; height: 44px; background: rgba(255,255,255,.15); }

/* ─── Hero : visuel du siège ────────────────── */
.hero-visual {
  position: relative; width: 100%;
  display: flex; justify-content: center;
}
.hq-frame {
  position: relative; z-index: 2;
  width: min(390px, 92%);
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  padding: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 40%, rgba(142,36,170,.28), rgba(87,181,68,.3));
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.25);
  overflow: hidden;
}
.hq-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 9px);
  transition: transform .8s var(--ease-out);
}
.hq-frame:hover img { transform: scale(1.045); }
.hq-frame.no-photo img { display: none; }
.hq-fallback {
  display: none;
  position: absolute; inset: 10px;
  border-radius: calc(var(--r-lg) - 9px);
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(142,36,170,.35), transparent),
    radial-gradient(70% 60% at 20% 85%, rgba(46,139,61,.4), transparent),
    #16241a;
  color: rgba(255,255,255,.85);
  text-align: center;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-weight: 500; padding: 24px;
}
.hq-fallback small { color: rgba(255,255,255,.5); font-weight: 400; }
.hq-frame.no-photo .hq-fallback { display: flex; }
.hq-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 42%, transparent 55%);
  background-size: 260% 100%;
  animation: frameShine 5.5s ease-in-out infinite;
  border-radius: var(--r-lg);
}
@keyframes frameShine {
  0%, 55%, 100% { background-position: 130% 0; }
  25% { background-position: -60% 0; }
}
.hq-ring {
  position: absolute; z-index: 1;
  width: 118%; aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.14);
  animation: spin 42s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.hq-badge {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  max-width: 250px;
}
.hq-badge .ico { color: var(--green-bright); width: 22px; height: 22px; }
.hq-badge div { display: flex; flex-direction: column; line-height: 1.3; }
.hq-badge strong { font-size: .92rem; font-weight: 700; }
.hq-badge span { font-size: .78rem; color: rgba(255,255,255,.65); }
.hq-badge-top { top: 6%; left: -8%; }
.hq-badge-bottom { bottom: 8%; right: -6%; }

.float-slow { animation: floatSlow 7s ease-in-out infinite alternate; }
@keyframes floatSlow { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.float-a { animation: floatA 5.5s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translateY(0); } to { transform: translateY(-11px); } }
.float-b { animation: floatB 6.5s .8s ease-in-out infinite alternate; }
@keyframes floatB { from { transform: translateY(0); } to { transform: translateY(12px); } }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  opacity: .6; transition: opacity .3s;
}
.scroll-hint:hover { opacity: 1; }
.mouse {
  display: block; width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 3px;
  background: #fff; transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* Animations d'entrée hero */
.reveal-hero {
  opacity: 0; transform: translateY(34px);
  animation: heroUp .9s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0s) + .9s);
}
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ─── Marquee ───────────────────────────────── */
.marquee {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.mq-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  white-space: nowrap;
}
.mq-item img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.mq-dot { width: 11px; height: 11px; color: var(--green); }

/* ─── Sections communes ─────────────────────── */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--green-bright); }
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 2px; margin-right: 10px;
  background: currentColor; vertical-align: middle;
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.16; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title.light { color: #fff; }
.section-text { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 18px; max-width: 640px; }
.section-text.center { margin-inline: auto; text-align: center; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(48px, 6vw, 70px); }
.section-head .eyebrow::after {
  content: ""; display: inline-block;
  width: 26px; height: 2px; margin-left: 10px;
  background: currentColor; vertical-align: middle; border-radius: 2px;
}

/* ─── Le Groupe ─────────────────────────────── */
.about { background: var(--white); position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(87,181,68,.09), transparent 70%);
  top: -180px; right: -180px; pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.about-left .btn { margin-top: 12px; }
.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card {
  background: rgba(244, 248, 244, .8);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.about-card:nth-child(2) { transform: translateY(22px); }
.about-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(46, 139, 61, .3);
}
.about-card:nth-child(2):hover { transform: translateY(16px); }
.about-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  color: var(--green);
  background: linear-gradient(135deg, rgba(87,181,68,.14), rgba(142,36,170,.12));
  margin-bottom: 16px;
  transition: transform .4s var(--ease-out), color .4s;
}
.about-card:hover .about-ico { transform: scale(1.1) rotate(-6deg); color: var(--violet); }
.about-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.about-card p { font-size: .92rem; color: var(--ink-soft); }

/* ─── Entités ───────────────────────────────── */
.entities { position: relative; overflow: hidden; background: var(--paper); }
.entities-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: drift 20s ease-in-out infinite alternate;
}
.blob-1 { width: 460px; height: 460px; top: 4%; right: -160px;
  background: radial-gradient(circle, rgba(142,36,170,.16), transparent 70%); }
.blob-2 { width: 520px; height: 520px; bottom: 2%; left: -200px;
  background: radial-gradient(circle, rgba(87,181,68,.18), transparent 70%);
  animation-delay: -8s; }
.entities .container { position: relative; }

.entity-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.entity-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  padding: 34px 32px 30px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
  will-change: transform;
}
.entity-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, #fff);
}
.entity-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.entity-card:hover::before { transform: scaleX(1); }
.entity-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  top: -120px; right: -120px; opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.entity-card:hover .entity-glow { opacity: 1; }

.entity-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.entity-logo {
  width: 76px; height: 76px; border-radius: 22px;
  overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.entity-card:hover .entity-logo {
  transform: scale(1.07) rotate(-3deg);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 25%, transparent);
}
.entity-logo img { width: 100%; height: 100%; object-fit: cover; }
.entity-tag {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px; border-radius: 99px;
}
.entity-name {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
  margin-bottom: 12px;
}
.entity-desc { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; }
.entity-points { margin-bottom: 26px; display: grid; gap: 8px; }
.entity-points li {
  position: relative; padding-left: 26px;
  font-size: .92rem; color: var(--ink-soft);
}
.entity-points li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  background-color: var(--accent);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}
.entity-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--accent);
}
.entity-link .ico { width: 17px; height: 17px; transition: transform .35s var(--ease-out); }
.entity-card:hover .entity-link .ico { transform: translateX(6px); }
.entity-card[data-soon] .entity-link { opacity: .75; }
.entity-wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .entity-wide {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "top top top" "name name link" "desc points link";
    column-gap: 40px; align-items: start;
  }
  .entity-wide .entity-top { grid-area: top; justify-content: flex-start; gap: 22px; }
  .entity-wide .entity-name { grid-area: name; }
  .entity-wide .entity-desc { grid-area: desc; max-width: 520px; }
  .entity-wide .entity-points { grid-area: points; margin-bottom: 0; }
  .entity-wide .entity-link { grid-area: link; align-self: end; }
}

/* ─── Valeurs ───────────────────────────────── */
.values {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 80% -10%, #23162e 0%, #101c14 55%, #0c150f 100%);
  color: #fff;
}
.values-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-v1 { width: 420px; height: 420px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(142,36,170,.5), transparent 70%); opacity: .4; }
.orb-v2 { width: 380px; height: 380px; bottom: -140px; right: -100px;
  background: radial-gradient(circle, rgba(87,181,68,.5), transparent 70%);
  opacity: .35; animation-delay: -7s; }
.values .container { position: relative; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  padding: 34px 26px;
  border-radius: var(--r-md);
  transition: transform .45s var(--ease-out), background .45s, border-color .45s;
}
.value-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.09);
  border-color: rgba(87,181,68,.35);
}
.value-ico {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  color: var(--green-bright);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .45s var(--ease-out), color .45s;
}
.value-card:hover .value-ico { transform: scale(1.12) rotate(-7deg); color: #d48ae8; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; margin: 18px 0 10px;
}
.value-card p { font-size: .93rem; color: rgba(255,255,255,.62); }

/* ─── Contact ───────────────────────────────── */
.contact { position: relative; overflow: hidden; background: var(--white); }
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.blob-3 { width: 480px; height: 480px; top: -160px; left: -160px;
  background: radial-gradient(circle, rgba(87,181,68,.14), transparent 70%); }
.blob-4 { width: 440px; height: 440px; bottom: -180px; right: -140px;
  background: radial-gradient(circle, rgba(142,36,170,.13), transparent 70%);
  animation-delay: -10s; }
.contact-inner { position: relative; text-align: center; }
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 48px;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 24px;
  border-radius: var(--r-md);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46,139,61,.35);
}
.contact-ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  color: var(--green);
  background: linear-gradient(135deg, rgba(87,181,68,.14), rgba(142,36,170,.12));
  margin-bottom: 10px;
  transition: transform .4s var(--ease-out), color .4s;
}
.contact-card:hover .contact-ico { transform: scale(1.1) rotate(-6deg); color: var(--violet); }
.contact-label {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--green);
}
.contact-value { font-weight: 600; font-size: 1.02rem; }

/* ─── Footer ────────────────────────────────── */
.footer { background: #0c150f; color: rgba(255,255,255,.65); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(56px, 7vw, 80px) 0 48px;
}
.footer-brand p { margin-top: 18px; font-size: .93rem; max-width: 300px; }
.footer-col h4 {
  color: #fff; font-size: .95rem; font-weight: 700;
  letter-spacing: .05em; margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; font-size: .93rem; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0; font-size: .87rem;
  text-align: center;
}

/* ─── Retour en haut ────────────────────────── */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 26px rgba(46,139,61,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .4s var(--ease-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top .ico { width: 20px; height: 20px; }

/* ─── Reveal au scroll ──────────────────────── */
.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1120px) {
  .hq-badge-top { left: 0; }
  .hq-badge-bottom { right: 0; }
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { max-width: 640px; }
  .hero-visual { width: 100%; max-width: 440px; margin-inline: auto; }
  .hq-badge-top { left: -4%; }
  .hq-badge-bottom { right: -4%; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .btn-nav { display: none; }
  .burger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 940;
    flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    background: rgba(10, 20, 13, .9);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease-out), visibility .45s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links .nav-link {
    font-size: 1.5rem; font-weight: 600; color: #fff !important;
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  }
  .nav-links.open .nav-link { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(1) .nav-link { transition-delay: .08s }
  .nav-links.open li:nth-child(2) .nav-link { transition-delay: .14s }
  .nav-links.open li:nth-child(3) .nav-link { transition-delay: .20s }
  .nav-links.open li:nth-child(4) .nav-link { transition-delay: .26s }
  .nav-links.open li:nth-child(5) .nav-link { transition-delay: .32s }
  .nav-link.active { background: none; }

  .about-grid { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .about-card:nth-child(2) { transform: none; }
  .about-card:nth-child(2):hover { transform: translateY(-6px); }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    justify-items: center;
    align-items: start;
    text-align: center;
  }
  .stat { display: flex; flex-direction: column; align-items: center; }
  .stat-line { justify-content: center; }
  .stat-label { font-size: .72rem; max-width: 12ch; }
  .stat-sep { display: none; }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .entity-card { padding: 26px 22px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .hero { padding-bottom: 70px; }
  .hero-visual { max-width: 330px; }
  .hq-badge { padding: 10px 14px; max-width: 210px; }
  .hq-badge strong { font-size: .84rem; }
  .hq-badge span { font-size: .72rem; }
  .hq-badge-top { top: 3%; left: -3%; }
  .hq-badge-bottom { bottom: 5%; right: -3%; }
  .hero-stats { padding: 16px 18px; }
}

/* ─── Accessibilité : mouvement réduit ──────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
}
