/* Corrections CSS personnalisées */

/* Fix alignement vertical des menus dropdown */
.navbar-nav .nav-item.dropdown + .nav-item.dropdown {
    margin-top: 0;
}

.header-nav .nav-item > .nav-link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

.header-nav .nav-item > .nav-link.dropdown-toggle::after {
    vertical-align: 0;
    margin-left: 0.5em;
}

/* Indicateur de sous-menu sur desktop */
@media (min-width: 1024px) {
    .header-nav .nav-item > .nav-link.dropdown-toggle::after {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.5em;
        vertical-align: middle;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
}

/* ========================================
   HARMONISATION DES COULEURS - TAUPE MODERNE
   ======================================== */

/* Header et Footer backgrounds */
.header-topline {
    background: #8B7E74 !important;
    background-color: #8B7E74 !important;
}

.footer-bottom {
    background: #8B7E74 !important;
    background-color: #8B7E74 !important;
}

/* QuickLinks backgrounds */
.quickLinks .col:nth-child(1) > .link {
    background-color: #8B7E74 !important;
}

.quickLinks .col:nth-child(2) > .link {
    background-color: #8B7E74 !important;
}

.quickLinks .col:nth-child(3) > .link {
    background-color: #8B7E74 !important;
}

.quickLinks .col:nth-child(4) > .link {
    background-color: #8B7E74 !important;
}

.quickLinks .col:nth-child(5) > .link {
    background-color: #8B7E74 !important;
}

.quickLinks .col:nth-child(6) > .link {
    background-color: #8B7E74 !important;
}

/* Couleur principale du thème - Taupe moderne */
.theme-color {
    color: #8B7E74 !important;
}

.theme-bg {
    background-color: #8B7E74 !important;
}

/* Liens et éléments interactifs */
a {
    color: #8B7E74;
}

a:hover,
a:focus {
    color: #766B62;
}

/* Boutons principaux */
.btn-primary,
.btn {
    background-color: #8B7E74 !important;
    border-color: #8B7E74 !important;
}

.btn-primary:hover,
.btn:hover {
    background-color: #766B62 !important;
    border-color: #766B62 !important;
}

/* Éléments décoratifs */
.h-decor::before {
    background-color: #8B7E74 !important;
}

.icn-text-circle,
.icon-background {
    background-color: #8B7E74 !important;
}

/* Bordures et accents */
.border-theme {
    border-color: #8B7E74 !important;
}

/* Header et navigation */
.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: #8B7E74 !important;
}

/* Footer */
.footer-nav a:hover {
    color: #8B7E74 !important;
}

/* Service cards et éléments de contenu */
.service-card:hover {
    border-color: #8B7E74 !important;
}

/* Corrections spécifiques des anciens bleus */
[style*="#1e76bd"] {
    color: #8B7E74 !important;
    border-color: #8B7E74 !important;
}

[style*="border-left: 4px solid #1e76bd"] {
    border-left-color: #8B7E74 !important;
}

/* Surcharge des variables CSS principales */
:root {
    --primary: #8B7E74 !important;
    --primary-alt: #8B7E74 !important;
}

/* ===== BOUTONS - TEXTE BLANC ===== */
.btn,
.btn-primary,
.btn-secondary,
[class*="btn-"],
a.btn {
    background-color: #8B7E74 !important;
    border-color: #8B7E74 !important;
    color: #ffffff !important;
}

.btn:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn:focus,
.btn:active {
    background-color: #766B62 !important;
    border-color: #766B62 !important;
    color: #ffffff !important;
}

.btn span,
.btn i,
.btn-primary span,
.btn-primary i {
    color: #ffffff !important;
}

/* Boutons blancs (inversés) */
.btn-white {
    background-color: #ffffff !important;
    color: #8B7E74 !important;
    border-color: #ffffff !important;
}

.btn-white:hover {
    background-color: #f5f5f5 !important;
    color: #766B62 !important;
}

/* ===== COULEURS PRINCIPALES ===== */
.theme-color,
.text-primary,
h1 .theme-color,
h2 .theme-color,
h3 .theme-color {
    color: #8B7E74 !important;
}

.theme-bg,
.bg-primary {
    background-color: #8B7E74 !important;
}

/* ===== LIENS ===== */
a {
    color: #8B7E74;
}

a:hover,
a:focus,
a:active {
    color: #766B62 !important;
}

/* Liens de couleur primaire */
a[style*="#1e76bd"],
a[style*="#1b6aaa"],
a[style*="#2f81c8"] {
    color: #8B7E74 !important;
}

/* ===== BORDURES ET BACKGROUNDS ===== */
.border-primary,
[class*="border-primary"] {
    border-color: #8B7E74 !important;
}

.bg-primary-gradient,
[style*="background-color: #1e76bd"],
[style*="background-color:#1e76bd"],
[class*="bg-primary"] {
    background-color: #8B7E74 !important;
}

/* Surcharge globale pour tous les bleus dans le CSS */
[style*="#1b6aaa"],
[style*="#2f81c8"],
[style*="#1e76bd"] {
    color: #8B7E74 !important;
    border-color: #8B7E74 !important;
}

/* ===== ÉLÉMENTS SPÉCIFIQUES ===== */
.h-decor::before,
.h-decor::after {
    background-color: #8B7E74 !important;
}

.icn-text-circle,
.icon-background {
    background-color: #8B7E74 !important;
}

/* Navigation active */
.header-nav .nav-link:hover,
.header-nav .nav-link.active,
.header-nav .nav-link:focus {
    color: #8B7E74 !important;
}

/* Tooltips et popovers */
.tooltip-inner,
.popover-header {
    background-color: #8B7E74 !important;
}

/* Badges */
.badge-primary {
    background-color: #8B7E74 !important;
}

/* Progress bars */
.progress-bar {
    background-color: #8B7E74 !important;
}

/* Réduction des interlignes pour les cartes de rendez-vous */
.card-body p {
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.card-body .mb-4 {
    margin-bottom: 1rem !important;
}

/* Images responsives */
img.img-responsive {
    width: 100%;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #8B7E74 !important;
    border-color: #8B7E74 !important;
}

/* Formulaires */
.form-control:focus {
    border-color: #8B7E74 !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 126, 116, 0.25) !important;
}

/* Tables */
.table-primary {
    background-color: #8B7E74 !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(139, 126, 116, 0.1) !important;
    border-color: #8B7E74 !important;
    color: #766B62 !important;
}
