/*
 * assets/site.css : réglages communs à toutes les pages (rendu Claude Design en HTML statique).
 * Les pages portent leurs styles en ligne ; ce fichier ne corrige que ce qui vaut pour tout le site.
 */

/* ---------- Échelle : le rendu d'origine était trop « zoomé » */
@media (min-width: 901px) { body { zoom: 0.85; } }
@media (max-width: 900px) { body { zoom: 0.92; } }

/* ---------- Haut de page : formes bleues « soft 3D », floues, qui dérivent lentement */
.soft3d-host { position: relative; overflow: hidden; isolation: isolate; }
.soft3d-host > *:not(.soft3d) { position: relative; z-index: 1; }
.soft3d {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Les formes s'estompent vers le bas : pas de coupure nette au bord de la section. */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
/* Blog : plus d'air entre le titre de la page et le premier article. */
.center-hero { padding-bottom: 104px !important; }
.soft3d span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(34px); opacity: 0.55; will-change: transform;
  animation: soft3d-drift 22s ease-in-out infinite alternate;
}
/* Chaque forme est une sphère éclairée en haut à gauche : reflet clair, cœur bleu, ombre plus dense. */
.soft3d span:nth-child(1) {
  width: 420px; height: 420px; left: -60px; top: 40px;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #b9c6ff 22%, #5b7bff 55%, #1f3ce0 100%);
}
.soft3d span:nth-child(2) {
  width: 340px; height: 340px; right: -40px; top: 120px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d4dcff 25%, #8ea3ff 60%, #3d5df8 100%);
  animation-duration: 26s; animation-delay: -8s;
}
.soft3d span:nth-child(3) {
  width: 260px; height: 260px; left: 42%; top: 62%;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, #c9e4ff 24%, #7fb2ff 58%, #2f6fe8 100%);
  opacity: 0.4; animation-duration: 30s; animation-delay: -15s;
}
@keyframes soft3d-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(60px, -40px, 0) scale(1.12) rotate(25deg); }
  100% { transform: translate3d(-30px, 50px, 0) scale(0.94) rotate(-15deg); }
}
/* Haut de page centré : les formes encadrent le titre et passent derrière lui. */
.soft3d-host:not(.has-form) .soft3d span { filter: blur(26px); opacity: 0.6; }
.soft3d-host:not(.has-form) .soft3d span:nth-child(1) { left: 10%; top: 6%; }
.soft3d-host:not(.has-form) .soft3d span:nth-child(2) { right: 10%; left: auto; top: 22%; }
.soft3d-host:not(.has-form) .soft3d span:nth-child(3) { left: 38%; top: 40%; width: 320px; height: 320px; opacity: 0.35; }
/* Haut de page avec formulaire à droite : les formes restent du côté du texte. */
.soft3d-host.has-form .soft3d span { opacity: 0.6; }
.soft3d-host.has-form .soft3d span:nth-child(1) { left: -40px; top: 0; }
.soft3d-host.has-form .soft3d span:nth-child(2) { right: auto; left: 34%; top: 260px; }
.soft3d-host.has-form .soft3d span:nth-child(3) { left: 8%; top: 70%; }
@media (max-width: 900px) {
  .soft3d span { filter: blur(28px); opacity: 0.4; }
  .soft3d span:nth-child(1) { width: 260px; height: 260px; }
  .soft3d span:nth-child(2) { width: 220px; height: 220px; }
  .soft3d span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .soft3d span { animation: none; } }

