/* =========================================================
   Trakyv — site statique 2026
   Charte : vert #99cc33 + marine (écusson du logo), Work Sans
   ========================================================= */

:root {
  --green: #99cc33;
  --green-600: #82b524;
  --green-700: #6f9e1f;
  --green-tint: #f4f9ea;
  --green-tint-2: #eaf4d6;

  --navy: #26314f;        /* écusson du logo */
  --navy-700: #1d2640;
  --ink: #1d2023;
  --body: #50555c;
  --muted: #767b83;
  --line: #e7e9ec;

  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 32, 35, .06), 0 4px 14px rgba(29, 32, 35, .05);
  --shadow-md: 0 10px 30px rgba(29, 32, 35, .10);
  --container: 1140px;
  --header-h: 70px;

  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
sup { font-size: .62em; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #1f2a07;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--green); color: #1f2a07; }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(29, 32, 35, .18);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-700); box-shadow: none; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* On surfaces sombres (hero) */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); }

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: .5rem .85rem;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  border-radius: 8px;
}
.nav-list a:hover { background: var(--green-tint); color: var(--green-700); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: .55rem 1.1rem !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 720px);
  padding: 6rem 0 5rem;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-bg.jpg") center 38% / cover no-repeat;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(20, 26, 45, .88) 0%, rgba(20, 26, 45, .62) 45%, rgba(20, 26, 45, .25) 100%),
    linear-gradient(0deg, rgba(38, 49, 79, .55), rgba(38, 49, 79, .15));
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #eafbcf;
  background: rgba(153, 204, 51, .14);
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero-title .hl { color: var(--green); }
.hero-lead {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  max-width: 52ch;
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0; }
.section-tint { background: var(--green-tint); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; }
.kicker {
  margin: 0 0 .6rem;
  color: var(--green-700);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Histoire / Repreneur ---------- */
.story { max-width: 68ch; font-size: 1.08rem; }
.story strong { color: var(--ink); font-weight: 600; }

.stats {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green);
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { display: block; margin-top: .4rem; font-size: .98rem; color: var(--body); }

.callout {
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--navy);
  border-radius: var(--radius);
  color: #fff;
}
.callout h3 { color: #fff; margin-bottom: .25rem; }
.callout p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Cartes statut (3 points) ---------- */
.status-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.status-card {
  --accent: var(--green);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.status-card .status-ico {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .9rem;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, white);
}
.status-card h3 { margin-bottom: .4rem; }
.status-card p { margin: 0; color: var(--body); }
.status-card.is-stop  { --accent: #e0574a; }
.status-card.is-on    { --accent: var(--green-600); }
.status-card.is-fade  { --accent: #e9a13b; }

/* ---------- Encadrés "note" ---------- */
.note {
  margin-top: 2.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.note h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.note p { margin: 0; max-width: 78ch; }
.note-info { border-left-color: var(--navy); background: #fbfcfd; }

/* ---------- Section hommage ---------- */
.tribute {
  background: var(--navy);
  color: rgba(255,255,255,.86);
  padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0;
  text-align: center;
}
.tribute-inner { max-width: 760px; }
.tribute h2 { color: #fff; }
.tribute-lead {
  font-size: 1.12rem;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}
.tribute-quote {
  margin: 1.75rem auto 0;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  color: var(--green);
  font-style: italic;
}
.kicker-light { color: #c2e085; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-700);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--green-700); }
.faq-body { padding: 0 1.35rem 1.25rem; }

.arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.arrow-list li { position: relative; padding-left: 1.6rem; }
.arrow-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-700);
  font-weight: 700;
}

/* ---------- Flotte VLS ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.split-text h2 { margin-top: .2rem; }
.feature-list {
  list-style: none;
  margin: 0;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  background: var(--green-tint);
  border-radius: var(--radius);
  border: 1px solid var(--green-tint-2);
}
.feature-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  color: var(--ink);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--green);
  color: #1f2a07;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
}

/* ---------- Mode d'emploi ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 860px;
}
.step {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.15rem;
}
.step-body h3 { margin-bottom: .5rem; }
.step-body > p { margin-bottom: .75rem; }
.step-body .arrow-list { margin-top: .25rem; }

.webapp-cta {
  margin-top: 2.5rem;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  padding: 2rem;
}
.webapp-cta p { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-intro h2 { margin-top: .2rem; }
.contact-coords { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-coords li { display: grid; gap: .15rem; }
.ci-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(153, 204, 51, .2);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-consent { font-size: .85rem; color: var(--muted); margin: .25rem 0 1.1rem; }
.form-status { margin: .9rem 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #c0392b; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding-top: 3.5rem; margin-top: 1rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-name { font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em; }
.footer-tag { margin: .2rem 0 0; font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-address { font-style: normal; line-height: 1.8; font-size: .95rem; }
.footer-address a { color: var(--green); }
.footer-links { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer-links a { color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Scroll anchor offset ---------- */
:where(section[id], main[id]) { scroll-margin-top: calc(var(--header-h) + 12px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem 1rem 1rem;
    transform: translateY(-130%);
    transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: .85rem .5rem; border-radius: 8px; font-size: 1.05rem; }
  .nav-list li:not(:last-child) a { border-bottom: 1px solid var(--bg-soft); }
  .nav-cta { text-align: center; margin-top: .5rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .callout { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero { min-height: auto; padding: 4.5rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
