/* AssurMontres — la pièce sombre.
   Un fond vert très sombre du haut en bas, les montres éclairées comme des objets d'exposition,
   et une seule couleur vive : le lume, réservé à l'action principale et à l'axe des aiguilles. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0c110f;
  --bg-2: #121816;
  --surface: #1a221f;
  --surface-2: #222c29;
  --ink: #e8eae4;
  --muted: #aeb3ab;
  --lume: #c9f2a6;
  --lume-hover: #dbf8c2;
  --lume-ink: #0c110f;
  --line: rgba(232, 234, 228, 0.16);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Cinq tailles en tout */
  --step-small: 15px;
  --step-body: clamp(17px, 16px + 0.2vw, 19px);
  --step-lead: clamp(22px, 14px + 1.1vw, 32px);
  --step-head: clamp(44px, 6vw, 92px);
  --step-display: clamp(120px, 16vw, 240px);

  --m: clamp(20px, 4vw, 56px);
  --gap: clamp(120px, 15vw, 220px);
  --bar: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); font: 400 var(--step-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, dl, dd, ol, ul { margin: 0; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lume); color: var(--lume-ink); }
:focus-visible { outline: 2px solid var(--lume); outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; font-optical-sizing: auto; text-wrap: balance; }
.h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.38; max-width: 36ch; }
.note { font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.todo { color: #ffb4a8; }

.skip { position: fixed; left: var(--m); top: 12px; z-index: 100; background: var(--lume); color: var(--lume-ink); padding: 10px 14px; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.skip:focus { transform: none; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--lume); color: var(--lume-ink); font: 500 var(--step-small)/1 var(--sans); padding: 14px 20px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: background-color 0.25s, transform 0.25s var(--ease); }
.btn:hover { background: var(--lume-hover); }
.btn:active { transform: scale(0.97); }
.btn--large { font-size: var(--step-body); padding: 19px 28px; }
.btn__short { display: none; }

.link { display: inline-block; background: none; border: 0; padding: 6px 0; color: var(--ink); font: 500 var(--step-body)/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: rgba(232, 234, 228, 0.5); cursor: pointer; transition: text-decoration-color 0.3s, text-underline-offset 0.4s var(--ease), color 0.3s; }
.link:hover { text-decoration-color: var(--lume); text-underline-offset: 4px; }
.link:active { transform: translateY(1px); }

/* ---------- Barre du haut ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 40px; padding: 0 var(--m); transition: transform 0.6s var(--ease), background-color 0.4s; }
.bar.is-solid { background: var(--bg); }
.bar.is-hidden { transform: translateY(-100%); }
.bar:focus-within { transform: none; } /* barre toujours visible quand elle a le focus clavier (modern-web-guidance, accessibility) */
.bar__brand { display: block; flex: none; }
.bar__brand img { height: 30px; width: auto; }
.bar__nav { display: flex; gap: 32px; margin-left: auto; font-size: var(--step-small); }
.bar__nav a { text-decoration: none; padding: 8px 0; transition: color 0.25s; }
.bar__nav a:hover { color: var(--lume); }

/* ---------- Accueil : la scène ---------- */
.scene__stage { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero { position: absolute; z-index: 2; left: var(--m); top: calc(var(--bar) + 9svh); width: min(46vw, 640px); }
.hero__title { font-size: var(--step-head); max-width: 9.5em; }
.hero__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.38; max-width: 29ch; }
.hero__actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Le masque radial n'est pas un fond : il fond les bords de la prise de vue dans la pièce sombre, sans cadre. */
.scene__watch { position: absolute; z-index: 1; right: calc(var(--m) + 2vw); top: calc(var(--bar) + 2svh); width: min(56svh, 42vw); aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); } /* taste-skill-ignore : masque de fondu, pas un fond */
.scene__poster, .scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: lighten; }
.scene__canvas { opacity: 0; }
.scene.is-live .scene__canvas { opacity: 1; }
.scene.is-live .scene__poster { opacity: 0; }
.scene__dim { position: absolute; inset: 0; background: #000; opacity: 0; }
/* Le sac et le bijou ne sont pas ronds : pas de masque, et un mot plus court, donc plus haut, à contenir */
.home--objet .scene__watch { -webkit-mask-image: none; mask-image: none; }
.home--objet .hero__mark img { max-height: 15svh; }
.home--objet .scene__dim { background: #0c110f; }
.motion-wait .hero, .motion-wait .hero__mark img, .motion-wait .scene__watch { opacity: 0; }

.hero__mark { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: clamp(18px, 3svh, 34px); }
.hero__mark img { width: 100%; max-height: 22svh; object-fit: contain; object-position: left bottom; }

/* Sans script ou sans animation, la phrase est un paragraphe sous la scène */
.scene__statement { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.3; text-align: center; max-width: 30ch; margin: var(--gap) auto 0; padding: 0 var(--m); }
.scene__stage .scene__statement { position: absolute; z-index: 3; left: 50%; top: 50%; margin: 0; padding: 0; width: min(880px, 86vw); max-width: none; transform: translate(-50%, -50%); pointer-events: none; }

/* ---------- Grille commune ---------- */
.cover, .versus, .price, .examples, .steps, .claim, .faq, .guides, .quote { padding: var(--gap) var(--m) 0; }

/* ---------- Garanties ---------- */
.cover { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.cover__text { grid-column: 1 / span 6; }
.cover__text .lead { margin-top: 32px; }
.cover__list { margin-top: 56px; }
.cover__item h3 { font-size: var(--step-lead); line-height: 1.15; }
.cover__item button { all: unset; display: block; width: 100%; padding: 18px 0; cursor: pointer; color: var(--muted); transition: color 0.3s, transform 0.4s var(--ease); }
.cover__item button:hover { color: var(--ink); transform: translateX(8px); }
.cover__item button:focus-visible { outline: 2px solid var(--lume); outline-offset: 4px; }
.cover__item.is-open button { color: var(--ink); }
.cover__item.is-open button::before { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin: 0 0.45em 0.12em 0; border-radius: 50%; background: var(--lume); }
.cover__panel { overflow: hidden; }
.cover__panel p { padding: 0 0 22px; max-width: 46ch; }
.cover__media { grid-column: 8 / span 5; position: sticky; top: calc(var(--bar) + 6svh); aspect-ratio: 4 / 5; }
.cover__fig { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; }
.cover__fig.is-active { opacity: 1; visibility: visible; }
.cover__fig img { flex: 1; min-height: 0; width: 100%; object-fit: cover; filter: brightness(0.86) contrast(1.05); }
.cover__fig figcaption { font-size: var(--step-small); color: var(--muted); }

/* ---------- Habitation contre AssurMontres ---------- */
.versus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.versus__head { grid-column: 1 / span 8; }
.versus__head .lead { margin-top: 32px; max-width: 52ch; }
.versus__table { grid-column: 1 / -1; margin-top: 64px; background: var(--bg-2); padding: clamp(20px, 3vw, 44px); }
.versus__table .note { margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-body); line-height: 1.45; }
thead th { font-weight: 500; font-size: var(--step-small); color: var(--muted); text-align: left; padding: 0 16px 14px 0; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); }
tbody th { font-weight: 400; color: var(--muted); width: 28%; }
tbody td:last-child { color: var(--ink); font-weight: 500; }
tbody td:nth-child(2) { color: var(--muted); }

/* ---------- Estimateur ---------- */
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.price__controls { grid-column: 1 / span 5; }
.price__controls .lead { margin-top: 32px; }
.est { margin-top: 48px; display: grid; gap: 14px; }
.est__label { font-size: var(--step-small); color: var(--muted); padding: 0; }
.est__value { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: var(--step-head); line-height: 1; }
.est__value input { all: unset; field-sizing: content; min-width: 2ch; width: 6.6ch; font: inherit; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.est__value input:focus-visible { border-bottom-color: var(--lume); }
@supports (field-sizing: content) { .est__value input { width: auto; } }
.est__value span { font-size: var(--step-lead); }
/* La piste est dessinée derrière le curseur natif : un fond, et un remplissage mis à l'échelle */
.est__track { position: relative; height: 36px; margin-top: 8px; }
.est__track::before, .est__fill { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 4px; background: var(--surface-2); }
.est__fill { background: var(--lume); transform-origin: left; transform: scaleX(var(--p, 0.469)); }
.est__range { -webkit-appearance: none; appearance: none; position: relative; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; }
.est__range::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.est__range::-moz-range-track { height: 4px; background: transparent; }
.est__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--lume); border: 0; transition: transform 0.2s var(--ease); }
.est__range::-moz-range-thumb { width: 22px; height: 22px; background: var(--lume); border: 0; border-radius: 0; }
.est__range:active::-webkit-slider-thumb { transform: scale(1.2); }
.est__limits { font-size: var(--step-small); color: var(--muted); }

