/* ============================================================
   Stéphane Marvy · Guides offerts
   Carnet lyonnais : papier, encre bleu nuit, bleu IAD, aquarelles
   ============================================================ */
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #1b4dff;
  --blue-deep: #1238c4;
  --blue-ink: #2a4fe0;
  --blue-tint: #eaf0ff;
  --blue-soft: #c9d6ff;
  --sky: #9db4ff;
  --navy: #0a1633;
  --navy-2: #13224a;
  --ink: #161b26;
  --ink-2: #3a4252;
  --muted: #5f6878;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --line: #e2ddd2;
  --white: #fff;
  --terra: #c8643f;
  --error: #b42318;
  --ok: #1f7a55;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r: 18px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1240px;
  --header-h: 78px;
  --shadow-sm: 0 1px 2px rgba(10,22,51,.06), 0 4px 14px -6px rgba(10,22,51,.12);
  --shadow-md: 0 2px 6px rgba(10,22,51,.06), 0 18px 40px -16px rgba(10,22,51,.28);
  --shadow-lg: 0 6px 12px rgba(10,22,51,.07), 0 40px 80px -28px rgba(10,22,51,.45);
}

@property --bloom { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* ---------- Transitions entre pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
::view-transition-group(site-header) { animation: none; z-index: 10; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-group(book-vendeur), ::view-transition-group(book-acheteur) { animation-duration: 460ms; animation-timing-function: var(--ease-in-out); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--navy); letter-spacing: -.015em; text-wrap: balance; }
::selection { background: var(--blue-soft); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform 200ms var(--ease-out); }
.skip-link:focus { transform: translateY(76px); }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Grain papier, très léger */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .site-footer, .site-header { position: relative; z-index: 1; }

/* ---------- Typo utilitaire ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--blue-ink); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--sky); }
.eyebrow.center { justify-content: center; }
.display { font-size: clamp(42px, 6.2vw, 82px); line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.025em; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.acc { font-style: italic; color: var(--blue); font-weight: 400; }
.lede { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); view-transition-name: site-header; transition: background-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease; }
.site-header.is-scrolled { background: rgba(247,244,238,.82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mono { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; letter-spacing: .02em; position: relative; overflow: hidden; }
.brand .mono::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(157,180,255,.45); }
.brand .who { display: flex; flex-direction: column; line-height: 1.15; }
.brand .who b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); }
.brand .who span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.nav a { position: relative; z-index: 1; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); transition: color 200ms ease; }
.nav a[aria-current="page"] { color: #fff; }
.nav .pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--navy); transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); z-index: 0; }
@media (hover: hover) and (pointer: fine) { .nav a:not([aria-current]):hover { color: var(--blue); } }
.head-cta { display: flex; align-items: center; gap: 10px; }
.tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 10px 16px; border-radius: 999px; background: var(--blue); color: #fff; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.tel:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .tel:hover { background: var(--blue-deep); } }
.tel svg { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--white); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--navy); border-radius: 2px; transition: transform 260ms var(--ease-out), opacity 160ms ease; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.drawer { position: fixed; z-index: 49; left: 12px; right: 12px; top: calc(var(--header-h) - 4px); background: var(--white); border-radius: 22px; padding: 10px 18px 18px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right; pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms; }
.menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.drawer a[aria-current="page"] { color: var(--blue); }
.drawer .btn { margin-top: 16px; width: 100%; justify-content: center; border: 0; font-family: var(--sans); font-size: 15px; }
@media (max-width: 960px) { .nav, .tel span { display: none; } .burger { display: block; } .tel { padding: 12px; } }
@media (max-width: 420px) { .brand .who span { display: none; } }

/* ---------- Boutons ---------- */
.btn { --bg: var(--navy); --fg: #fff; position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 600; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease-out), box-shadow 240ms ease; -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path 480ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn .ar { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
  .btn:hover .ar { transform: translateX(3px); }
  .btn:hover { box-shadow: 0 14px 30px -14px rgba(27,77,255,.7); }
}
.btn-blue { --bg: var(--blue); } .btn-blue::before { background: var(--navy); }
.btn-ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); transition: transform 160ms var(--ease-out), color 260ms ease; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); } }
.btn-light { --bg: #fff; --fg: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { color: #fff; } }
.btn-block { width: 100%; justify-content: center; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 26px; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform 300ms var(--ease-out); }
.link svg { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(4px); } .link:hover::after { transform: scaleX(.4); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section-sm { padding-block: clamp(56px, 7vw, 92px); }
.bg-white { background: var(--white); }
.bg-paper2 { background: var(--paper-2); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 70px); }
.head.center { margin-inline: auto; text-align: center; }
.head .lede { margin-top: 18px; }

/* ---------- Arche : le motif signature ---------- */
.arch { position: relative; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.arch img, .arch .im { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(255,255,255,.55); pointer-events: none; }

/* Éclosion aquarelle */
@media (prefers-reduced-motion: no-preference) {
  .js .bloom { -webkit-mask-image: radial-gradient(circle at 50% 62%, #000 var(--bloom), transparent calc(var(--bloom) + 22%)); mask-image: radial-gradient(circle at 50% 62%, #000 var(--bloom), transparent calc(var(--bloom) + 22%)); animation: bloom 1600ms var(--ease-out) 150ms forwards; }
  .js .bloom img { transform: scale(1.08); animation: settle 2200ms var(--ease-out) 150ms forwards; }
}
@keyframes bloom { to { --bloom: 140%; } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 90px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .w { opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: word 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
}
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }
.hero .lede { max-width: 540px; margin-top: 26px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--blue); }
.hero-art { position: relative; min-height: 580px; }
.hero-art .arch { position: absolute; inset: 0 8% 40px 8%; }
.hero-books { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; }
.hero-books .bs { position: absolute; bottom: 0; }
.hero-books .b1 { left: 2%; } .hero-books .b2 { right: 2%; bottom: 30px; }
.hero-books .b1 .book { --ry: 16deg; } .hero-books .b2 .book { --ry: -16deg; }
.hero-books .book { width: clamp(150px, 15vw, 205px); }
.stamp { position: absolute; top: 34px; right: 0; width: 118px; height: 118px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 17px; line-height: 1.1; box-shadow: var(--shadow-md); z-index: 3; }
.stamp small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.stamp svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
@media (prefers-reduced-motion: no-preference) { .stamp svg { animation: spin 24s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 480px; max-width: 520px; width: 100%; margin-inline: auto; }
  .stamp { width: 96px; height: 96px; font-size: 14px; }
}

/* ---------- Livre 3D ---------- */
.bs { perspective: 1400px; display: grid; place-items: center; }
.book { --rx: 0deg; --ry: -16deg; position: relative; width: 220px; aspect-ratio: 1 / 1.414; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.book .cv { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; transform: translateZ(9px); box-shadow: 22px 30px 50px -16px rgba(10,22,51,.55), 2px 2px 5px rgba(10,22,51,.2); background: var(--navy); }
.book .cv img { width: 100%; height: 100%; object-fit: cover; }
.book .cv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.15) 45%, rgba(0,0,0,0)); }
.book .cv::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgba(255,255,255,.28), rgba(255,255,255,0) 40%); }
.book .pg { position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: 18px; transform: translateX(9px) rotateY(90deg); transform-origin: right center; background: repeating-linear-gradient(90deg, #f6f2ea 0 1px, #ddd6c8 1px 2px); }
.book .bk { position: absolute; inset: 0; transform: translateZ(-9px); background: #d9dfee; border-radius: 3px 8px 8px 3px; }
.book[data-vt="vendeur"] { view-transition-name: book-vendeur; }
.book[data-vt="acheteur"] { view-transition-name: book-acheteur; }
.ribbon { position: absolute; z-index: 3; left: -14px; bottom: 16%; transform: translateZ(30px) rotate(-5deg); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 8px 13px; border-radius: 8px; box-shadow: var(--shadow-md); }

/* ---------- Marquee quartiers ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track span { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); padding: 0 26px; display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.marquee-track span:nth-child(even) { font-style: italic; color: var(--blue-ink); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 48s linear infinite; } .marquee.paused .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes parcours ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); }
.path:active { transform: scale(.99); }
.path .pic { position: relative; height: 300px; overflow: hidden; }
.path .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.path .pic::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.path .bs { position: absolute; right: 28px; top: 170px; z-index: 2; }
.path .book { width: 132px; --ry: -14deg; }
.path .body { padding: 0 34px 34px; position: relative; z-index: 1; }
.path .tag { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.path h3 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.06; max-width: 70%; }
.path ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.path li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; }
.path li svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
@media (hover: hover) and (pointer: fine) {
  .path:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .path:hover .pic img { transform: scale(1.05); }
  .path:hover .link svg { transform: translateX(4px); }
}
@media (max-width: 520px) { .path .bs { display: none; } .path h3 { max-width: 100%; } .path .body { padding: 0 22px 26px; } }

/* ---------- Onglets (clip-path) ---------- */
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; position: relative; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.tabs .on { position: absolute; inset: 6px; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-radius: 999px; pointer-events: none; z-index: 2; clip-path: inset(0 50% 0 0 round 999px); transition: clip-path 420ms var(--ease-out); }
.tabs .on span { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; }
.tabs[data-active="1"] .on { clip-path: inset(0 0 0 50% round 999px); }
.tabpanels { position: relative; margin-top: 44px; }
.tabpanel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tabpanel[hidden] { display: none; }
@media (max-width: 960px) { .tabpanel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tabpanel { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: var(--r); padding: 24px 22px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step .n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--blue); letter-spacing: -.03em; }
.step h3 { font-size: 20px; line-height: 1.25; margin-top: 12px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .tabpanel.enter .step { animation: stepin 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
}
@keyframes stepin { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- Édito ---------- */
.edito { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 880px) { .edito { grid-template-columns: 1fr; } }
.edito .arch { aspect-ratio: 4 / 5; }
.quote { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: var(--navy); font-style: italic; letter-spacing: -.01em; margin: 0; }
.quote .q { color: var(--blue); }
.sig { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--navy); margin-top: 26px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.values span { padding: 9px 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; color: var(--navy); transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .values span:hover { background: var(--navy); color: #fff; } }

/* ---------- Atouts ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { padding-top: 26px; border-top: 1.5px solid var(--navy); }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 24px; }
.feat p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Carte de Lyon ---------- */
.map-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .map-wrap { grid-template-columns: 1fr; } }
.map { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 1; background: var(--paper-2); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.zones span { padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: 14.5px; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- FAQ (grid rows) ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--navy); }
.qa .pm { flex: none; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform 320ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.qa .pm svg { width: 16px; height: 16px; }
.qa.open .pm { transform: rotate(45deg); background: var(--blue); color: #fff; box-shadow: none; }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { color: var(--ink-2); padding: 0 60px 26px 4px; margin: 0; opacity: 0; transform: translateY(-4px); transition: opacity 240ms ease, transform 320ms var(--ease-out); }
.qa.open .ans p { opacity: 1; transform: none; transition-delay: 60ms; }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.final .bgimg { position: absolute; inset: 0; }
.final .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.final .bgimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,51,.96) 0%, rgba(10,22,51,.82) 45%, rgba(10,22,51,.35) 100%); }
.final .container { position: relative; }
.final h2 { color: #fff; max-width: 680px; }
.final h2 .acc { color: var(--sky); }
.final p { color: rgba(255,255,255,.84); max-width: 560px; margin-top: 20px; }
.final .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }

/* ---------- Pages guides : hero + formulaire ---------- */
.ghero { padding: clamp(24px, 4vw, 52px) 0 clamp(56px, 7vw, 100px); }
.ghero-grid { display: grid; grid-template-columns: 1fr 470px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1020px) { .ghero-grid { grid-template-columns: 1fr; } }
.ghero .lede { margin-top: 22px; max-width: 560px; }
.ghero-art { position: relative; height: 330px; margin-top: 40px; max-width: 620px; }
.ghero-art .arch { position: absolute; inset: 0 0 0 30%; border-radius: 999px 999px 24px 24px; }
.ghero-art .bs { position: absolute; left: 4%; bottom: -18px; z-index: 2; }
.ghero-art .book { width: 190px; --ry: 16deg; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; font-size: 16.5px; color: var(--ink-2); }
.points svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
@media (max-width: 1020px) { .ghero-art { margin-top: 30px; } }
@media (max-width: 520px) { .ghero-art { height: 260px; } .ghero-art .book { width: 140px; } }

.form-card { position: sticky; top: calc(var(--header-h) + 18px); background: var(--white); border-radius: 28px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form-card .ft { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-card h2 { font-size: 30px; line-height: 1.1; }
.form-card .badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: var(--blue-tint); color: var(--blue); padding: 7px 10px; border-radius: 8px; }
.form-card .sub { color: var(--muted); font-size: 15px; margin: 10px 0 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input { width: 100%; height: 58px; padding: 22px 16px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 500 16px/1.2 var(--sans); color: var(--ink); transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; appearance: none; }
.field label { position: absolute; left: 17px; top: 19px; font-size: 15.5px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 220ms var(--ease-out), color 180ms ease; }
.field input:focus, .field input:not(:placeholder-shown) { background: #fff; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,77,255,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--blue-ink); font-weight: 600; }
.field.err input { border-color: var(--error); background: #fff8f7; }
.ferr { display: none; font-size: 13px; color: var(--error); margin-top: 6px; gap: 6px; align-items: center; }
.field.err .ferr { display: flex; animation: errin 220ms var(--ease-out); }
@keyframes errin { from { opacity: 0; transform: translateY(-3px); } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; margin-top: 4px; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); cursor: pointer; }
.consent.err { color: var(--error); }
.consent a { color: var(--navy); }
.submit { margin-top: 18px; }
.submit .lb { display: inline-flex; align-items: center; gap: 10px; transition: opacity 200ms ease, filter 200ms ease, transform 240ms var(--ease-out); }
.submit .st { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; filter: blur(4px); transform: translateY(8px); transition: opacity 200ms ease, filter 200ms ease, transform 260ms var(--ease-out); }
.submit.loading .lb, .submit.done .lb { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
.submit.loading .st-l, .submit.done .st-d { opacity: 1; filter: blur(0); transform: none; }
.submit.done { --bg: var(--ok); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 600ms linear infinite; }
.st-d svg { width: 24px; height: 24px; }
.fnote { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.fnote svg { width: 15px; height: 15px; }
.fstatus { display: none; color: var(--error); font-size: 14px; margin-top: 10px; }
.fstatus.show { display: block; }

/* ---------- Parcours (timeline scrollée) ---------- */
.journey { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } }
.journey-side { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
@media (max-width: 900px) { .journey-side { position: static; } }
.jprog { margin-top: 28px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.jprog i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }
.jcount { margin-top: 12px; font-size: 14px; color: var(--muted); }
.jcount b { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 500; }
.jlist { position: relative; list-style: none; padding: 0; margin: 0; }
.jlist::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line); }
.jitem { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 0 0 38px; }
.jitem:last-child { padding-bottom: 0; }
.jitem .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 21px; color: var(--muted); position: relative; z-index: 1; transition: background-color 360ms var(--ease-out), color 360ms ease, box-shadow 360ms ease, transform 360ms var(--ease-out); }
.jitem.on .dot { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(27,77,255,.8); transform: scale(1.04); }
.jitem.extra .dot { font-family: var(--sans); font-size: 18px; }
.jitem .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-ink); font-weight: 700; }
.jitem h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; margin-top: 4px; }
.jitem p { color: var(--ink-2); margin: 8px 0 0; }
.jitem .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jitem .chips span { font-size: 13.5px; padding: 6px 12px; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* ---------- Aperçu des pages ---------- */
.peek { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 900px) { .peek { grid-template-columns: repeat(4, 64%); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; } .peek::-webkit-scrollbar { display: none; } .peek > * { scroll-snap-align: center; } }
.sheet { position: relative; display: block; padding: 0; border: 0; background: #fff; border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1.414; box-shadow: var(--shadow-md); cursor: zoom-in; transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); }
.sheet img { width: 100%; height: 100%; object-fit: cover; }
.sheet .cap { position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(10,22,51,.82); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 8px; }
.sheet:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .sheet:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: var(--shadow-lg); } }
.sheet.locked { cursor: pointer; }
.sheet.locked img { filter: blur(6px) saturate(.6); transform: scale(1.08); }
.sheet.locked .lk { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: rgba(10,22,51,.55); color: #fff; padding: 18px; }
.sheet.locked .lk b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.sheet.locked .lk span { font-size: 13.5px; opacity: .85; }
.sheet.locked .lk svg { width: 26px; height: 26px; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 660px); max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgba(10,22,51,.75); backdrop-filter: blur(6px); }
.lb[open] .lbf { animation: lbin 260ms var(--ease-out); }
@keyframes lbin { from { opacity: 0; transform: scale(.96); } }
.lbf { position: relative; }
.lbf img { max-height: 86vh; width: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lb-x, .lb-n { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: transform 160ms var(--ease-out); }
.lb-x:active, .lb-n:active { transform: scale(.94); }
.lb-x { top: -16px; right: -16px; } .lb-n { top: 50%; margin-top: -23px; } .lb-p { left: -24px; } .lb-nx { right: -24px; }
.lb-x svg, .lb-n svg { width: 18px; height: 18px; }
.lb-c { position: absolute; left: 50%; bottom: -42px; transform: translateX(-50%); color: #fff; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
@media (max-width: 600px) { .lb-p { left: 6px; } .lb-nx { right: 6px; } .lb-x { right: 6px; top: 6px; } }

/* ---------- Pièges / erreurs ---------- */
.traps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .traps { grid-template-columns: 1fr; } }
.trap { background: var(--white); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.trap .n { font-family: var(--serif); font-size: 40px; color: var(--blue); line-height: 1; }
.trap h3 { font-size: 21px; margin-top: 14px; line-height: 1.25; }
.trap p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.trap.lock { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; }
.trap.lock ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.trap.lock li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.trap.lock li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--muted); }
.trap.lock .link { margin-top: auto; }

/* ---------- Outil ---------- */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 880px) { .tool { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks .cb { flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--navy); display: grid; place-items: center; transition: background-color 260ms ease, box-shadow 260ms ease; }
.ticks .cb svg { width: 15px; height: 15px; color: #fff; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ticks li.on .cb { background: var(--blue); box-shadow: none; }
.ticks li.on .cb svg { stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease-out) 80ms; }
.stack { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1 / 1.3; }
.stack img { position: absolute; width: 82%; border-radius: 6px; box-shadow: var(--shadow-lg); }
.stack img:first-child { left: 0; top: 6%; transform: rotate(-5deg); }
.stack img:last-child { right: 0; top: 0; transform: rotate(3deg); }

/* ---------- Cross-sell ---------- */
.cross { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--navy); color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform 360ms var(--ease-out); }
.cross::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -200px; background: radial-gradient(circle, rgba(27,77,255,.55), transparent 70%); }
.cross h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cross p { color: rgba(255,255,255,.78); margin: 10px 0 0; }
.cross .book { width: 130px; --ry: -14deg; }
.cross:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .cross:hover .btn .ar { transform: translateX(3px); } }
@media (max-width: 760px) { .cross { grid-template-columns: 1fr; } .cross .bs { justify-self: start; } }

/* ---------- Merci ---------- */
.thanks { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding-block: 40px 90px; }
.thanks-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .thanks-grid { grid-template-columns: 1fr; } .thanks-grid > .bs { order: -1; } }
.okb { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 28px; box-shadow: 0 16px 34px -14px rgba(27,77,255,.9); }
.okb svg { width: 32px; height: 32px; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .okb { animation: okin 520ms var(--ease-out) 120ms both; }
  .okb path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawok 480ms var(--ease-out) 460ms forwards; }
}
@keyframes okin { from { opacity: 0; transform: scale(.85); } }
@keyframes drawok { to { stroke-dashoffset: 0; } }
.next { margin-top: 36px; padding: 26px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); }
.next h2 { font-size: 24px; }
.next p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Légal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p { color: var(--ink-2); }
.todo { background: #fff1c9; padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.76); padding: 70px 0 34px; font-size: 15px; }
.fgrid2 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .fgrid2 { grid-template-columns: 1fr; } }
.site-footer .brand .mono { background: var(--blue); }
.site-footer .brand .who b { color: #fff; } .site-footer .brand .who span { color: rgba(255,255,255,.6); }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.fq { font-family: var(--serif); font-style: italic; font-size: 21px; color: #fff; margin-top: 20px; max-width: 340px; }
.fbot { margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- CTA mobile ---------- */
.mcta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; transform: translateY(calc(100% + 24px)); transition: transform 360ms var(--ease-drawer); }
.mcta .btn { width: 100%; justify-content: center; box-shadow: var(--shadow-lg); }
.mcta.show { transform: none; }
.menu-open .mcta { transform: translateY(calc(100% + 24px)); }
@media (max-width: 1020px) { .mcta { display: block; } }

/* ---------- Révélations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-r].in { opacity: 1; transform: none; }
  .js [data-r="arch"] { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); transform: none; opacity: 1; transition: clip-path 1100ms var(--ease-in-out); }
  .js [data-r="arch"].in { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .book { transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 120ms !important; }
}
