:root {
    --primary-color:  #01257D ;
    --secondary-color: #f9f9f9;
    --text-color: #333;
    --header-bg: #232323;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 body {
    font-family: 'Arial', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    /* background-image: url(''); */
}
/*
header {
    background: var(--header-bg);
    color: white;
    text-align: center;
    padding: 1.5em 1em;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
} */

main {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    top: 100px;
    align-items: center;

}

#formations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    width: 100%;
    max-width: 1200px;
}

.formation-card {
    background: white;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-image {
    width: 100%;
    /* height: 215px; */
    object-fit: contain;
    object-position: center;
    padding: auto;
}

.formation-content {
    padding: 1em;
}

.formation-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.formation-description {
    font-size: 1em;
    margin-bottom: 1em;
    color: #666;
}

.formation-button {
    display: inline-block;
    padding: 0.5em 1em;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 1em;
    transition: background 0.3s ease;
}

.formation-button:hover {
    background:  #01247dd8 ;
}

/* main{
    margin: 0;
} */
.carousel{
    height: 500px;
    display: flex;
    flex-direction: column;
    /* row-gap: 150px; */
}
.carousel ul, .carousel li, .img{
    height: 100%;
    width: 100%;

   
}
.carousel li{
    list-style-type: none;
}
.carousel .img{
    border-radius: 8px;
    display: block;
    object-fit: contain;
}
.btn{
    /* position: absolute; */
    /* transform: translateY(-50%);
    top: 50%; */
    border: none;
    background: none;
    outline: none;
    font-size: calc(1rem + 1.6vw);
    border: 2px solid #00FFFF;
    color: rgb(232, 230, 230);
    width: 40px;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}
#nextprev{
    display: flex;
    column-gap: 20px;
}



.slide, .slide2, .slide3{
    height: 100%;
    width: 100%;
    position: absolute;
    opacity: 0;
    transition: .4s ease-in-out;
}
.slide.active, .slide2.active2,.slide3.active3{
    opacity: 1;
}



#imgdis{
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color:#000000d4;
    gap: 30px;
}
#imgdis h2{
     color: orange;   
}
#imgdis p{
    color:#fff;
    font-size: calc(0.7rem + 1vw);
    font-weight: bold;
}




.carousel, .carousel2{
    height: 500px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel3 img{
    object-fit: contain;
}



#text{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #23232330;
    padding:10px;

}


#text h1{
    font-size:  calc(1.5rem + 1.2vw);
    color: #00FFFF;
}
#text p{
    font-size:  calc(1rem + 1vw);
    width: 90%;
    color: #f9f9f9ec;

}

p a, h1{
    color: #01257D;
    font-weight:bold;
    text-decoration:none;
}
p a:hover{
    color: #012555;
}

#formCon2{
    display: flex;
    flex-direction: column;
    width: 65%;
    position: relative;
    right: 150px;
    top: 250px;
    row-gap: 20px;
    transition: all .3s;
    background-color: #2323237c;
    border-radius: 4px;
    padding: 10px;
}
#check-group label input {
    height: 25px;
    width: 25px;
}

#check-group label {
    display: flex;
    /* height: 50px; */
    /* font-size: 50px; */
    margin-right: 10px;
    font-weight: normal;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
}
input[type='checkbox']{
    height: 40px;
}

.formbas{
    top: 60px;
}
.formhaut{
    top: 0px;
}
#formCon2 input, #formCon select {
    height: 40px;
    font-size: calc(0.7rem + .8vw);
    background-color: rgba(0, 0, 0, 0.722);
    color: white;
    border: none;
    border-radius: 5px;
}
#formCon2 label{
    font-size: calc(0.7rem + .8vw);
    color: rgba(255, 255, 255, 0.856);
}

#formCon2 textarea{
    font-size: calc(0.7rem + .8vw);
    background-color: rgba(0, 0, 0, 0.722);
    color: white;
    border: none;
    border-radius: 5px;
    height: 175px;
}

#formCon2 input[type='submit']{
    width: 40%;
    background-color:#01257D;
    color:#00FFFF;
    transition: all .3s;
    font-weight: bold;
}
#formCon2 input[type='submit']:hover{
    transform: scale(.97);
    background-color: #01247dd8;
    cursor: pointer;
}


.notif{
    position: relative;
    left: 30%;
    top:500px;
    padding: 10px;
    font-weight: bold;
    font-size: calc(0.5rem + .9vw);
    border-radius: 5px;
    background-color: white;
    text-align: center;
    width: 300px;
    opacity: 0;
    transition: all 0.8s;
    color: white;
    
}
.notif.validate{
    background-color: rgb(24, 190, 24);
    opacity: 1;
    top:-50px;
}
.notif.error{
    background-color: red;
    opacity: 1;
    top:-50px;
}

@media (max-width: 600px){
    
   .btn{
        width: 35px;
        /* height: 35px; */
        padding: 0;
   }
   .carousel{
    height: 300px;
    display: flex;
    flex-direction: column;
}
}
@media (max-width: 890px){
   
    
    #formCon2 {
        width: 80%;
        right: -50px;
        /* top: 0px; */
    }
}
@media (max-width: 600px){
   
    .notif{
        left: 20%;
    }
    
    #formCon2 {
        width: 90%;
        right: -6px;
    }
    #formCon2  input{
        height: 35px;
        border-radius: 5px;
    }
    #check-group label input {
        height: 20px;
        width: 20px;
    }

    .notif.validate{
        background-color: rgb(24, 190, 24);
        opacity: 1;
        top: 200px;
        left: 0%;
    }
    .notif.error{
        background-color: red;
        opacity: 1;
        top: 200px;
        left: 0%;
    }
    
    
}