/*
 * Performance de long terme de l'action, page Cours de bourse (02/11/2026) : Classical/historiqueAction.html.twig,
 * dessinée par historique-action.js. Couleurs de la charte des pages épurées (page-classique-epure.css) : rouge pour le
 * rendement total, encre pour le cours seul.
 */
.content.classique-epure .ha{margin-top:56px}
.content.classique-epure .ha-intro{margin:0 0 22px;font-size:16px;line-height:1.7;color:#4a4a4a;max-width:720px}

/* Périodes : pastilles, la choisie en rouge */
.ha-periodes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.ha-periode{padding:8px 16px;border:1px solid var(--ce-filet);border-radius:999px;background:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.2;color:var(--ce-encre);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.ha-periode:hover{border-color:var(--ce-rouge);color:var(--ce-rouge)}
.ha-periode[aria-pressed="true"]{background:var(--ce-rouge);border-color:var(--ce-rouge);color:#fff}
.ha-periode:focus-visible{outline:2px solid #10294a;outline-offset:2px}
/* Date de départ personnalisée : champ date à la suite des périodes */
.ha-date{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ce-encre)}
.ha-date[hidden]{display:none}
.ha-date input{padding:7px 12px;border:1px solid var(--ce-rouge);border-radius:999px;background:#fff;font:inherit;font-size:14px;font-weight:400;color:var(--ce-encre)}
.ha-date input:focus-visible{outline:2px solid #10294a;outline-offset:2px}

/* Chiffres de la période */
.ha-chiffres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 26px;padding:0}
.ha-chiffre{margin:0;padding:18px 18px 16px;border:1px solid var(--ce-filet);border-radius:12px;background:#fff}
.ha-chiffre dt{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ce-gris)}
.ha-chiffre dd{margin:0}
.ha-valeur{font-size:28px;line-height:1.15;font-weight:600;color:var(--ce-encre);white-space:nowrap}
.ha-detail{margin-top:6px !important;font-size:13px;line-height:1.45;color:var(--ce-gris)}
.ha-chiffre-total{border-color:var(--ce-rouge);background:linear-gradient(180deg,#fff5f6 0%,#fff 100%)}
.ha-chiffre-total .ha-valeur{color:var(--ce-rouge)}
.ha-chiffre-total.ha-negatif .ha-valeur{color:var(--ce-encre)}

/* Graphique */
.ha-figure{margin:0 0 18px;padding:20px 20px 12px;border:1px solid var(--ce-filet);border-radius:12px;background:#fff}
.ha-legende{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 12px;font-size:13px;color:#4a4a4a}
.ha-cle{display:inline-flex;align-items:center;gap:8px}
.ha-cle:before{content:"";display:inline-block;width:22px;height:3px;border-radius:2px}
.ha-cle-total:before{background:var(--ce-rouge)}
.ha-cle-cours:before{height:2px;background:#1d1d1b;opacity:.7}
.ha-cle-dividende:before{width:9px;height:9px;border:2px solid var(--ce-rouge);border-radius:50%;background:#fff;box-sizing:border-box}
.ha-graphique{position:relative;min-height:260px}
.ha-graphique svg{display:block;max-width:100%;overflow:visible}
.ha-grille line{stroke:var(--ce-filet);stroke-width:1}
.ha-grille .ha-repere{stroke:#c9c4c4}
.ha-grille text{font-size:11px;fill:var(--ce-gris-doux);font-variant-numeric:tabular-nums}
.ha-axe{stroke:#c9c4c4;stroke-width:1}
.ha-depart{stroke:#8f8f8f;stroke-width:1;stroke-dasharray:4 4}
.ha-ligne-total{fill:none;stroke:var(--ce-rouge);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.ha-ligne-cours{fill:none;stroke:#1d1d1b;stroke-opacity:.7;stroke-width:1.6;stroke-linejoin:round}
.ha-marques circle{fill:#fff;stroke:var(--ce-rouge);stroke-width:1.6}
.ha-annotation{font-size:11px;font-style:italic;fill:var(--ce-gris)}
.ha-annotation-trait{stroke:var(--ce-gris-doux);stroke-width:1;stroke-dasharray:2 3}
.ha-curseur line{stroke:#1d1d1b;stroke-opacity:.35;stroke-width:1}
.ha-point-total{fill:var(--ce-rouge);stroke:#fff;stroke-width:2}
.ha-point-cours{fill:#1d1d1b;stroke:#fff;stroke-width:2}
.ha-trace{stroke-dashoffset:var(--ha-longueur);animation:ha-trace 1.1s ease-out forwards}
@keyframes ha-trace{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.ha-trace{animation:none;stroke-dashoffset:0}}

/* Bulle du survol */
.ha-bulle{position:absolute;z-index:2;display:flex;flex-direction:column;gap:3px;min-width:180px;padding:10px 12px;border-radius:10px;background:#fff;box-shadow:0 6px 22px rgba(16,41,74,.16);font-size:13px;line-height:1.4;color:#4a4a4a;pointer-events:none}
.ha-bulle[hidden]{display:none}
.ha-bulle strong{margin-bottom:2px;font-weight:600;color:var(--ce-encre)}
.ha-bulle-total{font-weight:600;color:var(--ce-rouge)}
.ha-bulle-dividende{margin-top:4px;padding-top:6px;border-top:1px solid var(--ce-filet);color:var(--ce-rouge)}

/* Tableau des dividendes, replié */
.ha-dividendes{margin:0 0 16px;border-top:1px solid var(--ce-filet);border-bottom:1px solid var(--ce-filet)}
.ha-dividendes summary{display:flex;align-items:center;justify-content:space-between;padding:16px 0;font-size:15px;font-weight:600;color:var(--ce-encre);cursor:pointer;list-style:none}
.ha-dividendes summary::-webkit-details-marker{display:none}
.ha-dividendes summary:after{content:"";width:8px;height:8px;margin-right:4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.ha-dividendes[open] summary:after{transform:rotate(-135deg)}
.ha-dividendes summary:hover{color:var(--ce-rouge)}
.content.classique-epure .ha-table{width:100%;max-width:620px;margin:0 0 18px;font-size:14px}
.content.classique-epure .ha-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.content.classique-epure .ha-table th[rowspan]{vertical-align:top;font-weight:600}
.content.classique-epure .ha-table th,.content.classique-epure .ha-table td{text-align:left;vertical-align:top;color:var(--ce-encre);font-weight:400}
.content.classique-epure .ha-table thead th{font-weight:600}
.content.classique-epure .ha-table td:last-child,.content.classique-epure .ha-table thead th:last-child{text-align:right;white-space:nowrap;color:var(--ce-encre);font-variant-numeric:tabular-nums}
.content.classique-epure .ha-table tfoot th,.content.classique-epure .ha-table tfoot td{font-weight:600;color:var(--ce-encre)}
.ha-precision{display:block;max-width:300px;margin-left:auto;font-size:12px;line-height:1.4;color:var(--ce-gris);white-space:normal}

.content.classique-epure .ha-note{margin:0;font-size:12px;line-height:1.6;color:var(--ce-gris-doux)}

@media screen and (max-width:960px){
	.ha-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:560px){
	.ha-figure{padding:14px 10px 8px}
	.ha-valeur{font-size:22px}
	.ha-chiffre{padding:14px}
	.ha-periode{padding:7px 12px;font-size:13px}
}
