/* Hopsy site, concept A "La carte qui se remplit". Brand "Terrasse". */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("font/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --apricot: #FF8552;
  --deep: #B5461A;
  --ink: #1F1712;
  --sand: #F7F3EF;
  --sand-2: #EFE8E1;
  --sun: #FFB429;
  --night: #15110E;
  --muted: #5E5048;
  --line: rgba(31, 23, 18, .13);
  --hh: 64px;
  --gut: 32px;
  --max: 1200px;
  --head: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (max-width: 759px) { :root { --hh: 56px; --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--sand); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--head); font-weight: 750; letter-spacing: -.014em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
.w { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--sand); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ header */
.hd { position: sticky; top: 0; z-index: 20; height: var(--hh); background: var(--sand); border-bottom: 1px solid var(--line); }
.hd .w { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; margin-left: -8px; padding: 4px 0; flex: none; }
.logo img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 560; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--sand-2); }
.nav a.on, .nav a[aria-current="page"] { color: var(--deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .n-wide, .nav .n-full { display: none; }
.nav .hbtn { margin-left: 10px; }
@media (min-width: 760px) { .nav .n-wide { display: inline-flex; } }
@media (min-width: 1100px) { .nav .n-full { display: inline-flex; } .nav .n-short { display: none; } }
@media (max-width: 759px) { .logo img { height: 40px; } .nav a { padding: 0 11px; font-size: 16px; } }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; background: var(--apricot); color: var(--ink); font: 650 17px/1 var(--body); text-decoration: none; transition: transform .15s ease-out, background-color .15s ease-out; }
.btn:hover { background: #FF9466; }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn.idle { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); cursor: default; }
.btn.idle:active { transform: none; }
.price-line { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

/* ------------------------------------------------------------ kicker with the logo trail */
.kick { display: flex; align-items: center; gap: 10px; font: 650 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--deep); margin-bottom: 20px; }
.trail { display: inline-flex; align-items: flex-end; gap: 4px; }
.trail i { display: block; border-radius: 50%; background: var(--apricot); }
.trail i:nth-child(1) { width: 4px; height: 4px; margin-bottom: 1px; }
.trail i:nth-child(2) { width: 5px; height: 5px; margin-bottom: 4px; }
.trail i:nth-child(3) { width: 6px; height: 6px; margin-bottom: 8px; }
.kick .mk { width: 16px; height: 22px; flex: none; }

/* ------------------------------------------------------------ sections */
.sec { position: relative; min-height: calc(100svh - var(--hh)); display: grid; align-items: center; padding: 72px 0; scroll-margin-top: var(--hh); }
.sec h2 { font-size: clamp(36px, 4.6vw, 62px); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.cols.flip > :first-child { order: 2; }
.txt { max-width: 34rem; }
.txt > p { margin-top: 18px; font-size: 19px; color: var(--muted); }
.txt > p.strong { color: var(--ink); font-weight: 600; }
.sec-alt { background: var(--sand-2); }

/* the dotted trail that links the blocks (desktop) */
@media (min-width: 1100px) {
  .trailed::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(16px, calc(50% - var(--max) / 2 - 26px)); width: 6px; background: radial-gradient(circle at 3px 3px, var(--apricot) 2.2px, transparent 2.8px) 0 0 / 6px 18px repeat-y; opacity: .55; }
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: calc(100svh - var(--hh)); min-height: 540px; overflow: hidden; display: flex; }
.hero .w { position: relative; z-index: 2; display: flex; align-items: center; }
.hero-txt { max-width: 560px; }
.hero h1 { font-size: clamp(44px, min(5.6vw, 8.4svh), 80px); }
.hero .sub { margin-top: 22px; font-size: clamp(18px, 1.45vw, 21px); color: var(--muted); max-width: 31rem; }
.diff { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 640; font-size: 17px; }
.diff li { display: flex; align-items: center; gap: 8px; }
.diff svg { color: var(--deep); }

.map { position: absolute; inset: 0; --ms: 1.08; --cx: 62%; --cy: 50%; --px: 700; --py: 395; }
.map-img { position: absolute; max-width: none; width: calc(1440px * var(--ms)); height: calc(900px * var(--ms)); left: calc(var(--cx) - var(--px) * var(--ms) * 1px); top: calc(var(--cy) - var(--py) * var(--ms) * 1px); }
.hero .map { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 52%); mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 52%); }
.pin { position: absolute; left: calc(var(--cx) + (var(--x) - var(--px)) * var(--ms) * 1px); top: calc(var(--cy) + (var(--y) - var(--py)) * var(--ms) * 1px); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 10px; background: var(--apricot); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(31, 23, 18, .22); display: grid; place-items: center; color: var(--ink); font: 760 16px/1 var(--head); }
.pin svg { width: 19px; height: 19px; }
.me { position: absolute; left: calc(var(--cx) + (var(--x) - var(--px)) * var(--ms) * 1px); top: calc(var(--cy) + (var(--y) - var(--py)) * var(--ms) * 1px); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #0A84FF; border: 3px solid #fff; box-shadow: 0 0 0 14px rgba(10, 132, 255, .14), 0 2px 5px rgba(0, 0, 0, .2); }
.hero-phone { position: absolute; z-index: 3; right: max(var(--gut), calc(50% - var(--max) / 2)); top: 50%; transform: translateY(-50%); --pw: clamp(240px, 21vw, 300px); }
.hero-phone .cap { color: var(--ink); }

/* ------------------------------------------------------------ phone outline */
.phone { margin: 0; width: var(--pw, 300px); flex: none; }
.bezel { padding: calc(var(--pw, 300px) * .034); background: var(--ink); border-radius: calc(var(--pw, 300px) * .17); box-shadow: 0 40px 70px -40px rgba(31, 23, 18, .55); }
.screen { position: relative; aspect-ratio: 1170 / 2535; overflow: hidden; border-radius: calc(var(--pw, 300px) * .136); background: #000; }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .ov { position: absolute; height: auto; }
.cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.phone-wrap { display: flex; justify-content: center; }

/* ------------------------------------------------------------ how it works */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; font-size: 19px; }
.steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 10px; background: var(--apricot); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(31, 23, 18, .18); display: grid; place-items: center; font: 760 17px/1 var(--head); color: var(--ink); }
.steps b { display: block; font-weight: 650; }
.steps span { color: var(--muted); font-size: 17px; }

