/* ===== MIA — Maison de l'Innovation Africaine ===== */
:root {
  --brand: #14532d;
  --brand-deep: #0b3a20;
  --orange: #f58a07;
  --orange-dark: #c26a00;
  --green-dark: #236f31;
  --green-tint: #f1f8ee;
  --green: #2e8b3e;
  --green-soft: #e6f4e8;
  --peach: #fde7d1;
  --ink: #1b2a20;
  --muted: #566a5c;
  --line: #dde8da;
  --bg: #ffffff;
  --bg-soft: #f3f8f1;
  --blue-soft: #dcebe0;
  --orange-soft: #fff0e0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 61, 36, .10);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--brand); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 3.9vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px;
}

/* Accessibilité */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; padding: 13px 24px;
  border-radius: 10px; border: 2px solid transparent; transition: .2s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46, 139, 62, .35); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; }

/* ===== En-tête ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand img { height: 64px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 600; color: var(--brand); padding: 8px 0; border-bottom: 3px solid transparent; transition: .2s; }
.nav__links a:hover { color: var(--green-dark); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--green); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brand); }
.nav-toggle svg { width: 30px; height: 30px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; background:
  radial-gradient(circle at 100% 0%, var(--green-soft) 0, transparent 42%), #fff; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: 0; width: 320px; height: 100%;
  background: repeating-linear-gradient(135deg, rgba(46, 139, 62, .09) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero p.lead { font-size: 1.15rem; color: var(--ink); margin: 18px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft);
  color: var(--green); font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 10px;
}
.badge svg { width: 18px; height: 18px; }
.hero__media img {
  width: 100%; height: auto; aspect-ratio: 4 / 2.6; object-fit: cover; border-radius: 26px;
  box-shadow: var(--shadow); border: 6px solid #fff;
}

/* ===== Confiance ===== */
.trust { background: var(--bg-soft); padding: 22px 0; border-block: 1px solid var(--line); }
.trust__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); margin-bottom: 12px; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; list-style: none; padding: 0; margin: 0; }
.trust__list li { display: inline-flex; align-items: center; gap: 8px; color: #6d7691; font-weight: 700; letter-spacing: .03em; font-size: .95rem; }
.trust__list svg { width: 20px; height: 20px; }

/* ===== Cartes ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 24px; margin-top: 44px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 22px 24px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--green)); position: relative;
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 61, 36, .16); }
.card__icon {
  width: 68px; height: 68px; border-radius: 16px; margin: -62px auto 16px; display: grid; place-items: center;
  background: var(--bg-c, var(--green-soft)); border: 2px solid var(--c, var(--green)); color: var(--c, var(--green));
}
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__more { color: var(--orange-dark); font-weight: 700; font-size: .92rem; }
.card__more:hover { text-decoration: underline; }
.card--agro   { --c: var(--green);  --bg-c: var(--green-soft); }
.card--sante  { --c: #ee7a2a;       --bg-c: #fde9dc; }
.card--solaire{ --c: #f2a30f;       --bg-c: #fff3d6; }
.card--btp    { --c: var(--brand);   --bg-c: var(--blue-soft); }
.card--c1 { --c: #1e7a38; --bg-c: #e2f1e5; }
.card--c2 { --c: #3f9b3a; --bg-c: #e9f5e2; }
.card--c3 { --c: #7a8f1f; --bg-c: #f0f4dc; }
.card--c4 { --c: #2f8f6a; --bg-c: #e0f3ec; }
.card--c5 { --c: #e08a00; --bg-c: #fff1d6; }
.card--c6 { --c: #14532d; --bg-c: #dcebe0; }
.cards--services { margin-top: 78px; }
.card h3 { font-size: 1.3rem; }

/* ===== Chiffres ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat span { font-size: .9rem; opacity: .9; }

/* ===== Bandeau CTA ===== */
.cta-band { background: var(--green-soft); padding: 54px 0; text-align: center; }
.cta-band p { max-width: 60ch; margin-inline: auto; color: var(--ink); }

/* ===== Pages internes ===== */
.page-hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--green-soft), #fff); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; height: auto; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(15, 61, 36, .05); }
.box h3 { margin-bottom: 8px; }
.box p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); margin-bottom: 12px; }

