* {
    box-sizing: border-box;
}

@font-face {
    font-family: GreatVibesRegular;
    src: url(polices/GreatVibes-Regular.otf);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(220, 220, 242);
    color: #333;
    min-height: 100vh;
    padding-bottom: 60px;
    font-size: 16px;
    line-height: 1.5;
}

/* Header styles */
header {
    background: linear-gradient(to bottom, #d3adff, transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    min-height: 7rem;
    position: relative;
}

header h1 {
    font-family: GreatVibesRegular;
    font-size: 4rem;
    line-height: 4rem;    
    margin: 0;
    color: #0a1f4f;
}

header img {
    height: 4rem;
    border-radius: 50%;
}

#brigit {
    float: left;
}

#kommit {
    float: right;
}

#menuProfil {
    position: absolute;
    right: 5px;
    top: 100px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border: 1px #000000 solid;
    text-align: left;
    padding: 5px;
    border-radius: 5px;
}

#menuProfil a {
    text-decoration: none;
}

/* Main content */
main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

#intro {
    background-color: rgb(194, 200, 250);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0;
    font-size: 1rem;
}

#intro p {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

/* Buttons */
#boutons {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

#boutons a, #boutons button {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border: 1px solid #0056b3;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: 300px;
}

#boutons a:hover, #boutons button:hover {
    background-color: #0056b3;
}

#choixLabels {
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

#options {
    display: inline-block;
    font-weight: bold;
}

/* Table styles */

.table-container {
    background-color: transparent;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1rem;
    border-radius: 1em 1em 0em 0em;
}

table a.bouton {
    display: inline-block;
    padding: 2px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border: 1px solid #0056b3;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

table a.titre {
    font-weight: bold;
}

table a.bouton:hover {
    background-color: #0056b3;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

td.auteur {
    width: 250px;           /* Limiter la largeur à 250px */
    white-space: nowrap;    /* Empêcher le texte de passer à la ligne suivante */
    overflow: hidden;       /* Masquer le texte qui dépasse */
    text-overflow: ellipsis; /* Ajouter des points de suspension (...) si le texte est trop long */
}

td.nombre, td.done {
    text-align: center;
}


th {
    background-color: #6c63ff;
    color: white;
    cursor: pointer;
    border: 1px #ffffff solid;
    text-align: center;
}

th:hover {
    color: yellow;
    background-color: #635bf7;
}

th.actif {
    background-color: #5047f0;
}

th:first-child {
    border-radius: 1em 0em 0em 0em;
}

th:last-child {
    border-radius: 0em 1em 0em 0em;
}

tr {
    background-color: rgb(255, 255, 255);
    transition: background-color linear 0.1s;
}

tr:hover {
    background-color: rgb(208, 255, 249);
}



thead>tr, thead>tr:hover {
    background-color: transparent;
}

.description {
    font-size: 0.8em;
}

.text-fade {
    display: inline;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

.nodescriptions .description {
    display: none;
}

.avatar {
    border-radius: 50%;
    vertical-align: middle;
    max-width: 2em;
    max-height: 2em;
}

.label {
    border-radius: 5px;
    padding: 0.1em 0.3em;
    margin-right: 0.5em;
    color: #ffffff;
}

a.done {
    text-decoration: none !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 0.5rem;
    background-color: #6c63ff;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 0.9rem;
}

footer p {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

footer a, footer a:visited {
    color: #ffffff;
}

.hide {display: none !important;}


#tableExpand {
    text-align: center;
    margin: 15px 0;
}


#expandTableBtn {
    padding: 8px 16px;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#expandTableBtn:hover {
    background-color: #5047f0;
}

/* Styles pour la section Rêves réalisés */
#revesrealises {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgb(194, 200, 250);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#revesrealises h2 {
    text-align: center;
    color: #0a1f4f;
    margin: 5px;
    font-family: GreatVibesRegular;
    font-size: 2.5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.carousel-button {
    background: rgba(108, 99, 255, 0.8);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 2;
}

.carousel-button:hover {
    background: rgba(108, 99, 255, 1);
}

.tiles-container {
    flex: 1;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}

.project-tile {
    width: 100%;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 300px;
}

.project-author {
    color: #666;
    font-size: 0.9em;
    margin: 0.5rem 0;
}

.project-tile p {
    margin: 1rem 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
}


.project-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #0a1f4f;
}

.project-id {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-link {
    display: inline;
    padding: 7px 7px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #0056b3;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 1.5rem;
    gap: 8px;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel-dot.active {
    background-color: #6c63ff;
    transform: scale(1.2);
}


/* Media Queries pour le responsive */
@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
    }

    header {
        padding: 0.5rem;
        min-height: auto;
    }

    header h1 {
        font-size: 2.3rem;
        line-height: 2.3rem;
        margin: 0.3rem 0;
    }

    header img {
        height: 3.5rem;
    }

    main {
        padding: 0.5rem;
    }

    #intro {
        padding: 1rem;
        font-size: 1.1rem;
    }

    #boutons a {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .project-tile {
        width: 100%;
    }

    /* Rendre la table scrollable horizontalement */
    .table-container {
        overflow-x: auto;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;

    }

    table {
        font-size: 1.1rem;
        margin-bottom: 5em;
    }



    th, td {
        padding: 0.8rem;
        min-width: 120px;
    }

    footer {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .carousel-container {
        padding: 0 0.5rem;
    }
    
    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .project-tile {
        flex: 0 0 260px;
    }
}

/* Ajustements pour très petits écrans */
@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 2.3rem;
        line-height: 2.3rem;
        margin: 0.3rem 0;
    }

    header img {
        display:none;
    }

    #intro {
        font-size: 1rem;
    }

    th, td {
        padding: 0.6rem;
        min-width: 100px;
    }
}