/*Style globale*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Helvetica, sans-serif;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
}

h2 {
  color: #007bff;
}

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

ul li {
  margin-bottom: 10px;
}

.text-center {
  text-align: center;
  margin-top: 50px;
}

/*COMPOSANTS VISUELS*/

.ujkz,
.liste,
.contenu-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-left: 135px;
  
  max-width: 90%;
}

.ujkz {
  border: 1px solid #000;
  color: #000;
  text-align: justify;
  padding: 1rem 1rem;
  margin-right: 1rem;
  
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
}
.carousel-container{
  width: 60%;
  margin: 1rem auto;

}

.liste {
  background-color: #f1f1f1;
  border: 2px solid #a2d3f7;
  text-align: justify;
}

.contenu-section {
  display: none;
  background-color: #e6f2ff;
}


/*  MODAL / FENÊTRE FLOTTANTE*/
#content-window {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header,
.modal-footer {
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.modal-title {
  font-weight: 600;
  color: #212529;
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.btn-close {
  background-size: 60%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
}

.modal.fade .modal-dialog {
  transform: translateY(-20px);
  transition: transform 0.3s ease-out, opacity 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

/*HORLOGE*/
#horloge {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #a2d3f7;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

#horloge input[type="text"] {
  background-color: transparent;
  color: #000;
  border: none;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  width: 80px;
  outline: none;
  cursor: default;
}

/* CONTENU DYNAMIQUE */
#content-placeholder h2 {
  color: #2c3e50;
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

#content-placeholder p {
  line-height: 1.6;
  color: #34495e;
}

#content-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/*UNIVERSITÉS*/
.liste-universites {
  display: none;
  transition: all 0.3s ease;
}

.conteneur-u:hover .liste-universites {
  display: block;
}

.universite-logos {
  display: none;
  transition: all 0.3s ease-in-out;
}

.universite-item {
  position: relative;
  text-align: center;
  padding: 10px;
  width: 200px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.universite-item span {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #333;
  padding: 10px 20px;
}

.universite-logo {
  width: 100px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.universite-logo:hover {
  transform: scale(1.1);
}

.autre-universite span:hover {
  color: #007bff;
}

.autres-section:hover .universite-logos {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/*ORGANIGRAMME*/
.org-chart {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.org-level {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.org-node {
  display: inline-block;
  margin: 0 20px;
  vertical-align: top;
  position: relative;
}

.org-card {
  width: 200px;
  padding: 15px;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.org-card h5 {
  margin-top: 0;
  color: #333;
}

.org-card p {
  margin-bottom: 0;
  font-size: 0.9em;
}

.connector {
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #6c757d;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

/*FOOTER */
footer {
  background-color: #2a7f2a; /* Version plus moderne du vert */
  color: #fff;
  text-align: center;
  padding: clamp(12px, 3vw, 20px) 0; /* Padding adaptatif */
  width: 100%;
  border-top: 2px solid rgba(255, 255, 255, 0.3); /* Bordure plus subtile */
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
  font-size: clamp(0.9rem, 2.5vw, 1rem); /* Taille de texte responsive */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Contenu du footer responsive */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
 
  justify-content: center;
  align-items: center;
}

/* Éléments enfants */
footer p, 
footer a {
  margin: 0;
  padding: 0 10px;
  line-height: 1.5;
}

/* Liens */
footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.conteneur {
  background: #9fbbc2; border-left: 4px solid #2c3e50;
  padding: clamp(1rem, 3vw, 2.5rem); margin: 2rem auto;
  width: min(800px, calc(100% - 2rem));
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.conteneur p {
  font: 500 clamp(1rem, 2.5vw, 1.25rem)/1.6 'Helvetica', sans-serif;
  color: #2c3e50; padding-left: 1.5rem;
  position: relative;
}
.conteneur p::before {
  content: "›"; position: absolute; left: 0;
  color: #3498db; font-size: 1.5em;
}
.visually-hidden {
  position: absolute; clip: rect(0 0 0 0); 
  width: 1px; height: 1px; margin: -1px;
}




/* RESPONSIVITE AVEC MEDIA QUERY */
@media (max-width: 992px) {
  footer {
    padding: 15px 0;
  }
}
@media (max-width: 768px) {
  .carousel-container {
    width: 90%;
  }
  footer {
    padding: 12px 0;
    border-top-width: 2px;
  }

  #content-window {
    top: 5%;
    left: 5%;
    width: 90%;
    max-height: 85vh;
    padding: 15px;
  }

  .conteneur {
    padding: 5px;
    border-radius: 3px;
    border-color: #000
    
    
  }

  .org-level {
    flex-direction: column;
    align-items: center;
  }

  .org-node {
    margin: 10px 0;
  }

  .connector {
    display: none;
  }

  .dropdown-item,
  .fas {
    width: 70px;
  }
  .footer{
    width: calc(100vw - 70px);
    margin-right: auto;
  }
  .footer-content {
    flex-direction: column;
    gap: 10px;

  }
  
  footer {
    border-top-width: 1px;
    padding: 15px 0;
    margin-right: auto;
    margin-left: 70px;
    width: calc(100%-70px);
  }
}

@media (max-width: 480px) {
  #content-window {
    top: 2%;
    left: 2%;
    width: 96%;
    max-height: 90vh;
    padding: 10px;
  }

  .title-bar {
    font-size: 14px;
  }

  .contenu {
    padding: 2px;
    font-size: 12px;
  }
  .footer-content {
    flex-direction: column;
    gap: 10px;

  }
  
  footer {
    border-top-width: 1px;
    margin-right: auto;
    padding: 10px 0;
    font-size: 0.9rem;
  }
}


