/* The notebook pages share the app’s warm paper and ink palette. */
:root {
  --paper: #faf8f3;
  --ink: #282922;
  --muted: #5e6055;
  --rule: #d9d7cd;
  --surface: #efece2;
  --mark: #983e30;
  --cover: #9fae9c;
  --cover-edge: #899985;
  --sheet: #e8e3d2;
  --pencil: #934e37;
  --device: #33332e;
  --key: #fffdf5;
}
:root[data-theme="dark"] {
  --paper: #20221e; --ink: #eeece0; --muted: #b8bcaf; --rule: #484c42; --surface: #282c25;
  --mark: #f1a28c; --cover: #485b4b; --cover-edge: #354938; --sheet: #777a66; --pencil: #a66e58;
  --device: #393c35; --key: #252820;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #20221e; --ink: #eeece0; --muted: #b8bcaf; --rule: #484c42; --surface: #282c25;
    --mark: #f1a28c; --cover: #485b4b; --cover-edge: #354938; --sheet: #777a66; --pencil: #a66e58;
    --device: #393c35; --key: #252820;
  }
}
body {
  --fond: var(--paper); --texte: var(--ink); --discret: var(--muted);
  --accent: var(--mark); --trait: var(--rule); --doux: var(--surface);
  font-family: system-ui, sans-serif;
}
.cadre { max-width: 1264px; padding-inline: clamp(20px, 4.6vw, 72px); }
.haut .cadre { gap: 18px; min-height: 76px; }
.marque { letter-spacing: -.045em; font: 700 24px/1 Georgia, serif; }
.marque img { border-radius: 22%; }
.top-links { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.top-links a, .langue, .bas a { text-decoration: none; color: var(--muted); font-size: .88rem; }
.top-links a:hover, .bas a:hover { text-decoration: underline; color: var(--ink); }
.top-links + .langue { margin-left: 8px; padding-left: 24px; border-left: 1px solid var(--rule); }
.theme { width: 36px; height: 36px; }
.skip { position: absolute; top: .5em; left: .5em; z-index: 5; padding: 8px; background: var(--paper); color: var(--ink); }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.hero { padding-block: 16px 18px; }
.hero-copy { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 38px); padding-block: 3px 14px; }
.hero-intro { min-width: 0; }
.details h2, .float-copy h2, .privacy-note h2, .legal h1 {
  font: 400 clamp(3.2rem, 6vw, 5.5rem)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em; text-wrap: balance; margin: 0;
}
.hero .titre-logo { width: fit-content; max-width: 100%; margin: 0; }
.hero .titre-logo .logo { width: auto; height: clamp(54px, 8vh, 86px); margin: 0; }
.hero-tagline { margin: 0; font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 Georgia, serif; letter-spacing: -.04em; }
.hero-tagline em { color: var(--mark); font-weight: inherit; }
.lead, .float-copy p, .privacy-note p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.62; max-width: 41ch; }
.hero-intro .lead { margin: 4px 0 0; max-width: none; font-size: .93rem; }
.expand-demo { display: inline-flex; align-items: center; gap: .45em; margin-left: auto; color: var(--ink); font-size: .92rem; font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.expand-icon { position: relative; width: .62em; height: .62em; border-top: 1.5px solid; border-right: 1.5px solid; }
.expand-icon::after { content: ""; position: absolute; inset: -1px 0 auto auto; width: .8em; border-top: 1.5px solid; transform-origin: right; transform: rotate(-45deg); }
.details .text-action { display: inline-block; margin-top: 9px; }

/* The middle device runs the simulator. The four surrounding images are real app captures. */
.showcase {
  --frame-height: clamp(360px, calc(100vh - 210px), 660px);
  --frame-height: clamp(360px, calc(100svh - 210px), 660px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
  padding: 10px clamp(14px, 4vw, 64px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: linear-gradient(125deg, color-mix(in srgb, var(--cover) 20%, var(--paper)), var(--surface));
  background-color: var(--surface);
}
.live-session { justify-self: center; width: 100%; max-width: 450px; min-width: 0; }
.live-app[hidden] { display: none; }
.live-app { display: block; width: 100%; height: var(--frame-height); border: 0; background: transparent; }
.examples { display: grid; gap: clamp(12px, 2.5vh, 26px); justify-items: center; min-width: 0; }
.example { margin: 0; width: min(100%, calc(var(--frame-height) * .38)); min-width: 0; }
.example-link { display: block; color: inherit; text-decoration: none; }
.example-link:hover .example-name { text-decoration: underline; }
.example-crop.telephone {
  display: block;
  width: 100%; max-width: none; height: auto; aspect-ratio: 1.48; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--paper); overflow: hidden; box-shadow: 0 4px 10px #15171312;
}
.example-crop.telephone img { width: 100%; height: auto; transform: translateY(-23%); }
.example[data-kind="liste"] img { transform: translateY(-30%); }
.example[data-kind="pdf"] img { transform: translateY(-15%); }
.example[data-kind="memo"] img { transform: translateY(-14%); }
.example-dialog { width: fit-content; max-width: 94vw; max-height: 94vh; margin: auto; padding: 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.example-dialog::backdrop { background: rgb(15 16 13 / .66); }
.sample-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; }
.sample-heading button { min-height: 36px; background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding-inline: 12px; color: var(--ink); font: inherit; cursor: pointer; }
.sample-image.telephone { border: 0; border-radius: 6px; box-shadow: none; height: min(76svh, 750px); width: auto; max-width: 82vw; aspect-ratio: 540/1171; }
.sample-image.telephone img { object-fit: contain; }

.example-name { display: block; margin: 6px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600; line-height: 1.25; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: baseline; color: var(--muted); font-size: .83rem; }
.specs::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 10px; background: var(--rule); }
.specs span + span { margin-left: 17px; padding-left: 17px; border-left: 1px solid var(--rule); }
.details, .privacy-note { display: grid; grid-template-columns: .78fr 1.4fr; gap: 48px; padding-block: clamp(62px, 7vw, 108px); }
.details h2, .float-copy h2, .privacy-note h2 { font-size: clamp(2.35rem, 4vw, 3.7rem); line-height: 1.06; letter-spacing: -.05em; }
.details ul { list-style: none; padding: 0; margin: 0; }
.details li { border-top: 1px solid var(--rule); display: flex; gap: 20px; padding: 21px 0; }
.details li:first-child { border-top: 2px solid var(--ink); }
.details li:last-child { padding-bottom: 0; }
.feature-icon { width: 24px; height: 24px; flex: none; color: var(--mark); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-top: 2px; }
.details h3 { font: 600 1.08rem/1.45 system-ui, sans-serif; margin: 0 0 6px; }
.details p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 57ch; }
.floating { background: var(--surface); border-block: 1px solid var(--rule); }
.floating-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 36px; padding-block: clamp(42px, 5vw, 68px); }
.float-copy { justify-self: start; max-width: 460px; }
.text-action { color: var(--mark); text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 550; font-size: .96rem; }
.text-action span { margin-left: .45em; }
.privacy-note { align-items: start; }
.privacy-note p { margin-top: 0; max-width: 56ch; }
.bas { padding-block: 20px 36px; border-top: 1px solid var(--rule); }
.bas .cadre { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.bas .marque { margin-right: auto; color: var(--ink); font-size: 1.2rem; }
.legal h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); margin-bottom: .26em; }
@media (max-width: 760px) {
  .hero { padding-inline: 12px; padding-block: 10px; }
  .hero-copy { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; padding: 2px 3px 10px; }
  .hero .titre-logo { grid-row: span 2; }
  .hero .titre-logo .logo { height: clamp(44px, 8vw, 56px); }
  .hero-intro .lead { display: none; }
  .hero-tagline { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }
  .expand-demo { justify-self: start; margin: 0; font-size: .82rem; }
  .showcase {
    --frame-height: clamp(345px, calc(100vh - 178px), 650px);
    --frame-height: clamp(345px, calc(100svh - 178px), 650px);
    grid-template-columns: minmax(0, 1fr) minmax(0, min(75%, 410px)) minmax(0, 1fr);
    gap: 4px; padding: 7px 2px; border-radius: 8px;
  }
  .examples { gap: 24px; }
  .example { width: min(100%, 120px); }
  .example-crop.telephone { aspect-ratio: .63; border-radius: 4px; }
  .example-name { font-size: clamp(.56rem, 2.3vw, .72rem); margin-top: 4px; text-align: center; }
  .details, .privacy-note { grid-template-columns: 1fr; gap: 24px; }
  .details, .privacy-note { padding-block: 54px; }
  .top-links { display: none; }
  .top-links + .langue { margin-left: auto; padding-left: 0; border: 0; }
  .haut .cadre { min-height: 61px; gap: 12px; }
  .floating-layout { grid-template-columns: 1fr; gap: 25px; }
  .float-copy { max-width: 520px; }
  .bas .marque { flex-basis: 100%; }
}
@media (max-width: 370px) {
  .hero { padding-inline: 4px; }
  .showcase { grid-template-columns: minmax(0, 1fr) 78% minmax(0, 1fr); gap: 2px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .edition .haut .cadre { min-height: 42px; }
  .hero { padding-block: 4px; }
  .hero-copy { padding-block: 2px 5px; }
  .hero .titre-logo .logo { height: 39px; }
  .hero-intro .lead { display: none; }
  .showcase { --frame-height: max(170px, calc(100vh - 128px)); --frame-height: max(170px, calc(100svh - 128px)); padding-block: 3px; }
  .examples { gap: 6px; }
  .example { width: min(100%, calc(var(--frame-height) * .33)); }
}

/* Open the existing simulator in the top layer so its browsing contexts stay in place. */
.live-session {
  display: block;
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.demo-close { display: none; }
.live-session[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--paper);
  overflow: hidden;
}
.live-session[open] .demo-close {
  display: block;
  justify-self: end;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.live-session[open] .live-app { height: 100%; max-width: 680px; }
:root:has(.live-session[open]) { overflow: hidden; }
