/* YAM FREIGHT — Professional, clean, sophisticated */

:root {
  --bg: #f9f8f7;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-light: #666;
  --ink-lighter: #999;
  --navy: #1e40af;
  --navy-dark: #0f2461;
  --blue-light: #3b5bdb;
  --border: #e5e5e5;
  --border-light: #f0f0f0;

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Lora", "Georgia", serif;
  --mono: "Menlo", "Monaco", "Courier New", monospace;

  --wrap: 1200px;
  --gutter: clamp(24px, 5vw, 48px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin: 0 0 1.2em; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy); color: var(--paper); }

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

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lighter);
}


/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn--primary {
  background: var(--navy);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* TOPBAR */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; }
.topbar .label { color: rgba(255,255,255,0.8); }
.topbar a { color: rgba(255,255,255,0.9); }
.topbar a:hover { color: var(--paper); }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img { width: 44px; height: 44px; }
.logo__name { display: block; font-size: 1.3rem; font-weight: 700; }
.logo__sub { display: block; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-lighter); margin-top: 2px; }

.menu { display: flex; align-items: center; gap: 36px; }
.menu a { font-size: 0.95rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--navy); color: var(--navy); }
.menu a[aria-current="page"] { color: var(--navy); border-color: var(--navy); }
.menu .btn { padding: 12px 24px; }

.burger { display: none; }

/* HERO */
.hero {
  padding: clamp(60px, 10vw, 100px) 0;
  background: linear-gradient(180deg, #fafaf8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 80px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero__desc { font-size: 1.05rem; line-height: 1.9; color: var(--ink-light); margin-bottom: 32px; }

.hero__cta { display: flex; gap: 16px; }

.hero__visual { position: relative; }
.hero__visual img { border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.12); }

/* FEATURES */
.features {
  padding: clamp(60px, 10vw, 100px) 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 60px;
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.feature h3 { margin-bottom: 16px; font-size: 1.3rem; }
.feature p { margin: 0; color: var(--ink-light); }

/* PROCESS */
.process {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  padding: 32px 24px;
  text-align: center;
  border-radius: 8px;
  background: var(--bg);
  transition: all 0.3s;
}

.step:hover { background: #f0f0f0; }

.step__num {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 12px; font-size: 1.1rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-light); }

/* VIDEO */
.video-section {
  padding: clamp(60px, 10vw, 100px) 0;
  border-bottom: 1px solid var(--border);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  background: var(--ink);
}

.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATS */
.stats {
  padding: clamp(60px, 10vw, 100px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fafaf8 100%);
  border-bottom: 1px solid var(--border);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat { text-align: center; }
.stat__number { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.stat p { margin: 0; font-size: 0.95rem; color: var(--ink-light); }

/* CTA */
.cta {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  border-bottom: none;
}

.cta h2 { color: var(--paper); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }
.cta .btn { margin: 0 auto; background: var(--paper); color: var(--navy-dark); }
.cta .btn:hover { background: #eef2ff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }

/* FOOTER */
.footer {
  background: var(--ink);
  color: #999;
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer__logo { width: 120px; height: auto; filter: brightness(0) invert(1); opacity: 0.9; }

.footer h4 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer a { color: #999; }
.footer a:hover { color: var(--paper); }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header .wrap { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .topbar .wrap { justify-content: center; }
  .hero h1 { font-size: 2.1rem; overflow-wrap: break-word; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0 8px; border-top: 1px solid var(--border-light); margin-top: 12px; }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
  .menu .btn { margin-top: 10px; width: 100%; justify-content: center; }
  .burger { display: block; background: none; border: 2px solid var(--navy); color: var(--navy); font-family: var(--mono); font-size: 0.7rem; font-weight: 600; padding: 10px 14px; border-radius: 6px; cursor: pointer; }
  .features__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .hide-sm { display: none; }
}

/* ========== PAGES INTÉRIEURES ========== */

/* Page head */
.page-head {
  padding: clamp(48px, 8vw, 88px) 0;
  background: linear-gradient(180deg, #fafaf8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-head .label { display: block; margin-bottom: 14px; color: var(--navy); }
.page-head h1 { margin-bottom: 16px; }
.page-head p { max-width: 620px; font-size: 1.05rem; color: var(--ink-light); margin: 0; }

.section { padding: clamp(60px, 10vw, 100px) 0; }

.hero .wrap > *, .features__grid > *, .steps > *, .stats .wrap > *, .footer__grid > *,
.service-detail > *, .contact-grid > *, .about-grid > *, .form__grid > * { min-width: 0; }
.section--alt { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Service detail */
.service-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
}
.service-detail + .service-detail { border-top: 1px solid var(--border); }
.service-detail--reverse .service-detail__text { order: 2; }
.service-detail--reverse img { order: 1; }
.service-detail .label { display: block; margin-bottom: 12px; color: var(--navy); }
.service-detail h2 { margin-bottom: 16px; }
.service-detail p { color: var(--ink-light); }
.service-detail img { border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.service-detail .btn { margin-top: 8px; }

.ticks { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq details {
  padding: 20px 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq details:hover { border-color: var(--navy); }
.faq details[open] { border-color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq summary::marker { color: var(--navy); }
.faq details p { margin: 14px 0 0; color: var(--ink-light); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block .label { display: block; margin-bottom: 8px; }
.contact-block p, .contact-block address { margin: 0; font-style: normal; color: var(--ink); line-height: 1.7; }
.contact-big { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.contact-big:hover { color: var(--navy-dark); text-decoration: underline; }

.form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.form__head h3 { font-size: 1.4rem; }
.form__alert { min-height: 1.4em; margin: 0 0 16px; font-size: 0.9rem; }
.form__alert.err { color: #b91c1c; }
.form__alert.ok { color: var(--navy); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.form__foot p { margin: 0; font-size: 0.82rem; color: var(--ink-lighter); max-width: 380px; }
.form__foot a { text-decoration: underline; }

/* À propos */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
.about-prose h2 { margin-bottom: 20px; }
.about-prose p { color: var(--ink-light); }

.sheet-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.sheet-card h3 { margin-bottom: 20px; font-size: 1.3rem; }

.sheet { margin: 0; }
.sheet > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.sheet > div:last-child { border-bottom: none; }
.sheet dt { font-size: 0.82rem; font-weight: 600; color: var(--ink-lighter); text-transform: uppercase; letter-spacing: 0.04em; }
.sheet dd { margin: 0; color: var(--ink); font-size: 0.95rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.photo-wide { margin: 0; }
.photo-wide img { width: 100%; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.photo-wide figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-lighter); text-align: center; }

/* Mentions légales */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-light); }
.legal a { color: var(--navy); text-decoration: underline; }
.legal .sheet {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 24px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail--reverse .service-detail__text { order: 0; }
  .service-detail--reverse img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .sheet > div { grid-template-columns: 1fr; gap: 2px; }
}
