@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('/css/layout/header.css');
@import url('/css/components/form.css');
@import url('/css/components/modals.css');

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

:root {
    /* Fonts */
    --primary-title: "Montserrat", sans-serif;
    --primary-text: "Roboto", sans-serif;
    --logo-width: 200px;
    /* Couleurs de base */
    --beige: #F2EDE6;
    --beige-medium: #E6E1DA;
    --beige-dark: #D9D4CE;
    --blue: #0D3C5F; /* Bleu du logo Résilians */
    --blue-medium: #0A2B45;
    --blue-dark: #061B2B;
    --green: #4b8b42;
    --orange: #E14E24; /* Orange du logo Résilians */
    --red: #D90E00;
    --red-dark: #A70B00;
    --white: #FFFFFF;
    --white-medium: #F4F6F9;
    --white-dark: #E5E5E5;
    --yellow: #FEC335;
    /* Couleurs du thème */
    --flashy-color: var(--yellow);
    --highlight-color: var(--orange);
}

.light-mode {
    --primary-color: var(--blue);
    --primary-color-dark: var(--blue-dark);
    --primary-color-medium: var(--blue-medium);
    --secondary-color: var(--white);
    --secondary-color-dark: var(--white-dark);
    --secondary-color-medium: var(--white-medium);
}

.dark-mode {
    --primary-color: var(--white);
    --primary-color-dark: var(--white-dark);
    --primary-color-medium: var(--white-medium);
    --secondary-color: var(--blue);
    --secondary-color-dark: var(--blue-dark);
    --secondary-color-medium: var(--blue-medium);
}

html {
    scroll-behavior: auto !important;
}

body#extranet {
    background-color: var(--secondary-color-medium);
}

#extranet .highlight {
    border: 2px solid var(--highlight-color);
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    aspect-ratio: 1/1;
    height: 1.5rem;
    width: 1.5rem;
}

/* Classe "button" */

#extranet .button {
    background-color: var(--highlight-color);
    border: none;
    color: var(--secondary-color);
    display: block;
    font-weight: 500;
    letter-spacing: 0.3rem;
    margin: 0.5rem auto;
    padding: 1rem;
    text-transform: uppercase;
}

#extranet .button[type="submit"] {
    width: 100%;
}

#extranet .button a {
    color: inherit;
    text-decoration: none;
}

/* Classe "container-mini" */

#extranet main:has(.container-mini) {
    max-width: initial;
    width: initial;
}

#extranet .container-mini {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#extranet .table>:not(caption)>*>*{
    background-color: transparent;
}

/* LOADER GLOBAL */
body#extranet .global-loader-container{
    background-color: var(--secondary-color-medium);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

body#extranet .loader-container {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

body#extranet .loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}


/*** MAIN ***/

#extranet main {
    margin-top: 2rem;
}

#extranet main > section {
    margin: 1rem auto;
    padding: 2rem 0;
}

#extranet main .title {
    margin-bottom: 2rem;
    font-family: var(--primary-title), sans-serif;
}

#extranet main .title h2.titre-texte {
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#extranet main .title .bloc-titre-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

#extranet main .title .bloc-titre-icon svg {
    height: 2rem;
    width: 2rem;
    stroke: var(--primary-color);
    margin: 0 20px;
}

#extranet main .title .bloc-titre-icon hr {
    border: none;
    border-top: 2px dashed var(--highlight-color);
    margin: 20px 0;
    opacity: 0.7;
}

/* Messages d'erreur */
#extranet .error-message {
    color: var(--red);
}

/* Barre de défilement */
#extranet .no-scroll {
    overflow: hidden;
}
/* Cible toutes les barres de défilement */
::-webkit-scrollbar{
    width: 10px; /* Largeur de la barre de défilement */
}
  
  /* Track/Axe de la barre de défilement */
::-webkit-scrollbar-track{
    background: var(--secondary-color); /* Couleur de fond de l'axe */
    border-radius: 5px;
}
  
  /* Handle/Curseur de la barre de défilement */
::-webkit-scrollbar-thumb {
    background: var(--primary-color-medium); /* Couleur du curseur */
    border-radius: 5px; /* Arrondit les coins du curseur */
}
  
/* En survolant le curseur */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark); /* Couleur du curseur au survol */
    border-radius: 5px;
}

/* BURGER MENU */
#extranet .burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
}

#extranet .burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}
#extranet .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 9px;
}

#extranet .burger-menu.active span:nth-child(2) {
    opacity: 0;
}

#extranet .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

@keyframes travel {
    0% {
        transform: rotate(-45deg) translateX(70px);
    }

    50% {
        transform: rotate(-45deg) translateX(-20px);
        box-shadow: inset 5px 0 6px 1px #FFF;
    }

    100% {
        transform: rotate(-45deg) translateX(-30px);
        width: 2px;
        height: 2px;
        opacity: 0;
        box-shadow: none;
    }
}

@keyframes move {
    0% {
        transform: none;
    }
  
    25% {
        transform: translateX(2px);
    }
  
    100% {
        transform: translateX(-2px);
    }
}


/*** Media queries (Mobile first) ***/

/** Mobiles larges (SM) **/
@media only screen and (min-width: 576px) {
    #extranet .container-mini {
        width: 75%;
    }
}

/** Tablettes (MD) */
@media only screen and (min-width: 768px) {
    #extranet .container-mini {
        width: 62.5%;
    }
}

/** Écrans moyens (LG) **/
@media only screen and (min-width: 992px) {
    #extranet .container-mini {
        width: 50%;
    }
}

/** Écrans larges (XL) **/
@media only screen and (min-width: 1200px) {
    #extranet .container-mini {
        width: 37.5%;
    }
}

/** Écrans très larges (XXL) **/
@media only screen and (min-width: 1400px) {
    #extranet .container-mini {
        width: 25%;
    }
}