/* Nexus Trade Africa — feuille de style unique
   Concept : un bordereau d'expédition. Fond clair « papier de cale », encre bleu-pétrole,
   jaune grue portuaire pour les liaisons Asie ↔ Afrique. */

:root {
  --paper: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #12282C;
  --muted: #55696C;
  --line: #D5DFDD;
  --teal: #0F4C55;
  --teal-ink: #F4F7F6;
  --ochre: #E6A417;
  --ochre-ink: #2A1E04;
  --ok: #1E7A4C;
  --err: #B3261E;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Instrument Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-code: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1A1D; --surface: #12262A; --ink: #E7EEEC; --muted: #9DB0AE; --line: #24403F;
    --teal: #1B6672; --teal-ink: #F4F7F6; --ochre: #F0B53A; --ochre-ink: #2A1E04; --ok: #5CC28C; --err: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1A1D; --surface: #12262A; --ink: #E7EEEC; --muted: #9DB0AE; --line: #24403F;
  --teal: #1B6672; --teal-ink: #F4F7F6; --ochre: #F0B53A; --ochre-ink: #2A1E04; --ok: #5CC28C; --err: #FF8A80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ochre); color: var(--ochre-ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.code { font-family: var(--f-code); font-size: .82rem; letter-spacing: .02em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px;
  padding: .7em 1.3em; border-radius: var(--r); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ochre); color: var(--ochre-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ochre) 85%, #000); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); font-family: var(--f-body); font-weight: 500; margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--r); font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ochre); border-radius: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); width: 48px; height: 48px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; color: var(--ink); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ochre); padding-left: 14px; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}
@media (min-width: 961px) { .nav .btn { display: none; } }
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.35rem; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.band-teal { background: var(--teal); color: var(--teal-ink); }
.band-teal .lede, .band-teal .muted { color: color-mix(in srgb, var(--teal-ink) 78%, transparent); }
.band-surface { background: var(--surface); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }

