/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc légèrement transparent */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    margin-bottom: 1rem;
}

.loader-text {
    font-weight: 500;
    font-size: 1.2rem;
    color: #0d6efd; /* Couleur bleu Bootstrap */
}

/* Animation personnalisée */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
    animation: spin 0.75s linear infinite;
}

/* --------------------------------------------------------- */
:root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --accent-color: #4895ef;
            --dark-color: #1b263b;
            --light-color: #f8f9fa;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f7fa;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .hero-section {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 4rem 0;
            margin-bottom: 2rem;
        }
        
        .template-card {
            transition: transform 0.3s, box-shadow 0.3s;
            border: none;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        
        .template-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .template-img {
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
        }
        
        .badge-category {
            background-color: var(--accent-color);
            color: white;
        }
        
        .btn-download {
            background-color: var(--primary-color);
            color: white;
            font-weight: 500;
        }
        
        .footer {
            background-color: var(--dark-color);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
        }
        
        .preview-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
        }

        .marginBottom {
            margin-bottom: 25px;
        }
        

/* --------------------------------------------------------- */


/* Style pour les boutons de téléchargement */
.btn-download-lg, #sidebarDownloadBtn {
    position: relative;
    overflow: hidden;
}

.download-text {
    transition: opacity 0.3s;
}

.btn-loading .download-text {
    opacity: 0;
}

.btn-loading .spinner-border {
    position: absolute;
    left: 44%;
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
    display: inline-block !important;
}

.countdown-text {
    display: none;
    position: absolute;
    left: 50%;
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
    font-weight: bold;
}

/* --------------------------------------------------------- */

