/* ===== APSEC – Global CSS (Tailwind augmenté) ===== */

/* ── Keyframe animations ── */
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.35); }
  70%  { box-shadow: 0 0 0 14px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(.88); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes countUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes sheen {
  0%   { left: -120%; }
  60%,100% { left: 140%; }
}
@keyframes bounceMini {
  0%,100% { transform: translateY(0) scale(1); }
  40%     { transform: translateY(-6px) scale(1.04); }
  60%     { transform: translateY(-3px) scale(1.02); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.2); }
  50%     { box-shadow: 0 0 0 12px rgba(22,163,74,0); }
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(-1deg) scale(1); }
  30%     { transform: translateY(-7px) rotate(1deg) scale(1.05); }
  60%     { transform: translateY(-3px) rotate(-0.5deg) scale(1.02); }
}
@keyframes logoPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.5), 0 0 0 0 rgba(13,148,136,.3); }
  60%  { box-shadow: 0 0 0 10px rgba(22,163,74,0), 0 0 0 18px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0), 0 0 0 0 rgba(13,148,136,0); }
}
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
  25%     { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(90deg) scale(1.05); }
  50%     { border-radius: 50% 60% 30% 60% / 40% 50% 60% 50%; transform: rotate(180deg) scale(.95); }
  75%     { border-radius: 40% 30% 60% 50% / 70% 40% 50% 30%; transform: rotate(270deg) scale(1.03); }
}
@keyframes floatX {
  0%,100% { transform: translateX(0) translateY(0); }
  33%     { transform: translateX(12px) translateY(-8px); }
  66%     { transform: translateX(-8px) translateY(6px); }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg) translateX(28px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(28px) rotate(-360deg); }
}
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes ringExpand {
  0%   { transform:scale(.5); opacity:.8; }
  100% { transform:scale(2.5); opacity:0; }
}
@keyframes textGlow {
  0%,100% { text-shadow: 0 0 8px rgba(22,163,74,0); }
  50%     { text-shadow: 0 0 18px rgba(22,163,74,.5); }
}

/* ── Card variants ── */

/* Horizontal card: icon left, content right */
.card-h {
  display: flex; align-items: flex-start; gap: 1.4rem;
  background: #fff; border-radius: 18px; padding: 1.6rem 2rem;
  border: 1px solid var(--gray-200);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  position: relative; overflow: hidden;
}
.card-h::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--teal));
  border-radius: 18px 0 0 18px;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s ease;
}
.card-h::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.card-h:hover { transform: translateY(-6px) translateX(3px); box-shadow: 0 22px 55px rgba(0,0,0,.11); }
.card-h:hover::before { transform: scaleY(1); }
.card-h:hover::after { animation: sheen .7s ease forwards; }
.card-h-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), animation .3s;
}
.card-h:hover .card-h-icon { transform: scale(1.12) rotate(-5deg); animation: floatY 2s ease infinite; }
.card-h-body h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.card-h-body p  { font-size: .84rem; color: var(--gray-500); line-height: 1.7; }

/* Gradient card */
.card-grad {
  border-radius: 20px; padding: 2rem; color: #fff; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.card-grad:hover { transform: translateY(-8px) scale(1.025); box-shadow: 0 28px 65px rgba(0,0,0,.22); }
.card-grad::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 100px; height: 100px; background: rgba(255,255,255,.1); border-radius: 50%;
  transition: transform .45s ease;
}
.card-grad:hover::after { transform: scale(2.4); }
.card-grad .sheen {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.card-grad:hover .sheen { animation: sheen .75s ease forwards; }
.card-grad-icon { font-size: 2.2rem; margin-bottom: 1rem; opacity: .9; }
.card-grad h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card-grad p  { font-size: .83rem; opacity: .8; line-height: 1.7; }

/* Number/stat card */
.card-num {
  background: #fff; border-radius: 20px; padding: 2rem;
  border: 1px solid var(--gray-200);
  text-align: center; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.card-num::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-light) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card-num:hover { transform: translateY(-7px); box-shadow: 0 22px 55px rgba(22,163,74,.15); }
.card-num:hover::before { opacity: 1; }
.card-num:hover .card-num-icon { animation: bounceMini .6s ease; }
.card-num-val { font-size: 2.8rem; font-weight: 800; color: var(--green-dark); line-height: 1; letter-spacing: -1px; }
.card-num-icon { font-size: 1.4rem; color: var(--green); margin-bottom: .75rem; }
.card-num-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); margin-top: .5rem; text-transform: uppercase; letter-spacing: .5px; }

