/* Carré Noisiel · landing page LogiH */

@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #F4F5F0;
  --paper-2: #E8ECE3;
  --paper-3: #DCE3D6;
  --white: #FCFDFA;
  --ink: #0F2420;
  --ink-soft: #43544D;
  --ink-mute: #5A6A63;
  --field: #06343D;
  --field-2: #0C424C;
  --field-3: #14525D;
  --on-field: #EEF3EF;
  --on-field-soft: #B7CCC8;
  --lime: #AED136;
  --lime-2: #9DC126;
  --sage: #67BFA7;
  --green: #00AF4C;
  --green-ink: #00753A;

  --r-outer: 28px;
  --r-inner: 16px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 8.5vw, 128px);
  --max: 1328px;

  --font-display: "Cabinet Grotesk", "Switzer", ui-sans-serif, system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.35rem + 3.1vw, 4rem);
  --step-figure: clamp(1.9rem, 1.4rem + 1.4vw, 2.625rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--green-ink);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.on-field :focus-visible, .section-field :focus-visible { outline-color: var(--lime); }
html { scrollbar-color: var(--ink-mute) var(--paper-2); scrollbar-width: thin; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; word-spacing: 0.1em; }
sup { font-size: 0.75em; line-height: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-field { background: var(--field); color: var(--on-field); }
.section-tone { background: var(--paper-2); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.lead { font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.02em; color: var(--ink-soft); max-width: 40ch; text-wrap: pretty; }
.section-field .lead { color: var(--on-field-soft); }
.note { font-size: var(--step-small); line-height: 1.5; color: var(--ink-mute); max-width: 68ch; }
.section-field .note { color: var(--on-field-soft); }
.section-field .sim-card .note, .section-field .sim-card .help { color: var(--ink-mute); }
.head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }

/* Boutons */
.btn {
  --btn-bg: var(--lime); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 6px 8px 6px 26px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; text-align: left;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--lime); flex: none; }
.btn .arrow svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.btn-plain { padding: 6px 26px; }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-dark .arrow { background: var(--lime); color: var(--ink); }
.btn-field { --btn-bg: var(--field-3); --btn-fg: var(--on-field); }
.btn .ico { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--lime-2); }
  .btn-light:hover { --btn-bg: #fff; }
  .btn-dark:hover { --btn-bg: #1B3631; }
  .btn-field:hover { --btn-bg: #1A5F6B; }
  .btn:hover .arrow svg { transform: translateX(3px); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } .link-arrow:hover { text-decoration: underline; } }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--paper); color: var(--ink); transition: transform 320ms var(--ease-out); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.01em; }
.brand-text span { font-size: var(--step-small); color: var(--ink-soft); }
.nav { display: flex; gap: 28px; margin-inline: auto; font-size: var(--step-small); }
.nav a { text-decoration: none; padding-block: 8px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.header-phone svg { width: 20px; height: 20px; }
.site-header .btn { min-height: 48px; padding: 4px 6px 4px 20px; font-size: var(--step-small); white-space: nowrap; }
.site-header .btn .arrow { width: 36px; height: 36px; }
@media (max-width: 1100px) { .nav { display: none; } .nav + .header-actions { margin-left: auto; } }
@media (max-width: 720px) {
  .site-header .wrap { height: 68px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text span { display: none; }
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--paper-2); }
  .site-header .btn { display: none; }
}

