* {
    font-family: monospace, sans-serif;
    text-decoration: none;
}

:root {
    color-scheme: dark;
}

.color-blue {
    color: #2FB4E8;
}

.color-light-blue {
    color: #6AD6FF;
}

.color-green {
    color: #4CCB5A;
}

.color-red {
    color: #E85A5A;
}

.color-yellow {
    color: #F7D44A;
}

.color-orange {
    color: #D48A1F;
}

.color-purple {
    color: #A56CFF;
}

.alone-bold {
    font-weight: bold;
}

body.body-class {
    margin: 0;
    padding: 0;
    background-color: #2a2a2a;
    overflow: hidden;
}

.main-html {
    height: 100dvh;
    overflow-y: auto !important;
}

.main-container {
    position: relative;
    background: url('assets/fond.webp') no-repeat;
    background-size: cover;
}

.website-header {
    padding-top: 20px;
}

.menu-class {
    overflow: hidden;
    background: #3a3a3a;
    margin-left: 15%;
    margin-right: 15%;
    border: 4px solid #4a4a4a;
    border-radius: 25px;
    box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.5);
}

.menu-class a {
    float: left;
    font-size: 20px;
    color: white;
    text-align: center;
    padding: 24px 26px;
    text-decoration: none;
    cursor: pointer;
}

.menu-dropdown {
    float: right;
    overflow: hidden;
}

.menu-dropdown .menu-dropdown-btn {
    font-size: 20px;
    border: none;
    outline: none;
    color: white;
    padding: 24px 26px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}

.menu-class a:hover,
.menu-dropdown:hover .menu-dropdown-btn {
    background-color: #4a4a4a;
}

.menu-dropdown-items {
    display: none;
    position: absolute;
    background-color: #3a3a3a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.25);
    z-index: 1;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.menu-dropdown-items a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    width: auto;
    max-width: 380px;
}

.menu-dropdown-items a:last-child {
    text-align: center;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    font-weight: bold;
    color: #6AD6FF;
    border-top: 2px solid #6AD6FF;
}

.menu-dropdown-items a:hover {
    background-color: #4a4a4a;
}

.menu-dropdown-items a:first-of-type:hover {
    border-top-right-radius: 25px;
}