.price__result { grid-column: 7 / span 6; }
.price__figure { display: flex; align-items: flex-end; gap: 0.12em; font-family: var(--serif); line-height: 0.82; }
.price__figure strong { font-weight: 400; font-size: var(--step-display); letter-spacing: -0.045em; font-variant-numeric: lining-nums tabular-nums; }
.price__unit { font-family: var(--sans); font-size: var(--step-body); line-height: 1.3; padding-bottom: 0.5em; }
/* Au-delà du seuil, l'estimateur affiche « Sur devis » : plus d'unité, chiffre remplacé par un mot plus petit */
.price__figure.is-devis .price__unit { display: none; }
.price__figure.is-devis strong { font-size: calc(var(--step-display) * 0.55); letter-spacing: -0.02em; line-height: 1; }
.price__annual { margin-top: 20px; font-size: var(--step-lead); color: var(--muted); }
.price__incl { margin: 36px 0 40px; display: grid; gap: 6px; }
.price__result .note { margin-top: 24px; }

/* ---------- Exemples : la pile ---------- */
.examples__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.examples__head h2 { grid-column: 1 / span 6; }
.examples__intro { grid-column: 8 / span 5; display: grid; gap: 16px; }
.examples__stack { margin-top: 72px; }
/* Les cartes sont presque noires : la montre sort de l'obscurité, la photo se fond dans le texte sans bord visible */
.example { --fond: #070a09; position: sticky; top: calc(var(--bar) + 3svh); height: min(74svh, 720px); margin-bottom: 4svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--fond); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transform-origin: 50% 0; }
.example__photo { position: relative; min-height: 0; overflow: hidden; }
.example__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 68%, var(--fond)); pointer-events: none; }
.example__photo img { width: 100%; height: 112%; object-fit: cover; }
.example__text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: clamp(28px, 5vw, 80px); }
.example h3 { font-size: var(--step-head); max-width: 10em; }
.example dl { display: flex; gap: 20px 48px; flex-wrap: wrap; }
.example dt { font-size: var(--step-small); color: var(--muted); }
.example dd { font-size: var(--step-lead); margin-top: 4px; }
.example__premium dd { color: var(--lume); }
.example .link { align-self: flex-start; }
.example__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.examples__houses { margin-top: 24px; max-width: 64ch; font-size: var(--step-body); }

