/* 01-tokens.css */
/* Design tokens — la seule source des couleurs, typos, espacements, rayons et ombres.
   Palette tirée de l'icône de Bokmo (Scripts/icone.py de l'app) : dégradé bleu, papier, or. */
:root {
  color-scheme: light dark;

  /* Marque (identique en clair et en sombre) */
  --brand-blue-top: #6c7ef0;      /* BLEU_HAUT de l'icône */
  --brand-blue-bottom: #2e3a9e;   /* BLEU_BAS */
  --brand-paper: #f7f3ea;         /* PAPIER : les lignes */
  --brand-gold: #f3bb58;          /* OR : l'alinéa, la ligne courte */
  --brand-gradient: linear-gradient(180deg, var(--brand-blue-top), var(--brand-blue-bottom));

  /* Couleurs (clair) */
  --color-bg: #fbf8f2;
  --color-surface: #fffdf9;
  --color-surface-alt: #f3eee3;
  --color-text: #1b1d3b;          /* encre */
  --color-muted: #5b5e78;
  --color-border: #e5ddcd;
  --color-primary: #4c5fe0;       /* AccentColor de l'app */
  --color-primary-hover: #3a4bc6;
  --color-primary-contrast: #ffffff;
  --color-primary-soft: #e8eafc;
  --color-accent: #f3bb58;
  --color-accent-ink: #8a5a0b;    /* or lisible sur papier */
  --color-dark: #15173a;
  --color-dark-2: #1f2461;
  --color-dark-text: #f5f1e8;
  --color-dark-muted: #b9bcdc;
  --color-ok: #1f7a4d;
  --color-error: #b3261e;

  /* Typographie : aucune police téléchargée. Iowan Old Style est la police de lecture
     d'Apple Livres, présente sur tous les Mac, iPhone et iPad ; Palatino ailleurs. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, Palatino, "Book Antiqua", Georgia, serif;
  --font-display: var(--font-serif);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --leading: 1.6;
  --leading-tight: 1.12;

  /* Échelle typographique fluide (mobile → desktop) */
  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.38vw, 1.38rem);
  --step-2: clamp(1.42rem, 1.27rem + 0.72vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.48rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.66rem + 2.2vw, 3.5rem);
  --step-5: clamp(2.55rem, 1.8rem + 3.6vw, 4.75rem);

  /* Espacements */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --space-3xl: clamp(5rem, 3.5rem + 6vw, 9rem);

  /* Formes */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --shadow-s: 0 1px 2px rgb(27 29 59 / 0.06), 0 1px 3px rgb(27 29 59 / 0.08);
  --shadow-m: 0 4px 12px rgb(27 29 59 / 0.07), 0 14px 36px rgb(27 29 59 / 0.09);
  --shadow-l: 0 24px 48px -12px rgb(21 23 58 / 0.28), 0 50px 100px -30px rgb(21 23 58 / 0.35);

  /* Mise en page */
  --container: 74rem;
  --container-narrow: 44rem;
  --gutter: clamp(1.1rem, 0.5rem + 2.5vw, 2rem);
  --header-height: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111330;
    --color-surface: #191c40;
    --color-surface-alt: #151839;
    --color-text: #f1ece2;
    --color-muted: #aeb1cf;
    --color-border: #2a2e5e;
    --color-primary: #7d8cf6;
    --color-primary-hover: #97a3f8;
    --color-primary-contrast: #0f1130;
    --color-primary-soft: #232862;
    --color-accent-ink: #f3bb58;
    --color-dark: #0b0c24;
    --color-dark-2: #1a1f58;
    --color-ok: #5fd39a;
    --color-error: #ff8a80;
    --shadow-s: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-m: 0 4px 12px rgb(0 0 0 / 0.25), 0 14px 36px rgb(0 0 0 / 0.3);
    --shadow-l: 0 24px 48px -12px rgb(0 0 0 / 0.5), 0 50px 100px -30px rgb(0 0 0 / 0.6);
  }
}

/* 02-base.css */
/* Base : reset léger et typographie. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, picture { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-family: var(--font-sans); font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: var(--step-0); font-weight: 650; }
h1 em, h2 em { font-style: italic; }

p, ul, ol, figure, blockquote, pre, dl, dd { margin: 0; }
p { text-wrap: pretty; }

a { color: var(--color-primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-hover); }

:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; border-radius: 2px; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: var(--radius-s); background: var(--color-surface-alt); }
kbd { padding: 0.05em 0.4em; border: 1px solid var(--color-border); border-bottom-width: 2px; border-radius: var(--radius-s); background: var(--color-surface); white-space: nowrap; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-l) 0; }

input, button, textarea, select { font: inherit; color: inherit; }

::selection { background: color-mix(in srgb, var(--brand-gold) 45%, transparent); color: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.jo-skip-link:focus { position: fixed !important; top: 0.5rem; left: 0.5rem; z-index: 100; width: auto; height: auto; padding: 0.6em 1em; clip: auto; clip-path: none; background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-m); box-shadow: var(--shadow-m); }

/* 03-layout.css */
/* Primitives de mise en page — à composer dans le HTML. */

/* Largeur de contenu centrée */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

/* Section verticale */
.section { padding-block: var(--space-2xl); }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-dark); color: var(--color-dark-text); }
.section--tight { padding-block: var(--space-xl); }
.section--flush-top { padding-top: 0; }

/* Pile verticale : espace régulier entre enfants */
.stack { display: flex; flex-direction: column; gap: var(--space-s); }
.stack--tight { gap: var(--space-2xs); }
.stack--loose { gap: var(--space-xl); }
.stack--xloose { gap: var(--space-2xl); }

