/* Nouveau fichier CSS révisé pour la plateforme d'inscription des retardataires */
:root {
    --primary-color: #d9534f; /* Rouge pour indiquer l'urgence */
    --secondary-color: #f0ad4e; /* Orange pour les alertes */
    --accent-color: #5bc0de; /* Bleu pour les informations */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.header {
    background: linear-gradient(90deg, var(--dark-color) 0%, #2c3e50 100%);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid var(--primary-color);
}

.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.title-arabic {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: bold;
    direction: rtl;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1.5rem 0;
    border: 3px solid var(--primary-color);
}

/* Conteneur d'annonce avec style d'urgence */
.announcement-container {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.announcement-container::before {
    content: "URGENT";
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.announcement-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Onglets de langue */
.language-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.language-tab {
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border: none;
    border-radius: 5px 5px 0 0;
    margin: 0 0.2rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #ddd;
    border-bottom: none;
}

.language-tab:hover {
    background: #e9ecef;
}

.language-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Contenu d'annonce */
.announcement-content {
    line-height: 1.8;
}

.announcement-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
}

.announcement-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-list {
    list-style-type: none;
}

.announcement-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.announcement-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section des spécialités */
.specialties-container {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
    border: 1px solid #ddd;
}

.specialties-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.specialties-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.specialties-table th {
    background: var(--dark-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.specialties-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.specialties-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.specialties-table tr:hover {
    background-color: #e9ecef;
}

.faculty-cell {
    font-weight: 600;
    color: var(--dark-color);
}

.places-cell {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

.specialties-note {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.specialties-note h4 {
    color: #856404;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bouton d'accès */
.access-button {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c9302c 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.access-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 83, 79, 0.4);
    background: linear-gradient(135deg, #c9302c 0%, var(--primary-color) 100%);
}

/* Animations */
.animated {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .title-arabic {
        font-size: 1.4rem;
    }
    
    .announcement-container, .specialties-container {
        padding: 1.5rem;
    }
    
    .language-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .language-tab {
        border-radius: 5px;
        border-bottom: 1px solid #ddd;
    }
    
    .specialties-table th, 
    .specialties-table td {
        padding: 0.5rem;
    }
    
    .access-button {
        width: 90%;
        margin: 1.5rem auto;
    }
}

/* Styles pour le contenu arabe */
[dir="rtl"], [style*="direction: rtl"], [style*="text-align: right"] {
    text-align: right;
    direction: rtl;
}

/* Style pour l'image de la circulaire */
.specialties-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
    border: 2px solid var(--accent-color);
}