:root {
  --ink: #173b35;
  --ink-deep: #0e2925;
  --ink-soft: #4b5f58;
  --paper: #f4f0e6;
  --surface: #ffffff;
  --surface-soft: #e9eee9;
  --line: #d7d5ca;
  --brand: #b96b3f;
  --brand-dark: #8e4c2c;
  --brand-soft: #f0e1d3;
  --green: #24584c;
  --green-soft: #dfeae3;
  --sand: #d7c7a8;
  --cream: #f4eedf;
  --shadow: 0 22px 65px rgba(14, 41, 37, 0.16);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(215, 199, 168, 0.34), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0.5rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 213, 202, 0.8);
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.035em;
  font-size: 1.25rem;
}

.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(14, 41, 37, 0.13)); }
.brand strong { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { text-decoration: none; font-weight: 700; font-size: 0.93rem; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-dark); }

.language-menu { position: relative; }
.language-menu summary {
  display: flex;
  min-width: 90px;
  padding: 0.55rem 0.72rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(14,41,37,.07);
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 800;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary img, .language-options img { width: 24px; height: 16px; border: 1px solid rgba(14,41,37,.12); border-radius: 3px; object-fit: cover; }
.language-chevron { margin-left: auto; color: var(--ink-soft); transition: transform 160ms ease; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-menu summary:focus-visible { outline: 3px solid rgba(185,107,63,.28); outline-offset: 3px; }
.language-options {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 50;
  width: 210px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(14,41,37,.18);
}
.main-nav .language-options a {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.68rem 0.72rem;
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
}
.main-nav .language-options a:hover, .main-nav .language-options a:focus-visible { color: var(--ink); background: var(--surface-soft); }
.main-nav .language-options a[aria-current="page"] { background: var(--brand-soft); }
.language-options strong { font-size: 0.8rem; }
.language-options small { justify-self: end; color: var(--ink-soft); font-size: 0.72rem; }

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(790px, calc(100vh - 72px));
  padding: clamp(3rem, 7vw, 6.4rem) 0 4.25rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 31, 27, 0.94) 0%, rgba(10, 39, 34, 0.78) 42%, rgba(10, 39, 34, 0.28) 100%),
    url("hero-road.webp") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 130px; background: linear-gradient(transparent, rgba(8, 31, 27, 0.34)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(2.7rem, 6.2vw, 5.15rem); }
h1 em { color: var(--brand); font-style: normal; }

.hero .eyebrow { color: #e2be9d; }
.hero h1 em { color: #e6a478; }

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.hero-points { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.hero-points li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.86rem;
}
.hero .hero-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); }
.hero .hero-points li { border-color: rgba(255,255,255,0.22); color: #fff; background: rgba(9, 35, 31, 0.48); backdrop-filter: blur(8px); }

.calculator-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.calculator-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: -1;
  width: 68%;
  height: 72%;
  border-radius: 28px;
  background: var(--brand);
  opacity: 0.58;
}

.calculator-heading { margin-bottom: 1.25rem; }
.calculator-heading h2 { margin: 0; font-size: 1.45rem; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.32rem; border-radius: 13px; background: var(--surface-soft); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 0.72rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.9rem;
}
.segmented input:checked + label { color: #fff; background: var(--ink); box-shadow: 0 4px 14px rgba(16, 36, 46, 0.18); }
.segmented input:focus-visible + label { outline: 3px solid rgba(185, 107, 63, 0.3); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.42rem; font-size: 0.83rem; font-weight: 800; }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(185, 107, 63, 0.14); }
.field small { display: block; margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.74rem; }
.field-error { min-height: 1.15rem; margin: 0.35rem 0 0; color: var(--brand-dark); font-size: 0.78rem; font-weight: 700; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.78rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.primary-button {
  width: 100%;
  margin-top: 0.9rem;
  border: 0;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(142,76,44,.26);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(142,76,44,.31);
}
.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 7px 16px rgba(142,76,44,.24);
}
.primary-button:focus-visible { outline: 3px solid rgba(226,190,157,.68); outline-offset: 4px; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }

