/* =========================================================
   Work for all — styles
   Static, no framework. Mobile-first.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F5F2;
  --bg-dark: #0E1116;
  --ink: #0E1116;
  --ink-2: #1B1F26;
  --muted: #5C6470;
  --muted-2: #8A92A0;
  --line: #E6E4DF;
  --orange: #FF6A2C;
  --orange-2: #E25516;
  --orange-soft: #FFE3D4;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(14, 17, 22, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, 0.18);
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 18px; }
.brand-tag { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav ul {
  display: flex; gap: 22px; list-style: none; padding: 0; margin: 0;
}
.site-nav a {
  font-size: 14.5px; color: var(--ink-2); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--orange); }

@media (max-width: 880px) {
  .site-nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 106, 44, 0.35);
}
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 88% -10%, rgba(255,106,44,0.14), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(255,106,44,0.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FBFAF7 100%);
  padding: 70px 0 90px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-2);
  background: var(--orange-soft);
  padding: 6px 10px; border-radius: 999px;
  margin: 0 0 18px;
  font-weight: 700;
}
.eyebrow-light { color: #FFD9C4; background: rgba(255,106,44,0.14); }

h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
}
h1 .accent { color: var(--orange); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-bullets {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: 14.5px;
}
.hero-bullets li span { color: var(--orange); margin-right: 6px; }

.hero-card {
  position: relative;
}
.hero-card-inner {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.card-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #C9CCD2; margin-bottom: 16px;
}
.card-label { font-weight: 600; letter-spacing: 0.04em; }
.card-pill {
  margin-left: auto;
  background: rgba(255,106,44,0.18); color: #FFB48E;
  font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,44,0.18); }
.card-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.card-steps li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04);
  padding: 12px 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,255,255,0.06);
}
.card-steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,106,44,0.18); color: #FFB48E;
  font-size: 13px;
}
.card-foot {
  margin-top: 18px;
  display: flex; justify-content: flex-end;
}
.card-tag {
  font-size: 12px; color: #C9CCD2;
  background: rgba(255,255,255,0.06); padding: 6px 10px; border-radius: 999px;
}

/* ---------- Generic section ---------- */
.section { padding: 90px 0; }
@media (max-width: 880px) { .section { padding: 64px 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background: var(--bg-dark); color: #fff;
}
.section-dark .section-lede, .section-dark p { color: #C9CCD2; }
h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em; line-height: 1.12;
  margin: 0 0 14px; font-weight: 800;
}
.section-lede { font-size: 17px; color: var(--muted); max-width: 64ch; margin: 0 0 38px; }

/* ---------- Value grid ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 36px;
}
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.value-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-soft);
  margin-bottom: 14px;
}
.value-card h3 { margin: 0 0 6px; font-size: 18px; }
.value-card p { margin: 0; color: var(--muted); }

/* ---------- Process 5 steps ---------- */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: step;
}
@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.step-number {
  font-weight: 800; font-size: 14px; letter-spacing: 0.08em;
  color: var(--orange);
}
.step h3 { margin: 0; font-size: 18px; }
.step-time {
  font-size: 13px; color: var(--muted); margin: 0 0 4px;
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-2);
  align-self: flex-start;
}
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.process-cta { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- Autonomie two-col ---------- */
.two-col {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.autonomy-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.autonomy-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-weight: 600;
}
.autonomy-line i {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft);
}
.autonomy-end { background: var(--orange); color: #fff; border-color: var(--orange); }
.autonomy-end i { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.4); }

.muted { color: var(--muted); }

/* ---------- Form ---------- */
.form-wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px;
}
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; gap: 28px; } }

