.ethmc{--green:#066b38;--ink:#132a25;--line:#cbded6;--surface:#f3f8f5;color:var(--ink);font-family:"Arial Narrow",Arial,sans-serif}
.ethmc *{box-sizing:border-box}
.ethmc-hero{position:relative;display:grid;grid-template-columns:1fr minmax(0,240px);align-items:center;gap:1rem;padding:clamp(1.3rem,4vw,3rem);background:linear-gradient(112deg,#0b241e,#10573a);color:white;border-radius:20px;overflow:hidden}
.ethmc-hero p{margin:0;color:inherit}
.ethmc-hero .ethmc-kicker{color:#8ce5b0;font-size:.78rem;letter-spacing:.14em;font-weight:700}
.ethmc-hero .ethmc-title{color:white;font-size:clamp(2rem,4vw,3.8rem);line-height:1.04;font-weight:800;margin:.45rem 0 .75rem}
.ethmc-hero svg{width:100%;color:#8ce5b0;opacity:.78}
.ethmc nav{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin:1rem 0 1.4rem}
.ethmc nav a,.ethmc button{padding:.75rem 1rem;border:1px solid var(--line);border-radius:9px;font-weight:700;text-decoration:none}
.ethmc nav a{text-align:center;background:var(--surface);color:var(--ink)}
.ethmc nav [aria-current],.ethmc button{background:var(--green);border-color:var(--green);color:white;cursor:pointer}
.ethmc button:hover,.ethmc nav [aria-current]:hover{background:#08482d}
.ethmc :focus-visible{outline:3px solid #178452;outline-offset:3px}
.ethmc-library,.ethmc-group,.ethmc-output{border:1px solid var(--line);border-radius:14px;background:white;padding:clamp(.85rem,2vw,1.4rem);margin:0 0 1rem;min-width:0}
.ethmc-library{background:var(--surface)}
.ethmc-library h3,.ethmc-group legend,.ethmc-output h3{margin:0 0 .65rem;color:var(--green);font-size:1.1rem;font-weight:800}
.ethmc-group legend{padding:0 .45rem;margin:0}
.ethmc-library-row,.ethmc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.9rem;align-items:end}
.ethmc label{display:flex;flex-direction:column;justify-content:space-between;gap:.35rem;font-size:.92rem;font-weight:700;min-width:0}
.ethmc select,.ethmc input:not([type=checkbox]){width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;padding:.65rem;background:#fff;color:var(--ink);font:inherit}
.ethmc input[type=checkbox]{accent-color:var(--green);width:1.25rem;height:1.25rem;margin:.5rem 0}
.ethmc-notice:empty{display:none}
.ethmc-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}
.ethmc-output{background:var(--surface);border-left:4px solid var(--green)}
.ethmc-results{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.4rem 1rem;margin:0}
.ethmc-results dd{margin:0;color:var(--green);font-weight:800;font-variant-numeric:tabular-nums}
.ethmc-results :nth-child(-n+4){padding:.55rem .65rem;background:white;border-radius:7px;font-size:clamp(1rem,2vw,1.35rem);font-weight:800}
@media(max-width:670px){.ethmc-hero{grid-template-columns:1fr}.ethmc-hero svg{display:none}.ethmc nav{grid-template-columns:repeat(2,1fr)}}

.ethmc{max-width:1180px;margin-inline:auto}
.ethmc-group{margin-bottom:1.75rem;padding:clamp(1rem,3vw,2rem);background:var(--card,#f3f8f5)}
.ethmc-group--approach{--card:#f1f6fa;--accent:#245c7a;border-color:#cddde7}
.ethmc-group--factors{--card:#faf6ec;--accent:#775420;border-color:#eadfc8}
.ethmc-group legend{color:var(--accent,var(--green));font-size:clamp(1rem,2vw,1.3rem)}
.ethmc-group legend span{display:inline-grid;place-items:center;min-width:2.1rem;min-height:2.1rem;border-radius:50%;background:var(--accent,var(--green));color:white;margin-right:.35rem;font-size:.86rem}
.ethmc-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.35rem 1.5rem;align-items:start}
.ethmc-fields label{display:grid;grid-template-rows:minmax(2.5em,auto) auto auto;gap:.45rem;line-height:1.3}
.ethmc-subgroup + .ethmc-subgroup{border-top:1px solid #cddde7;margin-top:1.5rem;padding-top:1.5rem}
.ethmc-subgroup h3{margin:0 0 .85rem;font-size:1rem;color:var(--accent,var(--green))}
.ethmc-choice{font-size:.82rem;font-weight:400;line-height:1.35;color:#3e565c;overflow-wrap:anywhere}
.ethmc-choice:empty{display:none}
@media(max-width:900px){.ethmc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.ethmc-fields{grid-template-columns:1fr}.ethmc-fields label{grid-template-rows:auto auto auto}}

/* Rapprocher libellés, champs et sous-sections sans supprimer les repères visuels. */
.ethmc .ethmc-hero{padding-block:clamp(1rem,2.4vw,1.9rem)}
.ethmc nav{margin-block:.75rem 1rem}
.ethmc .ethmc-group{margin-bottom:1.05rem;padding-block:.65rem 1rem}
.ethmc .ethmc-library,.ethmc .ethmc-output{padding-block:.8rem;margin-bottom:.85rem}
.ethmc .ethmc-fields{row-gap:.8rem;align-items:stretch}
.ethmc .ethmc-fields label{grid-template-rows:auto auto 1fr;align-content:start;gap:.26rem}
.ethmc .ethmc-fields select,.ethmc .ethmc-fields input:not([type=checkbox]){padding-block:.48rem;min-height:2.5rem}
.ethmc .ethmc-subgroup + .ethmc-subgroup{margin-top:.95rem;padding-top:.85rem}
.ethmc .ethmc-subgroup h3{margin-bottom:.55rem}
.ethmc .ethmc-choice{line-height:1.25}

.ethmc-page:has(.ethmc-access){padding-block:clamp(2rem,4vw,4rem);background:#f4f8f6}
.ethmc-page:has(.ethmc-access) h1{font-size:clamp(2rem,4.2vw,4.2rem);line-height:1.04;margin:0 0 1.15rem;max-width:22ch}
.ethmc-access{max-width:1160px}
.ethmc-access-banner{border-radius:16px;background:linear-gradient(115deg,#102820,#09613a);color:#fff;padding:clamp(1.2rem,3vw,2rem)}
.ethmc-access-banner span{font-size:.82rem;letter-spacing:.13em;color:#a6f2c9;font-weight:800}
.ethmc-access-banner p{color:#fff;margin:.6rem 0 1rem;font-size:clamp(1rem,1.8vw,1.3rem)}
.ethmc-access-banner ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.45rem}
.ethmc-access-banner li{border:1px solid #75b596;border-radius:20px;padding:.2rem .65rem;font-size:.88rem;color:#fff}
.ethmc-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.ethmc-access-card{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #c9ddd1;border-radius:14px;background:#fff;padding:clamp(1rem,2.4vw,1.65rem)}
.ethmc-access-card h2{color:#104c33;font-size:clamp(1.25rem,2vw,1.6rem);margin:0 0 .45rem}
.ethmc-access-card p{margin:0 0 1rem;color:#334d43}
.ethmc-access-request{background:#e8f4ec}
.ethmc-access-card a.ethmc-access-btn{margin-top:auto;display:inline-block;background:#067536;color:#fff;border-radius:8px;padding:.65rem 1rem;font-weight:700;text-decoration:none}
.ethmc-access-card a.ethmc-access-btn:hover{background:#055f2d}
.ethmc-access-card a.ethmc-access-btn:focus-visible{outline:3px solid #1b8050;outline-offset:3px}
@media(max-width:650px){.ethmc-access-grid{grid-template-columns:1fr}}
.ethmc-access-card form{width:100%;margin-bottom:.65rem}
.ethmc-access-card label{display:grid;gap:.35rem;margin-bottom:.65rem;font-weight:700}
.ethmc-access-card input[type=email]{width:100%;border:1px solid #aac2b5;border-radius:8px;padding:.65rem;color:#153b2a;background:#fff}
.ethmc-access-card button.ethmc-access-btn{background:#067536;color:#fff;border:0;border-radius:8px;padding:.65rem 1rem;font-weight:700;cursor:pointer}
.ethmc-access-card .ethmc-admin-login{font-size:.875rem;margin:0}
