/* ==========================================================================
   Camelia Logistics — feuille commune à toutes les pages
   Noir et blanc, un seul accent (indigo). Les couleurs du logo ne servent
   qu'aux statuts, jamais en aplat décoratif.
   ========================================================================== */

/* Polices auto-hébergées, sous-ensemble latin.
   Bricolage Grotesque : axe opsz figé à 72 (taille d'affichage), graisses 600-800.
   Plus Jakarta Sans : graisses 400-700. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Polices de repli ajustées pour limiter le saut de mise en page au chargement */
@font-face {
  font-family: "Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Neue Bold");
  font-weight: 700;
  size-adjust: 96%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Body Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica Neue");
  size-adjust: 106%;
  ascent-override: 98%;
  descent-override: 22%;
}

:root {
  /* Couleurs de base */
  --ink: #0E0E10;
  --ink-2: #1C1C20;
  --paper: #FFFFFF;
  --mist: #F4F4F6;
  --line: #E7E7EB;
  --muted: #5B5B63;
  --text-soft: #45454D;
  --on-dark: rgba(255, 255, 255, .72);
  --on-dark-muted: rgba(255, 255, 255, .58);
  --line-dark: rgba(255, 255, 255, .14);

  /* Accent unique */
  --indigo: #4818F0;
  --indigo-press: #3A10CC;

  /* Couleurs de statut (logo) : arrêts, pastille, repères d'étape uniquement */
  --sky: #30B4FC;
  --magenta: #C018D8;
  --yellow: #FCC00C;
  --red: #FC3018;
  --green: #48D818;

  /* Typographie */
  --display: "Bricolage Grotesque", "Display Fallback", "Helvetica Neue", Arial, sans-serif;
  --body: "Plus Jakarta Sans", "Body Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Espacements et gabarit */
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 22px;
  --radius-s: 14px;
  --nav-h: 72px;

  /* Mouvement */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

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

/* Focus visible : anneau blanc + indigo, lisible sur fond noir comme sur fond blanc */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--indigo);
  border-radius: 6px;
}

/* Lien d'évitement */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* Surtitre */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-press); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262B; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E9E9EE; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--mist); }

/* ---------- En-tête ----------
   La barre est en mix-blend-mode: difference : elle passe seule du blanc (sur fond noir)
   au noir (sur fond blanc). Le panneau du menu mobile est un élément séparé, opaque,
   car un fond plein en mode « difference » deviendrait transparent. */
.site-header { display: contents; }
.nav-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .35s var(--ease-out);
}
.nav-bar.is-hidden { transform: translateY(-100%); }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.025em;
  text-decoration: none; white-space: nowrap;
}
.brand span { font-weight: 600; opacity: .62; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a, .nav-cta {
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid currentColor; border-radius: 999px;
}
.menu-toggle { display: none; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 4px; margin-left: auto; }

.menu-panel {
  position: fixed; inset: 0; z-index: 59;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 40px;
  background: var(--ink); color: #fff;
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 9vw, 56px); letter-spacing: -.035em;
  line-height: 1.15; text-decoration: none;
}
.menu-panel .menu-cta {
  margin-top: 24px; align-self: flex-start;
  font-family: var(--body); font-size: 16px; letter-spacing: 0;
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 999px;
  background: var(--indigo);
}
body.menu-open { overflow: hidden; }

@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  /* Sans JavaScript, le bouton Menu ne peut rien ouvrir : on garde l'accès au téléchargement,
     la navigation complète reste dans le pied de page. */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav-cta { display: inline-flex; margin-left: auto; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; z-index: 2;
  background: var(--ink); color: var(--on-dark);
  padding: 72px 0 40px; border-top: 1px solid var(--line-dark);
  font-size: 15px;
}
.footer-grid {
  display: grid; gap: 40px 32px;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
.site-footer .brand { color: #fff; font-size: 24px; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.site-footer h2 {
  font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { line-height: 1.9; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.socials li + li { margin-top: 0; }
.socials a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
}
.socials a:hover { border-color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--on-dark-muted);
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Apparitions ----------
   La classe .js est posée par site.js : sans JavaScript, rien n'est jamais masqué. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

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