/* Deco Render · site public. Jetons repris de l’app. */

@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #F6F2EC;
  --surface: #FFFCF8;
  --ink: #231E19;
  --ink2: #6B625A;
  --ink3: #A39A8F;
  --tint: #B4532A;
  --tint-text: #9A4420;          /* terre cuite assombrie : texte courant sur crème, contraste 5,8:1 */
  --tint-soft: rgba(180, 83, 42, .12);
  --tint-light: #F0A27C;         /* terre cuite éclaircie : texte et traits sur fond nuit */
  --tint-glow: #E8875B;
  --fill: rgba(72, 54, 36, .075);
  --fill2: rgba(72, 54, 36, .12);
  --sep: rgba(60, 45, 30, .13);
  --night: #1A1512;
  --night-2: #241D18;
  --on-night: #F6F2EC;
  --on-night-2: rgba(246, 242, 236, .68);
  --sep-night: rgba(246, 242, 236, .16);
  --veil: rgba(20, 17, 14, .68);  /* voile sombre des étiquettes posées sur une photo */
  --on-photo: #FFFFFF;

  --r-hero: 28px;
  --r-card: 22px;
  --r-group: 20px;
  --r-tile: 16px;

  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(72px, 9vw, 128px);
  --lift: 0 30px 60px -30px rgba(40, 28, 16, .45), 0 0 0 .5px var(--sep);

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint); color: var(--surface); }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 500; transition: top .2s var(--out); }
.skip:focus { top: 12px; }

.wrap { width: min(100%, var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ——— Texte ——— */
.display { font-size: clamp(2.75rem, 1.35rem + 5.9vw, 5.75rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.03; text-wrap: balance; }
.h2 > span { display: block; }   /* titres en deux temps : une phrase par ligne, jamais coupées en leur milieu */
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.45; color: var(--ink2); max-width: 34em; text-wrap: pretty; }
.small { font-size: .9375rem; line-height: 1.45; }
.foot { font-size: .8125rem; line-height: 1.45; }
.muted { color: var(--ink2); }
.link { color: var(--tint-text); font-weight: 500; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ——— En-tête ——— */
.top { display: flex; align-items: center; gap: 12px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--sep), 0 4px 10px -4px rgba(40, 28, 16, .35); }
.top nav { margin-left: auto; display: none; }
.top nav ul { display: flex; gap: 4px; }
.top nav a, .lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink2); transition: color .18s ease-out, background-color .18s ease-out; }
.top nav a:hover, .lang:hover { color: var(--ink); background: var(--fill); }
.top nav a[aria-current="page"] { color: var(--ink); }
.lang { margin-left: auto; color: var(--ink); }
.top .store { display: none; }
@media (min-width: 900px) {
  .top nav { display: block; }
  .lang { margin-left: 0; }
  .top .store { display: inline-flex; }
}

/* ——— App Store : état d’attente (span), puis lien une fois l’adresse renseignée dans assets/config.js.
   En tête de page et en fin de page, le lien est le badge officiel d’Apple (.badge). ——— */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 500; font-size: 1.0625rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.store::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tint-glow); animation: attente 2.4s var(--out) infinite; }
a.store::before { display: none; }
a.store { transition: transform .35s var(--out), background-color .18s ease-out; }
a.store:hover { background: #3A322B; }
a.store:active { transform: scale(.97); }
.store--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.store--light { background: var(--surface); color: var(--ink); }
.store--light::before { background: var(--tint); }
.badge { display: inline-block; border-radius: 10px; transition: transform .35s var(--out); }
.badge img { height: 56px; width: auto; }
.badge:active { transform: scale(.97); }
@keyframes attente { 0% { box-shadow: 0 0 0 0 rgba(232, 135, 91, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(232, 135, 91, 0); } }

.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--ink); }
.more svg { width: 18px; height: 18px; transition: transform .35s var(--out); }
.more:hover svg { transform: translateY(3px); }

