@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=devanagari,latin-ext');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');


/* PHASE TEST */

#id_div_message_phase_test {
  margin-top:8vh;
  height: 8vh;
  display: block;
  text-align: center;
  margin-bottom: 0;
  padding-inline: 1rem;
  padding-top:.2rem;
  padding-bottom:.2rem;
}

#id_div_message_phase_test > h6 {
  margin-bottom: 0.1rem;
}

#id_div_message_phase_test > p {

  font-style: italic;
  font-size: .8rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* # Général
================================================== */

body {
  font-family: 'Poppins', sans-serif;
}

::selection {
  color: #fff;
  background-color: #b3e5fc;
}

::-moz-selection {
  color: #fff;
  background-color: #b3e5fc;
}

.container_listes {
  margin-top: 8vh;
  min-height: 55vh;
}

.custom-fixed-alert {
  top: 10vh;
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
}

.btn-ajouter {

  border: 2px solid #add8e6;
  box-shadow: none;
  margin-right: 1vw;
  margin-left: auto;
  padding-inline: .5rem;
  padding-top: .4rem;
  padding-bottom: .4rem;

}

.btn-ajouter:hover {
  background-color: #add8e6;
  border-color: var(--bs-btn-hover-border-color);
}

/* #Navigation
================================================== */

.start-header {
  opacity: 1;
  transform: translateY(0);
  padding: 20px 0;
  box-shadow: 0 10px 30px 0 rgba(138, 155, 165, 0.15);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.start-header.scroll-on {
  box-shadow: 0 5px 10px 0 rgba(138, 155, 165, 0.15);
  padding: 10px 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.start-header.scroll-on .navbar-brand img {
  height: 50px;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.navigation-wrap {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.navbar {
  padding: 0;
}

.navbar-brand img {
  height: 65px;
  width: auto;
  display: block;
  filter: brightness(100%);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.navbar-toggler {
  float: right;
  border: none;
  padding-right: 0;
}

.navbar-toggler:active,
.navbar-toggler:focus {
  outline: none;
}

.navbar-light .navbar-toggler-icon {
  width: 24px;
  height: 17px;
  background-image: none;
  position: relative;
  border-bottom: 1px solid #000;
  transition: all 300ms linear;
}

.navbar-light .navbar-toggler-icon:after,
.navbar-light .navbar-toggler-icon:before {
  width: 24px;
  position: absolute;
  height: 1px;
  background-color: #000;
  top: 0;
  left: 0;
  content: '';
  z-index: 2;
  transition: all 300ms linear;
}

.navbar-light .navbar-toggler-icon:after {
  top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: translateY(8px) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  border-color: transparent;
}

.nav-link {
  transition: all 200ms linear;
}

.nav-item:hover .nav-link {
  color: #b3e5fc !important;
}

.nav-item.active .nav-link {
  color: #009de0 !important;
}

.nav-link {
  position: relative;
  padding: 5px 0 !important;
  display: inline-block;
}

.nav-item:after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
  background-color: #b3e5fc;
  opacity: 0;
  transition: all 200ms linear;
}

.nav-item:hover:after {
  bottom: 0;
  opacity: 1;
}

.nav-item.active:hover:after {
  opacity: 0;
}

.nav-item {
  position: relative;
  transition: all 200ms linear;
}

/* Page Accueil */

/* Image Accueil : Styles pour la première section avec image en arrière-plan */
.bg-image-section {
  background-image: url("../images/Treompan_EGEL_2006_peche_ligne.JPG");

  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh;
  position: relative;
  z-index: 1;
  color: #fff;
}

#id_div_titre_accueil {

  padding: 1%;
  text-align: center;
  margin-bottom: 2%;
}

#id_div_titre_accueil h1 { 
  color: white;
  font-size: 4rem;
  /* font-weight: bold; */
  text-shadow: .01rem .01rem .02rem #949596;
}

#id_div_titre_accueil p { 
  text-shadow: .05rem .05rem .1rem #949596;
}

#id_div_introduction_gauche,
#id_div_introduction_droite {
  background-color: rgb(248, 249, 250, 0.2);
  padding: 1%;
  text-align: justify;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

#id_div_introduction_gauche {
  margin-left: 2%;
  float: left;
  width: 30%;
}

#id_div_introduction_droite {
  margin-right: 2%;
  float: right;
  width: 35%;
  text-align: left;
}

