@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
* {
    margin: 0;
    padding: 0;
    cursor: url('images/mouse/Wii-cursor.png'), 10px;
    font-family: 'Open Sans', sans-serif;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#acacac, #ffffff 16%);
    z-index: 100; 
}
#loader-white-bg {
    width: 95%;
    height: 90%;
    background-color: #ffffff;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#loader-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}
.logo {
    width: 100px;
    height: 100px;
}
p {
    font-family: 'Open Sans', sans-serif;
    color: #000000;
}
.invisible {
    visibility: hidden;
}
#main-content {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: row;
    position: relative; 
}
#logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 115px;
    height: 115px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    
}
#logo img {
    background: linear-gradient( rgba(255, 255, 255, 0.5), rgba(172, 172, 172, 0.5) );
    border-radius: 10px;
}
#loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.loader-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}
.loader-subtitle {
    font-size: 1.5em;
    margin: 0;
}
#menu-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    height: 100%;
    gap: 20px;
}
#menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    gap: 10px;
    margin-top: 2%;
}

.menu-item {
    width: 25px;
    height: 15px;
    background-color: #b4b4b4;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s ease;
}
.focus{
    background-color: #43e8d8;
    width: 40px;
    height: 25px;
}

#projects {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    height: 80%;
    overflow-y: auto;
}
#project-first-page {
    width: 100%;
    display: grid;
    grid-template: repeat(auto-fit, minmax(200px, 1fr)) / repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    justify-items: center;
    align-items: center;
}
#front-page {
    position: absolute; 
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#projects-container {
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0;
}
#icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12rem;
    z-index: 1;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.icon svg{
    width: 70px;
    height: 70px;
}
.icon:hover {
    transform: scale(1.2);
}
.project {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.project img {
    width: 90%;
    height: 90%;
    border-radius: 30px;
    object-fit: contain;
}

.project:hover {
    box-sizing: border-box;
    border: #43e8d8 solid 10px;
    animation: border-opacity 1s linear;
}
.project:hover img {
    transform: scale(1.05);
}

@keyframes border-opacity {
    0% {
        border-color: rgba(67, 232, 216, 0);
        
    }
    50% {
        border-color: rgba(67, 232, 216, 0.5);
    }
    100% {
        border-color: rgba(67, 232, 216, 1);
    }
}

.my-and-community-page {
    position: relative;
    width: 100%;
    height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    z-index: 3;
}
/* Système de pages modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-page {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-page.closing {
    animation: modalSlideOut 0.3s ease-in forwards;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background-color: #e0e0e0;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 40px 40px 40px;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.modal-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    white-space: pre-line;
    color: #0d0d0d;
    padding: 20px;
    border-radius: 10px;
}

.modal-description-container {
    width: 90vw;
    padding: 20px 0;
    border-radius: 10px;
    background-color: #e9e9e9;
}

.modal-container-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0d0d0d;
}

.modal-logo{
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5%;
    padding: 10px;
    background-color: #e9e9e9;
}

.modal-project {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    height: 40px;
    width: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 20px;
}

.modal-software-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 90vw;
    margin: 20px 0;
}

.modal-software {
    width: 35%;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.modal-software-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 10px 0;
    align-items: center;
    justify-content: center;
}

.modal-software-item img {
    width: 100px;
    height: 100px;
    margin: 0 10px;
}
.modal-project-content{
    width: 35%;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 35%;
}

.reel{
    background-color: rgb(38, 201, 38);
}

.noreel{
    background-color: rgb(230, 46, 46);
}

.benevolat{
    background-color: rgb(46, 141, 230);
}

.email-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.email-page {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    /*
    background:
      /* small diagonal hatch */
      /* repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 24px),
      /* faint larger diamonds by overlaying linear-gradients */
      /*linear-gradient(135deg, rgba(0,0,0,0.02) 25%, transparent 25%) 0 / 48px 48px,
      var(--page-bg);
    */
}

.email-page.closing {
    animation: modalSlideOut 0.3s ease-out forwards;
}
.email-header {
    position: relative;
    width: 30%;
    height: 80px;
    background-color: #ff9500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
}
.email-header .modal-close {
    position: absolute;
    top : auto;
    right: 20px;
    background-color: #ffffff;
    color: #ff9500;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.email-icon {
    width: 50px;
    height: 50px;
    margin-right: 1 0px;
}
.email-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: #ffffff;
}
.email-content {
    border-radius: 0 0 25px 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    background-color: #ffffff;
    width: 30%;
    flex-direction: column;
}
.email-online{
    display: flex;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #0d0d0d;
}
.email-online-icon {
    width: 90px;
    height: 90px;
    margin-left: 20px;
}
.email-name {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: 15px;
    font-size: 1.2em;
}
.email-fullname {
    font-size: 0.8em;
    color: #555555;
}
.email-form {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 20px 0 0 0 ; 
}
.email-form label {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    margin-bottom: 5px;
    text-align: left;
    color: #333333;
}
.email-input, .email-textarea {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 15px;
    font-size: 1.6em;
    font-family: 'Open Sans', sans-serif;
    resize: vertical;
}
.email-submit {
    width: 100%;
    padding: 10px;
    background-color: #ff9500;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.legal-page {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    /*
    background:
      /* small diagonal hatch */
      /* repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 24px),
      /* faint larger diamonds by overlaying linear-gradients */
      /*linear-gradient(135deg, rgba(0,0,0,0.02) 25%, transparent 25%) 0 / 48px 48px,
      var(--page-bg);
    */
}

.legal-page.closing {
    animation: modalSlideOut 0.3s ease-out forwards;
}

.legal-header {
    position: relative;
    width: 70%;
    height: 80px;
    background-color: #585858;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 40px 40px 0 0;
}

.legal-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: #ffffff;
    font-size: 2em;
}

.legal-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    background-color: #ffffff;
    width: 70%;
    flex-direction: column;
    overflow-y: auto;
}
.legal-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}
.legal-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    color: #0d0d0d;
    margin-bottom: 20px;
    text-align: center;
    margin: 0 20px;
}

.legal-footer {
    position: relative;
    width: 70%;
    height: 80px;
    background-color: #585858;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 40px 40px;
}
.legal-close {
    padding: 5px 0;
    width: 40%;
    background-color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 28px;
}


/* Couleurs spécifiques pour chaque page */
#my-and-community-page .modal-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#my-and-community-page .modal-title {
    color: #ffffff;
}

.LEGO img{
    width: 85%;
    border-radius: 0%;
}

@media (max-width: 768px) {
    #icons{
        gap: 5rem;
    }
    .icon svg {
        width: 50px;
        height: 50px;
    }
    #projects {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        height: auto;
    }
    #project-first-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .modal-content {
        padding: 40px 20px 20px 20px;
    }
    .modal-software-container {
        flex-direction: column;
        align-items: center;
    }
    .modal-software {
        width: 80%;
    }
    .email-page {
        width: 100%;
        height: 100%;
    }
    .email-header, .email-content {
        width: 90%;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    #icons{
        gap: 8rem;
    }
    .icon svg {
        width: 60px;
        height: 60px;
    }
    #projects {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        height: auto;
    }
    #project-first-page {
        width: 80vw;
        grid-template:auto-fit;
        gap: 30px;
    }
    .modal-content {
        padding: 50px 30px 30px 30px;
    }
    .modal-software-container {
        flex-direction: column;
        align-items: center;
    }
    .modal-software {
        width: 70%;
    }
    .email-header, .email-content {
        width: 70%;
    }
}