/* ——— Accueil : tête. Sur téléphone, la photo vient juste après le titre. ——— */
.hero { display: grid; gap: 28px; padding-block: clamp(12px, 4vw, 48px) 0; }
.hero__rest { display: grid; gap: 20px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__meta { color: var(--ink2); }
.swap { display: inline; transition: opacity .28s ease-out; }
.swap.is-out { opacity: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto auto; grid-template-areas: "title compare" "rest compare"; align-content: center; column-gap: clamp(40px, 6vw, 96px); row-gap: 0; min-height: min(820px, 100svh - 90px); }
  .hero__title { grid-area: title; align-self: end; }
  .hero__rest { grid-area: rest; align-self: start; gap: 24px; padding-top: 28px; }
  .hero__compare { grid-area: compare; align-self: center; justify-self: end; width: min(100%, (100svh - 200px) * .75); min-width: 380px; }
}
/* Apparition de la tête de page : en CSS seul, elle ne dépend d’aucun script. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__compare, .hero__rest > * { animation: monte .9s var(--out) both; }
  .hero__compare { animation-delay: .1s; }
  .hero__rest > :nth-child(1) { animation-delay: .08s; }
  .hero__rest > :nth-child(2) { animation-delay: .16s; }
  .hero__rest > :nth-child(3) { animation-delay: .2s; }
}
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }

/* ——— Comparateur avant, après ——— */
.compare { --pos: 50%; display: grid; gap: 12px; width: 100%; max-width: 560px; }
.compare__stage { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-hero); overflow: hidden; background: var(--fill2); isolation: isolate; box-shadow: var(--lift); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .45s ease-out; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare.is-loading .compare__img { opacity: 0; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: 0 0 12px rgba(20, 17, 14, .35); pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231E19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 7.5 4 12l4.5 4.5M15.5 7.5 20 12l-4.5 4.5M4.5 12h15'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 6px 18px rgba(20, 17, 14, .3); transition: transform .35s var(--out); }
.compare.is-dragging .compare__handle::after { transform: scale(.92); }
.compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--tint); outline-offset: 3px; }
.compare.is-gliding .compare__after { transition: clip-path .9s var(--spring); }
.compare.is-gliding .compare__handle { transition: left .9s var(--spring); }
.tag { position: absolute; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--veil); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); color: var(--surface); font-size: .8125rem; font-weight: 500; pointer-events: none; }
.tag--before { left: 14px; }
.tag--after { right: 14px; }
.compare figcaption { color: var(--ink2); }

/* Réglette des espaces, comme à l’accueil de l’app */
.spaces { position: absolute; z-index: 3; top: 14px; left: 14px; display: none; padding: 4px; border: 0; margin: 0; border-radius: 999px; background: var(--veil); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); cursor: default; }
.js .spaces { display: inline-flex; }
.spaces label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--surface); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: color .18s ease-out, background-color .3s var(--out); }
.spaces label::after { content: ""; position: absolute; inset: -6px 0; }
.spaces input { position: absolute; opacity: 0; pointer-events: none; }
.spaces input:checked + label { background: var(--surface); color: var(--ink); }
.spaces input:focus-visible + label { outline: 2px solid var(--surface); outline-offset: 2px; }

/* ——— Sections : un seul fond crème, deux ruptures (nuit pour le scan, terre cuite pour la fin) ——— */
.section { padding-top: var(--section); }
.section--block { margin-top: var(--section); padding-bottom: var(--section); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 50rem; }

/* Vignette « Avant » incrustée dans une photo « après » */
.before { position: absolute; left: 12px; bottom: 12px; width: 30%; max-width: 132px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 10px 24px -8px rgba(20, 17, 14, .55); }
.before img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.before span { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: var(--veil); color: var(--surface); font-size: .75rem; font-weight: 500; line-height: 1.3; }