#id_div_introduction_droite h6 {
  font-size: 1.2rem;
}

#id_div_introduction_droite p {
  font-size: 1rem;
}

#id_div_introduction_droite ul {
  font-size: 1.1rem;
}

/* Pages Mémoires */

#id_div_infos_memoire {
  margin-inline: 1vw;
}

#id_div_total {
  margin-inline: .7vw;
  width: 50%;
  float: left;
}

#id_div_total>label {
  width: 100%;
  text-align: left;
}

#id_p_total {
  display: inline;
}

/* divs confirmations suppression Pages Utilisateurs, Mémoires et mots-clés */

#id_div_confirmationSuppressionUtilisateur,
#id_div_confirmationSuppressionMemoire,
#id_div_confirmationSuppressionMemoire_page_supprimer,
id_div_confirmationSuppressionMotCle {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#id_div_confirmationSuppressionMemoire_page_supprimer {
  display: block;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#id_p_confirmationModalMessage {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.div_boutons_confirmation_suppression {
  display: block;
}

#id_btn_confirm_SuppressionUtilisateur,
#id_btn_confirm_SuppressionMemoire,
#id_btn_confirm_SuppressionMotCle {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #dc3545;
  color: white;
  float: right;
  margin-right: 1vw;
}

#id_btn_cancel_SuppressionUtilisateur,
#id_btn_cancel_SuppressionMemoire,
#id_btn_cancel_SuppressionMotCle {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #6c757d;
  color: white;
  float: left;
  margin-left: 1vw;
}

/* #Primary style
================================================== */

.bg-light {
  background-color: #fff !important;
  transition: all 200ms linear;
}

.section {
  position: relative;
  width: 100%;
  display: block;
}

.full-height {
  height: 100vh;
}

.over-hide {
  overflow: hidden;
}

.absolute-center {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin-top: 40px;
  transform: translateY(-50%);
  z-index: 20;
}

h1,
.act_h2 {
  font-size: 25px;
  margin-bottom: 50px;
  font-family: 'roboto', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #4974c4;
  padding-bottom: 0rem !important;
  margin-bottom: 0rem !important;
}

p {
  padding-top: 10px;
  opacity: 1;
  transform: translate(0);
  transition: all 300ms linear;
  transition-delay: 1700ms;
}


.footer-section p {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0ms !important;
}

h1 span {
  display: inline-block;
  transition: all 300ms linear;
  opacity: 1;
  transform: translate(0);
}

body.hero-anime h1 span:nth-child(1) {
  opacity: 0;
  transform: translateY(-20px);
}

body.hero-anime h1 span:nth-child(2) {
  opacity: 0;
  transform: translateY(-30px);
}

body.hero-anime h1 span:nth-child(3) {
  opacity: 0;
  transform: translateY(-50px);
}

body.hero-anime h1 span:nth-child(4) {
  opacity: 0;
  transform: translateY(-10px);
}

body.hero-anime h1 span:nth-child(5) {
  opacity: 0;
  transform: translateY(-50px);
}

body.hero-anime h1 span:nth-child(6) {
  opacity: 0;
  transform: translateY(-20px);
}

body.hero-anime h1 span:nth-child(7) {
  opacity: 0;
  transform: translateY(-40px);
}

body.hero-anime h1 span:nth-child(8) {
  opacity: 0;
  transform: translateY(-10px);
}

body.hero-anime h1 span:nth-child(9) {
  opacity: 0;
  transform: translateY(-30px);
}

body.hero-anime h1 span:nth-child(10) {
  opacity: 0;
  transform: translateY(-20px);
}

h1 span:nth-child(1) {
  transition-delay: 1000ms;
}

h1 span:nth-child(2) {
  transition-delay: 700ms;
}

h1 span:nth-child(3) {
  transition-delay: 900ms;
}

h1 span:nth-child(4) {
  transition-delay: 800ms;
}

h1 span:nth-child(5) {
  transition-delay: 1000ms;
}

h1 span:nth-child(6) {
  transition-delay: 700ms;
}

h1 span:nth-child(7) {
  transition-delay: 900ms;
}

h1 span:nth-child(8) {
  transition-delay: 800ms;
}

h1 span:nth-child(9) {
  transition-delay: 600ms;
}

h1 span:nth-child(10) {
  transition-delay: 700ms;
}

