/* Pages mères : une paroi en haut, puis des dalles qui viennent l'une sur l'autre. Le texte reste dans le flux : rien ne peut se chevaucher. */
:root { color-scheme: dark; --k: #090810; --r: #ff1a56; --rc: #ff5c8a; --w: #f8f8fa; --d: #e6dfe5; --j: #ffd400;
  --titre: "Archivo Black", "Arial Black", sans-serif; --texte: "Bricolage Grotesque", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --g: clamp(16px, 4vw, 52px); --gl: max(var(--g), env(safe-area-inset-left, 0px)); --gr: max(var(--g), env(safe-area-inset-right, 0px));
  --scotch: polygon(0 5%, 1.4% 0, 100% 4%, 98.8% 50%, 100% 97%, 1% 100%, 0 62%, 1.1% 30%); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--k); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--k); color: var(--w); font: 500 18px/1.5 var(--texte); }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--j); outline-offset: 3px; }

/* En-tête et menu */
.haut { position: fixed; top: 0; left: 0; right: 0; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gr) 10px var(--gl); pointer-events: none; }
.haut > *, .droite > * { pointer-events: auto; }
.droite { display: flex; align-items: center; gap: 8px; }
.pilule { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(248,248,250,.24); border-radius: 22px; background: var(--k); color: var(--w); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.pilule:hover { background: var(--j); border-color: var(--j); color: var(--k); }
.logo { font-size: 20px; letter-spacing: -.03em; }
.logo i { font-style: normal; color: var(--r); }
.logo:hover i { color: inherit; }
.tel-m { display: none; }
#menu { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 72px var(--gr) 24px var(--gl); background: var(--k); overflow: auto; }
#menu a { display: block; color: var(--w); text-decoration: none; font: 400 clamp(24px, min(5vw, 6.4vh), 58px)/1.14 var(--titre); letter-spacing: -.035em; text-transform: uppercase; }
#menu a:hover, #menu a[aria-current="page"] { color: var(--j); }
#fermer { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: var(--gr); }

/* Couleurs d'une paroi ou d'une dalle */
[data-t="noir"] { --c: var(--w); --t: var(--j); --halo: rgba(9,8,16,.85); --et: var(--j); --et-c: var(--k); --top: var(--r); --top-c: var(--k); }
[data-t="rose"] { --c: var(--k); --t: var(--k); --halo: rgba(255,70,120,.95); --et: var(--k); --et-c: var(--j); --top: var(--w); --top-c: var(--k); }
[data-t="blanc"] { --c: var(--k); --t: var(--r); --halo: rgba(248,248,250,.9); --et: var(--j); --et-c: var(--k); --top: var(--r); --top-c: var(--k); }

/* La paroi du haut */
.tete { position: relative; min-height: 84vh; min-height: 84svh; overflow: hidden; color: var(--c); background: var(--k); padding: calc(clamp(72px, 11vh, 104px) + env(safe-area-inset-top, 0px)) var(--gr) clamp(170px, 26vh, 250px) var(--gl); }
.tete canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.tete-txt { position: relative; }
.pb { display: inline-block; max-width: 100%; margin: 0 0 .42em; padding: .3em .62em .34em; box-sizing: border-box; background: var(--j); color: var(--k); font: 400 calc(clamp(23px, min(3.5vw, 6.2vh), 60px) * var(--e2, 1))/1.06 var(--titre); letter-spacing: -.025em; clip-path: polygon(0 5%, 1.4% 0, 100% 4%, 98.8% 50%, 100% 97%, 1% 100%, 0 62%, 1.1% 30%); transform: rotate(-1.4deg); transform-origin: 50% 50%; }
@media (max-width: 700px) { .pb { font-size: calc(clamp(23px, 6.2vw, 34px) * var(--e2, 1)); } }
.cle { background: linear-gradient(var(--r), var(--r)) no-repeat 0 96% / 100% .15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tete .pb { animation: deroule .62s cubic-bezier(.2,.8,.2,1) .3s backwards; }
.tete .cle { animation: souligne .5s ease .86s backwards; }
@keyframes deroule { from { clip-path: polygon(0 5%, 0 0, 0 4%, 0 50%, 0 97%, 0 100%, 0 62%, 0 30%); transform: rotate(-3.4deg) scale(1.05); } 72% { transform: rotate(-.5deg) scale(1.02); } to { clip-path: polygon(0 5%, 1.4% 0, 100% 4%, 98.8% 50%, 100% 97%, 1% 100%, 0 62%, 1.1% 30%); transform: rotate(-1.4deg); } }
@keyframes souligne { from { background-size: 0% .15em; } to { background-size: 100% .15em; } }
@media (prefers-reduced-motion: reduce) { .tete .pb, .tete .cle { animation: none; } }
.ti { font: 400 calc(clamp(36px, 8.2vw, 124px) * var(--e, 1))/.94 var(--titre); letter-spacing: -.035em; text-transform: uppercase; color: transparent; text-wrap: balance; }
.sans-gl .ti { color: var(--c); }
.ti .acc { display: block; }
.ti .mot { white-space: nowrap; }
.dit { display: block; width: fit-content; max-width: min(42rem, 100%); box-sizing: border-box; margin-top: 12px; padding: .36em .66em .4em; background: var(--k); color: var(--w); font-size: clamp(18px, min(2.1vw, 3.6vh), 30px); line-height: 1.24; font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.sans-gl .tete[data-t="noir"] { background: url(../img/roche-noir.webp) center / cover; }
.sans-gl .tete[data-t="rose"] { background: url(../img/roche-rose.webp) center / cover; }
.sans-gl .tete[data-t="blanc"] { background: url(../img/roche-blanc.webp) center / cover; }

/* Le scotch de salle */
.scotch { display: inline-block; padding: 10px 16px; background: var(--et); color: var(--et-c); font-weight: 800; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.15; text-decoration: none; clip-path: var(--scotch); transform: rotate(-1.2deg); }
a.scotch:hover { background: var(--top); color: var(--top-c); }

/* Les dalles */
.dalle { position: relative; margin-top: -24px; padding: clamp(66px, 8vw, 110px) var(--gr) clamp(60px, 7vw, 100px) var(--gl); color: var(--c); background-size: cover; background-position: center; clip-path: var(--bord); }
.js .dalle { position: sticky; }
.dalle::before { content: ""; position: absolute; inset: 0; background: var(--teinte); pointer-events: none; }
.dalle > * { position: relative; }
.dalle[data-t="noir"] { --teinte: rgba(9,8,16,.8); background-color: var(--k); background-image: url(../img/roche-noir.webp); }
.dalle[data-t="rose"] { --teinte: rgba(255,26,86,.94); background-color: var(--r); background-image: url(../img/roche-rose.webp); }
.dalle[data-t="blanc"] { --teinte: rgba(248,248,250,.93); background-color: var(--w); background-image: url(../img/roche-blanc.webp); }
h2 { max-width: 20em; font: 400 clamp(30px, 5.2vw, 74px)/.96 var(--titre); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.chapeau { max-width: 44rem; margin-top: 14px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.38; font-weight: 700; }
.bloc { margin-top: clamp(26px, 3.6vw, 46px); }

/* La voie : les étapes montent, en escalier */
.voie { display: grid; gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(26px, 3.6vw, 46px); list-style: none; }
.voie li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; max-width: 52rem; margin-left: calc(var(--i, 0) * clamp(0px, 8.5vw, 190px)); }
.voie .prise { grid-row: span 2; width: clamp(44px, 4.6vw, 62px); height: auto; fill: var(--r); transform: rotate(calc(var(--i, 0) * 47deg)); filter: drop-shadow(0 6px 6px rgba(9,8,16,.45)); }
[data-t="rose"] .voie .prise { fill: var(--k); }
.voie .scotch { justify-self: start; }
.voie li:last-child .scotch { background: var(--top); color: var(--top-c); }
.voie p { max-width: 42rem; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(26px, 3.6vw, 46px); }
.carte { min-width: 0; padding: clamp(18px, 2vw, 26px); border-radius: 6px; background: var(--k); color: var(--w); outline: 1px solid rgba(248,248,250,.14); scroll-margin-top: 80px; }
.carte h3 { font: 400 clamp(21px, 2vw, 28px)/1.06 var(--titre); letter-spacing: -.025em; text-transform: uppercase; }
.carte p { margin-top: 10px; font-size: 17px; line-height: 1.42; color: var(--d); }
.carte ul { margin-top: 12px; list-style: none; font-size: 16px; line-height: 1.35; }
.carte li { position: relative; padding: 5px 0 5px 18px; }
.carte li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 7px; border-radius: 45% 55% 50% 50%; background: var(--r); }
.carte .scotch { margin-top: 14px; --et: var(--j); --et-c: var(--k); --top: var(--r); --top-c: var(--k); }
.carte.large { grid-column: 1 / -1; }
.lien-c { display: inline-block; margin-top: 12px; color: var(--j); font-weight: 700; }
.chiffre { display: block; margin-bottom: 8px; font: 400 clamp(40px, 5.6vw, 78px)/.96 var(--titre); letter-spacing: -.04em; color: var(--j); }
.etiq { display: block; margin-bottom: 8px; font: 700 13px var(--mono); color: var(--rc); }
.manque { color: var(--j); font-family: var(--mono); font-size: 14px; }

/* Tableau comparatif */
.tableau { margin-top: clamp(26px, 3.6vw, 46px); overflow-x: auto; border-radius: 6px; background: var(--k); color: var(--w); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.35; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid rgba(248,248,250,.16); }
thead th { border-top: 0; font: 400 clamp(15px, 1.5vw, 19px)/1.1 var(--titre); text-transform: uppercase; letter-spacing: -.02em; color: var(--j); }
tbody th { font-weight: 800; }

/* Photo : noir et rose, sans texte dessus */
.photo { position: relative; margin-top: -24px; background: var(--r); clip-path: var(--bord); }
.js .photo { position: sticky; top: 0; }
.photo img { width: 100%; height: clamp(260px, 62vh, 760px); object-fit: cover; object-position: var(--pos, 50% 50%); filter: brightness(var(--lum, 1.1)) contrast(1.9); mix-blend-mode: multiply; }

/* Rangées de sites : de gauche à droite */
.rang { display: flex; gap: clamp(12px, 1.6vw, 20px); margin: 18px calc(var(--gr) * -1) 0 calc(var(--gl) * -1); padding: 4px var(--gr) 14px var(--gl); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--gl); }
.site { flex: 0 0 clamp(240px, 27vw, 350px); min-width: 0; scroll-snap-align: start; border-radius: 6px; overflow: hidden; background: var(--k); color: var(--w); text-decoration: none; outline: 1px solid rgba(248,248,250,.16); }
.site img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #13121f; }
.site div { padding: 11px 13px 14px; font-size: 14px; line-height: 1.32; color: var(--d); }
.site b { display: block; margin-bottom: 4px; color: var(--w); font-size: 16px; line-height: 1.2; }
.site i { display: block; margin-top: 7px; font: 700 12px var(--mono); color: var(--j); }
a.site { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
a.site:hover, a.site:focus-visible { z-index: 3; outline: 3px solid var(--r); transform: scale(1.07); box-shadow: 0 0 30px 10px var(--r), 0 0 90px 30px rgba(255,26,86,.7), 0 24px 50px rgba(9,8,16,.7); }
.carte:has(.lien-c) { transition: box-shadow .18s ease, outline-color .18s ease; }
.carte:has(.lien-c):hover { outline: 2px solid var(--j); box-shadow: 0 0 30px 8px var(--j), 0 0 70px 20px rgba(255,212,0,.5); }
h3.rubrique { margin-top: clamp(30px, 4vw, 52px); font: 400 clamp(21px, 2.4vw, 32px)/1.05 var(--titre); letter-spacing: -.025em; text-transform: uppercase; scroll-margin-top: 80px; }

/* Questions */
.faq { margin-top: clamp(22px, 3vw, 38px); }
details { border-top: 1.5px solid currentColor; }
details:last-child { border-bottom: 1.5px solid currentColor; }
summary { min-height: 48px; padding: 13px 0; font-weight: 800; font-size: 19px; line-height: 1.25; cursor: pointer; }
details p { padding: 0 0 16px; font-size: 17px; line-height: 1.42; }

/* Blog */
.articles { display: grid; gap: 0; margin-top: clamp(22px, 3vw, 38px); list-style: none; max-width: 60rem; }
.articles li { border-top: 1.5px solid currentColor; }
.articles li:last-child { border-bottom: 1.5px solid currentColor; }
.articles a { display: block; padding: 17px 0; text-decoration: none; }
.articles a:hover b { color: var(--t); }
.articles b { display: block; font-size: clamp(19px, 1.9vw, 25px); font-weight: 800; line-height: 1.16; }
.articles span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.38; }
.articles time { display: block; margin-top: 6px; font: 700 13px var(--mono); }

/* À propos */
.portrait { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(20px, 3vw, 44px); align-items: center; }
.tirage { max-width: 420px; background: var(--r); border-radius: 6px; overflow: hidden; }
.tirage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }

