@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.Formations {
    padding: 50px 20px;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Poppins', sans-serif;
    animation: fadeIn 1.5s ease-out;
}

.Formations h1 {
    font-size: 2.5rem;
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.Formations .intro {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #007BFF;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.intro strong {
    color: #007BFF;
    font-weight: 600;
}

.intro br {
    margin-bottom: 10px;
}

.intro:hover {
    background-color: #f0f8ff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.formation-card {
    background: linear-gradient(145deg, #ffffff, #f4f4f4);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

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

.formation-card h3 {
    font-size: 1.8rem;
    color: #007BFF;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: capitalize;
}

.formation-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.formation-card ul {
    text-align: left;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.formation-card ul li {
    padding: 5px 0;
    color: #444;
    position: relative;
}

.formation-card ul li::before {
    content: '✔';
    color: #28a745;
    margin-right: 10px;
    font-size: 1.2rem;
}

.formation-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 20px;
}

.formation-card .btn {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.formation-card .btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .Formations {
        padding: 20px;
    }

    .Formations h1 {
        font-size: 2rem;
    }

    .formations-grid {
        grid-template-columns: 1fr;
    }

    .formation-card {
        padding: 15px;
    }

    .formation-card h3 {
        font-size: 1.5rem;
    }
}
