/*============================================================
 * AMÉLIORATION FRONTEND - Couleurs et Mode Sombre
 * Thème cohérent avec le panel admin violet
 *============================================================*/

/*=================== Couleurs Cohérentes avec le Thème ===================*/

/* Subtitle - Changement de violet à orange/gold pour contraste */
.section-heading .subtitle,
.subtitle {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 8px 28px !important;
    border-radius: 20px 0px 20px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-transform: capitalize;
}

/* Boutons btn--base - Couleur orange/gold cohérente */
.btn--base {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease !important;
}

.btn--base::before {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.btn--base:hover,
.btn--base:focus {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

/* Bouton outline */
.btn--base.outline {
    background: transparent !important;
    border: 2px solid #f59e0b !important;
    color: #f59e0b !important;
}

.btn--base.outline:hover,
.btn--base.outline:focus {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/*=================== Mode Sombre - Corrections Page Login ===================*/

/* Texte "Don't have any account?" visible en mode sombre */
.dark .have-account__text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark .have-account__link {
    color: #f59e0b !important;
    font-weight: 700 !important;
}

.dark .have-account__link:hover {
    color: #ea580c !important;
}

/* Label "Remember me" visible en mode sombre */
.dark .form-check-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Lien "Forgot Password" visible en mode sombre */
.dark .forgot-password {
    color: #f59e0b !important;
    font-weight: 600 !important;
}

.dark .forgot-password:hover {
    color: #ea580c !important;
}

/* Titre et description du formulaire en mode sombre */
.dark .account-form__title {
    color: rgba(255, 255, 255, 0.95) !important;
}

.dark .account-form__desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Labels des inputs en mode sombre */
.dark .form--label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Inputs en mode sombre */
.dark .form--control {
    background: rgba(50, 50, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

.dark .form--control:focus {
    background: rgba(50, 50, 65, 0.8) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
}

.dark .form--control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Icône password en mode sombre */
.dark .password-show-hide {
    background: rgba(50, 50, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Formulaire de connexion en mode sombre */
.dark .account-form {
    background: rgba(30, 30, 45, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Séparateur HR en mode sombre */
.dark .hr::after {
    background: rgba(30, 30, 45, 0.95) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Boutons sociaux en mode sombre */
.dark .social .icon {
    background: rgba(50, 50, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark .social .icon:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

/*=================== Améliorations Générales Frontend ===================*/

/* Liens avec couleur orange cohérente */
a.text--base,
.text--base {
    color: #f59e0b !important;
    font-weight: 600;
}

a.text--base:hover,
.text--base:hover {
    color: #ea580c !important;
}

/* Mode sombre - liens */
.dark a.text--base,
.dark .text--base {
    color: #fbbf24 !important;
}

.dark a.text--base:hover,
.dark .text--base:hover {
    color: #f59e0b !important;
}

/* Boutons de navigation header */
.main-menu .btn--base,
.sidebar-menu-list .btn--base {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.main-menu .btn--base:hover,
.sidebar-menu-list .btn--base:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
    transform: translateY(-2px);
}

/* Icônes dans boutons */
.btn--base i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn--base:hover i {
    transform: translateX(3px);
}

/*=================== Responsive ===================*/

@media screen and (max-width: 767px) {
    .section-heading .subtitle,
    .subtitle {
        padding: 7px 20px !important;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 575px) {
    .section-heading .subtitle,
    .subtitle {
        padding: 6px 16px !important;
        font-size: 13px !important;
    }
}

/*=================== Mode Sombre - Autres Éléments ===================*/

/* Checkbox en mode sombre */
.dark .form-check-input {
    background-color: rgba(50, 50, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.dark .form-check-input:checked {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
}

/* Titre de section en mode sombre */
.dark .section-heading__title {
    color: rgba(255, 255, 255, 0.95) !important;
}

.dark .section-heading__desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fond de page login en mode sombre */
.dark .login {
    background: linear-gradient(135deg, #1e1e2d 0%, #27293d 100%) !important;
}

/*=================== Accessibilité et Contraste ===================*/

/* Assure le contraste minimum pour WCAG AA */
.btn--base,
.subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Focus visible pour accessibilité */
.btn--base:focus,
.form--control:focus,
.form-check-input:focus {
    outline: 2px solid #f59e0b !important;
    outline-offset: 2px;
}

/*=================== Performance ===================*/

/* Will-change pour animations fluides */
.btn--base,
.subtitle {
    will-change: transform;
}

/* Désactiver animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .btn--base,
    .subtitle {
        transition: none !important;
        animation: none !important;
    }
}

/*=================== Cards de Contact - Couleurs Orange/Gold ===================*/

/* Card de contact - Fond et style */
.contact-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.2) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1) !important;
}

.contact-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Titre de la card (Call Us, Email, Office) */
.contact-info .single_wrapper h4 {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    font-size: 22px !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 12px;
}

.contact-info .single_wrapper h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 2px;
}

/* Icône de contact */
.contact-info .cont-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.contact-info:hover .cont-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.contact-info .cont-icon i {
    color: #ffffff !important;
    font-size: 24px !important;
}

/* Texte de contact */
.contact-info .cont-text h6 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0;
}

.contact-info .cont-text h6 a {
    color: #1f2937 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.contact-info .cont-text h6 a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
    transition: width 0.3s ease;
}

.contact-info .cont-text h6 a:hover {
    color: #f59e0b !important;
}

.contact-info .cont-text h6 a:hover::after {
    width: 100%;
}

/*=================== Mode Sombre - Cards de Contact ===================*/

.dark .contact-info {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8) 0%, rgba(39, 41, 61, 0.8) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.3) !important;
}

.dark .contact-info:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3) !important;
}

.dark .contact-info .single_wrapper h4 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .contact-info .single_wrapper h4::after {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.dark .contact-info .cont-text h6,
.dark .contact-info .cont-text h6 a {
    color: rgba(255, 255, 255, 0.95) !important;
}

.dark .contact-info .cont-text h6 a:hover {
    color: #fbbf24 !important;
}

/*=================== Responsive Cards Contact ===================*/

@media screen and (max-width: 991px) {
    .contact-info {
        padding: 25px !important;
    }
    
    .contact-info .cont-icon {
        width: 55px;
        height: 55px;
    }
    
    .contact-info .cont-icon i {
        font-size: 22px !important;
    }
    
    .contact-info .single_wrapper h4 {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 767px) {
    .contact-info {
        padding: 20px !important;
    }
    
    .contact-info .cont-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .contact-info .cont-icon i {
        font-size: 20px !important;
    }
    
    .contact-info .single_wrapper h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .contact-info .cont-text h6 {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 575px) {
    .contact-info {
        padding: 18px !important;
    }
    
    .contact-info .single_wrapper h4::after {
        width: 40px;
        height: 2px;
    }
}

/*=================== Cards About - Years Of Experience & Emergency ===================*/

/* Carte Years Of Experience - Changement couleur violet vers orange/gold */
.about-thumb .about-contact-top {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

/* Carte For Emergency - Icône orange */
.about-thumb .about-contact i {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

/*=================== Cards Experience (Statistiques) - Changement couleur ===================*/

/* Changement de la couleur violette vers orange/gold */
.experience__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

.experience__icon h3 {
    color: #ffffff !important;
}

.experience__icon h3 .letter {
    color: #ffffff !important;
}

/*=================== Mode Sombre - Cards About ===================*/

.dark .about-thumb .about-contact-top {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.dark .about-thumb .about-contact i {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.15) !important;
}

/*=================== Mode Sombre - Cards Experience ===================*/

.dark .experience__icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/*=================== Footer - Changement couleur ===================*/

/* Bottom Footer - Changement de violet vers orange/gold */
.bottom-footer.section-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

/* Texte du footer - Noir pour contraste */
.bottom-footer-text,
.bottom-footer-text p {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

/*=================== Mode Sombre - Footer ===================*/

.dark .bottom-footer.section-bg {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/*=================== Top Header - Orange/Gold ===================*/

/* Fond du header-top (toute la zone) */
.header-top {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
}

/* Icônes de contact (téléphone, email) - Noir pour contraste */
.contact-list__item-icon i {
    color: #1f2937 !important;
}

/* Liens de contact - Noir pour contraste */
.contact-list__link {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.contact-list__link:hover {
    color: #111827 !important;
}

/* Liens sociaux - Fond blanc avec icônes noires */
.social-list__link {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #1f2937 !important;
}

.social-list__link:hover {
    background: #ffffff !important;
    color: #ea580c !important;
}

.social-list__link i {
    color: #1f2937 !important;
}

.social-list__link:hover i {
    color: #ea580c !important;
}

/* Bouton de sélection de langue - Fond blanc avec texte noir */
.language-box .select {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.language-box .select option {
    color: #1f2937 !important;
    background: #ffffff !important;
}

.language-box .select:focus {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

/*=================== Mode Sombre - Top Header ===================*/

.dark .header-top {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}
