/* Style commun du site Subvention Rénovation (accueil, pages cantons). Tiré de la maquette de l'accueil. */
/* Polices servies par le site (assets/fonts/, licence OFL) : préchargées dans l'en-tête, plus de requête vers Google.
   Polices de secours Arial calibrées sur les largeurs mesurées (Montserrat 800 = 111,61 % d'Arial gras, Source Sans 3 =
   92,63 % d'Arial) : le texte garde presque la même taille quand la vraie police arrive, la page ne bouge plus. */
/* Jeu étendu déclaré avant le jeu de base : pour un caractère présent dans les deux (œ, Œ), le navigateur prend la dernière déclaration, donc le fichier de base déjà chargé. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat secours"; src: local("Arial"); font-weight: 100 500; size-adjust: 111.61%; ascent-override: 86.73%; descent-override: 22.49%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat secours"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 111.61%; ascent-override: 86.73%; descent-override: 22.49%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3 secours"; src: local("Arial"); font-weight: 100 500; size-adjust: 92.63%; ascent-override: 110.55%; descent-override: 43.18%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3 secours"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 92.63%; ascent-override: 110.55%; descent-override: 43.18%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --fg: #1d1d1b;
  --muted: #59625d;
  --line: #dfe5e1;
  --green: #1aa858;
  --green-ink: #10763e;
  --green-soft: #e4f4ea;
  --green-light: #8fe0b2;
  --dark: #13201b;
  --dark-2: #1c2c26;
  --radius: 16px;
  --font-display: "Montserrat", "Montserrat secours", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans 3 secours", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 18px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.12; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section-head p { color: var(--muted); font-size: 19.5px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--font-display); text-decoration: none; border-radius: 12px; padding: 17px 24px; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(26,168,88,.32); }
.btn-primary:hover { background: #179a50; transform: translateY(-2px); }
.btn-primary[disabled] { background: #9fd3b4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--fg); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- en-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: block; }
.logo img { height: 40px; width: auto; }
.logo .logo-couleur { display: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16.5px; color: #fff; }
.nav a:not(.btn):hover { color: var(--green-light); }
.nav .btn { padding: 13px 18px; font-size: 15px; color: #fff; }
/* menu mobile : effet de la bibliothèque (assets/menu/effect.css), réglé ici sur la marque.
   Pastille et panneau vert foncé, texte blanc ; pastille à 20 px du haut et du bord droit (--fx-edge + --fx-gap). */
.header[data-fx] { pointer-events: auto; color: inherit; font-family: var(--font-body);
  --fx-accent: var(--green-ink); --fx-panel-ink: #fff; --fx-font: var(--font-display); --fx-weight: 700;
  --fx-edge: 10px; --fx-gap: 10px; --fx-radius-l: 24px; }
