
/*sommaire du cours à gauche*/
.nav{
    position: absolute;
    top: 300px;
    left: 150px;
    transform: translate(-50%,-50% );
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttonx{
    position: relative;
    background: linear-gradient(45deg, #fff, #f7ebff, #fff);   
    color: #959ae1;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 20px;
    width: 200px;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 25px;
    cursor: pointer;
    transition: width .4s ;
}
.buttonx.expand{
    width: 100%;
}
.buttonx.expand i:before{
    content: "\f00d";
}

.nav label{
    color: #959ae1;
    font-size: 20px;
    font-weight: bold;
    display: block;
    cursor: pointer;
}
.nav ul{
    position: absolute;
    background: linear-gradient(45deg, #f7ebff, #f7ebff, #fff,#f7ebff );   
    list-style: none;
    top: 70px;
    left: 0;
    width: 100%;
    border-radius: 5px;
    color: #959ae1;
    font-weight: bold;
}
.nav ul ul{
    display: none;
    background: transparent;
}
[id^=btn]:checked + ul{
    display: block;
}

.nav ul li{
    line-height: 30px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #959ae1e6;
}
.nav ul li label{
    font-size: 16px;
   /*color: #5f1e67;*/
}
input{
    display: none;
}
.nav ul li a{
    color: #959ae1;
    text-decoration: none;
    font-size: 15px;
    display: block;
}
.nav ul li a:hover, .nav ul li label:hover{
    color: rgb(71, 69, 182);
}
.ul{
    display: none;
}

.nav ul ul{
    position: static;
}
.nav ul ul li{
    line-height: 20px;
    padding-left: 15px;
    border-bottom: none;
}
.nav ul ul li a{
    color: #959ae1;
    font-size: 15px;
}
.nav ul li span{
    font-size: 20px;
    float: right;
    margin-top: 10px;
    padding: 0 10px;
}
.ul> li:hover{
    box-shadow: inset 0 0 5px #87619d,
                inset 0 0 5px #87619d ;
}
.ul li:hover:first-child{
    border-radius: 5px 5px 0 0;
}
.ul li:hover:last-child{
    border-radius: 0 0 5px 5px;
}
.ul ul li a:hover{
    color: #7271d1;
}

/*COURS SECTION*/
main .cours-bio{
    max-width: 70vw;
    position: relative;
    left: 270px;
    text-align: justify;
    background: #fff;
    border-radius: 12px;
    margin: 25px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(98, 72, 89, 0.509);  
}

main .cours-bio h2{
    text-align: center;
    color: #2b2db8;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 1.5;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
main .cours-bio ul, .cours-bio li, .cours-bio p{
    margin-left: 20px;
    color: #1f2153;
    line-height: 2;
}

main .cours-bio img{
    position: relative;
    margin-left: 10%;
    width: 80%;
}
main .cours-bio h3{
    color: #1e6b83;
    padding: 10px;
}
main .cours-bio .img-patways{
    width: 400px;
    height: 600px;
    border-radius: 5px;
    position: absolute;
    right: 20px;
    top: 130px;
    margin: 10px;
}
main .cours-bio .objet ul, .objet li{
    line-height: 2;
    color: black;
    font-weight: normal;
    margin-left: 10px;
}
main .cours-bio h4{
    margin: 20px;
    color: #078479;
    font-size: 18px;
}
main .cours-bio .img-intro{
    width: 400px;
    height: 350px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 0px;
    top:90px;
    margin: 10px;
    text-align: center;
}
main .cours-bio .img-glu{
    width: 400px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 0px;
    top:480px;
    margin: 10px;
    text-align: center;
}   
main .cours-bio .img-hexo{
    width: 400px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 20px;
    top:600px;
    margin: 10px;
    text-align: center;
}  
main .cours-bio .img-r{
    width: 550px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    margin: 10px;
    padding: 10px;
    margin-left: 25%;
    text-align: center;
}  
main .cours-bio .img-pdc{
    width: 400px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    margin: 10px;
    padding: 10px;
    right: 20px;
    top: 540px ;
    position: absolute;
    text-align: center;
} 
main .cours-bio .img-h{
    width: 550px;
    margin-left: 25%;
    text-align: center;
}  
main .cours-bio .img-cycle{
    width: 380px;
    height: 280px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 20px;
    top:100px;
    margin: 10px;
}   
.questions{
    border-left: 2px solid #1487ac;
    width: 100%;
    background-color: #f8f9fbce;
    padding: 5px;
}
.conteneur1{
    width: 100%;
    border-left: 2px solid #1e6b83;
    background-color: #fefdfdf0;
    padding: 10px;
}
.cours-bio .orange{
    color: #d46013;
}
.cours-bio .objet .orange{
    color: #d46013;
}
.conteneur-orange{
    width: 100%;
    border-left: 2px solid #d46013;
    background-color: #fffaf7;
    padding: 10px;
}
.conteneur-violet{
    width: 100%;
    border-left: 2px solid #6f1577;
    background-color: rgb(253, 247, 255);
    padding: 10px;
}
.conteneur-vert{
    width: 100%;
    border-left: 2px solid #249646;
    background-color: #f6f9f7;
    padding: 10px;
}
.conteneur-bleu{
    width: 100%;
    border-left: 2px solid #4a42bb;
    background-color: #fbfdfe;
    padding: 10px;
}
.conteneur-rouge{
    width: 100%;
    border-left: 2px solid #dc5272;
    background-color: rgb(255, 242, 249);
    padding: 10px;
}
.cours-bio .rouge{
    color: #dc5272;
}
.conteneur-bleu >h5{
    color: #4a42bb;
    margin-top: 0;
}
.conteneur-bleu li{
    margin-left: 20px;
}
.cours-bio .bilan{
    width: 600px;
    margin-top: 10px;
    margin-left: 20%;
}
.conteneur-violet h5{
    color:#470a52cc;
    margin-top: 0;
}
.remarque{
    width: 100%;
    border-left: 2px solid #73457bcc;
    background-color: rgba(253, 243, 251, 0.27);
    padding: 10px;
}
h5{
    color:#73457bcc;
    margin: 20px;
    font-size: 18px;
}
.phase{
    text-align: center;
    margin: 10px;
    font-size: 22px;
}
.phase1{
    border-radius:15px ;
    border: 1px solid rgb(160, 209, 255);
    padding: 10px;
}
.phase2{
    border-radius:15px ;
    border: 1px solid rgb(245, 160, 255);
    padding: 10px;
}
main .cours-bio .img{
    width: 400px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 0px;
    top: 90px;
    margin: 10px;
    text-align: center;
}
main .cours-bio .img-krebs{
    width: 400px;
    height: 350px  ;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 20px;
    top: 160px;
    margin: 10px;
    text-align: center;
}
main .cours-bio .img1{
    width: 400px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 10px;
    top: 850px;
    margin: 10px;
    padding: 10px;
    text-align: center;
}
main .cours-bio .objet .titre-img1{
    position: absolute;
    float: right;
    top: 1070px;
    right: 80px;
    text-align: center;
    color: #693e82;
    font-size: 18px;
}
main .cours-bio .img2{
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid rgb(246, 237, 245);
    position: absolute;
    right: 0px;
    top: 450px;
    margin: 20px;
}
main .cours-bio .img3{
    width: 380px;
    position: absolute;
    right: 30px;
    margin: 20px;
    bottom: 140px;
}
main .cours-bio .objet{
max-width: 500px;
padding: 20px;
}
main .cours-bio .objet h3{
    color: #207272;
    text-align: center;
}
main .cours-bio .objet p{
    text-align: justify;
    color: #302c57;
}

main .cours-bio p span{
    font-weight: bold;
    color: #8e79bd;
}
main .touche-nav{
    width: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 5px;
    margin: 10px auto;}

.touche-nav
main .touche-nav i{
    font-size: 24px;
    padding: 5px;
}
main .touche-nav span{
    font-style: italic;
    font-family: 'roboto';
    text-align: center;
}

.titre{
    width: 100%;
    text-align: center;
    margin: 0 auto;
    margin-top: 250px;
    color: rgb(93, 100, 143);
}

.nav-link1{
    width: 110px;
    border: 1px solid #b0b5f297;
    background: linear-gradient(45deg, #f7ebff, #fff);   
    border-radius: 50px;
    padding: 5px;
}

.touche-nav a{
    text-decoration: none;
    color: #b0b5f2;
}
.nav-link1:hover{
    background: linear-gradient(45deg,#b0b5f297, #f7ebff, #fff, #b0b5f297);
    color: #5a61aefa;   

}
.volet-titre{
    width: 70vw;
    border: 1px solid #f7ebff;
    background: linear-gradient(45deg, #f7ebff, #fff, #f7ebff);
    padding: 5px;
    color: #b0b5f2;
    display: flex;
    justify-content: center;
    margin-top:275px;
    margin-left:300px;
}
/*TP*/
.tp {
  border: 2px solid #3498db;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 100%;
  background-color: #fdfdfd;
}

.tp h3 {
  color: #2c3e50;
  font-size: 22px;
  margin-bottom: 15px;
}
.tp h4{
margin: 10px;
padding: 10px;
}
.tp-video
{text-align: center;}

.tp ul {
  padding-left: 20px;
  list-style-type: disc;
}

.tp-quiz .btn-quiz {
  display: inline;
  background-color: #8e44ad;
  color: rgb(120, 43, 43);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
  float: right;
}

.tp-quiz .btn-quiz:hover {
  background-color: #732d91;
}


/*TD*/
.exercices-page {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  margin-left: 280px;
}


.chapitre {
  margin-bottom: 40px;
}
.chapitre h3{
    margin: 10px;
    color: #534dc1;
}

.exercice {
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.exercice h4 {
  margin-bottom: 5px;
  color: #2c3e50;
}

.btn-correction {
  display: inline-block;
  margin-top: 10px;
  background-color: #3498db;
  color: white;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-correction:hover {
  background-color: #1f6594;
}

/*contact*/
.contact-page {
  max-width: 600px;
  margin: 40px auto;
  margin-top: 300px;
  padding: 30px;
  background: #f9f9ff;
  border: 2px solid #dcdcec;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.contact-page h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
  text-align: center;
}

.contact-page p {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #34495e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #8e44ad;
  box-shadow: 0 0 5px rgba(142, 68, 173, 0.3);
  outline: none;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #8e44ad;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #732d91;
}

/*fiche de révision*/
 .container-fiche{
      width:80vw;
      border-radius:20px;
      padding:32px;
      box-shadow:0 8px 20px rgba(30,41,59,0.08);
      margin: 0 auto;
      margin-top:300px;
    }

    header{
      text-align:center;
      margin-bottom:28px;
    }
    header h1{
      font-size:32px;
      font-weight:800;
      background:linear-gradient(90deg,#3a8ef6,#7b4ef7);
      background-clip:text;
      color:transparent;
      margin:0;
    }
    header p{
      color:#64748b;
      font-size:15px;
      margin-top:8px;
    }

    .grid{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
      gap:20px;
    }

    .card{
      border-radius:16px;
      padding:22px;
      cursor:pointer;
      transition:transform .2s ease, box-shadow .2s ease;
      position:relative;overflow:
      hidden;display:flex;
      flex-direction:column;
      min-height:200px;
    }
    .card:hover
    {
      transform:translateY(-6px);
      box-shadow:0 12px 28px rgba(0,0,0,0.12);
    }
    
    .card h2
    {margin:10px 0 6px;
      font-size:20px;font-weight:700; 
      text-align: center;
      color:#f9f9f9}

    .card p{
      margin:0;
      font-size:14px;
      line-height:1.4; 
      text-align: center;
    }

    .card img{
      width:100%; 
      height: 200px;
      object-fit:contain;
      margin: 0 auto;
      margin-top:20px ;
      border-radius:10px;
      background:white;
      padding:4px;
    }

    .gly{
      background:linear-gradient(180deg,#c2d9f6,#f6e6f6fa);
    }
    .kre{
      background:linear-gradient(180deg,#9c9faa,#dde4fdd0);
    }
    .neo{
      background:linear-gradient(180deg,#b096ad,#f3c6eebd);
    }
    .phospho{
      background:linear-gradient(180deg, #899799bb,#c6f2f3bd);
    }
    .pentose{
      background:linear-gradient(180deg,#92a8a6e5,#a8e4c8e3);
    }
    .regu{
      background:linear-gradient(180deg,#6e8087e7,#a3cfe0e7);
    }
    .meta{
     background:linear-gradient(180deg,#92a8a6e5,#a8e4c8e3);
    }
    .cata{
      background:linear-gradient(180deg,#6e8087e7,#a3cfe0e7);
    }
    .ana{
      background:linear-gradient(180deg, #899799bb,#c6f2f3bd);
    }

    .details{
      max-height:0;
      overflow:hidden;
      transition:max-height .35s ease,opacity .35s ease;
      opacity:0;
    }
    .details.open{
      max-height:600px;
      opacity:1;
      margin-top:16px;}

    .detail-box{
      background:#fbf9fb;
      border-radius:12px;
      padding:18px;
      margin-top:10px;
      border:1px solid #e5e7eb;}
    .detail-box h3{
      margin:0 0 12px;
      font-size:18px;
      color:#111827;}
    .detail-box ul{
      margin:0;padding-left:18px;
      color:#334155;
      font-size:14px}
    .detail-box li{
      margin: bottom 6px;
    }

    .fiche-footer{
      text-align:
      center;margin-top:28px;
    }
    .fiche-footer button{
      margin:0 6px;
      border:none;
      border-radius:8px;
      padding:10px 16px;
      background:linear-gradient(90deg,#3a8ef6,#d1c5f0);;
      color:white;
      font-weight:600;
      cursor:pointer;
      transition:background .2s ease;
    }
    .fiche-footer button:hover{
      background:linear-gradient(90deg,#d4b7e3,#b7a4c0);
    }

/*guide-cours*/
.sidebar{
    float:right;
    right: 5px;
    top: 250px;
    width: 65px;
    position:absolute;
    margin: 10px;
    border-radius: 50px;
    background: linear-gradient(45deg, #f7ebff, #f7ebff, #fff);   
    height: calc(100vh - 20px);
    transition: 0.4s ease;
    z-index: 20;
    font-family: "Pacifico", sans-serif;
}
.sidebar-header{
    position: relative;
    display: flex;
    padding: 25px 20px;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header .header-logo > i{
    color:#959ae1;
}
.sidebar-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0 5px;
    flex-direction: column;
    transform: translateY(15px);
    transition: 0.4s ease;
}
.sidebar-nav .nav-link{
    color: #959ae1;
    display: flex;
    gap: 12px;
    white-space: nowrap;
    border-radius: 8px;
    align-items: center;
    padding:8px 15px;
    text-decoration: none;
    transition: 0.4s ease;
}
.sidebar-nav .nav-link:hover{
    color: #a60bae;
    background: #fff;
}
.sidebar-nav .nav-link .nav-label{
    transition: opacity 0.4s ease; 
}
.sidebar-header h2{
    opacity: 0;
}
.sidebar.collapsed .sidebar-header h2{   
    color: #959ae1;
    font-size: 24px;
    letter-spacing: 2;
    position: absolute;
    left: 80px;
}
.sidebar-nav .secondary-nav{
    position: absolute;
    bottom: 30px;
    width: 100%;
}
.sidebar-header .toggler{
    position: absolute;
    right: 30px;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #959ae1;
    border-radius: 8px;
    border: none;
    background: #fff;
    transition: 0.4s ease;
}

.sidebar-header .toggler:hover{
    background: #dde4fb;
}

/*sidebar collapsed*/
.sidebar.collapsed{
    width: 220px;
}
.sidebar.collapsed .sidebar-nav .nav-link .nav-label{
    opacity: 1; 
    pointer-events: none;
 }
 .sidebar.collapsed .sidebar-header h2{
    opacity: 1;
}
.sidebar.collapsed .sidebar-header .toggler > i{
    font-size: 1rem;
    transition: 0.4s ease;
}
.sidebar.collapsed .sidebar-header .toggler{
    top: -15px;
}

.sidebar.collapsed .sidebar-header .toggler i{
    transform: rotate(180deg);
}
.sidebar.collapsed .sidebar-header .header-logo i{
    font-size: 20px;
    color: #959ae1;
    display: block;
    margin-left: 5px;
}
.sidebar.collapsed .sidebar-header .toggler i{
    transform: rotate(180deg);
}
.sidebar .sidebar-nav .nav-link .nav-label{
   opacity: 0; 
   pointer-events: none;
}
.sidebar .sidebar-header .toggler{
    transform: translate(5px, 40px);
}
.sidebar .sidebar-nav .primary-nav{
    transform: translateY(65px);
}


/*-- sidebar tooltip --*/
.sidebar-nav .nav-item{
    position: relative;
}
.sidebar-nav .nav-tooltip{
    opacity: 0;
    position: absolute;
    top: -10px;
    right: calc(100% + 25px);
    color: #561a65;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: 0s;
}

.sidebar-nav .nav-item:hover .nav-tooltip{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(50%);
    transition: 0.4s ease;
}
.sidebar.collapsed .sidebar-nav .nav-item:hover .nav-tooltip{
    opacity: 0;
    display: none;
}

/*menu nav responsive*/
@media screen and (max-width:930px){
    .sidebar{
        display: none;
    }
    .wapper{
        display: none;
    }

    .nav{
        display: none;
    }
}



