:root {
  --bg: #F2EDE3; --surface: #FAF7F1; --sand: #E2D7C3; --ink: #22251C; --ink-2: #5B5E4C; --ink-3: #8E8C79;
  --khaki: #5C6A37; --khaki-deep: #3A4324; --rose: #EFD8D1; --pep: #FF3D7F; --line: rgba(34, 37, 28, 0.1); --line-2: rgba(34, 37, 28, 0.16);
  --warn-bg: #F4E6D3; --warn-ink: #7A4F17;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: "Instrument Serif", "New York", Georgia, serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }

.btn, .pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--khaki-deep); color: #FAF7F1; font-weight: 600; transition: transform 0.15s ease, background 0.2s ease; white-space: nowrap; }
.btn { height: 54px; padding: 0 30px; font-size: 16.5px; }
.pill { height: 38px; padding: 0 17px; font-size: 14.5px; }
.btn:hover, .pill:hover { background: #2F3620; }
.btn:active, .pill:active { transform: scale(0.98); }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.beta { display: inline-block; padding: 0.32em 0.62em 0.3em; border-radius: 999px; font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; color: #FAF7F1; background: var(--khaki-deep); text-shadow: none; white-space: nowrap; }

/* En-tête : aucun fond ni filet, des mots posés sur la page */
.top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(var(--safe-t) + 18px) var(--gutter) 0; font-size: 15px; font-weight: 500; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; }
.brand img { border-radius: 8px; }
.links { display: flex; align-items: center; gap: 26px; }
.links > a, .has-menu > a, .word { opacity: 0.86; transition: opacity 0.15s ease; }
.links > a:hover, .has-menu > a:hover, .word:hover, [aria-current="page"] { opacity: 1; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-home .links { margin-left: 0; }
.has-menu { position: relative; }
.has-menu > a { display: block; padding: 8px 0; }
.menu { position: absolute; top: 100%; left: -18px; width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(250, 247, 241, 0.86); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 24px 60px rgba(34, 37, 28, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: 11px 13px; border-radius: 12px; }
.menu a:hover { background: rgba(34, 37, 28, 0.06); }
.menu b { display: block; font-weight: 600; font-size: 14.5px; }
.menu span { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; font-weight: 400; margin-top: 1px; }
.menu-open { display: none; margin-left: auto; border: 0; padding: 8px 0; background: none; color: inherit; font: inherit; cursor: pointer; }

.drawer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; background: rgba(34, 37, 28, 0); transition: background 0.24s ease; }
.drawer.on { background: rgba(34, 37, 28, 0.3); }
.drawer[hidden] { display: none; }
.drawer-sheet { width: 100%; max-height: 88%; display: flex; flex-direction: column; background: var(--bg); border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer.on .drawer-sheet { transform: none; }
.drawer-grab { flex: none; display: flex; justify-content: center; padding: 9px 0 7px; touch-action: none; }
.drawer-grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px calc(var(--safe-b) + 22px); display: flex; flex-direction: column; }
.drawer-main { font-family: var(--display); font-size: 28px; line-height: 1; padding: 11px 0; }
.drawer-sub { font-size: 15.5px; color: var(--ink-2); padding: 7px 0; }
.drawer-sub + .drawer-main { margin-top: 8px; }
.drawer .btn { width: 100%; margin-top: 10px; }
.drawer .btn:first-of-type { margin-top: 18px; }

/* Accueil : un seul écran, jamais de défilement */
html:has(.is-home), .is-home { height: 100%; overflow: hidden; }
.landing { position: fixed; inset: 0; overflow: hidden; background: #F2EDE3; }
#scene, .landing-map { position: absolute; inset: 0; pointer-events: none; }
.landing-map canvas { display: block; width: 100%; height: 100%; }
.landing-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(242, 237, 227, 0.78) 0%, rgba(242, 237, 227, 0.35) 22%, rgba(242, 237, 227, 0) 38%, rgba(242, 237, 227, 0) 70%, rgba(242, 237, 227, 0.55) 100%); }
.landing::after { content: ''; position: absolute; inset: 0; background: #F2EDE3; pointer-events: none; transition: opacity 0.9s ease; }
.landing.ready::after { opacity: 0; }
.landing-content { z-index: 3; }
.landing .top { z-index: 4; }
.landing-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: calc(var(--safe-t) + 9vh) 22px calc(var(--safe-b) + 18px); text-align: center; pointer-events: none; }
.landing-content a { pointer-events: auto; }
.landing-head { display: flex; flex-direction: column; align-items: center; }
.landing-logo { border-radius: 16px; box-shadow: 0 10px 30px rgba(34, 37, 28, 0.25); }
.landing-title { position: relative; font-family: var(--display); font-weight: 400; margin: 14px 0 0; line-height: 0.9; font-size: clamp(92px, 23vw, 196px); letter-spacing: -0.02em; color: #2F3620; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 40px rgba(34, 37, 28, 0.16); }
.landing-title .beta { position: absolute; left: 100%; top: 4px; margin-left: 0.05em; font-size: clamp(10.5px, 0.078em, 14px); }
.landing-title::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; pointer-events: none; text-shadow: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 48%, rgba(255, 220, 232, 0.9) 52%, transparent 62%); background-size: 250% 100%; background-position: 120% 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; animation: shine 2.1s ease-in-out 1.2s both; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.landing-sub { max-width: 440px; margin: 16px auto 0; font-family: var(--font); font-size: 16.5px; line-height: 1.5; font-weight: 500; letter-spacing: 0; color: var(--ink); text-shadow: 0 1px 12px rgba(242, 237, 227, 0.9); }
.landing-foot { width: 100%; max-width: 380px; }
.landing-cta { width: 100%; height: 56px; font-size: 17px; box-shadow: 0 14px 34px rgba(34, 37, 28, 0.28); }
.landing-note { font-size: 13px; font-weight: 500; color: var(--ink); margin: 12px 0 0; text-shadow: 0 0 10px rgba(242, 237, 227, 1), 0 1px 6px rgba(242, 237, 227, 0.95); }
.landing-words { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 18px); display: flex; justify-content: space-between; padding: 0 var(--gutter); font-size: 13px; color: var(--ink-2); pointer-events: none; }
.landing-words a { pointer-events: auto; text-shadow: 0 1px 8px rgba(242, 237, 227, 0.9); }
.landing-words a:hover { color: var(--ink); }
.landing-words div { display: flex; gap: 18px; }
@media (min-width: 961px) { .landing-content { padding-bottom: calc(var(--safe-b) + 54px); } }
@media (max-height: 700px) { .landing-content { padding-top: calc(var(--safe-t) + 8vh); } .landing-title { font-size: clamp(72px, 15vh, 130px); } .landing-logo { width: 44px; height: 44px; } }