.header .fx-toggle { display: none; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.header .fx-toggle, .header .fx-panel { font-family: var(--fx-family); }
.header .fx-link { letter-spacing: -.02em; }
.header .fx-label::before, .header .fx-label::after { font-weight: 700; letter-spacing: .08em; }
.header .fx-foot { row-gap: 2px; }
.header .fx-foot li.fx-foot-cta { width: 100%; margin-bottom: 12px; }
.header .fx-foot .fx-cta { display: flex; justify-content: center; width: 100%; min-height: 54px; border-radius: 12px; background: #fff; color: var(--green-ink); font: 700 16px/1 var(--font-display); }
.header .fx-foot .fx-cta:hover { text-decoration: none; background: var(--green-soft); }
.header.solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(19,32,27,.06); }
.header.solid .logo-blanc { display: none; }
.header.solid .logo-couleur { display: block; }
.header.solid .nav a:not(.btn) { color: var(--fg); }
.header.solid .nav a:not(.btn):hover { color: var(--green-ink); }

/* ---------- slider d'ouverture ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; max-height: 980px; overflow: hidden; background: var(--dark); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s ease; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,20,16,.82) 0%, rgba(11,20,16,.55) 42%, rgba(11,20,16,.12) 78%),
  linear-gradient(0deg, rgba(11,20,16,.6) 0%, rgba(11,20,16,0) 40%); }
.slide-content { position: absolute; inset: auto 0 190px; z-index: 2; }
.slide-inner { max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 9px; justify-self: start; max-width: 100%; font: 700 12.5px/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); padding: 9px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26,168,88,.3); }
.slide-title { font-size: clamp(36px, 5.2vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.slide-title em { font-style: normal; color: var(--green-light); }
.slide-sub { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.88); max-width: 36em; }
.slide-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.slide .pill, .slide-title, .slide-sub, .slide-ctas { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .pill { opacity: 1; transform: none; transition-delay: .25s; }
.slide.is-active .slide-title { opacity: 1; transform: none; transition-delay: .4s; }
.slide.is-active .slide-sub { opacity: 1; transform: none; transition-delay: .55s; }
.slide.is-active .slide-ctas { opacity: 1; transform: none; transition-delay: .7s; }
.hero-ctrl { position: absolute; z-index: 3; inset: auto 0 128px; }
.hero-ctrl .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 46px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; position: relative; }
.hero-dot span { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 4px; }
.hero-dot.is-active span { animation: remplir var(--duree, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active span { animation-play-state: paused; }
@keyframes remplir { to { width: 100%; } }
.hero-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s ease, color .2s ease; }
.hero-btn:hover { background: #fff; color: var(--fg); }
.hero-btn svg { width: 18px; height: 18px; }

/* ---------- simulateur ---------- */
.sim-wrap { position: relative; z-index: 5; margin-top: -96px; }
.sim { background: var(--surface); border-radius: 22px; box-shadow: 0 30px 70px rgba(19,32,27,.2); padding: 28px 30px; display: grid; gap: 24px; scroll-margin-top: 100px; }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sim-step { font: 700 13px/1 var(--font-display); color: var(--green-ink); letter-spacing: .06em; text-transform: uppercase; }
.sim-time { font-size: 15px; color: var(--muted); }
.progress { height: 6px; background: var(--green-soft); border-radius: 99px; overflow: hidden; margin-top: -12px; }
.progress span { display: block; width: 14.3%; height: 100%; background: var(--green); border-radius: 99px; transition: width .5s var(--ease); }
.sim h2 { font-size: 25px; line-height: 1.2; }
.sim h2:focus { outline: none; }
.sim .hint { color: var(--muted); font-size: 16px; margin-top: 6px; }
/* étapes : une seule visible ; l'étape 1 garde sa barre en 3 colonnes, les questions ont 2 colonnes */
.etape { display: none; }
.etape.is-active { display: grid; gap: 26px; animation: etape-in .45s var(--ease); }
@keyframes etape-in { from { opacity: 0; transform: translateY(10px); } }
.etape-1.is-active { grid-template-columns: minmax(0, .95fr) minmax(0, 1.9fr) minmax(0, 1fr); align-items: end; }
.etape-1 .btn { width: 100%; margin-top: 12px; }
.etape-q.is-active { grid-template-columns: minmax(0, .75fr) minmax(0, 2fr); align-items: start; }
.q-body { display: grid; gap: 22px; }
.q-group { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.q-group > legend { font: 700 16px/1.3 var(--font-body); padding: 0; margin-bottom: 10px; }
.q-group[hidden], .field[hidden] { display: none; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.opts.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 11px 14px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.25; transition: border-color .15s ease, background-color .15s ease; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c6be; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.opt.multi::before { border-radius: 6px; }
.opt:hover { border-color: #9fd3b4; }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.opt:has(input:checked)::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.opt:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.opt .aide { margin-left: auto; flex: none; font: 700 10.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); background: #fff; border: 1px solid #bfe3cd; padding: 5px 7px; border-radius: 99px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.field small { color: var(--muted); font-size: 14px; }
.field input[aria-invalid="true"] { border-color: #d92d20; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px dashed #bfe3cd; }
.details[hidden] { display: none; }
.details-titre { grid-column: 1 / -1; font-weight: 700; font-size: 15.5px; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-nav .btn { min-width: 210px; }
.btn-back { background: none; border: 0; color: var(--muted); font: 700 15px/1 var(--font-display); cursor: pointer; padding: 12px 4px; }
.btn-back:hover { color: var(--fg); }
.q-error { color: #b42318; font-weight: 600; font-size: 15px; }
.q-error:empty { display: none; }
.alerte { padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d49b; color: #6b4300; font-size: 15.5px; }
.alerte[hidden] { display: none; }
.privacy { font-size: 14px; color: var(--muted); }
/* résultat */
.res { display: grid; gap: 22px; }
.res-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 18px; color: #fff; background: radial-gradient(600px 260px at 90% 0%, rgba(143,224,178,.25), transparent 60%), linear-gradient(135deg, var(--green-ink), #0b5b2f); }
.res-head .eyebrow { color: var(--green-light); }
.res-head .eyebrow::before { background: var(--green-light); }
.res-head h2 { color: #fff; font-size: 22px; margin-top: 10px; }
.res-head p { color: #d8efe0; margin-top: 10px; font-size: 16.5px; }
.res-head .res-total { font: 800 clamp(42px, 5.4vw, 64px)/1 var(--font-display); letter-spacing: -.03em; margin-top: 8px; color: #fff; }
.res-sources { display: grid; gap: 8px; }
.res-source { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 15.5px; }
.res-source b { font: 800 17px/1.2 var(--font-display); white-space: nowrap; }
.res-alerte { padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d49b; color: #6b4300; font-size: 16px; }
.res-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.res-list { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.res-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.res-ligne:first-child { border-top: 0; }
.res-ligne .t { font-weight: 700; }
.res-ligne .q { font-size: 14px; color: var(--muted); }
.res-ligne .m { font: 800 18px/1.2 var(--font-display); color: var(--green-ink); text-align: right; white-space: nowrap; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.res-ligne .m.vide { font: 600 14px/1.3 var(--font-body); color: var(--muted); white-space: normal; max-width: 13em; }
.res-ligne .n { grid-column: 1; font-size: 14px; color: var(--muted); }
.res-titre { font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px 10px; background: var(--bg); }
.res-side { display: grid; gap: 14px; }
.res-box { padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.res-box h3 { font-size: 17px; margin-bottom: 10px; }
.res-box ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.res-actions .btn { width: auto; }
.cantons-choice { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.chip b { font: 800 15px/1 var(--font-display); color: var(--green-ink); letter-spacing: .04em; }
.chip span { font-size: 15.5px; font-weight: 600; color: var(--fg); }
.chip:hover { border-color: #9fd3b4; transform: translateY(-2px); }
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 16px; }
.field input { font: 400 18px/1.2 var(--font-body); padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); width: 100%; }
.field input:focus { border-color: var(--green); outline: none; }
.sim-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); margin-top: -8px; }
.sim-foot[hidden] { display: none; }
.sim-foot span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* ---------- chiffres ---------- */
.figures { background: var(--dark); color: #fff; margin-top: 72px; }
.figures .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); padding-block: 64px 56px; }
.figure { padding: 4px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure .n { white-space: nowrap; font: 800 clamp(36px, 3.6vw, 50px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figure .n small { font-size: .42em; font-weight: 700; color: var(--green-light); letter-spacing: 0; margin-left: 4px; }
.figure p { color: #c9d8d0; font-size: 17px; margin-top: 12px; line-height: 1.45; }
.figures .foot { grid-column: 1 / -1; font-size: 13.5px; color: #8ea398; padding-top: 30px; }

/* ---------- sliders horizontaux (mobile) ---------- */
.rail { display: grid; gap: 20px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--fg); transition: border-color .2s ease, color .2s ease; }
.rail-btn:hover { border-color: var(--green); color: var(--green-ink); }
.rail-btn svg { width: 18px; height: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.head-row .section-head { margin-bottom: 0; }

/* ---------- travaux ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: grid; gap: 14px; align-content: start; text-decoration: none; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.work::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 170px; height: 170px; border-radius: 50%; background: var(--green-soft); transition: transform .5s var(--ease); z-index: 0; }
.work:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(19,32,27,.1); border-color: transparent; }
.work:hover::after { transform: scale(1.35); }
.work > * { position: relative; z-index: 1; }
.work-top { display: flex; justify-content: space-between; align-items: center; }
.work-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; color: var(--green-ink); }
.work-ico svg { width: 30px; height: 30px; }
.work-tag { font: 700 12.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work .amount { font: 800 30px/1.05 var(--font-display); color: var(--green-ink); letter-spacing: -.02em; }
.work .amount small { display: block; font: 600 14px/1.3 var(--font-body); color: var(--muted); letter-spacing: 0; margin-bottom: 4px; }
.work p { color: var(--muted); font-size: 16.5px; }
.work .go { font: 700 15px/1 var(--font-display); color: var(--fg); display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.work:hover .go { color: var(--green-ink); }

/* ---------- cantons ---------- */
.cantons { background: var(--surface); }
.map-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin-bottom: 40px; }
.map-box { background: linear-gradient(180deg, #f3f7f4, #eaf2ec); border-radius: 24px; padding: 18px; }
.map-box svg { width: 100%; height: auto; display: block; }
.ch-autres { fill: #dfe6e1; stroke: #f3f7f4; stroke-width: 1.2; }
.ch-canton { fill: #c6e6d3; stroke: #fff; stroke-width: 2.4; cursor: pointer; transition: fill .25s ease; }
.ch-canton:hover, .ch-canton.is-active { fill: var(--green); }
/* aucun cadre au clic : la couleur du canton suffit ; au clavier, le canton se colore et prend un contour sombre */
.map-box svg, .map-box svg * { outline: none; }
.ch-canton:focus-visible { fill: var(--green); stroke: var(--dark); stroke-width: 3; }
.ch-lacs { fill: #b6d5e8; pointer-events: none; }
.ch-point { cursor: pointer; }
.ch-pin { fill: var(--green-ink); stroke: #fff; stroke-width: 3; transition: fill .25s ease; }
.ch-halo { fill: var(--green); opacity: 0; transform-origin: center; transform-box: fill-box; }
.ch-point.is-active .ch-pin { fill: var(--dark); }
.ch-point.is-active .ch-halo { opacity: .28; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .4; } 100% { transform: scale(1.6); opacity: 0; } }
.ch-label { font: 800 28px/1 var(--font-display); text-anchor: middle; fill: var(--fg); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 6px; pointer-events: none; }
.map-side { display: grid; gap: 18px; }
.map-side .lead { color: var(--muted); font-size: 19px; }
.map-hint { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green-ink); }
.map-hint svg { width: 22px; height: 22px; }
.cantons-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; }
.cantons-rail::-webkit-scrollbar { display: none; }
.canton { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; text-decoration: none; transition: border-color .25s ease, background-color .25s ease, transform .3s var(--ease); }
.canton:hover { transform: translateY(-3px); }
.canton.is-active { border-color: var(--green); background: var(--surface); box-shadow: 0 18px 40px rgba(19,32,27,.08); }
.canton-name { display: flex; align-items: center; gap: 12px; }
.canton-name img { height: 28px; width: auto; }
.canton-name h3 { font-size: 26px; font-weight: 800; }
.canton .big { font: 800 24px/1.15 var(--font-display); color: var(--green-ink); letter-spacing: -.01em; }
.canton p { color: var(--muted); font-size: 16.5px; }
.canton .more { font: 700 15px/1 var(--font-display); color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.canton.is-active .more, .canton:hover .more { color: var(--green-ink); }
.canton .more, .work .go { justify-self: start; }
.rail-foot { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.rail-mobile { display: none; }

/* ---------- projets ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.project { position: relative; border-radius: 22px; overflow: hidden; min-height: 480px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,20,16,.15) 0%, rgba(11,20,16,.25) 35%, rgba(11,20,16,.88) 100%); }
.project:hover img { transform: scale(1.06); }
.project-chips { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.tag.lieu { background: rgba(11,20,16,.45); border-color: rgba(255,255,255,.2); text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.project-body { display: grid; gap: 12px; }
.project h3 { font-size: 23px; line-height: 1.2; color: #fff; }
.project .spec { font-size: 15px; color: rgba(255,255,255,.8); margin-top: -6px; }
.row { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.row span { font: 700 12.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.row b { font: 800 17px/1.15 var(--font-display); white-space: nowrap; }
.row.aide { background: rgba(26,168,88,.92); border-color: transparent; }
.row.aide span { color: #e6f6ec; }
.row.aide b { font-size: 25px; letter-spacing: -.01em; }
.projects .note { font-size: 14.5px; color: var(--muted); margin-top: 18px; }

/* ---------- démarche : timeline ---------- */
.process { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.process-intro { position: sticky; top: 130px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.process-intro p { color: var(--muted); font-size: 19.5px; }
.process-intro .btn { width: max-content; max-width: 100%; margin-top: 6px; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 70px; }
.timeline-line { position: absolute; left: 25px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.timeline-line span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--green), var(--green-ink)); border-radius: 4px; }
.tstep { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 10px; opacity: .55; transform: translateX(10px); transition: opacity .5s ease, transform .5s var(--ease), border-color .5s ease, background-color .5s ease, box-shadow .5s ease; }
.tstep::before { content: attr(data-n); position: absolute; left: -70px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line); display: grid; place-items: center; font: 800 20px/1 var(--font-display); color: var(--muted); transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease; }
.tstep.is-on { opacity: 1; transform: none; border-color: #bfe3cd; background: var(--surface); box-shadow: 0 16px 36px rgba(19,32,27,.07); }
.tstep.is-on::before { background: var(--green); border-color: var(--green-soft); color: #fff; box-shadow: 0 0 0 8px rgba(26,168,88,.14); }
.tstep .when { font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.tstep p { color: var(--muted); font-size: 17px; }
.tstep .key { color: var(--fg); font-weight: 600; }

/* ---------- 2027 ---------- */
.y2027 { background: radial-gradient(1200px 500px at 85% 0%, rgba(26,168,88,.22), transparent 60%), var(--dark); color: #fff; }
.y2027-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.y2027 h2 { color: #fff; }
.y2027 .eyebrow { color: var(--green-light); }
.y2027 .lead { color: #c3d3ca; font-size: 19.5px; margin-top: 16px; }
.countdown { display: flex; align-items: flex-end; gap: 18px; margin-top: 30px; }
.countdown[hidden] { display: none; }
.countdown .days { font: 800 clamp(70px, 9vw, 120px)/.9 var(--font-display); letter-spacing: -.04em; color: var(--green-light); font-variant-numeric: tabular-nums; }
.countdown .lab { font-size: 18px; color: #c3d3ca; padding-bottom: 10px; line-height: 1.35; }
.countdown .lab b { color: #fff; display: block; font-size: 20px; }
.y2027 .btn { margin-top: 30px; }
.changes { display: grid; gap: 16px; }
.change { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.04); transition: background-color .3s ease, border-color .3s ease; }
.change:hover { background: rgba(255,255,255,.07); border-color: rgba(143,224,178,.45); }
.change .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(26,168,88,.18); display: grid; place-items: center; color: var(--green-light); }
.change .ico svg { width: 28px; height: 28px; }
.change .d { font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--green-light); }
.change h3 { color: #fff; margin-top: 8px; }
.change p { color: #c3d3ca; font-size: 16.5px; margin-top: 6px; }

/* ---------- appel ---------- */
.cta { position: relative; overflow: hidden; border-radius: 26px; padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; color: #fff; background: var(--green-ink); isolation: isolate; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,118,62,.96) 0%, rgba(16,118,62,.88) 46%, rgba(16,118,62,.3) 100%); }
.cta h2 { color: #fff; }
.cta p { color: #e6f6ec; font-size: 19.5px; margin-top: 12px; max-width: 36em; }
.cta .btn { background: #fff; color: var(--green-ink); padding: 19px 28px; font-size: 17px; }
.cta .btn:hover { transform: translateY(-2px); }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 130px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #bfe3cd; box-shadow: 0 12px 28px rgba(19,32,27,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 700 18px/1.35 var(--font-display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .9; color: var(--green-ink); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; font-size: 17px; max-width: 64ch; }

/* ---------- pied de page ---------- */
.footer { background: var(--dark); color: #c3d3ca; padding-block: 64px 32px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer img { height: 32px; width: auto; }
.footer h4 { font: 700 13px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: #c3d3ca; }
.footer a:hover { color: #fff; }
.footer .about { margin-top: 18px; max-width: 28em; }
.footer .contact-pied { margin-top: 16px; gap: 6px; }
.footer .contact-pied a { color: #fff; font-weight: 600; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #8ea398; }

/* ---------- apparitions au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .etape-1.is-active, .etape-q.is-active { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .progress { margin-top: -6px; }
  .res-cols { grid-template-columns: minmax(0, 1fr); }
  .cantons-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-panel, .process-grid, .y2027-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .process-intro, .faq-grid .section-head { position: static; }
  .canton { flex-basis: calc((100% - 18px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .header .wrap { min-height: 80px; }
  .header .fx-toggle { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding-block: 68px; }
  .logo img { height: 34px; }
  .hero { min-height: 620px; max-height: 820px; }
  .slide-content { bottom: 150px; }
  .slide:first-of-type .slide-bg { object-position: 74% 50%; }
  .pill { font-size: 12.5px; letter-spacing: .08em; }
  .slide::after { background: linear-gradient(0deg, rgba(11,20,16,.9) 0%, rgba(11,20,16,.55) 55%, rgba(11,20,16,.25) 100%); }
  .slide-ctas .btn { flex: 1 1 100%; }
  .hero-ctrl { bottom: 102px; }
  .hero-ctrl .wrap { gap: 12px; }
  .hero-dot { width: 32px; }
  .hero-btn { width: 42px; height: 42px; }
  .sim-wrap { margin-top: -78px; }
  .sim { padding: 22px 20px; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts.wide { grid-template-columns: minmax(0, 1fr); }
  .opt { font-size: 15px; padding: 10px 12px; }
  .q-nav { flex-direction: column-reverse; align-items: stretch; }
  .q-nav .btn { width: 100%; }
  .res-head { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; }
  .res-ligne { padding: 14px; }
  .cantons-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { margin-top: 56px; }
  .figures .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; row-gap: 34px; padding-block: 52px 44px; }
  .figure { border-left: 0; padding: 0; }
  .figure p { max-width: 22em; margin-inline: auto; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .rail-mobile { display: flex; }
  .works-grid, .projects-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 14px; padding: 4px 2px 14px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .works-grid::-webkit-scrollbar, .projects-grid::-webkit-scrollbar { display: none; }
  .work { flex: 0 0 82%; scroll-snap-align: center; }
  .project { flex: 0 0 84%; scroll-snap-align: center; min-height: 440px; }
  .canton { flex-basis: 84%; scroll-snap-align: center; }
  .timeline { padding-left: 58px; }
  .timeline-line { left: 20px; }
  .tstep { padding: 22px; }
  .tstep::before { left: -58px; width: 44px; height: 44px; font-size: 17px; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 40px 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal, .slide .pill, .slide-title, .slide-sub, .slide-ctas { opacity: 1; transform: none; }
  .hero-dot.is-active span { width: 100%; }
}

/* ---------- pages intérieures : cantons, travaux, guides (outils/pages-*.js, briques dans outils/communs.js) ---------- */
/* mots en gras pour la lecture en diagonale (montants, délais, dates : outils/communs.js, riche) */
strong { font-weight: 700; color: var(--fg); }
.slide strong, .y2027 strong, .cta strong, .project strong, .work-vedette strong, .figures strong, .bande-photo strong { color: #fff; }

/* hero : photo, texte à gauche, chiffre clé à droite */
.hero-canton { height: auto; min-height: 0; max-height: none; }
.hero-canton .slide { position: relative; }
.hero-canton .slide-content { position: relative; inset: auto; padding-block: 150px 190px; }
.hero-canton .slide-title { font-size: clamp(34px, 4.4vw, 58px); }
.hero-canton .wrap.avec-cle { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: end; }
.hero-cle { display: grid; gap: 8px; padding: 26px 26px 20px; border-radius: 22px; background: rgba(11,20,16,.45); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.cle-lab { font: 700 12.5px/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--green-light); }
.cle-n { font: 800 clamp(30px, 2.7vw, 40px)/1.05 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cle-txt { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.85); }
.cle-lien { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; font: 700 15px/1 var(--font-display); color: #fff; text-decoration: none; }
.cle-lien:hover { color: var(--green-light); }
.logo img[src*="cantons/"] { height: 34px; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.78); }
.fil a { color: #fff; font-weight: 600; text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* barre de lecture des pages intérieures (assets/site.js) : fine, en haut de l'écran, au-dessus de l'en-tête */
.lecture { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.lecture span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; }
main section[id]:not(#simulateur) { scroll-margin-top: 96px; }

/* sous-titre dans une section */
.sous-bloc { margin: 56px 0 20px; display: grid; gap: 6px; }
.sous-titre { font-size: 24px; font-weight: 800; }
.sous-bloc p { color: var(--muted); }

/* aide principale mise en avant (pages travaux) */
.work.work-vedette { background: var(--dark); border-color: var(--dark); color: #fff; }
.work-vedette::after { background: rgba(26,168,88,.2); }
.work-vedette .work-ico { background: rgba(26,168,88,.2); color: var(--green-light); }
.work-vedette .work-tag { color: var(--green-light); }
.work-vedette h3 { color: #fff; }
.work.work-vedette .amount { color: var(--green-light); }
.work.work-vedette .amount small { color: #c3d3ca; }
.work.work-vedette p { color: #c9d8d0; }
.work.work-vedette .go { color: #fff; }
.work.work-vedette:hover .go { color: var(--green-light); }
.work-fermee .amount { color: var(--muted); }
.work-fermee .work-tag { color: #b54708; }

/* exemple chiffré en carte photo (famille des projets de l'accueil) */
.exemple-photo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.exemple-intro { display: grid; gap: 16px; }
.exemple-intro h2 em { font-style: normal; color: var(--green-ink); white-space: nowrap; }
.exemple-chapeau { color: var(--muted); font-size: 19px; }
.exemple-note { color: var(--muted); font-size: 15px; }
.exemple-intro .btn { justify-self: start; margin-top: 8px; }
.project.project-xl { min-height: 600px; border-radius: 26px; padding: 26px; box-shadow: 0 30px 60px rgba(19,32,27,.18); }
.project-xl::after { background: linear-gradient(180deg, rgba(11,20,16,.12) 0%, rgba(11,20,16,.3) 28%, rgba(11,20,16,.86) 62%, rgba(11,20,16,.94) 100%); }
.project-xl h3 { font-size: 26px; }
.project-xl .spec { margin-top: -4px; }
.ex-rows { display: grid; gap: 8px; }
.row.ligne { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.row.ligne span { font: 600 15.5px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.9); }
.row.ligne b { font-size: 18px; }
.row.ligne.nul b { font: 600 14px/1.3 var(--font-body); color: rgba(255,255,255,.7); }
.project-xl .row.aide { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; margin-top: 4px; }
.project-xl .row.aide span { font-size: 12.5px; }
.project-xl .row.aide b { font-size: 30px; }

/* conditions en une seule carte, une ligne par condition */
.conditions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.conditions-grid h2 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); }
.checklist { list-style: none; margin: 22px 0 0; padding: 6px 24px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 34px rgba(19,32,27,.05); }
.section-alt .checklist { background: var(--bg); box-shadow: none; }
.checklist li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--muted); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.encart { margin-top: 22px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px dashed #c3d3ca; display: grid; gap: 16px; }
.encart p { color: var(--muted); }
.encart .btn { justify-self: start; }
.btn-light-dark { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-light-dark:hover { border-color: var(--green); color: var(--green-ink); }

/* communes : pastille, nom, ce que la commune ajoute */
.communes-grid2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.communes-tete { display: grid; gap: 14px; }
.communes-tete p { color: var(--muted); font-size: 18.5px; }
.carte-canton { margin-top: 10px; max-width: 420px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #f3f7f4, #e6efe9); }
.carte-canton img { width: 100%; height: 100%; object-fit: cover; }
.communes-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.communes-grid2 .communes-cartes { grid-template-columns: minmax(0, 1fr); }
.communes-liste { display: grid; gap: 12px; margin-top: 22px; }
.commune { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease); }
.section-alt .commune { background: var(--bg); }
.commune:hover { border-color: #bfe3cd; box-shadow: 0 14px 30px rgba(19,32,27,.07); transform: translateY(-2px); }
.commune-pastille { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font: 800 19px/1 var(--font-display); }
.commune h3 { font-size: 18.5px; }
.commune p { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* cartes de liens vers les autres pages */
.liens-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.liens-cartes.liens-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lien-carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico . fleche" "txt txt txt"; gap: 16px 14px; align-items: start; padding: 20px 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease; }
.section-alt .lien-carte { background: var(--bg); }
.lien-carte:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(19,32,27,.08); }
.lien-carte .work-ico { grid-area: ico; width: 48px; height: 48px; border-radius: 13px; }
.lien-txt { grid-area: txt; }
.lien-fleche { grid-area: fleche; }
.lien-carte .work-ico svg { width: 26px; height: 26px; }
.lien-txt { display: grid; gap: 4px; min-width: 0; }
.lien-tag { font: 700 12.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lien-txt b { font: 800 17px/1.25 var(--font-display); color: var(--green-ink); }
.lien-txt small { font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.lien-fleche { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); font-weight: 700; transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.lien-carte:hover .lien-fleche { background: var(--green); color: #fff; transform: translateX(3px); }

/* guides du canton, en cartes photo */
.guides-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-carte { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: transform .3s var(--ease), box-shadow .3s ease; }
.section-alt .guide-carte { background: var(--bg); }
.guide-carte:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(19,32,27,.1); }
.guide-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.guide-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guide-carte:hover .guide-photo img { transform: scale(1.05); }
.guide-corps { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; }
.guide-corps b { font: 800 20px/1.25 var(--font-display); }
.guide-corps small { font-size: 16px; line-height: 1.5; color: var(--muted); }
.guide-corps .go { font: 700 15px/1 var(--font-display); color: var(--green-ink); margin-top: 6px; }
.guides-cartes.seul { grid-template-columns: minmax(0, 1fr); }
.guides-cartes.seul .guide-carte { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guides-cartes.seul .guide-photo { aspect-ratio: auto; min-height: 300px; }
.guides-cartes.seul .guide-corps { align-content: center; padding: 36px 40px; }
.guides-cartes.seul .guide-corps b { font-size: 26px; }

/* guides : texte en deux colonnes, tableaux */
.section-alt { background: var(--surface); }
.texte-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.texte-tete { display: grid; gap: 14px; position: sticky; top: 170px; }
.texte-tete p { color: var(--muted); font-size: 18.5px; }
.texte-corps { display: grid; gap: 18px; }
.texte-corps p { color: var(--muted); font-size: 18px; }
.texte-corps .chapeau { color: var(--fg); font-size: 21px; line-height: 1.5; padding-left: 20px; border-left: 4px solid var(--green); }
.texte-corps .checklist { margin-top: 4px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
.guide-table th, .guide-table td { text-align: left; padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { border-top: 0; background: var(--bg); font: 700 12.5px/1.2 var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.guide-table tbody th { font-weight: 700; color: var(--fg); }
.guide-table td { color: var(--muted); }
.guide-table tr.is-accent th, .guide-table tr.is-accent td { background: var(--green-soft); }
.guide-table tr.is-accent th { box-shadow: inset 4px 0 0 var(--green); color: var(--green-ink); }
.guide-table tr.is-accent td { color: var(--fg); }
.badge { display: inline-block; margin-left: 6px; padding: 4px 8px; border-radius: 999px; background: var(--green); color: #fff; font: 700 11px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.guide-note { margin-top: 16px; color: var(--muted); font-size: 15.5px; max-width: 75ch; }

@media (max-width: 1080px) {
  .hero-canton .wrap.avec-cle { grid-template-columns: minmax(0, 1fr); }
  .hero-cle { display: none; }
  .exemple-photo, .conditions-grid, .communes-grid2, .texte-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .texte-tete { position: static; }
  .liens-cartes.liens-4, .guides-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
}
@media (max-width: 760px) {
  .hero-canton .slide-content { padding-block: 120px 150px; }
  .logo img[src*="cantons/"] { height: 26px; }
  .project.project-xl { min-height: 0; padding: 18px; border-radius: 22px; }
  .project-xl .project-body { margin-top: 170px; }
  .project-xl h3 { font-size: 22px; }
  .row.ligne { padding: 11px 13px; }
  .row.ligne span { font-size: 14.5px; }
  .row.ligne b { font-size: 16px; }
  .project-xl .row.aide b { font-size: 24px; }
  .checklist { padding: 4px 18px; }
  .checklist li { font-size: 16px; padding-left: 36px; }
  .communes-cartes, .liens-cartes, .liens-cartes.liens-4, .guides-cartes { grid-template-columns: minmax(0, 1fr); }
  .lien-carte { grid-template-areas: "ico txt fleche"; align-items: center; padding: 16px; }
  .commune { padding: 18px; gap: 14px; }
  .guides-cartes.seul .guide-carte { grid-template-columns: minmax(0, 1fr); }
  .guides-cartes.seul .guide-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .guides-cartes.seul .guide-corps { padding: 22px 24px 24px; }
  .guides-cartes.seul .guide-corps b { font-size: 20px; }
  .texte-corps .chapeau { font-size: 19px; padding-left: 16px; }
  .guide-table { min-width: 0; }
  .guide-table thead { display: none; }
  .guide-table tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .guide-table tbody tr:first-child { border-top: 0; }
  .guide-table th, .guide-table td { display: block; border: 0; padding: 3px 0; }
  .guide-table tr.is-accent th, .guide-table tr.is-accent td { background: none; box-shadow: none; }
  .guide-table tr.is-accent { background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
  .guide-table td::before { content: attr(data-label) " : "; font-weight: 700; color: var(--fg); }
}

/* ---------- conversion : arguments, barre collée, bande photo, conditions, communes, demande CECB ---------- */
/* arguments sous le simulateur */
.atouts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.atouts li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.atout-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.atout-ico svg { width: 22px; height: 22px; }
.atouts b { display: block; font: 800 15.5px/1.2 var(--font-display); }
.atouts small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.3; color: var(--muted); }

/* barre collée en bas de l'écran (assets/site.js) */
.barre-cta { position: fixed; left: 50%; bottom: 18px; z-index: 45; width: min(calc(100% - 40px), 980px); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 10px 10px 26px; border-radius: 999px; background: rgba(19,32,27,.93); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); box-shadow: 0 22px 54px -14px rgba(0,0,0,.6); transform: translate(-50%, 170%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1), opacity .35s ease; }
.barre-cta.show { transform: translate(-50%, 0); opacity: 1; }
.bc-txt { display: grid; gap: 2px; min-width: 0; }
.bc-txt b { font: 800 16px/1.2 var(--font-display); color: #fff; letter-spacing: -.01em; }
.bc-txt span { font-size: 13.5px; color: rgba(255,255,255,.65); }
.bc-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--green); color: #fff; font: 700 15px/1 var(--font-display); text-decoration: none; transition: background-color .2s ease; }
.bc-btn:hover { background: #179a50; }
.bc-btn .arrow { transition: transform .2s var(--ease); }
.bc-btn:hover .arrow { transform: translateX(3px); }

/* bande photo en parallaxe, avec un argument de vente */
.bande-photo { position: relative; overflow: hidden; isolation: isolate; padding-block: 124px; color: #fff; background: var(--dark); }
.bp-img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: -2; will-change: transform; }
.bande-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,20,16,.92) 0%, rgba(11,20,16,.74) 48%, rgba(11,20,16,.42) 100%); }
.bp-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.bp-texte { display: grid; gap: 18px; }
.bp-texte .eyebrow { color: var(--green-light); }
.bp-texte h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); }
.bp-texte h2 em { font-style: normal; color: var(--green-light); }
.bp-texte p { color: #d5e2da; font-size: 19.5px; max-width: 34em; }
.bp-texte .btn { justify-self: start; margin-top: 8px; }
.bp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bp-points li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.bp-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(26,168,88,.25); color: var(--green-light); display: grid; place-items: center; }
.bp-ico svg { width: 24px; height: 24px; }
.bp-points b { display: block; font: 800 17px/1.25 var(--font-display); color: #fff; }
.bp-points small { display: block; margin-top: 3px; font-size: 15px; color: #c3d3ca; }

/* conditions : la condition de calendrier en grande carte photo, les autres en cartes à icône */
.cond-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 20px; align-items: stretch; }
.cond-vedette { position: relative; min-height: 460px; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; box-shadow: 0 26px 56px rgba(19,32,27,.16); }
.cond-vedette .cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.cond-vedette:hover .cv-img { transform: scale(1.04); }
.cond-vedette::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,20,16,.08) 0%, rgba(11,20,16,.5) 42%, rgba(11,20,16,.93) 100%); }
.cv-corps { display: grid; gap: 16px; padding: 30px; }
.cv-lab { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--green); color: #fff; font: 800 12.5px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.is-piege .cv-lab { background: #f6b53f; color: #2b1d03; }
.cv-ico { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.35); display: grid; place-items: center; }
.cv-ico svg { width: 16px; height: 16px; }
.cv-corps p { font: 700 clamp(21px, 2vw, 27px)/1.3 var(--font-display); letter-spacing: -.01em; color: #fff; }
.cv-corps p strong { color: var(--green-light); }
.is-piege .cv-corps p strong { color: #ffd27a; }
.cv-btn { justify-self: start; background: #fff; color: var(--green-ink); }
.cv-btn:hover { background: var(--green-soft); transform: translateY(-2px); }
.cond-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: stretch; }
.cond { display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.section-alt .cond { background: var(--bg); }
.cond:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(19,32,27,.08); border-color: transparent; }
.cond:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cond-ico { width: 50px; height: 50px; border-radius: 15px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.cond-ico svg { width: 26px; height: 26px; }
.cond p { color: #3d4641; font-size: 17px; line-height: 1.5; }

/* communes : une carte par commune, le montant en tête */
.cc-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; }
.cc-rail::-webkit-scrollbar { display: none; }
.cc { position: relative; flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.section-alt .cc { background: var(--bg); }
.cc::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--green), var(--green-light)); }
.cc:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(19,32,27,.09); border-color: transparent; }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-pin { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.cc-pin svg { width: 22px; height: 22px; }
.cc h3 { font-size: 21px; }
.cc-montant { font: 800 clamp(26px, 2.5vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--green-ink); margin-top: 6px; }
.cc-mot { color: var(--fg); }
.cc-txt { color: var(--muted); font-size: 16.5px; }
.cc-tag { display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font: 700 12.5px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--green-ink); }
.cc-tag svg { width: 18px; height: 18px; }
.cc-rail.peu .cc { flex-basis: calc((100% - 18px) / 2); }
.cc-rail.peu .cc:only-child { flex-basis: min(100%, 560px); }
.cc-foot { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.communes-carte { margin-bottom: 44px; }
.communes-carte .map-box { padding: 0; overflow: hidden; aspect-ratio: 1; max-height: 520px; justify-self: start; width: 100%; max-width: 520px; }
.communes-carte .map-box img { width: 100%; height: 100%; object-fit: cover; }
.communes-carte .map-side .btn { justify-self: start; margin-top: 6px; }
.lien-carte.lien-seul { max-width: 560px; }

/* demande CECB : même carte que le simulateur, écran de remerciement */
.q-erreur { color: #b42318; font-weight: 600; font-size: 15px; }
.sim-cecb .etape-res.is-active { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.cecb-merci { display: flex; gap: 18px; align-items: flex-start; }
.cm-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(26,168,88,.15); }
.cm-ico svg { width: 30px; height: 30px; }
.cecb-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cr-aide { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--green-soft); }
.cr-aide span { font-weight: 700; font-size: 15px; }
.cr-aide b { font: 800 24px/1.1 var(--font-display); color: var(--green-ink); }
.cr-aide small { font-size: 14px; color: var(--muted); }
.cecb-suite { list-style: none; counter-reset: suite; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cecb-suite li { counter-increment: suite; position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 58px; border-radius: 14px; border: 1px solid var(--line); }
.cecb-suite li::before { content: counter(suite); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font: 800 14px/1 var(--font-display); }
.cecb-suite b { font: 700 16px/1.25 var(--font-display); }
.cecb-suite span { font-size: 14.5px; color: var(--muted); }

@media (max-width: 1080px) {
  .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-grille, .cond-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cond-grid { gap: 16px; }
  .cond-vedette { min-height: 380px; }
  .cc { flex-basis: calc((100% - 18px) / 2); }
  .cecb-suite { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .atouts { gap: 8px; }
  .atouts li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .atouts b { font-size: 15px; }
  .atouts small { font-size: 13.5px; }
  .barre-cta { bottom: 12px; width: calc(100% - 24px); gap: 12px; padding: 8px 8px 8px 18px; }
  .bc-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bc-txt span { display: none; }
  .bc-btn { padding: 13px 16px; font-size: 14px; }
  .bande-photo { padding-block: 84px; }
  .bande-photo::after { background: linear-gradient(180deg, rgba(11,20,16,.86) 0%, rgba(11,20,16,.8) 100%); }
  .bp-texte p { font-size: 17.5px; }
  .bp-points li { padding: 14px 16px; }
  .cond-cartes { grid-template-columns: minmax(0, 1fr); }
  .cond { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 18px; gap: 14px; }
  .cond-ico { width: 44px; height: 44px; }
  .cond p { font-size: 16px; }
  .cond-vedette { min-height: 360px; border-radius: 22px; }
  .cv-corps { padding: 22px; }
  .cc, .cc-rail.peu .cc { flex: 0 0 84%; scroll-snap-align: center; }
  .cc-rail { margin-inline: -20px; padding-inline: 20px; }
  .cc-rail.peu .cc:only-child { flex-basis: 100%; }
  .communes-carte { margin-bottom: 28px; }
  .cecb-merci { flex-direction: column; }
}
@media (max-width: 420px) {
  .bc-txt { display: none; }
  .barre-cta { padding: 8px; }
  .bc-btn { flex: 1; justify-content: center; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-img { transform: none !important; }
}
.sim-wrap:has(.atouts) .sim-foot { display: none; }
.cecb-res-canton { display: grid; gap: 12px; }
.cecb-res-canton[hidden] { display: none; }
.cr-titre { font: 700 16px/1.3 var(--font-display); }

/* ---------- page /cecb/ : étiquette A à G, comparaison CECB / CECB Plus, notes de prix ---------- */
.cle-n small { display: block; font: 700 14px/1.2 var(--font-body); letter-spacing: 0; color: rgba(255,255,255,.75); margin-bottom: 2px; }
.etiquette { margin: 4px 0; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(19,32,27,.06); display: grid; gap: 14px; }
.section-alt .etiquette { background: var(--bg); box-shadow: none; }
.etiquette figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.etiquette figcaption b { font: 800 17px/1.2 var(--font-display); }
.etiquette figcaption span { font-size: 14.5px; color: var(--muted); }
.etiquette ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.etiquette li { width: var(--l); height: 34px; display: flex; align-items: center; padding-left: 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); border-radius: 6px 0 0 6px; color: #fff; font: 800 17px/1 var(--font-display); }
.et-a { background: #138a43; } .et-b { background: #4cae4f; } .et-c { background: #a4cf3c; color: #1d2a12 !important; }
.et-d { background: #f2d230; color: #2b2405 !important; } .et-e { background: #f4a32a; } .et-f { background: #e8672a; } .et-g { background: #d33a2c; }
.et-note { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.compare-carte { position: relative; display: grid; gap: 16px; align-content: start; grid-template-rows: auto auto auto 1fr auto; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.section-alt .compare-carte { background: var(--bg); }
.compare-tag { justify-self: start; font: 700 12.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); padding: 8px 12px; border-radius: 999px; }
.compare-carte h3 { font-size: 30px; font-weight: 800; }
.compare-prix { font: 800 clamp(24px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--green-ink); }
.compare-prix small { display: block; margin-top: 4px; font: 600 15px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.compare-liste { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.compare-liste li { position: relative; padding-left: 32px; color: #3d4641; font-size: 16.5px; line-height: 1.45; }
.compare-liste li::before { content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare-carte .btn { justify-self: start; margin-top: 4px; }
.compare-vedette { background: var(--dark) !important; border-color: var(--dark); color: #fff; box-shadow: 0 26px 56px rgba(19,32,27,.2); }
.compare-vedette .compare-tag { background: rgba(26,168,88,.25); color: var(--green-light); }
.compare-vedette h3 { color: #fff; }
.compare-vedette .compare-prix { color: var(--green-light); }
.compare-vedette .compare-prix small { color: #c3d3ca; }
.compare-vedette .compare-liste { border-color: rgba(255,255,255,.14); }
.compare-vedette .compare-liste li { color: #d5e2da; }
.compare-vedette strong { color: #fff; }

.prix-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.prix-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.section-alt .prix-note { background: var(--bg); }
.prix-note .cond-ico { flex: none; width: 44px; height: 44px; }
.prix-note p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.prix-note b { color: var(--fg); }
.guide-table th a { color: var(--green-ink); text-decoration: none; }
.guide-table th a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .compare, .prix-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .compare-carte { padding: 24px; }
  .compare-carte .btn { width: 100%; }
  .etiquette { padding: 18px; }
  .etiquette li { height: 30px; font-size: 15px; }
}
.guide-table td strong { white-space: nowrap; }

/* pages CECB des cantons : prix et reste à payer */
.prix-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.prix-grille .compare-carte { padding: 28px; grid-template-rows: auto auto auto 1fr; }
.prix-grille .compare-carte h3 { font-size: 26px; }
.reste-carte { display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto auto 1fr auto; padding: 28px; border-radius: 24px; background: var(--green-soft); border: 2px solid #bfe3cd; }
.reste-carte .compare-tag { background: #fff; }
.reste-n { font: 800 clamp(26px, 2.6vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--green-ink); }
.reste-carte > p:not(.reste-n):not(.reste-commune) { color: #3d4641; font-size: 16.5px; }
.reste-commune { display: flex; gap: 10px; align-items: center; align-self: start; padding: 10px 14px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15.5px; }
.reste-commune svg { flex: none; width: 20px; height: 20px; color: var(--green-ink); }
.reste-carte .btn { justify-self: start; align-self: end; }
.prix-note a { color: var(--green-ink); font-weight: 600; }
@media (max-width: 1080px) {
  .prix-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .reste-carte, .prix-grille .compare-carte { padding: 22px; }
  .reste-carte .btn { width: 100%; }
}

/* ---------- pages de service : confidentialité, mentions légales, contact, 404 (outils/pages-service.js) ---------- */
.hero-simple { background: radial-gradient(1100px 460px at 85% 0%, rgba(26,168,88,.24), transparent 60%), var(--dark); color: #fff; padding: 150px 0 76px; }
.hero-simple .wrap { display: grid; gap: 18px; justify-items: start; }
.hero-simple h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; color: #fff; max-width: 18em; }
.hero-simple h1 em { font-style: normal; color: var(--green-light); }
.hero-simple p { color: #c9d8d0; font-size: clamp(18px, 1.6vw, 20px); max-width: 40em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 110px; display: grid; gap: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--muted); }
.legal-toc a:hover { color: var(--green-ink); border-left-color: var(--green); }
.legal-toc .sommaire-titre { font: 700 12.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 27px); margin: 48px 0 14px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d4641; font-size: 17.5px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.prose a { color: var(--green-ink); font-weight: 600; }
.prose b { color: var(--fg); }
.prose-date { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px !important; color: var(--muted) !important; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px; align-items: start; }
.contact-form { padding: 34px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 56px rgba(19,32,27,.08); }
.contact-etape { display: grid; gap: 18px; }
.contact-etape h2, .contact-merci h2 { font-size: 26px; }
.contact-etape .btn { justify-self: start; }
.field select, .field textarea { font: 400 18px/1.4 var(--font-body); padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); width: 100%; }
.field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { resize: vertical; min-height: 150px; }
.field textarea[aria-invalid="true"] { border-color: #d92d20; }
.field label small { font-weight: 400; color: var(--muted); }
.contact-merci { display: grid; gap: 16px; justify-items: start; }
.contact-merci[hidden], .contact-etape[hidden] { display: none; }
.contact-merci p { color: var(--muted); }
.liens-cartes.liens-contact { grid-template-columns: minmax(0, 1fr); }
.liens-contact .lien-carte { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico txt fleche"; align-items: center; padding: 16px 18px; }
.liens-contact .lien-txt b { word-break: break-word; }

@media (max-width: 1080px) {
  .legal-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-toc { position: static; }
}
@media (max-width: 760px) {
  .hero-simple { padding: 120px 0 56px; }
  .contact-form { padding: 22px 18px; }
  .contact-etape .btn { width: 100%; }
  .legal-toc { display: none; }
}

/* ---------- SEO : liens dans les textes, pied de page à cinq colonnes, cantons voisins ---------- */
a.lien-texte { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
a.lien-texte:hover { text-decoration-thickness: 2px; }
.y2027 a.lien-texte, .bande-photo a.lien-texte, .cond-vedette a.lien-texte, .work-vedette a.lien-texte { color: var(--green-light); }
.footer-grid:has(> :nth-child(5)) { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.liens-voisins { margin-bottom: 8px; }
@media (max-width: 1080px) {
  .footer-grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .footer-grid:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); }
}

/* formulaires : champ piège contre les robots (invisible), message d'échec d'envoi */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.res-envoi { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff4e5; color: #7a4a00; font-size: 15px; }
.res-envoi[hidden] { display: none; }
.res-envoi a, .q-erreur a { color: inherit; font-weight: 700; }

/* ---------- demande de devis : encart, page /devis-travaux/, bouton du résultat du simulateur ---------- */
.encart-devis { display: flex; align-items: center; gap: 20px; margin-top: 32px; padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(19,32,27,.06); }
.section-alt .encart-devis { background: var(--bg); box-shadow: none; }
.ed-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.ed-ico svg { width: 28px; height: 28px; }
.ed-txt { flex: 1; display: grid; gap: 4px; min-width: 0; }
.ed-txt b { font: 800 19px/1.25 var(--font-display); }
.ed-txt span { color: var(--muted); font-size: 16px; }
.encart-devis .btn { flex: none; }
.etapes-devis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.etape-devis { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.section-alt .etape-devis { background: var(--bg); }
.ed-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 800 18px/1 var(--font-display); box-shadow: 0 0 0 7px rgba(26,168,88,.14); margin-bottom: 6px; }
.etape-devis p { color: var(--muted); }
.travaux-devis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.travaux-devis .cond p b { color: var(--fg); font-family: var(--font-display); }
.devis-sim { justify-self: start; }
.res-devis { border: 2px solid #bfe3cd; background: var(--green-soft); }
.res-devis p { color: #3d4641; font-size: 15.5px; margin: 6px 0 12px; }
.res-devis-etat { font-weight: 600; color: #7a4a00; }
.res-devis-etat.ok { color: var(--green-ink); }
.res-devis-etat a { color: inherit; }
@media (max-width: 1080px) {
  .etapes-devis, .travaux-devis { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .encart-devis { flex-direction: column; align-items: flex-start; padding: 20px; }
  .encart-devis .btn { width: 100%; }
}
.q-groupes { display: grid; gap: 22px; }

/* ---------- Téléphone : finitions (en-tête opaque, étiquettes lisibles, zones à toucher, pied en deux colonnes) ---------- */
.header.solid { background: #fff; }
@media (max-width: 920px) {
  .header .logo { display: flex; align-items: center; min-height: 44px; }
}
.hero-dot { height: 32px; padding-block: 14px; background-clip: content-box; border-radius: 0; }
.hero-dot span { inset: 14px 0; }
@media (max-width: 920px) {
  .footer ul { gap: 0; }
  .footer ul a, .footer .legal a { display: inline-block; padding-block: 10px; }
}
@media (max-width: 760px) {
  .footer-grid, .footer-grid:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 34px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer h4 { margin-bottom: 6px; }
  .footer .legal { margin-top: 36px; }
}
table th a, table td a { display: inline-block; padding-block: 9px; margin-block: -9px; }
@media (max-width: 760px) {
  .res-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .res-actions .btn { width: 100%; }
}

/* ---------- Estimateur fiscal (/valeur-locative/) ---------- */
.res-fiscal { display: grid; gap: 18px; }
.rf-tete { padding: 26px; border-radius: 18px; color: #fff; background: radial-gradient(600px 260px at 90% 0%, rgba(143,224,178,.25), transparent 60%), linear-gradient(135deg, var(--green-ink), #0b5b2f); }
.rf-tete .eyebrow { color: var(--green-light); }
.rf-tete h2 { color: #fff; margin: 10px 0 6px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.rf-tete .hint { color: rgba(255,255,255,.82); margin: 0; }
.rf-total { display: block; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin-top: 6px; color: var(--green-light); white-space: nowrap; }
.rf-annees { width: 100%; border-collapse: collapse; font-size: 16px; }
.rf-annees th, .rf-annees td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.rf-annees thead th { font: 700 12.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rf-annees td:last-child, .rf-annees th:last-child { text-align: right; }
.rf-annees td { white-space: nowrap; }
.rf-notes { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.rf-avert { margin: 0; font-size: 14px; color: var(--muted); }
.rf-sim { justify-self: start; }
.res-envoi:not(.echec) { background: var(--green-soft); color: var(--green-ink); }
.fiscal-pv { padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #7a4a00; }
.fiscal-pv[hidden], [data-si][hidden] { display: none; }
@media (max-width: 760px) {
  .rf-tete { padding: 20px; }
  .rf-sim { justify-self: stretch; width: 100%; }
  .rf-annees { font-size: 15px; }
  .rf-annees th, .rf-annees td { padding: 10px 6px; }
}
.encart-fiscal { margin-top: 16px; background: var(--surface); border-style: dashed; }
.encart-devis + .liens-cartes { margin-top: 18px; }
/* bannière de mesure d'audience ouverte (assets/mesure.js) : la barre du bas s'efface pour ne pas la recouvrir */
.mesure-ouverte #barre-cta { opacity: 0; pointer-events: none; }

/* Page /geneve/communes/ : index des 45 communes, une fiche dépliable par commune */
.communes-index { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ci { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 15px/1.2 var(--font-body); text-decoration: none; color: var(--fg); transition: border-color .2s ease, background .2s ease; }
.ci::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c6d0ca; flex: none; }
a.ci:hover { border-color: var(--green); background: var(--green-soft); }
.ci-aide { border-color: #bfe3cd; }
.ci-aide::before { background: var(--green); }
.ci-visite::before { background: var(--green-light); }
.ci-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); }
.ci-legende .ci { padding: 0; border: 0; background: none; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.communes-faq details { scroll-margin-top: 100px; }
.communes-faq summary { align-items: baseline; flex-wrap: wrap; }
.communes-faq .cd-nom { font: 700 19px/1.3 var(--font-display); }
.communes-faq .cd-sujets { flex: 1 1 260px; color: var(--muted); font: 600 14.5px/1.4 var(--font-body); }
.communes-faq .table-box { margin: 0 0 22px; }
.communes-faq .cd-note { margin: -8px 0 22px; padding: 12px 16px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 10px 10px 0; font-size: 15.5px; color: var(--fg); }
.communes-faq .guide-table th[scope="row"] { white-space: nowrap; }
@media (max-width: 640px) {
  .ci { padding: 8px 12px; font-size: 14.5px; }
  .communes-faq .guide-table th[scope="row"] { white-space: normal; }
}

/* /geneve/communes/ : recherche d'une commune (assets/site.js), suggestions et carte réponse */
.rc { position: relative; max-width: 680px; margin-bottom: 40px; }
.rc[hidden] { display: none; }
.rc-label { display: block; font: 700 15px/1.3 var(--font-display); margin-bottom: 10px; }
.rc-boite { position: relative; }
.rc-boite input { width: 100%; height: 60px; padding: 0 20px 0 54px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359625d' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px 50% / 22px; font: 600 18px/1 var(--font-body); color: var(--fg); transition: border-color .2s ease, box-shadow .2s ease; }
.rc-boite input::placeholder { color: #8a948e; font-weight: 400; }
.rc-boite input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.rc-liste { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(19,32,27,.14); }
.rc-liste[hidden] { display: none; }
.rc-liste li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.rc-liste li small { flex: none; color: var(--muted); font-weight: 400; font-size: 14px; }
.rc-liste li[aria-selected="true"], .rc-liste li:hover { background: var(--green-soft); }
.rc-liste li.rc-vide { cursor: default; color: var(--muted); font-weight: 400; background: none; }
.rc-carte { margin-top: 18px; }
.rc-carte[hidden] { display: none; }
.rc-in { display: grid; gap: 12px; padding: 24px; border: 1px solid #bfe3cd; border-radius: 18px; background: var(--surface); box-shadow: 0 14px 32px rgba(19,32,27,.07); }
.rc-in.rc-rien { border-color: var(--line); }
.rc-badge { justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font: 700 12.5px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.rc-rien .rc-badge { background: #eef1ef; color: var(--muted); }
.rc-in h3 { font-size: 24px; }
.rc-in p { color: var(--muted); }
.rc-aides { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-aides li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 16.5px; line-height: 1.45; }
.rc-aides b { font: 700 13.5px/1.3 var(--font-display); color: var(--green-ink); }
.rc-actions { margin-top: 4px; }
.ci-titre { font-weight: 700; margin-bottom: 14px; }
.ci-autres { margin-top: 18px; color: var(--muted); }
.ci-autres a { color: var(--green-ink); font-weight: 700; }
@media (max-width: 640px) {
  .rc-in { padding: 20px; }
  .rc-actions .btn { width: 100%; }
}

/* Vidéos explicatives (outils/communs.js, videoSection) : bande sombre, vidéo 16:9, transcription dépliable */
.video-section { background: var(--dark); color: #fff; }
.video-section .section-head { text-align: center; justify-items: center; align-items: center; max-width: 760px; margin-inline: auto; }
.video-section .section-head h2 { color: #fff; }
.video-section .section-head p { color: rgba(255,255,255,.78); }
.video-section .eyebrow { color: var(--green-light); }
.video-explicative { max-width: 960px; margin: 0 auto; }
.video-explicative video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #0d1713; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.video-explicative figcaption { margin-top: 14px; text-align: center; color: rgba(255,255,255,.7); font-size: 15px; }
.video-section .transcription { max-width: 960px; margin: 22px auto 0; padding: 0 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.video-section .transcription summary { cursor: pointer; padding: 16px 0; font: 700 15.5px/1.3 var(--font-display); color: #fff; }
.video-section .transcription p { padding-bottom: 18px; color: rgba(255,255,255,.82); font-size: 16.5px; line-height: 1.65; }
@media (max-width: 640px) {
  .video-explicative video { border-radius: 14px; }
  .video-section .transcription { padding: 0 16px; }
}
