/* Réinitialisation des marges et des rembourrages pour tous les éléments */ 

html{
  height:100%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#fs_container_logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 500px) {
  h2 {
    font-size: 1.25rem;
  }
}

#fs_div_logo {
  display:flex;
  align-items: center;
  height: 100%;
  padding: 7px 0;
}

#fs_div_retract_btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

.fa-bars {
  font-size: 13px;
}

#fs-separateur {
  border-bottom: solid 1px #e1e1e1;
  width: 100%;
  margin-bottom: 20px;
}

.fs_logo {
  height: 100%;
  width: auto; 
  cursor: pointer;
}

#fs-logo-mini {
  display: none;
}

@media (max-width: 270px) {
  #fs-logo-mini {
    display: block;
  }
  #fs-logo-computer {
    display: none;
  }
}

body {
  font-family: Helvetica, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  position:relative;
  min-height:100%;
  padding-bottom:6.74rem;
  overflow-x: hidden;
}

.fs_container_off_sidebar {
  margin-left: 70px;
  /*transition: margin-left 0.7s ease;*/
}

.fs_container_off_sidebar.full {
  margin-left: 220px;
  transition: margin-left 0.7s ease;
}

.fs_container_off_sidebar.none {
  margin-left: 0px;
  transition: margin-left 0.7s ease;
}

/* Styles pour les écrans larges (PC) */
.fs_container {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
  }

.fs_container_off_planning {
  margin-top: 25px;
}

#fs-container-planning {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 15px;
}

.fs_container_h1 {
  width: 100%;
  padding-left: 50px;
  padding-right: 5%;
  background-color: #FAFAFB;
}

#fs-container-h1-planning {
  margin-top: 0px;
  padding-top: 20px;
  padding-bottom: 70px;
}

@media (max-width: 500px) {
  #fs-container-h1-planning {
      padding-top: 0;
      padding-bottom: 0;
      background-color: #fff;
  }
}

a {
  color: #316FA2;
  text-decoration: none;
}

a:hover {
  color: #4C8BB7;
}

h1 {
  font-weight: normal;
  color: rgb(40, 40, 40);
  margin: 20px 0;
}

.h1_centered {
  text-align: center;
}

h2, h3 {
  font-weight: normal;
  color: rgb(40, 40, 40);
  margin: 15px 0;
}

.fs_responsive_table h3 {
  font-weight: normal;
  color: #696969;
  flex-basis: 100%;
}

:disabled {
  cursor: not-allowed;
}

/* Style du header / menu de navigation*/
#fs-site-header {
  z-index: 8;
  position: sticky;
  top:0;
  margin-left: 70px;
}

.fs_topnav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #000;
  height: 50px;
  padding: 0 10px;
  background-color: #FAFAFB;
  border-bottom: solid 1px #e1e1e1;
}

.fs_menu {
    padding: 7px;
    margin-left: auto; /* Pousse la liste vers la droite */
    display: flex;
    align-items: center;
}

.fs_menu a {
  display: flex;
  align-items: center;
  color: #000;
}

.fs_username {
  display: flex;
  align-items: center;
}

.fs_sidebar {
  display: flex;
  flex-direction: column; /* Organise les éléments verticalement */
  height: 100%; /* Prend toute la hauteur de la sidebar */
}

/* Styles généraux pour la sidebar */
#fs-site-sidebar, #fs-site-sidebar-mobile {
  position: fixed; /* Position fixe pour rester en place lors du défilement */
  top: 0;
  left: 0;
  height: 100vh; /* Prend toute la hauteur de la fenêtre */
  background: linear-gradient(135deg, #34495e 0%, #4C8BB7 65%); /* #9DCAE1 100%);*/
  padding: 20px 7px 20px;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); /* Ombre pour la profondeur */
  z-index: 8;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#fs-site-sidebar {
  width: 70px;
  transition: width 0.7s ease, margin-left 0.7s ease;
}

@media (max-width: 500px) {
  #fs-site-sidebar {
    display: none;
  }
}

#fs-site-sidebar-mobile {
  width: 100%;
  height: 100dvh;
  box-sizing: border-box;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

#fs-site-sidebar-mobile.show {
  width: 100%;
  transform: scaleX(1);
}

#fs-site-sidebar.full {
  width: 220px; /* Largeur de la sidebar */
}

/* Styles pour le menu de la sidebar */
.fs_sidebar_menu {
  list-style-type: none; /* Supprime les puces de la liste */
  padding: 0; /* Enlève les marges et les remplissages par défaut */
  margin: 0;
}

.fs_menu_top {
  flex-grow: 1; /* Permet à cette section de prendre tout l'espace disponible */
}

.fs_menu_bottom {
  margin-top: auto; /* Pousse cette section vers le bas */
}

.fs_li_clickable {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 10px 16px;
  height: 46px;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
}