/* ---------- Quatre gestes ---------- */
.steps__list { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps__list li { display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.steps__list li:nth-child(even) { padding-top: 72px; }
.steps__say { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.15; }
.steps__list li:last-child .steps__say { color: var(--lume); }

/* ---------- Sinistre ---------- */
.claim { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.claim__media { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 14px; }
.claim__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(0.9); }
.claim__media figcaption { font-size: var(--step-small); color: var(--muted); }
.claim__text { grid-column: 7 / span 6; }
.claim__text .lead { margin-top: 32px; }
.claim__steps { margin-top: 48px; display: grid; gap: 28px; }
.claim__steps dt { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.15; }
.claim__steps dd { margin-top: 8px; max-width: 46ch; }

/* ---------- Questions ---------- */
.faq__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-bottom: clamp(44px, 5vw, 72px); }
.faq__row h3, .faq__title { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.15; }
.faq__title { color: var(--muted); }
.faq__row p { grid-column: 8 / span 5; max-width: 42ch; padding-top: 0.2em; }

/* ---------- Guides ---------- */
.guides__list { margin-top: 48px; }
.guides__list a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; padding: 28px 0; text-decoration: none; transition: background-color 0.3s; }
.guides__title { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.15; transition: transform 0.45s var(--ease), color 0.3s; }
.guides__desc { grid-column: 8 / span 5; color: var(--ink); }
.guides__list a:hover .guides__title { transform: translateX(14px); color: var(--lume); }

