@font-face {
	font-family: 'MarkoOne';
	src: url('MarkoOne-Regular.ttf') format('truetype');
}
:root {
    --primary: #35a2c1;
    --secondary: #ffc35a;
    --success: #0acf97;
    --danger: #fa5c7c;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}
body {
    background: #eee;
    color: #333;
    font-size: 16px;
    height: 100%;
    margin: 0px;
}
* {
    box-sizing: border-box;
    font-family: 'MarkoOne', sans-serif;
}

.nav {
    position: fixed;
    width: 100%;
    transition: background 0.3s ease;
    z-index: 20;
}
.nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
}
.nav .logo img {
    height: 80px;
}
.links {
    display: flex;
    font-weight: 300;
}
.links a {
    text-decoration: none;
    color: #fff;
    padding: 30px 10px;
    position: relative;
}
.links a:hover {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}
.scroll {
    background: #fff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}
.scroll .links a {
    color: #236b80;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 80%;
    max-height: 1500px;
    background-image: url(../img/background.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: brightness(40%);
}
.visible .zoom {
    animation: 0.8s zoomIn 0.3s ease;
}
@keyframes zoomIn {
    50% {
        transform: scale(1.2);
    }
}

.board {
    position: relative;
}
.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: 165px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid #ffc35a;
}
.spinner {
    margin: auto;
    position: relative;
    height: 350px;
    width: 350px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 4s;
    transition-timing-function: cubic-bezier(0.3, -0.2, 0, 1.1);
}
.spinner:after {
    content: "";
    position: absolute;
    height: 40px;
    width: 40px;
    background: #fff;
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 100%;
}
.spinner .slice {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 120px;
    width: 160px;
    text-align: right;
    margin-top: -60px;
    transform-origin: left center;
}
.spinner .slice:before {
    content: "";
    display: block;
    position: absolute;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-right: 180px solid #35a2c1;
}
.spinner .slice:nth-child(even):before  {
    border-right: 180px solid #236b80;
}
.spinner .slice div {
    position: absolute;
    width: 100%;
    font-size: 14px;
    color: #fff;
    margin-top: 50px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.spinner .slice:nth-child(1) {
    transform: rotate(0deg);
}
.spinner .slice:nth-child(2) {
    transform: rotate(calc(36deg*1));
}
.spinner .slice:nth-child(3) {
    transform: rotate(calc(36deg*2));
}
.spinner .slice:nth-child(4) {
    transform: rotate(calc(36deg*3));
}
.spinner .slice:nth-child(5) {
    transform: rotate(calc(36deg*4));
}
.spinner .slice:nth-child(6) {
    transform: rotate(calc(36deg*5));
}
.spinner .slice:nth-child(7) {
    transform: rotate(calc(36deg*6));
}
.spinner .slice:nth-child(8) {
    transform: rotate(calc(36deg*7));
}
.spinner .slice:nth-child(9) {
    transform: rotate(calc(36deg*8));
}
.spinner .slice:nth-child(10) {
    transform: rotate(calc(36deg*9));
}

.section {
    padding: 40px 20px;
}
.section.lg {
    padding-top: 100px;
}
.link {
    color: var(--primary);
    text-decoration: none;
}
.link:hover {
    color: #236b80;
    text-decoration: underline;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.flex.center {
    align-items: center;
    justify-content: center;
}
.flex.space {
    justify-content: space-around;
}
.flex.grid div {
    flex: 1;
}
.content {
    position: relative;
    max-width: 1200px;
    margin: 0px auto;
    z-index: 2;
}
.content.anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.content.anim.visible {
    opacity: 1;
    transform: translateY(0);
}
.table {
    background: #fff;
    color: #000;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 5px 10px;
    display: table;
    table-layout: auto;
    width: 100%;
}
.table-header {
    display: table-header-group;
    font-weight: bold;
    font-size: 17px;
}
.table-row {
    display: table-row-group;
    font-size: 15px;
}
.table-header div, .table-row div {
    display: table-cell;
    padding: 10px 5px;
    vertical-align: middle;
}
.table img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 10px;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
}
.grid-items .item {
    text-align: center;
    border-radius: 10px;
    background: rgba(255,255,255, 0.8);
    color: #333;
    padding: 10px 10px 20px 10px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.grid-items .item.mea {
    border: 2px solid var(--secondary);
}
.grid-items .item:hover {
    background: #fff;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.4);
}
.grid-items .item img {
    width: 100%;
    border-radius: 5px;
}



.modal {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.4);
    z-index: 30;
}
.modal.active {
    display: block;
}
.modal .close {
    position: absolute;
    top: 0px;
    right: 25px;
    font-size: 80px;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.modal .close:hover {
    transform: scale(1.4);
}
.modal .content {
    transform: scale(0);
    background: #fff;
    color: #333;
    width: 95%;
    max-width: 800px;
    max-height: calc(100% - 150px);
    border-radius: 10px;
    clip-path: inset(0 round 10px);
    text-align: center;
    margin: 100px auto 50px auto;
    padding: 30px 20px;
    overflow-y: auto;
}
.modal.active .content {
    animation: 0.5s modal-in forwards;
}
@keyframes modal-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.modal .content img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
}

.d-none {
    display: none;
}
.switch {
    appearance: none;
    display: block;
    position: relative;
    height: 30px;
    min-width: 65px;
    padding: 3px;
    border-radius: 15px;
    border: 2px solid #aaa;
    cursor: pointer;
}
.switch:before {
    content: 'NON';
    position: absolute;
    top: 5px;
    transform: translateX(23px);
    transition: transform 0.3s;
}
.switch:after {
    content: '';
    position: absolute;
    background: #aaa;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    transition: transform 0.3s;
}
.switch:checked:before {
    content: 'OUI';
    transform: translateX(5px);
}
.switch:checked:after {
    transform: translateX(35px);
}
.input {
    display: inline-block;
    text-align: left;
    min-width: 100px;
    width: 100%;
    padding: 10px 15px;
    background: #fff;
    border: 1.5px solid #aaa;
    outline: none;
    font-size: 15px;
    transition: background 0.1s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    cursor: pointer;
}
.input:hover, .input:focus {
    background: #f0f0f0;
}
.btn {
    display: inline-block;
    padding: 10px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    transition: background 0.3s ease;
    text-decoration: none;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    cursor: pointer;
}
.btn.danger {
    background: var(--danger);
}
.btn:not(.danger):hover {
    background: #236b80;
}
.input.lg, .btn.lg {
    padding: 20px;
}
.badge {
    display: inline-block;
    vertical-align: text-top;
    padding: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.badge.secondary {
    background: var(--secondary);
}
.text-primary {
    color: var(--primary);
}
.text-secondary {
    color: var(--secondary);
}
.text-success {
    color: var(--success);
}
.text-danger {
    color: var(--danger);
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 25px; }
.mt-3 { margin-top: 50px; }
.mt-4 { margin-top: 100px; }
.alerte {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
    border-radius: 3px;
}
.alerte.success {
    padding: 10px;
    background: var(--success);
    border: 1.5px solid #ddd;
}
.alerte.danger {
    padding: 10px;
    background: var(--danger);
    border: 1.5px solid #ddd;
}

.feature {
    background-image: url(../img/feature.png);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 60px 20px;
}
.feature:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: brightness(30%);
}
.wiki {
    background: rgba(255,255,255, 0.85);
    border-radius: 10px;
    box-shadow: 0px 1px 5px rgba(0,0,0, 0.2);
    margin-bottom: 20px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary);
}
.titre {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}
.titre::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    color: var(--secondary);
    transition: transform 0.3s;
}
.wiki.open .titre::after {
    transform: rotate(-180deg) translateY(3px);
}
.description {
    color: #444;
    margin-top: 20px;
    display: none;
}
.wiki.open .description {
    display: block;
    animation: fadeDown 0.4s ease;
}

