:root{
    --main-bg-color: hsl(191, 96%, 36%);

    --primary-color: #7d47de;
    --primary-color-hover: #5b389b;
    --danger-color: #dd303f;
    --danger-color-hover: #b42431;
    --success-color: #4caf50;
    --success-color-hover: #3e9142;
    --warning-color: #ddca28;
    --warning-color-hover: #b8a320;
    --info-color: #4285f4;
    --info-color-hover: #336fcc;
    --dev-color: #607d8b;
    --dev-color-hover: #4b626f;

    --secondary-color: #f1f1f1; /* Vert doux pour accents */
    --text-light: #ffffff; /* Texte clair */
    --text-dark: #333333; /* Texte foncé */
    --bg-light: #f9f9f9; /* Fond clair */
    --bg-dark: #1e1e1e; /* Fond sombre */
}

html {
    width: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    /* text-shadow: 0px 0px 4px #000000, -1px -1px 1px rgb(0 0 0 / 10%), 1px 1px 1px rgb(0 0 0 / 50%); */
}

body{
    width: auto;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

main{
    padding-bottom: 40px;
    background: #f1f1f1;
}

.flex-center{
    display: flex;
    justify-content: center;
    align-items: center
}

/*** LOADER ***/
/* Conteneur principal agrandi */
.containbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px; /* Augmentation de la largeur */
    height: 300px; /* Augmentation de la hauteur */
    position: relative;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Remplacez par la hauteur souhaitée */
}

.circle {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background-color: #7d47de; /* Couleur verte douce */
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px; /* Taille réduite de l'onde */
    height: 25px; /* Taille réduite de l'onde */
    background-color: rgba(168, 225, 177, 0.2); /* Couleur plus légère pour l'onde */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: wave 0.6s infinite alternate;
    opacity: 0;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
}

@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.circle:nth-child(1)::before {
    animation-delay: 0s;
}

.circle:nth-child(2)::before {
    animation-delay: 0.2s;
}

.circle:nth-child(3)::before {
    animation-delay: 0.4s;
}
/*
.loader{
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 60px;
}

.containbar{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 60px;
}

.bar1{
    width: 10px;
    height: 60px;
    background: #aeaeae;
    margin: 4px;
    border-radius: 10px;
}

.bar2{
    width: 9px;
    height: 50px;
    background: #aeaeae;
    margin: 4px;
    border-radius: 10px;
}

.bar3{
    width: 8px;
    height: 40px;
    background:  #aeaeae;
    margin: 4px;
    border-radius: 10px;
}

.bar4{
    width: 9px;
    height: 50px;
    background: #aeaeae;
    margin: 4px;
    border-radius: 10px;
}

.bar5{
    width: 10px;
    height: 60px;
    background: #aeaeae;
    margin: 4px;
    border-radius: 10px;
}

.bar1, .bar5{
    animation-name:animbar1;
    animation: animbar1 .7s linear infinite;
}

.bar2, .bar4{
    animation-name:animbar2;
    animation: animbar2 .7s linear infinite;
}

.bar3{
    animation-name:animbar3;
    animation: animbar3 .7s linear infinite;
}

@keyframes animbar1{
    0%{
        height:60px;
        width:10px;
    }
    12.5%{
        height:50px;
        width:9px;
    }
    25%{
        height:40px;
        width:8px;
    }
    37.5%{
        height:30px;
        width:7px;
    }
    50%{
        height:20px;
        width:6px;
    }
    62.5%{
        height:30px;
        width:7px;
    }
    75%{
        height:40px;
        width:8px;
    }
    87.5%{
        height:50px;
        width:9px;
    }
    100%{
        height:60px;
        width:10px;
    }
}

@keyframes animbar2{
    0%{
        height:50px;
        width:9px;
    }
    12.5%{
        height:40px;
        width:8px;
    }
    25%{
        height:30px;
        width:7px;
    }
    37.5%{
        height:20px;
        width:6px;
    }
    50%{
        height:30px;
        width:7px;
    }
    62.5%{
        height:40px;
        width:8px;
    }
    75%{
        height:50px;
        width:9px;
    }
    87.5%{
        height:60px;
        width:10px;
    }
    100%{
        height:50px;
        width:9px;
    }
}

@keyframes animbar3{
    0%{
        height:40px;
        width:8px;
    }
    12.5%{
        height:30px;
        width:7px;
    }
    25%{
        height:20px;
        width:6px;
    }
    37.5%{
        height:30px;
        width:7px;
    }
    50%{
        height:40px;
        width:8px;
    }
    62.5%{
        height:50px;
        width:9px;
    }
    75%{
        height:60px;
        width:10px;
    }
    87.5%{
        height:50px;
        width:9px;
    }
    100%{
        height:40px;
        width:8px;
    }
} */