/* ---------- Devis ---------- */
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.quote__text { grid-column: 1 / span 8; display: flex; flex-direction: column; align-items: flex-start; }
.quote__text .lead { margin-top: 32px; }
.quote__text .btn { margin-top: 40px; }
.quote__alt { margin-top: 28px; }

/* ---------- Pied de page ---------- */
.foot { padding: var(--gap) var(--m) 0; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; font-size: var(--step-small); line-height: 1.6; }
.foot__grid > p:first-child { grid-column: 1 / span 4; }
.foot__grid nav { grid-column: 6 / span 3; display: grid; gap: 6px; align-content: start; }
.foot__grid nav a { text-decoration: none; justify-self: start; transition: color 0.25s; }
.foot__grid nav a:hover { color: var(--lume); }
.foot__credits { grid-column: 9 / span 4; font-size: var(--step-small); color: var(--muted); }
.foot__mark { margin-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(18px, 3vw, 36px); overflow: hidden; }
.foot__mark img { width: 100%; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .faq__row { grid-template-columns: minmax(0, 1fr); }
  .faq__row h3, .faq__title, .faq__row p { grid-column: 1 / -1; }
  .faq__row p { margin-top: 14px; max-width: 60ch; }
  .bar__nav { display: none; }
  .bar .btn { margin-left: auto; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone : sa propre composition ---------- */
@media (max-width: 760px) {
  :root { --bar: 64px; --gap: 120px; }
  .bar__brand img { height: 24px; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .bar .btn { padding: 12px 16px; }

  .scene__stage { min-height: 600px; }
  .hero { top: calc(var(--bar) + 4svh); width: auto; right: var(--m); }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 24px; gap: 22px; }
  .scene__watch { left: 0; right: 0; margin-inline: auto; top: auto; bottom: calc(clamp(18px, 3svh, 34px) + 14vw); width: min(68vw, 38svh); }

  .cover, .versus, .price, .claim, .quote, .examples__head { grid-template-columns: minmax(0, 1fr); }
  .steps__list li:nth-child(even) { padding-top: 0; }
  .cover__text, .cover__media, .versus__head, .versus__table, .price__controls, .price__result,
  .claim__media, .claim__text, .quote__text, .examples__head h2, .examples__intro { grid-column: 1 / -1; }
  .cover__media { position: relative; top: 0; margin-top: 40px; }
  .versus__table { margin-top: 48px; overflow-x: auto; }
  table { font-size: var(--step-small); }
  .price__result { margin-top: 104px; }
  .examples__intro { margin-top: 24px; }
  .example { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46% 1fr; height: min(82svh, 720px); }
  .example__photo::after { background: linear-gradient(to bottom, transparent 70%, var(--fond)); }
  .example__text { gap: 20px; justify-content: flex-start; }
  .example dl { gap: 28px; }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .steps__list li { min-height: 0; }
  .claim__text { margin-top: 48px; }
  .faq__row { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .faq__row h3, .faq__title, .faq__row p { grid-column: 1 / -1; }
  .faq__row p { margin-top: 12px; }
  .guides__list a { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .guides__title, .guides__desc { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid > p:first-child, .foot__grid nav, .foot__credits { grid-column: 1 / -1; }
}

/* transition: none et non une durée infime : avec une durée, chaque style changé devient une transition,
   et ScrollTrigger mesure la page avant que l'épinglage de la section précédente n'y ait pris sa place */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =================== Pages intérieures =================== */
.page .bar { background: var(--bg); }
mark.todo { background: rgba(255, 180, 168, 0.14); color: #ffb4a8; padding: 0 0.2em; }

/* ---------- Article (guides, pages légales) ---------- */
.article { padding: calc(var(--bar) + clamp(56px, 9vw, 120px)) var(--m) 0; }
.article__head { max-width: 1040px; }
.article__title { font-size: var(--step-head); }
.article__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.38; max-width: 40ch; }
.article__meta { margin-top: 24px; font-size: var(--step-small); color: var(--muted); }
.article__figure { margin-top: clamp(48px, 6vw, 80px); }
.article__figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: brightness(0.88); }
.article__figure img[src*="/b-"] { filter: none; }   /* les bandeaux se fondent dans le fond de la page */
.article__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; margin-top: clamp(56px, 7vw, 96px); }
.article__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--bar) + 32px); font-size: var(--step-small); }
.article__toc ul { display: grid; gap: 12px; }
.article__toc a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.article__toc a:hover { color: var(--ink); }
.prose { grid-column: 5 / span 7; max-width: 68ch; }
.article__body--single .prose { grid-column: 1 / span 8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-lead); line-height: 1.15; margin-top: 2.2em; scroll-margin-top: calc(var(--bar) + 24px); }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: var(--step-body); letter-spacing: 0; line-height: 1.4; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--lume); }
.prose strong { font-weight: 600; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(232, 234, 228, 0.5); transition: text-decoration-color 0.25s; }
.prose a:hover { text-decoration-color: var(--lume); }
.prose figure { margin-top: 2em; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.retenir { background: var(--surface); padding: clamp(24px, 3vw, 40px); margin-top: 2.4em !important; }
.retenir h2 { margin-top: 0; }
.retenir ul { margin-top: 1em; }
.article__cta { margin-top: var(--gap); display: grid; gap: 28px; justify-items: start; }
.related { margin-top: var(--gap); }
.related__all { margin-top: 32px; }
.more { margin-top: 32px; }
/* Les rubriques : le chemin de la page, et des tableaux simples dans le texte */
.crumbs { margin-bottom: 32px; font-size: var(--step-small); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(232, 234, 228, 0.5); transition: color 0.25s; }
.crumbs a:hover { color: var(--ink); }
.prose { overflow-wrap: break-word; }
.article__title { overflow-wrap: break-word; hyphens: auto; }
.prose table { table-layout: fixed; hyphens: auto; }
.prose thead th { padding-bottom: 10px; }
.prose thead th:first-child { width: 30%; }
.prose tbody td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--step-small); }
.prose tbody td:first-child { color: var(--muted); }
.prose tbody td:last-child { padding-right: 0; font-weight: 500; }
@media (max-width: 500px) {
  .prose thead th { font-size: 13px; padding-right: 8px; }
  .prose thead th:first-child { width: 42%; }
  .prose tbody td { font-size: 14px; padding-right: 8px; }
  /* Tableaux de texte : une fiche par ligne, chaque cellule annonce sa colonne */
  .prose .fiches, .prose .fiches tbody, .prose .fiches tr, .prose .fiches td { display: block; }
  .prose .fiches thead { display: none; }
  .prose .fiches tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .prose .fiches tbody td { padding: 3px 0; border-top: 0; }
  .prose .fiches tbody td:first-child { padding-bottom: 6px; color: var(--ink); font-weight: 500; }
  .prose .fiches tbody td:not(:first-child) { font-weight: 400; }
  .prose .fiches tbody td:not(:first-child)::before { content: attr(data-colonne) " : "; color: var(--muted); }
}

