:root {
  --navy: #123B5D;
  --navy-2: #1E5A74;
  --navy-deep: #0D2A43;
  --tan: #BFA178;
  --tan-soft: #E5D9C8;
  --cream: #F7F5F2;
  --white: #FFFFFF;
  --ink: #142434;
  --muted: #5A6A78;
  --line: #E4DED4;
  --shadow: 0 1px 2px rgba(18,59,93,.06), 0 12px 32px -16px rgba(18,59,93,.18);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(199,178,153,.45); } 50% { box-shadow: 0 0 0 10px rgba(199,178,153,0); } }
@keyframes shimmer { 0% { background-position: -300% 0; } 100% { background-position: 300% 0; } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bounceArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.44s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.52s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: #2A3947; }
a { color: var(--navy); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(247, 245, 242, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(18,59,93,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; border-radius: 8px; object-fit: cover; }
.brand-text { display: flex; gap: 4px; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-text span { font-size: 0.7rem; color: var(--tan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; flex-wrap: nowrap; }
nav ul li { white-space: nowrap; }
nav ul a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
nav ul a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--tan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
nav ul a:hover { color: var(--navy); }
nav ul a:hover::after { transform: scaleX(1); }
nav ul a.active { color: var(--navy); font-weight: 600; }
nav ul a.active::after { transform: scaleX(1); }

.cta-btn {
  background: var(--navy);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(18,59,93,.5); }
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left 0.6s ease;
}
.cta-btn:hover::before { left: 100%; }
.cta-btn.tan { background: var(--tan); color: var(--navy-deep); }
.cta-btn.tan:hover { background: #b89f80; }
.cta-btn.ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.cta-btn.ghost:hover { background: rgba(255,255,255,.08); border-color: var(--tan); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 102;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(18,59,93,.06); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease, background 0.25s ease;
  transform-origin: center;
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 178, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 178, 153, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 75% 65% at 70% 50%, black 30%, transparent 75%);
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border: 1px solid rgba(199, 178, 153, .25);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1, .hero p.lede, .hero-actions, .hero .eyebrow { animation: fadeInUp 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p.lede { animation-delay: 0.30s; }
.hero-actions { animation-delay: 0.45s; }
.hero-card { animation: fadeIn 1.2s cubic-bezier(.2,.7,.2,1) 0.30s both; }
.hero-badge { animation: float 3.5s ease-in-out infinite; }
.hero-actions .cta-btn.tan { animation: pulseGlow 2.6s ease-in-out infinite; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tan);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--tan); }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero h1 em { font-style: normal; color: var(--tan); font-weight: 800; }
.hero p.lede { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid rgba(199, 178, 153, .25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.5);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,42,67,.15) 0%, rgba(13,42,67,.0) 35%, rgba(13,42,67,.65) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(247,245,242,.92);
  color: var(--navy-deep);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 2;
}
.hero-stats {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(13, 42, 67, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(199, 178, 153, .35);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.45rem; color: var(--tan); font-weight: 700; }
.hero-stats span { font-size: 0.95rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ PAGE HEADER (subpages) ============ */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 178, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 178, 153, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 80% 50%, black 30%, transparent 75%);
}
.page-header-inner { position: relative; z-index: 2; max-width: 760px; }
.page-header h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.4em; animation: fadeInUp 0.8s cubic-bezier(.2,.7,.2,1) both; animation-delay: 0.1s; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 620px; margin: 0; animation: fadeInUp 0.8s cubic-bezier(.2,.7,.2,1) both; animation-delay: 0.25s; }
.page-header .eyebrow { animation: fadeInUp 0.8s cubic-bezier(.2,.7,.2,1) both; }
.breadcrumb {
  font-size: 0.98rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--tan); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,.35); }