/* Feature card (tall, centered, icon top) */
.card-feat {
  background: #fff; border-radius: 20px; padding: 2.5rem 1.8rem;
  border: 1px solid var(--gray-200); text-align: center; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, border-color .25s;
}
.card-feat:hover { transform: translateY(-10px); box-shadow: 0 28px 65px rgba(0,0,0,.12); border-color: transparent; }
.card-feat::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1.5px rgba(22,163,74,.0);
  transition: box-shadow .35s;
}
.card-feat:hover::after { box-shadow: inset 0 0 0 1.5px rgba(22,163,74,.2); }
.card-feat-icon {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 1.4rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.card-feat:hover .card-feat-icon { transform: scale(1.15) rotate(8deg); animation: pulseRing 1.5s infinite; }
.card-feat h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .6rem; }
.card-feat p  { font-size: .84rem; color: var(--gray-500); line-height: 1.75; }
.card-feat-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: .25rem .7rem; border-radius: 20px;
  background: var(--green-light); color: var(--green-dark); margin-bottom: .9rem;
}

/* Horizontal feature (image-like left panel) */
.card-split {
  display: grid; grid-template-columns: 140px 1fr; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--gray-200); background: #fff;
  transition: transform .3s ease, box-shadow .3s;
}
.card-split:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,.1); }
.card-split-left {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2.4rem; gap: .5rem; color: #fff;
  transition: transform .3s;
}
.card-split:hover .card-split-left { transform: scale(1.05); }
.card-split-right { padding: 1.6rem 1.8rem; }
.card-split-right h3 { font-size: .97rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.card-split-right p  { font-size: .83rem; color: var(--gray-500); line-height: 1.7; }

/* Timeline card */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content:''; position:absolute; left:.7rem; top:0; bottom:0; width:2px; background:var(--green-light); border-radius:2px; }
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2rem; top: .2rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--green);
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--green-light);
  transition: transform .25s, box-shadow .25s;
}
.tl-item:hover .tl-dot { transform: scale(1.4); box-shadow: 0 0 0 5px rgba(22,163,74,.2); }
.tl-body { background: #fff; border-radius: 14px; padding: 1.3rem 1.5rem; border: 1px solid var(--gray-200); margin-left: .5rem; transition: box-shadow .25s, transform .25s; }
.tl-item:hover .tl-body { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateX(4px); }
.tl-date { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--green); margin-bottom: .4rem; }
.tl-body h3 { font-size: .93rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.tl-body p  { font-size: .83rem; color: var(--gray-500); line-height: 1.65; }

/* ── VALEURS TIMELINE ALTERNÉE ── */
.valeurs-section { overflow: visible; }
.valeurs-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Barre centrale animée */
.vt-bar {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--green-light), var(--teal), var(--green-light));
  border-radius: 4px;
  animation: barGrow 1.2s ease-out forwards;
  transform-origin: top center;
}
@keyframes barGrow {
  from { scaleY(0); opacity: 0; }
  to   { scaleY(1); opacity: 1; }
}

/* Chaque item occupe toute la largeur, alignement au centre */
.vt-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1.2rem;
  position: relative;
}
.vt-dot { margin-top: 0 !important; }
.vt-item:last-child { margin-bottom: 0; }

