@media (prefers-color-scheme: dark) {
    :root {
        --placeholder-color: rgb(116, 116, 116);
        --background-color: #161616;
        --background-container: #232323;
        --primary-color: rgb(216, 216, 216);
        --primary-color-b: rgb(173, 173, 173);
        --secondary-color: black;
        --shadow-color: rgba(29, 29, 29, 0.95);
        --popup-color: rgb(255, 255, 255);
        --input-color: rgba(31, 31, 31, 0);
        --selected: rgb(57, 57, 57);
        --border: #ccc;
        --border-2: #eaeaea;
        --button-color-1: white;
        --button-color-1-b: rgb(48, 48, 48);
        --button-color-2: rgb(34, 34, 34);
        --button-color-2-b: rgb(42, 42, 42);
        --caret: white;
        --font-size-phone: 20px;
        --font-size-phone-title: 35px;
        --font-size-phone-category: 30px;
    }

    body {
        backdrop-filter: invert();
    }

    body::before {
        filter: invert(1);
    }

    header {
        background: linear-gradient(to right, #070707, #202020) !important;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --placeholder-color: rgb(116, 116, 116);
        --background-color: #efefef;
        --background-container: #f6f6f6;
        --primary-color: rgb(32, 32, 32);
        --primary-color-b: rgb(63, 63, 63);
        --secondary-color: rgb(233, 233, 233);
        --shadow-color: rgba(196, 196, 196, 0.95);
        --popup-color: rgb(255, 255, 255);
        --input-color: rgba(31, 31, 31, 0);
        --selected: rgb(237, 237, 237);
        --border: #ccc;
        --border-2: #acacac;
        --button-color-1: rgb(32, 32, 32);
        --button-color-1-b: rgb(220, 220, 220);
        --button-color-2: rgba(255, 255, 255, 0);
        --button-color-2-b: rgb(230, 230, 230);
        --caret: black;
        --font-size-phone: 20px;
        --font-size-phone-title: 35px;
        --font-size-phone-category: 30px;
    }

    .logo img {
        filter: invert(1);
    }
}

html {
    background-color: var(--background-color);
}
body {
    background-color: var(--background-color);
}


button,
a {
    all: unset;
    /* Supprime tous les styles par défaut */
    display: inline-block;
    /* Permet de définir largeur/hauteur */
    cursor: pointer;
    /* Ajoute le curseur interactif pour l'accessibilité */
}

/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--primary-color);
}

html {
    font-size: 100%;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-container);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 2.3rem;
    margin: 0;
    padding: 0;
    margin-left: 1rem;
    margin-top: 0.2rem;
}

/* MENU TOGGLE */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 2rem;
    height: 1.5rem;
    position: relative;
}

.menu-toggle div {
    position: absolute;
    height: 0.3rem;
    background: var(--primary-color);
    border-radius: 0.2rem;
    transition: 0.3s ease-in-out;
}

.bar1 {
    width: 2rem;
    top: 0;
}

.bar2 {
    width: 2rem;
    top: 0.6rem;
}

.bar3 {
    width: 1rem;
    top: 1.2rem;
    left: 0;
}

/* ANIMATION DU MENU HAMBURGER EN CROIX */
.menu-toggle.active .bar1 {
    transform: translateY(0.6rem) rotate(45deg);
}

.menu-toggle.active .bar2 {
    opacity: 0;
}

.menu-toggle.active .bar3 {
    transform: translateY(-0.6rem) rotate(-45deg);
    width: 2rem;
    left: 0;
}

/* MENU LATÉRAL */
.menu {
    position: fixed;
    z-index: 5;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background: var(--background-color);
    box-shadow: -0.125rem 0 0.625rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
}

.menu ul {
    list-style: none;
    text-align: center;
}

.menu ul li {
    margin: 1.5rem 0;
}

.menu ul li a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* OUVERTURE DU MENU */
.menu.open {
    right: 0;
}

.auth-container {
    padding: 1rem;
}

/* AUTH LINKS */
.auth-links {
    display: flex;
    gap: 1rem;
}

.auth-links a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: opacity 0.3s;
}

.auth-links a:hover {
    opacity: 0.7;
}


.menu-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points {
    background: none;
    border-bottom: 3px solid var(--primary-color) !important;
    text-decoration: none !important;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

#profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    margin-left: auto;
}

.center-text {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-color);
    font-family: Arial, sans-serif;
}

.center-text h1 {
    font-size: 5rem;
    font-weight: bold;
    text-wrap: nowrap;
}

.center-text p {
    color: var(--primary-color-b);
    font-size: 1.5rem;
    margin-top: 0px;
}










.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Structure du menu */
.menu ul {
    display: flex;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.menu-left, .menu-right, .menu-center {
    display: flex;
    align-items: center;
}

/* Alignement spécifique */
.menu-left {
    flex: 1;
    justify-content: flex-start;
}

.menu-center {
    flex: 0;
    justify-content: center;
    font-weight: bold;
}

.menu-right {
    flex: 1;
    justify-content: flex-end;
}

/* Espacement des liens */
.menu a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 10px 15px;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--primary-color-b);
}

/* Style des points */
.points {
    font-weight: bold;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
}

/* Responsivité */
@media (max-width: 768px) { 
    /* Sur mobile, on remet le menu en colonne */
    .menu {
        margin-top: 10vh;
        flex-direction: column;
        align-items: center;
    }

    .menu-left, .menu-right, .menu-center {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
        flex-direction: column;
    }

    .menu ul {
        flex-direction: column;
    }
    .offers {
        flex-direction: column;
    }
    .offer {
        margin: auto;
        width: 50vw;
    }
    .menu-infos {
        display: flex;
        flex-direction: row !important;
    }
}






























.store-container {
    margin: auto;
    margin-top: 5rem;
    width: 80%;
    max-width: 800px;
    background: var(--background-container);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.store-block {
    margin-bottom: 20px;
}

h2 {
    color: var(--primary-color);
}

.offers {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 2vh;
}

.offer {
    background: var(--background-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
}

.offer img {
    width: 80px;
    height: 80px;
}

.offer-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
}

.offer-price {
    color: var(--primary-color-b);
    font-size: 18px;
    font-weight: bold;
}
#search, #quantity {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
}

#suggestions {
    margin-top: 10px;
}

.suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-color);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    cursor: pointer;
}

.suggestion p {
    margin: 0;
}

.suggestion .name {
    color: var(--primary-color);
    font-weight: bold;
}

.suggestion .price {
    color: var(--primary-color-b);
}

.suggestion img {
    width: 40px;
    height: 40px;
}

.price {
    font-size: 20px;
    font-weight: bold;
}

.price.red {
    color: red;
}

.price.green {
    color: green;
}

#buy-button {
    width: 90%;
    padding: 15px;
    font-size: 18px;
    background: var(--background-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: auto;
    margin-top: 10px;
}

#buy-button:hover {
    background: var(--primary-color-b);
}
.store-container:last-of-type .store-block:first-child h2 {
    margin-bottom: 2vh;
}