/* Identité « Labo » : papier lavande, encre violette, serif éditoriale (mêmes polices et couleurs que l'app) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/instrument-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/instrument-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(polices/instrument-serif-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(polices/instrument-serif-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(polices/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(polices/instrument-serif-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f4fb;
  --surface: #ffffff;
  --surface2: #efecf6;
  --line: #e4e0ee;
  --ink: #1b1830;
  --muted: #6e6885;
  --accent: #5b3bef;
  --accent-texte: #5b3bef;
  --accent-clair: #b7a6ff;
  --accent-soft: #eeeafd;
  --sur-accent: #ffffff;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121f;
    --surface: #1d1a2a;
    --surface2: #262236;
    --line: #332e46;
    --ink: #eeeaf8;
    --muted: #a29bbb;
    --accent: #6d4df5;
    --accent-texte: #b7a6ff;
    --accent-clair: #b7a6ff;
    --accent-soft: #2c2550;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-texte); text-underline-offset: 3px; }
.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ic { flex-shrink: 0; }

/* En-tête */
header.barre { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 28px; line-height: 1; }
.marque img { width: 34px; height: 34px; }
nav.liens a { color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 24px; font-size: 15px; }
nav.liens a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding: 64px 0 80px; }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 82px); line-height: .98; letter-spacing: -0.015em; margin: 0 0 24px; }
.hero h1 em { color: var(--accent-texte); }
.hero p.sous { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 560px; }
.hero p.sous strong { color: var(--ink); font-weight: 600; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn.primaire { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.btn.primaire:hover { background: #4a2bd6; border-color: #4a2bd6; }
.btn small { display: block; font-weight: 400; font-size: 12.5px; opacity: .78; }
.autre { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.version { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.visuel { display: flex; justify-content: center; }
.visuel img { width: min(320px, 80%); border-radius: 22%; box-shadow: 0 30px 60px -20px rgb(59 63 217 / .45); animation: flotte 7s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Sections éditoriales : filets plutôt que boîtes */
section { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.entete-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 40px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h2 em { color: var(--accent-texte); }
.intro { color: var(--muted); margin: 0; max-width: 560px; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.fonction { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.fonction .ic { color: var(--accent-texte); width: 24px; height: 24px; }
.fonction h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 600; }
.fonction p { margin: 0; color: var(--muted); font-size: 15px; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: e; }
.etape { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.etape h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.etape h3 .ic { color: var(--accent-texte); }
.etape p { margin: 0; color: var(--muted); font-size: 15px; }
.etapes.numerotees .etape::before { counter-increment: e; content: counter(e); display: block; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent-texte); margin-bottom: 10px; }
.centre { margin: 0 0 40px; }

/* Questions */
.faq { max-width: 860px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--serif); font-size: 28px; line-height: .8; color: var(--accent-texte); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details ol { color: var(--muted); margin: 10px 0 0; }
details strong { color: var(--ink); font-weight: 600; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Pages de texte (confidentialité) */
.texte { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.texte h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.01em; margin: 24px 0 8px; }
.texte h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: 0; margin: 40px 0 8px; }
.texte p, .texte li { color: var(--ink); }
.texte .maj { color: var(--muted); margin-top: 0; }
.encart { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

@media (max-width: 920px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
  .entete-section { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  .conteneur { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 48px; }
  .hero .visuel { display: none; }
  .btn { width: 100%; }
  .grille, .etapes { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  nav.liens a { margin-left: 14px; font-size: 14px; }
  nav.liens a.optionnel { display: none; }
  table, thead, tbody, tr, th, td { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .visuel img { animation: none; } html { scroll-behavior: auto; } }

/* Champ à compléter avant la mise en ligne (mentions légales) */
.a-completer { background: #fff1c2; color: #6b4a00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .a-completer { background: #4a3a0e; color: #ffe08a; } }
.texte ol, .texte ul { padding-left: 22px; }