/* Côté GAUCHE : texte | connecteur | dot | [espace droit 50%] */
.vt-left  { flex-direction: row; }
.vt-left .vt-text     { flex: 1; min-width: 0; text-align: right; padding-right: .5rem; }
.vt-left .vt-connector { width: 28px; height: 2px; flex-shrink: 0; background: linear-gradient(to right, rgba(22,163,74,.15), var(--accent,#16a34a)); }
.vt-left .vt-dot      { flex-shrink: 0; }
/* Espace vide droite */
.vt-left::after       { content:''; flex: 1; }

/* Côté DROITE : [espace gauche 50%] | dot | connecteur | texte */
.vt-right { flex-direction: row; }
.vt-right::before      { content:''; flex: 1; }
.vt-right .vt-dot      { flex-shrink: 0; }
.vt-right .vt-connector { width: 28px; height: 2px; flex-shrink: 0; background: linear-gradient(to left, rgba(22,163,74,.15), var(--accent,#16a34a)); }
.vt-right .vt-text     { flex: 1; min-width: 0; text-align: left; padding-left: .5rem; }

/* Dot central */
.vt-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid #fff;
  flex-shrink: 0;
  position: relative; z-index: 2;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.vt-item:hover .vt-dot { transform: scale(1.45); }

/* Card valeur */
.vt-text {
  padding: .4rem 0;
  transition: transform .3s ease;
}
.vt-item:hover .vt-text { transform: translateY(-2px); }

/* Gauche : texte aligné à droite */
.vt-left .vt-text { text-align: right; }
.vt-left .vt-icon { text-align: right; }

/* Droite : texte aligné à gauche */
.vt-right .vt-text { text-align: left; }
.vt-right .vt-icon { text-align: left; }

.vt-text h3 {
  font-size: .95rem; font-weight: 800;
  color: var(--accent, #16a34a);
  margin-bottom: .3rem;
}
.vt-text p {
  font-size: .82rem; color: var(--gray-500);
  line-height: 1.65; margin: 0;
  max-width: 220px;
}
.vt-left .vt-text p  { margin-left: auto; }
.vt-right .vt-text p { margin-right: auto; }

.vt-icon {
  font-size: 1.2rem;
  color: var(--accent, #16a34a);
  margin-bottom: .3rem;
  display: block;
}
.vt-left .vt-icon { text-align: right; }
.vt-right .vt-icon { text-align: left; }

.vt-tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent,#16a34a);
  margin-bottom: .4rem;
}
.vt-card h3 {
  font-size: .93rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: .3rem;
}
.vt-card p {
  font-size: .78rem; color: var(--gray-500);
  line-height: 1.6; margin: 0;
}

/* Animations scroll — entrée depuis gauche/droite */
.vt-left  { opacity: 0; transform: translateX(-60px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.vt-right { opacity: 0; transform: translateX(60px);  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.vt-left.val-visible, .vt-right.val-visible { opacity: 1; transform: translateX(0); }
.vt-item:nth-child(3) { transition-delay: .15s; }
.vt-item:nth-child(4) { transition-delay: .3s; }
.vt-item:nth-child(5) { transition-delay: .45s; }

/* Mobile : tout en colonne centrée */
@media (max-width: 640px) {
  .vt-bar { left: 20px; }
  .vt-item, .vt-left, .vt-right { flex-direction: column; align-items: flex-start; padding-left: 44px; }
  .vt-card, .vt-left .vt-card, .vt-right .vt-card { width: 100% !important; text-align: left !important; margin: 0 !important; }
  .vt-icon, .vt-left .vt-icon { text-align: left !important; }
  .vt-dot { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
  .vt-connector { display: none; }
  .vt-left, .vt-right { opacity: 0; transform: translateY(30px); }
  .vt-left.val-visible, .vt-right.val-visible { transform: translateY(0); }
}

/* Stagger animation delays */
.stagger-1 { transition-delay: .05s !important; }
.stagger-2 { transition-delay: .10s !important; }
.stagger-3 { transition-delay: .15s !important; }
.stagger-4 { transition-delay: .20s !important; }
.stagger-5 { transition-delay: .25s !important; }
.stagger-6 { transition-delay: .30s !important; }
.from-left  { opacity:0; transform:translateX(-24px); transition:opacity .55s ease,transform .55s ease; }
.from-right { opacity:0; transform:translateX(24px);  transition:opacity .55s ease,transform .55s ease; }
.from-left.visible,.from-right.visible { opacity:1; transform:none; }

/* Blob background decorators */
.blob-bg { position:relative; overflow:hidden; }
.blob-bg::before {
  content:''; position:absolute; width:500px; height:500px;
  background: radial-gradient(circle, rgba(22,163,74,.07) 0%, transparent 70%);
  top:-150px; right:-150px; pointer-events:none;
  animation: blobMorph 12s ease-in-out infinite;
}
.blob-bg::after {
  content:''; position:absolute; width:350px; height:350px;
  background: radial-gradient(circle, rgba(13,148,136,.06) 0%, transparent 70%);
  bottom:-100px; left:-80px; pointer-events:none;
  animation: blobMorph 16s ease-in-out infinite reverse;
}

/* Formes géométriques flottantes */
.float-shape {
  position: absolute; pointer-events: none; z-index: 0;
  animation: floatX 7s ease-in-out infinite;
}
.float-shape.s1 { width:60px; height:60px; border:2px solid rgba(22,163,74,.2); border-radius:50%; top:10%; right:5%; animation-duration:6s; }
.float-shape.s2 { width:40px; height:40px; border:2px solid rgba(13,148,136,.25); border-radius:8px; bottom:15%; left:4%; animation-duration:9s; animation-delay:-3s; }
.float-shape.s3 { width:20px; height:20px; background:rgba(22,163,74,.15); border-radius:50%; top:40%; left:2%; animation-duration:5s; animation-delay:-1.5s; }
.float-shape.s4 { width:30px; height:30px; border:1.5px solid rgba(215,119,6,.2); transform:rotate(45deg); bottom:30%; right:3%; animation-duration:8s; animation-delay:-4s; }

/* Logo footer animé */
.footer-logo img {
  animation: logoFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(22,163,74,.25));
}

/* Titre hero avec glow */
.hs-h1 { animation: textGlow 3s ease-in-out infinite; }

/* Rings pulsants sur section hero */
.hero-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255,255,255,.15);
  animation: ringExpand 3.5s ease-out infinite;
}
.hero-ring:nth-child(2) { animation-delay: 1.2s; }
.hero-ring:nth-child(3) { animation-delay: 2.4s; }

/* Orbite autour du logo */
.logo-orbit {
  position: absolute; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  animation: orbitSpin 3s linear infinite;
  top: 50%; left: 50%; margin: -4px;
  box-shadow: 0 0 6px rgba(22,163,74,.8);
}

/* Scroll indicator pulsant */
.scroll-top {
  animation: logoPulseRing 2s ease-out infinite;
}

:root {
  --green:      #16a34a;
  --green-dark: #14532d;
  --green-mid:  #15803d;
  --green-light:#dcfce7;
  --teal:       #0d9488;
  --gold:       #d97706;
  --gold-light: #fef3c7;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --gray-900:   #111827;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-700); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-logo { position: relative; }
.nav-logo img {
  height: 44px; width: auto;
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(22,163,74,.35));
}
.nav-logo::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  animation: logoPulseRing 2.8s ease-out infinite;
}
.nav-brand-text strong { font-size: 1.05rem; font-weight: 800; color: var(--green-dark); letter-spacing: -.5px; }
.nav-brand-text span { display: block; font-size: .62rem; color: var(--gray-400); font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { padding: .42rem .7rem; border-radius: 8px; font-size: .8rem; font-weight: 500; color: var(--gray-700); transition: .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--green-light); color: var(--green-dark); }
.nav-cta { background: var(--green) !important; color: #fff !important; padding: .42rem .95rem !important; border-radius: 20px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--green-dark) !important; }

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gray-200); z-index: 999; padding: 1rem; flex-direction: column; gap: .25rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mobile-menu a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--gray-700); transition: .15s; }
.mobile-menu a:hover { background: var(--green-light); color: var(--green-dark); }
.mobile-menu .nav-cta { background: var(--green); color: #fff; justify-content: center; border-radius: 10px; }
.mobile-menu.open { display: flex; }

/* ── Page offset ── */
.page-top { padding-top: 68px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 55%, var(--teal) 100%);
  color: #fff; padding: 7rem 2rem 5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: .35rem 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -.5px; }
.hero h1 span { color: #86efac; }
.hero p { font-size: 1rem; color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

/* ── Page hero (inner pages) – gradient fallback ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff; padding: 6rem 2rem 3.5rem; text-align: center;
}

/* ── Page hero PHOTO (inner pages) ── */
.php-bg-img {
  width: 100%; display: block; height: auto; position: relative; z-index: 0;
}
.page-hero-photo {
  position: relative; width: 100%;
  color: #fff; text-align: center;
}
.page-hero-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(3,18,8,.72) 0%,
    rgba(5,35,12,.52) 50%,
    rgba(3,18,8,.40) 100%
  );
  z-index: 1;
}
.php-content {
  position: absolute; z-index: 2;
  inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  width: 100%;
}
.php-content h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900;
  line-height: 1.15; letter-spacing: -.5px; margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.php-content p {
  color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto;
  font-size: .95rem; line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
/* Breadcrumb inside php-content */
.php-content .breadcrumb { justify-content: center; }

/* Badge icon floating top-right */
.php-badge {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: .35rem .9rem; font-size: .72rem; font-weight: 700;
  color: #fff; letter-spacing: .5px; text-transform: uppercase;
  display: flex; align-items: center; gap: .4rem;
}
/* Bottom wave decoration */
.page-hero-photo::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0));
}

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.7); transition: .15s; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.5px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto; font-size: .93rem; }

/* ================================================================
   ANIMATIONS DYNAMIQUES
   ================================================================ */

/* ── Scroll reveal ── */
.anim-init {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.anim-init.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar scrollée ── */
.navbar-scrolled {
  background: rgba(5,35,12,.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(16px);
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transition: opacity .3s;
  will-change: transform;
}

/* ── Title underline wipe ── */
.section-header h2, .section-title {
  position: relative;
  display: inline-block;
}
.section-header h2::after, .section-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 2px;
  transition: width .7s cubic-bezier(.22,1,.36,1);
}
.title-wipe::after { width: 100%; }

/* ── Card lift on hover ── */
.card-h, .card-grad, .card-feat, .card-num, .card-split, .don-method {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.card-h:hover, .card-grad:hover, .card-feat:hover,
.card-num:hover, .card-split:hover, .don-method:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 48px rgba(0,0,0,.13);
}

/* ── Partner logos pulse ── */
.partner-logo {
  transition: transform .3s ease, filter .3s ease;
}
.partner-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ── Boutons shimmer on hover ── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* ── Actu mini hover ── */
.actu-mini {
  transition: background .25s, transform .25s, box-shadow .25s;
}
.actu-mini:hover {
  transform: translateX(6px);
  box-shadow: -4px 0 0 var(--green);
  background: rgba(22,163,74,.05) !important;
}

/* ── from-left / from-right ── */
.from-left  { opacity:0; transform:translateX(-40px); transition:opacity .7s ease, transform .7s ease; }
.from-right { opacity:0; transform:translateX(40px);  transition:opacity .7s ease, transform .7s ease; }
.from-left.visible, .from-right.visible { opacity:1; transform:translateX(0); }

/* ── Ripple bouton ── */
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; border: 2px solid transparent; transition: .2s; font-family: inherit; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: var(--green-light); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-green { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline-green:hover { background: var(--green-light); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b45309; }
.btn-sm { padding: .42rem .95rem; font-size: .8rem; border-radius: 8px; }
.btn-pill { border-radius: 30px !important; }

/* ── Section ── */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--gray-50); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: .3rem .85rem; border-radius: 20px; margin-bottom: .8rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--gray-900); letter-spacing: -.4px; margin-bottom: .75rem; }
.divider { width: 44px; height: 4px; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 4px; margin: 0 auto .75rem; }
.section-header p { color: var(--gray-500); max-width: 540px; margin: 0 auto; font-size: .9rem; }

/* ── Cards ── */
.card { background: #fff; border-radius: 16px; border: 1px solid var(--gray-200); padding: 2rem; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.09); border-color: var(--green-light); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1.1rem; }
.card h3 { font-size: .97rem; font-weight: 700; color: var(--gray-900); margin-bottom: .45rem; }
.card p { font-size: .84rem; color: var(--gray-500); line-height: 1.7; }

/* ── Stats bar ── */
.stats-bar { background: var(--green-dark); color: #fff; padding: 3.5rem 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; max-width: 1100px; margin: 0 auto; }
.stat-icon { font-size: 1.6rem; color: #86efac; margin-bottom: .5rem; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: .4rem; text-transform: uppercase; letter-spacing: .6px; }

/* ── Contact grid ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 2.5rem; }
.contact-info { background: linear-gradient(160deg, var(--green-dark), var(--green-mid)); color: #fff; border-radius: 20px; padding: 2.5rem; }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-icon { width: 40px; height: 40px; background: rgba(255,255,255,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.info-item h4 { font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .2rem; }
.info-item p { font-size: .88rem; }
.contact-form { background: #fff; border-radius: 20px; padding: 2.5rem; border: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .68rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: .86rem; color: var(--gray-700); transition: .2s; background: var(--gray-50); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(22,163,74,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Don methods ── */
.don-method { background: #fff; border-radius: 16px; border: 1px solid var(--gray-200); padding: 1.8rem; transition: .2s; }
.don-method:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.d-icon { font-size: 2rem; margin-bottom: .9rem; color: var(--green); }

/* ── Partner tag ── */
.partner-tag { display: flex; align-items: center; gap: .6rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: .58rem .9rem; font-size: .84rem; font-weight: 500; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 1rem; }
.gal-item { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 14px; padding: 1.8rem 1rem; text-align: center; cursor: pointer; transition: .2s; }
.gal-item:hover { border-color: var(--green); background: var(--green-light); transform: translateY(-2px); }
.gal-icon { font-size: 1.6rem; color: var(--green); margin-bottom: .6rem; }
.gal-label { font-size: .78rem; font-weight: 600; color: var(--gray-700); }

/* ── Actu cards ── */
.actu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.actu-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200); transition: .25s; }
.actu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.09); }
.actu-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.actu-body { padding: 1.4rem; }
.actu-tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .68rem; font-weight: 700; border-radius: 6px; padding: .2rem .6rem; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .5px; }
.actu-body h3 { font-size: .93rem; font-weight: 700; color: var(--gray-900); margin-bottom: .45rem; line-height: 1.4; }
.actu-body p { font-size: .82rem; color: var(--gray-500); line-height: 1.65; }
.actu-date { font-size: .74rem; color: var(--gray-400); margin-top: .8rem; display: flex; align-items: center; gap: .4rem; }

