/* Reset et structure générale */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Barlow', sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  align-items: center;
  background-color: #006072;
  color: white;
  padding: 10px 20px;
  flex-shrink: 0;
}
header img {
  height: 40px;
  margin-right: 20px;
  position: relative;
}
header h1 {
  margin: 0;
  font-weight: 500;
  font-size: 1.5em;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: #303846;
  color: #fff;
  font-size: 0.8em;
  height: 17px;
}
footer a {
  margin-left: auto;
}
footer a img {
  height: 15px;
  transition: opacity 0.2s;
}
footer a img:hover {
  opacity: 0.7;
}

/* TIFY container prend tout l’espace restant */
/* TIFY container prend tout l’espace restant */
#tify {
  flex: 1 1 auto;          /* prend tout l’espace entre header et footer */
  width: 100%;
  overflow: hidden;
}

/* Titre principal */
.tify-header-title {
  color: #006072 !important;
  font-size: 1.2em;         /* ajuste la taille */
  font-weight: 400;         /* facultatif : plus épais que normal */
}

/* Boutons de la barre */
.tify-header-button {
  color: #006072;           /* garde couleur par défaut des textes */
  background-color: transparent; /* fond par défaut */
}

/* Boutons actifs */
.tify-header-button.-active {
  color: white !important;                /* texte / icône en blanc */
  background-color: #006072 !important;   /* fond turquoise */
}

.tify-page-select-button {
  color: #006072 !important;
}

.tify-page-select {
  color: #006072 !important;
}

/* Icônes dans les boutons actifs */
.tify-header-button.-active .tify-icon {
  fill: white !important;
}

/* Boutons au survol */
.tify-header-button:hover {
  background-color: #006072 !important;
  color: white !important;
}

.tify-info-button:hover {
  background-color: #006072 !important;
  color: white !important;
}

.tify-info-button.-active {
  background-color: #006072 !important;
  color: white !important;
}

.tify-collection-link.-active {
  background-color: #006072 !important;
  color: white !important;
}

.tify-header-button:hover .tify-icon {
  fill: white !important;
}

/* Masquer le bouton Aide dans le header */
.tify-header-button[title="Aide"] {
  display: none !important;
}


/* ----------------- Modal ----------------- */
/* Bouton "?" à droite du header */
header {
  display: flex;
  align-items: center;
  background-color: #006072;
  color: white;
  padding: 10px 20px;
  flex-shrink: 0;
  position: relative;   /* <-- important */
}

.projet-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;  
  border-radius: 0; 
  background: none;
}
.about-btn {
  position: absolute;
  right: 20px;   /* collé au bord droit */
  top: 50%;
  transform: translateY(-50%);
  background-color: #004f57;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
}

.about-btn:hover {
  background-color: #002f36;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  text-align: justify;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  text-align: center;
  color: #006072;
}
.modal-content img {
  display: block;
  margin: 10px auto 0;
  max-height: 50px;
}
.close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.close:hover { color: #000; }
