/* ===============================
   HEADER DASHBOARD
   =============================== */
.header-dashboard {
    background: linear-gradient(90deg, #1f2933, #111827);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-dashboard .logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.header-dashboard .logo-img:hover {
    transform: rotate(10deg) scale(1.1);
}

.header-dashboard .header-title h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.header-dashboard .header-title span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===============================
   HEADER BUTTONS
   =============================== */
.header-btn {
    font-weight: 600;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #fff;
}

/* Voir le site */
.header-btn-view {
    background-color: #22c55e;
    border: 2px solid #22c55e;
}
.header-btn-view:hover {
    background-color: #16a34a;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Déconnexion */
.header-btn-logout {
    background-color: #dc3545;
    border: 2px solid #dc3545;
}
.header-btn-logout:hover {
    background-color: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.header-btn i {
    font-size: 1rem;
}

/* ===============================
   NAV
   =============================== */
   #sidebarMenu {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

#sidebarMenu .position-sticky {
    position: static;
}

   #sidebarMenu {
    background-color: #111827;
    min-height: 100vh;
    border-right: 1px solid #1f2933;
    padding-top: 1rem;
    transition: all 0.3s;
    color: #e5e7eb;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

.nav-link.sidebar-link {
    font-size: 0.95rem;
    color: #1a1a1a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav-link.sidebar-link i {
    font-size: 1rem;
    color: inherit;
}

.nav-link.sidebar-link:hover {
    background-color: #1f2933;
    color: #ffffff;
    text-decoration: none;
}

.nav-link.sidebar-link.active {
    background-color: #374151;
    color: #ffffff !important;
    font-weight: 600;
    border-left-color: #22c55e;
}

.nav-item.mb-1 {
    margin-bottom: 0.4rem !important;
}

#sidebarMenu::-webkit-scrollbar {
    width: 6px;
}

#sidebarMenu::-webkit-scrollbar-thumb {
    background-color: #374151;
    border-radius: 3px;
}

@media (max-width: 767.98px) {
    #sidebarMenu {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        z-index: 1030;
        transition: all 0.3s;
    }
    #sidebarMenu.show {
        left: 0;
    }
}

/* ===============================
   HEADER RESPONSIVE
   =============================== */
@media (max-width: 767.98px) {
    .header-dashboard {
        padding: 8px 0;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .header-dashboard .logo-img {
        width: 38px;
        height: 38px;
    }
    .header-dashboard .header-title h1 {
        font-size: 1.05rem;
    }
    .header-dashboard .header-title span {
        font-size: 0.75rem;
    }
    .header-btn {
        padding: 6px 10px;
    }
}

@media (max-width: 575.98px) {
    .header-dashboard .header-title span {
        display: none;
    }
    .header-dashboard .logo-secondaire {
        display: none;
    }
    .header-btn span {
        display: none;
    }
}
/* ===============================
   TABS 1
   =============================== */
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

body {
    background-color: #f7f7f7 !important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(255 255 255) !important;
}

/*  ===============================
    BOUTON METTRE A JOUR
    =============================== */
.btn-update {
    background: linear-gradient(135deg, #22c55e, #16a34a); /* vert moderne */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 16px;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
    transition: all 0.25s ease;
}

.btn-update i {
    font-size: 1.2rem;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-update:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}

.btn-update:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
}

.btn-update.is-loading {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.btn-update.is-loading i {
    animation: btnUpdateSpin 0.8s linear infinite;
}

@keyframes btnUpdateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   ADMIN – FORMULAIRES
   =============================== */
   .tab-pane {
    animation: fadeUp 0.3s ease;
}

/* Carte admin */
.admin-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Titre de section */
.admin-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-title i {
    font-size: 1.2rem;
    color: #22c55e !important; 
}

.admin-card .col-form-label {
    font-weight: 500;
    color: #4b5563;
}

.admin-card .form-control,
.admin-card .form-select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.admin-card .form-control:focus,
.admin-card .form-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.admin-card img.img-thumbnail {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   MENU
   =============================== */

   .menu-toggle-box {
    background: #f1f3f5;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #dee2e6;
}

.menu-toggle-box:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.menu-toggle-box.active {
    background: #e6f4ea;
    border-color: #22c55e;
}

.menu-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #343a40;
}

.menu-toggle-left i {
    font-size: 1.1rem;
    color: #6c757d;
}

.menu-toggle-box.active .menu-toggle-left i {
    color: #22c55e;
}

.menu-toggle-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle-status {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-toggle-status .on {
    display: none;
    color: #22c55e;
}

.menu-toggle-status .off {
    color: #6c757d;
}

.menu-toggle-box.active .menu-toggle-status .on {
    display: inline;
}

.menu-toggle-box.active .menu-toggle-status .off {
    display: none;
}

/* Interrupteur (partagé avec "Actualités automatiques" / "Top info automatique") */
.admin-card .form-check-input {
    cursor: pointer;
}

.admin-card .form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.admin-card .form-check-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ===============================
   HORAIRES
   =============================== */
   .admin-card .day-input {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.admin-card .day-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.3);
    outline: none;
}

.admin-card .img-thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* ===============================
   ADMIN CARD TEXTAREA
   =============================== */
   .admin-card textarea.tinymce {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s;
}

.admin-card textarea.tinymce:focus {
    border-color: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.2);
    outline: none;
}

/* Inputs libellé / prix */
.admin-card .row.d-flex.gap-2 input.form-control {
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s;
}

.admin-card .row.d-flex.gap-2 input.form-control:focus {
    border-color: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.2);
    outline: none;
}

.admin-card .photo-preview {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 6px;
    transition: all 0.2s;
}

.admin-card .photo-preview img {
    max-height: 80px;
    border-radius: 4px;
}

/* ===============================
   FOOTER
   =============================== */
   .art-footer {
    background: linear-gradient(90deg, #1f2933, #111827);
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0 15px;
}

.art-footer-text {
    text-align: center;
}

.art-footer-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .art-footer {
        padding: 30px 15px 15px;
    }
}