/* ── Footer ── */
.footer { background: var(--gray-900); color: rgba(255,255,255,.7); padding: 4rem 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; max-width: 1100px; margin: 0 auto; padding-bottom: 3rem; }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.45); margin-top: .75rem; line-height: 1.7; max-width: 230px; }
.footer-logo { display: flex; align-items: center; gap: .65rem; }
.footer-logo img { height: 42px; opacity: 1; }
.footer-logo-text strong { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-logo-text span { display: block; font-size: .6rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; }
.footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a { font-size: .83rem; color: rgba(255,255,255,.45); transition: .15s; display: inline-flex; align-items: center; gap: .3rem; }
.footer-col ul a:hover { color: #86efac; padding-left: 3px; }
.footer-contact-item { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .7rem; font-size: .82rem; }
.footer-contact-item i { color: #86efac; margin-top: 3px; width: 14px; flex-shrink: 0; }
.footer-socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.social-btn { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .82rem; transition: .2s; }
.social-btn:hover { background: var(--green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; max-width: 1100px; margin: 0 auto; font-size: .76rem; color: rgba(255,255,255,.3); }

/* ── Scroll-top ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--green); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: .88rem; box-shadow: 0 4px 16px rgba(22,163,74,.4); transition: .2s; z-index: 500; }
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero { padding: 5.5rem 1.5rem 3.5rem; }
  .section { padding: 3.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 0 1.2rem; }
  .contact-form, .contact-info { padding: 1.8rem; }
}
