/* =========================================================
   Safety First Transports — Design System
   Protection invisible anti-siphonnage des réservoirs PL
   ========================================================= */

:root {
  /* Brand palette */
  --indigo-950: #15123a;
  --indigo-900: #1f1c4d;
  --indigo-800: #2b2768;
  --violet-600: #6d5dd3;
  --violet-500: #7c6ce0;
  --blue-600: #4f63d8;
  --blue-500: #4f6ef0;
  --accent: #ff5a1f;
  --accent-600: #e64a12;
  --green: #34c759;

  /* Neutrals */
  --ink: #1a1830;
  --body: #3d3a55;
  --muted: #6b6885;
  --line: #e7e5f0;
  --soft: #f6f5fb;
  --card: #ffffff;
  --white: #ffffff;

  /* Effects */
  --hero-grad: linear-gradient(155deg, #8a6fd6 0%, #6d5dd3 28%, #5566db 64%, #3f56c9 100%);
  --accent-grad: linear-gradient(135deg, #ff7a3c 0%, #ff5a1f 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 28, 77, 0.06);
  --shadow: 0 12px 32px rgba(31, 28, 77, 0.10);
  --shadow-lg: 0 30px 70px rgba(31, 28, 77, 0.18);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__head { max-width: 720px; margin: 0 auto 56px; }
.section__head.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 24px rgba(255, 90, 31, 0.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 90, 31, 0.4); }
.btn--light { background: #fff; color: var(--indigo-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--indigo-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet-500); color: var(--violet-600); }
.btn--ghost-light { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.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);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; }
.brand__flag { height: 22px; width: auto; border-radius: 3px; box-shadow: var(--shadow-sm); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 0.97rem;
  color: var(--ink); transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--soft); color: var(--violet-600); }
.nav__links a.is-active { color: var(--violet-600); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  /* Camion à remorque blanche en fond + voile violet (repli : dégradé seul si la photo manque) */
  background-color: #5b51c6;
  background-image:
    linear-gradient(155deg, rgba(138,111,214,.86) 0%, rgba(109,93,211,.82) 30%, rgba(85,102,219,.80) 64%, rgba(63,86,201,.90) 100%),
    url('../img/truck-road.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% -10%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 84px 0 96px;
}
.hero h1 { color: #fff; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.hero__lead { color: rgba(255,255,255,.9); font-size: 1.2rem; margin: 20px 0 32px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__pills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 540px; }
.pill {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); color: var(--indigo-900);
  padding: 14px 18px; border-radius: var(--radius-pill); font-weight: 600;
  box-shadow: var(--shadow);
}
.pill__icon {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: grid; place-items: center; color: #fff;
}
.pill__icon svg { width: 17px; height: 17px; }
.pill--orange .pill__icon { background: var(--accent); }
.pill--blue .pill__icon { background: var(--blue-500); }
.pill--green .pill__icon { background: var(--green); }
.pill--violet .pill__icon { background: var(--violet-500); }

.hero__visual { position: relative; }
.hero__product { padding: 0; max-width: 290px; margin: 0 auto; }
.hero__product img { filter: drop-shadow(0 26px 50px rgba(15, 12, 42, 0.5)); margin: 0 auto; }
.hero__note { margin-top: 18px; font-size: 0.85rem; color: rgba(255,255,255,.7); font-style: italic; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f0edff, #e7eafe); color: var(--violet-600); margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Stat / problem band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat__label { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 16 / 9; background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-split { align-items: center; }
.video-truck img { filter: drop-shadow(0 22px 40px rgba(31, 28, 77, 0.22)); }

/* Façade vidéo "click-to-play" (charge YouTube seulement au clic) */
.yt-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background-size: cover; background-position: center; display: grid; place-items: center;
}
.yt-facade::before { content: ''; position: absolute; inset: 0; background: rgba(15,12,42,.28); transition: background .2s ease; }
.yt-facade:hover::before { background: rgba(15,12,42,.12); }
.yt-play { position: relative; width: 76px; height: 54px; border-radius: 14px; background: #ff0000; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.yt-facade:hover .yt-play { transform: scale(1.06); background: #ff2323; }
.yt-play::after { content: ''; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

/* ---------- Split / product detail ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--body); }
.checklist li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.spec th { background: var(--soft); color: var(--ink); font-weight: 700; width: 42%; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- Price card ---------- */
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow); text-align: center; max-width: 420px; margin: 0 auto;
}
.price-card__tag { display: inline-block; background: #eafaf0; color: #1c9b4b; font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.price-card__amount { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price-card__amount span { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.price-card .checklist { text-align: left; margin: 24px 0; }

/* ---------- Reassurance ---------- */
.reassure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reassure__item { text-align: center; padding: 24px; }
.reassure__item .icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: linear-gradient(135deg,#fff,#f3f1fb); border:1px solid var(--line); display:grid; place-items:center; color: var(--violet-600); }
.reassure__item h4 { color: var(--ink); margin-bottom: 4px; }
.reassure__item p { font-size: .92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 22px 24px; background: none; border: 0; cursor: pointer; font-size: 1.05rem; font-weight: 700; color: var(--ink); font-family: inherit; }
.faq__q .chev { flex: 0 0 22px; transition: transform .2s ease; color: var(--violet-600); }
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a-inner { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero-grad); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(600px 300px at 20% 120%, rgba(255,255,255,.16), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; max-width: 560px; margin: 14px auto 28px; }
.cta-band .hero__actions { justify-content: center; position: relative; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124,108,224,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-status { display:none; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.form-status.ok { display:block; background:#eafaf0; color:#1c9b4b; }
.form-status.err { display:block; background:#fdecec; color:#d23b3b; }
/* Toast de confirmation */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-24px); z-index: 1000; max-width: min(92vw, 460px); padding: 16px 22px; border-radius: 14px; font-weight: 700; color: #fff; box-shadow: 0 16px 40px rgba(16,24,40,.25); opacity: 0; transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--ok { background: #1c9b4b; }
.toast--err { background: #d23b3b; }
.contact-info { background: var(--soft); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-info__row { display:flex; gap:14px; align-items:flex-start; padding: 14px 0; border-bottom:1px solid var(--line); }
.contact-info__row:last-child { border-bottom:0; }
.contact-info__row .icon { flex:0 0 42px; width:42px; height:42px; border-radius:12px; background:#fff; border:1px solid var(--line); display:grid; place-items:center; color: var(--violet-600); }
.contact-info__row b { color: var(--ink); display:block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--hero-grad); color:#fff; padding: 64px 0; text-align:center; position:relative; overflow:hidden; }
.page-hero::after { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(700px 300px at 80% -20%, rgba(255,255,255,.16), transparent 60%); }
.page-hero h1 { color:#fff; position:relative; }
.page-hero p { color: rgba(255,255,255,.9); position:relative; max-width:640px; margin: 14px auto 0; font-size:1.12rem; }
.breadcrumb { position:relative; font-size:.85rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.breadcrumb a:hover { color:#fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-950); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom:1px solid rgba(255,255,255,.1); }
.site-footer h4 { color:#fff; font-size: .95rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:16px; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .15s ease; }
.site-footer a:hover { color:#fff; }
.site-footer li { padding: 5px 0; }
.footer-brand p { color: rgba(255,255,255,.6); font-size:.95rem; margin-top: 14px; max-width: 300px; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top: 24px; font-size:.88rem; flex-wrap: wrap; }
.footer-flag { display:flex; align-items:center; gap:8px; }
.footer-flag img { height:18px; border-radius:3px; }
.footer-credit { color: rgba(255,255,255,.6); }
.footer-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--accent); }
/* Lien "offre privée" discret mais visible */
.footer-secret { color: rgba(255,255,255,.26); font-size: .82rem; text-decoration: none; transition: color .2s ease; }
.footer-secret:hover { color: var(--accent); }

/* ---------- Conséquences (bannière photo camion + pompe) ---------- */
.consequences {
  position: relative; color: #fff; padding: 96px 0;
  background: linear-gradient(115deg, #1a1740 0%, #2d2768 48%, #3f56c9 100%);
}
.consequences h2 { color: #fff; }
.consequences .eyebrow { color: #ffb38a; }
.consequences p, .consequences .lead { color: rgba(255,255,255,.9); }
.num-list { margin: 10px 0 30px; display: grid; gap: 12px; }
.num-list li { display: flex; align-items: center; gap: 14px; font-size: 1.12rem; font-weight: 600; color: #fff; }
.num-list li span {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff;
  box-shadow: 0 6px 14px rgba(255,90,31,.35);
}
.media-photo { display: flex; align-items: center; justify-content: center; }
.media-photo.pump { background: transparent; border: 0; box-shadow: none; padding: 0; }
.media-photo.pump img { max-height: 480px; width: auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.45)); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero__visual { order: -1; }
  .features, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .reassure { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse navigation into hamburger earlier to avoid cramped links */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }   /* masque "Demander un devis" (évite le chevauchement du logo) */
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a { padding: 13px 14px; border-radius: 10px; }
  .hero__pills { grid-template-columns: 1fr; }
  .features, .steps, .stats, .reassure, .footer-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 64px 0; }
}
