/* Studio Contrejour · photographe professionnel (site d'exemple Devlume) */

@font-face { font-family: "Inter"; src: url("../../assets/fonts/Inter-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../../assets/fonts/InstrumentSerif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #111;
  --paper: #fff;
  --stone: #f3f2ef;
  --stone-2: #e8e6e1;
  --line: #dcd9d4;
  --field: #8f8a83;
  --mute: #6f6a63;
  --mute-inv: #a39d95;
  --soft-inv: #d6d2cc;
  --error: #b42318;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1312px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 10px; z-index: 2000; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; outline-color: #fff; outline-offset: -4px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[tabindex="-1"]:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.h-light { font-weight: 200; }
.h-bold { font-weight: 800; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 0; font: 600 .9375rem/1.1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone-2); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo-mark { display: block; }
.logo-word { font-size: 1.125rem; font-weight: 800; letter-spacing: -.03em; }
.logo-light { font-weight: 300; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 30px; }
.nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1.5px no-repeat; transition: background-size .25s; }
.nav a:hover { background-size: 100% 1.5px; }
.menu-btn { display: none; }

/* Héros plein écran */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; height: calc(100svh - var(--header-h) - 38px); max-height: 1000px; overflow: hidden; background: var(--ink); color: #fff; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide:nth-child(2) img { object-position: 50% 62%; }
.slide:nth-child(3) img { object-position: 50% 38%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 17, 17, .86) 0%, rgba(17, 17, 17, .62) 30%, rgba(17, 17, 17, .18) 60%, rgba(17, 17, 17, .05) 100%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 128px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.3vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero-lead { max-width: 36em; margin-top: 26px; font-size: 1.125rem; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-link { font-weight: 600; font-size: .9375rem; color: #fff; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hero :focus-visible { outline-color: #fff; }
.hero-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-top: 1px solid rgba(255, 255, 255, .28); }
.hero-caption { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.hero-caption em { font: italic 400 1.2rem/1.2 var(--serif); }
.hero-caption span { font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.hero-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hero-count { margin-right: 10px; font-size: .8125rem; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.ctl { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; transition: background-color .2s; }
.ctl:hover { background: rgba(255, 255, 255, .14); }
.ctl .i-play { display: none; }
.hero[data-paused="true"] .ctl .i-play { display: block; }
.hero[data-paused="true"] .ctl .i-pause { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { animation: drift 9s linear both; }
  @keyframes drift { from { transform: scale(1.05); } to { transform: scale(1); } }
}

/* Sections */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { grid-column: 1 / span 6; font-size: clamp(2.6rem, 5.4vw, 4.9rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; text-wrap: balance; }
.section-head .lead { grid-column: 8 / -1; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 300; line-height: 1.45; letter-spacing: -.01em; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.fineprint { font-size: .8125rem; color: var(--mute); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.intro-title { grid-column: 1 / span 3; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; padding-top: 12px; }
.intro-text { grid-column: 4 / -1; font-size: clamp(1.6rem, 2.9vw, 2.6rem); font-weight: 300; line-height: 1.22; letter-spacing: -.03em; text-wrap: pretty; }
.intro-facts { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); padding-top: 24px; }
.intro-facts dt { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.intro-facts dd { margin-top: 8px; font-size: .9375rem; color: var(--mute); max-width: 22em; }

/* Travaux */
.works { padding-top: 0; }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.works-head h2 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.filters button { padding: 8px 0; border: 0; background: none; font-size: .9375rem; font-weight: 500; color: var(--mute); box-shadow: inset 0 -1.5px 0 transparent; transition: color .2s, box-shadow .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.f-count { margin-left: 2px; font-size: .6875rem; font-weight: 500; vertical-align: super; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 30px 24px; margin-top: clamp(32px, 4vw, 48px); }
.grid[data-layout="all"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.grid[data-layout="all"] .tile-feature { grid-column: span 2; grid-row: span 2; }
.grid[data-layout="focus"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.grid[data-layout="focus"][data-count="1"] .tile { grid-column: 1 / -1; }
.grid[data-layout="focus"][data-count="1"] .tile-btn { aspect-ratio: 16 / 7.5; }
.grid[data-layout="focus"][data-count="1"] .tile-btn img { object-position: 50% 35%; }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; }
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.tile-btn:hover img { transform: scale(1.03); }
.grid[data-layout="all"] .tile-feature .tile-btn { flex: 1; aspect-ratio: auto; min-height: 0; }
.tile-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 10px; font-size: .875rem; font-weight: 500; line-height: 1.35; }
.tile-cap em { font: italic 400 1rem/1.2 var(--serif); color: var(--mute); }

/* Prestations */
.offers { background: var(--stone); }
.offer-list { border-top: 1px solid var(--ink); }
.offer { display: grid; grid-template-columns: 200px minmax(0, 1.35fr) minmax(0, 1fr) 210px; gap: 36px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.offer-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.offer-body h3 { font-size: 1.75rem; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.offer-sub { margin: 6px 0 12px; font: italic 400 1.2rem/1.3 var(--serif); color: var(--mute); }
.offer-body p:last-child { font-size: .9375rem; color: #3d3a36; max-width: 36em; }
.offer-incl { padding-top: 6px; }
.offer-incl li { position: relative; padding: 7px 0 7px 18px; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.offer-incl li:last-child { border-bottom: 0; }
.offer-incl li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--ink); }
.offer-price { text-align: right; font-size: clamp(2.2rem, 3.4vw, 3.1rem); font-weight: 200; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.p-from { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.p-ht { font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.options { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 36px; margin-top: 48px; }
.options h3 { font-size: 1rem; font-weight: 700; padding-top: 4px; }
.options-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.options-list dt { font-size: .875rem; color: var(--mute); }
.options-list dd { margin-top: 4px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.options .fineprint { grid-column: 2; }

/* Déroulé */
.process { background: var(--ink); color: #fff; }
.process .lead { color: var(--soft-inv); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { padding: 4px 24px 8px; border-left: 1px solid rgba(255, 255, 255, .2); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.step-n { display: block; font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 200; line-height: 1; letter-spacing: -.05em; }
.steps h3 { margin: 28px 0 10px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.steps p { font-size: .9375rem; color: var(--mute-inv); }

/* Espace client */
.client-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px 80px; align-items: end; }
.client-intro h2 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; margin-bottom: 24px; }
.client-intro .lead { max-width: 30em; }
.login { padding: 32px; border: 1px solid var(--ink); }
.login label { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 600; }
.login-row { display: flex; gap: 0; }
.login-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--ink); border-right: 0; border-radius: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; background: #fff; }
.login-row input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.login-row .btn { min-height: 52px; }
.login-help { margin-top: 12px; font-size: .875rem; color: var(--mute); }
.login-help strong { color: var(--ink); letter-spacing: .08em; }
.login-error { margin-top: 8px; font-size: .875rem; font-weight: 600; color: var(--error); }
.login-error:empty { display: none; }
.login.is-open { display: none; }

.gallery-private { margin-top: 56px; }
.gp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.gp-head h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; outline: none; }
.gp-meta { margin-top: 6px; font-size: .875rem; color: var(--mute); }
.gp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.gp-view { display: inline-flex; border: 1px solid var(--ink); }
.gp-view button { min-height: 42px; padding: 0 16px; border: 0; background: transparent; font-size: .9375rem; font-weight: 500; }
.gp-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gp-count { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.gp-actions .btn { min-height: 42px; }
.gp-note { margin-top: 10px; font-size: .8125rem; color: var(--mute); text-align: right; }
.gp-msg { margin-top: 12px; font-size: .9375rem; font-weight: 600; }
.gp-msg:empty { display: none; }
.gp-msg.is-ok { padding: 12px 16px; background: var(--stone); }
.gp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin-top: 24px; }
.gp-open { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gp-open img { width: 100%; height: 100%; object-fit: cover; }
.gp-item.is-fav .gp-open { box-shadow: inset 0 0 0 4px var(--ink); }
.gp-item.is-fav .gp-open img { padding: 4px; }
.gp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.gp-bar span { font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mute); }
.fav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); }
.fav[aria-pressed="true"] path { fill: currentColor; }
.fav:hover path { stroke-width: 2.2; }
.gp-empty { margin-top: 24px; padding: 28px; background: var(--stone); font-size: .9375rem; }

/* À propos */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.about-name { grid-column: 1 / span 5; }
.about-name h2 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.about-who { font-size: clamp(2.2rem, 4.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; }
.about-who span { display: block; }
.about-text { grid-column: 7 / -1; }
.about-text > p + p { margin-top: 18px; }
.about-text > p { color: #3d3a36; max-width: 38em; }
.about-quote { margin: 36px 0; padding-left: 24px; border-left: 2px solid var(--ink); }
.about-quote p { font: italic 400 clamp(1.5rem, 2.4vw, 2.1rem)/1.2 var(--serif); }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-facts dt { font-size: .9375rem; font-weight: 800; letter-spacing: -.01em; }
.about-facts dd { margin-top: 6px; font-size: .9375rem; color: var(--mute); }

/* Avis */
.reviews { background: var(--stone); }
.reviews h2 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.reviews-legend { font-size: .875rem; color: var(--mute); }
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.review-list li { display: flex; flex-direction: column; padding-top: 24px; border-top: 2px solid var(--ink); }
.review-list blockquote p { font-size: 1.3rem; font-weight: 300; line-height: 1.45; letter-spacing: -.015em; }
.review-who { margin-top: auto; padding-top: 24px; font-size: .9375rem; font-weight: 700; }
.review-who em { display: block; font: italic 400 1.05rem/1.3 var(--serif); color: var(--mute); }

/* Devis */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote-main .section-head { display: block; }
.quote-main .section-head h2 { margin-bottom: 20px; }
.quote-main .section-head .lead { max-width: 30em; }
.quote-form { display: grid; gap: 28px; }
.q-block legend, .q-range label, .field label { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 600; }
.q-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.q-types label, .q-checks label { position: relative; }
.q-types input, .q-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-types span { display: flex; align-items: center; min-height: 60px; height: 100%; padding: 10px 16px; border: 1px solid var(--field); font-size: .9375rem; font-weight: 500; line-height: 1.25; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.q-types span:hover { border-color: var(--ink); }
.q-types input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-types input:focus-visible + span, .q-checks input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.q-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.q-checks span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--field); font-size: .9375rem; cursor: pointer; }
.q-checks span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--ink); background: #fff; flex-shrink: 0; }
.q-checks input:checked + span { border-color: var(--ink); }
.q-checks input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.q-range label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.q-range output { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.q-range input { width: 100%; margin: 4px 0 0; accent-color: var(--ink); height: 28px; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--mute); }
.q-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field .opt { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: #fff; font-size: 1rem; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a63; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.q-error { font-size: .875rem; font-weight: 600; color: var(--error); }
.q-error:empty { display: none; }
.q-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.q-ok { font-size: .9375rem; font-weight: 600; }
.q-ok:empty { display: none; }
.q-ok.is-ok { padding: 12px 16px; background: var(--stone); }

.estimate { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; background: var(--ink); color: #fff; }
.estimate :focus-visible { outline-color: #fff; }
.estimate h3 { font-size: .9375rem; font-weight: 600; color: var(--mute-inv); }
.est-total { margin: 10px 0 22px; font-size: clamp(2.8rem, 4.4vw, 4rem); font-weight: 200; line-height: 1; letter-spacing: -.05em; }
.est-total span { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.est-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; }
.est-lines dt { color: var(--soft-inv); }
.est-lines dd { font-weight: 600; text-align: right; white-space: nowrap; }
.est-note { margin-top: 16px; font-size: .8125rem; color: var(--mute-inv); }
.est-contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.est-contact p { font-size: .875rem; color: var(--soft-inv); }
.est-contact a { display: inline-block; margin: 4px 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: #fff; text-decoration: none; white-space: nowrap; }
.est-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.est-hours { font-size: .8125rem !important; color: var(--mute-inv) !important; }

/* Pied de page */
.site-footer { background: var(--ink); color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding: clamp(64px, 8vw, 112px) 0 48px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.logo-inv { color: #fff; }
.footer-big { font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.045em; text-align: right; }
.footer-big a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 44px 0; }
.footer-grid h2 { margin-bottom: 14px; font-size: .875rem; font-weight: 600; color: var(--mute-inv); }
.footer-grid p, .footer-grid li { font-size: .9375rem; color: #ebe8e3; }
.footer-grid p + p { margin-top: 10px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .8125rem; color: var(--mute-inv); }
a[href^="tel:"] { white-space: nowrap; }

/* Visionneuse */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #111; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox :focus-visible { outline-color: #fff; }
.lb-frame { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lb-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding-top: 24px; }
.lb-figure img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }
.lb-caption { margin-top: 14px; text-align: center; font: italic 400 1.2rem/1.3 var(--serif); }
.lb-caption span { margin-left: 10px; font: 400 .8125rem/1 var(--sans); color: var(--soft-inv); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-top: 1px solid rgba(255, 255, 255, .18); }
.lb-count { font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--soft-inv); }
.lb-nav { display: flex; gap: 8px; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-close { margin-left: 16px; }
html:has(.lightbox[open]) { overflow: hidden; }

/* Responsive */
@media (max-width: 1180px) {
  .header-in { gap: 24px; }
  .nav ul { gap: 20px; }
  .offer { grid-template-columns: 160px minmax(0, 1.4fr) minmax(0, 1fr) 180px; gap: 28px; }
  .options { grid-template-columns: 160px minmax(0, 1fr); gap: 16px 28px; }
}

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; font-size: .875rem; font-weight: 600; }
  .header-cta { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--ink); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 14px 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; background: none; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 20px; }
  .intro-title { grid-column: 1 / -1; padding-top: 0; }
  .intro-text, .intro-facts { grid-column: 1 / -1; }
  .grid[data-layout="all"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
  .grid[data-layout="all"] .tile-feature { grid-column: span 3; grid-row: span 2; }
  .offer { grid-template-columns: 180px minmax(0, 1fr) auto; grid-template-areas: "img body price" "img incl price"; gap: 16px 28px; }
  .offer-img { grid-area: img; }
  .offer-body { grid-area: body; }
  .offer-incl { grid-area: incl; padding-top: 0; }
  .offer-price { grid-area: price; }
  .options { grid-template-columns: 1fr; }
  .options .fineprint { grid-column: 1; }
  .options-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .steps li { padding: 0 24px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 20px; }
  .steps li:first-child { padding-left: 0; }
  .steps h3 { margin-top: 18px; }
  .client-intro { grid-template-columns: 1fr; gap: 32px; }
  .gp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-name, .about-text { grid-column: 1 / -1; }
  .about-name { margin-bottom: 24px; }
  .review-list { grid-template-columns: 1fr; gap: 32px; }
  .quote-grid { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .q-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-big { text-align: left; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header-in { gap: 10px; }
  .logo-word { font-size: 1.0625rem; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: .8125rem; }
  .menu-btn { min-height: 40px; padding: 0 12px; }
  .hero { min-height: 600px; }
  .hero-content { padding-bottom: 104px; }
  .hero-lead { font-size: 1rem; }
  .hero-caption em { font-size: 1.05rem; }
  .hero-caption { flex-direction: column; gap: 2px; }
  .hero-count { display: none; }
  .ctl { width: 40px; height: 40px; }
  .intro-facts { grid-template-columns: 1fr; gap: 18px; }
  .grid[data-layout="all"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .grid[data-layout="all"] .tile-feature { grid-column: span 2; grid-row: span 1; }
  .grid[data-layout="all"] .tile-feature .tile-btn { flex: none; aspect-ratio: 3 / 2; }
  .grid[data-layout="focus"] { grid-template-columns: 1fr; gap: 28px; }
  .grid[data-layout="focus"][data-count="1"] .tile-btn { aspect-ratio: 4 / 3; }
  .tile-cap { font-size: .8125rem; }
  .tile-cap em { font-size: .9375rem; }
  .filters { gap: 2px 18px; }
  .offer { grid-template-columns: 1fr; grid-template-areas: "img" "body" "incl" "price"; }
  .offer-img { aspect-ratio: 16 / 9; }
  .offer-price { text-align: left; }
  .options-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding-right: 0; }
  .step-n { grid-row: span 2; font-size: 2.4rem; }
  .steps h3 { margin: 4px 0 6px; }
  .login { padding: 22px; }
  .login-row { flex-direction: column; }
  .login-row input { border-right: 1px solid var(--ink); }
  .login-row .btn { margin-top: 10px; }
  .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .gp-actions { margin-left: 0; width: 100%; }
  .gp-actions .btn { flex: 1; padding: 0 12px; }
  .gp-note { text-align: left; }
  .about-facts { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr; }
  .estimate { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .logo-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* En-tête compact */
.header-cta .cta-short { display: none; }
@media (max-width: 640px) {
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}

/* Aperçu verrouillé de l'espace client */
.gp-teaser { position: relative; margin-top: 48px; }
.gp-teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gp-t { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.gp-teaser-grid img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) grayscale(.3); transform: scale(1.12); opacity: .8; }
.gp-teaser-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border: 1px solid var(--ink); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.client.is-unlocked .gp-teaser { display: none; }
@media (max-width: 640px) {
  .gp-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gp-t:nth-child(n+3) { display: none; }
}

/* Ajustements du héros, des légendes et de l'à propos */
.hero h1 { max-width: none; font-size: clamp(2.5rem, 5.4vw, 5.6rem); }
.hero h1 span { text-wrap: balance; }
.hero-shade { background: linear-gradient(to top, rgba(17, 17, 17, .88) 0%, rgba(17, 17, 17, .66) 34%, rgba(17, 17, 17, .3) 62%, rgba(17, 17, 17, .12) 100%), linear-gradient(to right, rgba(17, 17, 17, .45) 0%, rgba(17, 17, 17, 0) 70%); }
.tile-cap { flex-direction: column; align-items: flex-start; gap: 1px; }
.about-name .about-quote { margin: 40px 0 0; max-width: 22em; }
.about-facts { margin-top: 32px; }
@media (max-width: 640px) {
  .login-row input { flex: none; width: 100%; height: 52px; }
  .login-row .btn { width: 100%; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 16px; padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .steps li:first-child { padding-top: 22px; }
  .step-n { grid-row: span 2; }
  .steps h3 { margin: 4px 0 6px; }
  .steps p { max-width: 40em; }
}
@media (max-width: 640px) {
  .steps li { grid-template-columns: 60px minmax(0, 1fr); gap: 0 10px; }
}

/* Héros : voile limité à la zone du texte, cadrages adaptés aux écrans verticaux */
.hero-shade { background: linear-gradient(to top, rgba(17, 17, 17, .88) 0%, rgba(17, 17, 17, .74) 30%, rgba(17, 17, 17, .5) 55%, rgba(17, 17, 17, .14) 78%, rgba(17, 17, 17, 0) 100%), linear-gradient(to right, rgba(17, 17, 17, .5) 0%, rgba(17, 17, 17, .2) 45%, rgba(17, 17, 17, 0) 70%); }
.hero h1, .hero-lead { text-shadow: 0 1px 28px rgba(17, 17, 17, .35); }
@media (min-width: 641px) and (max-width: 980px) {
  .hero { height: min(calc(100svh - var(--header-h) - 38px), 780px); }
}
@media (max-width: 980px) {
  .slide:nth-child(1) img { object-position: 62% 50%; }
}