body.hero-anime h1 span:nth-child(11) {
  opacity: 0;
  transform: translateY(30px);
}

body.hero-anime h1 span:nth-child(12) {
  opacity: 0;
  transform: translateY(50px);
}

body.hero-anime h1 span:nth-child(13) {
  opacity: 0;
  transform: translateY(20px);
}

body.hero-anime h1 span:nth-child(14) {
  opacity: 0;
  transform: translateY(30px);
}

body.hero-anime h1 span:nth-child(15) {
  opacity: 0;
  transform: translateY(50px);
}

h1 span:nth-child(11) {
  transition-delay: 1300ms;
}

h1 span:nth-child(12) {
  transition-delay: 1500ms;
}

h1 span:nth-child(13) {
  transition-delay: 1400ms;
}

h1 span:nth-child(14) {
  transition-delay: 1200ms;
}

h1 span:nth-child(15) {
  transition-delay: 1450ms;
}

#switch,
#circle {
  cursor: pointer;
  -webkit-transition: all 300ms linear;
  transition: all 300ms linear;
}

#switch {
  width: 60px;
  height: 8px;
  border: 2px solid #b3e5fc;
  border-radius: 27px;
  background: #000;
  position: relative;
  display: block;
  margin: 0 auto;
  text-align: center;
  opacity: 1;
  transform: translate(0);
  transition: all 300ms linear;
  transition-delay: 1900ms;
}

body.hero-anime #switch {
  opacity: 0;
  transform: translateY(40px);
  transition-delay: 1900ms;
}

#circle {
  position: absolute;
  top: -11px;
  left: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
}

.switched {
  border-color: #000 !important;
  background: #b3e5fc !important;
}

.switched #circle {
  left: 43px;
  box-shadow: 0 4px 4px rgba(26, 53, 71, 0.25), 0 0 0 1px rgba(26, 53, 71, 0.07);
  background: #fff;
}

.nav-item .dropdown-menu {
  transform: translate3d(0, 10px, 0);
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  display: block;
  padding: 0;
  margin: 0;
  transition: all 200ms linear;
}

.nav-item.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  max-height: 999px;
  transform: translate3d(0, 0px, 0);
}

.dropdown-menu {
  padding: 10px !important;
  margin: 0;
  font-size: 13px;
  letter-spacing: 1px;
  color: #212121;
  background-color: #fcfaff;
  border: none;
  border-radius: 3px;
  box-shadow: 0 5px 10px 0 rgba(138, 155, 165, 0.15);
  transition: all 200ms linear;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-item {
  padding: 3px 15px;
  color: #44a1db;
  border-radius: 2px;
  transition: all 200ms linear;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff !important;
  background-color: #b3e5fc;
}

body.dark {
  color: #fff;
  background-color: #1f2029;
}

body.dark .navbar-brand img {
  filter: brightness(100%);
}

body.dark h1 {
  color: #fff;
}

body.dark h1 span {
  transition-delay: 0ms !important;
}

body.dark p {
  color: #fff;
  transition-delay: 0ms !important;
}

body.dark .bg-light {
  background-color: #14151a !important;
}

body.dark .start-header {
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
}

body.dark .start-header.scroll-on {
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);
}

body.dark .nav-link {
  color: #fff !important;
}

body.dark .nav-item.active .nav-link {
  color: #b3e5fc !important;
}

body.dark .dropdown-menu {
  color: #fff;
  background-color: #1f2029;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.25);
}

body.dark .dropdown-item {
  color: #fff;
}

body.dark .navbar-light .navbar-toggler-icon {
  border-bottom: 1px solid #fff;
}

body.dark .navbar-light .navbar-toggler-icon:after,
body.dark .navbar-light .navbar-toggler-icon:before {
  background-color: #fff;
}

body.dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  border-color: transparent;
}

/*  ------------- FORMULAIRE AUTEUR ------------------------------- */

.floating-label {
  position: relative;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
  width: 100%;
  padding: 1rem 0.65rem 0.2rem 0.65rem;
  border: 1px solid #ced4da;
  border-radius: 1rem;
  background-color: #fff;
  font-size: 0.9rem;
  height: 2.7rem;
  line-height: 1.1rem;
  box-sizing: border-box;
}

.floating-label label {
  position: absolute;
  top: 0.8rem;
  /* ← plus haut */
  left: 0.65rem;
  color: #888;
  background: white;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  transition: 0.2s ease all;
  pointer-events: none;
}