/* ---------- Les guides : le blog ---------- */
.blog { padding: calc(var(--bar) + clamp(56px, 9vw, 120px)) var(--m) 0; }
.blog__head .lead { margin-top: 28px; }
.blog__feature { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--surface); text-decoration: none; overflow: hidden; }
.blog__feature img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(0.88); transition: transform 0.9s var(--ease); }
.blog__feature:hover img { transform: scale(1.03); }
.blog__feature-text { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.blog__date { font-size: var(--step-small); color: var(--muted); }
.blog .guides__list { margin-top: 48px; }

/* ---------- Devis ---------- */
.qp { padding: calc(var(--bar) + clamp(48px, 8vw, 112px)) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.qp__intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar) + 32px); }
.qp__intro .lead { margin-top: 28px; }
.qp__after { margin-top: 48px; display: grid; gap: 24px; }
.qp__after dt { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.15; }
.qp__after dd { margin-top: 6px; }
.qf { grid-column: 6 / span 7; background: var(--bg-2); padding: clamp(24px, 4vw, 56px); color-scheme: dark; }
.qf__error { background: rgba(255, 180, 168, 0.12); color: #ffd3cb; padding: 16px 20px; margin-bottom: 32px; }
.qf__progress { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 40px; font-size: var(--step-small); color: var(--muted); }
.qf__progress .is-done, .qf__progress [aria-current] { color: var(--ink); }
.qf__progress [aria-current]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--lume); }
.qf__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf:not(.is-stepped) .qf__step + .qf__step { margin-top: 64px; }
.qf__legend { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.15; padding: 0; margin-bottom: 32px; }
.qf__legend:focus { outline: none; }
.qf__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
.qf__field { display: grid; gap: 8px; margin-bottom: 24px; align-content: start; }
.qf__field[hidden] { display: none; }
.qf__field label { font-size: var(--step-small); }
.qf__opt { color: var(--muted); }
.qf input[type="text"], .qf input[type="email"], .qf input[type="tel"], .qf input[type="date"], .qf select, .qf textarea {
  width: 100%; background: var(--surface); color: var(--ink); font: inherit; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 16px; transition: border-color 0.25s, background-color 0.25s;
}
.qf textarea { resize: vertical; min-height: 120px; }
.qf select { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23e8eae4' stroke-width='1.5'/%3E%3C/svg%3E"); appearance: none; -webkit-appearance: none; color-scheme: dark; cursor: pointer; padding-right: 44px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 16px center; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: none; border-bottom-color: var(--lume); background-color: var(--surface-2); }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible { outline: 2px solid var(--lume); outline-offset: 2px; }
.qf [aria-invalid="true"] { border-bottom-color: #ffb4a8; }
/* Message d'erreur : juste sous le champ, précédé d'un pictogramme (le mot « Erreur » est lu par les lecteurs d'écran, en .sr) */
.qf__err { color: #ffb4a8; font-size: var(--step-small); }
.qf__err::before { content: "!"; content: "!" / ""; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: 0.55em; border: 1px solid currentColor; border-radius: 50%; font-size: 0.78em; font-weight: 600; line-height: 1; vertical-align: 0.12em; }
.qf__check + .qf__err { margin: -20px 0 28px 36px; }
.qf__choice[hidden] { display: none; }
.qf__choice .qf__err { flex-basis: 100%; }
.qf__choice input[aria-invalid="true"] + span { box-shadow: inset 0 0 0 1px #ffb4a8; }
.qf input[type="file"] { width: 100%; color: var(--ink); font: inherit; font-size: var(--step-small); background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 16px; cursor: pointer; }
.qf input[type="file"]::file-selector-button { margin-right: 16px; padding: 9px 14px; font: inherit; color: var(--bg); background: var(--ink); border: 0; cursor: pointer; }
.qf__help { color: var(--muted); font-size: var(--step-small); }
.qf__suffix { position: relative; display: block; }
.qf__suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qf__choice { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.qf__choice legend { font-size: var(--step-small); padding: 0; margin-bottom: 10px; }
.qf__choice label { position: relative; cursor: pointer; }
.qf__choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qf__choice label > span { display: block; padding: 13px 18px; background: var(--surface); font-size: var(--step-small); transition: background-color 0.25s, color 0.25s; }
.qf__choice label:hover span { background: var(--surface-2); }
.qf__choice input:checked + span { background: var(--ink); color: var(--bg); }
.qf__choice input:focus-visible + span { outline: 2px solid var(--lume); outline-offset: 3px; }
.qf__choice--multi { display: grid; justify-items: start; }
.qf__check { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 28px; cursor: pointer; }
.qf__check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--lume); }
.qf__place[hidden] { display: none; }
.qf__nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.qf__nav:has(> :only-child) { justify-content: flex-end; }
.qf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { padding: calc(var(--bar) + clamp(80px, 14vw, 180px)) var(--m) 0; max-width: 1040px; display: grid; gap: 28px; justify-items: start; }

@media (max-width: 900px) {
  .article__body { grid-template-columns: minmax(0, 1fr); }
  .article__toc { position: relative; top: 0; margin-bottom: 40px; }
  .prose, .article__body--single .prose { grid-column: 1 / -1; }
  .article__figure img { aspect-ratio: 4 / 3; }
  .blog__feature { grid-template-columns: minmax(0, 1fr); }
  .qp { grid-template-columns: minmax(0, 1fr); }
  .qp__intro { grid-column: 1 / -1; position: relative; top: 0; }
  .qf { grid-column: 1 / -1; margin-top: 48px; }
  .qf__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Listes de guides avec vignette ---------- */
.guides__list--thumbs a { grid-template-columns: 160px repeat(11, minmax(0, 1fr)); align-items: center; padding: 20px 0; }
.guides__thumb { grid-column: 1; width: 160px; height: 120px; object-fit: cover; filter: brightness(0.85); transition: filter 0.4s; }
.guides__list--thumbs .guides__title { grid-column: 2 / span 6; padding-left: 8px; }
.guides__list--thumbs .guides__desc { grid-column: 9 / span 4; }
.guides__list--thumbs a:hover .guides__thumb { filter: brightness(1); }
/* La mise en avant : la photo en bandeau, le texte dessous sur toute la largeur */
.blog__feature { grid-template-columns: minmax(0, 1fr); }
.blog__feature img { aspect-ratio: 21 / 9; }
.blog__feature-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; }
.blog__feature-text .h2 { grid-column: 1 / span 8; }
.blog__feature-text .blog__desc { grid-column: 9 / span 4; }
.blog__feature-text .blog__date, .blog__feature-text .link { grid-column: 1 / span 6; }
/* Devis */
.qp__fig { margin-top: 40px; }
.qp__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(0.88); }
.qf__field label, .qf__choice legend, .qf__progress { font-size: var(--step-body); }
@media (max-width: 900px) {
  .guides__list--thumbs a { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .guides__thumb { width: 96px; height: 72px; grid-row: span 2; }
  .guides__list--thumbs .guides__title, .guides__list--thumbs .guides__desc { grid-column: 2; padding-left: 0; }
  .blog__feature-text { grid-template-columns: minmax(0, 1fr); }
  .blog__feature-text > * { grid-column: 1 / -1 !important; }
}

@media (max-width: 760px) {
  .blog__feature-text .h2 { font-size: var(--step-lead); }
}

/* ---------- Pièce par pièce : la vue éclatée ----------
   Sans script : le dessin de la montre, déjà éclatée, et les légendes en liste.
   Avec les animations (.is-live) : 96 images calculées, jouées au défilement sur un canevas de la couleur exacte de la page. */
.xv { padding: 0 var(--m); }
.xv:not(.is-live) { padding-top: var(--gap); }
.xv__stage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.xv__head { grid-column: 1 / span 4; align-self: start; position: relative; z-index: 3; }
.xv__head .lead { margin-top: 28px; }
.xv__view { grid-column: 5 / span 4; position: relative; }
.xv__still { display: block; width: 100%; height: auto; }
.xv__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.xv__labels { grid-column: 9 / span 4; display: grid; gap: 28px; position: relative; z-index: 2; }
.xv__label { display: grid; gap: 6px; max-width: 34ch; }
.xv__name { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.1; }
.xv__end { grid-column: 1 / span 4; position: relative; z-index: 3; margin-top: 40px; font-family: var(--serif); font-size: var(--step-lead); line-height: 1.25; }

.xv.is-live .xv__stage { height: 100svh; min-height: 640px; }
.xv.is-live .xv__head { padding-top: calc(var(--bar) + 6svh); }
.xv.is-live .xv__view { height: 100%; background: none; overflow: visible; }
/* Compressée, l'image s'écarte de quelques niveaux du fond : ses bords s'estompent pour qu'aucun rectangle ne se devine */
.xv__canvas {
  position: absolute; max-width: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect;
}
.xv.is-live .xv__labels { display: block; align-self: stretch; height: 100%; }
.xv.is-live .xv__label { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.xv.is-live .xv__end { position: absolute; grid-row: 1; left: 0; right: 0; bottom: 9svh; margin: 0; opacity: 0; }

@media (max-width: 760px) {
  .xv__stage { grid-template-columns: minmax(0, 1fr); }
  .xv__head, .xv__view, .xv__labels, .xv__end { grid-column: 1 / -1; }
  .xv:not(.is-live) .xv__leaders { display: none; }
  .xv.is-live .xv__head { padding-top: calc(var(--bar) + 3svh); }
  .xv.is-live .xv__view { height: auto; min-height: 0; flex: 1; margin-top: 18px; align-self: stretch; }
  .xv.is-live .xv__head .lead { display: none; }   /* il laisse sa place à la montre */
  .xv.is-live .xv__stage { display: flex; flex-direction: column; min-height: 520px; }
  .xv.is-live .xv__labels { position: relative; height: 128px; flex: none; margin-top: 16px; margin-bottom: 4svh; }
  .xv.is-live .xv__label { left: 0; right: 0; transform: none !important; }
  .xv.is-live .xv__end { left: 0; right: 0; width: auto; bottom: 3svh; text-align: center; }
}


/* ================= L'accueil : le film de la boutique (outils/rendu/boutique.py, lu par assets/js/film.js) ================= */
.film__stage { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg); }

/* Le film est cadré pour l'accueil : la montre à droite, le titre à gauche sur un voile. */
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.film__voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 17, 15, 0.86) 0%, rgba(12, 17, 15, 0.6) 30%, rgba(12, 17, 15, 0) 56%),
    linear-gradient(to top, var(--bg) 0%, rgba(12, 17, 15, 0.55) 16%, rgba(12, 17, 15, 0) 34%);
}
.film .hero, .film .hero__mark { z-index: 2; }