/* ---------- Haut de page avec formulaire : titre remonté, formulaire plus étroit, chiffres en bleu */
.hero-form-row { align-items: flex-start !important; }
.hero-form-row > #form { flex: 1 1 360px !important; max-width: 460px !important; }
.hero-proof { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid #D2D2D7; max-width: 520px; }
.hero-proof blockquote { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 500; color: #1D1D1F; }
.hero-proof figcaption { margin-top: 12px; font-size: 15px; color: #6E6E73; }
.hero-proof figcaption strong { color: #1D1D1F; font-weight: 600; }
.accent-num { color: #1F3CE0 !important; }

/* ---------- Titres centrés partout */
/* Présentation (photo + texte) : la photo au-dessus, le texte centré dessous. */
div:has(> img[alt="Pierre-Louis Chereau"]) { flex-direction: column !important; align-items: center !important; text-align: center; gap: 32px !important; }
/* Photo ronde, liseré bleu léger, deux sphères floues autour pour le relief. */
div:has(> img[alt="Pierre-Louis Chereau"]) { position: relative; }
div:has(> img[alt="Pierre-Louis Chereau"]) > img { position: relative; z-index: 1; box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px #8EA3FF; }
div:has(> img[alt="Pierre-Louis Chereau"]) > div { position: relative; z-index: 1; }
div:has(> img[alt="Pierre-Louis Chereau"])::before,
div:has(> img[alt="Pierre-Louis Chereau"])::after {
  content: ''; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(16px); opacity: 0.6; animation: soft3d-drift 24s ease-in-out infinite alternate;
}
div:has(> img[alt="Pierre-Louis Chereau"])::before {
  width: 150px; height: 150px; top: -30px; left: calc(50% - 210px);
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #b9c6ff 22%, #5b7bff 55%, #1f3ce0 100%);
}
div:has(> img[alt="Pierre-Louis Chereau"])::after {
  width: 100px; height: 100px; top: 130px; left: calc(50% + 100px);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d4dcff 25%, #8ea3ff 60%, #3d5df8 100%);
  animation-duration: 30s; animation-delay: -10s;
}
@media (prefers-reduced-motion: reduce) {
  div:has(> img[alt="Pierre-Louis Chereau"])::before, div:has(> img[alt="Pierre-Louis Chereau"])::after { animation: none; }
}
@media (max-width: 600px) {
  /* Sur téléphone, les sphères restent dans l'écran. */
  div:has(> img[alt="Pierre-Louis Chereau"])::before { left: 0; width: 110px; height: 110px; }
  div:has(> img[alt="Pierre-Louis Chereau"])::after { left: auto; right: 0; width: 80px; height: 80px; }
  div:has(> img[alt="Pierre-Louis Chereau"])::before, div:has(> img[alt="Pierre-Louis Chereau"])::after { animation: none; }
}
/* Photo ronde. */
div:has(> img[alt="Pierre-Louis Chereau"]) > img {
  flex: none !important; width: 200px !important; max-width: 200px !important; aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important; object-fit: cover; object-position: 50% 22%;
}
div:has(> img[alt="Pierre-Louis Chereau"]) > div { flex: none !important; max-width: 900px; }
div:has(> img[alt="Pierre-Louis Chereau"]) > div > p { font-size: 18px !important; }
/* Cas client (texte + capture) : la capture du site occupe toute la moitié droite. */
div[style*="min-height: 340px"][style*="align-items: flex-end"][style*="padding: 48px 48px 0px"] {
  padding: 0 !important; position: relative; overflow: hidden; min-height: 380px !important;
}
/* Cadrage sur le haut de la capture (en-tête et visuel principal du site client).
   La hauteur à 116 % masque la bande blanche du bas de la capture (600 px dont
   518 utiles) ; le cadrage centré garde entiers le titre et les boutons du site,
   qui sont centrés, quand la largeur de l'encart rogne les côtés. */
div[style*="min-height: 340px"][style*="align-items: flex-end"][style*="padding: 48px 48px 0px"] > img {
  position: absolute; top: 0; left: 0; width: 100% !important; height: 116% !important; aspect-ratio: auto !important;
  object-fit: cover; object-position: center top !important; border-radius: 0 !important; box-shadow: none !important;
}
@media (max-width: 900px) {
  div[style*="min-height: 340px"][style*="align-items: flex-end"][style*="padding: 48px 48px 0px"] { min-height: 260px !important; }
}
/* Cas client (texte + capture) : le texte de l'encart est centré. */
div[style*="padding: 56px; display: flex; flex-direction: column; justify-content: center"] { text-align: center; align-items: center; }

/* ---------- Titres plus petits, lignes équilibrées (pas de mot seul sur la dernière ligne) */
h1, h2, h3, [style*="font-size: clamp(42px"] { text-wrap: balance; }
[style*="font-size: clamp(48px, 8vw, 104px)"] { font-size: clamp(38px, 5.6vw, 72px) !important; }
[style*="font-size: clamp(64px, 9vw, 120px)"] { font-size: clamp(38px, 5.6vw, 72px) !important; }
[style*="font-size: clamp(46px, 7.5vw, 96px)"],
[style*="font-size: clamp(48px, 7vw, 88px)"] { font-size: clamp(34px, 5vw, 62px) !important; }
[style*="font-size: clamp(42px, 6vw, 80px)"],
[style*="font-size: clamp(42px, 6vw, 76px)"] { font-size: clamp(32px, 4.4vw, 54px) !important; }
[style*="font-size: clamp(36px, 5vw, 56px)"] { font-size: clamp(28px, 3.4vw, 40px) !important; }
[style*="font-size: clamp(36px, 4.5vw, 52px)"] { font-size: clamp(28px, 3.2vw, 38px) !important; }
[style*="font-size: clamp(32px, 4.5vw, 48px)"],
[style*="font-size: clamp(32px, 4vw, 44px)"] { font-size: clamp(26px, 3vw, 34px) !important; }
/* Sous-titres : deux lignes au plus. */
h2 + p[style*="font-size: 21px"], h1 + p[style*="font-size: 21px"], h2 + p[style*="font-size: clamp(19px"] {
  max-width: 860px !important; font-size: 18px !important;
}
.subtitle-wide { max-width: 860px !important; }

/* ---------- Témoignages : les noms alignés sur la même ligne */
figure:has(> blockquote):not(.hero-proof) { display: flex; flex-direction: column; height: 100%; }
figure:has(> blockquote):not(.hero-proof) > blockquote { flex: 1; }

/* ---------- Étapes : un trait bleu continu du premier au dernier rond */
ol[style][style]:has(> li[style*="border-top: 2px solid"]) { position: relative; }
ol > li[style*="border-top: 2px solid"] { position: relative; border-top: 0 !important; padding-top: 34px !important; }
ol > li[style*="border-top: 2px solid"]::before {
  content: ''; position: absolute; z-index: 1; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #ffffff; border: 3px solid #1F3CE0;
}
ol[style][style]:has(> li[style*="border-top: 2px solid"])::before {
  content: ''; position: absolute; top: 7px; left: 8px; height: 2px; background: #1F3CE0;
  right: calc((100% - 120px) / 4 - 8px);
}
ol[style][style]:has(> li[style*="border-top: 2px solid"]:nth-child(3):last-child)::before { right: calc((100% - 80px) / 3 - 8px); }
/* Sur ordinateur : chaque étape centrée sous son rond, le trait relie le
   centre de la première colonne au centre de la dernière (gouttière 40 px). */
@media (min-width: 1000px) {
  ol > li[style*="border-top: 2px solid"] { text-align: center; }
  ol > li[style*="border-top: 2px solid"]::before { left: calc(50% - 8px); }
  ol[style][style]:has(> li[style*="border-top: 2px solid"])::before {
    left: calc((100% - 120px) / 8); right: calc((100% - 120px) / 8);
  }
  ol[style][style]:has(> li[style*="border-top: 2px solid"]:nth-child(3):last-child)::before {
    left: calc((100% - 80px) / 6); right: calc((100% - 80px) / 6);
  }
}
@media (max-width: 999px) {
  /* Sur tablette et mobile : timeline verticale. */
  ol[style][style]:has(> li[style*="border-top: 2px solid"]) { grid-template-columns: 1fr !important; gap: 28px !important; }
  ol > li[style*="border-top: 2px solid"] { padding: 0 0 0 36px !important; }
  ol > li[style*="border-top: 2px solid"]::before { top: 4px; }
  ol[style][style]:has(> li[style*="border-top: 2px solid"])::before { top: 12px; bottom: 12px; left: 7px; right: auto !important; width: 2px; height: auto; }
}

/* ---------- Formulaires */
/* « (facultatif) » sur la même ligne que le libellé, le champ dessous. */
[data-lead] label { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 8px !important; }
[data-lead] label > input, [data-lead] label > textarea, [data-lead] label > .phone-row { flex: 1 1 100%; }
/* Champs deux par deux : nom et e-mail, entreprise et téléphone. */
[data-lead] form > div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
[data-lead] label { min-width: 0; }
[data-lead] label > input, [data-lead] label > textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.phone-row select { max-width: 90px; padding: 12px 6px !important; font-size: 15px !important; }
.phone-row input { font-size: 16px !important; padding-left: 10px !important; padding-right: 10px !important; }
/* Formulaire plus large : le numéro de téléphone reste lisible en entier. */
.hero-form-row > #form { flex: 1 1 440px !important; max-width: 540px !important; }
.contact-form { max-width: 560px !important; flex-basis: 440px !important; }
/* « Votre projet » : les quatre choix sur une ligne. */
[data-lead] fieldset > div { flex-wrap: nowrap !important; gap: 6px !important; }
[data-lead] button[data-chip] { font-size: 14px !important; padding: 8px 12px !important; white-space: nowrap; flex: 0 1 auto; }
[data-lead] > div { padding: 28px !important; }
/* Indicatif téléphonique devant le numéro. */
.phone-row { display: flex; gap: 8px; min-width: 0; }
.phone-row select {
  flex: none; font: inherit; font-size: 16px; font-weight: 400; padding: 12px 8px; border: 1px solid #D2D2D7;
  border-radius: 12px; background: #ffffff; color: #1D1D1F;
}
.phone-row input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  [data-lead] form > div[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [data-lead] fieldset > div { flex-wrap: wrap !important; }
}
/* Haut de page avec formulaire : rien n'est coupé en bas. */
.soft3d-host.has-form { padding-bottom: 72px !important; }

/* ---------- Accueil : contact sur deux colonnes, formulaire à droite */
.contact-row { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.contact-left { flex: 1 1 420px; min-width: 0; }
.contact-form { flex: 1 1 380px; min-width: 0; max-width: 500px; }
.contact-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-points li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.5; color: #1D1D1F; }
.contact-points li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #1F3CE0; }
.contact-me { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #D2D2D7; }
.contact-me img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.contact-me p { margin: 0; font-size: 15px; line-height: 1.5; color: #6E6E73; }
.contact-me strong { display: block; color: #1D1D1F; font-weight: 600; }

/* ---------- Stratégie digitale : introduction en trois idées, quatre leviers lisibles */
.sd-intro { max-width: 1120px; margin: 0 auto; text-align: center; }
.sd-intro h2 { margin: 0 auto; max-width: 820px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.sd-intro > p { margin: 16px auto 0; max-width: 760px; font-size: 18px; line-height: 1.5; color: #6E6E73; }
.sd-pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sd-pillars li { background: #ffffff; border: 1px solid #E3E6EF; border-radius: 20px; padding: 32px 28px; text-align: center; }
.sd-pillars h3 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.sd-pillars p { margin: 0; font-size: 16px; line-height: 1.5; color: #6E6E73; }
.sd-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #EEF1FF; color: #1F3CE0; display: grid; place-items: center; }
.sd-icon svg { width: 26px; height: 26px; }
.sd-note { margin: 36px auto 0; max-width: 720px; font-size: 16px; line-height: 1.5; color: #6E6E73; }
@media (max-width: 760px) { .sd-pillars { grid-template-columns: 1fr; } }
#leviers a[style*="padding: 44px"] {
  display: flex !important; flex-direction: column; padding: 30px 26px !important; border-radius: 20px !important;
  background: #ffffff !important; border: 1px solid #E3E6EF; transition: border-color 200ms;
}
#leviers a[style*="padding: 44px"]:hover { border-color: #1F3CE0; }
#leviers a[style*="padding: 44px"] h3 { font-size: 22px !important; }
#leviers a[style*="padding: 44px"] h3 + p { font-size: 16px !important; }
#leviers a[style*="padding: 44px"] > p:last-child { margin-top: auto !important; padding-top: 20px; }
#leviers .sd-icon { margin: 0 0 18px; }

/* ---------- Menu : le même partout, toujours visible en haut */
[data-part="Nav"] { position: sticky; top: 0; z-index: 50; }
#form, section[id], [id="note-prix"] { scroll-margin-top: 80px; }

/* ---------- Grilles : 4 éléments tiennent sur une seule ligne (jamais 3 + 1) */
@media (min-width: 1000px) {
  [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(4):last-child),
  [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 600px) and (max-width: 999px) {
  [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(4):last-child),
  [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(8):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ---------- Menu principal : plus lisible, à l'échelle du texte des pages */
[data-part="Nav"] nav { min-height: 64px !important; }
[data-part="Nav"] nav > a:first-child { font-size: 19px !important; }
[data-part="Nav"] .nav-links { gap: 6px 30px !important; }
[data-part="Nav"] .nav-links a { font-size: 15px !important; }
[data-part="Nav"] nav > a:last-child { font-size: 15px !important; padding: 10px 20px !important; }

/* =====================================================================
 * Pages éditoriales refaites dans le même style : articles du blog,
 * pages juridiques, pages d'erreur. Toutes les règles sont préfixées
 * (.post, .lg-, .err-) : elles ne touchent aucune autre page.
 * ===================================================================== */

/* ---------- Articles du blog (blog/*.html et gabarit generateArticleHTML de server.js) */
.post { display: block; font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1D1D1F; }
.post-hero { padding: clamp(56px, 8vw, 104px) 24px clamp(48px, 6vw, 72px); text-align: center; }
.post-hero-in { max-width: 920px; margin: 0 auto; }
.post .breadcrumb { margin: 0 0 28px; font-size: 14px; line-height: 1.5; color: #6E6E73; }
.post .breadcrumb a { color: #6E6E73; text-decoration: none; }
.post .breadcrumb a:hover { color: #1F3CE0; text-decoration: underline; }
.post .tag {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 980px;
  background: #EEF1FF; color: #1F3CE0; font-size: 14px; font-weight: 600; line-height: 1.4;
}
.post h1 {
  margin: 0 auto; max-width: 900px; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.06;
  font-weight: 700; letter-spacing: -0.035em;
}
.post .meta {
  margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 14px; font-size: 15px; line-height: 1.4; color: #6E6E73;
}
.post .meta .author { display: inline-flex; align-items: center; gap: 10px; color: #1D1D1F; font-weight: 500; }
.post .meta .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.post .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #AEAEB2; }
.post-body { max-width: 720px; margin: 0 auto; padding: 0 24px 112px; }
/* Sommaire */
.post .toc { margin: 0 0 56px; padding: 26px 30px; background: #F5F5F7; border-radius: 24px; }
.post .toc h2, .post .toc h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #6E6E73; }
.post .toc ul, .post .toc ol { list-style: none; margin: 0; padding: 0; }
.post .toc li { margin: 0; }
.post .toc a { display: flex; align-items: center; min-height: 44px; font-size: 17px; line-height: 1.35; color: #1D1D1F; text-decoration: none; }
.post .toc a:hover { color: #1F3CE0; }
/* Corps de l'article */
.post article { font-size: 18px; line-height: 1.65; }
.post article p { margin: 0 0 22px; font-size: 18px; line-height: 1.65; }
.post .lead { font-size: clamp(19px, 2vw, 22px) !important; line-height: 1.5 !important; color: #424245; margin-bottom: 36px !important; }
.post article h2 {
  margin: 64px 0 18px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700;
  letter-spacing: -0.025em; scroll-margin-top: 88px;
}
.post article h3 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.post article ul, .post article ol { margin: 0 0 24px; padding-left: 1.3em; }
.post article li { margin: 0 0 10px; }
.post article li::marker { color: #1F3CE0; }
.post article strong { font-weight: 600; color: #1D1D1F; }
.post article a { color: #1F3CE0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post article a:hover { color: #1830B8; }
/* Tableaux */
.post table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0 36px; font-size: 15px; line-height: 1.45;
  background: #ffffff; border: 1px solid #E3E6EF; border-radius: 20px; overflow: hidden;
}
.post th { padding: 14px 16px; background: #F5F5F7; text-align: left; font-weight: 600; color: #1D1D1F; border-bottom: 1px solid #E3E6EF; }
.post td { padding: 14px 16px; color: #424245; vertical-align: top; border-bottom: 1px solid #E3E6EF; }
.post tr:last-child td { border-bottom: 0; }
/* Encadrés */
.post .callout, .post .warning { margin: 32px 0; padding: 24px 28px; border-radius: 20px; font-size: 17px; line-height: 1.6; }
.post .callout { background: #EEF1FF; }
.post .callout strong { color: #1F3CE0; }
.post .warning { background: #FFF5E6; }
.post .warning strong { color: #8A4B00; }
.post .callout > :last-child, .post .warning > :last-child { margin-bottom: 0; }
.post .checklist { margin: 24px 0 32px; padding: 26px 30px; background: #ffffff; border: 1px solid #E3E6EF; border-radius: 20px; }
.post .checklist h3 { margin: 0 0 10px; font-size: 19px; }
.post .checklist ul { list-style: none; margin: 0; padding: 0; }
.post .checklist li { position: relative; margin: 0; padding: 8px 0 8px 36px; font-size: 17px; line-height: 1.5; }
.post .checklist li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: #EEF1FF url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3CE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.post .signal, .post .step { display: flex; gap: 20px; align-items: flex-start; margin: 16px 0; padding: 28px; background: #F5F5F7; border-radius: 20px; }
.post .signal .num, .post .step .num { flex: none; min-width: 48px; font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: #1F3CE0; }
.post .signal h3, .post .step h3 { margin: 0 0 8px; font-size: 20px; }
.post .signal p, .post .step p { margin: 0; font-size: 16px; line-height: 1.6; color: #424245; }
/* Appel à l'action et lectures liées */
.post .cta-box { margin: 72px 0 0; padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); border-radius: 28px; background: #1F3CE0; color: #ffffff; text-align: center; }
.post .cta-box h2, .post .cta-box h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: #ffffff; }
.post .cta-box p { margin: 0 auto 26px; max-width: 520px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.post .cta-box .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; box-sizing: border-box;
  border-radius: 980px; background: #ffffff; color: #1F3CE0; font-size: 17px; font-weight: 500; text-decoration: none;
}
.post .cta-box .btn:hover { background: #EEF1FF; color: #1F3CE0; text-decoration: none; }
.post .related { margin-top: 56px; }
.post .related h2, .post .related h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #6E6E73; }
.post .related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D2D2D7; }
.post .related li { margin: 0; border-bottom: 1px solid #D2D2D7; }
.post .related a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0;
  font-size: 17px; line-height: 1.35; font-weight: 600; color: #1D1D1F; text-decoration: none;
}
.post .related a:hover { color: #1F3CE0; }
.post .related a > span { flex: none; color: #1F3CE0; }
@media (max-width: 600px) {
  .post-body { padding: 0 20px 80px; }
  .post .toc { padding: 22px 22px; border-radius: 20px; }
  .post .signal, .post .step { flex-direction: column; gap: 10px; padding: 24px; }
  .post table { font-size: 14px; }
  .post th, .post td { padding: 10px 10px; }
  .post .callout, .post .warning { padding: 22px; }
  .post .checklist { padding: 22px; }
}

/* ---------- Pages juridiques (mentions légales, confidentialité) */
.lg { display: block; font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1D1D1F; }
.lg-hero { padding: clamp(64px, 8vw, 112px) 24px clamp(48px, 6vw, 72px); text-align: center; }
.lg-hero-in { max-width: 860px; margin: 0 auto; }
.lg-crumb { margin: 0 0 24px; font-size: 14px; color: #6E6E73; }
.lg-crumb a { color: #6E6E73; text-decoration: none; }
.lg-crumb a:hover { color: #1F3CE0; text-decoration: underline; }
.lg-hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.lg-sub { margin: 20px auto 0; max-width: 720px; font-size: 18px; line-height: 1.5; color: #6E6E73; }
.lg-sub a { color: #1F3CE0; text-decoration: underline; text-underline-offset: 3px; }
.lg-layout {
  max-width: 1120px; margin: 0 auto; padding: 0 24px 112px; box-sizing: border-box;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start;
}
.lg-toc { position: sticky; top: 88px; padding: 22px 24px; background: #F5F5F7; border-radius: 20px; }
.lg-toc-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #6E6E73; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; }
.lg-toc a { display: flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.3; color: #1D1D1F; text-decoration: none; }
.lg-toc a:hover { color: #1F3CE0; }
.lg-body { min-width: 0; max-width: 760px; }
.lg-sec { margin: 0 0 48px; padding: 0 0 48px; border-bottom: 1px solid #D2D2D7; }
.lg-body h2 { margin: 0 0 20px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; scroll-margin-top: 88px; }
.lg-body h3 { margin: 32px 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.lg-body p, .lg-body li { font-size: 17px; line-height: 1.65; color: #424245; }
.lg-body p { margin: 0 0 16px; }
.lg-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.lg-body li { margin: 0 0 8px; }
.lg-body li::marker { color: #1F3CE0; }
.lg-body a { color: #1F3CE0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.lg-body strong { font-weight: 600; color: #1D1D1F; }
.lg-grid { margin: 0 0 8px; padding: 6px 28px; background: #F5F5F7; border-radius: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.lg-grid dt, .lg-grid dd { padding: 15px 0; font-size: 16px; line-height: 1.5; border-bottom: 1px solid #E3E3E8; }
.lg-grid dt { padding-right: 24px; font-weight: 600; color: #1D1D1F; }
.lg-grid dd { margin: 0; color: #424245; }
.lg-grid dt:last-of-type, .lg-grid dd:last-of-type { border-bottom: 0; }
.lg-grid .lg-small { font-size: 14px; color: #6E6E73; }
.lg-badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 980px; background: #E8F7EE; color: #106B35; font-size: 13px; font-weight: 600; }
.lg-updated { margin: 0; font-size: 14px !important; color: #6E6E73 !important; }
@media (max-width: 900px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lg-toc { position: static; }
}
@media (max-width: 600px) {
  .lg-layout { padding: 0 20px 80px; }
  .lg-grid { grid-template-columns: minmax(0, 1fr); padding: 4px 20px; }
  .lg-grid dt { padding: 14px 0 2px; border-bottom: 0; }
  .lg-grid dd { padding: 0 0 14px; }
}

/* ---------- Pages d'erreur (404, 500, 503) */
.err-page { display: block; font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1D1D1F; }
.err-hero { padding: clamp(64px, 9vw, 128px) 24px clamp(80px, 10vw, 128px); text-align: center; }
.err-in { max-width: 720px; margin: 0 auto; }
.err-code { margin: 0; font-size: clamp(96px, 18vw, 184px); line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; color: #1F3CE0; }
.err-badge { display: inline-block; margin: 24px 0 0; padding: 6px 14px; border-radius: 980px; background: #EEF1FF; color: #1F3CE0; font-size: 14px; font-weight: 600; }
.err-in h1 { margin: 20px auto 0; max-width: 680px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; }
.err-lead { margin: 18px auto 0; max-width: 540px; font-size: 19px; line-height: 1.5; color: #6E6E73; }
.err-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.err-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  box-sizing: border-box; border: 0; border-radius: 980px; font: inherit; font-size: 17px; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.err-btn:hover { text-decoration: none; }
.err-btn-primary { background: #1F3CE0; color: #ffffff; }
.err-btn-primary:hover { background: #1830B8; color: #ffffff; }
.err-btn-ghost { background: transparent; color: #1F3CE0; box-shadow: inset 0 0 0 1px #1F3CE0; }
.err-btn-ghost:hover { background: #EEF1FF; }
.err-links { margin: 56px auto 0; padding-top: 32px; max-width: 640px; border-top: 1px solid #D2D2D7; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.err-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; box-sizing: border-box; border-radius: 980px;
  background: #ffffff; box-shadow: 0 0 0 1px #D2D2D7; color: #1D1D1F; font-size: 15px; text-decoration: none;
}
.err-links a:hover { box-shadow: 0 0 0 1px #1F3CE0; color: #1F3CE0; text-decoration: none; }
.err-glyph { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: #EEF1FF; color: #1F3CE0; display: grid; place-items: center; }
.err-glyph svg { width: 44px; height: 44px; animation: err-spin 6s linear infinite; }
@keyframes err-spin { to { transform: rotate(360deg); } }
.err-contact { margin: 40px auto 0; padding-top: 28px; max-width: 540px; border-top: 1px solid #D2D2D7; font-size: 16px; line-height: 1.5; color: #6E6E73; }
.err-contact a { color: #1F3CE0; font-weight: 600; }
.err-bar { background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.err-bar > div { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; }
.err-bar a { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #1D1D1F; text-decoration: none; }
.err-foot { padding: 24px; border-top: 1px solid #D2D2D7; background: #F5F5F7; font-size: 12px; color: #6E6E73; text-align: center; }
@media (prefers-reduced-motion: reduce) { .err-glyph svg { animation: none; } }
@media (max-width: 520px) {
  .err-actions { flex-direction: column; }
  .err-btn { width: 100%; }
}

/* ---------- Accueil sur mobile : chiffres clés, avis et formules en bandeau
   horizontal avec flèches (attribut data-m-slider, flèches ajoutées par site.js). */
.m-slider-nav { display: none; }
@media (max-width: 767px) {
  [data-m-slider] {
    display: flex !important; gap: 14px !important; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: -24px !important; margin-right: -24px !important; max-width: none !important;
    padding: 6px 24px 10px !important; scroll-padding-left: 24px;
  }
  [data-m-slider]::-webkit-scrollbar { display: none; }
  [data-m-slider] > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; box-sizing: border-box; }
  [data-m-slider="chiffres clés"] > * { flex-basis: 72%; }
  .m-slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
  .m-slider-nav button {
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: #E8E8ED;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .m-slider-nav button:disabled { opacity: .35; cursor: default; }
  .m-slider-count { min-width: 44px; text-align: center; font-size: 14px; color: #6E6E73; font-variant-numeric: tabular-nums; }
}