.menu-dropdown-items a:last-of-type:hover {
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.menu-mobile {
    display: none;
    margin-left: 25px;
    font-size: 40px;
}

.menu-dropdown.is-open .menu-dropdown-items {
    display: block;
}

@media only screen and (min-width: 1175px) {

    .menu-item.menu-right {
        float: right !important;
    }

    .menu-dropdown:hover .menu-dropdown-items {
        display: block;
    }
}

@media only screen and (max-width: 1175px) {

    .menu-class.is-mobile-open a.menu-item,
    .menu-class.is-mobile-open .menu-dropdown .menu-dropdown-btn {
        display: block !important;
    }

    .menu-mobile {
        color: white;
        display: block;
        float: right;
    }

    .menu-class a.menu-item {
        display: none;
    }

    .menu-dropdown .menu-dropdown-btn {
        display: none;
        width: 100%;
    }

    .menu-class {
        margin-left: unset;
        margin-right: unset;
    }

    .menu-class a.menu-title {
        display: inline-block;
        width: auto;
        text-align: left;
    }

    .menu-class a {
        float: none;
        display: block;
    }

    .menu-dropdown {
        float: none;
        text-align: left;
    }

    .menu-dropdown-items {
        border-top-left-radius: 25px;
        width: calc(100% - 8px);
    }

    .menu-dropdown-items a {
        max-width: unset;
    }

    .menu-dropdown-items a:first-child:hover {
        border-top-left-radius: 25px;
    }
}

@media only screen and (max-width: 360px) {
    .menu-dropdown .menu-dropdown-btn {
        font-size: 16px !important;
    }

    .menu-class a {
        font-size: 16px !important;
    }

    .menu-dropdown-items a {
        font-size: 16px !important;
    }
}

.white-line {
    height: 2px;
    background-color: #E0E0E0;
    margin-left: 28.5%;
    margin-right: 28.5%;
    margin-top: 25px;
    box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

/* Pour les projets en ligne: */
.website-main-panel-img {
    width: 255px;
    height: 255px;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .website-main-panel-img {
        width: 180px;
        height: 180px;
    }
}

/* Fin */

.website-main-panel {
    overflow-y: scroll;
    background: linear-gradient(135deg, #4a4a4a 0%, #424242 40%, #3a3a3a 75%, #323232 100%);
    padding: 20px;
    margin-top: 20px;
    border: 4px solid #4a4a4a;
    color: white;
    -webkit-box-shadow: 2px 4px 10px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 2px 4px 10px 4px rgba(0, 0, 0, 0.6);
    border-radius: 40px;
    height: 100%;
    margin-left: 15%;
    margin-right: 15%;
    text-align: center;
    min-height: 580px;
    /* Masquer la "scrollbar" sur Firefox. */
    scrollbar-width: none;
}

.website-main-panel::-webkit-scrollbar {
    display: none;
}

h1.website-main-panel-title {
    margin-top: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.website-main-panel-description {
    font-size: 22px;
    margin-right: 5%;
    margin-left: 5%;
    color: white;
}

.website-main-panel-description i {
    font-size: 18px;
}

.website-main-panel-description i.point {
    color: #6AD6FF;
    font-size: 14px;
}

@media only screen and (max-width: 728px) {
    .website-main-panel {
        padding: unset;
    }
}

/* Merci: https://stackoverflow.com/questions/16771225/css3-rotate-animation */
.rotate-animation {
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Fin */

.website-bottom {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.website-footer {
    -webkit-box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.65);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.65);
    background: #2a2a2a;
    width: 100%;
    color: white;
    margin-top: 20px;
    text-align: center;
}

div.social-media {
    padding: 10px 30px;
    cursor: default;
}

div.social-media i {
    font-size: 20px;
    color: white;
    padding: 15px 15px;
    cursor: pointer;
}

div.social-media i:hover {
    color: #e6e6e6;
}

/* Les classes sont toujours appliquées dans le HTML si nécessaire.*/

div.copyright-container {
    background: #3a3a3a;
    margin: 0;
    padding: 0;
}

.copyright-text {
    color: white;
    margin: 0;
    padding: 0;
    font-size: 22px;
}

p.copyright-text a.copyright-link {
    color: white;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.modalbox-class {
    position: fixed;
    top: 5dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 675px;
    max-height: 90dvh;
    background: linear-gradient(135deg, #4a4a4a 0%, #424242 40%, #3a3a3a 75%, #323232 100%);
    border: 4px solid #4a4a4a;
    border-radius: 40px;
    color: white;
    font-size: 20px;
    box-shadow: 2px 5px 20px 3px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    z-index: 1000;
    animation: modalanimation 0.25s ease-out;
}

@keyframes modalanimation {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

header.modalbox-header-class {
    padding: 18px 20px;
    background: linear-gradient(135deg, #6AD6FF 0%, #2FB4E8 50%, #0A6FA0 100%);
    border-bottom: 4px solid #4a4a4a;
    font-weight: bold;
    font-size: 24px;
}

.modalbox-header-close {
    float: right;
    margin-right: 10px;
    font-size: 26px;
    cursor: pointer;
}

.modalbox-main-container {
    overflow-y: auto;
    max-height: calc(90dvh - 100px);
    padding-bottom: 20px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    scrollbar-width: none;
}

.modalbox-main-container::-webkit-scrollbar {
    display: none;
}

.modalbox-text-container {
    margin: 20px 5%;
}

.modalbox-line {
    height: 2px;
    margin: 20px 20% 40px 20%;
    background-color: #E0E0E0;
    box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

select,
.modalbox-input,
.modalbox-range {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    background: #3a3a3a;
    border: 4px solid #5a5a5a;
    outline: none;
    color: white;
    font-size: 22px;
    border-radius: 40px;
    text-indent: 15px;
    appearance: none;
    box-shadow: 2px 5px 20px 3px rgba(0, 0, 0, 1);
}

.modalbox-input::placeholder {
    text-indent: 15px;
}

.modalbox-range::-moz-range-thumb {
    background: #2FB4E8;
    border: 4px solid #0A6FA0;
    height: 42px;
    width: 60px;
    border-radius: 50px;
    cursor: pointer;
}

.modalbox-range::-moz-range-thumb:hover {
    background: #6AD6FF;
}

.modalbox-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #2FB4E8;
    border: 4px solid #0A6FA0;
    height: 42px;
    width: 60px;
    border-radius: 50px;
    cursor: pointer;
}

.modalbox-range::-webkit-slider-thumb:hover {
    background: #6AD6FF;
}

.modalbox-description {
    font-size: 22px;
}

.modalbox-description.bold-large {
    font-size: 22px;
    font-weight: bold;
}

.modalbox-description i {
    font-size: 18px;
}

.modalbox-description i.point {
    color: #6AD6FF;
    font-size: 14px;
}

p.modalbox-errors-warnings-class {
    text-align: center;
    font-size: 22px;
    color: #E85A5A;
    font-weight: bold;
    margin: 0 30px 40px 30px;
    text-shadow: 3px 3px 7px #000000;
    cursor: pointer;
}

p.modalbox-errors-warnings-class:hover {
    color: #E56A75;
}

.modalbox-bottom {
    margin-bottom: 30px;
    text-align: center;
}

.modalbox-btn {
    font-size: 18px;
    border-radius: 50px;
    color: white;
    background: #2FB4E8;
    border: 4px solid #0A6FA0;
    padding: 12px 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.modalbox-btn:hover {
    background: #6AD6FF;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

@media (max-width: 600px) {

    .modalbox-class {
        width: 95%;
        top: 3dvh;
        border-radius: 20px;
    }

    header.modalbox-header-class {
        font-size: 20px;
        padding: 15px;
    }

    .modalbox-description {
        font-size: 18px;
    }

    select,
    .modalbox-input,
    .modalbox-range {
        font-size: 18px;
    }

    .modalbox-btn {
        font-size: 16px;
        padding: 10px 22px;
    }
}