/* ============ SECTIONS ============ */
section.block { padding: 96px 0; }
section.block.alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--tan); }
.section-head .eyebrow::before { background: var(--tan); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Présentation courte */
.intro {
  background: var(--white);
  border-top: 4px solid var(--tan);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.intro p { margin: 0; font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
.intro-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.intro-mini-stats div { border-left: 2px solid var(--tan); padding-left: 14px; }
.intro-mini-stats strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.intro-mini-stats span { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 2px; }
.intro-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; gap: 10px; }
.intro-thumbs > div { overflow: hidden; border-radius: 8px; position: relative; }
.intro-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.intro-thumbs > div:hover img { transform: scale(1.08); }
.intro-thumbs .span-2 { grid-column: span 2; }
@media (max-width: 920px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-thumbs { grid-template-rows: 120px 120px; }
}

/* Problèmes */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.problem {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tan);
  padding: 20px 22px;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--ink);
  transition: all 0.25s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.problem-icon { flex-shrink: 0; color: var(--tan); transition: color 0.25s, transform 0.3s; margin-top: 2px; }
.problem:hover { border-left-color: var(--navy); transform: translateX(3px); box-shadow: 0 6px 18px -10px rgba(18,59,93,.25); }
.problem:hover .problem-icon { color: var(--navy); transform: rotate(-8deg); }

/* Solution DDM */
.ddm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ddm-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px 32px; position: relative; transition: all 0.3s; }
.ddm-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ddm-num { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--tan); letter-spacing: 0.18em; margin-bottom: 18px; }
.ddm-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.ddm-card p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.65; }
.ddm-icon {
  width: 44px; height: 44px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--navy);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; transition: all 0.25s; position: relative; overflow: hidden; }
.service::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--tan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.service:hover::before { transform: scaleY(1); }
.service:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(199,178,153,.18), rgba(199,178,153,.04));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 18px;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.service:hover .service-icon { background: var(--navy); color: var(--tan); border-color: var(--navy); transform: rotate(-6deg) scale(1.05); }
.service-num { font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: var(--tan); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 10px; }
.service h3 { font-size: 1.22rem; margin-bottom: 12px; }
.service ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; line-height: 1.62; }
.service ul li { padding: 5px 0 5px 16px; position: relative; color: var(--muted); }
.service ul li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 1px; background: var(--tan); }

/* Why us */
.why-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: stretch; }
.why-image { position: relative; border-radius: 12px; overflow: hidden; min-height: 480px; box-shadow: var(--shadow); }
.why-image img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.why-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,42,67,.15) 0%, rgba(13,42,67,.55) 100%); }
.why-image-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; color: var(--white); z-index: 2; }
.why-image-caption span { display: block; font-size: 0.95rem; color: var(--tan); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.why-image-caption strong { font-family: 'Manrope', sans-serif; font-size: 1.2rem; line-height: 1.3; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why-item { background: var(--white); padding: 22px 22px; border: 1px solid var(--line); border-radius: 10px; transition: all 0.25s ease; display: flex; gap: 14px; align-items: flex-start; }
.why-item:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.why-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); transition: all 0.3s ease; }
.why-item:hover .why-icon { background: var(--navy); color: var(--tan); border-color: var(--navy); }
.why-num { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--tan); font-size: 0.9rem; margin-bottom: 4px; letter-spacing: 0.14em; display: block; }
.why-item p { margin: 0; font-weight: 500; color: var(--ink); font-size: 1rem; line-height: 1.45; }
@media (max-width: 920px) { .why-layout { grid-template-columns: 1fr; } .why-image { min-height: 280px; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Sectors */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sector { color: var(--white); padding: 110px 28px 28px; border-radius: 10px; transition: transform 0.35s ease, box-shadow 0.35s ease; position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.sector .sector-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.sector::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,42,67,.55) 0%, rgba(13,42,67,.85) 70%, rgba(13,42,67,.95) 100%); z-index: -1; transition: background 0.35s ease; }
.sector h3 { color: var(--tan); font-size: 1.2rem; margin-bottom: 10px; position: relative; }
.sector h3::before { content: ''; display: block; width: 28px; height: 2px; background: var(--tan); margin-bottom: 12px; transform-origin: left; transition: width 0.35s ease; }
.sector p { color: rgba(255,255,255,.9); font-size: 1rem; margin: 0; }
.sector:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.sector:hover .sector-bg { transform: scale(1.08); }
.sector:hover h3::before { width: 56px; }
.sector:hover::before { background: linear-gradient(180deg, rgba(13,42,67,.40) 0%, rgba(13,42,67,.80) 70%, rgba(13,42,67,.95) 100%); }

/* Senegal gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 220px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.4s ease; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13,42,67,.78) 100%); transition: opacity 0.3s ease; }
.gallery-item .gallery-label { position: absolute; left: 18px; bottom: 16px; color: var(--white); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.08rem; z-index: 2; letter-spacing: 0.02em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.gallery-item .gallery-label small { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); margin-bottom: 4px; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 920px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 200px); } .gallery-item.tall, .gallery-item.wide { grid-column: auto; grid-row: auto; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(6, 180px); } }

/* Hero scroll cue */
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--tan); font-family: 'Manrope', sans-serif; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; z-index: 2; animation: fadeIn 1s ease 1s both; }
.hero-scroll svg { display: block; margin: 8px auto 0; animation: bounceArrow 2s ease-in-out infinite; }