/* Contact */
.moyens-c { display: grid; gap: 6px; margin-top: 18px; }
.numero { display: block; font: 400 clamp(30px, 6.4vw, 92px)/1 var(--titre); letter-spacing: -.035em; user-select: all; }
.form { display: grid; gap: 14px; max-width: 42rem; margin-top: clamp(22px, 3vw, 38px); }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: 16px; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid currentColor; border-radius: 6px; background: rgba(248,248,250,.08); color: inherit; font-weight: 500; font-size: 17px; }
.form textarea { min-height: 150px; resize: vertical; }
.form button { justify-self: start; min-height: 50px; padding: 0 22px; border: 0; background: var(--et); color: var(--et-c); font-weight: 800; clip-path: var(--scotch); }
.form small { font-size: 14px; line-height: 1.35; }
#retour { font-weight: 800; }

/* Le sommet : le texte, puis la forêt, jamais l'un sur l'autre */
.pied { position: relative; margin-top: -24px; color: var(--k); background: radial-gradient(circle at 74% calc(100% - clamp(90px, 13vw, 200px)), var(--j) 0, var(--j) clamp(80px, 13vw, 210px), transparent calc(clamp(80px, 13vw, 210px) + 1px)), var(--r); clip-path: var(--bord); }
.pied .acc { color: var(--w); }
.pied-txt { padding: clamp(70px, 9vw, 120px) var(--gr) clamp(20px, 3vw, 36px) var(--gl); }
.pied-txt h2 { font-size: clamp(38px, 8.4vw, 118px); }
.pied .numero { width: fit-content; margin-top: .24em; padding: .14em .34em .16em; background: var(--j); color: var(--k); font-size: clamp(27px, 5.8vw, 82px); text-decoration: none; clip-path: var(--scotch); transform: rotate(-1.4deg); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--k); color: var(--j); font-weight: 800; text-decoration: none; clip-path: var(--scotch); }
.pied svg { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.pied .loin { fill: #3a1330; }
.pied .pres { fill: #090810; }
.bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding: 26px var(--gr) calc(26px + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--k); color: var(--d); font-size: 15px; }
.bas ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; }
.bas a { display: inline-flex; align-items: center; min-height: 40px; }

@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .tel-h { display: none; }
  .tel-m { display: inline-flex; }
  .voie li { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .dalle, .js .photo { position: relative; } }

/* Le générateur de workflow */
.dalle .etiq-outil { display: inline-block; margin-bottom: 12px; padding: 7px 12px; background: var(--j); color: var(--k); font: 700 14px/1.1 var(--mono); clip-path: var(--scotch); transform: rotate(-1.2deg); }
.wf { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); align-items: start; margin-top: clamp(22px, 3vw, 40px); }
.wf-panneau, .hmai-wf-result { min-width: 0; padding: clamp(16px, 2vw, 26px); border-radius: 6px; background: var(--k); color: var(--w); outline: 1px solid rgba(248,248,250,.24); scroll-margin-top: 70px; }
.wf-gr { margin-bottom: 18px; }
.wf-lib { display: block; margin-bottom: 8px; font: 700 14px/1.2 var(--mono); color: var(--j); }
.wf-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf-choix.un { grid-template-columns: minmax(0, 1fr); }
.hmai-sel-btn, .hmai-wf-select { min-height: 48px; padding: 9px 12px; border: 2px solid var(--w); border-radius: 4px; background: var(--k); color: var(--w); font-weight: 700; font-size: 16px; line-height: 1.2; text-align: left; }
.hmai-wf-select { width: 100%; }
.hmai-wf-select.a-choisir { border-color: var(--r); }
.hmai-sel-btn.active { border-color: var(--j); background: var(--j); color: var(--k); }
.hmai-wf-generate, .hmai-wf-dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; background: var(--r); color: var(--k); font: 400 clamp(17px, 1.5vw, 20px)/1.1 var(--titre); letter-spacing: -.01em; text-transform: uppercase; clip-path: var(--scotch); }
.hmai-wf-dl-btn { background: var(--j); }
.hmai-wf-dl-btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.wf-note { margin-top: 14px; font-size: 16px; line-height: 1.38; color: var(--w); }
.hmai-wf-empty p { font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; line-height: 1.3; }
.hmai-wf-empty strong { color: var(--j); }
.hmai-wf-result-title { font: 400 clamp(23px, 2.4vw, 34px)/1.05 var(--titre); letter-spacing: -.025em; text-transform: uppercase; }
.hmai-wf-result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.hmai-wf-badge { padding: 5px 9px; border: 1px solid var(--j); color: var(--j); font: 700 13px/1.1 var(--mono); }
.hmai-wf-diagram-card { overflow: hidden; }
.hmai-wf-diagram-card svg { display: block; height: auto; }
.hmai-wf-steps-card { margin-top: 18px; }
.hmai-wf-steps-title { font: 400 clamp(19px, 1.7vw, 24px)/1.1 var(--titre); letter-spacing: -.02em; text-transform: uppercase; }
.hmai-wf-steps-list { margin-top: 8px; list-style: none; }
.hmai-wf-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid rgba(248,248,250,.24); }
.hmai-wf-step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 45% 55% 50% 50%; background: var(--r); color: var(--k); font-weight: 800; font-size: 15px; }
.hmai-wf-step-label { font-weight: 800; font-size: 17px; line-height: 1.2; }
.hmai-wf-step-desc { margin-top: 3px; font-size: 16px; line-height: 1.38; }
.hmai-wf-step-module { margin-top: 5px; font: 700 13px/1.3 var(--mono); color: var(--j); overflow-wrap: anywhere; }
.hmai-wf-download-card { margin-top: 12px; }
.hmai-wf-download-info { margin-bottom: 10px; font-size: 16px; line-height: 1.38; }
@media (max-width: 860px) { .wf { grid-template-columns: minmax(0, 1fr); } }