.film__commande {
  position: absolute; z-index: 3; right: var(--m); bottom: calc(clamp(18px, 3svh, 34px) + 23svh);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(12, 17, 15, 0.55); color: var(--ink); border: 1px solid rgba(232, 234, 228, 0.28);
  font: 500 var(--step-small)/1 var(--sans); cursor: pointer; transition: background-color 0.25s, border-color 0.25s;
}
.film__commande:hover { background: rgba(12, 17, 15, 0.8); border-color: rgba(232, 234, 228, 0.6); }
.film__commande:focus-visible { outline: 2px solid var(--lume); outline-offset: 3px; }
.film__icone { width: 10px; height: 12px; display: inline-block; background: currentColor; }
.film__commande[data-etat="lecture"] .film__icone { width: 10px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.film__commande[data-etat="pause"] .film__icone, .film__commande[data-etat="voir"] .film__icone { clip-path: polygon(0 0, 100% 50%, 0 100%); }

.film .scene__statement { margin-top: var(--gap); }

@media (max-width: 760px) {
  /* Sur téléphone, un film vertical à part : la montre y est plus bas, sous le titre */
  .film__video { object-position: 50% 50%; }
  .film__voile {
    background:
      linear-gradient(to bottom, rgba(12, 17, 15, 0.9) 0%, rgba(12, 17, 15, 0.72) 34%, rgba(12, 17, 15, 0) 54%),
      linear-gradient(to top, var(--bg) 0%, rgba(12, 17, 15, 0.5) 12%, rgba(12, 17, 15, 0) 26%);
  }
  .film__commande { bottom: calc(clamp(18px, 3svh, 34px) + 18vw); }
}
