
:root {
    --main-color: #282c3b;  
    --hover-color: #212531;  ; 
    --button-color: #242835; 
    
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@font-face {
  font-family: "Marianne";
  src:
    url("../fonts/Marianne-Medium.woff2") format("woff2"),
    url("../fonts/Marianne-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--main-color); 
}

/* Style pour le conteneur des onglets */
.button-progress-container {
    position: relative;
}

header {
    background-color: var(--main-color); 
    color: white; 
    padding: 15px;
    padding-right: 0px;
    text-align: left;
    padding-left: 2%;
    height:40px;
    display: flex;
    align-items: center;

}
.header-nav {
    margin-left: auto; 

}

.main-container {
    position: absolute;
    width:100%;
    z-index: -1;
    height: calc(100vh - 70px); 
    top: 70px;
}

#map {
    height: 100%;
    width: 100%;
    z-index: -1;
}
#map3D {
    height: calc(-70px + 100vh);
    width: 100%;
    z-index: -1;
    display: none;
}
.button-container {
    padding: 10px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: stretch; 
    position: absolute; 
    left: 20px; 
    width: 300px; 
    height: calc(100vh - 160px);
    margin: 0 20px 20px 20px;
    border-radius: 20px;
    border: 2px solid #ddd; 
    overflow: hidden; 
}

button {
    width: 100%; 
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    background-color: var(--main-color); 
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 20px;
}



button:hover {
    background-color: var(--hover-color); 
}

#downloadFile {
    height:80px;
    margin-top: auto;
    position: relative;
    border-radius: 20px;
}
#searchPlaceBtn {
    height:50px;
    border-radius: 20px;
}
#searchPlace{
    text-align: center;
}

label, input {
    width: 90%;
    margin: 6px 0;
}

input {
    padding-top: 8px;
    padding-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
}


.two-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.left-column, .right-column {
    width: 48%;
}

#processGeoTIFF {
    width: 100%;
    position: relative;
    margin-top: 10px;
    height: 40px;
    border-radius: 20px;
}


#downloadFile {
    width: 100%;
    height: 40px;
    position:relative;
    margin-top: 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

#don {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    margin-bottom: 10px;
}




input, select {
    width: 100%;
    margin: 6px 0;
    font-size: 14px;
}

fieldset {
    font-size: 14px;
    border: none;
    overflow-y: auto; 
    padding: 10px;
    margin-bottom: 15px;
}

label {
    width: auto;
}

input[type="checkbox"] {
    display: none; 
}

.checkbox-label {
    user-select: none; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 30px;
}
.switch-container{
    user-select: none; 
    cursor: pointer;   
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-left:20px;
    margin-right: 30px;
    font-size: 14px;
    width:205px;
}


.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
.checkbox-text {
    display: flex;
    align-items: center;
    gap: 5px; 
}

input[type="checkbox"]:checked + .slider {
    background-color: var(--button-color); 
}

input[type="checkbox"]:checked + .slider:before {
    transform: translateX(20px); 
}

.logo-header {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    width: 80px;
    margin-left: 10px;
}

.logo-header img {
    display: block;
    height: 60px;

}


.progress-bar {


    width: 100%;
    height: 40px; 
    background-color: #ddd;
    border-radius: 20px;
    position: relative;
    margin: 10px 0;
    margin-top: 10px;
    overflow: hidden;
    display: none; 
    flex-shrink: 0;

}

.progress-bar-fill {
    height: 100%;
    width: 0;
    margin-top: auto;
    background-color: var(--main-color); 
    transition: width 0.5s ease; 
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: white;
    text-align: center; 
    min-width: 250px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
    width:40px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #4CAF50;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

.selection-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px; 
    margin-left: 0px; 
}

.selection-label {
    font-size: 16px; 
    font-weight: bold; 
    margin: 0; 
}

.selection-input {
    font-size: 16px; 
    font-weight: bold; 
    margin: 0; 
}
.separator {
    width: 100%; 
    border: 1px solid #ddd;
    margin: 5px 0; 
}



.arrow-icon {
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.arrow-icon.open {
    transform: rotate(45deg);
}

.layer-options {
    display: flex;
    flex-direction: column; 
    margin-left: 40px;
    margin-right: 30px;
    cursor : pointer;
}

input[type="number"]{
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
    padding:0px;
    margin:0px;
    width: 100%; 

}

.option-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor:pointer;
    user-select: none;
}
.option-item * {
    cursor: pointer;
}
.option-option-item {
    margin-left:20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}
.layer-options .option-option-item {
    display: none;
}
.option-item-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    width:100%;
}


.nav-link:hover {

    background-color: var(--hover-color); 
}

.menu-toggle {
    display: none; 
    width: unset;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}
.header-nav {
    display: flex;
    gap: 20px;
}


#header-nav-icon {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    border-radius: 10px;
    background-color: var(--main-color); 
    transition: background-color 0.3s;
    font-family: 'Marianne', sans-serif;
    display: flex; 
    margin: 0 10px;
    padding: 20px;
    min-width: 50px;
    text-align: center;
    align-items: center; 
    justify-content: center; 
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    line-height: 1.5; 
    font-size: 16px; 
    vertical-align: middle;
}

#loginButton{
    margin-right: 0px;
}
.circle-avatar {
    background-color: #007bff;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}
.circle-avatar:hover {
    padding:0px;
}
.nav-link-avatar {
    padding: 10px;
    padding-right: 5px;
    
}
#loginButton-avatar{
    margin-right: 10px;
}
#loginButton img {
    width: 30px; 
    height: 30px;
}

.spinner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgb(14, 14, 14);
    border-top: 2px solid #c8c8c8;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
    margin-top: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.donation-banner {
    display: none;
    background-color: #b30000;
    color: white;
    padding: 5px 20px;
    font-size: 1rem;
    font-weight: bold;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    max-height: 100px; 
    opacity: 1;
}
.donation-banner.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}
.donation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
    text-align: center;
}

.donation-content span {
    white-space: nowrap; 
}

.donation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.donation-button,
.dismiss-button {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: unset;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.donation-button {
    background-color: white;
    color: #b30000;
}

.donation-button:hover {
    background-color: #e6e6e6;
    color: #990000;
}

.dismiss-button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.dismiss-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.mobile-help-img {
    display: none;
}

#generateSection {

    overflow: auto;
    margin-top: auto;
}

#footer-button-flex {
    font-size: 11px;
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Courier New', monospace;
    text-align: center;
}
#credit-footer{
    width: 50%;
}
#version{
    width: 50%;

}
#donate-text {
    text-align: justify;
    font-size: 14px;
}