/* Logistics365 Sàrl – feuille de style principale */

:root {
  --red: #E8212B;
  --red-dark: #C41A1A;
  --red-tint: #FDE8E9;
  --yellow: #F8C018;
  --yellow-tint: #FEF3D0;
  --blue: #3BB4EE;
  --blue-tint: #E3F4FD;
  --ink: #1A1D29;
  --ink-soft: #2B3040;
  --muted: #5F6676;
  --line: #E6E8EF;
  --line-strong: #CBD0DC;
  --canvas: #F6F7FA;
  --surface: #FFFFFF;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Le faisceau (motif tiré du logo) ---------- */
.beam {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-35deg);
  transform-origin: center;
  pointer-events: none;
}
.beam i {
  display: block;
  width: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #F02830, #D01818);
}
.beam i:nth-child(1) { height: 84px; }
.beam i:nth-child(2) { height: 120px; background: var(--yellow); }
.beam i:nth-child(3) { height: 68px; background: var(--yellow); }
.beam i:nth-child(4) { height: 150px; }
.beam i:nth-child(5) { height: 104px; }

/* Marque de section : deux traits, rouge puis jaune */
.mark {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.mark::before, .mark::after {
  content: "";
  display: block;
  height: 5px;
  border-radius: 3px;
}
.mark::before { width: 40px; background: var(--red); }
.mark::after { width: 14px; background: var(--yellow); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(26, 29, 41, .35);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--red-dark);
}
.brand-icon {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: none;
}
.brand-icon img {
  width: 80px;
  height: 72px;
  max-width: none;
  margin-left: -16px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-name small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav ul a:hover::after, .nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { padding: 12px 20px; font-size: .92rem; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
}
.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.menu-bars i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 72px) 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* lueur très douce derrière le visuel */
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(closest-side, var(--canvas), transparent);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 14px;
  border-left: 3px solid var(--yellow);
  max-width: 44ch;
}

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 30px 60px -30px rgba(26, 29, 41, .45);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.beam-hero {
  position: absolute;
  left: -44px;
  bottom: -28px;
}
.hero-badge {
  position: absolute;
  top: 24px;
  right: -16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 30px -12px rgba(26, 29, 41, .35);
  font-size: .9rem;
  color: var(--ink);
}
.hero-badge svg { color: var(--red); flex: none; }
.hero-badge strong { font-weight: 600; }

/* Séquence d'ouverture (une seule fois, au chargement) */
.hero-copy > *, .hero-visual {
  animation: rise .8s var(--ease) both;
}
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-visual { animation-delay: .25s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Bandeau de confiance ---------- */
.trust { padding: 0 0 8px; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-list li {
  padding: 28px 24px 28px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}
.trust-list li:last-child { border-right: 0; margin-right: 0; }
.trust-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--red-dark);
  margin-bottom: 4px;
}
.trust-list span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--canvas); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media-contain img, .service-media-square img {
  object-fit: contain;
  padding: 16px;
}
.service-body { padding: 24px 24px 28px; }
.service h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

.service-wide {
  grid-column: span 2;
  flex-direction: row;
}
.service-wide .service-media {
  flex: 0 0 56%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.service-wide .service-body {
  padding: 36px 32px;
  align-self: center;
}
.service-wide h3 { font-size: 1.6rem; }

.service-ofac {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.service-ofac h3 { color: #fff; }
.service-ofac p { color: rgba(255, 255, 255, .78); max-width: 62ch; }
.service-ofac .service-body { padding: 36px 32px; }
.ofac-visual {
  flex: 0 0 280px;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--yellow);
}
.beam-small { position: absolute; left: -10px; top: 28px; opacity: .85; }
.beam-small i { width: 10px; }
.beam-small i:nth-child(1) { height: 60px; }
.beam-small i:nth-child(2) { height: 90px; }
.beam-small i:nth-child(3) { height: 50px; }
.beam-small i:nth-child(4) { height: 110px; }
.beam-small i:nth-child(5) { height: 76px; }
.ofac-plane { position: relative; margin-left: 90px; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.why-visual { position: relative; }
.why-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.beam-why { position: absolute; left: -44px; bottom: -32px; }
.section-head-left { margin-bottom: 24px; }
.why-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list svg { color: var(--red); margin-top: 2px; }
.why-list h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.why-list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--canvas); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form-error {
  color: var(--red-dark);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.form-hint { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }

.contact-info { display: grid; gap: 24px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
}
.contact-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.contact-card address { font-style: normal; }
.contact-card address p { margin-bottom: 10px; }
.contact-card address a { font-weight: 500; }
.hours { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.hours h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.hours p { margin: 0; color: var(--muted); }
.map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-tint);
}
.map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.map-link {
  display: block;
  padding: 10px 16px;
  font-size: .85rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: .92rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo { width: 96px; margin-bottom: 14px; }
.footer-brand p { margin: 0; line-height: 1.5; }
.footer-nav, .footer-legal { display: grid; gap: 10px; justify-items: start; }
.footer-nav a, .footer-legal a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--red); text-decoration: underline; }
.footer-legal p { margin: 10px 0 0; font-size: .85rem; }

/* ---------- Pages légales ---------- */
.legal-page { padding-top: calc(var(--header-h) + 56px); padding-bottom: 80px; }
.legal-page .section-head { margin-bottom: 32px; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-body .todo {
  background: var(--yellow-tint);
  border-left: 3px solid var(--yellow);
  padding: 2px 8px;
  border-radius: 4px;
}
.legal-intro { font-size: 1.05rem; color: var(--muted); }

/* ---------- Apparition au défilement (ajoutée par script.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { max-width: 14ch; }
  .why-grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(26, 29, 41, .4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-cta { margin-top: 8px; }

  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .hero-visual { margin-inline: 0 16px; }
  .hero-badge { right: 12px; top: 12px; }
  .beam-hero { left: -20px; bottom: -22px; transform: rotate(-35deg) scale(.8); }

  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li { padding: 22px 20px 22px 0; margin-right: 20px; }
  .trust-list li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .trust-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  section { padding: 72px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-wide { grid-column: span 2; flex-direction: column; }
  .service-wide .service-media { flex: none; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-wide .service-body { padding: 24px; align-self: auto; }
  .service-wide h3 { font-size: 1.35rem; }
  .service-ofac { flex-direction: column; align-items: stretch; }
  .ofac-visual { flex: none; min-height: 150px; }
  .service-ofac .service-body { padding: 24px; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-photo { aspect-ratio: 4 / 3; }
  .beam-why { left: -6px; bottom: -34px; transform: rotate(-35deg) scale(.7); }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); max-width: none; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { margin-inline: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .beam-hero { left: -6px; bottom: -36px; transform: rotate(-35deg) scale(.6); }
  .hero-badge { font-size: .82rem; padding: 10px 12px; }
  .hero-badge svg { width: 18px; height: 18px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-right: 0; margin-right: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .trust-list li:last-child { border-bottom: 0; }
  .trust-list strong { font-size: 1.3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-wide { grid-column: auto; }
  .section-head { margin-bottom: 32px; }
  .contact-form, .contact-card { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ofac-plane { margin-left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-visual { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav ul a::after, .menu-bars i { transition: none; }
}
.legal-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
