/* --- Polices --- */
@font-face {
    font-family: 'Melbourne';
    src: url("../../fonts/melbournebold.ttf") format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Melbournethin';
    src: url("../../fonts/melbourne.ttf") format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Andaluz';
    src: url("../../fonts/Andaluz-Regular.otf") format('truetype');
    font-weight: bold;
}

/* --- Global --- */
body {
    color: white;
    background-color: #020411;
    font-family: 'Melbourne', sans-serif;
    display: flex;
    justify-content: center;
    height:100%;
    width: 100%;
    padding-top: 200px;
}
h1 {
    margin: 0 auto;
    margin-bottom: 2vh;
    font-size: 90px;
    font-family: 'Andaluz', serif;
    color: white;
    text-align: center;
}

/* --- Menu principal --- */
.Menugrand { display: none; }

/* --- Conteneur fixe --- */
.fixed-container {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1940px;
    max-height: 73px;
    padding: 0 60px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 1000;
    box-sizing: border-box;
    pointer-events: none;
}
.fixed-container .logo-bar,
.fixed-container .menu {
    pointer-events: auto;
}

/* Logo */
.logo-bar {
    height: 73px;
    width: 240px;
    background-image: url(../../Image/Grand.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Menu */
.menu {
    display: flex;
    gap: 23px;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 11px;
}
.menu a { text-decoration: none; }
.menu-item {
    color: white;
    font-size: 25px;
    width: 166px;
    min-height: 53px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.3s ease;
    height: 53px;
}
.menu-item.expanded { height: 159px; }

/* --- Bouton aide --- */
.help-button {
    color: white;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}
.help-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Boîte d’aide */
.help-box {
    position: absolute;
    top: 125%;
    right: 55px;
    width: 360px;
    height: 160px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 16px;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 998;
}
.help-box.visible {
    opacity: 1;
    pointer-events: auto;
}
.blur-wrapper {
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  
  body.blur-active .blur-wrapper {
    filter: blur(3px) brightness(0.7);
  }
/* --- Bouton CTA --- */
.cta-button {
    width: 645px;
    height: 96px;
    margin: 0 auto;
    border-radius: 90px;
    border: 5px solid white;
    box-shadow: 0px 4px 4px rgba(160, 171, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: transparent;
    cursor: pointer;
    transition: all 1s ease;
}
.cta-button:hover {
    color: #020411;
    font-size: 30px;
    background-color: white;
}
.Carte { 
    margin: 5% 0%;
    border-radius: 15px;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#itemList {
    max-width: 1400px;
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: scroll;
    justify-content: center;
    padding: 1%;
    display: grid;
    grid-template-columns: repeat(8, 10%);
    grid-template-rows: repeat(2, 10%);
    row-gap: 25vh;
    column-gap:2vw;
    width: 90vw;
}
.rouge {
    background: #ad5d5d;
}
.bleu {
    background: #4d5ea1;
}
.vert {
    background: #587a3a;
}
.item img {
    width: 100%;
    transition: all 0.3s ease;
}

input {
    width: 90%;
    height: 40px;
    border-radius: 20px;
    font-family: 'Melbourne', sans-serif;
    padding: 0 20px;
    font-size: 18px;
    border:solid 5px rgb(255, 255, 255);
    background-color: transparent;
    color: rgb(255, 255, 255);
    outline: none;
}
::placeholder {
    color: rgb(255, 255, 255);
    opacity: 0.8;
    font-family: "Andaluz", serif;
    font-size: 16px;
}