@media (max-width: 960px) {
  .links, .actions { display: none; }
  .menu-open { display: block; }
  .landing-words { display: none; }
  .landing-content { padding-bottom: calc(var(--safe-b) + 4.5vh); }
}
@media (max-width: 560px) { .landing-title .beta { left: auto; right: 0; top: 5%; margin-left: 0; font-size: 9.5px; } }

/* Pages intérieures : la vallée en haut, puis le beige */
main { display: block; }
.display { font-size: clamp(52px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 640px; }
.hero { position: relative; margin-bottom: -1px; min-height: min(78vh, 720px); display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--safe-t) + 110px) var(--gutter) 100px; background: url(/img/vallee.webp) center 72% / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(242, 237, 227, 0.86) 0%, rgba(242, 237, 227, 0.62) 42%, rgba(242, 237, 227, 0.2) 72%, #F2EDE3 97%); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; }
.hero .lead { margin: 0; color: var(--ink); text-shadow: 0 1px 14px rgba(242, 237, 227, 0.9); }
.hero .btn { margin-top: 8px; box-shadow: 0 14px 34px rgba(34, 37, 28, 0.24); }
.page-top { padding-top: calc(var(--safe-t) + 130px); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: 780px; }
.band { padding-top: 90px; padding-bottom: 20px; }
.h2 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 28px; }

.rows { max-width: 1160px; margin: 0 auto; padding: 40px var(--gutter) 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding: clamp(44px, 7vw, 90px) 0; }
.row.flip .row-text { order: 2; }
.row.solo { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 48px) 0; }
.row h2 { font-size: clamp(36px, 4.6vw, 54px); }
.row p { color: var(--ink-2); font-size: 18.5px; line-height: 1.5; margin: 16px 0 0; }
.row a { color: var(--khaki); text-decoration: underline; }
.shot { margin: 0; display: flex; justify-content: center; }
.shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 640px; border-radius: 30px; box-shadow: 0 2px 4px rgba(34, 37, 28, 0.06), 0 30px 70px rgba(34, 37, 28, 0.18); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); padding-top: 30px; padding-bottom: 30px; }
.tile { display: block; padding: 30px 0; border-top: 1px solid var(--line); }
.tile h2 { font-size: 38px; transition: color 0.15s ease; }
.tile:hover h2 { color: var(--khaki); }
.tile p { color: var(--ink-2); margin: 8px 0 0; }

