@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.a97804dc9f.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.19143dca07.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0f2a47;
  --blue-800: #15406f;
  --blue-600: #1f6298;
  --blue-300: #9cc4e4;
  --blue-100: #deebf7;
  --blue-50: #f0f6fb;
  --paper: #f8fafd;
  --white: #fff;
  --gold: #e5b434;
  --gold-soft: #fbf3da;
  --muted: #475b72;
  --line: #d5e0eb;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 42 71 / 8%), 0 18px 40px -20px rgb(15 42 71 / 30%);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--blue-600); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 680; }
h3 { font-size: 1.4rem; font-weight: 650; }
h4 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--blue-600); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-800); }
code { font: 0.88em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--blue-50); border-radius: 5px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { display: none; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 15px; height: 15px; margin-left: 0.35em; vertical-align: -2px; }
.icon--lg { width: 34px; height: 34px; color: var(--blue-600); }
.wrap { width: min(1280px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow { display: flex; align-items: center; gap: 0.6em; margin-bottom: 1rem; color: var(--blue-600); font: 650 0.95rem/1.3 var(--body); letter-spacing: 0.02em; }
.eyebrow::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--gold); transform: rotate(45deg); }
.lead { color: var(--muted); font-size: 1.22rem; line-height: 1.55; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 50px; padding: 0.7em 1.15em; border: 1.5px solid transparent; border-radius: 10px; font: 650 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-800); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--blue-300); color: var(--blue-800); }
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue-600); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f0c653; color: var(--ink); }
.btn--small { min-height: 44px; padding: 0.5em 1em; font-size: 0.98rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(248 250 253 / 94%); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.2rem/1 var(--display); text-decoration: none; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav li a:not(.btn) { display: block; padding: 8px 2px; color: var(--ink); font-weight: 550; text-decoration: none; }
.site-nav li a:hover { color: var(--blue-600); text-decoration: underline; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--blue-300); border-radius: 10px; background: var(--white); color: var(--ink); font: 600 1rem var(--body); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px clamp(16px, 4vw, 40px) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgb(15 42 71 / 40%); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); background: linear-gradient(180deg, var(--white), var(--paper)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__text { display: grid; gap: 22px; }
.hero__text .eyebrow { margin-bottom: 0; }
.hero__lead { color: var(--muted); font-size: 1.25rem; line-height: 1.55; max-width: 34em; }
.hero__note { color: var(--muted); font-size: 1rem; }
.hero__shot { margin: 0; }
.hero__shot figcaption, .shots figcaption { margin-top: 12px; color: var(--muted); font-size: 0.98rem; line-height: 1.4; }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; }
.shot:hover { border-color: var(--blue-300); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: clamp(32px, 4vw, 56px); border-block: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 10px; padding: 16px 14px 16px 0; font-size: 1.02rem; font-weight: 550; line-height: 1.3; }
.facts .icon { color: var(--blue-600); }
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .facts li { padding-block: 10px; }
}

/* Sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .eyebrow { margin-bottom: 0; }

.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.why__grid h2 { margin-bottom: 18px; }
@media (max-width: 860px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }
.milestones { position: relative; display: grid; gap: 30px; padding-left: 34px; }
.milestones::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--blue-100); }
.milestones li { position: relative; }
.milestones li::before { content: ""; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--white); }
.milestones h3 { font-size: 1.28rem; margin-bottom: 6px; }
.milestones p { color: var(--muted); }

.spot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.spot--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot--flip .spot__text { order: 2; }
.spot__text { display: grid; gap: 14px; }
.spot__text p { color: var(--muted); }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; background: var(--blue-600); transform: rotate(45deg); }
.features__more { margin-top: clamp(40px, 6vw, 72px); margin-bottom: 28px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card { display: grid; align-content: start; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card .icon { color: var(--blue-600); }
.card p { color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
@media (max-width: 860px) {
  .spot, .spot--flip { grid-template-columns: minmax(0, 1fr); }
  .spot--flip .spot__text { order: 0; }
}

/* Méthodologie */
.method { background: var(--blue-50); }
.lifecycle { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; }
.phase { display: grid; align-content: start; gap: 8px; padding: 22px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.phase__num { font: 700 0.95rem var(--display); color: var(--blue-600); }
.phase h3 { font-size: 1.25rem; }
.phase p { color: var(--muted); font-size: 1.02rem; line-height: 1.45; }
.gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 92px; padding-inline: 6px; text-align: center; font-size: 0.86rem; line-height: 1.2; color: var(--muted); }
.gate strong { color: var(--ink); font: 700 1rem var(--display); }
.gate__mark { width: 22px; height: 22px; margin-bottom: 6px; background: var(--gold); transform: rotate(45deg); }
.lifecycle__band { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-top: 16px; padding: 16px 20px; background: var(--ink); color: var(--white); border-radius: var(--radius); line-height: 1.4; }
.lifecycle__band strong { font-family: var(--display); font-size: 1.1rem; }
.lifecycle__band span { color: #d7e4f2; flex: 1 1 22rem; }
.method__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 4vw, 48px); margin-block: clamp(40px, 5vw, 64px); }
.method__cols h3 { margin-bottom: 10px; }
.method__cols p { color: var(--muted); }
.notice { display: grid; gap: 10px; padding: 24px clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 6px var(--radius) var(--radius) 6px; }
.notice h3 { font-size: 1.2rem; }
@media (max-width: 960px) {
  .lifecycle { grid-template-columns: minmax(0, 1fr); }
  .gate { flex-direction: row; flex-wrap: wrap; width: auto; justify-content: flex-start; gap: 10px; padding: 14px 20px; text-align: left; font-size: 0.98rem; }
  .gate__mark { width: 14px; height: 14px; margin: 0 2px; }
}