body.noel {
    background: #702020;
    color: #fff;
}
.footer {
    position: relative;
    background: #236b80;
    color: #fff;
    padding: 20px;
    z-index: 10;
}
.footer a {
    color: #ccc;
    text-decoration: none;
}
.footer a:hover {
    color: #aaa;
    text-decoration: underline;
}
.footer hr {
    background: #ddd;
}

.snow {
    background-image: url(../img/snow.png);
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    animation: snow 30s linear infinite;
    filter: blur(1px) brightness(0.90);
    z-index: 1;
}
@keyframes snow {
    0% { background-position: 0px 0px; }
    100% { background-position: 1000px 1000px; }
}
.snow .traineau {
    position: absolute;
    width: 200px;
    animation: traineau 20s linear infinite;
    z-index: 1;
}
@keyframes traineau {
    0% { top:50%; left:-200px; }
    5% { top:50%; left:-200px; transform:rotate(-5deg); }
    20% { top:10%; left:100%; transform:rotate(-20deg); }
    100% { top:10%; left:100%; }
}

@media (max-width: 1200px) {
    .grid-items {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .grid-items {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 700px) {
    .logo span {
        display: none;
    }
    .links {
        overflow-x: auto;
    }
    .flex.adapt {
        flex-direction: column;
        align-items: center;
    }
    .text-left, .text-right {
        text-align: center;
    }
    .grid-items {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
}