/* ---------- Héros ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-block: 14px 24px; }
.hero .kicker { font-weight: 600; color: var(--teal); }
:root[data-theme="dark"] .hero .kicker { color: var(--ochre); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .kicker { color: var(--ochre); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Bordereau d'itinéraire */
.manifest {
  background: var(--teal); color: var(--teal-ink); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15, 76, 85, .55);
}
.manifest-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px dashed color-mix(in srgb, var(--teal-ink) 30%, transparent); }
.manifest-top strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; }
.manifest-top span { color: color-mix(in srgb, var(--teal-ink) 70%, transparent); font-size: .85rem; }
.manifest svg.route { display: block; width: 100%; height: auto; }
.manifest table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.manifest th, .manifest td { text-align: left; padding: 11px 22px; border-top: 1px solid color-mix(in srgb, var(--teal-ink) 16%, transparent); vertical-align: top; }
.manifest th { font-weight: 500; color: color-mix(in srgb, var(--teal-ink) 70%, transparent); font-size: .82rem; }
.manifest td .code { color: var(--ochre); display: block; }
.manifest td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.manifest-foot { padding: 12px 22px 16px; font-size: .8rem; color: color-mix(in srgb, var(--teal-ink) 65%, transparent); border-top: 1px dashed color-mix(in srgb, var(--teal-ink) 30%, transparent); }
.route .dash { animation: sail 2.4s ease-out .3s both; }
@keyframes sail { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

/* ---------- Étapes (vraie séquence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 56px 24px 0 0; min-width: 0; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ochre); color: var(--ochre-ink);
  font: 800 1.1rem/1 var(--f-display); z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
.steps a { display: inline-block; margin-top: 12px; font-weight: 600; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::after { top: 44px; bottom: -28px; left: 17px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
}

/* ---------- Atouts ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.points > div { border-top: 3px solid var(--ochre); padding-top: 20px; min-width: 0; }
.points h3 { margin-bottom: 10px; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; } }

/* ---------- Implantations ---------- */
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hub { background: var(--surface); padding: 32px; min-width: 0; }
.hub .code { color: var(--muted); }
.hub h3 { margin-block: 6px 12px; }
.hub ul { margin: 16px 0 0; padding-left: 1.1em; color: var(--muted); }
@media (max-width: 900px) { .hubs { grid-template-columns: 1fr; } }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.quotes figure { margin: 0; min-width: 0; }
.quotes blockquote { margin: 0 0 16px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.quotes figcaption { color: var(--muted); }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 18ch; }

/* ---------- Pages intérieures ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px; max-width: 18ch; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }

.service { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 72px); padding-block: 48px; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service > * { min-width: 0; }
.service-num { font: 800 4.5rem/1 var(--f-display); color: var(--ochre); }
.service h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 8px; }
.service .body { display: grid; gap: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.deliver { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; font-size: .95rem; }
.deliver strong { display: block; margin-bottom: 4px; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } .service-num { font-size: 3.2rem; } }

.prose { max-width: 66ch; display: grid; gap: 18px; font-size: 1.1rem; }
.prose h2 { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ochre); }
.timeline strong { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 800; }
.timeline p { color: var(--muted); }

.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.values li { border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 18px; font-weight: 600; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 28px; }
.member { min-width: 0; display: grid; gap: 12px; align-content: start; }
.avatar { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--teal); display: grid; place-items: center; }
.avatar span { font: 800 4rem/1 var(--f-display); color: color-mix(in srgb, var(--teal-ink) 80%, transparent); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.5rem; }
.member .role { color: var(--teal); font-weight: 600; font-size: .95rem; }
:root[data-theme="dark"] .member .role { color: var(--ochre); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .member .role { color: var(--ochre); } }
.member p { color: var(--muted); font-size: .97rem; }
.member a.mail { font-size: .9rem; word-break: break-all; color: var(--muted); }
.team-group { margin-bottom: 64px; }
.team-group > h2 { font-size: 1.9rem; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 45%, transparent); }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.aside-card { background: var(--teal); color: var(--teal-ink); border-radius: 10px; padding: 28px; display: grid; gap: 22px; }
.aside-card h2 { font-size: 1.8rem; }
.aside-card dt { font-size: .85rem; color: color-mix(in srgb, var(--teal-ink) 70%, transparent); }
.aside-card dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.aside-card dl { margin: 0; display: grid; gap: 16px; }
.aside-card a { color: var(--teal-ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 64px 32px; }
.site-footer a { color: inherit; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; opacity: .7; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid .brand-name { font-size: 1.8rem; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; opacity: .75; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Bouton WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Mentions ---------- */
.legal { max-width: 72ch; display: grid; gap: 14px; }
.legal h2 { font-size: 1.9rem; margin-top: 28px; }
.legal .todo { background: color-mix(in srgb, var(--ochre) 28%, transparent); padding: 0 4px; border-radius: 3px; }
@media (max-width: 600px) {
  .team { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .avatar span { font-size: 2.6rem; }
  .member h3 { font-size: 1.25rem; }
  .member p, .member a.mail { font-size: .88rem; }
}

/* ---------- Fiche riz ---------- */
.spec-wrap { min-width: 0; display: grid; gap: 20px; }
.spec { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .97rem; }
.spec caption { text-align: left; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; padding-bottom: 12px; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { font-weight: 600; }
.spec td:last-child { color: var(--muted); white-space: nowrap; }
.spec-notes { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.spec-notes dt { font-size: .85rem; color: var(--muted); }
.spec-notes dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 560px) {
  .spec-notes { grid-template-columns: 1fr; }
  .spec th, .spec td { padding: 10px 12px; }
  .spec td:last-child { white-space: normal; }
}
.member .place { font-size: .88rem; color: var(--muted); margin-top: 2px; }

/* ---------- Confirmation d'envoi ---------- */
.form-zone { min-width: 0; }
.form-success {
  display: grid; gap: 14px; justify-items: start;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ok);
  border-radius: 10px; padding: clamp(24px, 4vw, 40px);
  animation: pop .35s ease-out;
}
.form-success svg { width: 56px; height: 56px; color: var(--ok); }
.form-success h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.form-success p { max-width: 52ch; font-size: 1.1rem; }
.form-success:focus { outline: none; }
.form-success .btn { margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.consent span { min-width: 0; }

/* ---------- Catégories de produits ---------- */
#produits { border-top: 1px solid var(--line); }
.cats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; }
.cat {
  display: grid; align-content: start; gap: 10px; min-width: 0;
  padding: 24px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .15s;
}
.cat:hover { border-color: var(--teal); }
.cat h3 { font-size: 1.6rem; }
.cat p { color: var(--muted); font-size: .97rem; }
.cat .more { font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; }
.cat-main { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.cat-main p { color: color-mix(in srgb, var(--teal-ink) 80%, transparent); }
.cat-main h3 { font-size: 2.2rem; }
.cat-main:hover { border-color: var(--ochre); }
.cat .tag { justify-self: start; background: var(--ochre); color: var(--ochre-ink); font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.cats-note { margin-top: 24px; }
@media (max-width: 1000px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
