:root {
  --bg: #131414;
  --bg-deep: #0a0a0a;
  --teal: #FEC618;
  --ink: #131414;
  --ink-soft: #5b564d;
  --card: #ffffff;
  --line: #ece7da;
  --accent: #946A00;
  --danger: #c1121f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(19, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; display: block; object-fit: cover; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-cta a.muted { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 15px; }
.nav-cta a.muted:hover { color: #fff; }
.langsel {
  -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.langsel option { color: #131414; }
@media (max-width: 640px) { .nav-cta a.muted { display: none; } }
.btn {
  display: inline-block; border-radius: 12px; padding: 11px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #131414; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% -10%, var(--bg) 0%, var(--bg-deep) 70%);
  color: #fff; text-align: center;
  padding: 90px 0 100px;
}
/* Respiration : un halo qui pulse lentement — le contraire d'un écran qui s'agite */
.breath {
  position: absolute; left: 50%; top: 34%; width: 820px; height: 820px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(254, 198, 24, 0.34) 0%, rgba(254, 198, 24, 0.12) 38%, rgba(254, 198, 24, 0) 66%);
  border-radius: 50%; pointer-events: none;
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.80); opacity: 0.45; }
  50%      { transform: translate(-50%, -50%) scale(1.20); opacity: 1; }
}
/* Si l'utilisateur a "réduire les animations", on ne pulse pas — mais le halo reste bien visible */
@media (prefers-reduced-motion: reduce) {
  .breath { animation: none; opacity: 0.9; }
}

.hero .wrap { position: relative; z-index: 2; }
.hero-logo {
  width: clamp(120px, 28vw, 158px); height: auto; display: block;
  margin: 0 auto 24px; border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(254, 198, 24, 0.45); border-radius: 999px; padding: 6px 14px; margin-bottom: 26px;
}
h1 {
  font-size: clamp(34px, 6.5vw, 60px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 auto 22px; max-width: 14ch;
}
h1 .accent { color: var(--teal); }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: rgba(255, 255, 255, 0.82); max-width: 60ch; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 26px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.trust b { color: rgba(255, 255, 255, 0.85); }
.langs { margin-top: 8px; color: rgba(255, 255, 255, 0.45); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: #FAF7EF; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 20ch; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 8px; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}
.card .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #FDF1C9; margin-bottom: 14px; font-size: 22px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.step-n { color: var(--accent); font-weight: 800; font-size: 14px; }

/* ---------- Différence (vs constat) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare .col { border-radius: 18px; padding: 24px; }
.compare .them { background: #F0EDE4; }
.compare .us { background: var(--bg); color: #fff; }
.compare h3 { margin: 0 0 14px; font-size: 17px; }
.compare ul { margin: 0; padding-left: 0; list-style: none; }
.compare li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.compare .them li::before { content: "—"; position: absolute; left: 0; color: #9bb0af; }
.compare .us li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- Guide / FAQ ---------- */
.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2px 22px; }
.faq summary {
  font-weight: 700; font-size: clamp(16px, 2.4vw, 18px); padding: 18px 0; cursor: pointer;
  list-style: none; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 22px; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.faq a { color: var(--accent); font-weight: 600; text-decoration: none; }
.faq a:hover { text-decoration: underline; }
.langrow { margin-top: 30px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.langrow a { color: var(--accent); text-decoration: none; font-weight: 600; }
.langrow a:hover { text-decoration: underline; }
.langrow strong { color: var(--ink); }

/* ---------- B2B ---------- */
.b2b { background: linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%); color: #fff; }
.b2b .kicker { color: var(--teal); }
.b2b h2 { color: #fff; }
.b2b .lead { color: rgba(255, 255, 255, 0.8); }
.b2b .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.b2b .card h3 { color: #fff; }
.b2b .card p { color: rgba(255, 255, 255, 0.72); }
.b2b .card .ic { background: rgba(254, 198, 24, 0.18); }
.b2b-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Pages texte (légal / à propos) ---------- */
.prose { max-width: 72ch; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); }
.prose .todo {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
  padding: 1px 7px; font-size: 13px; color: #9a3412; font-weight: 600;
}
.legal-foot { margin-top: 30px; font-size: 14px; }
.legal-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- Contenu long-traîne (guides pratiques européens) ---------- */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Avertissement « information à titre indicatif » */
.notice {
  background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #f59e0b;
  border-radius: 12px; padding: 15px 18px; margin: 26px 0; font-size: 14.5px; color: #7c4a12; line-height: 1.55;
}
.notice strong { color: #9a3412; }
.updated { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.source { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.source a { color: var(--accent); text-decoration: none; }
.source a:hover { text-decoration: underline; }

/* Tableaux de données (numéros, équipements, limites) */
.tablewrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.ctable { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.ctable th, table.ctable td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.ctable thead th { background: #FAF7EF; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); white-space: nowrap; }
table.ctable tbody tr:last-child td { border-bottom: none; }
table.ctable td.c1 { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.ctable td.big { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Cartes du hub « conducteur européen » */
.hubcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 820px) { .hubcards { grid-template-columns: 1fr; } }
.hubcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.hubcard:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10); }
.hubcard .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #FDF1C9; margin-bottom: 14px; font-size: 22px; }
.hubcard h3 { font-size: 18px; margin: 0 0 6px; }
.hubcard p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; flex: 1; }
.hubcard .go { color: var(--accent); font-weight: 700; font-size: 14px; }
.hubcard.soon { opacity: 0.7; }
.hubcard.soon .go { color: var(--ink-soft); }

/* Bandeau d'appel à l'app en bas des guides */
.cta-band { background: linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%); color: #fff; border-radius: 20px; padding: 34px 28px; margin: 48px 0 0; text-align: center; }
.cta-band h3 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); color: #fff; }
.cta-band p { margin: 0 auto 20px; color: rgba(255, 255, 255, 0.8); max-width: 52ch; }

/* Listes lisibles dans la prose */
.prose h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 40px 0 12px; max-width: none; }
.prose ol { padding-left: 20px; }
.prose ol li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-deep); color: rgba(255, 255, 255, 0.7); padding: 50px 0 40px; font-size: 14px; }
footer .frow { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { margin-bottom: 12px; }
footer a { color: var(--teal); text-decoration: none; }
footer .disclaimer { margin-top: 22px; color: rgba(255, 255, 255, 0.4); font-size: 12px; max-width: 70ch; line-height: 1.6; }
