:root {
    --background-dark: #1a1a1a;
    --background-darker: #141414;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #646cff;
    --search-background: hsl(0, 0%, 16%);
    --button-background: #333333;
    --notification-color: #3498db;
  }

  body {
    background-color: black;
    color: var(--text-primary);
    margin: 0;
    font-family: arial, sans-serif;
  }

.container {
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    max-width: 800px;
  }

.main-header {
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: black;
    top: 0;
    z-index: 99;
}

.main-header-content {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.logo {
    height: 55px;
    width: auto;
    margin-bottom: 0rem!important;
}

.trophies-section {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0px;
}

.trophies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
  }


  .trophies-header h2 {
    margin-left: 0;
    color: white;
  }

h3 {
    color: #888;
    text-align: center;
    margin: 1rem 0;
}

.select-container {
    background-color: var(--search-background);
    border-radius: 20px;
    padding: 10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 20px;
    margin-inline: 0;
}

.custom-select {
    background: none;
    border: none;
    color: var(--text-primary);
    margin-left: 10px;
    width: 100%;
    outline: none;
    padding: 1px;
}

.custom-select option {
    background-color: #333;
    color: white;
    padding: 10px;
}

.custom-select option:first-child {
    color: #888;
}



.filter-btn {
    padding: 0.5rem 2rem;
    border-radius: 25px;
    border: 1px solid #fff;
    background: transparent;
    color: white;
    cursor: pointer;
    white-space: nowrap;
  }

  .filter-btn.active {
    background-color: white;
    color: black;
  }

  .filter-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 10px;
    width: 100%;
    overflow-x: auto;
}


.filter-buttons::-webkit-scrollbar {
    display: none;
}


.filter-buttons button {
    flex-shrink: 0;
}

.filter-buttons a {
    flex-shrink: 0;
    white-space: nowrap;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 0 10px;
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.media-item {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1000;
    margin: 0 auto;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: black;
    display: flex;
    justify-content: space-around;
    padding: 0.4rem;
    z-index: 1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    opacity: 1;
}

.nav-item img {
    width: 50px;
    height: 50px;
}

.nav-item .addItem {
    width: 90px;
    height: 90px;
    margin-top: -35px;
}

@media screen and (max-width: 768px) {
    .image-grid {
        gap: 0.5rem;
        padding: 0 5px;
    }

    .tags {
        padding: 0 5px;
    }

    .tag {
        padding: 0.5rem 1.5rem;
    }
}

.custom-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 white;
}

.custom-select option:checked {
    background-color: #333;
}


.clickable {
    cursor: pointer;
    transition: color 0.3s ease;
}

.clickable:hover {
    color: #fff;
}

.tags::-webkit-scrollbar {
    display: none;
}

.tags {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.media-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative; /* Ajout de cette ligne */
}

.media-viewer-content img,
.media-viewer-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    margin-top: 2rem!important;
}

.close-button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1001;
}

.close-button:hover {
    opacity: 0.8;
}

.section-temperature {
    padding: 20px;
    margin-top: 70px;
    width: 100%;
    box-sizing: border-box;
}

.temperature-title {
    text-align: left;
    color: white;
    margin-bottom: 20px;
}

.temperature-display {
    text-align: center;
    margin-bottom: 20px;
}

.temperature-value {
    color: white;
    font-size: 18px;
    font-weight: bolder;
}

.temperature-gauge-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.temperature-gauge {
    width: 70%;
    height: 10px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.temperature-gauge-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
    background: linear-gradient(to right, currentColor 0%, transparent 100%);
}

.temperature-gauge-fill.cold {
    width: var(--percentage);
    color: #3498db;
}

.temperature-gauge-fill.medium {
    width: var(--percentage);
    color: #9b59b6;
}

.temperature-gauge-fill.hot {
    width: var(--percentage);
    color: #e74c3c;
}

.temperature-help {
    text-align: center;
}

.help-text {
    color: #999;
    cursor: pointer;
    font-size: 13px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    align-items: flex-end;
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: black;
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

.modal-title {
    color: black;
    font-size: 21px;
    margin-bottom: 30px;
    text-align: left;
    font-weight: bold; color: black; background: linear-gradient(to right, #000, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.advantage-item {
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    margin-bottom: 20px;
    gap: 15px;
}

.advantage-text {
    text-align: left;
}

.circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.circle.empty {
    border: 1px solid silver;
}

.circle.filled {
    background: black;
    color: white;
}

.advantage-text h3 {
    color: black;
    margin: 0;
    text-align: left;
    font-size: 16px;
}

.advantage-text p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 14px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pour Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


/* Amélioration de l'affichage des médias */

/* Style pour les conteneurs de médias - format carré */
.media-item {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #000; /* Fond noir pour les zones non couvertes */
}

/* Style amélioré pour les vidéos - format carré et remplissage complet */
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre tout l'espace disponible */
    object-position: center; /* Centre la vidéo */
    background-color: #000; /* Fond noir pour les vidéos */
}

/* Style pour la visionneuse de médias */
.media-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style pour l'image dans la visionneuse */
#viewerImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Style pour le conteneur vidéo dans la visionneuse */
#videoContainer {
    width: 100%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style pour la vidéo dans la visionneuse */
#videoContainer video {
    max-width: 100%;
    max-height: 90vh;
    background-color: #000;
    width: 100%; /* Assure que la vidéo occupe toute la largeur disponible */
}

/* Overlay transparente pour capter les clics sur les vidéos */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

/* Assurer que les contrôles vidéo dans la visionneuse sont bien visibles */
#videoContainer video::-webkit-media-controls-play-button {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.5);
}

#videoContainer video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}