body {
    font-family: "Noto Sans", sans-serif;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}

body.page-loaded {
    opacity: 1;
}

header {
    background: rgba(219,236,255,0.97);
    border-bottom: 2px solid #261800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 70px;
    box-shadow: 0 2px 12px rgba(63,139,232,0.07);
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

.logo-header {
    width: 150px;
    transition: transform 0.2s;
}
.logo-header:hover {
    transform: rotate(-1deg) scale(1.2);
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

a {
    font-size: large;
    font-family: "Noto Sans", sans-serif;
    color: royalblue;
    text-decoration: none;
    border: royalblue 2px solid;
    background-color: white;
    border-radius: 7px 7px 7px 7px;
    padding: 5px 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

a:hover {
    color: white;
    border: white 2px solid;
    background-color: royalblue;
    border-radius: 7px 7px 7px 7px;
    box-shadow: #6b8495 1px 1px 10px;
}

a:active {
    color: white;
    border: white 2px solid;
    background-color: royalblue;
    border-radius: 7px 7px 7px 7px;
}

a:focus {
    color: white;
    border: white 2px solid;
    background-color: royalblue;
    border-radius: 7px 7px 7px 7px;
}

main {
    margin-top: 70px; /* hauteur du header */
}

.accueil {
    height: calc(100vh - 70px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #00d2ff 0%, #3f8be8 100%);
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

#web-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.accueil > *:not(#web-canvas) {
    position: relative;
    z-index: 1;
}

.scroll-down-arrow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.85;
    animation: bounceDown 1.5s infinite;
    z-index: 2;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px #3f8be8aa);
    width: 100%;
    text-align: center;
    pointer-events: none; /* optionnel pour éviter les soucis de clic */
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0);}
    50% { transform: translateX(-50%) translateY(18px);}
}

.coming-soon {
    font-family: "Noto Sans", sans-serif;
    text-align: center;
    text-shadow: 2px 2px 8px #000000;
    color: goldenrod;
    font-size: 2.2rem;
    margin-top: 10px;
    letter-spacing: 2px;
    animation: fadeIn 2s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

.fonctionnalites h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 10px;
    color: #3f8be8;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fonction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.fonction-card {
    background: linear-gradient(120deg, #fff 80%, #eaf4ff 100%);
    border: 2px solid #3f8be8;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(63, 139, 232, 0.10);
    padding: 30px 32px 25px 32px;
    width: 320px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
    opacity: 0;
    transform: translateY(40px);
}
.fonction-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s, transform 0.7s;
}
.fonction-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 12px 36px rgba(63, 139, 232, 0.22);
    border-color: goldenrod;
    background: linear-gradient(120deg, #fffbe6 80%, #eaf4ff 100%);
}

.fonction-icon {
    font-size: 2.1rem;
    color: #3f8be8;
    margin-bottom: 10px;
    align-self: center;
    filter: drop-shadow(0 2px 8px #3f8be855);
}

.fonction-card h3 {
    margin-top: 0;
    color: #3f8be8;
    font-size: 1.25em;
    margin-bottom: 8px;
    font-weight: 700;
}

.fonction-card p {
    margin-bottom: 0;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}

footer {
    background: linear-gradient(120deg, #eaf4ff 60%, #cbe2ff 100%);
    border-top: 2px solid #261800;
    box-shadow: 0 -2px 24px rgba(63,139,232,0.10);
    padding: 38px 0 18px 0;
    margin-top: 60px;
    font-size: 1.08em;
    color: #222;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
    padding: 0 5vw;
}

.footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 220px;
}

.footer-logo {
    width: 70px;
    border-radius: 18px;
    box-shadow: 0 2px 12px #3f8be855;
    background: #fff;
    padding: 6px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #5865F2 60%, #3f8be8 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    text-decoration: none;
    box-shadow: 0 2px 12px #3f8be855;
    transition: background 0.2s, transform 0.2s;
}
.discord-btn:hover {
    background: linear-gradient(90deg, #3f8be8 60%, #5865F2 100%);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}

.footer-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: flex-start;
    min-width: 220px;
}

.footer-infos a {
    color: #3f8be8;
    text-decoration: underline;
    font-weight: 500;
}

.footer-legals {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
}
.footer-legals h4 {
    margin: 0 0 4px 0;
    font-size: 1.08em;
    color: #3f8be8;
    font-family: "Exo 2", sans-serif;
}
.footer-legals a {
    color: #3f8be8;
    text-decoration: underline;
    font-size: 1em;
    font-family: "Noto Sans", sans-serif;
    transition: color 0.2s;
}
.footer-legals a:hover {
    color: royalblue;
}

.gif-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3f8be8;
    font-size: 1.3rem;
    margin-bottom: 18px;
    min-height: 120px;
    z-index: 2;
    position: relative;
    gap: 10px;
}
.gif-loader .fa-spinner {
    font-size: 2.2rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg);}
}

@media (max-width: 900px) {
    header {
        position: static;
        width: 100%;
        padding: 0 3vw;
    }
    main {
        margin-top: 0;
    }
    .accueil {
        height: calc(100vh - 70px);
        min-height: unset;
    }
    .fonction-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .fonction-card {
        width: 95%;
        min-width: unset;
    }
    .logo {
        width: 90vw;
    }
    header {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    footer {
        font-size: small;
    }
    .footer-content {
        gap: 12px;
        padding: 0 2vw;
    }
    .footer-logo-social {
        min-width: 180px;
    }
    .footer-infos, .footer-legals {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 0 2vw;
    }
    .footer-infos {
        align-items: center;
        text-align: center;
    }
    .footer-legals {
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }
}

.logo {
    width: 800px; /* ou ajuste selon le rendu souhaité */
    max-width: 40vw;
    height: auto;
}