/* =============================
   Global
============================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}
body {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    color: #f8f9fa;
}

h2 {
    font-weight: 700; /* fusionné 600 + 700 */
}

/* =============================
   Formulaires & Boutons
============================= */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: 0.3s;
}
.form-label {
    color: #212529; /* Couleur sombre pour le texte */
    font-weight: 500;
}
.form-check-label {
    color: #212529; /* couleur sombre pour visibilité */
    font-weight: 500; /* un peu plus visible */
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

.btn {
    border-radius: 8px; /* fusionné */
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.03);
}

/* =============================
   Vidéo
============================= */
video {
    border-radius: 12px; /* fusionné */
    max-height: 250px; /* réduit pour responsive */
    object-fit: cover;
}

.btn-outline-primary {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* =============================
   Modules / Cards
============================= */
.card,
.module-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.card:hover,
.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.card-body {
    background-color: rgba(0,0,0,0.5);
    border-radius: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.card-text {
    font-size: 0.9rem;
    color: #eaeaea;
}

.module-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-card:hover .module-img {
    transform: scale(1.1);
}

.module-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

/* =============================
   Layout Responsive
============================= */
.row.align-items-center {
    min-height: 100vh;
}

@media (max-width: 768px) {
    .row.align-items-center {
        min-height: auto;
        padding: 20px 10px;
    }
    .col-12.bg-light {
        margin-top: 20px; /* réduit espace form/vidéo */
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.5rem;
    }
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .d-flex.justify-content-center.gap-3.flex-wrap {
        flex-direction: column;
        gap: 0.5rem;
    }
}