/* Le diagnostic référencement local */
.dl-q { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.dl-q legend { padding: 0; margin-bottom: 2px; font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--j); }
.dl-choix { position: relative; display: block; margin-top: 8px; }
.dl-choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dl-choix span { display: block; min-height: 48px; padding: 11px 12px; border: 2px solid var(--w); border-radius: 4px; font-weight: 700; font-size: 16px; line-height: 1.25; }
.dl-choix input:checked + span { border-color: var(--j); background: var(--j); color: var(--k); }
.dl-choix input:focus-visible + span { outline: 2px solid var(--j); outline-offset: 3px; }
.dl-titre { margin-bottom: 10px; font: 400 clamp(30px, 3.6vw, 52px)/1 var(--titre); letter-spacing: -.03em; text-transform: uppercase; color: var(--w); }
.dl-pourquoi { margin-bottom: 18px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.34; }
.dl-axes { margin: 8px 0 4px; list-style: none; }
.dl-axes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid rgba(248,248,250,.24); font-weight: 700; font-size: 16px; }
.dl-n { padding: 5px 9px; font: 700 13px/1.1 var(--mono); }
.dl-n.a-traiter { background: var(--r); color: var(--k); }
.dl-n.a-renforcer { background: var(--w); color: var(--k); }
.dl-n.solide { background: var(--j); color: var(--k); }
#dlResult .etiq-outil { margin-bottom: 14px; }
#dlResult .hmai-wf-dl-btn { margin-top: 14px; text-decoration: none; }
.hmai-wf-download-card .hmai-wf-dl-btn + .hmai-wf-dl-btn { margin-top: 8px; }
.hmai-wf-dl-btn.secondaire { background: var(--k); color: var(--j); outline: 2px solid var(--j); outline-offset: -2px; clip-path: none; }
.carte .periode { margin-top: 10px; font: 700 14px/1.3 var(--mono); color: var(--j); }

