*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
    margin: 0 20px;
    background-color: #F3F5FA;
    color: #14213D;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 10px #d2d7cb;
    position: relative;
}
/* ===== Accueil (index) ===== */

.heroAccueil {
  background: #fca311; /* ton orange */
  border-radius: 16px;
  margin: 24px;
  padding: 48px 20px;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.heroAccueil__content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.heroAccueil h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: .2px;
}

.heroAccueil p {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: 16px;
  opacity: .95;
}

.heroAccueil__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btnAccueil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 18px;
}

.btnSecondaire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  transition: transform .15s ease, background .15s ease;
}

.btnSecondaire:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.25);
}

.heroAccueil__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.accueilMain {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 30px;
}

.accueilCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.accueilCard {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

.accueilCard__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(120,190,32,.16); /* vert */
  font-size: 22px;
  margin-bottom: 10px;
}

.accueilCard h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #14213d; /* bleu foncé */
}

.accueilCard p {
  margin: 0 0 14px;
  color: rgba(20,33,61,.82);
  line-height: 1.4;
  font-size: 14px;
}

.btnCard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #2f59d4; /* proche de ton bouton bleu */
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 14px rgba(47,89,212,.25);
  transition: transform .15s ease;
}

.btnCard:hover {
  transform: translateY(-1px);
}

.accueilInfos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.accueilInfos__box {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.accueilInfos__box h3 {
  margin: 0 0 10px;
  color: #14213d;
}

.accueilInfos__box ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(20,33,61,.86);
}

.accueilInfos__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.accueilInfos__links a {
  color: #2f59d4;
  text-decoration: none;
  font-weight: 600;
}

.accueilInfos__links a:hover {
  text-decoration: underline;
}

.accueilFooter {
  text-align: center;
  padding: 18px 24px 28px;
  color: rgba(0,0,0,.6);
}

/* Responsive */
@media (max-width: 900px) {
  .accueilCards {
    grid-template-columns: 1fr;
  }
  .accueilInfos {
    grid-template-columns: 1fr;
  }
  .heroAccueil {
    margin: 14px;
    padding: 34px 16px;
  }
}

/* fin page accueil */
.logo-titre{
    width: 40%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 10px;

}
.logo-titre div{
    width: 40px;
}
.logo-titre div img{
    width: 100%;
}
.logo-titre h3{
    width: 100%;
    color: #022379;
}
nav{
    width: 60%;
}
.menuPrincipal {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    list-style: none;
}
.menuPrincipal li{
    cursor: pointer;
    margin: 0 10px;
    transition: 0.3s ease;
}
.menuPrincipal li a{
    border: 2px solid #F3F5FA;
    font-size: 14px;
    border-radius: 30px;
    padding: 10px 20px;
    width: 100%;
    text-decoration: none;
    font-weight: 600;
}
.menuPrincipal li:hover a , li.active a{
    background: #78BE20;
    transform: translateY(-3px);
    box-shadow: 0px 4px 4px #78BE20;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 30px;
}

.secNotesTravail, 
.secNotesFinal,
.secNotesEtudant{
    background-color: #FCA311;
    text-align: center;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}
.secNotesTravail h1,
.secNotesFinal h1,
.secNotesEtudant h1{
    color: #FFFFFF;
    margin: 10px;
}
.secNotesTravail > p,
.secNotesFinal > p,
.secNotesEtudant > p{
    color: #D1D5DB;
}
.secNotesTravail form,
.secNotesFinal form,
.secNotesEtudant form{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px;
    margin: 20px auto;
    border-radius: 8px;
    width: 80%;
}
.secNotesFinal .groupe{
    min-height: 180px;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
}
.filtre_echec label{
    text-align: start;
}

.filtre_echec input{
  display: none;
}