.closing { margin-top: 60px; padding: 110px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(to bottom, #F2EDE3 0%, rgba(242, 237, 227, 0.2) 45%, rgba(242, 237, 227, 0.75) 100%), url(/img/vallee.webp) center 60% / cover no-repeat; }
.closing h2 { font-size: clamp(42px, 6vw, 72px); }
.closing p { margin: 0 0 10px; color: var(--ink); }

.price { max-width: 620px; padding-top: 40px; padding-bottom: 70px; }
.price h2 { font-size: 40px; }
.price ul { list-style: none; margin: 18px 0 0; padding: 0; }
.price li { padding: 13px 0; border-top: 1px solid var(--line); }
.price p { color: var(--ink-2); margin-top: 22px; font-size: 15.5px; }

.faq { margin-top: 34px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 26px; line-height: 1.15; padding: 15px 28px 15px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 13px; font-family: var(--font); font-size: 22px; color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }
.faq a, .after a, .prose-lite a, .prose a { color: var(--khaki); text-decoration: underline; }
.after { margin-top: 26px; color: var(--ink-2); }
.big-mail { font-family: var(--display); font-size: clamp(32px, 6vw, 56px); margin: 24px 0; }
.big-mail a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.prose-lite h2 { font-size: 30px; margin: 36px 0 8px; }
.prose-lite p { color: var(--ink-2); margin: 10px 0 0; }
.prose-lite mark { background: var(--warn-bg); color: var(--warn-ink); padding: 0 4px; border-radius: 4px; }
.legal-doc h1 { font-family: var(--display); font-size: clamp(52px, 8vw, 84px); line-height: 1; margin: 0; }
.legal-doc h2 { font-size: 30px; margin: 36px 0 8px; }
.legal-doc p, .legal-doc ul { color: var(--ink-2); }
.legal-doc li + li { margin-top: 7px; }
.legal-doc b { color: var(--ink); font-weight: 600; }
.legal-lead { font-size: 19px; color: var(--ink) !important; }
.legal-date { font-size: 13.5px; color: var(--ink-3) !important; }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 8px; font-size: 15px; color: var(--ink-2); }
.filters a:hover, .filters [aria-current] { color: var(--ink); }
.filters [aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 44px; margin-top: 18px; padding-bottom: 60px; }
.post { display: block; padding: 26px 0; border-top: 1px solid var(--line); }
.post-cat { font-size: 13.5px; color: var(--khaki); font-weight: 500; }
.post h3 { font-size: 30px; margin: 8px 0 0; transition: color 0.15s ease; }
.post:hover h3 { color: var(--khaki); }
.post p { color: var(--ink-2); font-size: 15.5px; margin: 10px 0 0; }
.post-date { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.article { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.article-head { max-width: 800px; }
.article-head h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; margin-top: 16px; }
.article-head .lead { margin: 18px 0 0; }
.article-meta { color: var(--ink-3); font-size: 14.5px; margin: 14px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 60px; margin-top: 50px; }
.toc { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--ink-2); max-height: calc(100vh - 56px); overflow: auto; }
.toc b { font-weight: 600; color: var(--ink); }
.toc a:hover { color: var(--ink); }
.prose { font-size: 18.5px; line-height: 1.62; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(34px, 4vw, 42px); margin: 52px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 27px; margin: 34px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; color: #3C3F31; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose figure { margin: 34px 0; }
.prose figure img, .prose figure svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.prose figcaption { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }
.prose figure.phone { display: flex; flex-direction: column; align-items: center; }
.prose figure.phone img { width: min(320px, 100%); border-radius: 26px; box-shadow: 0 24px 60px rgba(34, 37, 28, 0.16); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.article-cta { margin-top: 60px; padding: 36px; border-radius: 26px; background: var(--khaki-deep); color: #FAF7F1; }
.article-cta h2 { margin: 0; font-size: 36px; }
.article-cta p { color: rgba(250, 247, 241, 0.8); margin: 10px 0 20px; }
.article-cta .btn { background: #FAF7F1; color: var(--ink); text-decoration: none; }

/* Pied de page */
.foot { background: var(--khaki-deep); color: #EDE7DA; padding: 70px var(--gutter) calc(var(--safe-b) + 34px); }
.foot-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { color: rgba(237, 231, 218, 0.72); font-size: 15px; max-width: 280px; margin: 14px 0 18px; }
.foot .pill { background: #FAF7F1; color: var(--ink); }
.foot h2 { font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.foot-in > div:not(.foot-brand) a { display: block; font-size: 14.5px; color: rgba(237, 231, 218, 0.72); padding: 4px 0; }
.foot-in > div:not(.foot-brand) a:hover { color: #FFF; }
.foot-note { max-width: 1160px; margin: 46px auto 0; font-size: 13.5px; color: rgba(237, 231, 218, 0.55); }

@media (max-width: 960px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .row.flip .row-text { order: 0; }
  .shot img { max-height: 560px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid, .posts { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; padding-bottom: 70px; }
  .page-top { padding-top: calc(var(--safe-t) + 96px); }
  .closing { padding: 80px var(--gutter); }
  .prose { font-size: 17.5px; }
  .article-cta { padding: 26px 22px; }
}
