/* ========================================== */
/* 1. IMPORTATION DES POLICES                 */
/* ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Poppins:wght@400;600;700&display=swap');

/* ========================================== */
/* 2. VARIABLES ET BASE                       */
/* ========================================== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --warning-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* ========================================== */
/* 3. SECTION HERO                            */
/* ========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none; 
}

.hero-section .container {
    position: relative;
    z-index: 1; 
}

.hero-section img {
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-section img:hover {
    transform: scale(1.02);
}

/* ========================================== */
/* 4. BOUTONS                                 */
/* ========================================== */
.btn-warning {
    background-color: var(--warning-color);
    color: #000;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10; 
    pointer-events: auto; 
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: #000;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ========================================== */
/* 5. EFFET CLIGNOTANT (LA PROMO ROUGE/BLANC) */
/* ========================================== */
.blinking-promo {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    border-radius: 50px; /* Forme de pilule */
    font-weight: 800;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid transparent;
    
    /* Animation de clignotement rapide et attractive */
    animation: flashPromo 1.2s infinite;
}

/* L'animation qui alterne entre Rouge et Blanc */
@keyframes flashPromo {
    0%, 100% {
        background-color: #dc3545; /* Rouge vif */
        color: #ffffff !important; /* Texte Blanc */
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
        transform: scale(1);
    }
    50% {
        background-color: #ffffff; /* Fond Blanc */
        color: #dc3545 !important; /* Texte Rouge */
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
        transform: scale(1.05); /* Léger zoom pour plus d'impact */
    }
}

/* ========================================== */
/* 6. SECTION PRIVILÈGES (Arabe RTL)          */
/* ========================================== */
[dir="rtl"] {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    text-align: right;
}

[dir="rtl"] ul {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .list-unstyled li {
    padding-right: 10px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

/* ========================================== */
/* 7. ANIMATIONS DIVERSES                     */
/* ========================================== */
.blink-animation {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========================================== */
/* 8. RESPONSIVE (Mobile & Tablet)            */
/* ========================================== */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .hero-section img {
        max-height: 200px !important;
    }
    
    .blinking-promo {
        font-size: 0.95em;
        padding: 8px 20px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
        width: 100%; 
    }

    .card {
        padding: 20px !important;
    }
}