/* ——— Le geste : la photo et ses zones, la feuille où la phrase s’écrit ——— */
.gesture { display: grid; }
.gesture__lead { margin: 20px 0 28px; }
.gesture__photo { width: 100%; max-width: 520px; justify-self: center; }
.zonephoto { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-hero); overflow: hidden; background: var(--fill2); box-shadow: var(--lift); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.zonephoto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { fill: transparent; stroke: transparent; stroke-linejoin: round; fill-rule: evenodd; vector-effect: non-scaling-stroke; pointer-events: all; transition: fill .22s ease-out, stroke .22s ease-out; }
.js .zone:not(.zone--fixed) { cursor: pointer; }
/* Les quatre états reprennent ceux de l’app : au repos (pointillés), à refaire, gardé, toujours en place. */
.zone[data-state="none"]:not(.zone--backdrop) { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-dasharray: 4 4; }
.zonephoto.is-live .zone[data-state="none"]:not(.zone--backdrop) { animation: pointilles .7s linear infinite; }
.zone[data-state="redo"] { fill: rgba(180, 83, 42, .32); stroke: var(--on-photo); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(180, 83, 42, .75)); }
.zone[data-state="keep"] { fill: rgba(0, 0, 0, .25); stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; }
.zone--fixed { stroke: rgba(255, 255, 255, .6); stroke-width: 1.2; }
@media (hover: hover) {
  .js .zone[data-state="none"]:hover { fill: rgba(255, 255, 255, .2); }
}
@keyframes pointilles { to { stroke-dashoffset: -8; } }

/* Repère d’une zone : un point tant qu’on n’y a pas touché, une étiquette ensuite. */
.pin { position: absolute; z-index: 2; left: clamp(56px, var(--x), 100% - 56px); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--veil); color: var(--on-photo); font-size: .8125rem; font-weight: 700; line-height: 1; white-space: nowrap; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background-color .2s ease-out, transform .35s var(--out); }
.pin::before { content: ""; flex: none; width: 12px; height: 12px; background: center / contain no-repeat; }
.pin::after { content: ""; position: absolute; inset: -8px -4px; }
button.pin:active { transform: translate(-50%, -50%) scale(.94); }
.pin:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 2px; border-radius: 999px; }
.pin[data-state="none"] { left: var(--x); width: 22px; height: 22px; padding: 0; justify-content: center; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px var(--on-photo), 0 0 8px rgba(0, 0, 0, .4); }
.pin[data-state="none"]::before { width: 10px; height: 10px; border-radius: 50%; background: var(--on-photo); }
.pin[data-state="none"]::after { inset: -11px; }
.pin[data-state="none"] .pin__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pin[data-state="redo"] { background: var(--tint); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 8px rgba(180, 83, 42, .6); }
.pin[data-state="redo"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 8.5 3.5 3.5 7.5-7.5'/%3E%3C/svg%3E"); }
.pin[data-state="keep"]::before, .pin--fixed::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='7' width='11' height='8' rx='1.8' fill='%23fff'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E"); }
.pin--fixed { font-weight: 500; pointer-events: none; }
.pin--fixed.is-nudged { animation: refus .4s var(--out); }
@keyframes refus { 30% { transform: translate(calc(-50% - 5px), -50%); } 60% { transform: translate(calc(-50% + 4px), -50%); } }

/* La feuille, comme dans l’app : sur téléphone, elle recouvre le bas de la photo. */
.sheet { position: relative; z-index: 3; display: grid; gap: 24px; margin: -32px 10px 0; padding: clamp(22px, 3.2vw, 40px); border-radius: var(--r-hero); background: var(--surface); box-shadow: 0 30px 60px -28px rgba(40, 28, 16, .4), 0 0 0 .5px var(--sep); }
.sentence { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.375rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; min-height: 3.6em; text-wrap: pretty; }
.sentence b { font-weight: 700; text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.sentence .w-redo, .sentence .w-style { color: var(--tint); }
.sentence .w-keep { color: var(--ink); text-decoration-color: var(--ink3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pills legend { padding: 0; margin-bottom: 12px; color: var(--ink2); font-size: .9375rem; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--fill); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out; }
.pills label:hover { background: var(--fill2); }
.pills input:checked + label { background: var(--ink); color: var(--surface); }
.pills input:focus-visible + label { outline: 2px solid var(--tint); outline-offset: 3px; }
.gesture__guide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 24px; padding-inline: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink2); font-size: .9375rem; }
.legend li { display: flex; align-items: baseline; gap: 9px; }
.legend li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tint); transform: translateY(-1px); }
.legend li:nth-child(2)::before { background: var(--ink); }
.legend li:nth-child(3)::before { background: none; box-shadow: inset 0 0 0 2px var(--ink3); }
.reset { min-height: 44px; color: var(--tint-text); font-weight: 500; font-size: .9375rem; display: none; }
.js .reset { display: inline-flex; align-items: center; }
.reset:hover { text-decoration: underline; text-underline-offset: .2em; }
.gesture__note { flex-basis: 100%; }
@media (min-width: 900px) {
  .gesture { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "photo ." "photo lead" "photo sheet" "photo guide" "photo ."; grid-template-rows: auto 1fr auto auto auto 1fr; column-gap: 0; }
  .gesture__head { grid-area: head; margin-bottom: clamp(40px, 5vw, 64px); }
  .gesture__photo { grid-area: photo; position: relative; z-index: 4; }
  .gesture__lead { grid-area: lead; margin: 0 0 32px; padding-left: clamp(40px, 5vw, 80px); }
  /* Sur grand écran, c’est la photo qui recouvre le bord de la feuille : aucune zone n’est masquée. */
  .sheet { grid-area: sheet; z-index: 1; margin: 0 0 0 calc(-1 * clamp(32px, 5vw, 88px)); padding-left: calc(clamp(32px, 5vw, 88px) + clamp(28px, 3.2vw, 44px)); }
  .gesture__guide { grid-area: guide; margin-top: 28px; padding-inline: clamp(40px, 5vw, 80px) 0; }
}

