[data-theme=dark] {
    --bs-secondary-bg: #121212;
    --bs-secondary-bg-rgb: 18, 18, 18;
}

body[data-theme=dark] {
    background-color: #121212;
}

.content {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

a {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.header {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.container-fluid.mt-n5 {
    margin-top: -5rem !important;
}

.card {
    background-color: rgba(18, 18, 18, 0.7);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.page-content {
    position: relative;
    z-index: 3;
}

.table {
    color: #fff;
}

.content {
    color: #fff;
}

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

footer .title-row {
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

footer .title-row h3 {
    margin-bottom: 0.5rem;
}

footer .links ul li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

footer .links ul li a {
    color: #ccc;
    transition: all 0.2s ease;
}

footer .links ul li a:hover {
    color: var(--bs-primary);
    text-decoration: none;
    padding-left: 5px;
}

footer .links.offset-md-1 {
    padding-left: 1.5rem;
}

footer .social-links.offset-md-1 {
    padding-left: 1.5rem;
}

footer .social-links a {
    color: #ccc;
    transition: all 0.2s ease;
}

footer .social-links a:hover {
    color: var(--bs-primary);
    transform: translateY(-2px);
    display: inline-block;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d9534f;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    max-height: 60px;
    max-width: 120px;
}

.navbar .nav-item {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.navbar .nav-item .nav-link {
    --bs-nav-link-color: var(--bs-body-color);
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.5rem 0.8rem;
}

.navbar .nav-item .nav-link.active,
.navbar-socials .nav-link {
    color: var(--bs-primary);
}

.navbar .nav-item .dropdown-toggle::after {
    border-top: 0.3em solid var(--bs-primary);
}

.user-nav-link {
    display: flex;
    align-items: center;
}

.user-nav-link img {
    height: 20px;
}

.navbar-transparent {
    background-color: transparent !important;
}

.navbar-slim {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.home-header {
    position: relative;
    height: calc(100vh - 140px);
    min-height: 450px;
}

.home-header::after {
    background-color: transparent;
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    content: "";
}

.text-danger.mt-5.mb-3, 
.text-danger.mb-3 {
    font-weight: normal;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.info-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(40, 40, 40, 0.8) !important;
}

.info-block:hover i {
    transform: scale(1.2);
}

.info-block:hover h5 {
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.info-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: #dc3545;
    transition: height 0.3s ease;
}

.info-block:hover:before {
    height: 100%;
}

.social-icon {
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
    position: relative;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #dc3545 !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
}

.social-icon:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #dc3545;
    transition: width 0.3s ease, left 0.3s ease;
}

.social-icon:hover:after {
    width: 100%;
    left: 0;
}

.news-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.savoir-plus-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.news-card:hover .savoir-plus-btn {
    opacity: 1;
    transform: translateY(0);
}

.footer-link {
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: #00e0ff !important;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    footer h3 {
        margin-top: 15px;
        text-align: center;
    }
    
    footer .list-unstyled {
        text-align: center;
    }
    
    footer .d-flex.flex-wrap {
        justify-content: center !important;
    }
    
    footer .col-lg-5 .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    footer .col-lg-5 img {
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) {
    footer .col-lg-5 .d-flex {
        flex-direction: row;
    }
    
    footer .col-lg-5 img {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    footer .col-lg-5 .text-sm-start {
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    footer .container {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    footer img {
        margin: 0 auto 20px;
        display: block;
    }
    
    footer .col-lg-5 .text-center {
        margin-top: 0.5rem;
    }
}

.auth-btn {
    background-color: #28292d;
    border-color: #2a2b2f;
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background-color: #343a40;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.boutique-btn {
    background-color: #d9534f;
    border-color: #d9534f;
    border-radius: 20px !important;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white !important;
    min-width: auto;
    text-align: center;
    margin-left: 0.5rem;
}

.boutique-btn:hover {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    position: relative;
    z-index: 1030;
}

.dropdown-item {
    color: #e0e0e0;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: rgba(217, 83, 79, 0.1);
    color: #d9534f;
}

.dropdown-item.active, 
.dropdown-item:active {
    background-color: rgba(217, 83, 79, 0.2);
    color: #d9534f;
}

/* Animation du menu déroulant */
.dropdown-menu.show {
    animation: dropdown-fade 0.2s ease-in-out;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#userDropdown {
    border-radius: 30px;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
    background-color: rgba(40, 41, 45, 0.5);
}

#userDropdown:hover,
#userDropdown:focus {
    background-color: rgba(40, 41, 45, 0.8);
}

#userDropdown::after {
    color: #d9534f;
    margin-left: 0.5rem;
}

.user-nav-link img {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.user-nav-link:hover img {
    border-color: #d9534f;
}

.boutique-btn-mobile {
    background-color: #d9534f;
    border-color: #d9534f;
    border-radius: 20px !important;
    padding: 0.3rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white !important;
    text-align: center;
}

.boutique-btn-mobile:hover {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white !important;
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: #1a1a1a;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-dark .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.5rem;
    }
    
    .dropdown-menu {
        background-color: #252525 !important;
        border: none;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .navbar .nav-item {
        margin: 0.3rem 0;
    }
    
    .navbar .nav-item .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .auth-btn {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    #userDropdown {
        background-color: rgba(40, 41, 45, 0.8);
        margin-bottom: 0.5rem;
    }
}

.auth-container {
    margin-top: -8rem;
    padding-top: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    background-color: rgba(20, 20, 20, 0.9) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-title {
    color: #d9534f;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.auth-form .form-control {
    background-color: #1a1a1a !important;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}

.auth-form .form-label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form .btn-auth {
    background-color: #d9534f;
    border-color: #d9534f;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

.auth-form .btn-auth:hover,
.auth-form .btn-auth:focus {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.auth-form a {
    color: #d9534f;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-form a:hover {
    color: #c9302c;
    text-decoration: underline;
}

.auth-form .form-check-input:checked {
    background-color: #d9534f;
    border-color: #d9534f;
}

.auth-form .form-check-input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #999;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #444;
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.auth-form .invalid-feedback {
    color: #ff6b6b;
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .auth-container {
        margin-top: -5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-form .btn-auth {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

.auth-header {
    min-height: 500px !important;
    background-position: center top;
    background-size: cover;
}

.profile-container {
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.profile-header {
    color: #d9534f;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.profile-card {
    background-color: rgba(20, 20, 20, 0.9) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-info-box {
    background-color: rgba(25, 25, 25, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-sidebar {
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    border-radius: 10px;
    border: 3px solid rgba(217, 83, 79, 0.3);
    max-width: 120px;
    height: auto;
}

.profile-username {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.profile-info-list li {
    color: #e0e0e0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info-list li:last-child {
    border-bottom: none;
}

.profile-info-list li i {
    color: #d9534f;
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.profile-section-title {
    color: #d9534f;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form .form-control {
    background-color: #1a1a1a !important;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.profile-form .form-control:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}

.profile-form .form-label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-btn {
    background-color: #d9534f;
    border-color: #d9534f;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background-color: #c9302c;
    border-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-btn-danger {
    background-color: #1a1a1a;
    border: 1px solid #d9534f;
    color: #d9534f;
}

.profile-btn-danger:hover {
    background-color: #d9534f;
    color: white;
}

.profile-form-group {
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .profile-container {
        margin-top: -3rem;
    }
    
    .profile-avatar {
        max-width: 100px;
        margin: 0 auto 1rem;
        display: block;
    }
    
    .profile-username {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .profile-info-list {
        text-align: center;
    }
    
    .profile-sidebar {
        text-align: center;
    }
}

.user-profile-card {
    background-color: rgba(18, 18, 18, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 15px;
}

.profile-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.profile-details-list li {
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.profile-details-list li i {
    margin-right: 10px;
    color: #d9534f;
}

.modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
}

.modal {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1055 !important;
    pointer-events: auto !important;
    margin-top: 5rem !important;
}

.modal-content {
    position: relative !important;
    z-index: 1055 !important;
    pointer-events: auto !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #121212;
}

::-webkit-scrollbar-track {
    background-color: #121212;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #d9534f;
    border-radius: 10px;
    border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #c9302c;
}

/* test pour fidrefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #d9534f #121212;
}

/* Shop Modal Fixes */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog {
    z-index: 1060 !important;
}

.modal-content {
    z-index: 1070 !important;
}

.modal.show {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show .modal-dialog {
    pointer-events: auto !important;
}

.modal.show .modal-content {
    pointer-events: auto !important;
}

.modal.show .modal-header,
.modal.show .modal-body,
.modal.show .modal-footer {
    pointer-events: auto !important;
}

.modal.show .btn,
.modal.show .form-control,
.modal.show a {
    pointer-events: auto !important;
}

/* Shop Modal Content Styles */
.shop-modal-content {
    background-color: rgba(18, 18, 18, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.shop-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.shop-modal-close {
    opacity: 1;
}

.shop-modal-close:hover {
    opacity: 0.75;
}

/* Guest Avatar Styles */
.guest-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.guest-avatar i {
    font-size: 24px;
    color: #d9534f;
}

.guest-info {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(18, 18, 18, 0.7);
    border-radius: 8px;
    margin-bottom: 15px;
}

.guest-info-text {
    color: #fff;
    font-size: 0.9rem;
}

.guest-info-text strong {
    color: #d9534f;
    font-weight: 600;
}

/* Shop Guest Icon Styles */
.shop-guest-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(217, 83, 79, 0.1);
    border-radius: 50%;
    margin-right: 8px;
}

.shop-guest-icon i {
    font-size: 16px;
    color: #d9534f;
}

.shop-guest-text {
    display: flex;
    align-items: center;
    color: #d9534f;
    font-style: italic;
}
