:root {
    --color-brand-1: #004aad;
    --color-brand-1-hover: #032a5e;
    --color-brand-1-rgb: 0, 74, 173;
    --color-brand-2: #fea501;
    --color-brand-3: #afeae4;
    --color-brand-4: #e8b0e8;
    --color-brand-5: #00bcd4;
    --color-success: #478ae1;
    --color-success-rgb: 71, 138, 225;
    --color-warning: #ffd166;
    --color-info: #28a7e6;
    --color-danger: #dc3545;
}

/* Couleurs principales */
.bg-brand-1 {
    background-color: #004aad !important;
}

.color-brand-1 {
    color: #004aad !important;
}

.color-brand-2 {
    color: #fea501 !important;
}

.color-brand-3 {
    color: #afeae4 !important;
}

.color-brand-4 {
    color: #e8b0e8 !important;
}

.color-brand-5 {
    color: #00bcd4 !important;
}

/* Boutons sur fond brand-1 */
.btn-brand-1,
.btn-brand-1-full,
.btn-brand-lg,
.btn-brand-1-circle,
.btn-join,
.btn-brand-1-small {
    background-color: #004aad !important;
    color: #ffffff !important;
}

.btn-brand-1:hover,
.btn-brand-1-full:hover,
.btn-brand-lg:hover,
.btn-brand-1-circle:hover,
.btn-join:hover,
.btn-brand-1-small:hover {
    background-color: #032a5e !important;
    color: #ffffff !important;
}

.btn-brand-1 svg,
.btn-brand-1-full svg,
.btn-brand-lg svg,
.btn-brand-1-circle svg,
.btn-join svg,
.btn-brand-1-small svg {
    color: #ffffff !important;
}

/* Tag button avec brand-2 */
.btn-tag {
    background-color: #fea501 !important;
    color: #004aad !important;
}

/* Success et autres couleurs */
.color-success {
    color: #478ae1 !important;
}

.color-warning {
    color: #ffd166 !important;
}

.color-info {
    color: #28a7e6 !important;
}

.color-danger {
    color: #dc3545 !important;
}

/* Notification bar */
.box-notify.bg-brand-1 {
    background-color: #004aad !important;
}

/* Liens sur fond brand-1 */
.bg-brand-1 a,
.bg-brand-1 .color-white,
.box-cover-video a,
.box-cover-video .color-white {
    color: #ffffff !important;
}

/* Titres color-brand-1 : couleur unie, pas de gradient */
h1.color-brand-1,
h2.color-brand-1,
h3.color-brand-1,
h4.color-brand-1,
h5.color-brand-1,
h6.color-brand-1,
h1 .color-brand-1,
h2 .color-brand-1,
h3 .color-brand-1,
section h1:not(.bg-brand-1 h1):not(.color-white):not([style*='background']),
section h2:not(.bg-brand-1 h2):not(.color-white):not([style*='background']),
section h3:not(.bg-brand-1 h3):not(.color-white):not([style*='background']) {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: #004aad !important;
}

/* Surcharge des styles inline pour les éléments avec color-brand-1 */
[style*='#024430'],
[style*='color: #024430'],
[style*='background-color: #024430'],
[style*='background: #024430'],
[style*='border-color: #024430'],
[style*='stroke: #024430'] {
    color: #004aad !important;
    background-color: #004aad !important;
    border-color: #004aad !important;
}

/* Surcharge des SVG avec stroke */
svg[stroke*='#024430'],
svg path[stroke*='#024430'],
svg circle[stroke*='#024430'] {
    stroke: #004aad !important;
}

/* Surcharge pour les sections features */
.features-modern-subtitle,
.features-modern-title,
.feature-showcase-title,
.feature-showcase-link {
    color: #004aad !important;
}

/* Surcharge pour les boutons CTA */
.btn-cta-primary,
.btn-cta-primary span {
    color: #004aad !important;
}

/* Surcharge pour les icônes avec style inline */
i[style*='#024430'],
.fas[style*='#024430'],
.pi[style*='#024430'] {
    color: #004aad !important;
}

/* Surcharge pour les backgrounds rgba */
[style*='rgba(2, 68, 48'] {
    background-color: rgba(0, 74, 173, 0.1) !important;
}

/* Surcharge pour les hover states */
[onmouseover*='#024430']:hover {
    background-color: #004aad !important;
    color: #ffffff !important;
}

/* Surcharge pour l'admin */
.admin .color-brand-1,
.admin .nav-item.active,
.admin .settings-tab.active,
.admin .badge,
.admin [style*='background: #024430'],
.admin [style*='background-color: #024430'],
.admin [style*='color: #024430'] {
    color: #004aad !important;
    background-color: #004aad !important;
    background: #004aad !important;
}

/* Surcharge pour les bordures admin */
.admin [style*='border-color: #024430'],
.admin .icon-picker-item.selected,
.admin .icon-picker-item:hover {
    border-color: #004aad !important;
}
