/* ===== Variables et Réinitialisation ===== */
:root {
    --primary-color: #0a2e4a;       /* Bleu marine (ENSMO) */
    --secondary-color: #1a5f7a;     /* Bleu océan */
    --accent-color: #0096c7;        /* Bleu ciel */
    --light-color: #f8f9fa;         /* Blanc cassé */
    --dark-color: #001e3c;          /* Bleu foncé */
    --warning-color: #ffc107;       /* Jaune (badges) */
    --info-color: #17a2b8;           /* Bleu info */
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(10, 46, 74, 0.9), rgba(10, 46, 74, 0.9)),
                url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path></svg>');
    background-repeat: repeat-x;
    background-size: 1200px 120px;
}

/* ===== Sections de Formation ===== */
.formation-section {
    padding: 2rem 0;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
    background-color: var(--light-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.5rem;
    font-size: 1.5rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.card-body {
    padding: 2rem;
}

.badge {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.bg-warning {
    background-color: var(--warning-color);
}

.bg-info {
    background-color: var(--info-color);
}

/* ===== Boutons ===== */
.btn {
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* ===== Sections d'Info ===== */
.info-section, .contact-section {
    background-color: var(--light-color);
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.alert-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== Espacement ===== */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ===== Style pour la section Contact ===== */
.contact-section .alert {
    border-left: 4px solid #0096c7 !important;
    background-color: #f8f9fa;
}

.contact-section .alert i {
    color: #0096c7;
}

.contact-section .text-primary {
    color: #0096c7 !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
    }
}