/* =========================================================================
   GNI — GLOBAL NEGOCE INTERNATIONAL
   Direction artistique : Corporate · Premium · Institutional · Commodities
   Palette extraite du logo fourni :
     - Noir de fond            #000000
     - Bleu acier (dégradés)   #1F3961 · #2F4261 · #4D6187 · #7D8FB5 · #A9B6D4
     - Rouge accent (sphère)   #E23A55 · #F2566E
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS */
:root {
  --black: #000000;
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(148, 164, 199, 0.16);
  --line-strong: rgba(148, 164, 199, 0.32);

  --steel-900: #1f3961;
  --steel-700: #2f4261;
  --steel-500: #4d6187;
  --steel-300: #7d8fb5;
  --steel-200: #a9b6d4;

  --red: #e23a55;
  --red-bright: #f2566e;
  --red-deep: #c22041;

  --text: #e9edf6;
  --text-dim: #b9c2d6;
  --muted: #98a3bb;
  --muted-low: #6e7893;
  --error: #ff7a8c;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------- RESET  */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Texture industrielle très discrète, en dessous du contenu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--steel-300);
  outline-offset: 3px;
}

/* ---------------------------------------------------------- UTILITAIRES */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 14px 20px;
  background: #000;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--red);
  flex: 0 0 auto;
}

.req { color: var(--red); font-weight: 600; }