/* Le label remonte quand le champ est rempli ou focus */
.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label,
.floating-label textarea:focus+label,
.floating-label textarea:not(:placeholder-shown)+label {
  top: -0.5rem;
  left: 0.6rem;
  font-size: 0.7rem;
  color: #007bff;
}

.floating-label select:focus+label,
.floating-label select:not(:placeholder-shown)+label {
  top: -0.1rem;
  left: 0.6rem;
  font-size: 0.7rem;
  color: #007bff;

}

/* Uniformiser la couleur de bordure bleue au focus */
.floating-label input:focus,
.floating-label textarea:focus,
.floating-label select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
  /* Optionnel pour effet bleu clair */
  outline: none;
}

/* Quand le champ est focus ou rempli */
select.filled+.label-type,
select:focus+.label-type {
  top: 0.8rem !important;
  /* position remontée */
  font-size: 0.7rem;
  color: #007bff;
}

/* Quand le select est focus ou rempli */
select.filled+.label-role,
select:focus+.label-role {
  top: 0.8rem !important;
  /* remontée identique */
  left: 0.65rem;
  /* aligne bien à gauche */
  font-size: 0.7rem;
  color: #007bff;
}

/*  -------------------SUITE ---------------------- */

/* Affichage de l'icône et du message Bootstrap-like */
.was-validated .form-control:invalid~.invalid-feedback {
  display: block;
}

.form-group .invalid-feedback {
  text-align: left;
  margin-top: -0.25rem;
  font-size: 12.8px;
}

/* Supprime les styles visuels et icônes natives du navigateur */
/* Firefox */
input:-moz-ui-invalid,
textarea:-moz-ui-invalid,
select:-moz-ui-invalid {
  box-shadow: none !important;
  outline: none !important;
}

/* Supprimer les bulles de validation WebKit */
input::-webkit-validation-bubble-message {
  display: none !important;
}

/*  -------------------- SUITE --------------------- */

/* Supprime les icônes d’erreur visuelles dans les champs - WebKit */
input::-webkit-validation-bubble-message,
input::-webkit-inner-spin-button,
input::-webkit-calendar-picker-indicator,
input::-webkit-clear-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* Supprime la bulle de validation dans Chrome */
input::-webkit-validation-bubble {
  display: none !important;
}

/*  -------------------- SUITE --------------------- */

/* Appliquer à tous les champs de formulaire avec .form-control  : couleur des bordures */
.form-control {
  border: 2px solid #add8e6;
  box-shadow: none;
}

/* Bordure bleue aussi en focus */
.form-control:focus {
  border-color: #87cefa;
  /* un bleu un peu plus vif */
  box-shadow: 0 0 0 0.2rem rgba(173, 216, 230, 0.25);
}

h3 {
  color: #5c6bc0;
}

