/* Page C2E · financer une part des travaux par les certificats d’économies d’énergie */
.ce-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-top: 88px; }
.ce-hero h1 { margin-top: 12px; font-size: 56px; line-height: 1.04; letter-spacing: -.025em; color: var(--ink); }
.ce-hero-copy > p:not(.pg-kicker) { margin-top: 24px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--text); }
.ce-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ce-acts .btn:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; }
.ce-acts .btn-line:hover { background: rgba(31, 51, 64, .06); }

.ce-panel { position: relative; margin: 0; padding: 48px 48px 72px; background: linear-gradient(155deg, #5aa0d0 0%, #2f7cb2 50%, #24597f 100%); }
.ce-track { position: relative; list-style: none; margin: 0; padding: 0 0 0 32px; display: grid; gap: 12px; }
.ce-track::before { content: ""; position: absolute; left: 7px; top: 24px; bottom: 24px; width: 2px; background: rgba(255, 255, 255, .5); }
.ce-track li { position: relative; padding: 16px 20px; background: rgba(255, 255, 255, .1); color: #fff; }
.ce-track li::before { content: ""; position: absolute; left: -31px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; }
.ce-track b { display: block; font: 400 21px/1.2 var(--serif); }
.ce-track span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.ce-track li.is-key { background: #fff; color: var(--ink); }
.ce-track li.is-key span { color: var(--text); }
.ce-track li.is-key::before { background: var(--lemon); box-shadow: 0 0 0 4px rgba(255, 230, 0, .3); }
.ce-hand { position: absolute; right: 32px; bottom: 20px; font-size: 27px; color: #fff; transform: rotate(-3deg); }

.ce-how { padding-top: 128px; }
.ce-how h2, .ce-do h2, .ce-ops h2, .ce-reg h2 { font-size: 40px; line-height: 1.1; color: var(--ink); }
.ce-how-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.ce-how h3 { font-size: 22px; line-height: 1.25; color: var(--ink); }
.ce-how p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text); }

.ce-rule { margin-top: 128px; }
.ce-rule-in { margin-inline: var(--edge); padding: 72px 64px 80px; background: var(--lemon); }
.ce-rule-k { margin: 0; font: 600 13.5px/1.4 var(--sans); color: var(--ink); }
.ce-rule h2 { margin-top: 12px; max-width: 30ch; font-size: 44px; line-height: 1.08; color: var(--ink); }
.ce-rule-in > p:not(.ce-rule-k) { margin-top: 24px; max-width: 64ch; font-size: 18px; line-height: 1.6; color: var(--ink); }

.ce-do { padding-top: 128px; }
.ce-do-head p { margin-top: 16px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--text); }
.ce-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: ce; }
.ce-steps li { counter-increment: ce; }
.ce-steps b { display: flex; align-items: center; gap: 12px; font: 400 26px/1.2 var(--serif); color: var(--ink); }
.ce-steps b::before { content: counter(ce); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lemon); font: 500 15px/1 var(--sans); color: var(--ink); }
.ce-steps p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text); }

