/* Footer thème light/dark */
.footer {
    transition: background-color 0.3s, color 0.3s;
}
.footer-light {
    background-color: #f8f9fa;
    color: #212529;
}
.footer-dark {
    background-color: #212529;
    color: #f8f9fa;
}
/* Bouton retour en haut */
#toTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}
#toTopBtn.show {
    opacity: 1;
    visibility: visible;
}
#toTopBtn:hover {
    background-color: #0b5ed7;
}
/* Styles personnalisés pour le CMS Bootstrap */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Composants personnalisés */
.component-preview {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
}

.navbar-custom {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Carrousel personnalisé */
.carousel-custom .carousel-inner {
    border-radius: 8px;
    overflow: hidden;
}

.carousel-custom .carousel-item {
    height: 400px;
}

.carousel-custom .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-custom a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-custom a:hover {
    opacity: 0.8;
}

/* Grille de features */
.features-grid {
    padding: 60px 0;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-custom {
        padding: 40px 0;
    }
    
    .carousel-custom .carousel-item {
        height: 250px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Éditeur - Mode sombre */

.header-dark {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}
.header-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Boutons personnalisés */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