/* Groupe horizontal qui passe à la ligne */
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
.cluster--between { justify-content: space-between; }
.cluster--tight { gap: var(--space-2xs); }

/* Grille responsive (colonnes qui se replient seules) */
.grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* Deux colonnes texte / visuel ; --reverse met le visuel à gauche sur grand écran */
.split { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-visual { grid-template-columns: 0.8fr 1.2fr; }
  .split--reverse > :first-child { order: 2; }
  .split--reverse.split--wide-visual { grid-template-columns: 1.2fr 0.8fr; }
}

/* Utilitaires */
.center { text-align: center; align-items: center; justify-content: center; }
.muted { color: var(--color-muted); }
.nowrap { white-space: nowrap; }
.jo-main { display: block; min-height: 60vh; }

/* 04-components.css */
/* Composants. Un bloc par composant ; les sections propres aux pages sont dans 06-sections.css. */

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-m); min-height: var(--header-height); }
.site-header__tools { display: flex; align-items: center; gap: var(--space-2xs); margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-text); text-decoration: none; }
.brand:hover { color: var(--color-text); }
.brand__mark { width: 2rem; height: 2rem; flex: none; border-radius: 0.5rem; box-shadow: 0 2px 6px rgb(46 58 158 / 0.3); }
.brand__name { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1; letter-spacing: -0.01em; }

.site-nav__list { display: flex; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: block; padding: 0.45rem 0.8rem; border-radius: var(--radius-full); color: var(--color-text); font-size: 0.95rem; font-weight: 550; text-decoration: none; }
.site-nav__list a:hover { background: var(--color-surface-alt); color: var(--color-text); }
.site-nav__list a[aria-current="page"],
.site-nav__list a[aria-current="true"] { background: var(--color-primary-soft); color: var(--color-primary); }

.nav-toggle { display: none; }

@media (min-width: 48rem) {
  .site-nav { margin-left: auto; }
  .site-header__tools { margin-left: 0; }
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    position: relative; display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background .2s;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

  .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: var(--space-s) var(--gutter) var(--space-m); background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-m); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 0.75rem 0.9rem; font-size: 1.05rem; }
}

/* --- Sélecteur de langue ([bokmo_langs]) --------------------------------- */
.lang-switch { position: relative; }
.lang-switch__toggle {
  display: inline-flex; align-items: center; gap: 0.35rem; height: 2.6rem; padding: 0 0.8rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface);
  font-size: 0.85rem; font-weight: 650; letter-spacing: 0.04em; cursor: pointer; list-style: none; user-select: none;
}
.lang-switch__toggle::-webkit-details-marker { display: none; }
.lang-switch__toggle:hover { border-color: var(--color-muted); }
.lang-switch__toggle .icon { width: 1.05rem; height: 1.05rem; opacity: 0.75; }
.lang-switch__menu {
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 60; min-width: 10.5rem; margin: 0; padding: 0.35rem; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); box-shadow: var(--shadow-m);
}
.lang-switch__menu a { display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-s); color: var(--color-text); text-decoration: none; }
.lang-switch__menu a:hover { background: var(--color-surface-alt); color: var(--color-text); }
.lang-switch__menu a[aria-current="true"] { color: var(--color-primary); font-weight: 650; }
.lang-switch__menu a[aria-current="true"]::after { content: " ✓"; }

/* --- Textes -------------------------------------------------------------- */
/* L'eyebrow porte la ligne dorée de l'icône : la « strate » courte. */
.eyebrow { display: inline-flex; align-items: center; gap: 0.65em; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.eyebrow::before { content: ""; width: 1.5em; height: 0.3em; flex: none; border-radius: 1em; background: var(--brand-gold); }
.center > .eyebrow, .eyebrow.center { justify-content: center; }
.lead { max-width: 62ch; font-size: var(--step-1); line-height: 1.5; color: var(--color-muted); }
.center .lead { margin-inline: auto; }
.meta { font-size: var(--step--1); color: var(--color-muted); }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 0.25em; }
.gold { color: var(--color-accent-ink); }

/* Liste à puces « strates » : un trait doré à la place du point */
.ticks { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 1.05rem; height: 0.28rem; border-radius: 1rem; background: var(--brand-gold); }
.ticks strong { font-weight: 650; }

/* --- Boutons et badges --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.85em 1.45em;
  border: 1px solid transparent; border-radius: var(--radius-full); font-weight: 650; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--color-primary) 70%, transparent); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-primary-contrast); }
.btn--ghost { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text); color: var(--color-text); }
.btn--light { background: var(--brand-paper); color: #1b1d3b; }
.btn--light:hover { background: #fff; color: #1b1d3b; }
.btn--outline-light { border-color: rgb(247 243 234 / 0.35); color: var(--brand-paper); }
.btn--outline-light:hover { border-color: var(--brand-paper); color: var(--brand-paper); }

/* « Bientôt sur l'App Store » : une annonce, pas un lien (le vrai badge Apple viendra à la sortie). */
.soon {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: var(--radius-full); background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: 0.95rem; font-weight: 600; color: var(--color-text);
}
.soon__dot { position: relative; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand-gold); }
.soon__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-gold); animation: soon-pulse 2.4s ease-out infinite; }
@keyframes soon-pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .soon__dot::after { animation: none; } }
.soon--on-dark { background: rgb(247 243 234 / 0.1); border-color: rgb(247 243 234 / 0.22); color: var(--brand-paper); }

.platforms { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: 0.92rem; color: var(--color-muted); }
.platforms > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.platforms .icon { width: 1.1rem; height: 1.1rem; }