/* Local */
.local { background: var(--white); }
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.ledger dt { display: flex; align-items: flex-start; gap: 12px; font: 650 1.15rem/1.3 var(--display); }
.ledger dt .icon { color: var(--blue-600); }
.ledger dd { margin: 0; color: var(--muted); }
.ledger dd strong { color: var(--ink); }
.limits { margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--gold-soft); border-radius: var(--radius); }
.limits h3 { margin-bottom: 14px; }
.limits ul { display: grid; gap: 10px; }
@media (max-width: 720px) { .ledger > div { grid-template-columns: minmax(0, 1fr); } }

/* Pour qui */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 36px clamp(24px, 4vw, 48px); }
.people .icon { width: 30px; height: 30px; color: var(--blue-600); margin-bottom: 12px; }
.people h3 { margin-bottom: 8px; font-size: 1.28rem; }
.people p { color: var(--muted); }

/* Galerie */
.gallery { background: var(--white); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 36px 24px; }
.shots figure { margin: 0; }
.shots figcaption strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; margin-bottom: 2px; }

/* Téléchargement */
.download { padding-block: clamp(64px, 8vw, 104px); background: var(--ink); color: var(--white); }
.download__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.download h2 { margin-bottom: 18px; }
.download .lead { color: #d7e4f2; margin-bottom: 28px; }
.download a:not(.btn) { color: #cfe3f6; }
.download a:not(.btn):hover { color: var(--white); }
.link-light { font-weight: 600; }
.install { padding: clamp(20px, 3vw, 32px); background: var(--white); color: var(--ink); border-radius: var(--radius); }
.install a:not(.btn), .install a:not(.btn):hover { color: var(--blue-600); }
.install h3 { margin-bottom: 14px; }
.install__facts { margin: 0 0 20px; }
.install__facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.install__facts dt { font-weight: 650; }
.install__facts dd { margin: 0; color: var(--muted); }
.install__label { margin-bottom: 8px; font-size: 1.1rem; }
.install__text { margin-bottom: 14px; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.install__text code { color: var(--ink); }
pre { margin: 0 0 16px; padding: 16px; background: var(--ink); color: #eaf2fa; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.command { position: relative; }
.command__copy, .command__copy:hover { position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 0.25em 0.8em; background: var(--white); color: var(--ink); }
.command__copy[hidden] { display: none; }
.command__copy:not([hidden]) + pre { padding-top: 52px; }
.install__warn { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 900px) { .download__grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); }
.faq__list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font: 620 1.15rem/1.3 var(--display); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.3em; margin-right: 4px; border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(45deg); transition: transform 0.15s; }
details[open] summary::after { transform: rotate(-135deg); }
details p { padding: 0 2px 20px; color: var(--muted); max-width: 44em; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* Pied de page */
.site-footer { padding-block: 48px; background: var(--white); border-top: 1px solid var(--line); font-size: 1.02rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer h2 { margin-bottom: 10px; font-size: 1.05rem; }
.site-footer li { padding-block: 5px; }
.brand--footer { margin-bottom: 12px; }
.site-footer__note { color: var(--muted); max-width: 34em; line-height: 1.5; }
.pwa-install { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; color: var(--muted); font-size: 0.98rem; line-height: 1.4; }
.pwa-install[hidden] { display: none; }
.pwa-install span { flex: 1 1 16rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Agrandissement et notification */
.lightbox { width: min(1240px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 12px; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.lightbox::backdrop { background: rgb(15 42 71 / 72%); }
.lightbox img { width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.lightbox__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; }
.lightbox__caption { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.update-toast { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.update-toast[hidden] { display: none; }

/* Pages simples */
.simple-page { display: grid; place-items: center; min-height: 100dvh; padding: 24px; text-align: center; }
.simple-page main { display: grid; justify-items: center; gap: 16px; max-width: 32rem; }
.simple-page p { color: var(--muted); }

/* Animations discrètes */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .hero__shot { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__shot { animation-delay: 0.1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .gate__mark { animation: settle 0.5s 0.1s both; }
  @keyframes settle { from { transform: rotate(45deg) scale(0.6); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .update-toast, .lightbox { display: none; }
}
