/* Guide « ETF actifs vs passifs » (0.69.64) : résumé en 60 secondes, bandeau animé, graphiques et simulateurs.
   S'ajoute à dossier.css. Couleurs neutres : aucune stratégie n'est en rouge ou en vert. */
.dossier{--e0:#2D6CB5;--e1:#0E8F8A;--e2:#7A5AC8;--e3:#C9822B;--e4:#6B7F96;--e5:#B04A8F}
/* Résumé en 60 secondes : six cartes teintées, visibles sans JavaScript */
.etf-60{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0 1.6rem}
.etf-carte{padding:1.1rem 1.2rem 1.2rem;border-radius:18px;color:#16263A;box-shadow:inset 0 0 0 1px rgba(22,38,58,.08)}
.etf-carte h3{margin:0 0 .4rem!important;font-size:.78rem!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.etf-carte p{margin:0;font-size:.95rem;line-height:1.5}
.c-meca{background:#E6F0FC}.c-meca h3{color:#1B4F8C}
.c-cout{background:#DFF4F1}.c-cout h3{color:#0B6B67}
.c-resu{background:#EEE8FA}.c-resu h3{color:#5B3FA3}
.c-risq{background:#FFEBDD}.c-risq h3{color:#9A4A0C}
.c-hori{background:#E5ECF3}.c-hori h3{color:#3D566F}
.c-veri{background:#FBF3DF}.c-veri h3{color:#7A5A12}
.etf-liens-rapides{font-size:.95rem}
td.n,th.n{font-weight:700}
@media (max-width:60rem){.etf-60{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:40rem){.etf-60{grid-template-columns:minmax(0,1fr)}}

/* Bandeau animé */
.etf-hero{padding:1.3rem 1.4rem 1.1rem;border-radius:24px;background:var(--d-carte);box-shadow:inset 0 0 0 1.5px var(--d-trait),var(--d-ombre)}
.etf-hero-titre{margin:0;font-size:1.15rem;font-weight:800;color:var(--d-marine)}
.etf-hero-sous{margin:.2rem 0 .6rem;font-size:.82rem;color:var(--d-discret)}
.etf-hero-svg{display:block;width:100%;height:auto;max-height:18rem}
.etf-hero-grille line{stroke:var(--d-trait);stroke-width:1}
.etf-hero-grille text{fill:var(--d-discret);font-size:10px;font-variant-numeric:tabular-nums}
.etf-hero-svg path{fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.etf-c-indice{stroke:var(--e4);stroke-dasharray:5 5}
.etf-c-passif{stroke:var(--e0)}
.etf-c-actif{stroke:var(--e3)}
.etf-hero-legende{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;list-style:none;margin:.5rem 0 0;padding:0;font-size:.84rem}
.etf-hero-legende li{display:inline-flex;align-items:center;gap:.4rem}
.etf-hero-legende i{width:1.4rem;height:.28rem;border-radius:3px;background:var(--e4)}
.etf-hero-legende .p i{background:var(--e0)}.etf-hero-legende .a i{background:var(--e3)}
.etf-hero-resultat{margin:.7rem 0 .2rem;font-size:.92rem;color:var(--d-texte);min-height:2.9em}
.etf-hero-controles{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:.4rem 0 .2rem}
.etf-hero-controles[hidden]{display:none}
.etf-hero-controles fieldset{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin:0;padding:0;border:0;min-width:0}
.etf-hero-controles legend{float:left;margin-right:.5rem;padding:0;font-size:.85rem;font-weight:700;color:var(--d-marine)}
.etf-hero-controles label{position:relative;display:inline-flex}
.etf-hero-controles input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.etf-hero-controles label span{padding:.35rem .7rem;border-radius:999px;background:var(--d-fond);box-shadow:inset 0 0 0 1px var(--d-trait);font-size:.84rem;font-weight:600;color:var(--d-marine);min-height:2.25rem;display:inline-flex;align-items:center}
.etf-hero-controles input:checked+span{background:var(--d-marine);color:#fff;box-shadow:none}
.etf-hero-controles input:focus-visible+span,.etf-hero-controles button:focus-visible,.etf-hero-passer:focus-visible{outline:2px solid var(--d-bleu);outline-offset:2px}
.etf-hero-controles button{min-height:2.25rem;padding:.35rem .8rem;border:0;border-radius:999px;background:var(--d-fond);box-shadow:inset 0 0 0 1px var(--d-trait);color:var(--d-marine);font:inherit;font-size:.84rem;font-weight:600;cursor:pointer}
.etf-hero-passer{font-size:.84rem;color:var(--d-bleu)}
.etf-hero-frais{margin:.5rem 0 0;font-size:.84rem;color:var(--d-discret)}

/* Graphiques générés */
.etf-graphique .etf-trace{margin:.4rem 0}
.etf-graphique svg{display:block;width:100%;height:auto}
.etf-graphique .etf-axe line{stroke:var(--d-trait);stroke-width:1}
.etf-graphique .etf-axe text{fill:var(--d-discret);font-size:11px;font-variant-numeric:tabular-nums}
.etf-sim-trace .etf-axe text{font-size:13px!important}
.etf-graphique .etf-axe .zero{stroke:var(--d-discret)}
.etf-graphique .etf-ligne{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.etf-graphique .etf-point{stroke:var(--d-carte);stroke-width:1.5}
.etf-s0{--c:var(--e0)}.etf-s1{--c:var(--e3)}.etf-s2{--c:var(--e1)}.etf-s3{--c:var(--e2)}.etf-s4{--c:var(--e5)}
.etf-graphique .etf-ligne,.etf-graphique .etf-point{stroke:var(--c)}
.etf-graphique .etf-point{fill:var(--c);stroke:var(--d-carte)}
.etf-graphique .etf-barre{fill:var(--c)}
.etf-graphique .etf-ligne.tirets{stroke-dasharray:5 4}
.etf-legende{display:flex;flex-wrap:wrap;gap:.3rem 1.1rem;list-style:none;margin:.3rem 0 .5rem;padding:0;font-size:.84rem}
.etf-legende li{display:inline-flex;align-items:center;gap:.4rem}
.etf-legende i{width:.9rem;height:.9rem;border-radius:3px;background:var(--c)}
.etf-graphique figcaption{font-size:.86rem;color:var(--d-discret);margin-top:.7rem}
.etf-graphique details{margin-top:.6rem}

/* Simulateurs : s'appuie sur .kalkulator de dossier.css */
.etf-sim .kalkulator-cialo{align-items:start}
.etf-sim .pole .pomoc{display:block}
.etf-sim select{width:100%}
.etf-sim .etf-sim-trace{margin-top:.4rem}
.kalkulator-wynik ul.etf-legende{display:flex;grid-template-columns:none;gap:.3rem 1rem}
.kalkulator-wynik ul.etf-legende li{padding:0;background:none;font-size:.82rem;display:inline-flex}
.etf-sim .blad{margin:0 0 .4rem}
.etf-sim details{font-size:.84rem}
.etf-sim details table{width:100%;margin-top:.4rem;font-size:.8rem}
.etf-sim details th,.etf-sim details td{padding:.25rem .45rem;border-bottom:1px solid var(--d-trait);text-align:right;font-variant-numeric:tabular-nums}
.etf-sim details th:first-child{text-align:left}
.etf-sim .avert{margin:0;font-size:.8rem;color:var(--d-discret)}
@container style(--schema: sombre){
.etf-carte{color:#E6EEF8;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.c-meca{background:#14283F}.c-meca h3{color:#8DBCF0}
.c-cout{background:#0F2D2C}.c-cout h3{color:#6FD2CB}
.c-resu{background:#221B38}.c-resu h3{color:#B7A3F0}
.c-risq{background:#33200F}.c-risq h3{color:#F4A96A}
.c-hori{background:#1B2733}.c-hori h3{color:#A9BFD5}
.c-veri{background:#2D2610}.c-veri h3{color:#E5C673}
.etf-hero-controles input:checked+span{background:#2D6CB5;color:#fff}
.dossier{--e0:#6FA8E8;--e1:#52C7BF;--e2:#A992EA;--e3:#E8A253;--e4:#9DB0C6;--e5:#E08BC2}
}
@media (prefers-reduced-motion:reduce){.etf-hero svg path{transition:none!important}}