/* Pastilles (genres, formats) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 0.4rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); font-size: 0.95rem; }
.center .chips, .chips.center { justify-content: center; }

/* --- Cartes et blocs ----------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: var(--space-m); }
.card__body p:last-child { color: var(--color-muted); }
.card__title a { color: var(--color-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }

.feature { display: flex; flex-direction: column; gap: 0.55rem; padding: var(--space-m); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l); }
.feature__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.35rem; border-radius: var(--radius-m); background: var(--color-primary-soft); color: var(--color-primary); }
.feature__icon .icon { width: 1.4rem; height: 1.4rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--color-muted); font-size: 0.97rem; }
.feature--plain { padding: 0; background: none; border: 0; }

/* --- Cadres d'appareils -------------------------------------------------- */
.device { position: relative; margin: 0; background: #0c0d18; box-shadow: var(--shadow-l); }
.device img { width: 100%; height: auto; }
.device--ipad { padding: 1.35%; border-radius: 3.6% / 4.8%; }
.device--ipad img, .device--ipad .device__placeholder { border-radius: 2.4% / 3.2%; }
.device--iphone { padding: 2.6%; border-radius: 15% / 7%; }
.device--iphone img, .device--iphone .device__placeholder { border-radius: 12.5% / 5.8%; }
/* Mac : une fenêtre seule. Ses coins sont transparents dans l'image : l'ombre suit la forme (drop-shadow), et un
   liseré clair la détache d'un fond sombre. */
.device--mac { padding: 0; background: none; box-shadow: none; filter: drop-shadow(0 0 0.5px rgb(21 23 58 / 0.35)) drop-shadow(0 22px 34px rgb(21 23 58 / 0.26)); }
.device__placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--color-surface-alt); color: var(--color-muted); font-size: var(--step--1); }
.device--iphone .device__placeholder { aspect-ratio: 1206 / 2622; }

/* iPad + iPhone superposés. Positionné, l'iPhone calcule son padding en % sur la largeur de .devices et non
   sur la sienne : 0,65 % × 4 redonne le cadre fin d'un iPhone seul (2,6 % de sa largeur). */
.devices { position: relative; padding-right: 9%; }
.devices .device--iphone { position: absolute; right: 0; bottom: -7%; width: 25%; padding: 0.65%; }
/* Mac + iPhone : la fenêtre est moins haute qu'un iPad, l'iPhone rétrécit pour ne pas la masquer. */
.devices:has(.device--mac) { padding-right: 6%; }
.devices:has(.device--mac) .device--iphone { bottom: -10%; width: 19%; padding: 0.5%; }
/* Sur téléphone, la fenêtre Mac n'est plus lisible : c'est l'iPhone qui grandit (cadre : 2,6 % de 26 %). */
@media (max-width: 40rem) {
  .devices:has(.device--mac) { padding-right: 4%; }
  .devices:has(.device--mac) .device--iphone { bottom: -18%; width: 27%; padding: 0.7%; }
}

/* --- Appel à l'action ---------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; display: grid; gap: var(--space-l); align-items: center;
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem); border-radius: var(--radius-xl); color: var(--brand-paper);
  background: radial-gradient(40rem 20rem at 110% -20%, rgb(108 126 240 / 0.55), transparent 70%), linear-gradient(160deg, var(--brand-blue-bottom), #1a1f5c 70%);
}
@media (min-width: 56rem) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { font-size: var(--step-3); }
.cta .lead { color: rgb(247 243 234 / 0.78); }
.cta .eyebrow { color: var(--brand-paper); }

/* --- Étapes numérotées --------------------------------------------------- */
.steps { display: grid; gap: var(--space-l); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; padding-left: 3.5rem; counter-increment: step; }
.steps__item::before {
  content: counter(step); position: absolute; top: -0.1rem; left: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-primary-contrast); font-weight: 800;
}
.steps__item p { color: var(--color-muted); }

/* --- Questions fréquentes ------------------------------------------------ */
.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface); }
.faq summary { position: relative; padding: 1rem 3rem 1rem 1.2rem; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--color-muted); }
.faq details > div > * + * { margin-top: 0.6rem; }

/* --- Donnée repliée derrière un clic (mentions légales) ------------------ */
.reveal { border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface); }
.reveal summary { position: relative; padding: 1rem 3rem 1rem 1.2rem; font-weight: 650; cursor: pointer; list-style: none; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--color-primary); transition: transform .2s; }
.reveal[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.reveal > div { padding: 0 1.2rem 1.1rem; color: var(--color-muted); }
.reveal > div > * + * { margin-top: 0.6rem; }

/* --- Formulaire de contact ([bokmo_contact]) ----------------------------- */
.contact-form { gap: var(--space-m); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.contact-form__row { display: grid; gap: var(--space-m); }
@media (min-width: 40rem) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field__hint { font-size: var(--step--1); font-weight: 400; color: var(--color-muted); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-bg);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent); }
textarea { resize: vertical; min-height: 9rem; }
.contact-form__code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-s); }
.code-input { width: 11rem !important; font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: 0.3em; text-align: center; }
.form-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius-m); font-weight: 550; }
.form-notice--ok { background: color-mix(in srgb, var(--color-ok) 12%, transparent); color: var(--color-ok); }
.form-notice--error { background: color-mix(in srgb, var(--color-error) 10%, transparent); color: var(--color-error); }

