/* ==========================================================================
   PROVENCE FAC — feuille de style de l'espace stagiaire
   Charte : sauge #6F9A68 · sauge profonde #3D6140 · noisette #B4836A · sable #D9AE55
   Titres : Bricolage Grotesque — Texte : Figtree
   ========================================================================== */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }

:root {
  --violet: #6F9A68;
  --violet-deep: #3D6140;   /* boutons et liens : contraste AA avec du blanc */
  --violet-dark: #586157;   /* texte secondaire */
  --ink: #2E352E;           /* texte courant */
  --ink-strong: #1B221C;    /* titres */
  --orange: #B4836A;
  --jaune: #D9AE55;

  --paper: #FFFFFF;
  --mist: #EEF3E9;
  --mist-2: #E1EADA;
  --line: #DCE2D3;
  --night: #1C231D;
  --night-2: #263026;

  --spectrum: linear-gradient(90deg, var(--violet) 0%, var(--orange) 64%, var(--jaune) 100%);

  --f-display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink-strong);
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 5.3rem); line-height: 1.02; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -.022em; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; font-weight: 500; }
:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--violet) 28%, #fff); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 136px); }
.section--mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.55; color: var(--violet-dark); max-width: 54ch; }
.section-head .lede { margin-top: 18px; }
.muted { color: var(--violet-dark); }
.fine { font-size: .85rem; color: var(--violet-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink-strong); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Barre de progression de lecture (navigateurs compatibles) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
    background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font: 500 1rem/1.1 var(--f-text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--violet-deep); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 26px -12px rgba(61,97,64,.75);
}
.btn--primary:hover { background: #2F4E32; transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--ink-strong); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); background: #fff; }
.btn--light { background: #fff; color: var(--ink-strong); }
.btn--light:hover { background: var(--mist); transform: translateY(-1px); }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--line-light:hover { border-color: #fff; }
.btn--small { min-height: 40px; padding: 9px 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  view-transition-name: site-header;
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(220,226,211,.8);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em;
  color: var(--ink-strong); text-decoration: none;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 15px; border-radius: 999px;
  color: var(--violet-dark); text-decoration: none; font-size: .96rem;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--mist); color: var(--ink-strong); }
.nav-links a[aria-current="page"] { color: var(--ink-strong); background: var(--mist-2); font-weight: 500; }
.nav-links .only-mobile { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink-strong); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(27,34,28,.35);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 1.05rem; }
  .nav-links .only-mobile { display: block; }
}

/* ---------- Héros de l'accueil : le faisceau ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 104px); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(560px circle at var(--mx, 78%) var(--my, 28%), rgba(111,154,104,.15), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}
.hero-stage { position: relative; --spot-x: 79%; min-height: clamp(400px, 44vw, 500px); }
.hero-copy { max-width: min(62%, 720px); padding-bottom: 84px; }
.hero-copy .lede { margin-top: 28px; }

.beam {
  position: absolute; left: var(--spot-x); top: calc(-1 * clamp(56px, 8vw, 100px)); bottom: 0;
  width: 2px; transform: translateX(-50%); pointer-events: none; z-index: 1;
}
.beam::before, .beam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(111,154,104,0) 0%, var(--violet) 55%, #fff 100%);
  transform-origin: 50% 0; transform: scaleY(0);
  animation: beam-down 1s cubic-bezier(.7,0,.2,1) .2s forwards;
}
.beam::after { left: -8px; right: -8px; filter: blur(9px); opacity: .75; }
@keyframes beam-down { to { transform: scaleY(1); } }

.spot {
  position: absolute; left: var(--spot-x); bottom: 0; z-index: 2;
  width: clamp(210px, 24vw, 300px); aspect-ratio: 1;
  transform: translate(-50%, 50%); pointer-events: none;
}
.spot-halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,154,104,.42) 0%, rgba(180,131,106,.16) 42%, rgba(217,174,85,0) 70%);
  opacity: 0; animation: fade-in .9s ease 1.05s forwards;
}
.spot-core {
  position: absolute; inset: 41%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, #CFE0C8 40%, var(--violet) 62%, rgba(111,154,104,0) 76%);
  box-shadow: 0 0 40px 8px rgba(111,154,104,.55);
  transform: scale(0); animation: bloom .6s var(--ease) 1.05s forwards;
}
.spot-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spot-rings circle { fill: none; stroke-width: .45; transform-origin: 50% 50%; transform-box: fill-box; opacity: 0; animation: ring .9s var(--ease) forwards; }
.spot-rings circle:nth-child(1) { stroke: var(--violet); animation-delay: 1.15s; }
.spot-rings circle:nth-child(2) { stroke: var(--orange); animation-delay: 1.25s; }
.spot-rings circle:nth-child(3) { stroke: var(--jaune); animation-delay: 1.35s; }
@keyframes bloom { to { transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ring { from { opacity: 0; transform: scale(.5); } to { opacity: .75; transform: scale(1); } }

.rays { display: block; width: 100%; height: clamp(72px, 9vw, 120px); overflow: visible; }
.rays path {
  fill: none; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: draw .8s var(--ease) forwards;
}
.rays path:nth-child(1) { stroke: var(--violet); animation-delay: 1.4s; }
.rays path:nth-child(2) { stroke: var(--orange); animation-delay: 1.5s; }
.rays path:nth-child(3) { stroke: var(--jaune); animation-delay: 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Les trois offres, comme trois couleurs du spectre */
.bands { display: flex; gap: 14px; }
.band {
  --c: var(--violet);
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 236px; padding: 30px 26px 24px;
  border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(255,255,255,.82);
  color: var(--ink); text-decoration: none;
  transition: flex-grow .55s var(--ease), border-color .3s, box-shadow .4s, background-color .3s;
}
.band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.band--orange { --c: var(--orange); }
.band--jaune { --c: var(--jaune); }
.band-icon { width: 40px; height: 40px; color: var(--c); }
.band-title { font-family: var(--f-display); font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.12; color: var(--ink-strong); }
.band-for { color: var(--violet-dark); font-size: .96rem; max-width: 36ch; }
.band-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--violet-deep); }
.band-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .bands:has(.band:hover) .band:not(:hover) { background: rgba(255,255,255,.6); }
  .band:hover { flex-grow: 1.65; border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: #fff;
    box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--c) 85%, transparent); }
  .band:hover .band-go svg { transform: translateX(4px); }
}
.band:focus-visible { outline-offset: 4px; }

