/* Apelia Socle : thème « volumes ».
   Fond clair froid, encre indigo, une couleur vive par page. Les objets ont une épaisseur :
   scène d'ouverture en 3D CSS, illustrations isométriques à trois tons, boutons et cartes en relief. */

@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f2f3f7;
  --surface: #ffffff;
  --ink: #11132a;
  --ink-2: #2c3056;
  --ink-soft: #43465f;
  --ink-faint: #676a84;
  --line: #dcdeea;
  --line-dark: #c0c4d8;
  --sur-sombre: #eef0f8;
  --sur-sombre-doux: #b6bad2;
  --accent: #f0482d;
  --accent-ink: #c2331b;
  --titre: "Bricolage", "Arial Black", "Helvetica Neue", sans-serif;
  --sans: "Atkinson", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 14px;
  --R: 28px;
  --relief: 0 5px 0 var(--line-dark);
}
body[data-feuille="1"] { --accent: #2f62f5; --accent-ink: #1f49cc; }
body[data-feuille="2"] { --accent: #0a8a5c; --accent-ink: #076c48; }
body[data-feuille="3"] { --accent: #6a45f0; --accent-ink: #5231cf; }
/* Les teintes dérivées se calculent sur body, là où la couleur de la page est connue. */
body {
  --accent-fonce: color-mix(in srgb, var(--accent) 62%, #000);
  --accent-vif: color-mix(in srgb, var(--accent) 62%, #fff);
  --accent-pale: color-mix(in srgb, var(--accent) 9%, #fff);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feuille { max-width: 1280px; margin: 0 auto; }

/* ---------- Typographie ---------- */
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.3vw, 4.6rem); line-height: .98; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.9rem); line-height: 1.02; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.14; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.rubrique, .t-sur {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.rubrique::before, .t-sur::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); box-shadow: 2px 2px 0 var(--accent-fonce); }
.chapo { font-size: clamp(1.125rem, 1.45vw, 1.28rem); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.fin { font-size: .875rem; line-height: 1.5; color: var(--ink-faint); }
.num, .chiffre { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Boutons : des touches ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }
.bouton {
  display: inline-block; padding: 15px 22px;
  background: var(--ink); color: #fff; border: 0; border-radius: 12px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--accent);
  transition: transform .12s, box-shadow .12s;
}
.bouton:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--accent); }
.bouton:active { transform: translateY(5px); box-shadow: 0 0 0 var(--accent); }
.bouton-trait { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 5px 0 var(--line-dark); }
.bouton-trait:hover { color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 3px 0 var(--line-dark); }
.renvoi { font-weight: 700; }
.renvoi::after { content: " \2192"; }

/* ---------- En-tête ---------- */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; padding: 20px var(--gutter); }
.marque { text-decoration: none; }
.marque-nom, .pied .pied-titre { font: 800 1.9rem/1 var(--titre); letter-spacing: -.045em; }
.marque-nom i, .pied .pied-titre i { font-style: normal; color: var(--accent); }
.barre-liens { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.barre-liens a { text-decoration: none; font-size: .9375rem; font-weight: 700; padding: 6px 0; border-bottom: 3px solid transparent; }
.barre-liens a:hover, .barre-liens a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.barre-liens .appel a { padding: 12px 16px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; box-shadow: 0 4px 0 var(--accent); transition: transform .12s, box-shadow .12s; display: inline-block; }
.barre-liens .appel a:hover, .barre-liens .appel a[aria-current="page"] { color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--accent); }

/* ---------- Sections ---------- */
.section, .t-situations, .t-places { padding: clamp(44px, 6.5vw, 96px) var(--gutter); }
.section-serree { padding-block: clamp(32px, 4vw, 56px); }
.section-hachee { background: var(--surface); border-radius: var(--R); margin-inline: clamp(8px, 1.6vw, 20px); padding-inline: calc(var(--gutter) - clamp(8px, 1.6vw, 20px)); }
.titre-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.titre-section > div > p:last-child, .titre-section > p:last-child { margin-bottom: 0; }

/* ---------- Illustrations isométriques ---------- */
.iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso polygon { stroke: rgba(17, 19, 42, .16); stroke-width: 1; stroke-linejoin: round; }
.i-ah { fill: var(--accent); } .i-ag { fill: color-mix(in srgb, var(--accent) 76%, #000); } .i-ad { fill: color-mix(in srgb, var(--accent) 56%, #000); }
.i-nh { fill: #fff; } .i-ng { fill: #d5d8e8; } .i-nd { fill: #b3b8d0; }
.i-eh { fill: #2c3056; } .i-eg { fill: #1a1d3a; } .i-ed { fill: #0b0d20; }
.iso .i-rainure { fill: #0b0d20; stroke: none; }
.iso .i-trait { fill: none; stroke: var(--ink-faint); stroke-width: 1.4; stroke-dasharray: 4 5; }
.iso .i-lien { fill: none; stroke: var(--accent-vif); stroke-width: 2; }
.iso .i-vide { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.t-illu { margin-top: clamp(20px, 3vw, 40px); max-width: 400px; }

/* ---------- Ouverture ---------- */
.t-ouverture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 88px); overflow-x: clip; }
.t-ouverture h1 { margin-bottom: 24px; }
.t-nom { margin: 26px 0 0; display: grid; gap: 8px; max-width: 26em; }
.t-nom label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.t-nom input { width: 100%; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); font: 800 1.3rem/1.1 var(--titre); letter-spacing: -.02em; box-shadow: var(--relief); }
.t-nom input::placeholder { color: var(--ink-faint); font: 400 1.0625rem/1.4 var(--sans); letter-spacing: 0; opacity: 1; }
.t-nom input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 5px 0 var(--accent-fonce); }

/* La scène : la plateforme du porteur, debout sur le socle. Le désordre flotte, puis se range. */
.t-scene { min-width: 0; }
.t-scene-etat { margin: 0 0 18px; font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: grid; }
.t-scene-etat span { grid-area: 1 / 1; transition: opacity .5s; }
.t-scene-etat b { color: var(--accent-ink); font-weight: 500; }
.t-scene .e-avant { opacity: 0; }
.t-monde { position: relative; perspective: 1900px; perspective-origin: 40% 0%; padding: 6px 52px 84px 0; }
.t-monde::after { content: ""; position: absolute; left: 4%; right: 0; bottom: 14px; height: 60px; background: radial-gradient(closest-side, rgba(17, 19, 42, .26), transparent); z-index: -1; }
.t-groupe { transform-style: preserve-3d; transform: rotateX(-7deg) rotateY(-15deg); }
.t-plateforme { position: relative; margin: 0 20px; transform-style: preserve-3d; background: var(--surface); outline: 2px dashed transparent; outline-offset: -1px; transition: background-color .6s, outline-color .6s; }
.t-plateforme::after { content: ""; position: absolute; left: 100%; top: 0; width: 18px; height: 100%; background: var(--line-dark); transform-origin: left; transform: rotateY(90deg); transition: opacity .6s; }
.t-plateforme-tete { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--accent); color: #fff; transition: opacity .6s; }
.t-sigle { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--accent-ink); font: 800 1.15rem/1 var(--titre); text-transform: uppercase; box-shadow: 0 3px 0 rgba(0, 0, 0, .22); }
.t-plateforme-nom { flex: 0 0 auto; max-width: 62%; font: 800 1.3rem/1.1 var(--titre); letter-spacing: -.02em; overflow-wrap: anywhere; }
.t-plateforme-menu { margin-left: auto; min-width: 0; font: 400 .5938rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: right; opacity: .9; }
.t-bribes { margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.t-bribes li { display: grid; align-items: center; min-height: 64px; padding: 9px 16px; border-top: 1px solid var(--line); transition: transform 1s cubic-bezier(.2, .8, .2, 1), border-color .6s; }
.t-bribes li:first-child { border-top: 0; }
.t-bribes li > span { grid-area: 1 / 1; transition: opacity .55s; }
.b-brut { opacity: 0; justify-self: start; max-width: 92%; padding: 10px 14px; font-size: .9375rem; line-height: 1.3; border-radius: 10px; background: #fff; box-shadow: 0 5px 0 var(--line-dark), 0 18px 22px rgba(17, 19, 42, .16); }
.b-net { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 12px; font-size: .9688rem; line-height: 1.3; }
.b-net b { grid-row: span 2; font: 500 .6563rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.b-net i { font: 400 .75rem/1.4 var(--mono); font-style: normal; color: var(--ink-faint); }
[data-genre="courriel"] .b-brut, [data-genre="fichier"] .b-brut { font-family: var(--mono); font-size: .8125rem; }
[data-genre="bulle"] .b-brut { background: #d3f2c2; box-shadow: 0 5px 0 #8fc474, 0 18px 22px rgba(17, 19, 42, .16); border-radius: 4px 18px 18px 18px; }
[data-genre="fichier"] .b-brut { background: #d9e6fb; box-shadow: 0 5px 0 #9db6e2, 0 18px 22px rgba(17, 19, 42, .16); }
[data-genre="note"] .b-brut { background: #ffe26b; box-shadow: 0 5px 0 #cfae2c, 0 18px 22px rgba(17, 19, 42, .16); border-radius: 2px; }
.t-bribes li:nth-child(1) { --dz: 90px; } .t-bribes li:nth-child(2) { --dz: 150px; transition-delay: .06s; }
.t-bribes li:nth-child(3) { --dz: 40px; transition-delay: .12s; } .t-bribes li:nth-child(4) { --dz: 120px; transition-delay: .18s; }
.t-bribes li:nth-child(5) { --dz: 60px; transition-delay: .24s; } .t-bribes li:nth-child(6) { --dz: 170px; transition-delay: .3s; }
.t-scene.desordre .e-avant { opacity: 1; }
.t-scene.desordre .e-apres { opacity: 0; }
.t-scene.desordre .t-plateforme { background-color: transparent; outline-color: var(--line-dark); }
.t-scene.desordre .t-plateforme::after, .t-scene.desordre .t-plateforme-tete { opacity: 0; }
.t-scene.desordre .t-bribes li { transform: translate3d(var(--dx), var(--dy), var(--dz)) rotate(var(--r)); border-top-color: transparent; }
.t-scene.desordre .b-brut { opacity: 1; }
.t-scene.desordre .b-net { opacity: 0; }
.t-socle { position: relative; height: 62px; transform-style: preserve-3d; transform: translateZ(75px); }
.t-socle-face { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 22px; background: var(--ink); color: var(--sur-sombre); font: 500 .6875rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.t-socle-dessus { position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; background: var(--ink-2); transform-origin: bottom; transform: rotateX(90deg); }
.t-socle-cote { position: absolute; left: 100%; top: 0; width: 150px; height: 100%; background: #07081a; transform-origin: left; transform: rotateY(90deg); }
.t-scene-action { margin: 0; min-height: 34px; }
.t-bascule { padding: 9px 14px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); font: 700 .875rem/1.2 var(--sans); cursor: pointer; box-shadow: 0 0 0 1.5px var(--ink) inset, 0 4px 0 var(--line-dark); transition: transform .12s, box-shadow .12s; }
.t-bascule:hover { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 2px 0 var(--line-dark); }

/* ---------- Thèses ---------- */
.t-these { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px clamp(24px, 5vw, 80px); padding: clamp(44px, 6.5vw, 96px) var(--gutter); }
.t-numero { grid-column: 1 / -1; justify-self: start; margin: 0; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; font: 800 1.6rem/1 var(--titre); box-shadow: 0 6px 0 var(--accent); }
.t-these-corps { font-size: 1.0938rem; }
.t-these-corps > p { max-width: 36em; }
.t-liste, .regles { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.t-liste li, .regles li { position: relative; padding-left: 26px; }
.t-liste li::before, .regles li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--accent); box-shadow: 2px 2px 0 var(--accent-fonce); }
.t-gains { margin: 26px 0 0; display: grid; gap: 16px; }
.t-gains > div, .inclus li, .encart, .fiche-id, .etapes li, .objections details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--relief); }
.t-gains > div { padding: 18px 20px; }
.t-gains dt { font: 800 1.2rem/1.15 var(--titre); letter-spacing: -.02em; margin-bottom: 6px; }
.t-gains dd { margin: 0; font-size: .9688rem; color: var(--ink-soft); }

/* ---------- Les quatre présences ---------- */
.t-canaux-section { margin-inline: clamp(8px, 1.6vw, 20px); padding: 0 calc(var(--gutter) - clamp(8px, 1.6vw, 20px)) clamp(36px, 5vw, 64px); border-radius: var(--R); background: var(--ink); color: var(--sur-sombre); }
.t-canaux-section .t-these { padding-inline: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.t-canaux-section .t-sur, .t-canaux-section h2 em { color: var(--accent-vif); }
.t-canaux-section .t-numero { background: #fff; color: var(--ink); }
.t-canaux { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.t-canaux li { perspective: 900px; }
.t-canaux h3 { margin: 0 0 6px; }
.t-canaux h3::before { content: ""; display: block; width: 78%; height: 26px; margin: -14px auto 26px; border-radius: 50%; background: #3a3f6e; box-shadow: 0 8px 0 #05061a; }
.t-canaux li > p { margin: 0; font-size: .9375rem; color: var(--sur-sombre-doux); }
.t-terme { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: var(--sur-sombre); font: 400 .625rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.t-ecran { position: relative; z-index: 1; height: 236px; padding: 14px; border-radius: 12px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 9px; overflow: hidden; font-size: .8438rem; line-height: 1.35; transform: rotateX(-5deg) rotateY(-17deg); box-shadow: 9px 2px 0 #8d93b8; }
.t-canaux li:nth-child(even) .t-ecran { transform: rotateX(-5deg) rotateY(17deg); box-shadow: -9px 2px 0 #8d93b8; }
.t-ecran p { margin: 0; }
.t-ecran-web { padding-top: 0; }
.t-url { margin: 0 -14px 4px !important; padding: 8px 14px; background: var(--line); font: 400 .6875rem/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ecran-tel { width: 60%; margin: 0 auto; border: 5px solid #05061a; border-radius: 26px; }
.t-ecran-marque { display: flex; align-items: center; gap: 8px; font: 800 1rem/1.1 var(--titre); letter-spacing: -.02em; overflow-wrap: anywhere; }
.t-ecran-marque .t-sigle { width: 22px; height: 22px; border-radius: 6px; font-size: .8rem; background: var(--accent); color: #fff; box-shadow: 0 2px 0 var(--accent-fonce); }
.t-annonce { padding: 9px 10px; border-radius: 8px; background: var(--accent-pale); }
.t-annonce b { display: block; font: 500 .5938rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.t-ligne { height: 7px; border-radius: 4px; background: var(--line); }
.t-ligne-courte { width: 60%; }
.t-onglets { margin-top: auto !important; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--line); }
.t-onglets i { width: 14px; height: 14px; border-radius: 4px; background: var(--line-dark); }
.t-onglets i:first-child { background: var(--accent); }
.t-question { align-self: flex-end; max-width: 88%; padding: 8px 11px; background: var(--ink); color: #fff; border-radius: 12px 12px 2px 12px; }
.t-reponse { max-width: 94%; }
.t-source { display: block; margin-bottom: 4px; font: 500 .625rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.t-carte-ia { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; box-shadow: 0 5px 0 var(--line-dark), 0 14px 18px rgba(17, 19, 42, .18); }
.t-boutons { display: flex; flex-wrap: wrap; gap: 6px; }
.t-boutons span { padding: 5px 9px; border-radius: 6px; background: var(--line); font: 700 .6875rem/1.3 var(--sans); }
.t-boutons span:first-child { background: var(--ink); color: #fff; }
.t-note { margin: clamp(24px, 3vw, 40px) 0 0; font: 400 .75rem/1.5 var(--mono); color: var(--sur-sombre-doux); }

/* ---------- Les trois places ---------- */
.t-places-tete { max-width: 46em; margin-bottom: clamp(28px, 4vw, 52px); }
.t-places-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.t-places-liste a { --a: #6a45f0; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 var(--line-dark); text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.t-places-liste a:nth-child(2) { --a: #2f62f5; }
.t-places-liste a:nth-child(3) { --a: #0a8a5c; }
.t-places-liste a:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 13px 0 var(--a); }
.t-place-illu { --accent: var(--a); display: flex; align-items: flex-end; justify-content: center; height: 150px; margin: 0 0 12px; }
.t-place-illu .iso { width: auto; height: 100%; }
.t-place-qui { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.t-places-liste p { margin: 0; color: var(--ink-soft); font-size: .9688rem; }
.t-places-liste .renvoi { margin-top: auto; padding-top: 10px; color: var(--a); }

.t-exemple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 5vw, 72px); margin: 0 clamp(8px, 1.6vw, 20px); padding: clamp(32px, 4.5vw, 60px) calc(var(--gutter) - clamp(8px, 1.6vw, 20px)); border-radius: var(--R); background: var(--surface); box-shadow: 0 8px 0 var(--line-dark); }
.t-exemple p { max-width: 38em; }

/* ---------- Situations (avant, après) et questions ---------- */
.constats { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 20px; }
.constats > li { counter-increment: c; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px 22px; align-items: start; }
.constats > li::before { content: counter(c); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 1.3rem/1 var(--titre); box-shadow: 0 5px 0 var(--accent); }
.constats h3 { margin: 8px 0 12px; }
.constats p { margin: 0; color: var(--ink-soft); }
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.avant-apres > div { padding: 14px 16px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.avant-apres > div + div { background: var(--accent-pale); border-color: color-mix(in srgb, var(--accent) 30%, #fff); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 38%, #fff); }
.avant-apres b { display: block; font: 500 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-faint); }
.avant-apres > div + div b { color: var(--accent-ink); }
.avant-apres p { font-size: .9688rem; color: var(--ink); }

.objections { display: grid; gap: 14px; max-width: 60em; }
.objections summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; font: 800 clamp(1.05rem, 1.5vw, 1.2rem)/1.2 var(--titre); letter-spacing: -.02em; }
.objections summary::-webkit-details-marker { display: none; }
.objections summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 1.1rem/1 var(--mono); box-shadow: 0 3px 0 var(--accent); }
.objections details[open] summary::after { content: "\2212"; transform: translateY(2px); box-shadow: 0 1px 0 var(--accent); }
.objections details > div { padding: 0 18px 18px; max-width: 46em; color: var(--ink-soft); }
.objections details > div p:last-child { margin-bottom: 0; }

/* ---------- Offre et prix ---------- */
.inclus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inclus li { padding: 20px 22px; font-size: .9375rem; color: var(--ink-soft); }
.inclus strong, .etapes strong { display: block; margin-bottom: 6px; font: 800 1.15rem/1.15 var(--titre); letter-spacing: -.02em; color: var(--ink); }
.table-cadre { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--relief); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font: 500 .6875rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg); }
tbody th { font: 800 1.15rem/1 var(--titre); letter-spacing: -.02em; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.tables { margin-top: 36px; }
.regles { grid-template-columns: 1fr 1fr; gap: 14px 48px; font-size: .9688rem; color: var(--ink-soft); }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: e; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.etapes li { counter-increment: e; padding: 18px 18px 20px; font-size: .9063rem; color: var(--ink-soft); }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 10px; background: var(--ink); color: #fff; font: 800 1.1rem/1 var(--titre); box-shadow: 0 4px 0 var(--accent); }
.etapes p { margin: 0; }
.garanties { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.garanties li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: var(--ink-soft); font-size: .9688rem; }
.garanties strong { font: 800 1.15rem/1.15 var(--titre); letter-spacing: -.02em; color: var(--ink); }
.personne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.fiche-id { padding: 24px 26px; background: var(--bg); }
.fiche-id h3 { margin-bottom: 4px; }
.fiche-id dl { display: grid; grid-template-columns: auto 1fr; margin: 18px 0 0; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.fiche-id dt, .fiche-id dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.fiche-id dt { padding-right: 18px; font: 400 .6875rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Appel final ---------- */
.appel-final { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(44px, 6.5vw, 96px) var(--gutter); }
.appel-final > div + div { padding: clamp(28px, 3.5vw, 44px); border-radius: var(--R); background: var(--ink); color: var(--sur-sombre); box-shadow: 0 10px 0 var(--accent); }
.appel-final .prix-appel { font: 800 clamp(3rem, 6vw, 4.6rem)/.9 var(--titre); letter-spacing: -.04em; margin: 0 0 10px; }
.appel-final .prix-appel small { font: 400 .8125rem/1.5 var(--mono); letter-spacing: 0; display: block; margin-top: 14px; color: var(--sur-sombre-doux); }
.appel-final > div + div a { color: #fff; }
.appel-final > div + div .bouton { background: var(--accent); margin-top: 20px; box-shadow: 0 5px 0 var(--accent-fonce); }
.appel-final > div + div .bouton:hover { box-shadow: 0 3px 0 var(--accent-fonce); }

/* ---------- Dimensionneur et formulaire ---------- */
.dimension { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 var(--line-dark); overflow: hidden; }
.dimension > div { padding: 28px 30px; }
.dimension > div + div { background: var(--ink); color: var(--sur-sombre); }
.dimension > div + div .rubrique { color: var(--accent-vif); }
.dimension > div + div .fin { color: var(--sur-sombre-doux); }
.reglage { margin-bottom: 26px; }
.reglage label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.reglage output { font: 800 2.1rem/1 var(--titre); letter-spacing: -.03em; text-transform: none; color: var(--accent); }
.reglage select { width: 100%; }
.js .reglage select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: var(--line); box-shadow: 0 2px 0 var(--line-dark) inset; }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 6px; background: var(--line); box-shadow: 0 2px 0 var(--line-dark) inset; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 9px; box-shadow: 0 5px 0 var(--accent-fonce); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; background: var(--accent); border: 0; border-radius: 9px; box-shadow: 0 5px 0 var(--accent-fonce); }
.resultat-niveau { font: 800 clamp(2.4rem, 4.6vw, 3.6rem)/.95 var(--titre); letter-spacing: -.04em; color: var(--accent-vif); margin: 6px 0 18px; }
.resultat dl { margin: 0; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid rgba(255, 255, 255, .2); }
.resultat dt, .resultat dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: .9375rem; }
.resultat dd { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.formulaire { display: grid; gap: 18px; }
.rang { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9375rem; }
.champ label span { color: var(--ink-faint); font-weight: 400; }
.champ input, .champ select, textarea { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line-dark); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--sans); }
textarea { min-height: 120px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.encart { padding: 24px 26px; }
.encart h3 { margin-bottom: 12px; }
.encart ul { margin: 0 0 18px; padding-left: 1.1em; font-size: .9375rem; color: var(--ink-soft); }
.encart + .encart { margin-top: 24px; }

/* ---------- Texte courant ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 44px 0 14px; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; margin-bottom: 1em; }

/* ---------- Pied ---------- */
.pied { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px clamp(20px, 4vw, 56px); margin: clamp(24px, 4vw, 48px) clamp(8px, 1.6vw, 20px) clamp(8px, 1.6vw, 20px); padding: clamp(32px, 4.5vw, 56px) calc(var(--gutter) - clamp(8px, 1.6vw, 20px)); border-radius: var(--R); background: var(--ink); color: var(--sur-sombre); font-size: .9063rem; }
.pied a { color: var(--sur-sombre); }
.pied a:hover { color: #fff; text-decoration-thickness: 2px; }
.pied h2 { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; color: var(--sur-sombre-doux); }
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pied p { color: var(--sur-sombre-doux); max-width: 30em; }
.pied .pied-titre { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.pied .pied-titre i { color: var(--accent-vif); }

/* ---------- Petits écrans ---------- */
@media (max-width: 1020px) {
  .t-ouverture, .appel-final, .personne, .tables, .contact-grille { grid-template-columns: 1fr; }
  .t-canaux { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .t-plateforme-menu { display: none; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .inclus { grid-template-columns: 1fr 1fr; }
  .pied { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .barre-liens { gap: 4px 16px; }
  .barre-liens a { font-size: .875rem; }
  .titre-section, .t-these, .t-places-liste, .t-exemple, .dimension, .rang, .avant-apres, .inclus, .etapes, .regles, .pied { grid-template-columns: 1fr; }
  .t-canaux { grid-template-columns: 1fr; }
  .t-canaux .t-ecran { max-width: 300px; margin-inline: auto; }
  .t-ecran-tel { width: 190px; }
  .t-illu { max-width: 300px; }
  .constats > li { grid-template-columns: 1fr; }
  .garanties li { grid-template-columns: 1fr; }
  .b-net { grid-template-columns: 1fr; }
  .b-net b { grid-row: auto; }
  .t-monde { padding: 6px 30px 64px 0; perspective: 1100px; }
  .t-groupe { transform: rotateX(-6deg) rotateY(-11deg); }
  .t-plateforme { margin: 0 14px; }
  .t-socle { transform: translateZ(50px); height: 52px; }
  .t-socle-dessus { height: 100px; }
  .t-socle-cote { width: 100px; }
  .t-scene.desordre .t-bribes li { transform: translate3d(calc(var(--dx) * .3), var(--dy), calc(var(--dz) * .5)) rotate(var(--r)); }
}

@media print {
  body { background: #fff; }
  .barre, .actions, .t-scene-action { display: none; }
}
