/* Styles de base et réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #000000, #2c2c2c, #FFD700);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f1f1f1;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 120px;
    height: 120px;
    margin-right: 15px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    padding: 5px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 28px;
    color: #FFD700;
    line-height: 1;
    margin: 0;
}

.logo-text span {
    font-size: 18px;
    color: white;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.contact-info {
    text-align: right;
    color: white;
}

.contact-info i {
    color: #FFD700;
    margin-right: 5px;
}

.translation {
    background: #FFD700;
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.translation:hover {
    background: black;
    color: #FFD700;
}

/* Sections générales */
section {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    color: white;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: #FFD700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ffffff;
}

/* Programme de formation */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.program-card {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    border: 1px solid #FFD700;
}

.program-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #FFD700, #000000);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
}

.program-card h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

/* Informations d'inscription */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    color: white;
}

.info-card i {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

/* Formulaire de contact */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.form-info {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.form-info h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

.form-info ul {
    list-style-type: none;
    padding-left: 20px;
}

.form-info li {
    margin-bottom: 10px;
    position: relative;
}

.form-info li:before {
    content: '•';
    color: #FFD700;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #FFD700;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background: #1a1a1a;
    color: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: #FFD700;
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    font-size: 16px;
}

.btn:hover {
    background: black;
    color: #FFD700;
}

/* Témoignages */
.testimonials-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.testimonial {
    flex: 0 0 300px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: black;
    font-weight: bold;
}

/* Pied de page */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: #FFD700;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #FFD700;
}

.social-links {
    margin: 15px 0;
}

.social-links a {
    color: #FFD700;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Animation des cartes */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.program-card, .info-card {
    animation: cardAppear 0.5s ease forwards;
}

/* Messages de confirmation */
.confirmation-message {
    display: none;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        align-items: center;
        margin-top: 15px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .program-grid, .info-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        justify-content: center;
    }
    
    section {
        padding: 20px;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
}

/* Style pour la version arabe */
body.arabic {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.arabic .logo-text {
    text-align: right;
}

.arabic .header-right {
    align-items: flex-start;
}

.arabic .contact-info {
    text-align: right;
}

.arabic h2:after {
    left: auto;
    right: 0;
}

/* Instructions pour le logo */
.logo-instructions {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #FFD700;
}

/* Adresse */
.address {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #FFD700;
}

.address h3 {
    color: #FFD700;
    margin-bottom: 10px;
}