body {
  margin: 0px;
  font-family: 'Times New Roman', serif;
  width: 100%;
  height: 100%;
  overflow: auto;

  background-image: url('bg2.jpg'); 
  background-size: cover;    
  background-position: center; 
  background-attachment: fixed; 
  background-repeat: no-repeat; 
}

.navbar {
  padding: 0.5rem 1rem;
  height: 60px;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e7e7e7;
}

/* Marges pour les éléments de navigation */ 
.nav-item {
  margin: 0 10px;
}

/* Dropdown pour changer la langue */
#lang-menu {
  width: 120px;
}

.col {
  max-height: fit-content;
  max-width: fit-content;
  display: block;
}

#inforow {
  display: flex;
  padding: 3%;
  align: center;
}

.article-title {
}

.article-content {
  padding: 5px;
}

#logo {
order: 1;
}

.tailitem {
  padding: 5px;
}


#header-container {
  /*
  justify-content: space-between;
  align-items: center;
   * */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);*/
  display: flex;
  position: fixed;
  min-width: 100%;
  height: 9%;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;*/
  padding: 0px;
  background-color: white;
  z-index: 1000;
}

.header {
  text-align: center;
  max-width: 100%;
  max-height: 100%;
}

.header * {
  align-content: center;
  align: center;
}

#ltrow {
  display: flex;
  width: 100%;
  height: 100%;
}

.selector {
	width: 15vw;
}

#logo {
  order: 1;
  max-height: 93%;
  max-width: 11%;
  position: absolute;
  left: 2%;
  top: 25%;
  padding-bottom: 4px;
  display: inline-block;
  box-sizing: border-box;
}

#navcontainer {
  box-sizing: border-box;
  order: 2;
  display: inline-block;
  right: 0%;
  top: 0%;
  align-items: center;
  position: absolute;
  max-width: fit-content;
  height: 100%;
  background-color: lightgreen !important;

}

#logoimg {
  max-width: 80%;
  max-height: 40px;
  height: 25%;
}


#menubar .menuitem {
  margin: 0 10px;
  color: black;
  text-decoration: none;
  padding: 5px 5px;
}

#menubar .menuitem:hover {
  background-color: #f0f0f0;
  border-radius: 5px;
}

.menuitem {
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: inherit;
  color: black;
}

#menubar .menuitem:hover {
  background-color: #f0f0f0;
  border-radius: 5px;
}

/* Cacher le bouton hamburger par défaut */
#navbar-toggle {
  display: none;
}

/* Transition fluide pour le menu déroulant 
#navbar-collapse {
  transition: max-height 0.3s ease-out;
  overflow: hidden;*
}*/

#page {
  display: flex;
  box-sizing: border-box;
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

#page-container {
  text-align: center;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#email-content {
  min-height: 25vh;
}

.input-row {
  padding-top: 2px;
  padding-bottom: 2px;
}

#lang-menu {
  width: 11vh;
  position: relative;
  top: 9vh;
  left: 2vh;
  color: black;
}

.page-content {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 3px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 1.4rem;
  
  background: rgba(255, 255, 255, 0.65); 
  border-radius: 8px;  
  color: #0b0b0b;    
  box-shadow: 0 4px 8px rgba(0, 0, 0, 9.1); 
}

.project-view-image {
	order: 3;
	max-width: fit-content;
	display: content;
	position: absolute;
	top: 4vh;
	right: 1vw;
}

.project-view-image img {
	max-height:25vh;
}

.pj-view-content {
	order:2;
	display: flex;
	padding-top: 2px;
	padding-bottom: 2px;
	margin: 2vw;
	max-width: 60vw;
}

.project-title {
	order:1;
	display: flex;
	font-weight: bold;
	margin: 3vw;
}

#pj-view-container {
  justify-content: left;
  position: relative;
  background: rgba(255, 255, 255, 0.65); 
  border-radius: 8px;  
  color: #0b0b0b;    
  box-shadow: 0 4px 8px rgba(0, 0, 0, 9.1); 
  width: 90vw;
  font-size: 1.4rem;
}


.ba-details .form-label {
  display: inline; 
  text-decoration: underline;
}

.ba-details {
  position: sticky;
  overflow-wrap: break-word;
  width: 20vw;
  min-height: 40vh;
  transform: translateY(-15vh);
  font-size: 1.3rem;
  font-weight: bold;
  font-variant: small-caps;
  background: rgba(255, 255, 255, 0.65); 
  border-radius: 8px;  
  color: #0b0b0b;    
  box-shadow: 0 4px 8px rgba(0, 0, 0, 9.1); 
}

.card {
	margin-right: 1vw;
	padding-bottom: 2px;
}

.article-title {
  box-sizing: border-box;
  display: flex;
}

#tail-container {
  display: flex;
}

.card-container {
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  width: 100%;
}

.project-card {
  display: flex;
  width: 80vw;
  background: rgba(255, 255, 255, 0.65); 
  border-radius: 8px;  
  color: #0b0b0b;    
  box-shadow: 0 4px 8px rgba(0, 0, 0, 9.1); 
}

.card-img {
  order: 3;
  width: 11%;
  position: absolute;
  right: 0px;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}
.card-title {
  order: 1;
  font-weight: bold;
  text-decoration: underline;
}

.card-text {
  order: 2;
  font-size: 1.4rem;
}

.proj-button{
	background-color:transparent;
	border: none;
	padding: none;
	margin: none;
}

#apptitle {
  max-height: 57%;
  position: absolute;
  right: 4%;
  top: 2%;
  box-sizing: border-box;
}

#apptitle-text {
  max-width: 100%;
  max-height: 100%;
  font-size: 17px;
  box-sizing: border-box;
}

.custom-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Alertes */
.alert {
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#fselect {
	background-color: pink;
	max-width: 95%;
}

.e-ddwn {
	width: 15vw;
}

.e-inpt {
	width: 50vw;
	height: 25vh;
}

.e-input-row {
	padding: 1vh;
}

#e-in-container {
	background-color: lightblue;
	display: block;
}

@media (min-width: 768px) {
  #menubar, #navbar-collapse {
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
  }
}

/* Styles pour les petits écrans */
@media (max-width: 768px) {
  /* Afficher le bouton hamburger */
  #navbar-toggle {
    display: block;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: black;
  }

  #menubar {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px;
    display: content;
  }

  .nav-item {
    min-width: 100%;
  }

  #menubar .menuitem {
    min-width: 100%;
    text-align: left;
    padding: 10px 20px;
  }

  #navbar-collapse {
    min-width: 100vh;
    box-sizing: border-box;
    margin: none !important;
    padding: none !important;
    background-color: white;
    z-index: 1000;
    /*box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
     */
  }

  #logo {
    min-width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    right: 0;
  }
  #logoimg {
    min-height: 100%
  }

  .page-content {
    font-size: 1.1rem;
  }

}