/* ——— Le rendu : deux écrans de l’app posés sur une tablette, le second s’enfonce sous le bord ——— */
.result { display: grid; gap: clamp(28px, 5vw, 48px); }
.result__head, .scan__head, .offer__head { margin-bottom: 0; }
.shelf { --pad: 28px; display: flex; align-items: flex-end; gap: 16px; padding: var(--pad) var(--pad) 0; border-radius: var(--r-hero); background: var(--fill2); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline-offset: 3px; border-radius: var(--r-hero); }
.shot { flex: none; width: 248px; margin-bottom: var(--pad); border-radius: 13.5% / 6.2%; overflow: hidden; background: var(--bg); box-shadow: 0 30px 50px -28px rgba(40, 28, 16, .55), 0 0 0 .5px rgba(60, 45, 30, .25); scroll-snap-align: start; }
.shot img { width: 100%; }
/* Seule la partie haute de la seconde capture est montrée : le bas de l’écran passe sous le bord de la tablette. */
.shot--sunk { margin-bottom: 0; aspect-ratio: 603 / 1088; border-radius: 13.5% 13.5% 0 0 / 7.5% 7.5% 0 0; }
.shot--sunk img { height: 100%; object-fit: cover; object-position: top; }
.shelf::after { content: ""; flex: none; width: calc(var(--pad) - 16px); height: 1px; }   /* marge de fin de défilement */
.facts { display: grid; }
.facts > div { display: grid; gap: 4px; align-content: start; padding-block: 16px; border-top: 1px solid var(--sep); }
.facts dt { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.012em; }
.facts dd { color: var(--ink2); max-width: 32em; }
@media (min-width: 700px) {
  .shelf { --pad: clamp(28px, 4vw, 52px); justify-content: center; gap: clamp(16px, 2.4vw, 32px); overflow: hidden; }
  .shelf::after { display: none; }
  .shot { flex: 0 1 290px; width: auto; min-width: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (min-width: 900px) {
  /* Sur grand écran, les cinq sorties s’alignent en bandeau sous les captures. */
  .result { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); grid-template-areas: "head shelf" "facts facts"; column-gap: clamp(40px, 6vw, 88px); }
  .result__head { grid-area: head; align-self: center; }
  .shelf { grid-area: shelf; }
  .facts { grid-area: facts; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
  .facts > div { padding-bottom: 0; }
}

/* ——— Trois espaces ——— */
.rows { display: grid; gap: clamp(48px, 7vw, 88px); }
.row { display: grid; gap: 24px; }
.row__head { display: grid; gap: 10px; align-content: start; }
.row__title { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.row__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row__acts li { padding: 6px 12px; border-radius: 999px; background: var(--fill); font-size: .8125rem; font-weight: 500; color: var(--ink); }
.strip { margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--fill2) transparent; -webkit-overflow-scrolling: touch; }
.strip:focus-visible { outline-offset: -2px; border-radius: var(--r-tile); }
.strip ul { display: flex; gap: 14px; width: max-content; }
.strip li { width: clamp(260px, 30vw, 420px); scroll-snap-align: start; }
.strip .card { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--fill2); }
.strip .card > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip figcaption { display: grid; gap: 1px; padding: 12px 4px 0; }
.strip figcaption b { font-weight: 700; letter-spacing: -.01em; }
.strip figcaption span { color: var(--ink2); font-size: .8125rem; }
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
  .row__head { position: sticky; top: 32px; }
  .strip { margin-left: 0; padding-left: 0; scroll-padding-left: 0; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); padding-right: max(var(--gutter), (100vw - var(--max)) / 2); }
}

