/* Couleur « primary » de Bootstrap et du thème Material Pro (violet) remplacée par la couleur de l'université
   (variables de theme_hero_variables.blade.php). Violet conservé seulement pour les classes *-purple. */
:root, [data-bs-theme] {
    --bs-primary: var(--theme-hero-start, #7460ee);
    --bs-primary-rgb: var(--theme-hero-rgb, 116, 96, 238);
    --theme-hover: color-mix(in srgb, var(--theme-hero-start, #7460ee) 86%, #000);
    --theme-active: color-mix(in srgb, var(--theme-hero-start, #7460ee) 78%, #000);
    --theme-ring: color-mix(in srgb, var(--theme-hero-start, #7460ee) 25%, transparent);
}
.btn-primary {
    --bs-btn-color: var(--theme-on, #fff); --bs-btn-bg: var(--theme-hero-start, #7460ee); --bs-btn-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-hover-color: var(--theme-on, #fff); --bs-btn-hover-bg: var(--theme-hover); --bs-btn-hover-border-color: var(--theme-hover);
    --bs-btn-active-color: var(--theme-on, #fff); --bs-btn-active-bg: var(--theme-active); --bs-btn-active-border-color: var(--theme-active);
    --bs-btn-disabled-color: var(--theme-on, #fff); --bs-btn-disabled-bg: var(--theme-hero-start, #7460ee); --bs-btn-disabled-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-focus-shadow-rgb: var(--theme-hero-rgb, 116, 96, 238);
}
.btn-outline-primary {
    --bs-btn-color: var(--theme-hero-start, #7460ee); --bs-btn-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-hover-color: var(--theme-on, #fff); --bs-btn-hover-bg: var(--theme-hero-start, #7460ee); --bs-btn-hover-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-active-color: var(--theme-on, #fff); --bs-btn-active-bg: var(--theme-hero-start, #7460ee); --bs-btn-active-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-disabled-color: var(--theme-hero-start, #7460ee); --bs-btn-disabled-border-color: var(--theme-hero-start, #7460ee);
    --bs-btn-focus-shadow-rgb: var(--theme-hero-rgb, 116, 96, 238);
}
.btn-primary:hover, .btn-outline-primary:hover { box-shadow: 0 6px 14px var(--theme-ring); }
.btn-link { --bs-btn-color: var(--theme-hero-start, #7460ee); --bs-btn-hover-color: var(--theme-hover); --bs-btn-active-color: var(--theme-active); }
.badge-primary { background-color: var(--theme-hero-start, #7460ee); color: var(--theme-on, #fff); }
.text-bg-primary { color: var(--theme-on, #fff) !important; }
.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate { background-color: var(--theme-hero-start, #7460ee); border-color: var(--theme-hero-start, #7460ee); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--theme-hero-start, #7460ee) 55%, #fff); box-shadow: 0 0 0 .2rem var(--theme-ring); }
.form-range::-webkit-slider-thumb { background-color: var(--theme-hero-start, #7460ee); }
.form-range::-moz-range-thumb { background-color: var(--theme-hero-start, #7460ee); }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--theme-hero-start, #7460ee); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--theme-hero-start, #7460ee); --bs-dropdown-link-active-color: var(--theme-on, #fff); }
.pagination {
    --bs-pagination-color: var(--theme-hero-start, #7460ee); --bs-pagination-hover-color: var(--theme-hover); --bs-pagination-focus-color: var(--theme-hover);
    --bs-pagination-active-bg: var(--theme-hero-start, #7460ee); --bs-pagination-active-border-color: var(--theme-hero-start, #7460ee); --bs-pagination-active-color: var(--theme-on, #fff);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--theme-ring);
}
.list-group { --bs-list-group-active-bg: var(--theme-hero-start, #7460ee); --bs-list-group-active-border-color: var(--theme-hero-start, #7460ee); --bs-list-group-active-color: var(--theme-on, #fff); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--theme-hero-start, #7460ee); }
.nav-link:focus-visible { box-shadow: 0 0 0 .2rem var(--theme-ring); }
.card-primary, .card-outline-primary .card-header { background: var(--theme-hero-start, #7460ee); border-color: var(--theme-hero-start, #7460ee); }
.card-outline-primary { border-color: var(--theme-hero-start, #7460ee); }
.ribbon-primary, .timeline-badge.primary { background: var(--theme-hero-start, #7460ee); }
html[data-cn-theme="dark"] .btn-outline-primary, html[data-cn-theme="dark"] .btn-link {
    --bs-btn-color: color-mix(in srgb, var(--theme-hero-start, #7460ee) 45%, #fff); --bs-btn-border-color: color-mix(in srgb, var(--theme-hero-start, #7460ee) 45%, #fff);
}
html[data-cn-theme="dark"] .text-primary { color: color-mix(in srgb, var(--theme-hero-start, #7460ee) 45%, #fff) !important; }
html[data-cn-theme="dark"] .btn-link { --bs-btn-border-color: transparent; }
html[data-cn-theme="dark"] .pagination { --bs-pagination-color: color-mix(in srgb, var(--theme-hero-start, #7460ee) 45%, #fff); }