/*** MENU ***/

.fix-header{
    height: 121px;
    transition: .4s;
}

.fix-header.scrolled {
    height: 40px !important;
}

.main-menu.scrolled{
    top: -51px !important;
    background-color: rgb(22 22 22 / 78%) !important;
}

.main-menu.scrolled a{
    color: #fff!important;
}

.main-menu.scrolled .menu-principal .logo svg g {
    fill: #fff!important;
}

.main-menu.scrolled .burger svg path{
    fill: #fff!important;
}

.logo svg g, .burger svg path{
    transition: .4s;
}

.img-header{
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    background-color: #fff;
}

.bg-img-header{
    filter: blur(.5px);
    width: auto;
    height: 100%;
}

.info-img-header-container{
    width: 20%;
    height: 80%;
    max-height: 248px;
    max-width: 240px;
    margin-right: 70%;
    position: absolute;
    /* box-shadow: 0px 0px 10px 3px #7d47de; */
    box-shadow: 0px 0px 6px 1px #787878;
}

.info-img-header-content, .info-img-header-content img{
    width: 100%;
    height: 100%;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: var(--bg-head-color);
    z-index: 1000;
    border-bottom: 1px solid var(--border-menu);
    transition: .4s;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Barre supérieure */
.menu-utilitaire {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-dark);
    border-bottom: 2px solid var(--primary-color);
    width: auto;
    height: 30px;
    z-index: 2;
    position: relative;
}

.utilitaire-links{
    display: flex;
    justify-content: center;
    align-items: center;
}

.disconnect i{
    font-size: 25px;
}

.menu-utilitaire .utilitaire-links a, .menu-utilitaire .title-logo a{
    visibility: visible;
    transition: visibility .4s, color 0.3s ease;
}

.menu-utilitaire .title-logo a {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.menu-utilitaire .utilitaire-links a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
}

.menu-utilitaire .utilitaire-links a:hover {
    color: #fff;
}

/* Barre principale */
.menu-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: auto;
    height: 70px;
    border-bottom: 2px solid var(--primary-color);
}

.menu-principal .principal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.menu-principal .logo {
    width: 100%;
    height: calc(100% - 10px);
    padding: 5px 0;
    background: #f9f9f9;
    z-index: 2;
}

.logo svg {
    width: auto;
}

.menu-principal .burger{
    display: none;
    width: auto;
    height: 68%;
}

.menu-principal a {
    /* padding: 0 15px; */
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    height: 100%;
}

.menu-principal a span::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
    position: absolute;
    /* bottom: -5px; */
    left: 50%;
    transform: translateX(-50%);
}

.menu-principal a:hover span:after {
    width: calc(100% - 30px);
}

.menu-principal .page:hover .sub-pages {
    display: inherit!important;
}

.menu-principal a:hover {
    color: var(--primary-color);
}

@media (max-width: 1040px) {
    .principal-links {
        display: none!important;
    }

    .menu-principal .burger{
        display: inherit!important;
    }
}

@media (max-width: 550px) {
    .main-menu{
        top: -52px!important;
    }

    .fix-header {
        height: 70px!important;
    }

    .menu-utilitaire .utilitaire-links a, .menu-utilitaire .title-logo a{
        visibility: hidden!important;
    }
}


/*** FOOTER ***/


footer{
    background-color: var(--bg-dark);
    height: 100px;
}

.footer-legal, .legal-sections{
    width: auto;
    height: 100%;
}

.legal-sections{
    display: grid;
    align-content: space-evenly;
}

