/* DA « verre, forêt & terre » de l'app (apps/mobile/src/theme/tokens.ts, mode clair).
   Le site est en clair seulement, comme l'app (ADR 0001 du dépôt Bagnolino). */

@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url(/fonts/instrument-sans-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --canvas: #faf9f6; --surface: #ffffff; --sunken: #eef1ec;
  --text: #144243; --text-2: #144243a6; --text-3: #14424373;
  --border: #1442431f; --rail: #14424326;
  --brand: #0f6249; --brand-soft: #dcebdf; --terre: #ac4029; --on-brand: #eef6ef;
  --verre: #ffffff80; --filet: #ffffffcc;
  --ombre: 0 1px 2px #1442430f, 0 12px 40px -12px #14424338;
  --rayon: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--text);
  font: 17px/1.6 "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }

/* ── Le fond : du crème et des taches floues qui dérivent (FondTaches de l'app) ── */
.taches { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.taches i {
  position: absolute; width: var(--d); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, transparent 100%);
  opacity: .5; animation: derive var(--t) ease-in-out infinite alternate;
}
.taches i:nth-child(1) { --c: #b2d9b8; --d: 70vmax; left: -20vmax; top: -25vmax; --t: 26s; }
.taches i:nth-child(2) { --c: #d0b583; --d: 60vmax; right: -22vmax; top: -18vmax; --t: 31s; animation-delay: -8s; }
.taches i:nth-child(3) { --c: #76a57f; --d: 45vmax; left: 30vw; top: 20vh; --t: 23s; animation-delay: -4s; opacity: .28; }
.taches i:nth-child(4) { --c: #b2d9b8; --d: 65vmax; left: -25vmax; bottom: -30vmax; --t: 29s; animation-delay: -12s; }
.taches i:nth-child(5) { --c: #d0b583; --d: 60vmax; right: -20vmax; bottom: -25vmax; --t: 34s; animation-delay: -3s; }
@keyframes derive {
  from { transform: translate(0, 0); }
  to { transform: translate(6vmax, 4vmax); }
}
@media (prefers-reduced-motion: reduce) {
  .taches i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Le verre ── */
.verre {
  background: var(--verre);
  -webkit-backdrop-filter: blur(30px) saturate(1.3); backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--filet), var(--ombre);
  border-radius: var(--rayon);
}

/* ── En-tête ── */
.entete {
  position: sticky; top: 12px; z-index: 10;
  max-width: 1080px; margin: 12px auto 0; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 14px;
  border-radius: 999px;
}
.marque { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.marque i { width: 22px; height: 22px; background: url(/img/marque.svg) center / contain no-repeat; }
.entete nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.entete nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.entete nav a:hover, .entete nav a[aria-current] { color: var(--text); background: #ffffff99; }

/* ── Boutons ── */
.bouton {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: 17px;
  box-shadow: 0 0 0 1px #ffffffc4, 0 10px 32px -6px #0f624966;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #ffffffc4, 0 14px 40px -6px #0f624980; }
.bouton svg { width: 20px; height: 20px; flex: none; }

/* ── Conteneurs ── */
.large { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 20px; }
.muted { color: var(--text-2); }

/* ── Accueil : le hero ── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; padding-top: 72px; }
.hero .accroche { padding-bottom: 96px; }
.hero .chapo { font-size: 20px; color: var(--text-2); max-width: 30em; margin: 0 0 32px; }
.hero .mention { font-size: 15px; color: var(--text-3); margin: 16px 0 0; }

/* L'écran de l'app, coupé en bas comme sur les captures App Store.
   L'ombre est portée par le conteneur : le masque de l'image la couperait. */
.ecran { margin: 0 auto; width: min(100%, 360px); filter: drop-shadow(0 24px 40px #14424333); }
.ecran img {
  width: 100%; height: var(--h, auto); object-fit: cover; object-position: top;
  border-radius: 14.4% 14.4% 0 0 / var(--rv, 7.8%) var(--rv, 7.8%) 0 0;
  outline: 1px solid var(--filet); outline-offset: -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* ── Accueil : les trois temps ── */
.temps { display: grid; gap: 24px; padding: 32px 0 48px; }
.temps > h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; text-align: center; }
.etape {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  padding: 48px 48px 0; overflow: hidden;
}
.etape:nth-of-type(even) .texte { order: 2; }
.etape .texte { padding-bottom: 56px; align-self: center; }
.etape .numero {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 18px;
}
.etape h3 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; }
.etape p { color: var(--text-2); margin: 0 0 12px; }
.etape .ecran { width: min(100%, 300px); }
.etape .ecran img { --h: 440px; --rv: 43px; }

/* ── Accueil : la promesse sur les données, et l'appel final ── */
.bandeau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 48px; }
.bandeau div { padding: 28px; }
.bandeau h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.bandeau p { margin: 0; color: var(--text-2); font-size: 16px; }
.final { text-align: center; padding: 56px 24px; margin-bottom: 48px; }
.final h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.final p { color: var(--text-2); margin: 0 0 28px; }

/* ── Pages de texte (confidentialité, support, mentions) ── */
.page { padding-top: 56px; padding-bottom: 48px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.page .date { color: var(--text-3); font-size: 15px; margin: 0 0 32px; }
.feuille { padding: 40px 48px; }
.feuille > :first-child { margin-top: 0; }
.feuille > :last-child { margin-bottom: 0; }
.feuille h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -.01em; }
.feuille p, .feuille li { margin: 0 0 14px; }
.feuille ul { padding-left: 22px; }
.intro { font-size: 19px; color: var(--text-2); margin: 0 0 28px; }

.sommaire { padding: 20px 28px; margin: 0 0 24px; }
.sommaire p { margin: 0 0 8px; }
.sommaire ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; }
.sommaire li { margin: 0 0 6px; break-inside: avoid; }
.sommaire a { text-decoration: none; font-weight: 600; font-size: 15px; }
.sommaire a:hover { text-decoration: underline; }

.note { background: var(--brand-soft); border-radius: 18px; padding: 18px 22px; margin: 24px 0; }
.note > :last-child { margin-bottom: 0; }
.attention { background: #ac40290f; box-shadow: inset 4px 0 0 var(--terre); }

.tableau { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-3); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Ce qui reste à remplir : visible exprès, à retirer une fois rempli. */
.a-remplir { background: #f5ecd6; color: #86662b; border-radius: 6px; padding: 1px 6px; font-weight: 600; }

/* Support */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; margin-bottom: 40px; }
.contact p { margin: 0; }
.contact .titre { font-weight: 700; font-size: 20px; }
.contact .muted { flex-basis: 100%; font-size: 15px; }
.faq h2 { font-size: 24px; margin: 0 0 16px; }
.faq details { margin-bottom: 12px; border-radius: 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 20px; line-height: 1;
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }

/* ── Pied de page ── */
.pied {
  max-width: 1048px; margin: 0 auto; padding: 32px 0 48px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border);
}
.pied a { color: inherit; text-decoration: none; font-weight: 600; }
.pied a:hover { color: var(--text); text-decoration: underline; }
.pied span { margin-left: auto; }

/* ── Téléphone ── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; text-align: center; }
  .hero .accroche { padding-bottom: 24px; }
  .hero .chapo { margin-left: auto; margin-right: auto; font-size: 18px; }
  .hero .ecran { width: min(100%, 300px); }
  .etape { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 0; text-align: center; }
  .etape:nth-of-type(even) .texte { order: 0; }
  .etape .texte { padding-bottom: 0; }
  .etape .ecran { width: min(100%, 280px); }
  .etape .ecran img { --h: 380px; --rv: 40px; }
  .bandeau { grid-template-columns: 1fr; }
  .feuille { padding: 28px 22px; }
  .sommaire ol { columns: 1; }
  .entete nav a { padding: 8px 10px; font-size: 14px; }
  .pied { margin: 0 16px; }
  .pied span { margin-left: 0; width: 100%; }
}