#fs-site-sidebar.full .fs_li_clickable, #fs-site-sidebar-mobile .fs_li_clickable {
  justify-content: flex-start;
}

.fs-li-span {
  display: none;
}

#fs-site-sidebar.full .fs-li-span, #fs-site-sidebar-mobile .fs-li-span {
  display: block;
  color: #ecf0f1; /* Couleur du texte des liens */
  text-decoration: none; /* Supprime le soulignement des liens */
  font-size: 16px; /* Taille de la police des liens */
}

.fs_sidebar_menu li a {
  display: flex;
  align-items: center;
}

/* Effet hover pour les liens de la sidebar */
.fs_menu_top li:hover, .fs_menu_top li.active {
  background-color: rgba(76, 138, 183, 0.5); /* Couleur de fond lors du survol */
  color: #ffffff; /* Couleur du texte lors du survol */
  cursor: pointer;
}

.fs_menu_bottom li:hover, .fs_menu_bottom li.active {
  background-color: rgb(56 110 149 / 50%); /* Couleur de fond lors du survol */
  color: #ffffff; /* Couleur du texte lors du survol */
  cursor: pointer;
}

#fs-site-header.full {
  margin-left: 220px;
  transition: margin-left 0.7s ease;
}

@media (max-width: 500px) {
  .fs_container_off_sidebar {
    margin-left: 0;
  }
  #fs-site-header {
    margin-left: 0;
  }
  .fs_username {
      display: none;
  }
  .fs_menu {
    margin-left: 0;
  }
}

.fs_toggle_btn_sidebar, .fs_toggle_menu_mobile {
  cursor: pointer;
  color: white;
  background-color: transparent;
  border: none;
  
}

#fs-site-sidebar.full .fs_sidebar_icon, #fs-site-sidebar-mobile .fs_sidebar_icon {
  margin-right: 10px;
}

#fs-site-sidebar-mobile #fs-hamburger-icon-mobile {
    margin-right: 0;
}

.fs_status-indicator-green { /*Petit rond de connexion*/
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #008000;
  border-radius: 50%;
  margin-right: 5px; /* Ajustez la marge selon votre préférence */
  filter: brightness(1.75); /*Effet brillant*/
  /*text-shadow: 0 0 3vw green; /*Ombre*/
}

.fs_status-indicator-red {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  margin-right: 5px; /* Ajustez la marge selon votre préférence */
  filter: brightness(1.75); /*Effet brillant*/
}


.fs_footer_section{
  position: absolute; 
  right:0;
  left:0;
  bottom:0;
  width: 100%;
  margin-top: 20px;
}

.fs_copyright_section {
  background: #202020;
  padding: 10px 0px;
  text-align:center;
  color:gray;
}

/* Classe Django par défaut */
.errorlist {
  color: red;
}

.fs_tooltip_copied {
  display: inline-block;
  visibility: hidden;
  width: 90px;
  background-color: rgb(40, 40, 40);
  opacity: 0.9;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 2px 0;
  font-weight: 400;
  position: fixed;
  top: 7%;
  left: 50%;
  z-index: 6;
}

.fs_copied_visible {
  visibility: visible;
}

.fa-info-circle {
  color: #316FA2; /* Couleur de l'icône */
  margin-left: 5px; /* Marge à gauche pour l'espacement avec le champ "Mot de passe" */
  cursor: pointer; /* Curseur de la souris change au survol de l'icône */
}

.fa-list {
  font-size: 24px; /* Taille de l'icône */
  color: #afb5bb;
  cursor: pointer;
}

.fs_tooltiptext.fs_copie_effectuee {
  visibility: visible;
}

.fs_tooltip {
  position: relative;
  /*display: inline-block;*/
  float: right;
  padding-right: 10px;
}

.fs_tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgb(40, 40, 40);
  opacity: 0.9;
  color: #fff;
  font-size: 80%;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  left: 110%;
  top: -3px;
}

.fs_tooltiptext_li {
  visibility: hidden;
  position: fixed;
  width: 120px;
  left: 76px;
  background-color: rgb(40, 40, 40);
  opacity: 0.9;
  color: #fff;
  font-size: 80%;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  z-index: 4;
}

.fs_tooltiptext::after, .fs_tooltiptext_li::after { /*flèche*/
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

.fs_tooltip:hover .fs_tooltiptext {
  visibility: visible;
}

.fs_tooltiptext_left {
  visibility: hidden;
  width: 120px;
  background-color: rgb(40, 40, 40);
  opacity: 0.9;
  color: #fff;
  font-size: 80%;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  right: 600%;
  top: -3px;
}

.fs_tooltiptext_left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%; /* flèche à droite du tooltip */
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent black; /* flèche vers la droite */
}

.fs_tooltip:hover .fs_tooltiptext_left {
  visibility: visible;
}