.legal-links, .legal-copyright{
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-links a{
    text-decoration: none;
}

.legal-links a:hover {
    color: #fff;
}

.legal-links a, .legal-links p{
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.legal-copyright p{
    margin: 0;
    color: var(--text-light);
}

.bou-mod{
    color: red!important;
}


/* MENU */

.img-header .text-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 20px; /* Taille de police par défaut */
    line-height: 1.4;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

#textCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Empêche toute interaction avec le canvas */
}

.page-header {
    background: #f1f1f1;
    border-bottom: 1px solid #b7c6d8;
    padding: 20px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    text-decoration: none;
    color: black;
}

.breadcrumb a:hover{
    text-decoration: underline;
    color: #7d47de;
}

.page-title {
    margin: 0;
    color: #7d47de;
}

.sub-sub-pages {
    display: none;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    background: #7d47de3b;
    border-radius: 5px;
}

.sub-page.active .sub-sub-pages {
    display: flex;
}

i.bi.bi-plus-square-fill {
    margin-right: 0;
    margin-left: 5px;
}

i.bi-arrow-up-right-square-fill {
    margin-right: 0;
    margin-left: 5px;
}

.principal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page {
    position: relative;
    margin: 0;
    height: 100%;
}

.page > a {
    padding: 0 15px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.sub-pages {
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: #f9f9f9;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateY(-100%) translateX(-50%);
    pointer-events: none;
    transition: transform 0.3s ease, z-index 0.3s step-end;
    border: 2px solid var(--primary-color);
    border-top: none;
    white-space: nowrap;
    border-radius: 0 0 10px 10px;
}

.sub-page {
    padding: 0 10px 10px 20px;
}

.sub-page a {
    /* padding: 10px; */
    margin: 0;
    transition: background-color 0.3s ease;
    text-align: left;
    cursor: pointer;
}

.sub-sub-pages a {
    padding: 5px 0;
}

.page:hover .sub-pages {
    transform: translateY(0) translateX(-50%);
    pointer-events: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.img-header .text-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 20px; /* Taille de police par défaut */
    line-height: 1.4;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

#textCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Empêche toute interaction avec le canvas */
}

.page-header {
    background: #f1f1f1;
    border-bottom: 1px solid #b7c6d8;
    padding: 20px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    text-decoration: none;
    color: black;
}

.breadcrumb a:hover{
    text-decoration: underline;
    color: #7d47de;
}

.page-title {
    margin: 0;
    color: #7d47de;
}

.sub-sub-pages {
    display: none;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    background: #7d47de3b;
    border-radius: 5px;
}

.sub-page.active .sub-sub-pages {
    display: flex;
}

i.bi.bi-plus-square-fill {
    margin-right: 0;
    margin-left: 5px;
}

i.bi-arrow-up-right-square-fill {
    margin-right: 0;
    margin-left: 5px;
}

.principal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page {
    position: relative;
    margin: 0;
    height: 100%;
}

.page > a {
    padding: 0 15px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.sub-pages {
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: #f9f9f9;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateY(-100%) translateX(-50%);
    pointer-events: none;
    transition: transform 0.3s ease, z-index 0.3s step-end;
    border: 2px solid var(--primary-color);
    border-top: none;
    white-space: nowrap;
    border-radius: 0 0 10px 10px;
}

.sub-page {
    padding: 0 10px 10px 20px;
}

.sub-page a {
    /* padding: 10px; */
    margin: 0;
    transition: background-color 0.3s ease;
    text-align: left;
    cursor: pointer;
}

.sub-sub-pages a {
    padding: 5px 0;
}

.page:hover .sub-pages {
    transform: translateY(0) translateX(-50%);
    pointer-events: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



/* 
====================================
= Système d'affichage des messages =
= (errors, valids, warnings, infos, devs)
= Avec animation slide/fade/scale et progress-bar
====================================
*/

.alert-container {
    position: fixed;
    top: 126px;
    left: 50%;
    transform: translateX(-50%);
    margin: 10px;
    display: none;
    justify-items: center;
    align-content: center;
    z-index: 10000;
}

.alert-container p {
    margin: 0;
}

.errors, .valids, .warnings, .infos, .devs {
    max-width: 1000px;
    width: 100%;
    height: auto;
    padding: 10px 30px 10px 20px;
    position: relative;
    margin: 2px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 5px;
    color: white;
}

.errors {
    background: var(--danger-color);
}

.valids {
    background: var(--success-color);
}

.warnings {
    background: var(--warning-color);
    color: black!important;
}

.infos {
    background: var(--info-color);
}

.devs {
    background: var(--dev-color);
}

.slide-fade-scale-out {
    transform: translateX(200%) scale(0.9);
    opacity: 0;
    transition: 
        transform 0.6s ease-in-out, 
        opacity 0.5s ease-in-out;
}

.closeButton i{
    font-size: 22px;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    opacity: 0.5;
}

.closeButton:hover i{
    opacity: 1;
}

.closeButton{
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7); /* Blanc semi-transparent, tu peux changer */
    width: 0%;
    transition: width linear;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}


/* #errorText{
    width: fit-content;
    height: auto;
    max-width: 1000px;
    background: var(--danger-color);
}
#validText{
    width: fit-content;
    height: auto;
    max-width: 1000px;
    background: var(--success-color);
}
#closeButtonError, #closeButtonValid{
    color: #aeaeae;
    text-shadow: none;
    cursor: pointer;
    font-size: 20px;
    font-family: fantasy;
    position: absolute;
    top: 0px;
    right: 6px;
} */