/* ===== Formulaire ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--brand); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #cfd5e6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 139, 62, .20); }
.field .error { color: #c0392b; font-size: .85rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; }
.form__status { margin-top: 14px; font-weight: 600; }
.form__status.ok { color: var(--green); }
.form__status.ko { color: #c0392b; }
.info-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px; }
.info-card h3 { color: #fff; }
.info-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.info-card li { display: flex; gap: 12px; align-items: flex-start; }
.info-card svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 2px; }
.info-card a:hover { text-decoration: underline; }

/* ===== Partenaires ===== */
.partners { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px 10px;
  width: 176px; display: grid; justify-items: center; gap: 8px; text-align: center;
}
.partners img { height: 58px; width: auto; max-width: 140px; object-fit: contain; }
.partners span { font-size: .74rem; font-weight: 700; color: var(--muted); line-height: 1.25; }

/* ===== Valeurs, étapes ===== */
.value-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.value-icon svg { width: 28px; height: 28px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.service-box { position: relative; }
.service-box .step-num { background: var(--green); }
.facts { display: grid; gap: 0; margin-top: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--brand); }
.quote { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 34px 32px; margin: 0; }
.quote p { font-size: 1.3rem; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.quote p em { font-style: normal; color: var(--orange); }
.quote footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; opacity: .8; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; }

/* ===== Réalisations ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.shot { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--brand), #2e7d3c); box-shadow: var(--shadow); display: grid; place-items: center; }
.shot__ph { color: rgba(255, 255, 255, .22); width: 84px; height: 84px; }
.shot__ph svg { width: 100%; height: 100%; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; background: linear-gradient(to top, rgba(11, 58, 32, .92), transparent); }
.shot--cta { background: var(--green-soft); }
.shot--cta div { text-align: center; padding: 20px; }
.shot--cta p { font-weight: 700; color: var(--brand); margin-bottom: 14px; }

/* ===== Pages légales ===== */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .note { background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 8px; font-size: .92rem; }

/* ===== Mission ===== */
.mission { background: var(--brand); color: #fff; }
.mission h2 { color: #fff; }
.mission .lead { color: rgba(255, 255, 255, .9); margin-bottom: 1em; }

/* ===== Bandeau défilant ===== */
.ticker { background: var(--brand); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { color: #e4efe7; font-size: .85rem; letter-spacing: .06em; white-space: nowrap; padding: 16px 34px; border-right: 1px solid rgba(255, 255, 255, .16); }
.ticker__track b { color: var(--orange); font-weight: 800; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker__track { animation: none; }
}

/* ===== Éléments désactivés (pages pas encore en ligne) ===== */
.is-disabled { cursor: not-allowed; }
.nav__links .is-disabled { color: #8a9a8f; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; }
.btn.is-disabled { opacity: .5; box-shadow: none; }
.btn.is-disabled:hover { transform: none; }
.btn--primary.is-disabled:hover { background: var(--green); }
.btn--outline.is-disabled:hover { background: #fff; color: var(--brand); }
.card__more.is-disabled { color: var(--muted); }
.card__more.is-disabled:hover { text-decoration: none; }
.site-footer .is-disabled { opacity: .5; }
@media (max-width: 900px) {
  .nav__links .is-disabled { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .mobile-cta a.btn { color: #fff; justify-content: center; padding: 13px 24px; border-bottom: 0; margin-top: 12px; }
}

/* ===== Réseaux sociaux ===== */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__slogan { font-size: .92rem; margin-bottom: 16px; }
.footer__tel { display: grid; gap: 4px; }

/* ===== Pied de page ===== */
.site-footer { background: var(--brand-deep); color: #c9d0e6; padding: 56px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand img { height: 74px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }

/* ===== Animations d'apparition ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 70px 22px; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .gallery { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 86px; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta .btn { display: none; }
  .nav__links .mobile-cta { display: block; padding-top: 16px; }
}
@media (min-width: 901px) { .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .cards, .grid-3, .grid-2, .stats, .form__row, .footer__grid, .gallery { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .brand img { height: 52px; }
  .nav { min-height: 72px; }
  .nav__links { top: 72px; }
  .partners li { width: calc(50% - 8px); padding: 10px 8px; }
}
