/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
}

/* ================= VARIABLES ================= */
:root {
    --main-color: #1F4E79;
    --main-hover: #163a5a;
    --cta-color: #ff7a00;
}

/* 🔥 FIX GLOBAL INPUT */
input,
textarea,
select {
    font-size: 16px;
}

.formations h2 {
    color: #ff8800;
}

/* ================= INTRO ================= */
.intro-books {
    text-align: center;
    padding: 50px 15px 20px;
}

.intro-content {
    max-width: 500px;
    margin: auto;
}

.intro-content h1 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
}



.intro-text {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ================= SEARCH ================= */
.search-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.search-box {
    display: flex;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.search-bar {
    flex: 1;
    padding: 14px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
}

/* ================= SECTION ================= */
.formations {
    max-width: 1200px;
    margin: auto;
    padding: 20px 10px 60px;
}

/* ================= GRID ================= */
.formation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ================= CARD ================= */
.formation-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.5s ease;
}

.formation-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.formation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* ================= IMAGE ================= */
.formation-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.formation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= CONTENT ================= */
.formation-card h3 {
    font-size: 20px;
    font-weight: 700; /* 🔥 GRAS AJOUTÉ */
    color: #2d3748;
    margin: 15px;
}

.formation-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 15px;
}

.formation-card ul {
    margin: 15px;
    padding-left: 15px;
}

.formation-card li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* ================= VIDEO ================= */
.formation-card ul li:first-child {
    color: var(--cta-color);
    font-weight: 600;
}

/* ================= FOOTER ================= */
.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px;
}

/* ================= BOUTONS ================= */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn-detail {
    background: #e5e7eb;
    color: #1a202c;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.btn-detail:hover {
    background: #d1d5db;
}

.btn-buy {
    background: var(--cta-color);
    color: white;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.btn-buy:hover {
    background: #e56700;
}

.price {
    font-weight: bold;
    color: var(--main-color);
}

/* ================= SCROLL ================= */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

#scrollTopBtn.show {
    opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .formation-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .formation-list {
        grid-template-columns: 1fr;
    }
}