/* ——— Scan 3D : section nuit, plan au trait ——— */
.night { background: var(--night); color: var(--on-night); }
.night .lead, .night .muted { color: var(--on-night-2); }
.night :focus-visible { outline-color: var(--tint-glow); }
.scan { display: grid; gap: clamp(36px, 6vw, 56px); }
.plan { position: relative; padding: clamp(20px, 4vw, 40px); border-radius: var(--r-hero); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--sep-night); }
.plan svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; }
.plan__tag { display: block; margin-top: 16px; text-align: center; color: var(--on-night-2); font-size: .8125rem; }
.plan .wall { fill: none; stroke: var(--on-night); stroke-width: 5; stroke-linejoin: miter; }
.plan .open { stroke: var(--night-2); stroke-width: 7; }
.plan .thin { fill: none; stroke: var(--on-night); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.plan .ghost { fill: none; stroke: rgba(246, 242, 236, .5); stroke-width: 1.2; stroke-linejoin: round; }
.plan .dim { fill: none; stroke: var(--tint-glow); stroke-width: 1.2; stroke-linecap: round; }
/* Tailles en unités du dessin (460 de large) : assez grandes pour rester lisibles quand le plan fait 300 px. */
.plan text { fill: var(--tint-light); font-family: var(--font); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan text.area { font-size: 30px; }
.plan text.name { fill: rgba(246, 242, 236, .66); font-size: 16px; }
@media (max-width: 479px) {
  .plan text.name { display: none; }   /* la légende sous le plan les nomme déjà */
}
.reveal .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--out); }
.reveal .plan.is-in .draw { stroke-dashoffset: 0; }
.reveal .plan .fade { opacity: 0; transition: opacity .7s ease-out .7s; }
.reveal .plan.is-in .fade { opacity: 1; }
.outputs { display: grid; gap: 28px; align-content: center; }
.outputs ul { display: grid; }
.outputs li { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--sep-night); }
.outputs li:last-child { border-bottom: 1px solid var(--sep-night); }
.outputs li b { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.012em; }
.outputs li span { color: var(--on-night-2); font-size: .9375rem; max-width: 30em; }
.note { display: flex; gap: 12px; align-items: flex-start; color: var(--on-night-2); font-size: .9375rem; max-width: 36em; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--tint-light); }
@media (min-width: 900px) {
  .scan { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "plan head" "plan outputs"; column-gap: clamp(40px, 6vw, 88px); align-items: start; }
  .scan__head { grid-area: head; align-self: end; }
  .plan { grid-area: plan; align-self: center; }
  .outputs { grid-area: outputs; }
}
.soon { display: grid; gap: 14px; margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--sep-night); }
.soon__badge { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(232, 135, 91, .16); color: var(--tint-light); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.soon__title { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.soon p { color: var(--on-night-2); max-width: 34em; }
@media (min-width: 900px) {
  .soon { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 32px; }
  .soon__badge { align-self: center; }
}

/* ——— Formule : le même détail d’un rendu, avec puis sans filigrane ——— */
.offer { display: grid; gap: clamp(28px, 4vw, 40px); }
.offer__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 20px); }
.offer__card { display: grid; gap: 14px; align-content: start; }
.offer__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--fill2); container-type: inline-size; }
/* Agrandissement du coin bas droit : l’image fait 160 % de la carte, le filigrane garde ses proportions de l’export
   (corps de 4,5 % de la largeur de l’image, marge de 4 %). */