@media (max-width: 820px) {
  .hero-stage { --spot-x: calc(100% - 18px); min-height: 0; }
  .hero-copy { max-width: calc(100% - 44px); padding-bottom: 72px; }
  .spot { width: 128px; }
  .rays { display: none; }
  .bands { flex-direction: column; margin-top: 56px; }
  .band { flex: none; min-height: 0; }
}

/* ---------- Pourquoi ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.why-grid h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.why-grid h2 + p { margin-top: 22px; }
.facts { margin: 0; display: grid; }
.facts div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 18px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink-strong); }
.facts dd { margin: 0; color: var(--violet-dark); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Blocs d'offre ---------- */
.feature { --c: var(--violet); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature--flip > :first-child { order: 2; }
.feature + .feature { margin-top: clamp(96px, 11vw, 150px); }
.feature-copy h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--c); margin-bottom: 26px;
}
.feature-copy .lede { margin-top: 18px; }
.feature-visual { margin: 0; display: grid; place-items: center; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; max-width: 52ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 2px; border-radius: 2px; background: var(--c, var(--violet)); box-shadow: 0 0 8px var(--c, var(--violet)); }
@media (max-width: 900px) {
  .dash { --ry: 0deg; --rx: 0deg; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip > :first-child { order: 0; }
}

/* ---------- Scène sombre (Stream Deck) ---------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #E6ECE1;
  padding-block: clamp(88px, 11vw, 140px);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(640px circle at 22% 38%, rgba(111,154,104,.32), transparent 62%),
    radial-gradient(520px circle at 85% 90%, rgba(180,131,106,.16), transparent 64%);
}
.stage h2, .stage h3 { color: #fff; }
.stage .lede, .stage .muted { color: #C4D0BE; }
.stage a:not(.btn) { color: #CFE0C8; }
.stage .feature { --c: var(--orange); }

/* ---------- Le Stream Deck ---------- */
.deck-wrap { display: grid; justify-items: center; gap: 18px; }
.deck {
  --k: clamp(46px, 12.6vw, 80px);
  padding: calc(var(--k) * .26); border-radius: calc(var(--k) * .34);
  background: linear-gradient(165deg, #263026 0%, #141A15 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(255,255,255,.05), 0 50px 90px -34px rgba(0,0,0,.7), 0 0 80px -20px rgba(111,154,104,.45);
}
.deck-grid { display: grid; grid-template-columns: repeat(5, var(--k)); gap: calc(var(--k) * .17); }
.key {
  appearance: none; border: 0; margin: 0; padding: 4px; position: relative; overflow: hidden;
  width: var(--k); height: var(--k); border-radius: calc(var(--k) * .19);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--k) * .03);
  background: linear-gradient(170deg, #1C231D, #0B0F0B); color: #fff; cursor: pointer; text-align: center;
  font: 500 calc(var(--k) * .135)/1.1 var(--f-text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 3px 0 #0B0F0B;
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { filter: brightness(1.12); }
.key:active, .key.is-pressed { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 1px 0 #0B0F0B; }
.key:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.key svg { width: calc(var(--k) * .36); height: calc(var(--k) * .36); flex: none; }
.key .k-s { font-size: calc(var(--k) * .118); opacity: .74; font-weight: 400; white-space: nowrap; }
.key .k-b { font-size: calc(var(--k) * .19); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.key--violet { background: linear-gradient(165deg, #8DB385, #3D6140); }
.key--orange { background: linear-gradient(165deg, #C99A80, #9C6A50); }
.key--jaune { background: linear-gradient(165deg, #E9CF94, #C99A3E); color: #3A2709; }
.key--line { box-shadow: inset 0 0 0 2px var(--violet), 0 3px 0 #0B0F0B; }
.key.is-running::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 7%; height: 3px; border-radius: 3px;
  background: var(--violet); box-shadow: 0 0 10px var(--violet);
}
.key.is-rec { background: linear-gradient(165deg, #C99A80, #9C6A50); }
.key.is-rec::before {
  content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 2px solid rgba(255,255,255,.85);
  animation: rec 1.1s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: .15; } }
.key.is-done { background: linear-gradient(165deg, #8DB385, #3D6140); }
.deck-caption { min-height: 3.2em; max-width: 46ch; text-align: center; font-size: .96rem; color: #C4D0BE; }
.deck-caption strong { color: #fff; font-weight: 500; }
.deck-hint { font-size: .85rem; color: #9DAD97; }
.key .k-m { font-size: calc(var(--k) * .118); opacity: .88; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-hero .deck { --k: clamp(46px, 7.4vw, 94px); }
.page-hero .deck-caption { color: var(--violet-dark); }
.page-hero .deck-caption strong { color: var(--ink-strong); }
.page-hero .deck-hint { color: var(--violet-dark); }

/* ---------- Tableau de bord (maquette) ---------- */
.dash {
  width: 100%; max-width: 580px;
  display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 26px);
  border-radius: 24px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 60px 100px -60px rgba(27,34,28,.55), 0 18px 40px -26px rgba(61,97,64,.35);
  transform: perspective(1400px) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform .6s var(--ease);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-title { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink-strong); line-height: 1.2; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--violet-dark); font-size: .8rem; white-space: nowrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 14px; background: var(--mist); min-width: 0; }
.kpi b { display: block; font: 500 clamp(1.2rem, 2.4vw, 1.6rem)/1.1 var(--f-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.3; color: var(--violet-dark); }
.dash-chart { border-radius: 14px; background: linear-gradient(180deg, #fff, var(--mist)); padding: 8px 4px 0; }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-chart .area { transition: d .6s var(--ease); }
.dash-chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: d .6s var(--ease), stroke .3s; }
.dash-chart .grid { stroke: var(--line); stroke-width: 1; }
.dash-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash-rows-title { font-size: .82rem; color: var(--violet-dark); }
.dash-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: .88rem; }
.dash-row em { font-style: normal; color: var(--violet-dark); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--mist-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--c, var(--violet)); border-radius: inherit; transition: width .6s var(--ease), background-color .3s; }
.dash-note { font-size: .8rem; color: var(--violet-dark); text-align: center; margin-top: 14px; }

/* ---------- Coupe de peau (formations) ---------- */
.skin { width: 100%; max-width: 520px; height: auto; display: block; }
.skin text { font-family: var(--f-text); }
.skin .wl-label { font-size: 15px; font-weight: 600; fill: var(--ink-strong); }
.skin .wl-name { font-size: 12px; fill: var(--violet-dark); }
.skin .layer-label { font-size: 12px; fill: var(--violet-dark); }
.skin .wl { transition: opacity .4s var(--ease); }
.skin.has-active .wl:not(.is-active) { opacity: .2; }
.wl-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.wl-btn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 500 .92rem var(--f-text); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.wl-btn i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.wl-btn:hover { border-color: var(--c); }
.wl-btn[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.wl-caption { margin-top: 14px; min-height: 4.8em; max-width: 50ch; text-align: center; color: var(--violet-dark); font-size: .96rem; }
.wl-caption strong { color: var(--ink-strong); font-weight: 500; }

/* ---------- Héros des sous-pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(44px, 6vw, 84px) 0 clamp(72px, 9vw, 120px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.crumbs { margin: 0 0 26px; padding: 0; list-style: none; display: flex; gap: 8px; font-size: .9rem; color: var(--violet-dark); }
.crumbs a { color: var(--violet-dark); text-decoration: none; }
.crumbs a:hover { color: var(--violet-deep); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
.page-rule { display: block; width: 120px; height: 3px; margin: 28px 0 0; border-radius: 3px; background: var(--spectrum); transform-origin: 0 50%; animation: rule 1s var(--ease) .15s both; }
@keyframes rule { from { transform: scaleX(0); } }
.page-hero .lede { margin-top: 26px; }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Onglets ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.seg button {
  appearance: none; border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; background: transparent;
  font: 500 .96rem var(--f-text); color: var(--violet-dark); transition: background-color .25s, color .25s;
}
.seg button:hover { color: var(--ink-strong); }
.seg button[aria-selected="true"] { background: var(--violet-deep); color: #fff; }
.tab-panel { margin-top: 40px; }
.tab-panel[hidden] { display: none; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.col h3 { font-size: 1.25rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.col p + p { margin-top: 10px; }
.col .ticks { margin-top: 0; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; } }

/* ---------- Étapes (séquences réelles) ---------- */
.steps { --n: 6; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 20px; right: calc((100% - (var(--n) - 1) * 22px) / var(--n) - 21px); top: 20px; height: 2px; background: var(--spectrum); opacity: .55; }
.step { --c: var(--violet); position: relative; padding-top: 62px; counter-increment: step; }
.step:nth-child(3n+2) { --c: var(--orange); }
.step:nth-child(3n) { --c: var(--jaune); }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--c); color: var(--ink-strong);
  font: 500 1.05rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--paper);
}
.section--mist .step::before { box-shadow: 0 0 0 6px var(--mist); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--violet-dark); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 20px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--violet), var(--orange) 64%, var(--jaune)); }
  .step { padding: 0 0 30px 68px; }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- Grilles d'informations ---------- */
.info-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.info-grid div { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.info-grid dt { font-size: .9rem; color: var(--violet-dark); margin-bottom: 6px; }
.info-grid dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; color: var(--ink-strong); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Liste d'actions (plugins) ---------- */
.actions-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.actions-list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.actions-list .key { --k: 64px; cursor: default; pointer-events: none; }
.actions-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.actions-list p { color: var(--violet-dark); font-size: .98rem; }
@media (max-width: 860px) { .actions-list { grid-template-columns: 1fr; } }

/* ---------- Démonstration de dictée ---------- */
.dictee { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; margin-top: 8px; }
.dictee-col { padding: 26px; border-radius: var(--r-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.dictee-col h3 { font-size: 1.1rem; margin-bottom: 14px; }
.dictee-raw { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.6; color: #E6ECE1; font-style: italic; }
.dictee-mid { display: grid; place-items: center; }
.dictee-out { display: grid; gap: 10px; min-height: 12em; }
.dictee-out .placeholder { color: #9DAD97; font-size: .95rem; }
.dictee-out dl { margin: 0; display: grid; gap: 10px; }
.dictee-out dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; opacity: 0; transform: translateY(6px); animation: line-in .45s var(--ease) forwards; }
.dictee-out dt { color: #D9AE55; font-size: .9rem; }
.dictee-out dd { margin: 0; color: #fff; font-size: .98rem; }
@keyframes line-in { to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .dictee { grid-template-columns: 1fr; }
  .dictee-out dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Duo de colonnes (dashboards) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.duo-col { --c: var(--violet); }
.duo-col + .duo-col { --c: var(--orange); }
.duo-col > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; margin-bottom: 8px; }
.duo-col > h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.duo-col > p { color: var(--violet-dark); margin-bottom: 18px; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.item-list b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--ink-strong); margin-bottom: 4px; }
.item-list span { color: var(--violet-dark); font-size: .98rem; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.principle h3 { font-size: 1.35rem; margin: 18px 0 8px; }
.principle p { color: var(--violet-dark); }
.principle svg { width: 44px; height: 44px; color: var(--violet-deep); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative;
  font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; color: var(--ink-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--violet-deep); border-bottom: 2px solid var(--violet-deep);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 26px; max-width: 70ch; color: var(--violet-dark); }
.faq details > div p + p { margin-top: 10px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Appel final ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 11vw, 140px); background: var(--mist); }
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,154,104,.22), rgba(180,131,106,.08) 45%, transparent 68%);
}
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.cta .actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #C4D0BE; padding: 72px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 16px; max-width: 40ch; }
.footer-col h2 { font-family: var(--f-text); font-size: .9rem; font-weight: 500; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C4D0BE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9DAD97; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dash { transform: none; }
}