.result-card { display: none; margin-top: 1rem; padding: 1.15rem; border: 1px solid #bedccd; border-radius: 16px; background: var(--green-soft); }
.result-card.is-visible { display: block; animation: reveal 220ms ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } }
.result-kicker { margin: 0; color: var(--green); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.result-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.55rem; margin: 0.2rem 0; }
.result-main strong { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.05em; }
.result-main span { font-weight: 800; color: var(--green); }
.result-summary { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin: 1rem 0 0; }
.result-meta div { padding: 0.7rem; border-radius: 10px; background: rgba(255,255,255,0.68); }
.result-meta small, .result-meta strong { display: block; }
.result-meta small { color: var(--ink-soft); font-size: 0.67rem; font-weight: 750; }
.result-meta strong { margin-top: 0.12rem; font-size: 0.9rem; }
.result-note { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.75rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--ink-deep); color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head h2 { max-width: 620px; margin: 0; font-size: clamp(2.1rem, 4vw, 3.65rem); }
.section-head p { max-width: 640px; margin: 0; color: var(--ink-soft); }
.alt .section-head p { color: #b9c7cc; }

.guide-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.guide-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 320px;
  padding: 1.25rem;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: var(--card-image, linear-gradient(145deg, var(--ink), var(--green))) center / cover no-repeat;
  box-shadow: 0 13px 28px rgba(14, 41, 37, 0.13);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.guide-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,31,27,0.06) 20%, rgba(8,31,27,0.92) 100%); }
