@font-face {
    font-family: Gliker-Bold;
    src: url("../font/Gliker-Bold.ttf");
}

@font-face {
    font-family: Gliker-Regular;
    src: url("../font/Gliker-Regular.ttf");
}

@font-face {
    font-family: Exo2-Regular;
    src: url("../font/Exo2-Regular.ttf");
}

:root{
    --bleu-fonce: #09214A;
    --bleu-clair: #3DC2E2;
    --rouge: #ED151A;
    --gris: #8F8F8F;
    --success-color: rgb(66, 165, 66);
    --vert: rgb(77, 186, 77);
    --jaune: rgb(218, 218, 98);

    --font-title: Gliker-Bold;
    --font-subtitle: Gliker-Regular;
    --font-global: Exo2-Regular;
}

.title{
    font-family: var(--font-title), serif;
}

.subtitle{
    font-family: var(--font-subtitle), serif;
}

/* =========== */

html, body{
    padding: 0;
    margin: 0;
    height: 100vh;
    font-family: var(--font-global), serif !important;
}

/* =========== */

.navbar{
    height: 80px;
    width: 100%;
    background-size: 100% 120%;
    background: linear-gradient(var(--bleu-fonce), var(--bleu-clair)) center center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: start;
    justify-content: center;
    padding-top: 15px;
    box-sizing: border-box;
    z-index: 4;
    animation: gradientMove 5s linear infinite;
    view-transition-name: navbar;
}

.navbar::after{
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: white;
}

.navbar svg{
    animation: vagueNavBar2 3s linear infinite alternate;
}

.navbar svg path{
    animation: vagueNavBar 5s linear infinite alternate;
}

.navbar img{
    width: 25px;
    height: 25px;
}

.navbar .burger{
    position: absolute;
    left: 15px;
    top: 15px;
}

.navbar .navitem-group{
    position: absolute;
    right: 15px;
    top: 15px;
}

.navbar .subtitle{
    color: white;
    font-size: 20px;

}

.custom-shape-divider-bottom-1744152029 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-1744152029 svg {
    position: relative;
    display: block;
    width: 140%;
    height: 20px;
}

.custom-shape-divider-bottom-1744152029 .shape-fill {
    fill: #FFFFFF;
}

/* =========== */

.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.burger-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #f8fafc;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.burger-menu.active {
    transform: translateX(0);
}