/* Les pages longues : outils, articles, textes légaux */
.js .dalle.outil { position: relative; top: auto; }
.dalle.outil[data-t="noir"], .dalle.outil[data-t="blanc"] { background-image: none; }
.dalle.outil::before { display: none; }
.tete.long .ti { font-size: clamp(32px, 5.6vw, 88px); }
.tete.art { min-height: 66vh; min-height: 66svh; }
.tete.art .ti { font-size: clamp(28px, 4vw, 62px); line-height: 1.02; }
.prose { max-width: 46rem; font-size: 19px; line-height: 1.58; }
.prose > :first-child { margin-top: 0; }
.dalle .prose h2 { margin: 1.5em 0 .5em; font: 400 clamp(25px, 2.8vw, 38px)/1.08 var(--titre); letter-spacing: -.02em; text-transform: uppercase; }
.dalle .prose h3 { margin: 1.4em 0 .35em; font-weight: 800; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
.prose p, .prose ul, .prose ol { margin: .8em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--r); font-weight: 700; }
.prose strong, .prose b { font-weight: 800; }
.prose code, .prose pre { background: var(--k); color: var(--w); font: 700 15px/1.4 var(--mono); }
.prose code { padding: 2px 6px; }
.prose pre { padding: 14px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.prose th, .prose td { padding: 8px 10px; border: 1.5px solid currentColor; text-align: left; }
.art-meta { margin-bottom: 14px; font: 700 14px/1.3 var(--mono); }
.sommaire { max-width: 46rem; margin-bottom: 26px; padding: 16px 20px; background: var(--k); color: var(--w); }
.sommaire b { font: 700 14px/1.2 var(--mono); color: var(--j); }
.sommaire ol { margin: 10px 0 0; padding-left: 1.3em; font-weight: 700; font-size: 17px; line-height: 1.3; }
.sommaire li { margin: 6px 0; }
.sommaire a { color: var(--w); }
.prose { min-width: 0; overflow-wrap: anywhere; }

/* Grand écran : le contenu reste dans une largeur lisible, centrée, sans vide à droite */
@media (min-width: 1440px) { .tete, .dalle, .pied-txt, .bas { --gl: max(52px, calc((100vw - 84rem) / 2)); --gr: max(52px, calc((100vw - 84rem) / 2)); } }
.grille { display: flex; flex-wrap: wrap; }
.grille > * { flex: 1 1 min(300px, 100%); }
.carte.large { flex-basis: 100%; }
@media (min-width: 1100px) {
  .faq, .articles { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); max-width: none; }
  .faq details:nth-last-child(2), .articles li:nth-last-child(2) { border-bottom: 1.5px solid currentColor; }
}
.dalle.outil > .prose { margin-inline: auto; }
.art-grid { display: grid; grid-template-columns: minmax(0, 48rem) minmax(240px, 24rem); gap: clamp(28px, 5vw, 96px); align-items: start; justify-content: center; }
.dalle .art-meta { max-width: calc(72rem + clamp(28px, 5vw, 96px)); margin-inline: auto; }
.art-grid .sommaire { position: sticky; top: 84px; margin: 0; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-grid .sommaire { position: static; order: -1; } }
.dl-wf { grid-template-columns: minmax(0, 1fr); }
#dlForm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 26px; align-items: start; }
#dlForm .hmai-wf-generate { grid-column: 1 / -1; justify-self: start; width: auto; min-width: min(360px, 100%); }