/* -------------------------------------------------------------- BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 56px;
  padding: 0 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease), opacity 0.25s linear;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(226, 58, 85, 0.95);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover {
  border-color: var(--steel-200);
  background: rgba(255, 255, 255, 0.05);
}

.btn--sm {
  height: 42px;
  padding: 0 1.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------- HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px); }

.brand__rule {
  width: 1px;
  height: 26px;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.brand__mention {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- HERO */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + min(40px, 5vh)) 0 min(88px, 11vh);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__logo {
  width: clamp(180px, min(21vw, 34vh), 300px);
  height: auto;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.hero__title {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(2.15rem, min(5.6vw, 8vh), 4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f2f5fb;
}
.hero__title span { display: block; }

.hero__lead {
  max-width: 54ch;
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero__mail {
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  color: var(--steel-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 182, 212, 0.35);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero__mail:hover { color: #fff; border-color: var(--red); }

/* --------------------------------------------------- DÉCORATIONS DU HERO */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero__glow--a {
  top: -20%;
  right: -14%;
  width: min(78vw, 820px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(77, 97, 135, 0.36),
    rgba(77, 97, 135, 0.12) 45%,
    rgba(77, 97, 135, 0) 70%
  );
}
.hero__glow--b {
  bottom: -32%;
  right: 4%;
  width: min(70vw, 660px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(226, 58, 85, 0.18),
    rgba(226, 58, 85, 0.06) 45%,
    rgba(226, 58, 85, 0) 70%
  );
}

/* Globe / graticule abstrait */
.hero__globe {
  position: absolute;
  top: 50%;
  right: -4%;
  width: min(74vh, 680px);
  height: auto;
  transform: translateY(-50%);
  color: var(--steel-300);
  opacity: 0.4;
}
.globe-lines {
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-opacity: 0.5;
  fill: none;
}
.globe-node circle {
  fill: var(--red);
  opacity: 0.9;
}

/* Routes commerciales */
.hero__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.route {
  fill: none;
  stroke: var(--steel-300);
  stroke-width: 1;
  stroke-dasharray: 5 11;
  animation: route-flow 28s linear infinite;
}
.route--1 { stroke-opacity: 0.32; }
.route--2 { stroke-opacity: 0.22; animation-duration: 36s; animation-direction: reverse; }
.route--3 { stroke-opacity: 0.16; animation-duration: 44s; }
.route-nodes circle { fill: var(--red); opacity: 0.7; }

@keyframes route-flow {
  to { stroke-dashoffset: -320; }
}

/* Indicateur de défilement */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.scroll-cue__line {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, rgba(125, 143, 181, 0), var(--steel-300));
  animation: cue-pulse 3s ease-in-out infinite;
}
.scroll-cue__label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-low);
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* -------------------------------------------------------------- SECTIONS */
.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section__title {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #f2f5fb;
}
.section__title--sm { font-size: clamp(1.75rem, 3vw, 2.4rem); }

.section__title:focus { outline: none; }
.section__title:focus-visible { outline: 2px solid var(--steel-300); outline-offset: 8px; }

.section__lead {
  max-width: 62ch;
  margin-top: clamp(22px, 2.6vw, 30px);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.8;
  color: var(--text-dim);
}

.br-desktop { display: none; }

/* --------------------------------------------------------------- MARCHÉS */
.markets {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 34px);
  margin-top: clamp(52px, 6vw, 76px);
}

.market {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.market__index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.market__title {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.market__desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------- CONTACT */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(34px, 4vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contact__direct-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__direct a {
  align-self: flex-start;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 182, 212, 0.32);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  word-break: break-word;
}
.contact__direct a:hover { color: #fff; border-color: var(--red); }

.contact__note {
  max-width: 40ch;
  margin-top: 26px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted-low);
}

.contact__panel {
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* -------------------------------------------------------------- FORMULAIRE */
.form__status {
  margin-bottom: clamp(24px, 3vw, 32px);
  padding: 16px 20px;
  border-left: 2px solid;
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.form__status--success {
  background: rgba(125, 143, 181, 0.1);
  border-left-color: var(--steel-300);
  color: var(--text);
}
.form__status--error {
  background: rgba(226, 58, 85, 0.1);
  border-left-color: var(--error);
  color: #ffd9de;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 36px);
}
.field--full { grid-column: 1 / -1; }

.field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.field:focus-within .field__label { color: var(--steel-200); }

.field__input {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 164, 199, 0.3);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder {
  color: var(--muted-low);
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.field__input:hover { border-bottom-color: rgba(148, 164, 199, 0.55); }
.field__input:focus {
  outline: none;
  border-bottom-color: var(--steel-300);
  box-shadow: 0 1px 0 0 var(--steel-300);
}
.field__input:focus::placeholder { opacity: 0.55; }

.field__input[aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}

.field__textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
  padding-top: 12px;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--error);
}
.field__error[hidden] { display: none; }
.field__error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

/* Consentement */
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}
.consent__box {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border: 1px solid rgba(148, 164, 199, 0.55);
  border-radius: 2px;
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.consent__box::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.22s var(--ease);
}
.consent__box:checked {
  background: var(--red);
  border-color: var(--red);
}
.consent__box:checked::after { transform: rotate(-45deg) scale(1); }
.consent__box:hover { border-color: var(--steel-200); }
.consent__box[aria-invalid="true"] { border-color: var(--error); }

.consent__label {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-dim);
  cursor: pointer;
}
.consent .field__error { grid-column: 2; }

/* Champ leurre (honeypot) — jamais visible, jamais atteint au clavier */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hp label { display: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: clamp(30px, 4vw, 42px);
}
.btn--submit { min-width: 236px; }
.form__hint {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------------------------------------------------------------- FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(38px, 5vw, 58px) 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px 44px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.footer__mark { width: 46px; height: 46px; flex: 0 0 auto; }
.footer__name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.footer__mention {
  margin-top: 7px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__meta { text-align: right; }
.footer__meta > a {
  font-size: 0.9375rem;
  color: var(--steel-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__meta > a:hover { color: #fff; border-color: var(--red); }
.footer__copy {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.footer__note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted-low);
}

/* ------------------------------------------------------------ ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------- RESPONSIVE  */
/* Écrans courts (laptops) : le bouton principal reste au-dessus de la ligne de flottaison */
@media (min-width: 761px) and (max-height: 780px) {
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 64px;
  }
  .hero__logo {
    width: clamp(150px, min(19vw, 26vh), 220px);
    margin-bottom: 24px;
  }
  .hero__actions { margin-top: 30px; }
}

@media (min-width: 560px) {
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .br-desktop { display: block; }
}

@media (min-width: 900px) {
  .markets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market { padding-right: 20px; }
}

@media (max-width: 980px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .brand__mention, .brand__rule { display: none; }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 clamp(80px, 16vw, 110px);
  }
  .hero__globe {
    top: auto;
    bottom: -8%;
    right: -34%;
    width: min(120vw, 560px);
    transform: none;
    opacity: 0.3;
  }
  .hero__glow--a { top: -12%; right: -40%; width: min(130vw, 620px); }
  .hero__glow--b { bottom: -34%; right: -20%; width: min(120vw, 540px); }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
  .btn--submit { width: 100%; }
  .form__footer { flex-direction: column; align-items: stretch; gap: 14px; }
  .form__hint { text-align: center; }
}

@media (max-width: 420px) {
  .brand__mark { width: 36px; height: 36px; }
  .btn { padding: 0 1.5rem; }
  .hero__actions { gap: 16px 20px; }
  .hero__mail { font-size: 0.875rem; }
}

/* ---------------------------------------------------- MOUVEMENT RÉDUIT */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