.burger-header {
    background: white;
    padding: 40px 20px 25px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-burger {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    color: var(--gris);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-burger:hover {
    color: var(--rouge);
}

.burger-menu .mainInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.burger-menu.active .mainInfo {
    opacity: 1;
    transform: translateY(0);
}

.burger-menu .account-image-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bleu-clair);
    padding: 3px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.burger-menu .account-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.burger-menu .account-details {
    width: 100%;
}

.burger-menu .subtitle {
    color: var(--bleu-fonce);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.burger-menu .infos {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-menu .infos div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.burger-menu .infos .value {
    color: var(--bleu-fonce);
    font-weight: 500;
}

.burger-menu .links {
    padding: 20px 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.burger-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease var(--timing-anim);
}

.burger-menu.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

.burger-menu .menu-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.burger-menu .menu-item img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    object-fit: contain;
}

.burger-menu .menu-item span {
    color: var(--bleu-fonce);
    font-weight: 500;
    font-size: 1rem;
}

.burger-menu .logout-button {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    border-radius: 0;
}

.burger-menu .logout-button:hover span {
    color: var(--rouge);
}

.buttonWithPicto{
    padding-left: 40px !important;
    position: relative;
}

.buttonWithPicto::after{
    content: "";
    position: absolute;
    height: 60%;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-size: contain;
}

.bg-filter{
    background-color: #00000030;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    opacity: 0;
}

.notification {
    padding: 10px 20px;
    color: white;
    position: fixed;
    border-radius: 5px;
    z-index: 5000;
    right: -100%;
    top: 10px;
    max-width: calc(100% - 20px);
    transition: right .3s ease-out;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.danger {
    background-color: var(--rouge);
}

.custom-modal {
    width: 100%;
    height: 100%;
    z-index: 1500;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    transform: translateX(100%);
    animation: openModal .3s ease-out forwards;
}

.custom-modal.open {
    transform: translateX(0);
    animation: none;
}

.custom-modal.open.close {
    animation: openModal .3s ease-out reverse forwards;
}

.custom-modal-dialog {
    width: 100%;
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
}

.custom-modal .custom-modal-header{
    position:relative;
    margin-bottom: 20px;
}

.custom-modal .custom-modal-header::after{
    content: "";
    width: 70%;
    height: 1px;
    background-color: var(--bleu-clair);
    left: 15%;
    bottom: -5px;
    position: absolute;
}

.custom-modal .custom-modal-header{
    opacity: 0;
    animation: slideAndFadeFromBotToTop .5s ease-in-out forwards;
}

.custom-modal .custom-modal-header .custom-modal-title{
    display: flex;
    height: 55px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: var(--font-subtitle), serif;
}

.custom-modal .custom-modal-header .custom-modal-close{
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    background-color: transparent;
    outline: none;
    border: none;
}

.custom-modal .custom-modal-header .custom-modal-close img{
    width: 25px;
    height: 25px;
}

.custom-modal-body{
    padding: 0 20px;
}

.custom-modal-body .button-container button{
    padding: 8px 15px;
}

.modal-button-container {
    text-align: center;
    opacity: 0;
    animation: slideAndFadeFromBotToTop .5s ease-in-out .6s forwards;
    padding: 0 0 15px;
}

.modal-button-container .custom-modal-button {
    background-color: var(--rouge);
    padding: 8px 15px;
    width: 50%;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.custom-modal-input {
    color: white;
    border: solid 1px white;
    border-radius: 5px;
    background: transparent;
    outline: none;
    padding: 8px 20px 8px 40px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.custom-comfirm-modal {
    z-index: 5000;
}

.custom-modal.custom-comfirm-modal .custom-modal-body {
    text-align: center;
}

.custom-modal.custom-comfirm-modal .custom-modal-body button {
    background-color: var(--rouge);
    padding: 8px 15px;
    width: 50%;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
}

.custom-loader {
    width: 100%;
    height: 100%;
    z-index: 5000;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-loader-content {
    margin: auto;
    width: 50%;
    height: 100%;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    transform: translateY(-50px);
}

.custom-loader-content img {
    width: 100%;
    -webkit-animation: loaderAnimation 5s linear forwards;
	animation: loaderAnimation 5s linear forwards;
	-webkit-animation-iteration-count: 15;
	animation-iteration-count: 15;
}

@-webkit-keyframes loaderAnimation {
	100% {
		-webkit-transform: rotate(360deg);
	}
}

.logout-button {
    position: fixed;
    bottom: 5px;
}

.account-image {
    border-radius: 50%;
    width: 125px;
    height: 125px;
    border: solid 1px #00000020;
}

.custom-button {
    padding: 8px 15px;
    color: white;
    outline: none;
    border: none;
    border-radius: 5px;
    margin: 5px;
}

.custom-button-danger {
    background-color: var(--rouge);
}

.custom-button-primary {
    background-color: var(--bleu-clair);
}

.listing-value-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.hide-lang {
    display: none;
}

.custom-switch-button {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 17px;
}

.custom-switch-button input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-switch-button-content {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.custom-switch-button-content:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 1px;
  background-color: white;
  transition: .4s;
}

.custom-switch-button input:checked + .custom-switch-button-content {
  background-color: var(--bleu-clair);
}

.custom-switch-button input:focus + .custom-switch-button-content {
  box-shadow: 0 0 1px var(--bleu-clair);
}

.custom-switch-button input:checked + .custom-switch-button-content:before {
  transform: translateX(15px);
}

.custom-switch-button-content {
  border-radius: 34px;
}

.custom-switch-button-content:before {
  border-radius: 50%;
}

.navbar-content {
    position: absolute;
    right: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.geolocalisation-button {
    background-color: white;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
}

.geolocalisation-button {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

.geolocalisation-button img {
    width: 20px;
    height: 20px;
}

.logo-container {
    border-radius: 50%;
    width: 105px;
    height: 105px;
    margin: auto;
    display: flex;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    object-fit: contain;
}

.logo-container-conversation {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin: auto;
    display: flex;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    object-fit: contain;
}

.logo-container-conversation-list {
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    object-fit: contain;
}

.logo-container-map {
    padding: 5px;
}

.address-example-container {
    position: relative;
    overflow: auto;
    height: 150px;
    margin-bottom: -150px;
    background-color: white;
    border: 1px solid var(--bleu-clair);
    border-radius: 5px;
    font-size: 13px;
    z-index: 500;
}

.address-example {
    padding: 5px;
    border-bottom: 1px solid black;
}

.danger-alert-message {
    color: var(--rouge);
    font-size: 13px;
    text-align: center;
    margin: 5px 0px;
}

.organisation-name-title {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    color: #ffffff70;
}

/* Custom file input */
.custom-file-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.custom-file-input input[type="file"] {
    display: none;
}

.custom-file-input label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--bleu-clair);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.custom-file-input label:hover {
    opacity: 0.85;
}

.custom-file-input .custom-file-name {
    font-size: 13px;
    color: #555;
    font-style: italic;
}

/* Standalone file input fallback */
input[type="file"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid var(--bleu-clair);
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    outline: none;
}

input[type="file"]::file-selector-button {
    padding: 6px 12px;
    background-color: var(--bleu-clair);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 10px;
    transition: opacity 0.2s;
}

input[type="file"]::file-selector-button:hover {
    opacity: 0.85;
}