.ce-ops { margin-top: 128px; padding: 104px 0 112px; background: linear-gradient(100deg, var(--ink) 0%, #234e6b 50%, #24557a 100%); color: #fff; }
.ce-ops h2 { color: #fff; max-width: 26ch; }
.ce-ops-lead { margin-top: 16px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.ce-ops-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.ce-ops h3 { font-size: 22px; color: #fff; }
.ce-ops ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.ce-ops li { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.ce-ops li b { display: block; margin-bottom: 2px; font: 600 13px/1.4 var(--sans); letter-spacing: .02em; color: #fff; }

.ce-reg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; padding-top: 128px; padding-bottom: 128px; }
.ce-reg-copy p { margin-top: 20px; max-width: 60ch; font-size: 17px; line-height: 1.65; color: var(--text); }
.ce-links { display: flex; gap: 24px; margin-top: 28px; }
.ce-src { align-self: end; padding: 28px 32px; background: #f2f5f7; }
.ce-src-t { margin: 0; font: 600 13.5px/1.4 var(--sans); color: var(--ink); }
.ce-src ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ce-src a { font-size: 14px; line-height: 1.45; color: var(--sky-ink); }
.ce-src a:focus-visible, .ce-links a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

@media (max-width: 900px) {
  .ce-hero, .ce-do-head, .ce-reg { grid-template-columns: 1fr; gap: 40px; }
  .ce-hero { padding-top: 48px; }
  .ce-hero h1 { font-size: 38px; }
  .ce-panel { margin-inline: calc(var(--edge) * -1); padding: 32px var(--edge) 64px; }
  .ce-how-g, .ce-steps, .ce-ops-g { grid-template-columns: 1fr; gap: 32px; }
  .ce-how h2, .ce-do h2, .ce-ops h2, .ce-reg h2 { font-size: 30px; }
  .ce-how, .ce-do, .ce-reg { padding-top: 80px; }
  .ce-rule, .ce-ops { margin-top: 80px; }
  .ce-rule-in { margin-inline: 0; padding: 48px var(--edge); }
  .ce-rule h2 { font-size: 30px; }
}

/* Second passage (7 nov.) · textes toujours sous les titres ; fiches en clair, deux par deux ; trois ouvertures au choix */
.ce-ops { background: #f2f5f7; color: var(--text); }
.ce-ops h2 { color: var(--ink); }
.ce-ops-lead { color: var(--text); }
.ce-ops-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 80px; }
.ce-fam h3 { font-size: 26px; color: var(--ink); }
.ce-fam > p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--text); }
.ce-fam ul { margin-top: 24px; gap: 20px; }
.ce-fam li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.ce-fam li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 1px rgba(31, 51, 64, .25); }
.ce-fam li small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* A · frise verticale : le trait relie exactement le premier et le dernier jalon */
.ce-track::before { display: none; }
.ce-track li:not(:last-child)::after { content: ""; position: absolute; left: -25px; top: 50%; width: 2px; height: calc(100% + 12px); background: rgba(255, 255, 255, .5); }

/* B · frise horizontale sous le texte */
.ce-hb, .ce-panel-c { display: none; }
html[data-ceo="b"] .ce-panel, html[data-ceo="c"] .ce-panel:not(.ce-panel-c) { display: none; }
html[data-ceo="b"] .ce-hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
html[data-ceo="b"] .ce-hb { display: block; margin-top: 64px; }
.ce-hz { list-style: none; margin: 0; padding: 40px 48px 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; background: linear-gradient(100deg, var(--ink) 0%, #234e6b 50%, #24557a 100%); color: #fff; }
.ce-hz li { position: relative; padding-top: 36px; }
.ce-hz li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ce-hz li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 6px; width: calc(100% + 10px); height: 2px; background: rgba(255, 255, 255, .5); }
.ce-hz li.is-key::before { background: var(--lemon); box-shadow: 0 0 0 4px rgba(255, 230, 0, .3); }
.ce-hz b { display: block; font: 400 21px/1.2 var(--serif); }
.ce-hz span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .86); }

/* C · le bon ordre, le mauvais ordre */
html[data-ceo="c"] .ce-panel-c { display: grid; gap: 28px; }
.ce-seq-t { margin: 0 0 12px; font: 500 15px/1.3 var(--sans); color: #fff; }
.ce-seq ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.ce-seq li { position: relative; display: flex; align-items: center; min-height: 56px; padding: 8px 12px; background: rgba(255, 255, 255, .12); font: 400 18px/1.2 var(--serif); color: #fff; }
.ce-seq li.is-key { background: #fff; color: var(--ink); box-shadow: inset 0 -4px 0 var(--lemon); }
.ce-seq.is-ok li.is-end { background: #fff; color: var(--ink); }
.ce-seq.is-ko li { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); }
.ce-seq.is-ko li:first-child { background: rgba(255, 255, 255, .16); color: #fff; }
.ce-seq.is-ko li.is-end { color: #fff; text-decoration: line-through; text-decoration-thickness: 2px; }
html[data-ceo="c"] .ce-panel-c { padding-bottom: 80px; }

@media (max-width: 900px) {
  .ce-ops-g { grid-template-columns: 1fr; gap: 40px; }
  html[data-ceo="b"] .ce-hero { grid-template-columns: 1fr; }
  .ce-hz { grid-template-columns: 1fr; gap: 20px; margin-inline: calc(var(--edge) * -1); padding: 32px var(--edge); }
  .ce-hz li { padding: 0 0 0 32px; }
  .ce-hz li:not(:last-child)::after { left: 6px; top: 14px; width: 2px; height: calc(100% + 6px); }
  .ce-seq ol { grid-template-columns: 1fr 1fr; }
}
.ce-ops h2 { max-width: none; }
.ce-seq li { font-size: 16.5px; }

/* Fiches · trois présentations (A tableau sur cette page ; B onglets et C exemples sur c2e-fiches-b et -c) */
.cf { margin-top: 48px; }
.cf-b { display: none; }
html[data-cef="b"] .cf-b { display: block; }
html[data-cef="b"] .cf-c { display: none; }
/* A · tableau */
.cf-t { width: 100%; border-collapse: collapse; background: #fff; }
.cf-t thead th { padding: 16px 32px; font: 500 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--muted); }
.cf-t thead th:last-child, .cf-t td:last-child { width: 200px; }
.cf-fam th { padding: 32px 32px 12px; text-align: left; font: 400 26px/1.2 var(--serif); color: var(--ink); }
.cf-fam th span { display: block; margin-top: 4px; font: 400 15.5px/1.5 var(--sans); color: var(--text); }
.cf-t td { padding: 14px 32px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.cf-t td:last-child { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.cf-t tbody tr:not(.cf-fam):nth-child(even) td { background: #f7f9fa; }
.cf-t tbody:last-child tr:last-child td { padding-bottom: 32px; }
/* B · onglets */
.cf-b { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.cf-tabs { display: grid; gap: 4px; }
.cf-tabs button { position: relative; padding: 20px 24px; border: 0; background: transparent; text-align: left; font: 400 24px/1.2 var(--serif); color: var(--muted); cursor: pointer; transition: background-color .2s ease-out, color .2s ease-out; }
.cf-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.cf-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: inset 4px 0 0 var(--lemon); }
.cf-tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.cf-pans > div { padding: 40px 48px 48px; background: #fff; }
.cf-pans > div > p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text); }
.cf-pans ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.cf-pans li { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.cf-pans li small { display: block; margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--muted); }
/* C · quatre exemples */
.cf-ex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cf-ex li { display: flex; flex-direction: column; padding: 32px 28px 28px; background: #fff; }
.cf-ex h3 { font-size: 24px; line-height: 1.2; color: var(--ink); }
.cf-ex p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.cf-ex small { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); }
.cf-more { margin: 32px 0 0; font-size: 17px; line-height: 1.6; color: var(--text); }
@media (max-width: 900px) {
  .cf-t thead { display: none; }
  .cf-t td, .cf-fam th { padding-inline: 16px; }
  .cf-t td:last-child { width: auto; }
  .cf-b { grid-template-columns: 1fr; gap: 16px; }
  .cf-pans ul, .cf-ex { grid-template-columns: 1fr; }
}

/* Troisième passage · fond plus franc pour les fiches ; onglets sans filet citron ; ouverture B sans vide à droite */
.ce-ops { background: linear-gradient(100deg, var(--ink) 0%, #234e6b 50%, #24557a 100%); color: #fff; }
.ce-ops h2 { color: #fff; }
.ce-ops-lead { color: rgba(255, 255, 255, .88); }
.cf-ex li { background: #fff; }
.cf-all { margin-top: 32px; }
.cf-all summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .6); color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; list-style: none; }
.cf-all summary::-webkit-details-marker { display: none; }
.cf-all summary::after { content: "+"; font-size: 18px; }
.cf-all[open] summary::after { content: "–"; }
.cf-all summary:hover { background: rgba(255, 255, 255, .1); }
.cf-all summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cf-all ul { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: 64px; }
.cf-all li { break-inside: avoid; padding: 8px 0; font-size: 16px; line-height: 1.4; color: #fff; }
.cf-all li small { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
/* B · onglets en ligne, l’onglet choisi en blanc plein */
.cf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-tabs button { padding: 12px 20px; font: 400 19px/1.2 var(--serif); color: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .35); background: transparent; box-shadow: none; }
.cf-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cf-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }
.cf-pans > div { margin-top: 32px; padding: 0; background: none; }
.cf-pans > div > p { color: rgba(255, 255, 255, .88); }
.cf-pans ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cf-pans li { color: #fff; }
.cf-pans li small { color: rgba(255, 255, 255, .72); }
/* B · ouverture : le titre s’étire, la frise suit juste dessous */
html[data-ceo="b"] .ce-hero { display: block; padding-top: 72px; }
html[data-ceo="b"] .ce-hero h1 { max-width: none; font-size: 60px; }
html[data-ceo="b"] .ce-hero h1 br { display: none; }
html[data-ceo="b"] .ce-hero-copy > p:not(.pg-kicker) { max-width: 76ch; }
html[data-ceo="b"] .ce-hb { margin-top: 48px; }
@media (max-width: 900px) { .cf-all ul { columns: 1; } .cf-pans ul { grid-template-columns: 1fr; } html[data-ceo="b"] .ce-hero h1 { font-size: 38px; } }

/* Quatrième passage · la page prend sa couleur : l’encre SPEC fondue dans un vert énergie ; le tampon C2E dans l’ouverture */
.ce-hero-copy { position: relative; }
.ce-stamp { position: absolute; right: -8px; top: -24px; width: 132px; height: 132px; color: var(--c2e-2); }
.pg-kicker { color: var(--c2e-2); }
.ce-panel, .ce-hz, .ce-ops { background: linear-gradient(100deg, var(--c2e-1) 0%, var(--c2e-2) 55%, var(--c2e-3) 100%); }
.ce-panel { background: linear-gradient(160deg, var(--c2e-3) 0%, var(--c2e-2) 50%, var(--c2e-1) 100%); }
.ce-steps b::before { background: var(--c2e-pale); box-shadow: inset 0 0 0 1.5px var(--c2e-2); color: var(--c2e-2); }
.ce-src { background: var(--c2e-pale); }
.ce-src a { color: var(--c2e-2); }
.ce-how { position: relative; }
.ce-rule-in { background: var(--lemon); }
html[data-ceo="b"] .ce-stamp { right: 0; top: 0; width: 168px; height: 168px; }
@media (max-width: 900px) { .ce-stamp { position: static; width: 96px; height: 96px; margin-bottom: 16px; } }

/* Cinquième passage · les couleurs officielles CEE remplacent le vert maison ; le sceau officiel dans l’ouverture */
.ce-panel { background: linear-gradient(160deg, var(--cee-cyan) 0%, #0089b8 45%, var(--cee-bleu) 100%); }
.ce-hz, .ce-ops { background: linear-gradient(100deg, var(--cee-bleu) 0%, #0089b8 60%, var(--cee-cyan) 100%); }
.ce-track li.is-key::before, .ce-hz li.is-key::before { background: var(--cee-vert); box-shadow: 0 0 0 4px rgba(128, 186, 38, .35); }
.pg-kicker { color: var(--cee-bleu); }
.ce-stamp { width: 128px; height: auto; top: -32px; transform: rotate(-8deg); }
.ce-steps b::before { background: var(--cee-vert); box-shadow: none; color: #fff; }
.ce-src { background: #eaf6fd; }
.ce-src a { color: var(--cee-bleu); }
.ce-rule-in { background: var(--cee-clair); }
.cf-ex small { color: var(--cee-bleu); }

/* Sixième passage · un seul univers : l’encre SPEC mariée au bleu et au vert des CEE, du haut de la page jusqu’au pied de page */
.page-cee { --mix: linear-gradient(100deg, var(--ink) 0%, #164e6e 45%, var(--cee-bleu) 78%, #2d8a64 100%); }
.ce-panel { background: linear-gradient(160deg, var(--cee-bleu) 0%, #164e6e 55%, var(--ink) 100%); }
.ce-ops, .ce-hz { background: var(--mix); }
.page-cee .end { background: var(--mix); }
.page-cee .end .contact, .page-cee .end .footer { background: transparent; }
.ce-rule-in { background: var(--cee-clair); }
/* C · le logo officiel en vedette à droite */
.ce-logo-hero { display: none; margin: 0; }
html[data-ceo="c"] .ce-panel:not(.ce-panel-c) { display: none; }
html[data-ceo="c"] .ce-logo-hero { display: grid; justify-items: end; gap: 24px; }
html[data-ceo="c"] .ce-stamp { display: none; }
.ce-logo-hero img { width: 100%; max-width: 560px; height: auto; }
.ce-logo-hero .hand { font-size: 30px; color: var(--cee-bleu); transform: rotate(-3deg); }
/* D · bandeau plein : le dégradé mêlé porte tout le haut de page, le sceau en tampon */
html[data-ceo="d"] .ce-hero { position: relative; isolation: isolate; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: 96px; padding-bottom: 96px; }
html[data-ceo="d"] .ce-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--edge) * -1); background: var(--mix); }
html[data-ceo="d"] .ce-panel:not(.ce-panel-c) { display: none; }
html[data-ceo="d"] .ce-hero h1, html[data-ceo="d"] .ce-hero-copy > p { color: #fff; }
html[data-ceo="d"] .ce-hero .pg-kicker { color: rgba(255, 255, 255, .86); }
html[data-ceo="d"] .ce-acts .btn-dark { background: #fff; color: var(--ink); }
html[data-ceo="d"] .ce-acts .btn-line { color: #fff; border-color: rgba(255, 255, 255, .7); }
html[data-ceo="d"] .ce-acts .btn-line:hover { background: rgba(255, 255, 255, .12); }
html[data-ceo="d"] .ce-hero-copy { position: static; }
html[data-ceo="d"] .ce-stamp { position: absolute; right: 24px; top: 50%; width: 220px; transform: translateY(-50%) rotate(-8deg); }
@media (max-width: 900px) { html[data-ceo="d"] .ce-hero { grid-template-columns: 1fr; } html[data-ceo="d"] .ce-stamp { position: static; transform: rotate(-8deg); width: 120px; } }

/* Septième passage · la règle en turquoise C2E (texte encre, contraste suffisant) ; les fiches en panneau cerné de blanc ;
   C : le logo officiel à gauche, le texte à droite */
.ce-rule-in { background: var(--cee-cyan); }
.ce-rule-k, .ce-rule h2, .ce-rule-in > p { color: var(--ink); }
.ce-ops { margin: 128px var(--edge) 0; padding: 96px 72px 104px; }
.ce-ops > .shell { padding-inline: 0; }
html[data-ceo="c"] .ce-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
html[data-ceo="c"] .ce-logo-hero { order: -1; justify-items: start; }
html[data-ceo="c"] .ce-logo-hero .hand { justify-self: end; }
@media (max-width: 900px) { .ce-ops { margin-inline: 0; padding: 64px var(--edge); } html[data-ceo="c"] .ce-hero { grid-template-columns: 1fr; gap: 32px; } }

/* Huitième passage · toute la page dans l’univers C2E : bleu clair et bleu foncé du logo (plus d’encre SPEC ni de dégradé vert) ;
   le vert ne reste qu’en petites touches (puces, jalon clé) */
.page-cee { --cee-fonce: #00557d; --mix: linear-gradient(100deg, var(--cee-fonce) 0%, var(--cee-bleu) 60%, #0083b3 100%); }
.page-cee .ce-panel { background: linear-gradient(160deg, #0083b3 0%, var(--cee-bleu) 50%, var(--cee-fonce) 100%); }
.page-cee .ce-ops, .page-cee .ce-hz, .page-cee .end { background: var(--mix); }
.page-cee .ce-rule-in { background: var(--cee-clair); }
.page-cee .ce-rule-k, .page-cee .ce-rule h2 { color: var(--cee-fonce); }
.page-cee .ce-rule-in > p { color: var(--ink); }
.page-cee .ce-hero h1, .page-cee .ce-how h2, .page-cee .ce-do h2, .page-cee .ce-reg h2, .page-cee .ce-how h3, .page-cee .ce-steps b { color: var(--cee-fonce); }
.page-cee .btn-dark { background: var(--cee-bleu); }
.page-cee .btn-dark:hover { background: var(--cee-fonce); }
.page-cee .ce-steps b::before { background: var(--cee-clair); color: var(--cee-fonce); }
.page-cee .ce-src { background: #eef7fd; }

/* Neuvième passage · alternance des trois couleurs du logo : bleu foncé, bleu clair, vert (en aplats et en puces, jamais en texte) */
.page-cee { --cee-vert-pale: #eef6e2; }
.page-cee .ce-steps b::before { background: var(--cee-vert); color: var(--ink); }
.page-cee .ce-how h3 { position: relative; padding-left: 22px; }
.page-cee .ce-how h3::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--cee-vert); }
.page-cee .ce-reg { position: relative; isolation: isolate; margin-top: 128px; padding-top: 96px; padding-bottom: 104px; }
.page-cee .ce-reg::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--edge) * -1); background: var(--cee-vert-pale); }
.page-cee .ce-src { background: #fff; }
.page-cee .ce-ops-lead, .page-cee .cf-ex small { border-color: var(--cee-vert); }
.page-cee .cf-ex li { box-shadow: inset 0 4px 0 var(--cee-vert); }
.page-cee .ce-rule-in { box-shadow: inset 6px 0 0 var(--cee-vert); }
.page-cee .ce-track li.is-key::before { background: var(--cee-vert); }
.page-cee .ce-reg + * { margin-top: 0; }
.page-cee .ce-reg::before { inset: 0; }
.page-cee .cf-ex li, .page-cee .ce-rule-in { box-shadow: none; }
/* Plus de bandeau vert pâle collé au bas de page : « Avec le décret BACS » revient sur le blanc, avec de l’air avant le contact ; sources sur fond blanc */
.page-cee .ce-reg { padding-top: 0; padding-bottom: 0; margin-top: 128px; }
.page-cee .ce-reg::before { display: none; }
.page-cee .ce-reg + .end, .page-cee .ce-reg ~ .end { margin-top: 128px; }
.page-cee .ce-src { background: #fff; box-shadow: none; padding-left: 0; padding-right: 0; }
/* Comment fonctionnent les C2E : trois dessins dans la charte du logo, numérotés 1, 2, 3 */
.ce-how-d { list-style: none; padding: 0; counter-reset: h; }
.ce-how-d li { counter-increment: h; }
.ce-how-d img { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; margin: 0 0 16px -12px; mix-blend-mode: multiply; }
.page-cee .ce-how-d h3 { padding-left: 44px; }
.page-cee .ce-how-d h3::before { content: counter(h); top: -.1em; width: 32px; height: 32px; display: grid; place-items: center; font: 600 15px/1 var(--sans); color: #fff; background: var(--cee-bleu); }
/* Comment fonctionnent les C2E · trois étapes sur une même trame : tuile bleu pâle, dessin centré, numéro, pointillés d’une étape à l’autre */
.ce-how-lead { margin-top: 16px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--text); }
.ce-how-d { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.ce-how-d li { position: relative; }
.ce-how-fig { position: relative; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #eaf5fc; }
.ce-how-fig img { width: 66%; height: auto; mix-blend-mode: multiply; }
.ce-how-n { position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cee-bleu); font: 600 16px/1 var(--sans); color: #fff; }
.ce-how-d li:not(:last-child) .ce-how-fig::after { content: ""; position: absolute; left: 100%; top: 50%; width: 48px; border-top: 3px dotted var(--cee-bleu); }
.page-cee .ce-how-d h3 { margin-top: 24px; padding-left: 0; font-size: 21px; line-height: 1.25; color: var(--cee-fonce); }
.page-cee .ce-how-d h3::before { content: none; }
.ce-how-d p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 900px) { .ce-how-d { grid-template-columns: 1fr; gap: 40px; } .ce-how-d li:not(:last-child) .ce-how-fig::after { content: none; } }
/* Retour du 7 nov. : sur le blanc, dessins plus petits ; le numéro passe devant le titre */
.ce-how-fig { aspect-ratio: auto; display: block; background: none; }
.ce-how-fig img { display: block; width: 200px; margin: 0; }
.ce-how-d li:not(:last-child) .ce-how-fig::after { content: none; }
.ce-how-n { position: static; display: inline-grid; flex: none; width: 32px; height: 32px; font-size: 15px; }
.page-cee .ce-how-d h3 { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ce-how-d .ce-how-fig { height: 148px; display: flex; align-items: flex-end; }
.ce-how-d .ce-how-fig img { width: auto; max-width: 220px; height: auto; max-height: 148px; margin: 0; }
/* Retour du 7 nov. (soir) : dessins centrés, hauteur fixe (Safari les rétrécissait) */
.ce-how-d .ce-how-fig { height: 184px; display: flex; align-items: center; justify-content: center; }
.ce-how-d .ce-how-fig img { flex: none; width: auto; max-width: none; height: 168px; margin: 0; }
.ce-how-d .ce-how-fig img[src*="dessin-1"] { height: 132px; }
/* Contraste entre l’ouverture et « Comment fonctionnent les C2E » (menu d’options, clé ceh) */
.ce-hero, .ce-how { position: relative; isolation: isolate; }
html[data-ceh="b"] .ce-hero { padding-bottom: 88px; }
html[data-ceh="b"] .ce-hero::before, html[data-ceh="c"] .ce-how::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(var(--edge) * -1); right: calc(var(--edge) * -1); background: #eef7fd; }
html[data-ceh="b"] .ce-hero::before { top: -200px; }
html[data-ceh="c"] .ce-how { margin-top: 112px; padding-top: 88px; padding-bottom: 96px; }
html[data-ceh="c"] .ce-rule { margin-top: 112px; }
html[data-ceh="d"] .ce-how { margin-top: 112px; padding-top: 96px; border-top: 1px solid rgba(0, 85, 125, .18); }
html[data-ceh="b"] .ce-logo-hero img, html[data-ceh="b"] .ce-stamp { mix-blend-mode: multiply; }
.ce-how-d .ce-how-fig img { aspect-ratio: auto; object-fit: contain; }
.ce-how-d .ce-how-fig img { max-height: none; max-width: 100%; height: 160px; width: auto; } .ce-how-d .ce-how-fig img[src*="dessin-1"] { height: 128px; }

/* Contraste E : « Comment » sur le dégradé bleu des C2E, pastilles blanches, dessins posés sur des disques blancs */
html[data-ceh="e"] .ce-how { margin-top: 112px; padding-top: 96px; padding-bottom: 104px; color: #fff; }
html[data-ceh="e"] .ce-how::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(var(--edge) * -1); right: calc(var(--edge) * -1); background: linear-gradient(100deg, #00557d 0%, #0077a6 100%); }
html[data-ceh="e"] .ce-how h2, html[data-ceh="e"] .page-cee .ce-how-d h3, html[data-ceh="e"] .ce-how-d h3 { color: #fff; }
html[data-ceh="e"] .ce-how p, html[data-ceh="e"] .ce-how-lead { color: rgba(255, 255, 255, .92); }
html[data-ceh="e"] .ce-how .text-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
html[data-ceh="e"] .ce-how-n { background: #fff; color: var(--cee-bleu); }
html[data-ceh="e"] .ce-how-d .ce-how-fig { width: 232px; height: 232px; margin: 0 auto; border-radius: 50%; background: #fff; }
html[data-ceh="e"] .ce-how-d .ce-how-fig img { height: 132px; max-width: 76%; }
html[data-ceh="e"] .ce-how-d .ce-how-fig img[src*="dessin-1"] { height: 104px; }
/* Contraste F : le bleu pâle du haut se fond dans le blanc avant « Comment » */
html[data-ceh="f"] .ce-hero { padding-bottom: 96px; }
html[data-ceh="f"] .ce-hero::before { content: ""; position: absolute; z-index: -1; top: -200px; bottom: 0; left: calc(var(--edge) * -1); right: calc(var(--edge) * -1); background: linear-gradient(180deg, #e3f2fb 0%, #eef7fd 55%, #fff 100%); }
html[data-ceh="f"] .ce-logo-hero img, html[data-ceh="f"] .ce-stamp { mix-blend-mode: multiply; }