/* --- Contenu éditorial --------------------------------------------------- */
.prose { font-size: 1.02rem; }
.prose > * + * { margin-top: var(--space-s); }
.prose h2 { margin-top: var(--space-xl); font-size: var(--step-2); }
.prose h3 { margin-top: var(--space-l); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { padding-left: var(--space-s); border-left: 3px solid var(--brand-gold); color: var(--color-muted); font-style: italic; }
.prose img { border-radius: var(--radius-m); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.updated { font-size: var(--step--1); color: var(--color-muted); }

/* --- Pagination, recherche, commentaires (gabarits WordPress) ------------ */
.jo-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-l); }
.jo-pagination .page-numbers {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text); text-decoration: none;
}
.jo-pagination .page-numbers.current { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.search-form { display: flex; gap: var(--space-2xs); width: 100%; max-width: 28rem; margin-inline: auto; }
.search-form label { flex: 1; }
.search-submit { padding: 0.75em 1.2em; border: 0; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-primary-contrast); font-weight: 650; cursor: pointer; }
.jo-empty { color: var(--color-muted); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { padding-block: var(--space-2xl) var(--space-m); background: var(--color-dark); color: var(--color-dark-text); }
.site-footer__inner { display: grid; gap: var(--space-xl); }
@media (min-width: 56rem) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand, .site-footer .brand:hover { color: var(--color-dark-text); }
.site-footer__tagline { max-width: 32ch; color: var(--color-dark-muted); }
.site-footer__title { margin-bottom: 0.8rem; font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-dark-muted); }
.site-footer__menu { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--color-dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid rgb(247 243 234 / 0.1); font-size: var(--step--1); color: var(--color-dark-muted); }
.site-footer .lang-switch__toggle { background: transparent; border-color: rgb(247 243 234 / 0.25); color: var(--color-dark-text); }
.site-footer .lang-switch__menu { top: auto; bottom: calc(100% + 0.4rem); right: auto; left: 0; }
.site-footer .lang-switch__menu a { color: var(--color-text); }
.site-footer .lang-switch__menu a[aria-current="true"] { color: var(--color-primary); }