.offer__img img { position: absolute; right: 0; bottom: 0; width: 160%; max-width: none; }
.watermark { position: absolute; right: 6.4%; bottom: 5%; color: rgba(255, 255, 255, .92); font-weight: 700; font-size: clamp(.8rem, 2.2vw, 1.6rem); letter-spacing: -.04em; line-height: 1; text-shadow: 0 0 .3em rgba(0, 0, 0, .35); white-space: nowrap; }
@supports (font-size: 1cqw) {
  .watermark { font-size: 7.2cqw; }
}
.offer__card figcaption { display: grid; gap: 2px; padding-inline: 4px; }
.offer__card figcaption b { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.012em; }
.offer__card figcaption span { color: var(--ink2); font-size: .9375rem; }
.fine { color: var(--ink2); font-size: .9375rem; max-width: 46em; }
@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "head pair" "fine pair"; column-gap: clamp(40px, 6vw, 88px); grid-template-rows: auto 1fr; }
  .offer__head { grid-area: head; }
  .offer__pair { grid-area: pair; }
  .fine { grid-area: fine; align-self: start; }
}

/* ——— Confidentialité : ce qui reste, ce qui part ——— */
.ledger { display: grid; gap: clamp(12px, 2vw, 20px); }
.ledger__col { display: grid; gap: 20px; align-content: start; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-hero); background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); }
.ledger__col--out { background: var(--tint-soft); box-shadow: none; }
.ledger h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.ledger__col--out h3 { color: var(--tint-text); }
.ledger dl { display: grid; gap: 18px; }
.ledger dt { font-weight: 700; }
.ledger dd { color: var(--ink2); max-width: 34em; }
.ledger__col--out dd { color: #4A4038; }
@media (min-width: 760px) {
  .ledger { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* ——— Dernier appel : terre cuite, la maison refaite monte du bas de la section ——— */
.final { margin-top: var(--section); background: var(--tint); color: var(--surface); overflow: hidden; }
.final__grid { display: grid; gap: clamp(40px, 7vw, 64px); padding-top: clamp(56px, 8vw, 104px); }
.final__text { display: grid; justify-items: start; gap: 24px; align-content: center; }
.final__icon { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 24px 48px -18px rgba(60, 20, 0, .6), 0 0 0 1px rgba(255, 252, 248, .22); }
.final .display { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); max-width: 9em; }
.final p { color: var(--surface); }
.final :focus-visible { outline-color: var(--surface); }
.final__photo { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1 / 1; border-radius: var(--r-hero) var(--r-hero) 0 0; overflow: hidden; box-shadow: 0 -30px 80px -30px rgba(60, 20, 0, .7); }
.final__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final__photo .before { left: 14px; top: 14px; bottom: auto; }
@media (min-width: 900px) {
  .final__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; }
  .final__text { padding-bottom: clamp(56px, 8vw, 104px); align-self: center; }
  .final__photo { justify-self: end; width: min(100%, 500px); aspect-ratio: 5 / 6; }
}

/* ——— Pied ——— */
.bottom { padding-block: 48px 56px; color: var(--ink2); font-size: .9375rem; }
.bottom .wrap { display: grid; gap: 28px; }
.bottom ul { display: flex; flex-wrap: wrap; gap: 4px 4px; margin-inline: -12px; }
.bottom ul a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 999px; }
.bottom ul a:hover { background: var(--fill); }
.bottom p { max-width: 52em; font-size: .8125rem; }
@media (min-width: 900px) {
  .bottom .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .bottom ul { justify-content: flex-end; }
  .bottom p { grid-column: 1 / -1; }
}