.fs_settings_email_label {
  white-space: nowrap;
}

.fs_settings_email_label .fs_icon {
  margin-left: 10px;
}

.fs_info_block {
  display: flex;
  align-items: center;
  font-size: 85%;
  font-style: italic;
  color: #353535;
}

.fa-sign-out{
  margin-left: 5px;
}

select {
  outline: none;
}

input, textarea {
  outline: none;
  background-color: #f9f9f9;
}

#fs-overlaid-msg, #fs-overlaid-msg-validation, #fs-overlaid-msg-creation {
  display: none;
}

.fs_simple_overlay, #fs-overlaid-msg.show, #fs-overlaid-msg-validation.show,
.fs_loading_overlay, #fs-overlaid-msg-creation.show {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.fs_simple_overlay {
  display: none;
  z-index: 7;
}

body.fs_no_scroll {
  overflow: hidden;
}

#fs-msg-container, #fs-msg-validation, #fs-msg-creation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 500px;
  max-width: 100%;
  margin: 0 10px;
  min-height: 80px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 5px;
  align-items: center;
  background-color: #ffffff;
  color: #474747;
  white-space: pre-line;
}

#fs-msg-container.fs_success {
    border: 1px solid #4caf50;
    background-color: #afffb2;
}

#fs-msg-container.fs_error {
    border: 1px solid #ac3838;
    background-color: #ffb0b0;
}

.fs_wrapper_h2, #fs-container-h1-transfert, .fs_wrapper_h1 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
}  
  
.fs_wrapper_h2 {
  margin: 20px 0;
}

.fs_wrapper_btn {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  margin: 10px 0;
}

@media (max-width: 500px) {
  #fs-container-h1-transfert, .fs_wrapper_h1 {
    justify-content: center;
    padding: 10px 0;
    gap: 8px;
  }
}

#fs-container-h1-transfert h1, #fs-container-h1_dashboard h1  {
  margin: 10px 0;
}

#fs-container-h1-transfert, #fs-container-h1_dashboard {
  margin: 10px 0;
}

.fs_wrapper_h2 h2, #fs-container-h1-transfert h1, .fs_wrapper_h1 h1 {
  margin: 0 12px;
}


.fs_info_card {
    background: #FAFAFB;
    border: 1px solid #f1f1f1;
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin-bottom: 30px;
}

.fs_info_card h3 {
    margin-top:0;
}

.fs_info_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fs_info_list li {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    position: relative;
    color: #374151;
}

.fs_info_border_kid {
  padding-left: 1rem;
}


.fs_info_container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.fs_info_border {
    display: flex;
    justify-content: space-between; /* label à gauche, valeur à droite */
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #374151;
}

/* Dernière ligne sans bordure */
.fs_info_border:last-child {
    border-bottom: none;
}

/* Label (partie avant les :) */
.fs_info_border::before {
    content: attr(data-label); /* injecte le label depuis l'attribut */
    font-weight: 600;
    color: #111827;
    margin-right: 1rem;
    flex: 1;
}

/* Valeur */
.fs_info_border span {
    flex: 2;
    text-align: right;
    color: #4b5563;
}

/* Responsive mobile */
@media (max-width: 500px) {
    .fs_info_border {
        flex-direction: column;
        align-items: flex-start;
    }
    .fs_info_border span {
        text-align: left;
        margin-top: 0.25rem;
    }
}

.fs_centered_div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.fs_centered_div .fs_btn_premium_upgrade {
  margin-bottom: 30px;
}

.fs_info_title {
  border-bottom: solid 1px #e1e1e1;
  padding-bottom: 8px;
  margin: 30px 0;
}

.fs_info_creation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: center;
}

.fs_export_item select, .fs_export_item input {
    padding: 10px 12px;
    margin-top: 0.5rem;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #444444;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}

.fs_info_creation_container, .fs_info_settings_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 15px;
    overflow-x: auto;
    overflow-y: visible;
}

.fs_info_creation_container {
  max-width: 350px;
}

.fs_info_creation_delais {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.5rem;
    max-width: 100%;
}

.fs_info_creation_delais .fs_duration_div, .fs_settings_email_div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.fs_info_creation_delais .duree {
  padding: 10px 12px;
  width: 100%;
  min-width: 72px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #444444;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.fs_flux_label {
  white-space: nowrap;
}
 
.fs-switch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fs_loading_overlay {
    display: none;
    z-index: 11;
}

/* Affichage du spinner */
.fs_spinner {
    border: 8px solid #f3f3f3; /* gris clair */
    border-top: 8px solid #4bc0c0; /* vert animé */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: fs-spin 1s linear infinite;
}

/* Animation rotation */
@keyframes fs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.countdown-circle {
  transform: rotate(-90deg);
}

#countdown-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    inset: 0;
}