:root {
    --enairco-blue: #003366;
    --enairco-dark-gray: #333333;
    --enairco-light-gray: #f2f2f2;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--enairco-dark-gray);
    overflow: hidden;
}

header {
    background-color: var(--enairco-blue);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

main {
    display: flex;
    flex-grow: 1;
    background-color: #fff;
    margin-top: 90px;
    padding-bottom: 60px; /* espace pour le footer */
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-title-container {
    flex-grow: 1;
    text-align: center;
}

header h1 {
    font-weight: 700;
    margin: 0;
}

#projects {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#project-list-container {
    width: 25%;
    background-color: var(--enairco-light-gray);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}


#project-list-container {
  height: calc(100vh - 90px); /* 90px = hauteur du header */
  overflow-y: auto;
}



#project-list {
  overflow-y: auto;
  padding-bottom: 100px; /* espace pour le footer */
}


.project-item {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-item:hover {
    background-color: #e6e6e6;
    transform: translateX(5px);
}

#map-container {
    flex-grow: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    touch-action: none;
}

.custom-div-icon {
    background-color: transparent;
    border: none;
    position: relative;
    width: 40px;
    height: 40px;
}

.custom-div-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--enairco-blue);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.custom-div-icon img {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    object-fit: contain;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--enairco-blue);
  color: white;
  text-align: center;
  padding: 2px 10px;
  z-index: 999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Ombre pour le footer */
}