/* Hero : écran partagé, un seul point focal (le titre), la perspective nue à droite, les deux aides en encart */
.hero { --hero-left: max(var(--gutter), (100vw - var(--max)) / 2); --hero-col: calc(45vw - var(--hero-left) - 40px); position: relative; min-height: 100svh; padding-top: 84px; background: var(--paper); overflow: clip; }
.hero-grid { display: grid; align-items: center; min-height: calc(100svh - 84px); }
.hero-text { width: var(--hero-col); max-width: 640px; padding-block: 48px 72px; }
.hero h1 { font-size: clamp(2.6rem, var(--hero-col) / 5.4, 6.6rem); line-height: 0.92; letter-spacing: -0.035em; text-wrap: initial; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { margin-top: 30px; font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.015em; max-width: 31ch; color: var(--ink-soft); text-wrap: pretty; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.hero-tel svg { width: 20px; height: 20px; color: var(--ink); }
.hero-tel .num { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .hero-tel:hover .num { text-decoration: underline; } }
.hero-media { position: absolute; top: 84px; right: 0; bottom: 0; width: 55vw; border-radius: var(--r-outer) 0 0 var(--r-outer); overflow: hidden; background: var(--paper-3); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; transform-origin: 40% 70%; animation: hero-drift 18s var(--ease-out) both; }
@keyframes hero-drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-aides { position: absolute; right: var(--gutter); bottom: 40px; width: min(390px, 30vw); background: var(--paper); border-radius: var(--r-outer); padding: 10px; z-index: 2; }
.hero-aides .card { display: grid; gap: 18px; padding: 22px 24px; }
.hero-aides li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 16px; align-items: center; }
.hero-aides b { display: grid; place-items: center; height: 52px; border-radius: 999px; background: var(--lime); font-family: var(--font-display); font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }
.hero-aides span { font-weight: 600; line-height: 1.3; }
.hero-aides small { display: block; margin-top: 2px; font-size: var(--step-small); font-weight: 400; color: var(--ink-mute); }
@media (max-width: 1100px) { .hero-aides { width: min(360px, 36vw); } }
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 84px; }
  .hero-grid { display: block; min-height: 0; }
  .hero-text { width: auto; max-width: none; padding-block: 36px 32px; }
  .hero h1 { font-size: clamp(2.6rem, (100vw - 2 * var(--gutter)) / 5.4, 5.6rem); }
  .hero-sub { max-width: 40ch; }
  .hero-media { position: relative; top: auto; right: auto; bottom: auto; width: auto; height: min(68svh, 620px); margin-inline: var(--gutter); border-radius: var(--r-outer); }
  .hero-aides { position: relative; right: auto; bottom: auto; width: auto; max-width: 440px; margin: -64px calc(var(--gutter) + 12px) 0; }
}
@media (max-width: 720px) {
  .hero { padding-top: 68px; }
  .hero-text { padding-block: 22px 24px; }
  .hero-media { height: 52svh; border-radius: 24px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-aides { margin: -48px calc(var(--gutter) + 8px) 0; }
  .hero-aides .card { padding: 18px; }
}

/* Les deux aides : deux cartes égales, puis l'exemple en trois temps */
.aides { display: grid; gap: 12px; }
.aides-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aide { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.aide h3 { font-size: var(--step-lead); }
.aide p:not(.aide-fig) { color: var(--ink-soft); max-width: 48ch; }
.aide-fig { position: relative; isolation: isolate; justify-self: start; font-family: var(--font-display); font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
/* surligneur : il passe sur l'aide au moment où son effet apparaît dans l'exemple */
.aide-fig::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -0.02em; height: 0.36em; border-radius: 4px; background: var(--lime); z-index: -1; transition: clip-path 760ms var(--ease-in-out); }
.js .aide:not(.is-lit) .aide-fig::after { clip-path: inset(0 100% 0 0 round 4px); }
.js .aide.is-lit .aide-fig::after { clip-path: inset(0 0 0 0 round 4px); }
.exemple { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-inner); background: var(--field); color: var(--on-field); }
.exemple-titre { color: var(--on-field-soft); font-weight: 500; }
.exemple-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.exemple-pas { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 24px; }
.exemple-pas li { position: relative; display: grid; gap: 8px; transition: opacity 600ms ease, filter 600ms var(--ease-out); }
.exemple-pas li + li { padding-left: 84px; }
.exemple-pas li + li::before { content: ""; position: absolute; left: 24px; top: 4px; width: 34px; height: 34px; background: var(--on-field-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.exemple-pas li > span { font-size: var(--step-small); color: var(--on-field-soft); }
.exemple-pas b { font-family: var(--font-display); font-size: var(--step-figure); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.exemple-pas b small { margin-left: 8px; word-spacing: normal; font-family: "Switzer", sans-serif; font-size: var(--step-body); font-weight: 400; letter-spacing: -0.01em; color: var(--on-field-soft); }
.exemple-pas [data-pas="mensu"] b { color: var(--lime); }
.exemple s { position: relative; text-decoration: none; color: var(--on-field-soft); }
.exemple s::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; margin-top: -1px; border-radius: 2px; background: var(--on-field); transform-origin: 0 50%; transition: transform 600ms var(--ease-in-out); }
.js .exemple.is-ready [data-pas="prix20"]:not(.is-on) s::after { transform: scaleX(0); }
.js .exemple.is-ready [data-pas="prix"]:not(.is-on), .js .exemple.is-ready [data-pas="mensu"]:not(.is-on) { opacity: 0.18; filter: blur(6px); }
.aides-note { margin-top: 18px; }
@media (max-width: 720px) {
  .aides-duo { grid-template-columns: 1fr; }
  .exemple-pas { flex-direction: column; align-items: flex-start; }
  .exemple-pas li + li { padding: 46px 0 0; }
  .exemple-pas li + li::before { left: 0; top: 4px; bottom: auto; width: 30px; height: 30px; transform: rotate(90deg); }
  .exemple .btn { width: 100%; justify-content: space-between; }
}
.tray { background: var(--paper-2); border-radius: var(--r-outer); padding: 12px; }
.section-tone .tray { background: var(--paper-3); }
.card { background: var(--white); border-radius: var(--r-inner); padding: clamp(20px, 2.6vw, 32px); }
.cascade-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px 18px; }
.cascade-title h3 { font-size: var(--step-body); font-weight: 700; letter-spacing: -0.005em; }
.cascade-title p { font-size: var(--step-small); color: var(--ink-mute); }
.cascade { display: grid; gap: 10px; }
.cascade-card { display: grid; gap: 30px; }
.cstep { display: grid; gap: 14px; }
.cstep-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cstep-label { font-weight: 500; }
.cstep-label small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--ink-mute); margin-top: 2px; }
.cstep-value { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; }
.cstep-value.is-struck { color: var(--ink-mute); text-decoration: line-through; text-decoration-thickness: 2px; }
.bar { position: relative; height: 18px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0; border-radius: 999px; transform-origin: 0 50%; transform: scaleX(var(--to, 1)); transition: transform 1100ms var(--ease-in-out); }
.bar-ink > i { background: var(--ink); }
.bar-green > i { background: var(--green); }
.bar-split { display: flex; gap: 4px; background: none; }
.bar-split > span { position: relative; height: 18px; border-radius: 999px; transform-origin: 0 50%; transition: transform 900ms var(--ease-in-out), opacity 500ms ease; }
.seg-ptz { background: var(--lime); }
.seg-pret { background: var(--sage); }
.seg-apport { background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--step-small); color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.cut { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: var(--step-small); }
.cstep-result { background: var(--field); color: var(--on-field); border-radius: var(--r-inner); padding: clamp(20px, 2.6vw, 32px); gap: 10px; }
.mensu-label { color: var(--on-field-soft); font-size: var(--step-small); }
.mensu { font-family: var(--font-display); font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.mensu { transition: filter 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .cstep-result:not(.is-on) .mensu { filter: blur(8px); transform: scale(0.96); }
.mensu small { font-size: var(--step-lead); letter-spacing: -0.02em; font-weight: 400; color: var(--on-field-soft); }
.cascade-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 14px 6px; }
.cascade-foot .note { max-width: 52ch; }
.js .cascade .cstep { opacity: 0.32; transition: opacity 600ms ease; }
.js .cascade .cstep.is-on { opacity: 1; }

/* Typologies */
.typo-head { display: grid; gap: 32px; justify-items: start; margin-bottom: clamp(32px, 4vw, 48px); }
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--paper-3); border-radius: 999px; }
.tab { position: relative; min-width: 92px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 800; transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { background: var(--paper-2); } }
.typo-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; }
.typo-media { position: relative; border-radius: var(--r-inner); overflow: hidden; min-height: 460px; background: var(--paper-3); }
.typo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 520ms ease, transform 900ms var(--ease-out), filter 520ms ease; }
.typo-media img.is-out { opacity: 0; transform: scale(1.04); filter: blur(4px); }
.typo-media figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--step-small); }
.typo-info { display: grid; align-content: start; gap: 26px; }
.typo-kind { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.01em; }
.typo-kind span { color: var(--ink-mute); font-weight: 400; }
.price-big { font-family: var(--font-display); font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
.price-was { margin-top: 12px; color: var(--ink-soft); }
.price-was s { text-decoration-thickness: 1.5px; }
.save { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 16px 8px 8px; border-radius: 22px; background: var(--paper-2); font-weight: 500; }
.save b { padding: 4px 12px; border-radius: 999px; background: var(--lime); font-weight: 600; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 26px; height: 26px; color: var(--green-ink); }
.typo-info .btn { justify-self: start; }
.js .typo-info [data-swap] { transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.js .typo-info.is-swapping [data-swap] { opacity: 0; transform: translateY(8px); }
@media (max-width: 960px) {
  .typo-head { grid-template-columns: 1fr; }
  .tabs { justify-self: start; }
  .typo-panel { grid-template-columns: 1fr; }
  .typo-media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .tabs { width: 100%; } .tab { flex: 1; min-width: 0; } }

/* Simulateur */
.sim-head { display: grid; gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.trust { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--on-field); }
.trust li { padding-left: 18px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.sim { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: 12px; background: var(--field-2); border-radius: var(--r-outer); padding: 12px; }
.sim-card { background: var(--white); color: var(--ink); border-radius: var(--r-inner); padding: clamp(22px, 3.4vw, 48px); display: flex; flex-direction: column; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 30px; }
.progress span { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress span i { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); transition: transform 520ms var(--ease-out); }
.progress span.is-done i { transform: scaleX(1); }
.step-meta { font-size: var(--step-small); color: var(--ink-mute); margin-right: auto; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; flex: 1; flex-direction: column; }
.step.is-active { display: flex; animation: step-in 420ms var(--ease-out) both; }
.step.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.step legend { padding: 0; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.step .help { margin-top: 10px; color: var(--ink-soft); }
.q { margin-top: 32px; display: grid; gap: 14px; }
.q-label { font-weight: 500; }
.choices { display: grid; gap: 10px; }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.choices-2 { grid-template-columns: repeat(2, 1fr); }
.choices-6 { grid-template-columns: repeat(6, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; gap: 4px; min-height: 56px; align-content: center; padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px transparent; transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); } /* taste-skill-ignore: état de champ de formulaire */
.choice b { font-weight: 600; font-size: var(--step-body); }
.choice small { font-size: var(--step-small); color: var(--ink-mute); }
.choice.is-tall span { min-height: 112px; align-content: end; }
.choice.is-tall b { font-family: var(--font-display); font-size: var(--step-lead); letter-spacing: -0.02em; font-weight: 800; }
.choice input:checked + span { background: #EEF6DA; box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: état de champ de formulaire */
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.choice input:active + span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .choice input:not(:checked):hover + span { background: var(--paper-2); } }
.choices-6 .choice span { text-align: center; justify-items: center; padding-inline: 6px; }
.range { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-input { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--paper); }
.range-input input { width: 8ch; border: 0; background: transparent; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; padding: 0; }
.range-input input:focus { outline: none; }
.range-input:focus-within { box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: état de champ de formulaire */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p), var(--paper-2) var(--p)); } /* taste-skill-ignore: remplissage du curseur de formulaire */
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--lime); border: 4px solid var(--ink); transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 4px solid var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range .note { margin-top: -2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: var(--step-body); }
.field input { width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 200ms ease, background-color 200ms ease; } /* taste-skill-ignore: état de champ de formulaire */
.field input::placeholder { color: #5E6D67; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); background: var(--white); } /* taste-skill-ignore: état de champ de formulaire */
.field.has-error input { box-shadow: inset 0 0 0 2px #B3261E; } /* taste-skill-ignore: état de champ de formulaire */
.field .err { display: none; font-size: var(--step-small); color: #B3261E; }
.field.has-error .err { display: block; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 20px; font-size: var(--step-small); color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.consent.has-error { color: #B3261E; }
.step-nav { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 36px; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; border: 0; background: none; font-weight: 600; color: var(--ink-soft); }
.btn-back svg { width: 18px; height: 18px; }
.btn-back[hidden] { display: none; }
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; padding: 10px; border-radius: 18px; background: var(--paper); }
.teaser div { padding: 14px 16px; border-radius: 12px; background: var(--white); }
.teaser small { display: block; font-size: var(--step-small); color: var(--ink-mute); }
.teaser b { display: block; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; filter: blur(7px); user-select: none; }
.sim-side { border-radius: var(--r-inner); padding: clamp(22px, 2.4vw, 32px); background: var(--field); display: grid; align-content: start; gap: 22px; }
.sim-side h3 { font-size: var(--step-lead); }
.recap { display: grid; gap: 4px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; }
.recap dt { color: var(--on-field-soft); }
.recap dd { font-weight: 500; text-align: right; }
.recap dd.is-empty { color: #9FC0BC; font-weight: 400; }
.recap dd { transition: color 900ms ease; }
.recap dd.is-fresh { color: var(--lime); transition: none; }
.side-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.side-call { display: grid; gap: 6px; font-size: var(--step-small); color: var(--on-field-soft); }
.side-call a { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 700; color: var(--on-field); text-decoration: none; }
@media (max-width: 1040px) {
  .sim { grid-template-columns: 1fr; }
  .sim-side .side-call { display: none; }
  .recap { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .recap div { padding: 6px 0; }
  .sim-head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .choices-3 { grid-template-columns: 1fr; }
  .choices-6 { grid-template-columns: repeat(3, 1fr); }
  .choice.is-tall span { min-height: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; }
  .fields { grid-template-columns: 1fr; }
  .sim-card { min-height: 0; }
  .step-nav { flex-wrap: wrap; }
  .step-meta { order: -1; width: 100%; }
  .step-nav [data-next] { flex: 1; justify-content: space-between; white-space: nowrap; }
  .sim-side { display: none; }
  .choices-2 { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
}

/* Résultat */
.result { display: none; flex: 1; flex-direction: column; gap: 22px; }
.result.is-active { display: flex; animation: step-in 520ms var(--ease-out) both; }
.result h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.12; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verdict { padding: 18px; border-radius: 14px; background: var(--paper); display: grid; gap: 6px; }
.verdict-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.verdict-top svg { width: 24px; height: 24px; flex: none; }
.verdict.is-yes { background: #EEF6DA; }
.verdict.is-yes svg { color: var(--green-ink); }
.verdict.is-no svg { color: var(--ink-mute); }
.verdict p { color: var(--ink-soft); }
.verdict .amount { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; color: var(--ink); }
.result .cascade { background: var(--paper); border-radius: 18px; padding: 10px; }
.result .cascade-card { background: var(--white); }
.compare { padding: 16px 18px; border-radius: 14px; background: var(--paper-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.restart { align-self: flex-start; border: 0; background: none; padding: 8px 0; font-weight: 600; color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 620px) { .verdicts { grid-template-columns: 1fr; } }

/* Résidence */
.res-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.door { position: relative; height: min(78svh, 760px); border-radius: var(--r-outer); overflow: hidden; background: var(--ink); }
.door img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--door-scale, 1)); }
.js .door img { clip-path: inset(0 calc(var(--door, 0) * 50%) round var(--r-outer)); }
.door figcaption { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: var(--step-small); }
.band { display: flex; height: 64svh; min-height: 420px; max-height: 640px; gap: 0; margin-top: 12px; border-radius: var(--r-outer); overflow: hidden; }
.band figure { position: relative; flex: var(--g) 1 0; min-width: 0; overflow: hidden; transition: flex-grow 600ms var(--ease-out); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--step-small); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .band figure:hover { flex-grow: 6; } }
.presta { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 32px; }
.presta-intro { max-width: 52ch; }
.presta-intro h3 { font-size: var(--step-figure); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.presta .lead { font-size: var(--step-body); }
.presta-tray { background: var(--paper-2); border-radius: var(--r-outer); padding: 12px; }
.presta-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px clamp(28px, 3vw, 48px); background: var(--white); border-radius: var(--r-inner); padding: clamp(24px, 3vw, 40px); }
.presta-col h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.presta-col ul { display: grid; gap: 14px; }
.presta-col li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; color: var(--ink-soft); line-height: 1.4; }
.presta-col li::before { content: ""; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: var(--green); }
.labels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.labels span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: var(--step-small); font-weight: 600; }
.labels span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 960px) {
  .res-head, .presta { grid-template-columns: 1fr; }
  .presta-cols { grid-template-columns: 1fr; gap: 30px; }
  /* carrousel au doigt : une grande photo à la fois, la suivante dépasse pour inviter à glisser */
  .band { height: auto; min-height: 0; max-height: none; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); border-radius: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .band::-webkit-scrollbar { display: none; }
  .band figure { flex: 0 0 min(84%, 560px); aspect-ratio: 4 / 3; border-radius: 24px; scroll-snap-align: start; }
  .door { height: 62svh; }
}

/* Quartier */
.q-head { margin-bottom: clamp(40px, 5vw, 64px); }
.quartier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; }
.q-photo { position: relative; border-radius: var(--r-outer); overflow: hidden; min-height: 560px; }
.q-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-photo p { position: absolute; top: 20px; right: 20px; width: min(360px, calc(100% - 40px)); padding: 20px 22px; border-radius: var(--r-inner); background: var(--white); line-height: 1.45; }
.q-card { display: grid; gap: 10px; }
.q-card b { font-family: var(--font-display); font-size: var(--step-figure); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.q-card span { color: var(--ink-soft); }
.times { background: var(--paper-2); border-radius: var(--r-outer); padding: 12px; display: grid; gap: 12px; align-content: start; }
.times .card { padding: 22px 24px; }
.time-list { display: grid; gap: 18px; }
.time-list li { display: grid; gap: 8px; }
.time-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.time-top b { font-weight: 500; }
.time-top span { font-weight: 600; white-space: nowrap; }
.time-top small { display: block; color: var(--ink-mute); font-size: var(--step-small); }
.time-bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.time-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--green); transform-origin: 0 50%; transform: scaleX(var(--w)); transition: transform 1100ms var(--ease-out); }
.js .time-list:not(.is-in) .time-bar i { transform: scaleX(0); }
.rer { background: var(--field); color: var(--on-field); }
.rer h3 { font-size: var(--step-body); }
.rer .note { color: var(--on-field-soft); }
.rer-line { position: relative; margin: 34px 6px 8px; height: 120px; }
.rer-track { position: absolute; left: 0; right: 0; top: 38px; height: 6px; border-radius: 999px; background: #E2231A; }
.rer-stop { position: absolute; top: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; width: 120px; text-align: center; }
.rer-stop i { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 5px solid #E2231A; }
.rer-stop.is-home i { width: 30px; height: 30px; margin-top: -2px; background: var(--lime); border-color: var(--field); }
.rer-stop b { font-size: var(--step-small); font-weight: 600; line-height: 1.2; }
.rer-stop span { font-size: var(--step-small); color: var(--on-field-soft); margin-top: -6px; }
.rer-stop.is-start { transform: none; justify-items: start; text-align: left; }
.rer-stop.is-end { transform: translateX(-100%); justify-items: end; text-align: right; }
.rer-train { position: absolute; top: 33px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--on-field); transform: translateX(calc(var(--x, 0) * 1px)); }
.rer-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.rer-badge i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #E2231A; color: #fff; font-style: normal; font-size: var(--step-small); font-weight: 600; }
.mosaic { margin-top: 12px; display: grid; grid-template-columns: 5fr 4fr 3fr; grid-auto-rows: clamp(260px, 26vw, 380px); gap: 12px; }
.mosaic figure { position: relative; border-radius: var(--r-inner); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 8px 12px; border-radius: 10px; background: var(--white); font-size: var(--step-small); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .mosaic figure:hover img { transform: scale(1.04); } }
@media (max-width: 960px) {
  .q-head, .quartier { grid-template-columns: 1fr; }
  .q-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .q-photo p { position: static; width: auto; border-radius: 0; }
  .q-photo { display: grid; }
  .q-photo img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .rer-line { height: auto; margin: 26px 0 10px; display: grid; gap: 20px; }
  .rer-track { left: 10px; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; }
  .rer-stop, .rer-stop.is-start, .rer-stop.is-end { position: relative; left: auto !important; top: auto; transform: none; width: auto; grid-template-columns: 26px 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 0 14px; }
  .rer-stop span { justify-self: end; }
  .rer-stop span { margin-top: 0; }
  .rer-stop.is-home i { margin-top: 0; margin-left: -2px; }
  .rer-train { display: none; }
}

/* Étapes */
/* État du chantier : une barre d'avancement, la piste se remplit jusqu'à l'étape en cours */
.chantier { margin-top: clamp(56px, 7vw, 96px); background: var(--field-2); border-radius: var(--r-outer); padding: 12px; }
.chantier-inner { display: grid; gap: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-inner); background: var(--field-3); }
.chantier-tete { display: grid; gap: 8px; }
.chantier-tete h3 { font-size: var(--step-lead); }
.chantier-tete p { color: var(--on-field-soft); }
.jalons { --avance: 0.6667; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: var(--step-small); line-height: 1.35; color: var(--on-field-soft); }
.jalons::before, .jalons::after { content: ""; position: absolute; top: 9px; left: 12.5%; width: 75%; height: 6px; border-radius: 999px; }
.jalons::before { background: var(--field); }
.jalons::after { background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--avance)); transition: transform 1400ms var(--ease-in-out); }
.jalons li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; text-align: center; }
.jalons li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--field); border: 4px solid #4F8C96; transition: background-color 300ms ease, border-color 300ms ease; }
.jalons li.is-done::before { background: var(--lime); border-color: var(--lime); }
.jalons li.is-now::before { background: var(--field-3); border-color: var(--lime); }
.jalons li.is-now span { color: var(--on-field); font-weight: 600; }
/* l'étape en cours bat doucement : le chantier avance en ce moment */
.jalons li.is-now::after { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; border: 2px solid var(--lime); animation: pouls 2400ms var(--ease-out) infinite; pointer-events: none; }
@keyframes pouls { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.2); opacity: 0; } }
/* à l'arrivée : la piste part de zéro, et chaque étape s'allume quand le remplissage l'atteint */
.js .jalons:not(.is-in)::after { transform: scaleX(0); }
.js .jalons:not(.is-in) li.is-done::before, .js .jalons:not(.is-in) li.is-now::before { background: var(--field); border-color: #4F8C96; }
.js .jalons:not(.is-in) li.is-now::after { animation: none; opacity: 0; }
.js .jalons.is-in li:nth-child(2)::before { transition-delay: 620ms; }
.js .jalons.is-in li:nth-child(3)::before { transition-delay: 1300ms; }
@media (max-width: 620px) {
  .jalons { grid-template-columns: 1fr; gap: 22px; }
  .jalons::before, .jalons::after { top: 12px; bottom: 12px; left: 9px; width: 6px; height: auto; }
  .jalons::after { transform-origin: 50% 0; transform: scaleY(var(--avance)); }
  .js .jalons:not(.is-in)::after { transform: scaleY(0); }
  .jalons li { grid-template-columns: 24px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
  .jalons li.is-now::after { left: 0; margin-left: 0; }
}
.timeline { position: relative; display: grid; --prog: 0; }
/* le fil se remplit à mesure qu'on descend les étapes */
.timeline-fill { position: absolute; left: 12px; top: 16px; width: 4px; height: var(--fill-h, 0px); border-radius: 4px; background: var(--lime); transform-origin: 50% 0; transform: scaleY(var(--prog)); z-index: 1; pointer-events: none; }
.timeline li::before { z-index: 2; transition: background-color 300ms ease, border-color 300ms ease; }
.timeline li.is-past::before { background: var(--lime); border-color: var(--lime); }
.timeline li { position: relative; padding: 0 0 48px 64px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--field); border: 6px solid var(--field-3); }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 34px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--field-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--lime); border-color: var(--lime); }
.timeline h3 { font-size: var(--step-lead); }
.timeline p { margin-top: 10px; color: var(--on-field-soft); max-width: 52ch; }
.timeline li:last-child h3 { color: var(--lime); }
/* grand écran : la frise se lit de gauche à droite, le fil se remplit pendant qu'elle traverse l'écran */
@media (min-width: 1100px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
  .timeline li { padding: 60px 0 0; }
  .timeline li::after { left: 34px; right: -26px; top: 14px; bottom: auto; width: auto; height: 4px; }
  .timeline-fill { left: 14px; top: 14px; width: var(--fill-w, 0px); height: 4px; transform-origin: 0 50%; transform: scaleX(var(--prog)); }
  .timeline p { max-width: none; }
}


