/* ==========================================================================
   Bangerter Yann Photography — « Calcaire & crayon gras »
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Covered By Your Grace"; src: url("../fonts/covered-by-your-grace-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --calcaire: #E6E4DE;
  --papier: #F6F5F1;
  --sapin: #1C2620;
  --mousse: #58625A;
  --pellicule: #141614;
  --crayon: #C0261E;

  --bg: var(--calcaire);
  --fg: var(--sapin);
  --fg2: #2E3A33;
  --muted: var(--mousse);
  --line: rgba(28, 38, 32, .18);
  --card: var(--papier);
  --btn-bg: var(--sapin);
  --btn-fg: var(--papier);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Covered By Your Grace", "Comic Sans MS", cursive;
  --wrap: 1360px;
  --pad: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.page-dark {
  --bg: var(--pellicule);
  --fg: #ECEAE4;
  --fg2: #C8CAC3;
  --muted: #9A9D95;
  --line: #3A3F3B;
  --card: #1F221F;
  --btn-bg: #ECEAE4;
  --btn-fg: var(--pellicule);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--fg2); }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 200; font-family: var(--sans); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: calc(760px + 2 * var(--pad)); }

/* ---------- Typographie ---------- */
.h-hero { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 1.02; font-weight: 340; letter-spacing: -.025em; margin-bottom: 28px; }
.h-page { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 1.02; font-weight: 340; letter-spacing: -.025em; margin-bottom: 18px; }
.h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.08; font-weight: 360; letter-spacing: -.02em; margin-bottom: 44px; }
.lead, .intro { color: var(--fg2); max-width: 620px; }
.intro p:last-child { margin-bottom: 0; }
.sub { color: var(--fg2); max-width: 600px; margin: -30px 0 40px; }
.caption { font-family: var(--sans); font-size: 14px; color: var(--muted); max-width: 640px; margin: 16px 0 0; }
.link { font-family: var(--sans); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hand { font-family: var(--hand); color: var(--crayon); font-weight: 400; line-height: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: 3px;
  font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--fg2); border-color: var(--fg2); color: var(--btn-fg); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 14px 24px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); font-weight: 400; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-light { background: var(--papier); color: var(--sapin); border-color: var(--papier); }