/* Enhanced card transitions */
.ddm-card, .service, .work, .why-item, .problem, .sector, .gallery-item { will-change: transform; }
.ddm-card .ddm-icon { transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease; }
.ddm-card:hover .ddm-icon { background: var(--navy); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.service-num, .ddm-num, .work-tag, .why-num {
  background: linear-gradient(90deg, var(--tan) 0%, #d8c5ac 50%, var(--tan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.service:hover .service-num,
.work:hover .work-tag { animation: shimmer 2.5s linear infinite; }

/* Réalisations */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.work { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: all 0.25s; }
.work:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.work-img { aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.work:hover .work-img img { transform: scale(1.05); }
.work-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13,42,67,.35) 100%); pointer-events: none; }
.work-body { padding: 22px 24px; }
.work-tag { font-size: 0.95rem; color: var(--tan); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.work h3 { font-size: 1.15rem; margin-bottom: 6px; }
.work p { font-size: 1rem; color: var(--muted); margin: 0; }

/* CTA banner */
.cta-banner {
  color: var(--white);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(120deg, rgba(13,42,67,.92), rgba(18,59,93,.85)),
    url('./images/mapgeo_photo.jpeg');
  background-size: cover;
  background-position: center;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(199,178,153,.06) 1px, transparent 1px); background-size: 1px 40px; mask-image: linear-gradient(180deg, transparent, black, transparent); }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.6em; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; }