/* FAQ */
.faq-wrap { max-width: calc(880px + var(--gutter) * 2); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper-2); border-radius: var(--r-inner); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.015em; cursor: pointer; min-height: 64px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .toggle { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--white); flex: none; transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.faq-list summary .toggle::before, .faq-list summary .toggle::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.faq-list summary .toggle::after { transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.faq-list details[open] summary .toggle { background: var(--lime); }
.faq-list details[open] summary .toggle::after { transform: rotate(0deg); }
.faq-list .answer { padding: 0 22px 22px; color: var(--ink-soft); max-width: 60ch; }
.faq-list .answer p + p { margin-top: 10px; }
.js .faq-list .answer { animation: answer-in 360ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* ouverture en douceur là où le navigateur sait animer la hauteur d'un <details> */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height 380ms var(--ease-out), content-visibility 380ms allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
@media (min-width: 961px) { .faq-actions { justify-content: center; } }


/* Bureau de vente */
.visit { position: relative; min-height: 100svh; display: grid; align-items: start; overflow: clip; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 60%; }
.visit .wrap { position: relative; display: flex; justify-content: flex-end; padding-top: 64px; padding-bottom: 64px; }
.visit-card { width: min(440px, 100%); background: var(--paper); border-radius: var(--r-outer); padding: 12px; }
.visit-card .card { display: grid; gap: 18px; }
.visit-card h2 { font-size: var(--step-head); }
.visit-card address { font-style: normal; color: var(--ink-soft); }
.visit-card .tel { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.visit-card .btn { width: 100%; justify-content: space-between; }
.visit-card .btn-plain { justify-content: center; }
@media (max-width: 720px) {
  .visit { min-height: 0; display: block; }
  .visit > img { position: static; height: 70svh; }
  .visit .wrap { margin-top: -96px; padding-top: 0; }
}

/* Pied de page */
.footer { background: var(--ink); color: #D3DDD8; padding-top: clamp(72px, 8vw, 112px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.footer-brand { display: grid; align-content: start; gap: 22px; }
.footer-brand .cn { width: 76px; height: 76px; }
.footer-brand p { max-width: 34ch; color: #D3DDD8; }
.footer-logih { display: grid; gap: 10px; }
.footer-logih svg { width: 168px; color: #fff; }
.footer-logih p { font-size: var(--step-small); color: #A9BAB3; }
.footer-grid { font-size: 1rem; }
.footer-title { font-family: var(--font-display); font-size: var(--step-body); font-weight: 800; letter-spacing: -0.005em; color: #fff; margin-bottom: 14px; }
.footer-col address { font-style: normal; line-height: 1.55; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li a { display: inline-block; padding: 6px 0; text-decoration: none; color: #D3DDD8; }
@media (hover: hover) and (pointer: fine) { .footer-col li a:hover { color: #fff; text-decoration: underline; } }
.footer-col .btn { display: flex; width: fit-content; margin-top: 18px; min-height: 48px; padding: 4px 20px; }
.footer-col .link-arrow { display: flex; width: fit-content; margin-top: 14px; color: #fff; }
.footer-legal { margin-top: clamp(48px, 6vw, 72px); background: #16302B; border-radius: var(--r-outer); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.footer-legal p { font-size: var(--step-small); line-height: 1.6; color: #A9BAB3; }
.footer-legal a { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; font-size: var(--step-small); color: #A9BAB3; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } .footer-legal { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; gap: 8px; padding: 8px; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 30px rgba(6, 20, 17, 0.28); transform: translateY(140%); transition: transform 420ms var(--ease-out), visibility 0s linear 420ms; } /* taste-skill-ignore: barre flottante */
.mobile-bar { visibility: hidden; }
.mobile-bar.is-on { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
.mobile-bar .btn { flex: 1; justify-content: space-between; min-height: 52px; }
.mobile-bar .call { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--field-3); color: #fff; flex: none; }
.mobile-bar .call svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .mobile-bar { display: flex; } .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* Bandeau de consentement (pixel Meta) : refuser et accepter ont exactement le même poids */
.cookies { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: min(440px, calc(100% - 32px)); padding: 10px; border-radius: var(--r-outer); background: var(--paper); box-shadow: 0 12px 40px rgba(6, 20, 17, 0.22); opacity: 0; transform: translateY(16px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); } /* taste-skill-ignore: bandeau flottant */
.cookies.is-on { opacity: 1; transform: none; }
.cookies .card { display: grid; gap: 10px; padding: 22px; }
.cookies-titre { font-family: var(--font-display); font-size: var(--step-body); font-weight: 800; letter-spacing: -0.01em; }
.cookies p:not(.cookies-titre) { font-size: var(--step-small); line-height: 1.5; color: var(--ink-soft); }
.cookies-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.cookies .btn { min-height: 48px; padding: 4px 16px; justify-content: center; font-size: var(--step-small); }
.cookies-ouvert .mobile-bar { visibility: hidden; transform: translateY(140%); }
/* sur ordinateur, le bandeau se pose en haut à droite, sur le ciel de la photo : titre, bouton, téléphone et encart des aides restent visibles */
@media (min-width: 961px) {
  .cookies { top: 104px; bottom: auto; left: auto; right: var(--gutter); width: min(560px, calc(55vw - var(--gutter) - 24px)); padding: 8px; transform: translateY(-12px); }
  .cookies .card { padding: 18px 18px 18px 22px; }
  .cookies .btn { min-height: 44px; }
}

.footer-lien { padding: 6px 0; border: 0; background: none; color: #D3DDD8; font: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .footer-lien:hover { color: #fff; text-decoration: underline; } }

/* Apparitions */
.js [data-reveal].is-armed { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-armed.is-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease-out), transform 820ms var(--ease-out); transition-delay: var(--d, 0ms); }
/* les titres de section montent derrière leur propre ligne, comme le titre du hero */
.js h2[data-reveal].is-armed { opacity: 1; transform: translateY(60%); clip-path: inset(-20% -5% 60% -5%); }
.js h2[data-reveal].is-armed.is-in { transform: none; clip-path: inset(-20% -5% -20% -5%); transition: transform 1000ms var(--ease-out), clip-path 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-armed { opacity: 1; transform: none; clip-path: inset(12% 0 0 0 round var(--r-outer)); }
.js [data-reveal="clip"].is-armed.is-in { clip-path: inset(0 0 0 0 round var(--r-outer)); transition: clip-path 1200ms var(--ease-in-out); }
.js .hero h1 .line > span { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) forwards; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: 90ms; }
.js .hero h1 .line:nth-child(3) > span { animation-delay: 180ms; }
.js .hero-sub, .js .hero-actions { opacity: 0; transform: translateY(18px); animation: fade-up 800ms var(--ease-out) 480ms forwards; }
.js .hero-actions { animation-delay: 580ms; }
.js .hero-media { animation: hero-reveal 1300ms var(--ease-in-out) 80ms both; }
@keyframes hero-reveal { from { clip-path: inset(0 0 0 100% round var(--r-outer)); } to { clip-path: inset(0 0 0 0 round var(--r-outer)); } }
.js .hero-aides { opacity: 0; transform: translateY(24px) scale(0.97); animation: fade-up 900ms var(--ease-out) 1000ms forwards; }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js [data-reveal] { transform: none; }
  .js [data-reveal="clip"], .js h2[data-reveal] { clip-path: none !important; }
  .timeline-fill { display: none; }
  .jalons li.is-now::after { animation: none; display: none; }
  .js .aide .aide-fig::after { clip-path: none; }
  .hero-media img { animation: none; }
  .js .hero-media { animation: none; }
  .js .door img { clip-path: none; }
}

@media print { .site-header, .mobile-bar, .cookies, .sim, .hero-actions { display: none; } }