.checkmark{
  width:20px;
  height:20px;
  border:2px solid #a9b0bd;
  border-radius:6px;
  display:inline-block;
  position: relative; 
  transition: all .2s ease;
}
.lbl-check{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
 .filtre_echec input:checked + .lbl-check .checkmark{
  background-color:#78BE20;
  border-color:transparent;
  transform: scale(1.05);
}
.filtre_echec input:checked + .lbl-check .checkmark::after{
  content:"✓";
  position:absolute;
  color:#fff;
  left:3px;
  top:-2px;
  font-size:14px;
}
/* mentorat */
.mentorat{
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}
.mentorat__title{
  padding: 0 8px;
  font-weight: 700;
  color: #14213D;
}

/* une option = une ligne cliquable */
.choixMentorat{
  position: relative;
  margin-top: 10px;
}

/* on cache le radio natif */
.choixMentorat input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* label = la “ligne” */
.choixMentorat label{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #14213D;
  transition: background-color .15s ease;
}

/* petit hover discret */
.choixMentorat label:hover{
  background-color: #F8FAFC;
}

/* cercle custom */
.choixMentorat label::before{
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #94A3B8;
  border-radius: 50%;
  margin-top: 2px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* sélection : bordure cercle + point intérieur */
.choixMentorat input:checked + label::before{
  border-color: #16A34A;
  box-shadow: 0 0 0 4px rgba(22,163,74,.14);
  background:
    radial-gradient(circle at center, #16A34A 0 45%, transparent 46% 100%);
}

/* accessibilité : focus clavier */
.choixMentorat input:focus + label::before{
  border-color: #FCA311;
  box-shadow: 0 0 0 4px rgba(252,163,17,.18);
}
/* fin mentorat */
.secNotesTravail form select,
.secNotesFinal form select,
.secNotesEtudant form input{
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #D1D5DB;
    color: #14213D;
    font-weight: 500;
    cursor: pointer;
}
.secNotesEtudant form input{
    cursor: auto;
    border-radius: 10px;
    width: 300px;
    padding-left: 20px;
    color: #14213D;
    font-size: 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}   
.secNotesTravail select:focus,
.secNotesFinal select:focus,
.secNotesEtudant form input:focus{
    border: 2px solid #16A34A;
    outline: #16A34A;
}
.secNotesTravail select:valid,
.secNotesFinal select:valid{
    border: 2px solid #16A34A;
}
.secNotesTravail button[type="submit"],
.secNotesFinal button[type="submit"],
.secNotesEtudant button[type="submit"]{
    border: 2px solid #D1D5DB;
    padding: 8px 30px;
    border-radius: 12px;
    background-color: #3057d5;
    color: #FFFFFF;
    cursor: pointer;
}
.secNotesTravail .btn-filtrer,
.secNotesFinal .btn-filtrer,
.secNotesEtudant .btn-filtrer{
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .2s ease, transform .1s ease;
}
.secNotesTravail .btn-filtrer:hover,
.secNotesFinal .btn-filtrer:hover,
.secNotesEtudant .btn-filtrer:hover{
  background-color: #0645cd;
  color: #FFFFFF;
  transform: scale(1.1);
}

.secAffichage{
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;
    text-align: center;
}

.secAffichage table{
    width: 50%;
    margin: 20px auto;
}
.secAffichage h2{
    text-align: start;
    margin-left: 25%;
}
.secAffichage table, 
.secAffichage th,
.secAffichage td{
    border-collapse: collapse;
    border: 1px solid #E5E5E5;
    padding: 8px 20px;
}
.secAffichage th{
     background-color: #78BE20;
     color: #FFFFFF;
}
.secAffichage td{
     color: #14213D;
     font-weight: 600;
}
.secAffichage tr:nth-child(odd){
     background-color: #F3F4F6;
}
.moyenneNote{
    padding: 10px 20px;
    color: #166534;
    background-color: #E5E5E5;
    border-radius: 10px;
    margin: 0 auto;
    width: 50%;
}
.moyenneNote p{
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
}
.moyenneNote span{
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
}
.icon-warning-outline,
.icon-erreur-outline{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #FCA311;
  stroke-width: 2;
}
.icon-erreur-outline{
  stroke: #DC2626;
}
.warning img{
    margin: 0 10px;
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.warning,
.erreur{
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: rgba(252,163,17,.1);
    border: 1px solid #FCA311;
    color: #FCA311;
    opacity: 0;
    transform: translateY(15px);
    animation: warningFadeIn .5s ease forwards;
}
.erreur{
   border: 1px solid #DC2626;
    color: #DC2626; 
}
.secNotesEtudant form .erreur{
    position: absolute;
    top: 100px;
    width: 96vw;
}
.secNotesEtudant form .warning{
    position: absolute;
    top: 100px;
    width: 96vw;
}
/* partie note etudiant */
.secNotesEtudant form label{
    font-weight: 600;
}
.warning p span,
.erreur p span{
    color: #14213D;
}
.secNotesEtudant .erreur span{
    color: #DC2626;
    font-weight: 600;
}
@keyframes warningFadeIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
/* partie notes etudiant */
.cardInfo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    border-radius: 12px;
    padding: 40px;
    background-color: #FFFFFF;
    border: 3px solid #F3F5FA;
    /* width: 60%; */
}
.secAffichage .cadre{
    background-color: #F3F5FA;
    /* background-color: #FFFFFF; */
    width: 40%;
    margin: 0 auto;
    border-radius: 12px;
    padding: 3px;
}
.cardInfo .header{
    display: flex;
    margin-bottom: 10px;
    justify-content: space-around;
    border-bottom: 1px solid #b5ec72;
}
.header .avatar{
    width: 100px;
    height: 100px;
    background-color: #a9b0bd;
    border-radius: 8%;
    padding: 2px;
    margin-right: 20px;
}
.header .avatar img{
    width: 100%;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
}
.header .infos{
    border-radius: 8px;
    padding: 5px 20px;
}
.header .infos p:first-child{
    font-size: 24px;
    width: max-content;
}
.header .infos p{
    font-size: 20px;
    padding: 10px 20px;
    color: #14213D;
    font-weight: 600;
}
.header .infos p span{
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    margin-right: 10px;
    color: #166534;
    background-color: #b5ec72;
    font-weight: 500;
}
.cardInfo .notesTravails{
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-bottom: 1px solid #b5ec72;
    width: 90%;
}
.cardInfo .notesTravails h3{
    width: 100%;
    padding: 10px 0;
    text-align: left;
    color: #14213D;
    border-bottom: 1px solid #b5ec72;
}
.cardInfo .notesTravails ul{
    padding: 10px 0;
    width: 100%;
}
.cardInfo .notesTravails ul li{
    display: flex;
    justify-content: space-around;
    text-align: left;
    padding: 10px 0;
    color: #14213D;
    font-weight: 600;
}
.cardInfo .reussi{
padding: 15px 60px;
width: 100%;
color: #166534;
font-weight: 600;
font-size: 20px;
margin: 10px;
background-color: #F3F5FA;
}
.cardInfo .echec{
padding: 15px 60px;
width: 100%;
color: #DC2626;
font-weight: 600;
font-size: 20px;
margin: 10px;
background-color: #fec5c5;
}
/* fin etat warnong */
/* la page de notes par travaille  */
.champInvalide{
    color: red;
}
 tbody tr{
  opacity: 0;
  transform: translateY(15px);
  animation: rowAppear 0.4s ease forwards;
}

/* délai progressif */
tbody tr:nth-child(1){ animation-delay: 0.1s; }
tbody tr:nth-child(2){ animation-delay: 0.2s; }
tbody tr:nth-child(3){ animation-delay: 0.3s; }
tbody tr:nth-child(4){ animation-delay: 0.4s; }
tbody tr:nth-child(5){ animation-delay: 0.5s; }
tbody tr:nth-child(6){ animation-delay: 0.6s; }
tbody tr:nth-child(7){ animation-delay: 0.7s; }
tbody tr:nth-child(8){ animation-delay: 0.8s; }
tbody tr:nth-child(9){ animation-delay: 0.9s; }
tbody tr:nth-child(10){ animation-delay: 1s; }
tbody tr:nth-child(11){ animation-delay: 1.1s;}

@keyframes rowAppear{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}