
@import url('https://fonts.googleapis.com/css2?family=Akronim&family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik+Doodle+Shadow&family=Titan+One&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*container(nav+logo)*/
.container{
    max-width: 100%; 
    margin: auto;
    padding: 0 15px;
    background: linear-gradient(45deg, #f7ebff, #fff,#f7ebff);   
}
body{
    overflow: visible;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/*header (entête)*/
.header{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-bottom:1px solid hsla(0, 0%, 100%, 0.298);
    z-index: 10;
}
.header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .logo p{
    padding: 10px;
    font-family:cursive;
    font-size: 24px;
    color: #2a238e;
}
.header .logo p span{
    color: #959ae1;
}

.header .menu .head{
    display: none;
}
.header .menu ul{
    list-style: none;
}
.header .menu > ul > li{
    display: inline-block;
}
.header .menu > ul > li:not(:last-child){
    margin-right: 30px;
}
.header .menu .dropdown{
    position: relative;
}
.header .menu a{
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    color: #2a238e;
    list-style: 1.5;
    display: block;
}
.header .menu > ul > li > a{
    padding: 15px 20px;
}
.header .menu > ul > .dropdown > a{
    padding-right: 15px;
}
/* icone menu  à gauche*/
.header .menu i{
    font-size: 15px;
    padding: 5px;
    color:#6d4bad;
    pointer-events: none;
    user-select: none;
    position: absolute;
    top: calc(50% - 10px);
}
.header .menu > ul > li > i{
    right: 0px;
}

.header .menu .submenu i{
    position: absolute;
}
.header .menu .submenu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 180px;
    padding: 0 0;
    background: linear-gradient(45deg, #f7ebff, #fff,#f7ebff);   
    z-index: 100;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;

}
.header .menu .submenu-right{
    left: 100%;
    top: 0px;
}
.header .menu .submenu a{
    padding: 6px 14px;
}

.header .menu li:hover > .submenu{
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: all 0.5s ease;
} 
.header .menu .submenu i{
    transform: rotate(-90deg);
    right: 14px;
}
.header-right{
    display: flex;
}
.header-right > *{
    margin-left: 24px;
}
.header-right .icon-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: rgb(10, 26, 105);
    font-size: 16px;
}
.header-right .open-menu-btn{
    display: none;
}
.header .menu .submenu .dropdown > a{
    padding-right: 34px;
}
.menu ul li{
    padding-right: 10px;
}
.menu ul li:hover{
    background-color: #cb98c820;
    transition: all 0.5s;
}


/* image entête*/
.baground{
    min-height:30vh;
    background-image:url(média/7.jpg);
    background-position:center;
    background-size: cover;
    background-repeat: no-repeat;
}
/*section intro*/
.intro{
    width: 1100px;
    height: 350px;
    padding: 10px;
    border: 5px solid #4c85ac;
    border-radius: 15px;
    font-family: 'roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 300px;
}
.intro .intro-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.intro .info{
    width: 1100px;
    height: 350px;
    position: absolute;
    border-radius: 15px;
    background: #1d414a67;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.intro .info h1{
    font-size: 30px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    color: #aae1f8;
    text-transform:capitalize;
}
.intro .info p{
    font-size: 25px; 
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color:#ffffff;
    margin-left: 25px;
}

.section {
      margin: 50px auto;
      padding: 30px 20px;
      max-width: 1200px;
    }

    .section-title h2 {
      text-align: center;
      font-size: 2.2rem;
      color: #2a9d8f;
      margin-bottom: 20px;
      font-weight: bold;
      padding-bottom: 5px;
    }
     .section-title h2 a{
        text-decoration: none;
        color: #2a9d8f;
     }
     .section-title h2 a:hover{
        color: #5cd3c5;
     }

    /* Cartes de la section du cours */
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
      gap: 20px;
    }

    .card {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 20px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    .card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-radius: 12px;
      margin-bottom: 15px;
    }

    .card h3 {
      font-size: 1rem;
      color: #888;
      margin-bottom: 5px;
      text-align: center;
    }

    .card h4 {
      font-size: 1.3rem;
      color: #41a39b;
      margin-bottom: 10px;
      text-align: center;
    }
.card h4 a{
    text-decoration: none;
    color: #41a39b;

}
    .card p {
      font-size: 0.95rem;
      color: #555;
      line-height: 1.5;
      text-align: justify;
      text-justify: inter-word;
    }
    /* --- boutton pour découvrir les cours--- */
    .btn-modern {
      display: inline-flex;
      align-items: center;
      background: transparent;
      color: #249991;
      padding: 14px 32px;
      border-radius: 50px;
      box-shadow: 0 4px 12px #249991;
      transition: all 0.3s ease;
      position: relative;
      top: 40px;
      left: 40%;
    }

    .btn-modern:hover {
      transform: translateY(-3px);
      opacity: 0.7;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .btn-modern span {
      font-style: italic;
    }    

html, body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Le contenu principal */
main {
  flex: 1; 
}
/* Footer */
.footer {
  background: linear-gradient(to right, #f9f1ff, #f3e7ff);
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #444;
  width: 100%;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  margin-top: 60px;
  bottom: 0;
}

.footer a {
  color: #6b4fd8;
  text-decoration: none;
}
 .footer span{
    color: #d492d2;
 }
/*menu nav responsive*/
@media screen and (max-width:930px){
    .header{
        padding: 0;
    }
    .header .menu{
        position: fixed;
        right: 0;
        top: 0;
        width: 80%;
        height: 100%;
        background-color: #ffffffe0;
        padding: 15px 30px 30px;
        overflow-y: auto;
        z-index: 1;
        transform: translateX(100%);
    }
    .header .menu.open{
        transform: none;
    }
    .header .menu .head{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
    }
    .header .menu .close-menu-btn{
        height: 35px;
        width: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        border: none;
    }
    .header .menu .close-menu-btn::before, .header .menu .close-menu-btn::after{
        content:'';
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: rgb(168, 178, 228);
    }
    .header .menu .close-menu-btn::before{
        transform: rotate(45deg);
    }
    .header .menu .close-menu-btn::after{
        transform: rotate(-45deg);
    }
    .header .menu li > a{
        font-size: 18px;
        font-weight:bold;
    }
    .header .menu .dropdown li > a{
        font-size: 16px;
        font-weight:normal;
    }
    .header .menu ul > li{
        display: block;
    }
    .header .menu ul > li:not(:last-child){
        margin-right: 0;
    }
    .header .menu li{
        border-bottom:1px solid hsla(239, 91%, 30%, 0.8)
    }
    .header .menu li:first-child{
        border-top:1px solid hsla(239, 91%, 30%, 0.8) ;
    }
    .header .menu > ul > li > a{
        padding: 12px 0;
    }
    .header .menu > ul > .dropdown > a{
        padding-right: 34px;
    }
    .header .menu i{
        height: 34px;
        width: 34px;
        border: 1px solid hsla(276, 62%, 86%, 0.37);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        cursor: pointer;
        top: 7px;
}
    .header .menu .dropdown.active > i{
        background-color: hsla(300, 100%, 100%, 0.679);
        color: hsla(282, 25%, 47%, 0.679);
        transform: rotate(180deg);
    }
    .header .menu .submenu{
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        transition: none;
        padding: 0;
        box-shadow: none;
        width: 100%;
        display: none;
    }
    .header .menu .dropdown.active > .submenu{
        display: block;
    }
    .header .menu .submenu li:last-child{
        border: none;
    }
    .header .menu .submenu a{
        padding: 12px 0 12px 15px;
    }
    .header .menu .submenu .submenu a{
        padding-left :30px;
    }
    .header .menu .submenu .submenu .submenu a{
        padding-left: 45px;
    }
    .header .menu .submenu span{
        background-image: none;
    }
    .header .menu .submenu i{
        transform: none;
        right: 0px;
    }
    .header-right .open-menu-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 44px;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        border: none;
    }
    .header-right .open-menu-btn .line{
        height: 2px;
        width: 30px;
        background-color: rgb(73, 93, 191);  
        position: absolute;
    }
    .header-right .open-menu-btn .line1{
        transform: translateY(-8px);
    }
    .header-right .open-menu-btn .line3{
        transform: translateY(8px);
    }
    .menu > ul > li:hover{
        background-color: hsla(249, 100%, 99%, 0.724);
    }
    .menu > ul > .dropdown li:hover{
        background-color: rgba(243, 242, 247, 0.875);
    }
    .menu > ul > .dropdown .dropdown li:hover{
        background-color:rgb(250, 255, 255);
    }
    .menu ul li:hover{
        margin-top: 0px;
    }
    /* --- BOUTON MODERNE --- */
    .btn-modern {
      padding: 5px;
      transition: all 0.3s ease;
      min-width: 170px;
      margin-left: -10%;
      position: relative;  }
   
      .btn-modern h2{
        font-size: 16px;
    }

    /* --- Card --- */
 .section .section-title h2{
    font-size: 24px;
    text-align: center;
 }
 .section .cards .card img{
    width: 100%;
    height: 220px;
 }
}


/*responsive*/
@media screen and (max-width:899px){
    .intro{
        width: fit-content;
        height: fit-content;
}
.card img{
    width: 70%;
    height: 35%;
}
    .cours{
        width: 350px;
    }
    .cours > h2{
        font-size: 18px;
    }
    .grid{
        display: block;
    }
    .intro .info{
        width: 400px;
        height: 500px;
    }
    .intro{
        width: 400px;
        height: 500px;
    }
    .intro .info h1{
        font-size: 22px;
    }
    .intro .info p{
        font-size: 16px;
    }
    
}
@media screen and (min-width:900px) and (max-width: 1300px){
    .card img{
        width: 80%;
        height: 40%;
    }
    .grid{
        display: block;
    }
    .intro .info{
        width: 700px;
        height: 450px;
    }
    .intro{
        width: 700px;
        height: 450px;
    }
}
/*bouton nos cours*/
 @media (max-width: 768px) {
      .btn-modern {
        font-size: 1em;
        padding: 12px 25px;
      }
    }

    @media (max-width: 480px) {
      .btn-modern {
        font-size: 0.9em;
        padding: 10px 20px;
      }
    }
