/* ============================================================
   Trade3online — Dakar, Sénégal
   palette: cobalt-orange · typography: serif-display-sans-body
   motion: page-load-orchestration · layout: booking-hospitality
   signature: no-signature · background: no-background
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f2f5fb;
  --surface-2: #e7edf8;
  --ink: #0f1b33;
  --ink-soft: #3c4a63;
  --ink-mute: #5b6880;
  --primary: #0b3d91;
  --primary-soft: #dbe4f6;
  --accent: #d94f00;
  --accent-ink: #ffffff;
  --accent-text: #b84300;
  --line: #d8e0ee;
  --ph-bg: #fff2e6;
  --ph-ink: #8a4a12;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 12px 32px -18px rgba(15, 27, 51, .35);
  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

[data-theme="dark"] {
  --bg: #0a1120;
  --surface: #101a2e;
  --surface-2: #16233c;
  --ink: #eef3fb;
  --ink-soft: #c2cee2;
  --ink-mute: #9aa9c2;
  --primary: #7ea6ff;
  --primary-soft: #1a2a48;
  --accent: #ff8a45;
  --accent-ink: #1a0d02;
  --accent-text: #ffa06a;
  --line: #24334e;
  --ph-bg: #2a1d10;
  --ph-ink: #ffc79a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- placeholder styling ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-bottom: 1px dotted currentColor;
  padding: 0 .18em;
  border-radius: 3px;
  font-style: normal;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
}

[data-theme="dark"] .brand-mark { color: #0a1120; }

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: .95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav + .header-actions { margin-left: 0; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.theme-toggle:hover { border-color: var(--primary); }

.theme-toggle svg { fill: none; stroke: currentColor; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(40px, 6vw, 76px) var(--section-y);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.hero-copy h1 { margin-bottom: 20px; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.hero-facts li {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: .95rem;
}

.hero-facts strong {
  color: var(--ink);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-facts span { color: var(--ink-mute); }

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.badge-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 3px;
}

.badge-text { font-size: .95rem; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface); }

.section-head { max-width: 68ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 66ch; }

/* ---------- catalogue cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

[data-theme="dark"] .tag { color: var(--primary); }

.price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-mute);
}

.catalogue-note {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 78ch;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}

.steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}

.step-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 14px;
}

.steps h3 { margin-bottom: 10px; }
.steps p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

.order-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .order-band { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

.order-band-copy { max-width: 62ch; }
.order-band h3 { color: inherit; margin-bottom: 8px; }
.order-band p { color: inherit; opacity: .88; font-size: .98rem; margin: 0; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-copy h2 { margin-bottom: 18px; }
.split-copy > p { color: var(--ink-soft); }

.facts { margin: 28px 0 0; display: grid; gap: 0; }

.facts > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
}

.facts dd { margin: 0; font-size: .97rem; color: var(--ink-soft); }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); max-width: 62ch; }

.about-media { margin: 0; }

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-media figcaption {
  margin-top: 12px;
  font-size: .86rem;
  color: var(--ink-mute);
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; max-width: 82ch; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 6px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 500;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-text);
  line-height: 1;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  padding: 0 40px 20px 0;
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 72ch;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--ink-soft); max-width: 48ch; }

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .96rem;
}

.contact-list li > span:first-child {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  padding-top: 2px;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease, background .18s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  background: var(--bg);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: .8; }

.contact-form .btn { justify-self: start; }

.form-status {
  font-size: .94rem;
  color: var(--ink-soft);
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: start;
}

.footer-brand { display: flex; gap: 12px; align-items: flex-start; }

.footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 3px;
}

.footer-line { font-size: .92rem; color: var(--ink-mute); margin: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .93rem;
}

.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

.footer-legal {
  grid-column: 1 / -1;
  font-size: .84rem;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.attribution {
  position: static;
  text-align: center;
  margin: 28px auto 0;
  font-size: .78rem;
  opacity: 1;
  color: var(--ink-mute);
}

.attribution a { color: var(--ink-mute); text-decoration: underline; }
.attribution a:hover { color: var(--primary); }

/* ---------- page-load orchestration ---------- */
@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: slide-down .55s cubic-bezier(.22,.7,.3,1) both; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.22,.7,.3,1) both; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .17s; }
  .hero-copy > *:nth-child(3) { animation-delay: .29s; }
  .hero-copy > *:nth-child(4) { animation-delay: .41s; }
  .hero-copy > *:nth-child(5) { animation-delay: .53s; }
  .hero-media { animation: rise .8s cubic-bezier(.22,.7,.3,1) .3s both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .split, .about, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .split-media { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-name { font-size: 1.08rem; }
  .hero-facts li { grid-template-columns: 1fr; gap: 2px; }
  .contact-list li { grid-template-columns: 1fr; gap: 3px; }
  .order-band { flex-direction: column; align-items: flex-start; }
  .order-band .btn { width: 100%; }
  .hero-badge { position: static; margin-top: 12px; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
