
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #28a745;
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    animation: slideDown 0.4s ease;
}

/*presentaion*/

.presentation{
    margin-top:60px;
    padding:70px 0;
}

.presentation-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:70px;
}

.presentation-left .badge{
    display:inline-block;
    background:#fff1de;
    color:#ff9800;
    padding:10px 22px;
    border-radius:30px;
    margin-bottom:30px;
    font-weight:600;
}

.presentation-left h1{
    font-size:40px;
    line-height:50px;
    color:#0f3c68;
    margin-bottom:25px;
}

.presentation-left h1 span{
    color:#ff9800;
}

.presentation-left p{
    color:#6c7b91;
    font-size:15px;
    line-height:30px;
    margin-bottom:40px;
}

.presentation-btn{
    display:inline-block;
    background:#ff9800;
    color:white;
    padding:18px 35px;
    border-radius:12px;
    font-weight:600;
    transition:.3s;
    box-shadow:0 15px 30px rgba(255,152,0,.35);
}

.presentation-btn:hover{
    transform:translateY(-5px);
}

.presentation-right img{
    border-radius:35px;
    box-shadow:0 30px 50px rgba(0,0,0,.15);
    justify-content: center;
}

/*=========================
        FORMATIONS
==========================*/

.formations{
    padding:40px 0;
    background:#f5f7fb;
}

.formations h2{
    text-align:center;
    font-size:48px;
    color:#0f3c68;
    margin-bottom:15px;
}

.formations> .container>p{
    text-align:center;
    color:#7d8ca2;
    max-width:650px;
    margin:0 auto 60px;
    line-height:30px;
    font-size:18px;
}


.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.card{
    height: 100%;
}
.card{
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;

    display: flex;
    flex-direction: column;
}

.content{
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content a{
    margin-top: auto; /* Le lien sera toujours en bas */
    display: inline-block;
    color: #ff9800;
    font-weight: 700;
}

.content button{
    margin-top: 20px;
}

.content h3{
    font-size: 30px;
    color: #0f3c68;
    margin-bottom: 18px;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content p{
    color: #7b8797;
    line-height: 20px;
    margin-bottom: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*buttons*/
.card .image{
    position:relative;
    overflow:hidden;
}

.card .image img{
    height:240px;
    width:100%;
    object-fit:cover;
    transition:.4s;
}

.card:hover .image img{
    transform:scale(1.08);
}

/*badges*/
.level{
    position:absolute;
    top:18px;
    right:18px;
    background:#ffbf00;
    color:#0f3c68;
    padding:8px 18px;
    border-radius:25px;
    font-size:14px;
    font-weight:700;
    box-shadow:0 8px 20px rgba(255,191,0,.35);
}

/*content*/
.content{
    padding:28px;
}

.content h3{
    font-size:30px;
    color:#0f3c68;
    margin-bottom:18px;
}

.content p{
    color:#7b8797;
    line-height:20px;
    margin-bottom:20px;
}

/*video*/
.content button{
    width:100%;
    border:none;
    margin-top: 20px;
    background:#314b72;
    color:white;
    height:55px;
    border-radius:40px;
    cursor:pointer;
    margin-bottom:30px;
    font-size:17px;
    font-weight:600;
    transition:.3s;
}

.content button:hover{
    background:#1c365b;
}

.content button i{
    margin-right:10px;
}

/*link*/
.content a{
    display:inline-block;
    color:#ff9800;
    font-weight:700;
    transition:.3s;
    align-items: center;
    align-self: center;
}

.content a:hover{
    transform:translateX(8px);
}

/*voir tout*/
.all{
    text-align:center;
    margin-top:60px;
}

.all a{
    display:inline-block;
    background:white;
    color:#0f3c68;
    padding:18px 45px;
    border-radius:14px;
    font-weight:600;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.all a:hover{
    background:#0f3c68;
    color:white;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}