html {
  background-color: var(--bg-color);
}
body {
    background-color: rgba(222,233,245,.384);
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: var(--main-color-light-header);
    border-bottom: 1px solid var(--grey-item);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header h3{
    color: var(--main-color);
}

.logo-container {
    display: flex;
    width: 50%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 80px;
}
/*Barre de recherche*/
.search-container {
    position: relative;
    text-align: center;
    width: 60%;  
}

.search-container input{
    width: 50%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background-color: var(--main-color-light);  
    color: #fff;
    outline: none;
}

.search-container input::placeholder {
    color: white;
}

.search-container .search-icon {
    position: absolute;
    top: 15px;
    margin-left: 15px;
    font-size: 18px;
    pointer-events: none;
}
.containers {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;

}
/*résultats de la recherche*/
#search-results {
    text-align: left;
    position: absolute;
    background: var(--bg-elem-color); 
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;

    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    border-radius: 8px;
    transition: box-shadow .3s;
}

.result-item {
    color: var(--text-color);
    padding: 8px;
    margin: 10px;
    cursor: pointer;
    transition: ease 0.2s;

    border-radius: 8px;
    border: 1px solid var(--div-item);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    
}
.result-item-err {
    padding: 8px;
    margin: 10px;
    transition: ease 0.2s;
    font-size: 18px;

    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    
}
.result-item-err p{
    margin-top: 10px;
}

.result-item:hover {
    box-shadow: 0 0 10px var(--main-color);

}
#version{
    width: 100%;
    text-align: right;
    margin-bottom: 0;
    margin-right: 20px;
    color:#999;
    font-size: 11px;
}
/*Navigation Bar*/
.nav-bar{
    width: 50%;
    text-align: left;
    padding-bottom: 10px;
}
.nav-bar svg{
    margin: 0 5px 4px 10px;
    stroke: var(--main-color);
    fill: var(--main-color);
}
.nav-bar a{
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
    font-size: 15px;
}
.nav-bar a:hover{
    color: var(--main-color-dark);
}
#navlast{
    color: var(--sec-color);
}
.navlast{
    stroke: var(--sec-color)!important;
    fill: var(--sec-color)!important;
}
/*CSS for the collection list*/
.collection {
    color: var(--text-color);
    display: flex;
    width: 55%;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--bg-elem-color);
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    transition: box-shadow .3s;
    cursor: pointer;
}
.collection:hover {
    box-shadow: 0 0 10px var(--main-color);
}
.templateimg svg{
    width: 80px;
    height: 80px;
    color: var(--black-item);
}
.collection-info {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    width: 80%;
}
.card-title {
    color: var(--main-color);
}
.search-result h4{
    color: var(--main-color);
    font-size: 1.3rem;
}
.hightlight {
    color: var(--sec-color);
    font-weight: bold;
}

/*login button*/
.user-container {
    position: fixed;
    top: 20px;
    right: 20px;
}
.user-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 10px;

    background: var(--main-color);
    color: white;
    font-weight: 600;
    
    border: none;
    border-radius: 25px;
    cursor: pointer;
    
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px var(--main-color-dark-50tr);
}
.user-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease-in-out;
}
.user-btn:hover {
    background: var(--main-color-dark);
    box-shadow: 0 6px 15px var(--main-color-dark-50tr);
}
.user-btn:hover svg {
    transform: rotate(20deg);
}

/*CSS for the pages list*/
.infoCollection{
    color: var(--text-color);
    padding-left: 20px;
    width: 50%;
    background-color: var(--bg-color);
}
.pagesList {
    background-color: var(--bg-elem-color); 
    width: 50%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
table {
    color: var(--text-color);
    width: 100%;
    border-collapse: collapse;
}
td {
    padding: 15px;
    text-align: left;
}
tr td{
    border-bottom: 2px solid var(--main-color-60tr);
}
tr:hover td{
    background: var(--hover-item);
    border-bottom: 2px solid var(--main-color-90tr);
    cursor: pointer;
}
tr:hover td:first-child{
    border-radius: 10px 0 0 10px;
}
tr:hover td:last-child{
    border-radius: 0 10px 10px 0px;
}
.arrow {
    width: 20px;
    height: 20px;
}
.arrow-container {
    text-align: right;
}

/*CSS for the error message*/
.errorDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 20px;
    border: 1px solid var(--main-color-20tr);
    border-radius: 10px;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.1);
}
.error {
    padding: 10px;
    font-size: 18px;
}
.errorDiv a{
    text-decoration: none;
    color: var(--sec-color);
    font-weight: bold;
}
.errorDiv a:hover{
    color: var(--third-color);
}

/*CSS for the page*/
.pageInfo h2{
    font-size: 30px;
    font-weight: bold;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 5px;
}
.pageInfo p{
    font-size: 16px;
    color: #999;
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
}
.pageInfo p::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--main-color);
    margin: 10px auto;
    border-radius: 2px;
}
.popupIMG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.popupIMG-content {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}
.popupIMG img{
    max-width: 90%;
    max-height: 90%;
}
/*CSS for buble video*/
.video-bubble {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: 20px;
    right: 50px;
    width: 80px;
    height: 80px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.video-bubble:hover {
    transform: scale(1.1);
}

.video-bubble::before { /*Message au survol*/
    content: "Regardez le tuto vidéo !";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
.video-bubble:hover::before {
    opacity: 1;
}
/*CSS for help video*/
.help-bubble {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: 20px;
    right: 50px;
    width: 80px;
    height: 80px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.help-bubble:hover {
    transform: scale(1.1);
}

.help-bubble::before { /*Message au survol*/
    content: "Besoin d'aide ?";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
.help-bubble:hover::before {
    opacity: 1;
}