/* ------------------------------------------------------------ cities */
.panel { position: relative; height: 540px; border-radius: 28px; overflow: hidden; background: #ECE7E0; box-shadow: 0 30px 60px -40px rgba(31, 23, 18, .5); }
.panel .map { --ms: 1; --cx: 50%; --cy: 56%; --px: 615; --py: 535; }
.chips { position: absolute; z-index: 2; top: 18px; left: 18px; right: 0; display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 20px; background: #fff; font-weight: 600; font-size: 15.5px; box-shadow: 0 2px 6px rgba(31, 23, 18, .1); }
.chip em { font-style: normal; color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; }
.chip.on em { color: var(--apricot); }
.types { margin-top: 26px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0; font-size: 18px; }
.types li { display: inline-flex; align-items: center; }
.types li:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--apricot); font-weight: 800; }

/* ------------------------------------------------------------ accuracy list */
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 18px; }
.checks svg { margin-top: 3px; color: var(--deep); }
.checks b { font-weight: 650; }

/* ------------------------------------------------------------ privacy (night) */
.night { background: var(--night); color: var(--sand); }
.night .kick { color: var(--apricot); }
.night .txt > p { color: #CDBFB4; }
.night a { color: #FFAE8A; }
.flow { width: 100%; border-collapse: collapse; font-size: 17px; }
.flow caption { text-align: left; font: 700 22px/1.2 var(--head); padding-bottom: 14px; }
.flow th, .flow td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid rgba(247, 243, 239, .16); }
.flow th { font-weight: 600; width: 46%; padding-right: 24px; }
.flow td { color: #CDBFB4; }
.flow td b { color: var(--sand); font-weight: 650; display: block; }
.flow tr.out td b { color: var(--apricot); }
.promises { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 18px; }
.promises li { display: flex; gap: 10px; align-items: baseline; }
.promises li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); transform: translateY(-3px); }

/* ------------------------------------------------------------ price */
.price h2 .num { white-space: nowrap; }
.terms { list-style: none; padding: 0; margin: 30px 0 32px; border-top: 1px solid var(--line); }
.terms li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 16px; font-size: 17px; }
.terms b { font-weight: 650; }
.terms span { color: var(--muted); }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ faq + final call */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 14px 0; font-weight: 640; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--deep); transition: transform .2s ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); font-size: 17px; }
.more { margin-top: 22px; font-weight: 600; }
.final { margin-top: 96px; display: grid; justify-items: center; text-align: center; }
.final h2 { font-size: clamp(34px, 4.4vw, 58px); max-width: 15ch; }
.final .hopdots { width: 210px; height: 92px; margin-bottom: 18px; overflow: visible; }
.final .btn { margin-top: 30px; }

