/* ==========================================================================
   DB Nexus Africa — feuille de style principale
   Charte : bleu nuit #0B1F3A · or #E09F00 / #F2A900 · Montserrat + Inter
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #132B4F;
  --navy-3: #1C3A66;
  --gold: #E09F00;
  --gold-2: #F2A900;
  --ink: #0B1F3A;
  --text: #2D3748;
  --muted: #5A6578;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9C4D6;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .06);
  --shadow-lg: 0 2px 4px rgba(11, 31, 58, .06), 0 18px 40px rgba(11, 31, 58, .12);
  --font-title: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold-2); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-2); color: var(--navy); }
.btn-gold:hover { background: #FFB914; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: .01em; }
.brand-sub { font-weight: 600; font-size: .68rem; letter-spacing: .5em; color: var(--gold); margin-top: 5px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold-2); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: .5em .9em; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy);
}
.main-nav a:hover { background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav .btn { margin-left: 8px; padding: .6em 1.2em; }
.main-nav .btn-navy, .main-nav .btn-navy:hover { color: #fff; }
.main-nav .btn:hover { background: var(--navy-3); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: .8em 1em; border-radius: 10px; }
  .main-nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 10%, #1C3A66 0%, rgba(28,58,102,0) 60%), var(--navy);
  color: var(--on-dark);
  padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 10vw, 130px);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-2); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; list-style: none; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: #DCE4F0;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  padding: .45em 1em; border-radius: 999px;
}
.hero-tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }

.eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Cartes pôles ---------- */
.pole-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px 32px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pole-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #CBD5E3; }
.pole-card::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px;
  background: var(--gold-2); border-radius: 0 0 3px 3px; transform: scaleX(.25); transform-origin: left;
  transition: transform .35s;
}
.pole-card:hover::before { transform: scaleX(1); }
.pole-card p { color: var(--muted); }
.pole-card .card-link { margin-top: auto; padding-top: 12px; }

.icon-chip {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); margin-bottom: 22px;
}
.icon-chip svg { width: 28px; height: 28px; }
.icon-chip.light { background: #EEF2F8; color: var(--navy); }

.checks { list-style: none; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: #FFF4D6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23B97F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section-dark .checks li { color: var(--on-dark-muted); }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem; color: var(--navy); text-decoration: none;
}
.card-link svg { width: 18px; height: 18px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Atouts ---------- */
.feature { padding: 8px 4px; }
.feature p { color: var(--muted); margin: 0; }
.section-dark .feature p { color: var(--on-dark-muted); }

/* ---------- Méthode ---------- */
.steps { list-style: none; counter-reset: step; }
.step {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px;
}
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--font-title); font-weight: 800; font-size: 2.2rem;
  color: var(--gold); line-height: 1; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Ouverture / évolutions ---------- */
.future { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.future-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.future-list li {
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .8em 1.1em;
  background: rgba(255,255,255,.04);
}
.future-list li.next { border-style: dashed; border-color: var(--gold-2); color: var(--gold-2); }
@media (max-width: 860px) { .future { grid-template-columns: 1fr; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 24px; padding: clamp(36px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  color: var(--on-dark-muted);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }

/* ---------- Pages de pôle ---------- */
.page-hero {
  background: radial-gradient(900px 500px at 85% 0%, #1C3A66 0%, rgba(28,58,102,0) 60%), var(--navy);
  color: var(--on-dark-muted); padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { font-size: 1.15rem; max-width: 680px; }
.breadcrumb { font-size: .85rem; margin-bottom: 22px; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--gold-2); }

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px 22px; transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.panel {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--line);
}
.panel h3 { margin-bottom: 1em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { list-style: none; margin-top: 28px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .icon-chip { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.contact-info .icon-chip svg { width: 22px; height: 22px; }
.contact-info strong { display: block; font-family: var(--font-title); color: var(--navy); }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; background: #FBFCFE;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(28,58,102,.12); background: #fff;
}
.field .error { color: #B42318; font-size: .85rem; margin-top: 6px; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D92D20; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; color: #067647; }
.form-status.is-error { color: #B42318; }
.footer-about { margin-top: 18px; max-width: 320px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: #071528; color: var(--on-dark-muted); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: .85rem;
}

/* ---------- Pages légales ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