/* Texte seul : deux colonnes sur ordinateur plutôt qu'une colonne étroite et du vide */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.duo .chapeau { max-width: none; }

/* La voie sur ordinateur : les étapes montent de gauche à droite sur toute la largeur */
@media (min-width: 1000px) and (min-aspect-ratio: 9/10) {
  .voie { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); align-items: end; column-gap: clamp(18px, 2.2vw, 36px); }
  .voie li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: none; margin-left: 0; margin-bottom: calc(var(--i, 0) * clamp(26px, 3.4vw, 64px)); padding-top: 18px; border-top: 3px solid currentColor; }
  .voie p { max-width: none; font-size: clamp(18px, 1.3vw, 22px); }
}

/* Formulaire de contact sur toute la largeur */
.form { max-width: none; gap: 16px clamp(20px, 3vw, 40px); }
@media (min-width: 900px) { .form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form .large, .form .accord, .form button, .form #retour { grid-column: 1 / -1; }
.form .pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .accord { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.form .accord input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; min-height: 0; margin-top: 0; padding: 0; border: 2px solid currentColor; border-radius: 4px; background: transparent; cursor: pointer; }
.form .accord input:checked { border-color: var(--r); background: var(--r) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8.5' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.form .accord input:focus-visible { outline: 3px solid var(--j); outline-offset: 2px; }
.form .accord a { text-decoration: underline; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Grand écran : texte un peu plus grand, colonnes un peu plus larges */
@media (min-width: 1440px) {
  .prose { font-size: 20px; }
  .art-grid { grid-template-columns: minmax(0, 50rem) minmax(240px, 24rem); }
  .dalle .art-meta { max-width: calc(74rem + clamp(28px, 5vw, 96px)); }
  .dalle.outil > .prose { max-width: 52rem; }
}


/* Ancre de sommaire : le titre ne passe pas sous le bandeau du haut */
.prose [id] { scroll-margin-top: 90px; }