.form-intro h2 { color: #fff; }
.form-bullets {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.form-bullets li {
  background: rgba(255,255,255,0.06); color: #E4E6EA;
  font-size: 13px; padding: 6px 10px; border-radius: 999px;
}

.form {
  background: #161A21;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid; gap: 14px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 13px; color: #C9CCD2; font-weight: 600;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  font: inherit; color: #fff;
  background: #0E1116;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,44,0.25);
  background: #14181F;
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7280; }

.form-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 6px;
}
.form-fineprint { color: #8A92A0; font-size: 12.5px; margin: 0; }

.form-status {
  margin-top: 4px;
  padding: 0; border-radius: 12px;
  font-size: 14.5px;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(255,106,44,0.14);
  border: 1px solid rgba(255,106,44,0.35);
  color: #FFD9C4;
  padding: 12px 14px;
}
.form-status.is-error {
  display: block;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #FFC9C9;
  padding: 12px 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14181F; color: #C9CCD2;
  padding: 50px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner h4 {
  color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 4px 0 14px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #8A92A0;
}

/* ---------- Background decoration (modern, sober, responsive) ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-deco-svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .bg-deco-svg { animation: bg-deco-fade 18s ease-in-out infinite alternate; }
}
@keyframes bg-deco-fade {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-deco-svg { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-cta, .process-cta, .form { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---------- Pré-diagnostic guidé ---------- */
.wizard-form { gap: 18px; }
.wizard-progress { color: #C9CCD2; font-size: 12px; }
.progress-track { height: 5px; background: #303640; border-radius: 9px; overflow: hidden; }
.progress-track span { display:block; height:100%; width:20%; background:var(--orange); transition:width .25s ease; }
.wizard-progress p { margin: 8px 0 0; }
.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step legend { color:#fff; font-size:22px; font-weight:700; margin-bottom:18px; padding:0; }
.subheading, .adaptive-block h3, .summary-box h3 { color:#fff; font-size:16px; margin:20px 0 12px; }
.step-help { color:#AEB4BF; margin-top:-6px; }
.choice-group { margin-top: 16px; }
.group-label { display:block; color:#C9CCD2; font-size:13px; font-weight:600; margin-bottom:9px; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.check-grid label, .consent { display:flex; gap:8px; align-items:flex-start; color:#E4E6EA; font-size:13px; line-height:1.35; cursor:pointer; }
.check-grid input, .consent input { accent-color:var(--orange); margin-top:2px; flex:0 0 auto; }
.adaptive-block { border-top:1px solid rgba(255,255,255,.1); padding-top:14px; margin-top:14px; }
.adaptive-block:first-child { border-top:0; padding-top:0; margin-top:0; }
.field small { color:#8A92A0; font-weight:400; }
.field-error { color:#ffb6a4; font-size:13px; margin:8px 0 0; }
[aria-invalid="true"] { border-color:#ff7b62 !important; }
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; opacity:0; }
.summary-box { border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:12px 14px; margin-top:18px; background:#0E1116; }
.summary-box h3 { margin:0 0 8px; }
.summary-box p { color:#C9CCD2; font-size:13px; margin:5px 0; }
.wizard-actions { justify-content:flex-start; }
.btn-secondary { background:transparent; border:1px solid rgba(255,255,255,.25); color:#fff; }
.btn-secondary:hover { border-color:var(--orange); }
.form-status a { color:#fff; font-weight:700; text-decoration:underline; }
@media (max-width:600px) { .check-grid { grid-template-columns:1fr; } .wizard-step legend { font-size:20px; } }

/* =========================================================
   V7 — corrections et ajouts
   ========================================================= */

/* L'attribut hidden doit toujours l'emporter (les .btn sont en inline-flex). */
[hidden] { display: none !important; }

/* Focus clavier visible partout */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
section[tabindex="-1"]:focus, main:focus { outline: none; }
:target, section[id] { scroll-margin-top: 80px; }

/* Header : menu mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 22px 22px; display: grid; gap: 4px; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; width: 100%; white-space: normal; text-align: center; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (min-width: 881px) {
  .mobile-nav { display: none !important; }
}

/* Petits écrans : boutons qui passent à la ligne au lieu de déborder */
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; white-space: normal; text-align: center; }
  .form { padding: 20px; }
  .wizard-actions .btn { flex: 1 1 auto; }
}

/* Lien d'erreur et focus dans la zone sombre */
.section-dark :focus-visible { outline-color: #FFB48E; }
.form-status:focus { outline: none; }

/* Contraste du texte de l'eyebrow et des boutons orange (AA) */
:root { --orange-text: #A93C0C; }
.btn-primary { background: #C4470F; }
.btn-primary:hover { background: #A93C0C; }
.eyebrow:not(.eyebrow-light), .step-time { color: var(--orange-text); }
h1 .accent { color: var(--orange-2); }
.step-number { color: #C4470F; }

/* Animations réduites */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- V8 : pages légales et page testeur SmartStock ---------- */
.site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--orange-text, #A93C0C); }
@media (min-width: 761px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.legal-inner { max-width: 820px; line-height: 1.65; }
.legal-inner h1 { margin-bottom: .2em; }
.legal-inner h2 { font-size: 1.25em; margin-top: 2em; padding-bottom: .25em; border-bottom: 2px solid var(--orange); }
.legal-inner a { color: var(--orange-text, #A93C0C); text-decoration: underline; }
.legal-inner .maj { color: var(--muted); font-size: .92em; }
.legal-inner table { border-collapse: collapse; width: 100%; font-size: .95em; margin: 1em 0; display: block; overflow-x: auto; }
.legal-inner th, .legal-inner td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-inner th { background: var(--orange-soft); }
.tester-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .tester-wrap { grid-template-columns: 1fr; gap: 28px; } }
.tester-points { padding-left: 1.1em; line-height: 1.7; color: var(--muted); }
.tester-form .form-fineprint a { color: #fff; text-decoration: underline; }
.tester-form .field small { margin-top: 2px; }
.site-footer .footer-bottom a { color: #C9CCD2; text-decoration: underline; }

/* ---------- V11 : sélecteur de langue FR | DE (en-tête bureau + menu mobile) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; flex: 0 0 auto;
}
.lang-switch a {
  display: inline-block; min-width: 34px; text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; line-height: 1;
  padding: 7px 9px; border-radius: 999px; color: var(--muted); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover { color: var(--ink); background: var(--bg-alt); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; cursor: default; }
.lang-switch a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
@media (max-width: 880px) { .header-actions .lang-switch { display: none; } .header-actions:empty, .header-actions { gap: 0; } }
/* Écrans moyens : on resserre la navigation pour laisser la place au sélecteur */
@media (min-width: 881px) and (max-width: 1120px) {
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 13.5px; }
  .header-inner { gap: 12px; }
}
@media (min-width: 881px) and (max-width: 1000px) { .header-cta { display: none; } }
/* Menu mobile : ligne « Langue / Sprache » avec les deux boutons */
.mobile-nav .mobile-lang {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-lang-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.mobile-nav .lang-switch a { display: inline-block; border-bottom: 0; font-size: 15px; padding: 10px 16px; min-width: 52px; }
/* Mention protection des données (page testeur) */
.tester-form .mention-donnees { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: #C9CCD2; }
.tester-form .mention-donnees a { color: #fff; text-decoration: underline; }