.guide-card:hover { transform: translateY(-6px); box-shadow: 0 24px 45px rgba(14,41,37,0.22); }
.guide-road { --card-image: url("hero-road.webp"); }
.guide-gravel { --card-image: url("hero-gravel.webp"); }
.guide-vtt { --card-image: url("hero-vtt.webp"); }
.guide-city { --card-image: url("hero-ville.webp"); }
.guide-child { --card-image: url("hero-enfant.webp"); }
.guide-measure { --card-image: linear-gradient(145deg, #1c4b42, #0d2824); }
.guide-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.24); border-radius: 13px; color: #fff; background: rgba(9,35,31,0.58); backdrop-filter: blur(9px); font-size: 1.1rem; font-weight: 900; }
.guide-card h3 { margin: 1.25rem 0 0.55rem; font-size: 1.2rem; text-shadow: 0 2px 16px rgba(0,0,0,.22); }
.guide-card p { margin: 0; color: rgba(255,255,255,0.76); font-size: 0.84rem; }
.guide-link { display: inline-block; margin-top: 1rem; color: #e7ae86; font-size: 0.8rem; font-weight: 850; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border: 1px solid #315a51; border-radius: 18px; background: #143a34; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 2.2rem; color: #d79062; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; }
.step h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.step p { margin: 0; color: #b9c7cc; font-size: 0.9rem; }

.measure-showcase { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr); gap: 1.5rem; align-items: stretch; }
.measure-showcase .steps { grid-template-columns: 1fr; }
.measure-showcase .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-content: center; }
.measure-showcase .step::before { grid-row: 1 / 3; margin: 0; align-self: start; }
.diagram-card { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.inseam-photo { width: min(100%, 430px); height: auto; min-height: 0; margin-inline: auto; object-fit: contain; }
.explainer-visual { display: block; width: 100%; margin: 1.7rem 0; border-radius: 22px; box-shadow: 0 18px 38px rgba(14,41,37,.12); }
.inseam-guide-photo { width: min(100%, 560px); margin-inline: auto; }
.inseam-visual { position: relative; width: min(100%, 430px); margin: 0 auto; }
.inseam-visual .inseam-photo { width: 100%; }
.article-content .inseam-visual { width: min(100%, 560px); margin-block: 1.7rem; }
.translated-inseam-label {
  position: absolute;
  top: 76.2%;
  left: 50%;
  min-width: 110px;
  padding: .2rem .45rem;
  transform: translate(-50%, -50%);
  color: #111;
  background: #f1f1f1;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.geometry-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 0.38fr);
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 18px 42px rgba(14,41,37,.12);
}
.geometry-stage { min-width: 0; padding: 0; background: #fff; }
.geometry-stage svg { display: block; width: 100%; height: auto; }
.geometry-photo { pointer-events: none; user-select: none; }
.geometry-measure { opacity: .62; transition: opacity 170ms ease, filter 170ms ease; }
.geometry-dimension { fill: none; stroke: #66736e; stroke-width: 2.75; filter: drop-shadow(0 1px 1px rgba(255,255,255,.95)); transition: stroke 170ms ease, stroke-width 170ms ease; }
.geometry-guide { fill: none; stroke: #8e9994; stroke-width: 1.75; stroke-dasharray: 7 6; filter: drop-shadow(0 1px 1px rgba(255,255,255,.95)); transition: stroke 170ms ease; }
.geometry-arrowhead { fill: #7f8c87; transition: fill 170ms ease; }
.geometry-badge circle { fill: #fff; stroke: #7f8c87; stroke-width: 2; transition: fill 170ms ease, stroke 170ms ease; }
.geometry-badge text { fill: #52615c; font: 800 14px Inter, Arial, sans-serif; text-anchor: middle; dominant-baseline: middle; transition: fill 170ms ease; }
.geometry-explorer.has-active .geometry-measure { opacity: .11; }
.geometry-explorer.has-active .geometry-measure.is-active { opacity: 1; filter: drop-shadow(0 0 5px rgba(185,107,63,.32)); }
.geometry-measure.is-active .geometry-dimension, .geometry-measure.is-active .geometry-guide { stroke: var(--brand); }
.geometry-measure.is-active .geometry-dimension { stroke-width: 4.5; }
.geometry-measure.is-active .geometry-arrowhead { fill: var(--brand); }
.geometry-measure.is-active .geometry-badge circle { fill: var(--brand); stroke: var(--brand); }
.geometry-measure.is-active .geometry-badge text { fill: #fff; }
.geometry-controls { padding: 1.4rem; color: #fff; background: var(--ink-deep); }
.geometry-controls > p { margin: 0 0 1rem; color: #b9c7c2; font-size: .75rem; }
.geometry-controls h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.geometry-control-list { display: grid; gap: .55rem; margin-top: 1.15rem; }
.geometry-control {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: .75rem;
  width: 100%;
  padding: .78rem;
  border: 1px solid #31554d;
  border-radius: 13px;
  color: #fff;
  background: #143a34;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.geometry-control:hover, .geometry-control:focus-visible, .geometry-control.is-active { border-color: #d38a5c; background: #1b473f; transform: translateX(-2px); }
.geometry-control:focus-visible { outline: 3px solid rgba(226,190,157,.38); outline-offset: 2px; }
.geometry-control-index { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #fff; background: #4f756b; font-size: .75rem; font-weight: 850; }
.geometry-control.is-active .geometry-control-index { background: var(--brand); }
.geometry-control strong, .geometry-control small { display: block; }
.geometry-control strong { font-size: .88rem; }
.geometry-control small { margin-top: .18rem; color: #b9c7c2; font-size: .7rem; line-height: 1.35; }

.formula-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.formula-layout h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.formula-layout p { color: var(--ink-soft); }
.data-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.data-table th, .data-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--ink-soft); background: var(--surface-soft); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; }
.data-table td { font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: 0; }

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.25rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 760px; color: var(--ink-soft); }

.article-hero {
  position: relative;
  display: flex;
  min-height: 570px;
  padding: 4.5rem 0 3.5rem;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(90deg, rgba(8,31,27,.94), rgba(8,31,27,.3)), var(--article-image, url("hero-road.webp")) center / cover no-repeat;
}
.article-hero-road { --article-image: url("hero-road.webp"); }
.article-hero-gravel { --article-image: url("hero-gravel.webp"); }
.article-hero-vtt { --article-image: url("hero-vtt.webp"); }
.article-hero-city { --article-image: url("hero-ville.webp"); }
.article-hero-child { --article-image: url("hero-enfant.webp"); }
.article-hero-measure { --article-image: linear-gradient(125deg, #173b35, #0e2925); }
.article-hero .breadcrumbs { margin-bottom: 1.5rem; color: rgba(255,255,255,.7); font-size: 0.82rem; }
.article-hero .breadcrumbs a { color: #fff; }
.article-hero .eyebrow { color: #e2be9d; }
.article-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 4.8rem); }
.article-hero .lead { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.18rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; padding-bottom: 5rem; }
.article-content { max-width: 780px; }
.article-content h2 { margin: 2.7rem 0 1rem; font-size: 2rem; }
.article-content h3 { margin: 2rem 0 0.8rem; font-size: 1.3rem; }
.article-content p, .article-content li { color: var(--ink-soft); }
.practice-guide-section { scroll-margin-top: 6rem; }
.article-content .callout { margin: 2rem 0; padding: 1.3rem; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); }
.article-aside { position: sticky; top: 100px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.article-aside h2 { margin: 0; font-size: 1.08rem; }
.article-aside p { color: var(--ink-soft); font-size: 0.84rem; }

.related-section { padding: clamp(3.2rem, 6vw, 5.2rem) 0; background: var(--surface-soft); }
.related-section h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 3.15rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 245px;
  padding: 1.4rem;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: var(--related-image) center / cover no-repeat;
  box-shadow: 0 16px 34px rgba(14,41,37,.14);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.related-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 15%, rgba(8,31,27,.9)); }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 23px 43px rgba(14,41,37,.22); }
.related-card span { color: #e7ae86; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { margin-top: .35rem; font-size: 1.28rem; line-height: 1.15; }
.related-road { --related-image: url("hero-road.webp"); }
.related-gravel { --related-image: url("hero-gravel.webp"); }
.related-vtt { --related-image: url("hero-vtt.webp"); }
.related-city { --related-image: url("hero-ville.webp"); }
.related-child { --related-image: url("hero-enfant.webp"); }

.legal-card { max-width: 900px; margin: 4rem auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal-card h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.legal-card h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-warning { padding: 1rem 1.2rem; border: 1px solid #efc05a; border-radius: 12px; color: #62470a !important; background: #fff7df; }

.site-footer { padding: 3.5rem 0 2rem; color: #c4d0d4; background: var(--ink-deep); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 2.5rem; }
.footer-brand { color: #fff; }
.footer-copy { max-width: 460px; font-size: 0.85rem; }
.footer-column h2 { margin: 0 0 0.8rem; color: #fff; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-column a { display: block; margin: 0.45rem 0; color: #c4d0d4; text-decoration: none; font-size: 0.86rem; }
.footer-column a:hover { color: #fff; }
.footer-bottom { margin-top: 2.7rem; padding-top: 1.2rem; border-top: 1px solid #314a54; font-size: 0.75rem; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 980px) {
  .hero-grid, .section-head, .formula-layout, .article-layout { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero-points { justify-content: center; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card:last-child { grid-column: 1 / -1; }
  .article-aside { position: static; }
  .measure-showcase { grid-template-columns: 1fr; }
  .diagram-card { min-height: 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .related-card:last-child { grid-column: 1 / -1; }
  .geometry-explorer { grid-template-columns: 1fr; }
  .geometry-control-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav > a { display: none; }
  .header-inner { min-height: 64px; gap: .6rem; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 42px; height: 42px; }
  .language-menu summary { min-width: 82px; padding: .5rem .6rem; }
  .hero { min-height: 0; padding-top: 2.5rem; background-position: 62% center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .calculator-card::after { display: none; }
  .guide-grid, .steps, .footer-grid, .related-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 300px; }
  .guide-card:last-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .result-meta { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .article-hero { min-height: 500px; background-position: 65% center; }
  .related-card:last-child { grid-column: auto; }
  .geometry-control-list { grid-template-columns: 1fr; }
  .geometry-controls { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- v10 : tailles par modèle, calculateur dans les guides ---------- */
.brand-sizes { margin-top: 1rem; padding-top: 0.95rem; border-top: 1px solid rgba(36, 88, 76, 0.2); }
.brand-sizes-title { margin: 0 0 0.55rem; color: var(--green); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.brand-sizes ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.brand-sizes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: baseline; padding: 0.65rem 0.75rem; border-radius: 10px; background: rgba(255, 255, 255, 0.74); }
.brand-sizes .bs-name { font-weight: 800; text-decoration-color: rgba(23, 59, 53, 0.35); text-underline-offset: 3px; }
.brand-sizes .bs-name:hover { text-decoration-color: currentColor; }
.brand-sizes .bs-size { font-size: 1.05rem; text-align: right; }
.brand-sizes .bs-meta { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.74rem; line-height: 1.45; }
.brand-sizes .bs-shop { grid-column: 1 / -1; justify-self: start; margin-top: 0.15rem; color: var(--brand-dark); font-size: 0.78rem; font-weight: 800; }
.brand-sizes-note { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.72rem; }

.calc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; }
.calc-aside { padding: 1.3rem; box-shadow: 0 16px 40px rgba(14, 41, 37, 0.1); }
.calc-aside-static { position: static; }
.calc-aside h2 { margin-bottom: 0.9rem; }
.calc-aside .form-grid { grid-template-columns: 1fr; gap: 0.8rem; }
.calc-aside .field.full { grid-column: auto; }
.calc-aside .segmented label { padding: 0.6rem; }
.calc-aside .result-main strong { font-size: 2.2rem; }
.calc-aside .field + .field { margin-top: 0.8rem; }
.optional { color: var(--ink-soft); font-weight: 600; }
.model-result[hidden] { display: none; }
.model-result:not([hidden]) { display: block; animation: reveal 220ms ease-out; }
.merchant-links { display: grid; gap: 0.5rem; margin-top: 1rem; }
.merchant-link { width: 100%; min-height: 46px; font-size: 0.88rem; }
.aside-link { display: block; margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }

.table-scroll { margin: 1.2rem 0; overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 520px; }
.table-scroll .delta-table { min-width: 0; }
.size-table th, .size-table td, .compare-table th, .compare-table td { padding: 0.65rem 0.7rem; white-space: nowrap; font-size: 0.86rem; }
.size-table thead th, .compare-table thead th { font-size: 0.7rem; letter-spacing: 0.05em; }
.size-table tbody th, .compare-table tbody th { color: var(--ink); background: transparent; font-size: 0.88rem; letter-spacing: 0; text-transform: none; }
.size-table tr.is-match th, .size-table tr.is-match td { background: var(--green-soft); }
.size-table tr.is-match th { box-shadow: inset 4px 0 0 var(--green); }
.compare-table thead th a { color: var(--ink); }
.compare-table thead th span { color: var(--brand-dark); }
.source-note { color: var(--ink-soft); font-size: 0.8rem; }
.article-content .source-note a { color: inherit; }

.model-list { display: grid; gap: 0.6rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.model-list a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color 140ms ease, transform 140ms ease; }
.model-list a:hover { border-color: var(--brand); transform: translateY(-1px); }
.model-list strong { display: block; color: var(--ink); font-size: 1.05rem; }
.model-list span { color: var(--ink-soft); font-size: 0.9rem; }

.model-links { margin: 2.7rem 0 0; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.article-content .model-links h2 { margin-top: 0; font-size: 1.5rem; }
.model-links ul { margin: 0.6rem 0; padding-left: 1.1rem; }
.model-links a { color: var(--brand-dark); font-weight: 750; }
.models-teaser { margin: 1.4rem 0 0; text-align: center; }
.models-teaser a { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .calc-layout .article-aside { order: -1; margin-top: 1.5rem; }
}
@media (max-width: 720px) {
  .calc-aside .result-meta { grid-template-columns: repeat(3, 1fr); }
}