/* Bouton Confirmer : fond blanc, texte vert clair, bords arrondis */
.btn-confirm {
  background-color: white;
  color: #28a745;
  border: 1px solid #28a745;
  border-radius: 50rem;
  /* équivalent de Bootstrap 'rounded-pill' */
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-confirm:hover {
  background-color: #28a745;
  color: white;
}

/* Bouton Annuler : fond blanc, texte rouge, bords arrondis */
.btn-cancel {
  background-color: white;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 50rem;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background-color: #dc3545;
  color: white;
}

.form-control.filled {
  border-color: #87cefa !important;
  box-shadow: 0 0 0 0.2rem rgba(173, 216, 230, 0.25) !important;
}

.form-control.is-invalid {
  border-color: #dc3545 !important;
  /* rouge Bootstrap */
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/*****************************  Tableau (Liste) *****************************/
/* Supprimer toutes les bordures */
th,
td {
  border: none !important;
  border-bottom: 1px solid #dee2e6 !important;
  /* garder seulement la bordure du bas */
}

/* Supprimer les bordures autour du tableau */
.table {
  border-collapse: collapse !important;
  border: none !important;
}

/* Couleur du texte des en-têtes */
thead th {
  color: #999999;

}

table th {
  font-weight: normal !important;
}

/*   masuqe les fleches des entetes */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc:before {
  display: none !important;
}

/*  fixe la taille des colonnes */
.fixed-col {
  max-width: 150px;
  /* Ajuste selon tes besoins */
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-col {
  max-width: 80px;
  width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pour éviter que Bootstrap n’écrase le style */
td.fixed-col,
th.fixed-col {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

th.th-num-etudiant {
  white-space: nowrap;
}

#topBar #customSearchContainer {
  min-width: 200px;
  max-width: 400px;
}

#topBar #customLengthContainer select {
  width: auto;
}

/* champ rechercher ... */
div.dataTables_wrapper div.dataTables_filter input {
  width: 0%;
}

/* Largeur normale */
.search-expand {
  width: 160px !important;
  transition: width 0.3s ease;
}

/* Largeur agrandie quand focus OU si contenu présent (via classe JS) */
.search-expand:focus,
.search-expand.expanded {
  width: 280px !important;
}

/********** footer *******/

.footer-section {
  position: relative;
  background-color: #152032 !important;
  background-size: cover;
  background-position: center;
  margin-top: 1vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* teinte noire semi-transparente */
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-links {
  color: white;
  min-width: 200px;
}

.footer-links p {
  padding-top: 0;
  margin-top: 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.logo-container img {
  filter: brightness(1.1);
  transition: transform 0.3s;
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* Réduction manuelle de largeur */
th.small-col,
td.small-col {
  width: 1% !important;
  white-space: nowrap;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  text-align: center;
}

/******** logo IUEM *******/

/* Hauteur globale */
.navigation-wrap {
  height: 8vh;
  transition: height 0.3s ease;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

/* Réduction de la navbar au scroll */
.navigation-wrap.scroll-on {
  height: 50px;
}

/* Forcer les enfants à occuper 100% de la hauteur */
.navigation-wrap .container,
.navigation-wrap .row,
.navigation-wrap .col-12 {
  height: 100%;
}

/* Le navbar en lui-même : espace entre logo et menu */
.navigation-wrap .navbar {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ⚠️ Pousse le menu à droite */
}

/* Le logo à gauche qui suit la hauteur */
.logo-iuem {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* S'assurer que le menu est bien aligné à droite */
.navbar-nav {
  align-items: center;
}


/* Style des liens de navigation */
.navbar-nav .nav-link {
  color: #44a1db !important;
  font-family: 'roboto', Helvetica, Arial, sans-serif;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 17px;
}

/* -------- Footer Responsive Fix -------- */
.footer-section {
  /* Remplace height fixe par auto + padding symétrique */
  height: auto !important;
  padding: 2rem 0 !important;
  overflow: visible !important;
}

.footer-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

.footer-logo-ISblue {
  max-width: 300px;
}

.footer-logo-ird {
  max-width: 210px;
}

/* Effet au survol optionnel */
.footer-logo:hover,
.footer-logo-isblue:hover {
  transform: scale(1.05);
}

/* Page inscription */

#password-requirements,
#confirmation-check {
  /* position: absolute; 
  z-index: 2000;  */
  background: #fff; 
  border: 1px solid #ced4da; 
  border-radius: 10px; 
  padding: 10px 15px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
  width: 300px;
}

/********* formulaire ajouter memoire : champ select parcours, année soutenance, type mémoire ********/


.errorlist {
    background-color: white;
    color: #dc3545;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

.errorlist p {
    font-weight: bold;
}

/* champ mot clef */

.mots_cles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 4px;
}

.keyword-tag {
  background-color: #17a2b8;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

.keyword-tag .remove {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}


.titre-principal {
  font-size: 25px;
}

/* Faire remonter le label pour les selects si le champ est rempli */
select.filled+label,
select:focus+label {
  transform: translateY(-20px);
  font-size: 0.85rem;
  opacity: 1;
}

/* Évite que le label chevauche la valeur */
select+label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  background-color: white;
  padding: 0 4px;
  pointer-events: none;
}

.floating-label select+label {
  top: 1.5rem;
}

/* Quand le select est en focus ou qu'il a une valeur */
.floating-label select.filled+.label-annee-soutenance,
.floating-label select:focus+.label-annee-soutenance,
.floating-label select.filled+.label-type,
.floating-label select:focus+.label-type,
.floating-label select.filled+.label-parcours,
.floating-label select:focus+.label-parcours,
.floating-label select.filled+.label-role,
.floating-label select:focus+.label-role {
  top: 0.7rem !important;
  font-size: 0.7rem;
  color: #007bff;
}

.memoire-auteur-form {

  background: rgba(134, 214, 239, 0.3);
}

.memoire-structure-form {

  background: rgba(242, 237, 242, 0.9);
}

.memoire-memoire-form {

  background: rgba(216, 244, 159, 0.9);
}

.memoire-envoyer-form {

  background: rgba(197, 199, 193, 0.9);
}

h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.rounded-top-large {
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
}

.rounded-bottom-large {
  border-bottom-left-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
}

/* Boutton active utilisateur */
/* Bouton Activer */
.toggle-status-btn,
.toggle-edit-btn,
.toggle-delete-btn,
.toggle-disable-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: white;
}

/* Activer (vert) */
.toggle-status-btn {
  border: 1px solid #28a745;
  color: #28a745;
}

.toggle-status-btn:hover {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

/* Désactiver (orange) */
.toggle-disable-btn {
  background-color: #fd7e14;
  color: white;
  border: 1px solid #fd7e14;
}

.toggle-disable-btn:hover {
  background-color: white;
  color: #fd7e14;
  border-color: #fd7e14;
}

/* Modifier (orange) */
.toggle-edit-btn {
  border: 1px solid #ae145e;
  color: #ae145e;
}

.toggle-edit-btn:hover {
  background-color: #ae145e;
  color: white;
  border-color: #ae145e;
}

/* Supprimer (gris) */
.toggle-delete-btn {
  border: 1px solid #6c757d;
  color: #6c757d;
}

.toggle-delete-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.toggle-download-btn {
  border: 1px solid #1E90FF;
  /* Bleu étoile */
  color: #1E90FF;
  border-radius: 50px;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-download-btn:hover {
  background-color: #1E90FF;
  color: white;
  border-color: #1E90FF;
}

.logo-container img {
  object-fit: contain;
  vertical-align: middle;
}

/*======= fade animation ================================================== */

.form-group {
  margin-bottom: 0rem;
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-1000px, 0, 0);
    animation-timing-function: ease-out;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.bounceInLeft {
  animation-name: bounceInLeft;
  animation-duration: 1.2s;
  animation-fill-mode: both;
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translate3d(1000px, 0, 0);
    animation-timing-function: ease-out;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.bounceInRight {
  animation-name: bounceInRight;
  animation-duration: 1.2s;
  animation-fill-mode: both;
}

@keyframes bounceInUpp {
  from {
    opacity: 0;
    transform: translate3d(0, 1000px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.bounceInUpp {
  animation-name: bounceInUpp;
  animation-duration: 1.2s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  /* ou linear pour aucune courbe */
}


@keyframes bounceInUp {

  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }

  75% {
    transform: translate3d(0, 10px, 0);
  }

  90% {
    transform: translate3d(0, -5px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.bounceInUp {
  opacity: 0;
  transform: translateY(50px);
  /* petit décalage suffisant */
  transition: all 0.5s ease-out;
}

.bounceInUp.visible {
  opacity: 1;
  transform: translateY(0);
}

/* anime */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
  /* tu peux ajuster ce délai */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
}

/* anime */
textarea.textarea-large {
  min-height: 250px;
  resize: vertical;
  /* permet à l’utilisateur de redimensionner verticalement */
  width: 100%;
}

.datatable-length-container {
  margin-bottom: 1rem;
}

.dataTables_length select {
  border: none !important;
  border-bottom: 1px solid #6c757d !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding-right: 0;
  font-weight: normal;
  font-size: 0.9rem;
}

.text-left-force {
  text-align: left !important;
}

.form-textbox {
  position: relative;
  margin-bottom: 1.5em;
}

.form-textbox-input {
  width: 100%;
  padding: 12px 12px 12px 0;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  transition: border-color 0.2s;
}

.form-textbox-input:focus {
  border-bottom: 2px solid #0071e3;
}

.form-textbox-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 16px;
  color: #888;
  pointer-events: none;
  transition: 0.2s;
}

.form-textbox-input:focus+.form-textbox-label,
.form-textbox-input:not(:placeholder-shown)+.form-textbox-label {
  font-size: 12px;
  top: -8px;
  color: #0071e3;
}

.is-error .form-textbox-input {
  border-bottom: 2px solid #d00;
}

.is-error .form-message {
  color: #d00;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

body {
  min-width: 350px;
}

@media (max-width: 1220px) {
  .label-annee-soutenance {
    font-size: 0.90rem;
  }
}

@media (max-width: 1110px) {
  .label-annee-soutenance {
    font-size: 0.80rem;
  }
}

@media (max-width: 1000px) {
  .label-annee-soutenance {
    font-size: 0.70rem;
  }

  .label-type {
    font-size: 0.85rem;
  }
}

@media (max-width: 860px) {
  .label-annee-soutenance {
    font-size: 0.60rem;
  }

  .label-type {
    font-size: 0.75rem;
  }
}

@media (max-width: 766px) {
  .label-annee-soutenance {
    font-size: 1rem;
  }

  .label-type {
    font-size: 1rem;
  }
}

table.table td {
  font-size: 15px;
  padding-top: 0.40rem;
  /* ≈ 4px */
  padding-bottom: 0.40rem;
  padding-right: 0.40rem;
}

table th {
  color: darkblue !important;
  text-align: left !important;
  font-size: 16px !important;
  padding-right: 0.40rem !important;

}

/* Ligne sur 2 */
table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #eaf3fc;
}

#memoiresTable th,
#memoiresTable td {
  width: auto !important;
}

.memoire-envoyer-form {
  position: relative;
  z-index: 1;
}

/* Auto-complete mot-cle dans formulaire */
.autocomplete-liste {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999 !important;
  border-radius: 0.375rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding-left: 0;
  margin: 0;

  /* Fade-in effect */
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  /* évite les clics quand caché */
}

.autocomplete-liste.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.autocomplete-liste.d-none {
  display: none !important;
}

/* Container des mots-clés */
#mots-cles-container {
  width: 100%;
  z-index: 10;
  position: relative;
}

/* Bloc mémoire contenant le champ */
.memoire-memoire-form {
  position: relative;
  z-index: 5;
}

.autocomplete-item {
  padding: 0.5rem 1rem;
  width: 100%;
  display: block;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
  background-color: #1c76c4;
  color: #000;
}

.autocomplete-liste,
.autocomplete-item {
  box-sizing: border-box;
}


.form-control-sm {
  font-size: 12px !important;
}

.dataTables_wrapper .dataTables_length select {
  font-size: 12px !important;
}

table.table td {
  font-size: 14px !important;
}

#actualitesTable td {
  min-height: 60px;
  vertical-align: middle;
  /* optionnel : pour centrer le contenu verticalement */
  padding-top: 10px;
  padding-bottom: 10px;
}

.dataTables_info {
  font-size: 13px;
  /* ou ce que tu veux */
}

body {
  min-width: 680px;
}

/*======= #Media ================================================== */

@media (max-width: 767px) {
  h1 {
    font-size: 38px;
  }

  .nav-item:after {
    display: none;
  }

  .nav-item::before {
    position: absolute;
    display: block;
    top: 15px;
    left: 0;
    width: 11px;
    height: 1px;
    content: "";
    border: none;
    background-color: #000;
  }

  .dropdown-toggle::after {
    position: absolute;
    display: block;
    top: 10px;
    left: -23px;
    width: 1px;
    height: 11px;
    content: "";
    border: none;
    background-color: #000;
    transition: all 200ms linear;
  }

  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
    opacity: 0;
  }

  .dropdown-menu {
    padding: 0 !important;
    background-color: transparent;
    box-shadow: none;
    transition: all 200ms linear;
  }

  .dropdown-toggle[aria-expanded="true"]+.dropdown-menu {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
  }

  body.dark .nav-item::before {
    background-color: #fff;
  }

  body.dark .dropdown-toggle::after {
    background-color: #fff;
  }

  body.dark .dropdown-menu {
    background-color: transparent;
    box-shadow: none;
  }
}

/* #Link to page
================================================== */

.logo {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: block;
  z-index: 100;
  transition: all 250ms linear;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(10%);
  transition: all 250ms linear;
}

body.dark .logo img {
  filter: brightness(100%);
}

/* Styles pour la deuxième section avec fond blanc */
.bg-white {
  background-color: #fff;
  padding: 30px;
}

/* Ajustements supplémentaires pour les titres et paragraphes */
h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

p {
  font-size: 14px;
  line-height: 1.6;
}

/* memoires_app/static/css/styles.css */
.card {
  margin-top: 50px;
  border-radius: 10px;
}

.card-header {
  border-radius: 10px 10px 0 0;
}

.card-body {
  padding: 20px;
}

.form-label {
  font-weight: bold;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875em;
}

.logo-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.lien-souligne {
  text-decoration: underline !important;
}

.nav-link.active {
  color: #9bceee !important;
  font-weight: bold;
  border-bottom: 2px solid #9bceee;
}

.btn-inverse-secondary {
  background-color: #6c757d;
  color: white;
  border: 1px solid #6c757d;
  transition: all 0.3s ease;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.text-large {
  font-size: 1rem;
}

.btn-inverse-secondary:hover {
  background-color: transparent;
  color: #6c757d;
}

.btn-inverse-primary {
  background-color: #0d6efd;
  color: white;
  border: 1px solid #0d6efd;
  transition: all 0.3s ease;
}

.btn-inverse-primary:hover {
  background-color: transparent;
  color: #0d6efd;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-line {
  flex-grow: 1;
  height: 1px;
  background-color: #000;
  border: none;
}

.section-title-wrapper h4 {
  margin: 0;
  white-space: nowrap;
}

.dataTables_length select {
  width: 50px !important;
}

.dataTables_filter {
  padding-left: 1rem;
}

table.dataTable.table-striped>tbody>tr.odd>* {
  box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-stripe), 0.05);
}

/* Annule le box-shadow imposé par DataTables */
table.dataTable.table-striped>tbody>tr.odd>* {
  box-shadow: none !important;
  background-color: #e6f0ff !important;
}

.section-line {
  border: none;
  height: 0.1vh;
  /* Augmente l'épaisseur */
  background-color: #b2a6a6;
  /* Couleur plus visible (bleu Bootstrap) */
  margin: 1rem auto;
  opacity: 0.9;
  /* Légèrement transparent si tu veux un effet doux */
  border-radius: 5px;
  /* Coins arrondis pour une touche moderne */
}

.bouton-pdf {
  font-size: 1rem;
}



.separator {
  font-size: 1.2rem;
  color: #ccc;
}

.mots_cles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.keyword-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: #d4edda;
  /* vert clair */
  color: #155724;
  /* vert foncé pour le texte */
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.keyword-badge:hover {
  background-color: #e5eb38;
  text-decoration: none;
}

.footer-logo {
  transition: transform 0.3s ease, margin 0.3s ease;
}

.logo-cnrs {
  height: 110px !important;
  margin-left: 60px !important;

}

.logo-ird {
  height: 120px !important;

}

@media (min-width: 992px) {
  .footer-logo {
    margin: 0 60px !important;
  }

  .logo-cnrs {
    margin-left: 80px !important;
  }
}

@media (max-width: 767px) {
  .logo-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin: 10px 0 !important;
    max-width: 300px;
  }

  .logo-cnrs {
    height: 240px !important;
    margin-left: 0px !important;
    margin-top: 45px !important;
  }

  .logo-ird {
    height: 210px !important;
  }

  .logo-ubo {
    height: 90px !important;
    margin-top: 30px !important;
  }

}

th.col-etat,
td.col-etat,
th.col-action,
td.col-action,
th.col-action-autre,
td.col-action-autre,
th.col-etat-mem,
td.col-etat-mem,
th.col-action-mem,
td.col-action-mem,
th.col-action-autre-mem,
td.col-action-autre-mem {
  min-width: 8vw;
  ;
  max-width: 10vw;
}

/* Apparition : slide vers le haut + fade */
.slide-fade-in {
  transform: translateY(-20px);
  opacity: 0;
  animation: slideFadeIn 0.5s ease-out forwards;
}

@keyframes slideFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Fermeture : slide vers le bas + fade */
.slide-fade-out {
  animation: slideFadeOut 0.5s ease-in forwards;
}

@keyframes slideFadeOut {
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.info-pagination-row {
  flex-wrap: wrap;
}

.datatable-total-info {
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination-centered {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.dataTables_info {
  font-size: 14px;
  padding-top: 0em !important;
}

.memoire-section {
  background: #f7fafd;
  border-left: 4px solid #007bff;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 25px auto;
  max-width: 850px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.memoire-section h6 {
  font-weight: bold;
  color: #0056b3;
  margin-bottom: 8px;
}

.memoire-section p {
  font-style: italic;
  margin-bottom: 0;
  color: #333;
}

/* Variante pour les sections en anglais */
.memoire-section.en {
  border-left-color: #28a745;
}

.memoire-section small {
  color: #777;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}