/* ------------------------------------------------------------ footer */
.ft { background: var(--ink); color: #D9CCC2; padding: 56px 0 40px; font-size: 15px; }
.ft a { color: #FFC2A6; }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.ft-top img { height: 48px; width: auto; margin-left: -10px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ft nav a { color: var(--sand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; font-weight: 560; }
.ft nav a:hover { background: rgba(255, 255, 255, .07); }
.ft-mid { margin-top: 24px; display: grid; gap: 6px; }
.ft-small { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(247, 243, 239, .14); display: grid; gap: 6px; font-size: 13px; color: #A89A8F; }

/* ------------------------------------------------------------ secondary pages */
.phead { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.phead h1 { font-size: clamp(40px, 5vw, 64px); }
.phead .lead { margin-top: 18px; max-width: 42rem; font-size: 19px; color: var(--muted); }
.phead .lead p + p { margin-top: 10px; }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--hh) + 32px); align-self: start; font-size: 15px; }
.toc .k { display: block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--deep); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { color: var(--ink); text-decoration: none; display: block; padding: 6px 0; line-height: 1.3; }
.toc a:hover { color: var(--deep); }
.ds { scroll-margin-top: calc(var(--hh) + 16px); padding-top: 8px; }
.ds + .ds { margin-top: 40px; }
.ds h2 { font-size: 28px; margin-bottom: 14px; }
.ds h3 { font-size: 20px; margin: 22px 0 8px; }
.ds p, .ds li { font-size: 17px; }
.ds p + p { margin-top: 12px; }
.ds ul, .ds ol { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.ds table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.ds th, .ds td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.ds th { font-weight: 650; }
.ds code { font-size: .92em; background: var(--sand-2); padding: 1px 5px; border-radius: 5px; }
mark.todo { background: var(--sun); color: var(--ink); padding: 1px 4px; border-radius: 4px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1179px) {
  .chip.near { display: none; }
  .hero-phone { display: none; }
  .hero .map { --cx: 70%; }
}
@media (max-width: 1099px) {
  .cols { gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 899px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero .w { flex: none; padding-top: clamp(20px, 4svh, 48px); align-items: flex-start; }
  .hero-txt { max-width: 640px; }
  .hero h1 { font-size: clamp(36px, 9.4vw, 64px); }
  .hero .sub { margin-top: 14px; font-size: 17px; }
  .diff { margin: 14px 0 20px; font-size: 16px; }
  .price-line { margin-top: 10px; }
  .hero .map { order: 2; position: relative; inset: auto; flex: 1; min-height: 150px; --ms: .62; --cx: 50%; --cy: 54%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%); }
  .cols, .cols.flip { grid-template-columns: 1fr; gap: 44px; }
  .cols.flip > :first-child { order: 0; }
  .txt { max-width: 640px; }
  .panel { height: 460px; }
}
@media (max-width: 759px) {
  body { font-size: 16.5px; }
  .sec { padding: 52px 0; }
  .sec h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .txt > p { font-size: 17.5px; }
  .hero .map { --ms: .46; }
  .pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 8px; border-width: 2px; font-size: 14px; }
  .pin svg { width: 16px; height: 16px; }
  .phone { --pw: min(270px, 72vw); }
  .panel { height: 400px; border-radius: 22px; margin: 0 calc(var(--gut) * -1 + 4px); }
  .panel .map { --ms: .82; }
  .chip { height: 36px; padding: 0 13px; font-size: 14.5px; }
  .panel .map { --cy: 50%; }
  .terms li { grid-template-columns: 1fr; gap: 4px; }
  .flow th { width: 44%; padding-right: 14px; }
  .flow { font-size: 16px; }
  .final { margin-top: 72px; }
  .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc { position: static; }
  .phead { padding: 44px 0 28px; }
  .ds h2 { font-size: 24px; }
  .ds table { font-size: 15px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .hero .sub { margin-top: 16px; }
  .diff { margin: 16px 0 22px; }
}

/* ------------------------------------------------------------ motion: one animation per block, played once.
   html.motion is set only when animations are allowed; without it the page is static and complete. */
@keyframes hop {
  0% { opacity: 0; transform: translateY(-22px) scale(.7); }
  55% { opacity: 1; transform: translateY(2px) scale(1.04); }
  78% { transform: translateY(-5px) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(-36px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.motion .hero[data-anim]:not(.in) .pin { opacity: 0; }
.motion .hero[data-anim].in .pin { animation: hop .5s cubic-bezier(.3, .7, .3, 1) both; animation-delay: calc(var(--i) * 150ms); }
.motion [data-anim]:not(.in) .a-rise { transform: translateY(102%); }
.motion [data-anim].in .a-rise { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.motion [data-anim]:not(.in) .a-fade { opacity: 0; }
.motion [data-anim].in .a-fade { animation: fade .4s ease-out both; }
.motion [data-anim]:not(.in) .a-slide { opacity: 0; }
.motion [data-anim].in .a-slide { animation: slide .5s cubic-bezier(.2, .8, .2, 1) both; }
.motion [data-anim]:not(.in) .a-arrive { opacity: 0; }
.motion [data-anim].in .a-arrive { animation: arrive .6s cubic-bezier(.2, .8, .2, 1) both; }
.motion [data-anim]:not(.in) .a-dot { opacity: 0; }
.motion [data-anim].in .a-dot { animation: dot .3s ease-out both; animation-delay: calc(var(--i) * 90ms); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