.btn-light:hover { background: #fff; color: var(--sapin); border-color: #fff; }

/* ---------- En-tête ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 60; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; font-family: var(--sans); font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--fg); padding: 0; cursor: pointer; align-items: center; justify-content: center; position: relative; z-index: 70; }
.burger svg path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; transition: transform .3s var(--ease); transform-origin: 12px 12px; }
.menu-open .burger .b1 { transform: translateY(4px) rotate(45deg); }
.menu-open .burger .b2 { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(96px, 10vw, 150px); }
.section-sm { padding-top: clamp(80px, 8vw, 110px); }
.page-top { padding-top: clamp(20px, 3vw, 44px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head .h2 { margin-bottom: 14px; }
.section-head p { color: var(--fg2); margin: 0; max-width: 640px; }

/* Tirage photo : marge de papier et ombre douce */
.print { margin: 0; background: var(--papier); padding: 14px 14px 44px; position: relative; box-shadow: 0 1px 1px rgba(28,38,32,.08), 0 22px 44px -28px rgba(28,38,32,.45); }
.print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print figcaption { position: absolute; left: 16px; bottom: 13px; font-family: var(--sans); font-size: 13px; color: var(--mousse); }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; padding-top: 36px; }
.hero-copy { padding-bottom: 12px; }
.hero-copy p { max-width: 440px; color: var(--fg2); margin-bottom: 36px; }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.strip-section { margin-top: 84px; }
.strip-scroll { overflow-x: auto; overflow-y: hidden; padding-top: 110px; margin-top: -110px; padding-right: 4px; scrollbar-width: thin; }
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; background: var(--pellicule); padding: 16px 18px 20px; min-width: 900px; }
.strip-frame { position: relative; display: block; text-decoration: none; }
.frame-n { display: block; font-family: var(--sans); font-size: 10px; color: #8E9189; margin-bottom: 6px; line-height: 1.2; }
.strip-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.strip-img img { width: 100%; height: 100%; object-fit: cover; }

.crayon { position: absolute; overflow: visible; pointer-events: none; }
.crayon path { fill: none; stroke: var(--crayon); stroke-width: 3.4; stroke-linecap: round; }
.crayon-strip { top: 8px; left: -26px; width: calc(100% + 52px); height: calc(100% + 18px); }
.crayon-arrow { position: absolute; top: -92px; left: 42%; width: 46px; height: 76px; overflow: visible; pointer-events: none; }
.crayon-arrow path { fill: none; stroke: var(--crayon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hand-strip { position: absolute; top: -60px; left: calc(42% + 52px); font-size: 31px; transform: rotate(-7deg); white-space: nowrap; }

.works { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; }
.works-single { grid-template-columns: minmax(0, 860px); }
.works-side { display: flex; flex-direction: column; gap: 48px; }
.work { display: block; text-decoration: none; color: var(--fg); }
.work:hover { color: var(--fg); }
.work-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.work-img.sq { aspect-ratio: 1 / 1; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { font-size: 28px; letter-spacing: -.015em; margin: 18px 0 4px; }
.work-main h3 { font-size: 32px; margin-top: 22px; }
.work p { color: var(--fg2); margin: 0 0 8px; max-width: 520px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { border-top: 1px solid var(--fg); padding-top: 18px; }
.step-n { display: block; font-size: 54px; font-weight: 300; line-height: 1; margin-bottom: 18px; }
.steps h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.steps p { font-size: 17px; color: var(--fg2); margin: 0; }

.fcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fcard { display: block; background: var(--card); padding: 26px 24px 24px; text-decoration: none; color: var(--fg); }
.fcard:hover { color: var(--fg); outline: 1px solid var(--fg); outline-offset: -1px; }
.fcard h3 { font-size: 22px; font-weight: 420; margin: 18px 0 2px; }
.fcard p { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.fcard strong { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.picto { color: var(--fg); display: block; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.about-text-only { grid-template-columns: minmax(0, 720px); }
.about-print { padding: 12px; max-width: 460px; }
.about-print img { aspect-ratio: 4 / 5; }
.about-copy { max-width: 600px; }
.about-copy .h2 { margin-bottom: 24px; }

.cta-band { background: var(--sapin); color: var(--papier); padding: 64px 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-copy { max-width: 560px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 340; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.cta-band p { color: #C9CEC8; margin: 0; }
.cta-band .cta-other { margin-top: 18px; font: 14px var(--sans); color: #C9CEC8; }
.cta-other a { color: var(--papier); text-underline-offset: 4px; }
.page-dark .cta-other a { color: var(--fg); }
.cta-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; font-family: var(--sans); }
.cta-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #C9CEC8; }
.cta-form input { font: 16px var(--sans); padding: 12px 14px; min-height: 50px; border: 1px solid #56645A; background: #243029; color: var(--papier); border-radius: 3px; color-scheme: dark; }
.cta-form input:focus { outline: 2px solid var(--papier); outline-offset: 2px; }
.cta-form .btn { min-height: 50px; }
.page-dark .cta-band { background: transparent; border: 1px solid var(--line); }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: 100px; padding-bottom: 40px; font-family: var(--sans); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 36px; }
.foot-logo { height: 52px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); margin: 0; }
.foot-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin: 44px 0 0; color: var(--muted); }
.mbar { display: none; }
.admin-pill { position: fixed; right: 14px; bottom: 14px; z-index: 90; background: var(--crayon); color: #fff; font: 500 12px var(--sans); padding: 7px 12px; border-radius: 20px; text-decoration: none; }
.admin-pill:hover { color: #fff; }

/* ==========================================================================
   Galeries
   ========================================================================== */
.gallery-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.gallery-top .btn { flex: none; }
.split-top { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.split-top .h-page { margin: 0; }
.split-top .intro p { margin: 0; }

.gallery { --gap: 8px; --row: var(--rh, 300px); }
.g-item { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--c, #d3d0c8); cursor: zoom-in; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.js .g-item img { opacity: 0; }
.js .g-item img.is-loaded { opacity: 1; }
.g-ratio { display: block; }

/* Justifiée : rangées de même hauteur, photos entières */
.g-justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.g-justified::after { content: ""; flex-grow: 999999; }
.g-justified .g-item { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--row)); min-width: 0; }
.g-justified .g-ratio { padding-bottom: calc(100% / var(--ar)); }

/* Carrée */
.g-square { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.g-square .g-ratio { padding-bottom: 100%; }

/* Planche contact (page sombre) */
.sheet { background: #F2F1EC; padding: 44px 48px 40px; max-width: 1120px; position: relative; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.sheet-note { margin: 0 0 4px; font-size: 30px; transform: rotate(-3deg); transform-origin: left; align-self: flex-start; }
.film { background: #0B0C0B; padding: 20px 14px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sheet-frame { overflow: visible; background: none; }
.sheet-frame .frame-n { color: #A39F92; margin: -14px 0 4px; }
.sheet-img { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--c, #222); }
.crayon-sheet { top: 4px; left: -24px; width: calc(100% + 48px); height: calc(100% + 16px); }
.crayon-sheet path { stroke-width: 3.6; }

/* Galerie privée */
.lock { padding-bottom: 40px; }
.lock-form { display: flex; gap: 10px; max-width: 480px; margin-top: 24px; flex-wrap: wrap; }
.lock-form input { flex: 1 1 220px; }

/* ==========================================================================
   Formules
   ========================================================================== */
.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-axis { border-top: 0; padding: 0 0 10px; }
.tl-ticks { position: relative; height: 20px; }
.tl-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--sans); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tl-name { display: flex; gap: 16px; align-items: center; }
.tl-name .picto { flex: none; }
.tl-name h3 { font-size: 23px; font-weight: 420; position: relative; display: inline-block; }
.tl-name p { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.crayon-name { top: -14px; left: -22px; width: calc(100% + 44px); height: calc(100% + 28px); }
.crayon-name path { stroke-width: 3; }
.hand-reco { position: absolute; top: -30px; left: calc(100% + 18px); font-size: 27px; transform: rotate(-6deg); white-space: nowrap; }
.track { position: relative; height: 46px; border-right: 1px solid var(--line); background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--steps, 7))); }
.bar { position: absolute; top: 7px; bottom: 7px; background: var(--fg); color: var(--bg); border-radius: 2px; display: flex; align-items: center; padding: 0 12px; font: 500 14px var(--sans); white-space: nowrap; overflow: hidden; }

.table-scroll { overflow-x: auto; }
.cmp { width: 100%; min-width: 820px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 21px; font-weight: 420; border-bottom: 1px solid var(--fg); width: 18%; }
.cmp thead td { border-bottom: 1px solid var(--fg); }
.cmp tbody th { font: 500 15px var(--sans); }
.cmp td { font: 15px var(--sans); }
.cmp .hl { background: var(--card); }
.cmp tbody th, .cmp thead td, .row-cta td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.row-price td { font-size: 18px; font-weight: 600; }
.row-price th { font-size: 16px; }
.row-cta td { border-bottom: 0; padding-top: 22px; }
.ic-check { color: var(--fg); display: block; }
.ic-dash { color: #8A918A; }

.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.inc { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid var(--fg); padding-top: 24px; }
.inc .picto { flex: none; }
.inc h3 { font-size: 24px; font-weight: 420; line-height: 1.2; margin-bottom: 6px; }
.inc p { color: var(--fg2); margin: 0; }

.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.other { background: var(--card); padding: 30px 28px 28px; display: flex; flex-direction: column; scroll-margin-top: 24px; }
.other h3 { font-size: 26px; font-weight: 420; margin: 14px 0 6px; }
.other-text { color: var(--fg2); flex: 1; margin-bottom: 18px; }
.other-price { font: 600 16px var(--sans); margin-bottom: 16px; }
.other .link { align-self: flex-start; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.h-contact { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 22px; }
.contact-info > p { color: var(--fg2); max-width: 440px; }
.meta { margin: 40px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; font: 15px var(--sans); border-top: 1px solid var(--line); padding-top: 22px; max-width: 440px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.print-tilt { margin-top: 56px; padding: 10px 10px 32px; max-width: 300px; transform: rotate(-1.5deg); }
.print-tilt img { aspect-ratio: 4 / 5; }

.contact-form form, .thanks { background: var(--card); padding: 40px; font-family: var(--sans); }
.contact-form form { display: flex; flex-direction: column; gap: 22px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--fg2); }
.fld input, .fld textarea, .lock-form input {
  font: 16px var(--sans); color: var(--sapin); background: #fff;
  border: 1px solid rgba(28,38,32,.3); border-radius: 3px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.fld textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.fld input:focus, .fld textarea:focus, .lock-form input:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 1px var(--sapin); }
.fld [aria-invalid="true"] { border-color: #A1261F; }
.field-error { color: #A1261F; font-size: 13.5px; }
.pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills legend { font-size: 14px; color: var(--fg2); margin-bottom: 10px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(28,38,32,.35); border-radius: 40px; background: #fff; font-size: 15px; cursor: pointer; }
.pill input { accent-color: var(--sapin); margin: 0; }
.pill:has(input:checked) { background: var(--sapin); color: var(--papier); border-color: var(--sapin); }
.pill:has(input:checked) input { accent-color: var(--papier); }
.pill:has(input:focus-visible) { outline: 2px solid var(--sapin); outline-offset: 2px; }
.pills-note { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.fld > span { display: block; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 330px; line-height: 1.45; }
.form-error { border-left: 3px solid #A1261F; background: rgba(161,38,31,.07); padding: 12px 16px; margin-bottom: 22px; font: 15px var(--sans); color: #7A1D17; }
.form-error p { margin: 0 0 4px; }
.form-error p:last-child { margin: 0; }
.thanks h2 { font-family: var(--serif); font-size: 36px; font-weight: 360; margin-bottom: 12px; }
.thanks p { font-size: 16px; color: var(--fg2); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Visionneuse
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 1000; background: #0B0C0B; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; touch-action: none; user-select: none; -webkit-user-select: none; color: #ECEAE4; font-family: var(--sans); }
.lb.is-open { opacity: 1; visibility: visible; }
.lb-track { position: absolute; inset: 0; will-change: transform; }
.lb-track.anim { transition: transform .38s var(--ease); }
.lb-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 76px; }
.lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .4s ease, transform .3s ease; }
.lb-slide img.is-loaded { opacity: 1; }
.lb-slide.zoomed { cursor: zoom-out; }
.lb-slide.zoomed img { transform: scale(2.2); transition: opacity .4s ease, transform .35s var(--ease); }
.lb-spin { position: absolute; width: 32px; height: 32px; border: 2px solid rgba(255,255,255,.15); border-top-color: #ECEAE4; border-radius: 50%; animation: spin .8s linear infinite; }
.lb-slide.ready .lb-spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-ui { transition: opacity .4s; }
.lb.idle .lb-ui { opacity: 0; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; z-index: 3; }
.lb-count { font-size: 14px; color: #B8BAB3; padding-left: 8px; }
.lb-tools { display: flex; gap: 4px; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; color: #ECEAE4; cursor: pointer; border-radius: 50%; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.1); }
.lb-btn:focus-visible { outline: 2px solid #ECEAE4; outline-offset: 0; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn.is-playing .i-play, .lb-btn:not(.is-playing) .i-pause { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 56px; height: 56px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-prev svg, .lb-next svg { width: 30px; height: 30px; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px 18px; text-align: center; font-size: 14px; color: #C8CAC3; z-index: 3; }
.lb-caption:empty { display: none; }
.lb-progress { position: absolute; left: 0; top: 0; height: 2px; background: var(--crayon); width: 0; z-index: 4; }
.lb-progress.run { width: 100%; transition: width linear; }
.lb-open { overflow: hidden; }

/* ==========================================================================
   Téléphone et tablette
   ========================================================================== */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .logo img { height: 48px; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .burger { display: flex; }
  .nav { position: fixed; inset: 0; z-index: 65; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 22px; font-size: 22px; font-family: var(--serif); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav .btn { font-size: 16px; margin-top: 10px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .hero, .works, .about, .contact, .split-top { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 12px; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy p { margin-bottom: 24px; }
  .print { padding: 10px 10px 34px; }
  .print figcaption { left: 12px; bottom: 9px; font-size: 12px; }
  .strip-section { margin-top: 58px; }
  .strip { grid-template-columns: repeat(8, 128px); min-width: 0; width: max-content; padding: 12px 14px 16px; gap: 8px; }
  .steps, .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .step-n { font-size: 42px; margin-bottom: 12px; }
  .about-print { max-width: 360px; }
  .cta-band { padding: 34px 24px; }
  .cta-form, .cta-form label, .cta-form .btn { width: 100%; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 96px; }
  .no-bar .site-footer { padding-bottom: 40px; }
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
  .mbar .btn:last-child { flex: 1.4; }
  .no-bar .mbar, .lb-open .mbar { display: none; }

  .gallery { --gap: 4px; --row: calc(var(--rh, 300px) * .55); }
  .g-square { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { padding: 18px 12px 16px; gap: 14px; }
  .film { padding: 16px 6px 12px; gap: 4px; }
  .sheet-note { font-size: 24px; }

  .tl-row { grid-template-columns: 1fr; gap: 10px; }
  .tl-axis > div:first-child { display: none; }
  .tl-ticks span:nth-child(even) { display: none; }
  .included, .others, .row2 { grid-template-columns: 1fr; gap: 24px; }
  .cmp { min-width: 640px; }
  .cmp th, .cmp td { padding: 13px 12px; }
  .cmp tbody th { font-size: 14px; width: 132px; min-width: 132px; box-shadow: 1px 0 0 var(--line); }
  .cmp thead th { font-size: 18px; }
  .contact-form form, .thanks { padding: 24px 18px; }
  .lb-slide { padding: 56px 0; }
  .lb-prev, .lb-next { display: none; }
}

@media (max-width: 520px) {
  .steps, .fcards { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .lb-prev, .lb-next { display: none; }
}

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