/* ——— Pages de texte : confidentialité, conditions, assistance ——— */
.doc { padding-block: clamp(24px, 5vw, 64px) var(--section); }
.doc__head { display: grid; gap: 16px; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--sep); }
.doc__head h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.doc__grid { display: grid; gap: 40px; }
.toc { font-size: .9375rem; }
.toc p { color: var(--ink2); margin-bottom: 8px; font-weight: 500; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--tint-text); }
.prose { max-width: 42.5rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2.4em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.8em; }
.prose p, .prose li { color: #3D352E; }
.prose ul { display: grid; gap: .55em; padding-left: 1.3em; list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.1em; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }
.prose a { color: var(--tint-text); font-weight: 500; text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; color: var(--ink); }
.brief { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); }
.brief > * + * { margin-top: .7em; }
/* Encadré « Version de test » : ce qui ne vaut que pour la version distribuée par TestFlight. */
.trial { padding: clamp(18px, 3vw, 24px); border-radius: var(--r-card); background: var(--fill); }
.trial > * + * { margin-top: .7em; }
.trial__label { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.prose .trial__label { color: var(--surface); }
.contact { margin-top: 2.4em; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--tint-soft); }
.contact > * + * { margin-top: .7em; }
.contact h2 { margin-top: 0; }
.contact p { color: var(--ink); }
@media (min-width: 1000px) {
  .doc__grid { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .toc { position: sticky; top: 32px; }
}

/* Questions fréquentes */
.faq { display: grid; margin-top: 1.2em; }
.faq details { border-top: 1px solid var(--sep); }
.faq details:last-child { border-bottom: 1px solid var(--sep); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23231E19' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--tint-text); }
.faq .answer { padding-bottom: 22px; max-width: 38rem; }
.faq .answer > * + * { margin-top: .8em; }

/* Page introuvable */
.lost { min-height: 70svh; display: grid; align-content: center; gap: 40px; padding-block: 64px; }
.lost section { display: grid; gap: 14px; justify-items: start; }
.lost section + section { padding-top: 40px; border-top: 1px solid var(--sep); }

/* ——— Apparitions au défilement. La classe « reveal » est posée par le script en ligne de chaque page
   et retirée si assets/site.js n’a pas pris la main au bout de trois secondes : rien ne reste caché. ——— */
.reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--out), transform .9s var(--out); transition-delay: var(--d, 0s); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal [data-reveal] { opacity: 1; transform: none; }
  .reveal .plan .draw { stroke-dashoffset: 0; }
  .reveal .plan .fade { opacity: 1; }
}
@media print {
  .top nav, .lang, .store, .badge, .toc, .bottom ul { display: none !important; }
  body { background: none; }
  .reveal [data-reveal] { opacity: 1; transform: none; }
}