/* Method section visual (DDM) */
.ddm-visual { margin-top: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; position: relative; background: var(--cream); }
.ddm-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddm-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,42,67,.55) 0%, rgba(13,42,67,.15) 50%, transparent 100%); }
.ddm-visual-caption { position: absolute; left: 32px; bottom: 28px; color: var(--white); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.1rem; z-index: 2; max-width: 60%; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ddm-visual-caption span { display: block; font-size: 0.95rem; font-weight: 600; color: var(--tan); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 720px) { .ddm-visual { aspect-ratio: 4/3; } .ddm-visual-caption { left: 20px; bottom: 18px; font-size: 0.95rem; max-width: 80%; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.contact-grid > *, .form-grid > * { min-width: 0; }
.contact-info h3 { margin-bottom: 24px; }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.contact-row .label { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.contact-row .val { font-weight: 500; color: var(--ink); }
.contact-row .val a { color: var(--ink); }
.contact-row .val a:hover { color: var(--navy); }

.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: white; padding: 12px 22px; border-radius: 6px; font-weight: 600; margin-top: 8px; font-size: 0.95rem; }
.whatsapp-btn:hover { background: #1fbe5a; color: white; }

/* Form */
form.devis { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; width: 100%; min-width: 0; }
form.devis h3 { margin-bottom: 6px; }
form.devis > p { color: var(--muted); font-size: 1rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.02em; }
.field label .req { color: #c25; }
.field input, .field select, .field textarea { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-family: inherit; font-size: 1rem; width: 100%; min-width: 0; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
form.devis button[type=submit] { margin-top: 22px; width: 100%; padding: 14px; font-size: 1rem; }
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
footer h4 { color: var(--tan); font-family: 'Manrope', sans-serif; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; font-weight: 700; }
footer .brand-text strong { color: var(--white); } footer .brand-text span { color: var(--tan); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: rgba(255,255,255,.72); transition: color 0.2s; }
footer ul a:hover { color: var(--tan); }
footer p.tag { margin: 14px 0 0; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,.6); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.04);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--navy-deep);
  background: var(--tan);
  border-color: var(--tan);
  transform: translateY(-2px);
  outline: none;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 1180px) {
  nav ul { gap: 18px; }
  nav ul a { font-size: 0.95rem; }
  .brand-text span { display: none; }
  .nav { gap: 16px; }
  .cta-btn { padding: 10px 16px; font-size: 0.95rem; }
}
@media (max-width: 1040px) {
  nav ul { display: none; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .ddm-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section.block { padding: 72px 0; }
  .hero { padding: 72px 0 88px; }
  .page-header { padding: 60px 0 48px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  form.devis { padding: 26px 22px; }
  .hero-stats { padding: 12px; }
  .hero-stats strong { font-size: 1.15rem; }
  .brand img { height: 40px; width: 40px; }
  .brand-text strong { font-size: 1rem; }
}

/* Mobile menu */
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  padding: 96px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, visibility 0.35s, transform 0.35s cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,245,242,.96);
  backdrop-filter: blur(10px);
}
.mobile-menu-header .brand img { height: 40px; width: 40px; border-radius: 6px; }
.mobile-menu-header .brand-text strong { font-size: 1rem; }
.mobile-menu-header .brand-text span { display: none; }

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu ul li {
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
.mobile-menu ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  padding: 18px 6px;
  position: relative;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu ul a::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tan);
  border-top: 2px solid var(--tan);
  transform: rotate(45deg);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu ul a:hover,
.mobile-menu ul a:focus-visible {
  color: var(--navy);
  padding-left: 12px;
  outline: none;
}
.mobile-menu ul a:hover::after,
.mobile-menu ul a:focus-visible::after { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }
.mobile-menu ul a.active {
  color: var(--navy);
  font-weight: 700;
  padding-left: 14px;
  border-left: 3px solid var(--tan);
  margin-left: -6px;
}
.mobile-menu ul a.active::after { opacity: 1; }

.mobile-menu .cta-btn {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

.mobile-quick {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-quick a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mobile-quick a.whatsapp { background: #25D366; color: white; border-color: #25D366; }
.mobile-quick a.whatsapp:hover { background: #1fbe5a; }
.mobile-quick a:not(.whatsapp):hover { border-color: var(--navy); background: var(--cream); }

.mobile-menu.open ul li,
.mobile-menu.open .cta-btn,
.mobile-menu.open .mobile-quick {
  animation: fadeInUp 0.45s cubic-bezier(.2,.7,.2,1) both;
}
.mobile-menu.open ul li:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.open ul li:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.open ul li:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.open ul li:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu.open ul li:nth-child(5) { animation-delay: 0.32s; }
.mobile-menu.open ul li:nth-child(6) { animation-delay: 0.38s; }
.mobile-menu.open .cta-btn { animation-delay: 0.44s; }
.mobile-menu.open .mobile-quick { animation-delay: 0.50s; }


/* ============ FIX RESPONSIVE HERO SCROLL ============ */

/* Le parent garde la bonne référence */
.hero-inner {
  position: relative;
}

/* Version desktop : inchangée */
.hero-scroll {
  z-index: 4;
}

/* Tablette et mobile : "Découvrir" ne doit plus être en absolute */
@media (max-width: 920px) {
  .hero {
    padding: 72px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-scroll {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: max-content;
    max-width: 100%;
    margin: 32px auto 0;

    z-index: 1;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero {
    padding: 56px 0 40px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-card {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .hero-stats {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 10px;
    gap: 8px;
  }

  .hero-stats strong {
    font-size: 1.05rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .hero-scroll {
    margin-top: 28px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .hero-stats {
    padding: 10px 8px;
  }

  .hero-stats strong {
    font-size: 0.95rem;
  }

  .hero-stats span {
    font-size: 0.65rem;
  }
}

@media (max-width: 560px) {
  .container { 
    padding-left: 18px; 
    padding-right: 18px; 
  }

  h1 { 
    font-size: clamp(1.85rem, 8vw, 2.35rem); 
    line-height: 1.12; 
  }

  h2 { 
    font-size: clamp(1.45rem, 6vw, 1.9rem); 
    line-height: 1.18; 
  }

  p, li { 
    font-size: 0.98rem; 
  }

  .hero-actions { 
    flex-direction: column; 
    align-items: stretch; 
  }

  .hero-actions .cta-btn { 
    width: 100%; 
    text-align: center; 
  }

  .service, 
  .work-card, 
  .sector, 
  .problem { 
    overflow-wrap: anywhere; 
  }

  .mobile-menu {
    height: 100vh;
    height: 100dvh;
    padding: 82px 24px calc(90px + env(safe-area-inset-bottom));
  }

  .mobile-menu ul {
    margin-bottom: 14px;
  }

  .mobile-menu ul a {
    padding: 13px 6px;
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .mobile-menu .cta-btn {
    padding: 13px 16px;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .mobile-quick {
    margin-top: 14px;
    padding-top: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-quick a {
    padding: 11px 10px;
    font-size: 0.95rem;
    line-height: 1.2;
  }
}


/* Correction logo navigation MAPGEO */
header .brand img,
.mobile-menu-header .brand img {
  display: block;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(191, 161, 120, 0.45);
}

header .brand {
  min-width: max-content;
}

@media (max-width: 420px) {
  header .brand-text span { display: none; }
  header .brand img { height: 38px; width: 38px; }
}