/* 05-icons.css */
/* Icônes au trait, en masque CSS : la couleur suit currentColor.
   Usage : <span class="icon icon--lock" aria-hidden="true"></span>. Généré ; une icône = une ligne. */
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E"); }
.icon--pen { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E"); }
.icon--book { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5v-15z'/%3E%3Cpath d='M5 19.5A1.5 1.5 0 0 0 6.5 21H19'/%3E%3Cpath d='M9 7.5h6'/%3E%3C/svg%3E"); }
.icon--user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4.2-6 8-6s7 2 8 6'/%3E%3C/svg%3E"); }
.icon--timeline { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h15'/%3E%3Ccircle cx='7' cy='12' r='2'/%3E%3Ccircle cx='13.5' cy='12' r='2'/%3E%3Cpath d='M18 8.5l3.5 3.5-3.5 3.5'/%3E%3C/svg%3E"); }
.icon--layers { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.icon--sparkles { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3l1.8 5.2L18 10l-5.2 1.8L11 17l-1.8-5.2L4 10l5.2-1.8L11 3z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15z'/%3E%3C/svg%3E"); }
.icon--lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.icon--cloud { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18.5h10a4 4 0 0 0 .6-7.95A6 6 0 0 0 6.1 9.7 4.4 4.4 0 0 0 7 18.5z'/%3E%3C/svg%3E"); }
.icon--file { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.icon--history { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.6-6.1L3.5 8.5'/%3E%3Cpath d='M3.5 3.5v5h5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.icon--target { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3C/svg%3E"); }
.icon--comment { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9.5L5 20V5z'/%3E%3Cpath d='M8 9h8M8 12.5h5'/%3E%3C/svg%3E"); }
.icon--link { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E"); }
.icon--search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
.icon--import { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='M7.5 9.5L12 14l4.5-4.5'/%3E%3Cpath d='M4 16v4h16v-4'/%3E%3C/svg%3E"); }
.icon--export { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14V3'/%3E%3Cpath d='M7.5 7.5L12 3l4.5 4.5'/%3E%3Cpath d='M4 16v4h16v-4'/%3E%3C/svg%3E"); }
.icon--music { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5.5l11-2.5v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E"); }
.icon--verse { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 10h10M4 14h16M4 18h8'/%3E%3C/svg%3E"); }
.icon--film { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9.5h18M8 5l-2 4.5M13 5l-2 4.5M18 5l-2 4.5'/%3E%3C/svg%3E"); }
.icon--chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V11M11 20V5M17 20v-6M3 20h18'/%3E%3C/svg%3E"); }
.icon--eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 6 12 6s9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3C/svg%3E"); }
.icon--bolt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5L4.5 14H11l-1 7.5L19.5 10H13l0-7.5z'/%3E%3C/svg%3E"); }
.icon--shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.icon--check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.icon--devices { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='14' height='10' rx='1.5'/%3E%3Cpath d='M1 18h12'/%3E%3Crect x='17' y='8.5' width='6' height='11.5' rx='1.5'/%3E%3C/svg%3E"); }
.icon--laptop { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E"); }
.icon--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E"); }
.icon--tablet { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2.5' width='16' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E"); }
.icon--tag { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12.5V4h8.5l9.5 9.5-8.5 8.5L3 12.5z'/%3E%3Ccircle cx='7.5' cy='8' r='1.5'/%3E%3C/svg%3E"); }
.icon--archive { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1'/%3E%3Cpath d='M5 9v11h14V9'/%3E%3Cpath d='M10 13h4'/%3E%3C/svg%3E"); }
.icon--quote { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 7C6.5 7.8 5 10 5 13v4h5v-5H7.5c0-2 .8-3.2 2.5-3.8L9.5 7zM18.5 7c-3 .8-4.5 3-4.5 6v4h5v-5h-2.5c0-2 .8-3.2 2.5-3.8L18.5 7z'/%3E%3C/svg%3E"); }
.icon--drama { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h9v6a4.5 4.5 0 0 1-9 0V4z'/%3E%3Cpath d='M13 8h7v6a4.5 4.5 0 0 1-8.2 2.6'/%3E%3Cpath d='M6.5 8h.01M10.5 8h.01M7 11.5c.8.7 2.2.7 3 0'/%3E%3C/svg%3E"); }
.icon--moon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.icon--keyboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Cpath d='M6 10h.01M9.5 10h.01M13 10h.01M16.5 10h.01M7.5 14h9'/%3E%3C/svg%3E"); }

/* 06-sections.css */
/* Sections propres aux pages de Bokmo : accueil, fonctionnalités, pages de texte. */

/* --- Hero de l'accueil --------------------------------------------------- */
/* Le fond bleu de l'icône s'arrête avant le bas de la section : les appareils débordent sur le papier. */
.hero-home {
  --hero-overlap: clamp(5rem, 17vw, 15rem);
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* le filigrane dépasse à droite sur les grands écrans : pas d'ascenseur horizontal */
  padding-top: clamp(3.5rem, 2rem + 6vw, 7rem);
  color: var(--brand-paper);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(52rem 30rem at 85% -8%, rgb(108 126 240 / 0.62), transparent 70%),
    radial-gradient(38rem 26rem at 0% 35%, rgb(243 187 88 / 0.13), transparent 70%),
    linear-gradient(180deg, #2e3a9e 0%, #20266c 58%, #171a45 100%);
  background-size: 100% calc(100% - var(--hero-overlap));
  background-repeat: no-repeat;
}
.hero-home__text { max-width: 54rem; margin-inline: auto; gap: var(--space-m); }
.hero-home h1 { color: var(--brand-paper); }
.hero-home h1 em { color: var(--brand-gold); }
.hero-home .lead { max-width: 46rem; color: rgb(247 243 234 / 0.8); }
.hero-home .eyebrow { color: var(--brand-paper); }
.hero-home .platforms { justify-content: center; color: rgb(247 243 234 / 0.7); }
.hero-home__actions { justify-content: center; }
.hero-home__visual { width: min(100% - 2 * var(--gutter), 66rem); margin: var(--space-2xl) auto 0; }

/* Les strates de l'icône, en filigrane derrière le titre */
.hero-home::before {
  content: ""; position: absolute; z-index: -1; top: -3rem; right: calc(50% - 50rem); width: 26rem; aspect-ratio: 1; opacity: 0.08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23f7f3ea'%3E%3Crect x='36' y='29.8' width='39' height='7.4' rx='3.7'/%3E%3Crect x='25' y='40.8' width='50' height='7.4' rx='3.7'/%3E%3Crect x='25' y='51.8' width='50' height='7.4' rx='3.7'/%3E%3C/g%3E%3Crect x='25' y='62.8' width='23' height='7.4' rx='3.7' fill='%23f3bb58'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 87.99rem) { .hero-home::before { display: none; } }

/* --- En-tête des pages intérieures --------------------------------------- */
.page-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  background: radial-gradient(46rem 20rem at 90% -30%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 70%);
}
.page-hero h1 { font-size: var(--step-4); }
.page-hero .stack { gap: var(--space-s); }

/* --- Genres -------------------------------------------------------------- */
.genres li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem; font-family: var(--font-serif); font-size: 1.12rem; }
.genres .icon { width: 1.05rem; height: 1.05rem; color: var(--color-primary); }

/* --- Vitrines (texte + visuel) ------------------------------------------- */
.showcase__text { gap: var(--space-m); }
.showcase__text h2 { font-size: var(--step-3); }
.showcase__text > p { color: var(--color-muted); font-size: 1.06rem; }
.showcases { display: grid; gap: var(--space-3xl); }
/* Fenêtres Mac : denses, elles prennent plus de place que le texte et, sur grand écran,
   débordent du conteneur vers le bord de la page (sans jamais l'atteindre). */
@media (min-width: 68rem) {
  .showcase:has(.device--mac) { grid-template-columns: 0.72fr 1.28fr; }
  .showcase.split--reverse:has(.device--mac) { grid-template-columns: 1.28fr 0.72fr; }
}
@media (min-width: 80rem) {
  .showcase { --bleed: min(8rem, (100vw - var(--container)) / 2 - 2.5rem); }
  .showcase > .device--mac, .showcase > .shot-pair { margin-right: calc(-1 * var(--bleed)); }
  .showcase.split--reverse > .device--mac, .showcase.split--reverse > .shot-pair { margin-right: 0; margin-left: calc(-1 * var(--bleed)); }
}

/* --- Fenêtre d'app dessinée en HTML (illustrations) ---------------------- */
.panel {
  overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.panel__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-surface-alt); font-size: 0.85rem; font-weight: 600; color: var(--color-muted); }
.panel__bar::before {
  content: ""; width: 3.1rem; height: 0.7rem; flex: none;
  background:
    radial-gradient(circle, #ff5f57 0.32rem, transparent 0.34rem) 0 50% / 1.05rem 100% no-repeat,
    radial-gradient(circle, #febc2e 0.32rem, transparent 0.34rem) 1.05rem 50% / 1.05rem 100% no-repeat,
    radial-gradient(circle, #28c840 0.32rem, transparent 0.34rem) 2.1rem 50% / 1.05rem 100% no-repeat;
}
.panel__body { padding: clamp(1.1rem, 3vw, 2rem); }

/* Capture + fenêtre dessinée posée sur son angle bas gauche (poésie : le sonnet sur Mac et le dictionnaire Fusion).
   La fenêtre dessinée (≈ 19 rem de haut) ne mord que sur le bas de la capture, sous le dernier vers : la marge
   basse compense la hauteur de ce bas vide, proportionnelle à la largeur (13 %). */
.shot-pair { display: grid; gap: var(--space-m); }
.shot-pair__float .panel__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; padding: 1.1rem 1.2rem; }
.shot-pair__float .segmented { grid-column: 1 / -1; justify-self: start; }
.shot-pair__float .mock-results { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .shot-pair { position: relative; display: block; padding: 0 0 max(8rem, 20rem - 13%) 6%; }
  .shot-pair__float { position: absolute; left: 0; bottom: 0; width: min(25rem, 74%); }
}

/* Dictionnaire : Fusion */
.segmented { display: inline-flex; padding: 0.2rem; border-radius: var(--radius-m); background: var(--color-surface-alt); font-size: 0.88rem; font-weight: 600; }
.segmented span { padding: 0.35rem 0.9rem; border-radius: calc(var(--radius-m) - 0.2rem); color: var(--color-muted); }
.segmented .is-on { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-s); }
.mock-field { display: grid; gap: 0.3rem; }
.mock-field__label { font-size: 0.82rem; font-weight: 600; color: var(--color-muted); }
.mock-field__value { padding: 0.6rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-bg); font-family: var(--font-serif); font-size: 1.1rem; }
.mock-field__value::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--color-primary); animation: caret 1.1s steps(1) infinite; }
.mock-field + .mock-field .mock-field__value::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mock-field__value::after { animation: none; } }
.mock-results { display: grid; gap: 0.5rem; padding-top: 0.4rem; border-top: 1px dashed var(--color-border); }
.mock-results .chips li { font-family: var(--font-serif); font-size: 1.08rem; background: var(--color-primary-soft); border-color: transparent; color: var(--color-primary); }

/* Vers et syllabes */
.verse { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; font-family: var(--font-serif); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem); }
.verse li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; gap: 0.9rem; }
.verse__count { justify-self: end; min-width: 1.9rem; padding: 0.05rem 0.4rem; border-radius: var(--radius-full); background: color-mix(in srgb, var(--color-ok) 13%, transparent); color: var(--color-ok); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; text-align: center; }
.verse__meta { margin-top: 0.9rem; font-size: 0.85rem; color: var(--color-muted); }

/* --- Bandeau « vos textes vous appartiennent » --------------------------- */
.section--brand {
  color: var(--brand-paper);
  background:
    radial-gradient(44rem 26rem at 100% 0%, rgb(108 126 240 / 0.45), transparent 70%),
    linear-gradient(165deg, #262f8a 0%, #171a45 70%);
}
.section--brand h2 { color: var(--brand-paper); }
.section--brand .lead { color: rgb(247 243 234 / 0.78); }
.section--brand .eyebrow { color: var(--brand-paper); }
.section--brand .feature { background: rgb(247 243 234 / 0.06); border-color: rgb(247 243 234 / 0.12); }
.section--brand .feature__icon { background: rgb(243 187 88 / 0.16); color: var(--brand-gold); }
.section--brand .feature p { color: rgb(247 243 234 / 0.72); }

/* --- Import / export ----------------------------------------------------- */
.formats { display: grid; gap: var(--space-l); }
@media (min-width: 48rem) { .formats { grid-template-columns: 1fr 1fr; } }
.formats__col { gap: var(--space-s); padding: var(--space-m); border: 1px solid var(--color-border); border-radius: var(--radius-l); background: var(--color-surface); }
.formats__col h3 { display: flex; align-items: center; gap: 0.6rem; }
.formats__col h3 .icon { color: var(--color-primary); }

/* --- Page Fonctionnalités ------------------------------------------------ */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font-size: 0.92rem; font-weight: 550; text-decoration: none; }
.toc a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.toc .icon { width: 1rem; height: 1rem; color: var(--color-primary); }

.feature-group { display: grid; gap: var(--space-l); padding-block: var(--space-xl); border-top: 1px solid var(--color-border); }
.feature-group:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 60rem) {
  .feature-group { grid-template-columns: 19rem 1fr; gap: var(--space-2xl); }
  .feature-group__head { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
}
.feature-group__head { gap: var(--space-2xs); }
.feature-group__head h2 { font-size: var(--step-3); }
.feature-group__head p { color: var(--color-muted); }
.feature-list { display: grid; gap: var(--space-m) var(--space-l); }
@media (min-width: 40rem) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list > div { display: grid; gap: 0.3rem; align-content: start; }
.feature-list h3 { font-size: 1.05rem; }
.feature-list p { color: var(--color-muted); font-size: 0.97rem; }
.feature-group__visual { grid-column: 1 / -1; }
/* Sur deux colonnes, le titre collant glisse jusqu'en bas du groupe : rien ne doit occuper la colonne
   de gauche sous lui, les notes restent donc dans la colonne du texte. */
@media (min-width: 60rem) { .feature-group__visual { grid-column: 2; } }

/* Captures sous la liste, dans la colonne de droite : le titre reste collé le long des deux */
.feature-group__shots { display: grid; gap: var(--space-m); max-width: 46rem; padding-top: var(--space-s); }
@media (min-width: 60rem) {
  .feature-group__shots { grid-column: 2; }
  .feature-group:has(.feature-group__shots) .feature-group__head { grid-row: span 2; }
}
.feature-group__shots:has(.device--mac) { max-width: none; }
.feature-group__shots--phones { grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 3vw, 2rem); max-width: 40rem; }

.note { display: flex; gap: 0.8rem; padding: 1rem 1.2rem; border-radius: var(--radius-m); background: var(--color-primary-soft); font-size: 0.95rem; }
.note .icon { margin-top: 0.15rem; color: var(--color-primary); }

.specs { display: grid; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-l); background: var(--color-surface); overflow: hidden; }
.specs > div { display: grid; gap: 0.25rem 1.5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--color-border); }
.specs > div:first-child { border-top: 0; }
@media (min-width: 40rem) { .specs > div { grid-template-columns: 14rem 1fr; } }
.specs dt { font-weight: 650; }
.specs dd { color: var(--color-muted); }

/* --- Sources des outils de langue (accueil) ------------------------------ */
.sources__lead { max-width: 48rem; }
.sources { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.source {
  display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
}
.source__use { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.source__use .icon { width: 1.1rem; height: 1.1rem; flex: none; }
.source h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; line-height: var(--leading-tight); }
.source > p:not([class]) { color: var(--color-muted); font-size: 0.97rem; }
.source__licence { margin-top: auto; padding-top: var(--space-s); border-top: 1px solid var(--color-border); font-size: var(--step--1); font-weight: 600; }
.sources__foot { max-width: 48rem; }
.sources__foot > p:first-child { color: var(--color-muted); }

/* --- Tarifs -------------------------------------------------------------- */
.trial {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 0.6rem; margin-top: var(--space-2xs); padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-text); font-size: 0.97rem;
}
.trial .icon { width: 1.15rem; height: 1.15rem; flex: none; color: var(--color-primary); }
.trial strong { font-weight: 700; }

.plans { display: grid; gap: var(--space-l) var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-l) var(--space-m) var(--space-m);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
}
.plan--featured { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-m); }
.plan__name { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.plan--featured .plan__name { color: var(--color-primary); }
.plan__badge {
  position: absolute; top: 0; left: var(--space-m); transform: translateY(-50%); padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-primary-contrast); font-size: var(--step--1); font-weight: 700;
}
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
.plan__amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.01em; }
.plan__period { color: var(--color-muted); }
.plan__text { color: var(--color-muted); }
.plan .ticks { margin-top: auto; padding-top: var(--space-s); border-top: 1px solid var(--color-border); }
.plan__text { margin-bottom: var(--space-2xs); }
/* Nom, prix, texte et liste alignés d'une carte à l'autre, quelle que soit la longueur des textes. */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--space-xs); align-content: start; }
  .plan .ticks { margin-top: 0; }
}
.plans__note { color: var(--color-muted); font-size: var(--step--1); text-align: center; }

/* --- Support ------------------------------------------------------------- */
.support-layout { display: grid; gap: var(--space-2xl); }
@media (min-width: 62rem) { .support-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.support-layout h2 { font-size: var(--step-3); }

/* Sélecteur de devise de la page Tarifs (masqué sans JavaScript). */
.currency { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2xs); }
.currency[hidden] { display: none; }
.currency__label { color: var(--color-muted); font-size: var(--step--1); }
.currency__select {
  width: auto; max-width: 100%; padding: 0.4rem 0.7rem; font: inherit; font-size: var(--step--1); color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-s);
}
.currency__select:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* 07-blog.css */
/* Blog : liste des articles, cartes, article et contenu écrit dans l'éditeur WordPress (blocs). */

/* --- En-tête de la liste et des rubriques -------------------------------- */
.blog-hero .eyebrow a { color: inherit; text-decoration: none; }
.blog-hero .eyebrow a:hover { text-decoration: underline; }
.rubriques { margin-top: var(--space-2xs); }
.rubriques .chips li { padding: 0; border: 0; background: none; }
.rubriques .chips a {
  display: block; padding: 0.4rem 0.95rem; border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text); font-size: 0.95rem; font-weight: 550; text-decoration: none;
}
.rubriques .chips a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.rubriques .chips a[aria-current="page"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-contrast); }

/* --- Grille et cartes ---------------------------------------------------- */
.post-grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.post-grid > .jo-empty {
  grid-column: 1 / -1; padding: var(--space-2xl) var(--space-l); border: 1px dashed var(--color-border); border-radius: var(--radius-l);
  font-family: var(--font-serif); font-size: var(--step-2); text-align: center;
}

.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.post-card:focus-within { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
.post-card :focus-visible { outline: none; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
/* Sans image à la une : les strates de l'icône sur son dégradé bleu */
.post-card__placeholder {
  display: block; width: 100%; height: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23f7f3ea'%3E%3Crect x='36' y='29.8' width='39' height='7.4' rx='3.7'/%3E%3Crect x='25' y='40.8' width='50' height='7.4' rx='3.7'/%3E%3Crect x='25' y='51.8' width='50' height='7.4' rx='3.7'/%3E%3C/g%3E%3Crect x='25' y='62.8' width='23' height='7.4' rx='3.7' fill='%23f3bb58'/%3E%3C/svg%3E") center / auto 62% no-repeat,
    radial-gradient(90% 80% at 85% 0%, rgb(108 126 240 / 0.7), transparent 70%),
    linear-gradient(165deg, #3a48b8 0%, #20266c 100%);
}
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: var(--space-m); }
.post-card__category { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.post-card__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; line-height: 1.18; letter-spacing: -0.01em; }
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--color-muted); }
.post-card__meta { margin-top: auto; padding-top: 0.35rem; font-size: var(--step--1); color: var(--color-muted); }

/* Le dernier article, en tête de la première page : carte en largeur */
@media (min-width: 56rem) {
  body:not(.paged) .post-grid--une > .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
  body:not(.paged) .post-grid--une > .post-card:first-child .post-card__media { aspect-ratio: auto; min-height: 22rem; }
  body:not(.paged) .post-grid--une > .post-card:first-child .post-card__body { justify-content: center; gap: var(--space-s); padding: var(--space-xl); }
  body:not(.paged) .post-grid--une > .post-card:first-child .post-card__title { font-size: var(--step-4); }
  body:not(.paged) .post-grid--une > .post-card:first-child .post-card__excerpt { -webkit-line-clamp: 5; font-size: var(--step-1); }
  body:not(.paged) .post-grid--une > .post-card:first-child .post-card__meta { margin-top: var(--space-2xs); }
}

/* --- Article ------------------------------------------------------------- */
.post { overflow-x: clip; padding-bottom: var(--space-2xl); } /* .alignfull fait 100vw */
.post__header {
  padding-block: var(--space-2xl) var(--space-xl);
  background: radial-gradient(46rem 20rem at 90% -30%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 70%);
}
.post__header .stack { gap: var(--space-s); }
.post__kicker { flex-wrap: wrap; }
.post__kicker a { color: inherit; text-decoration: none; }
.post__kicker a:hover { text-decoration: underline; }
.post__kicker span { color: var(--color-muted); }
.post__title { font-size: var(--step-5); line-height: 1.08; }
.post__lead { max-width: none; }
.post__meta { font-size: var(--step--1); color: var(--color-muted); }
.post__cover { width: min(100% - 2 * var(--gutter), 62rem); margin: 0 auto var(--space-xl); }
.post__cover img { width: 100%; max-height: 40rem; object-fit: cover; object-position: top; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.post__footer { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--color-border); }
.post__back { font-weight: 650; text-decoration: none; }
.post__back:hover { text-decoration: underline; }

.related:not(:has(.post-card)) { display: none; }
.related__title { font-size: var(--step-3); }

/* --- Contenu de l'article (blocs de l'éditeur) --------------------------- */
.prose--post { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); line-height: 1.7; }
.prose--post > * + * { margin-top: 1.1em; }
.prose--post h2 { margin-top: 2.1em; font-size: var(--step-3); }
.prose--post h3 { margin-top: 1.8em; font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; }
.prose--post h4 { margin-top: 1.6em; }
.prose--post h2 + *, .prose--post h3 + *, .prose--post h4 + * { margin-top: 0.6em; }
.prose--post li::marker { color: var(--color-accent-ink); }
.prose--post a { text-decoration-thickness: 1px; }
.prose--post mark { padding: 0 0.15em; border-radius: 0.2em; background: color-mix(in srgb, var(--brand-gold) 38%, transparent); color: inherit; }
.prose--post .has-drop-cap:not(:focus)::first-letter { margin: 0.08em 0.12em 0 0; font-size: 4.2em; line-height: 0.8; color: var(--color-primary); }

/* Citations */
.prose--post blockquote,
.prose--post .wp-block-quote { margin-block: 1.8em; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--brand-gold); font-style: italic; color: var(--color-text); }
.prose--post blockquote cite,
.prose--post .wp-block-quote cite { display: block; margin-top: 0.6em; font-family: var(--font-sans); font-size: var(--step--1); font-style: normal; color: var(--color-muted); }
.prose--post .wp-block-pullquote { margin-block: 2.4em; padding: 1.6em 0; border-block: 1px solid var(--color-border); text-align: center; }
.prose--post .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: var(--step-3); line-height: 1.3; }
.prose--post .wp-block-pullquote blockquote::before { content: ""; display: block; width: 3rem; height: 0.3rem; margin: 0 auto 0.8em; border-radius: 1rem; background: var(--brand-gold); }

/* Images, galeries, vidéos */
.prose--post figure { margin-block: 2em; }
.prose--post img { border-radius: var(--radius-m); }
.prose--post figcaption,
.prose--post .wp-element-caption { margin-top: 0.7em; font-family: var(--font-sans); font-size: var(--step--1); line-height: 1.45; text-align: center; color: var(--color-muted); }
.prose--post .wp-block-gallery img { border-radius: var(--radius-s); }
.prose--post .wp-block-embed iframe { width: 100%; border-radius: var(--radius-m); }
.prose--post .alignwide { width: min(100vw - 2 * var(--gutter), 62rem); max-width: none; margin-inline: calc(50% - min(50vw - var(--gutter), 31rem)); }
.prose--post .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.prose--post .alignfull img { border-radius: 0; }
.prose--post .alignleft { float: left; max-width: 50%; margin: 0.3em 1.5em 1em 0; }
.prose--post .alignright { float: right; max-width: 50%; margin: 0.3em 0 1em 1.5em; }
.prose--post::after { content: ""; display: table; clear: both; }

/* Séparateur : le trait doré des strates */
.prose--post hr,
.prose--post .wp-block-separator { width: 3.2rem; height: 0.3rem; margin: 2.6em auto; border: 0; border-radius: 1rem; background: var(--brand-gold); opacity: 1; }

/* Code, tableaux, boutons, notes de bas de page */
.prose--post :not(pre) > code { padding: 0.1em 0.35em; border-radius: var(--radius-s); background: var(--color-surface-alt); }
.prose--post pre,
.prose--post .wp-block-code { overflow-x: auto; padding: 1em 1.2em; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface-alt); font-size: 0.8em; line-height: 1.55; }
.prose--post .wp-block-table { overflow-x: auto; font-family: var(--font-sans); font-size: 0.85em; }
.prose--post .wp-block-table table { margin: 0; }
.prose--post .wp-block-table th,
.prose--post .wp-block-table td { border: 0; border-bottom: 1px solid var(--color-border); } /* la bibliothèque de blocs encadre chaque case */
.prose--post .wp-block-table thead { border-bottom: 2px solid var(--color-border); }
.prose--post .wp-block-buttons { font-family: var(--font-sans); }
.prose--post .wp-block-button__link { padding: 0.8em 1.4em; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-primary-contrast); font-size: 0.85em; font-weight: 650; text-decoration: none; }
.prose--post .wp-block-button__link:hover { background: var(--color-primary-hover); color: var(--color-primary-contrast); }
.prose--post .is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: none; color: var(--color-primary); }
.prose--post .wp-block-footnotes { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--color-border); font-family: var(--font-sans); font-size: var(--step--1); color: var(--color-muted); }
.prose--post sup a { text-decoration: none; }

