body {
    font-family: Arial, Clean, Helvetica, sans-serif;
    font-size: 1em;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
}

header {
    background-color: #333333;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    align-items: center;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
}

#menu-toggle {
    font-family: Arial, Clean, Helvetica, sans-serif;
    font-weight: bold;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    z-index: 1005;
}

#navigation {
    display: none;
    background-color: #333;
    color: #fff;
    text-align: center;
}

#navigation.visible {
    display: block;
}

main {
    padding: 20px;
}

section {
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

h2 {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

.grid-container {
    --home-card-width: 150px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.home-carousel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}

.home-carousel.is-carousel-disabled {
    grid-template-columns: minmax(0, 1fr);
}

.home-carousel.is-carousel-disabled .home-carousel-arrow {
    display: none;
}

.home-carousel.is-carousel-disabled .grid-container {
    grid-column: 1;
}

.home-carousel.is-carousel-disabled .grid-container[data-home-mode="latest"],
.home-carousel.is-carousel-disabled .grid-container[data-home-mode="random"] {
    justify-content: center;
}

.home-carousel-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(101, 255, 159, .55);
    border-radius: 50%;
    background: rgba(0, 0, 0, .82);
    color: #65ff9f;
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(101, 255, 159, .16);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.home-carousel-arrow:hover:not(:disabled) {
    background-color: rgba(20, 60, 36, .9);
    transform: scale(1.08);
}

.home-carousel-arrow:disabled {
    opacity: .24;
    cursor: default;
    box-shadow: none;
}

.grid-container[data-home-mode="latest"],
.grid-container[data-home-mode="random"] {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.grid-container[data-home-mode="latest"]::-webkit-scrollbar,
.grid-container[data-home-mode="random"]::-webkit-scrollbar {
    display: none;
}

.grid-item {
    display: block;
    background-color: transparent;
    border-radius: 10px;
    overflow: visible;
    perspective: 900px;
    transition: transform 0.3s ease;
    text-align: center;
    padding: 0;
}

.grid-container[data-home-mode="latest"] > .grid-item,
.grid-container[data-home-mode="random"] > .grid-item {
    box-sizing: border-box;
    flex: 0 0 var(--home-card-width);
    width: var(--home-card-width);
    scroll-snap-align: start;
}

.grid-item.is-adaptive-hidden {
    display: block;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-3px);
}

.home-card-inner {
    position: relative;
    display: grid;
    min-height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.48s cubic-bezier(.2, .7, .2, 1);
}

.home-card-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 10px;
    border-radius: 10px;
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
}

.home-card-front {
    overflow: hidden;
    text-align: center;
}

.home-card-back {
    transform: rotateY(180deg);
    overflow: hidden;
    text-align: left;
    background:
      radial-gradient(120% 140% at 50% 0%, rgba(101, 255, 159, .16), transparent 44%),
      linear-gradient(160deg, #151515 0%, #252525 100%);
    border: 1px solid rgba(101, 255, 159, .28);
    color: #f4fff8;
}

.grid-item:hover .home-card-inner {
    transform: rotateY(180deg);
}

.grid-item:hover .home-card-face {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.72);
}

.grid-item h3 {
    display: -webkit-box;
    min-height: 3.75em;
    max-height: 3.75em;
    overflow: hidden;
    font-size: 1em;
    line-height: 1.25;
    margin: 8px 0;
    color: #fff;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.grid-item .btn {
    display: inline-block;
    align-self: center;
    margin-top: auto;
    padding: 10px 20px;
    background-color: #65ff9f;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.grid-item .btn:hover {
    background-color: #50e38f;
}

.home-card-back-content {
    min-width: 0;
}

.home-card-back-eyebrow {
    margin-bottom: 8px;
    color: #65ff9f;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.home-card-back dl {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.home-card-detail {
    min-width: 0;
}

.home-card-detail dt {
    color: #9dfdc0;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-card-detail dd {
    display: -webkit-box;
    margin: 2px 0 0;
    overflow: hidden;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.18;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.home-card-back-btn {
    margin-top: auto;
    align-self: center;
}

.grid-item-more {
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

@media (hover: none) {
    .grid-item:hover {
        transform: none;
    }

    .grid-item:hover .home-card-inner {
        transform: none;
    }
}

@media (max-width: 560px) {
    .home-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .home-carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
    }
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #65ff9f;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 1006;
	display: none; /* Initialement caché */
}

#scroll-to-top:hover {
    opacity: 1;
    background-color: #50e38f;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0; /* Supprimer la marge */
}

ul li {
    margin-bottom: 0.2em; /* Marge réduite */
}

a {
    color: #65ff9f; /* Liens en vert par défaut */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Transition pour l'effet lumineux */
    font-size: 1.2em; /* Taille de police réduite */
}

a:hover {
    color: #000; /* Texte blanc au survol */
    text-shadow: 0 0 10px #fff; /* Effet lumineux au survol */
}

.button {
    background-color: #65ff9f; /* Fond vert */
    border: none; /* Pas de bordure */
    border-radius: 10px; /* Bords arrondis */
    color: #fff; /* Texte blanc */
    padding: 10px 20px; /* Espacement interne */
    font-size: 1.2em; /* Taille de police */
    cursor: pointer; /* Curseur de type pointeur */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition pour l'effet de grossissement et d'ombre */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

.button:hover {
    transform: scale(1.5); /* Grossissement au survol */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée au survol */
}

article {
    display: flex;
    align-items: center;
    margin-bottom: 0.2em; /* Espacement réduit */
}

article p {
    margin: 0;
    margin-left: 0.5em; /* Marge réduite */
    font-size: 0.9em; /* Taille de police réduite */
}

.vignette {
    width: 40px; /* Taille réduite */
    height: 40px; /* Taille réduite */
    border-radius: 50%;
    object-fit: cover;
}

.sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Fond transparent */
    color: #ffffff;
    padding: 0.5em 0; /* Padding réduit */
    margin-bottom: 0.5em; /* Marge réduite */
    z-index: 1001; /* Assure que le menu reste au-dessus du contenu */
}

h3 {
    margin-top: 0.5em; /* Marge réduite */
    margin-bottom: 0.2em; /* Marge réduite */
    color: #fff;
    font-size: 1.1em; /* Taille de police réduite */
}

hr {
    width: 100%;
    margin: 10px 0; /* Marge réduite */
    border: none;
    border-top: 1px solid #ccc;
}

.btn {
    font-family: Arial, Clean, Helvetica, sans-serif;
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: rgba(0, 50, 0, 0.8);
}

.bandeau {
    display: flex;
    justify-content: space-around;
    background-color: #1e1e1e;
    padding: 10px;
    border-bottom: 1px solid #333;
}
.bandeau a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}
.bandeau-menu {
    display: none;
    flex-direction: column;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}
.bandeau-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    margin: 5px 0;
}
.menu-button {
    font-family: Arial, Clean, Helvetica, sans-serif;
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Fond transparent */
    color: #ffffff;
    padding: 0.5em 0; /* Padding réduit */
    margin-bottom: 0.5em; /* Marge réduite */
    z-index: 1001; /* Assure que le menu reste au-dessus du contenu */
}

/* Styles existants */
.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.1em; /* Espacement réduit */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    justify-content: center; /* Centre les éléments */
}

.nav-links li {
    margin: 0; /* Supprimer les marges */
    padding: 0.2em 0; /* Réduire le padding vertical */
}

.nav-links li a {
    color: #cccccc; /* Liens en gris très clair par défaut */
    text-decoration: none;
    display: block;
    padding: 0.2em 1em; /* Padding réduit */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Transition pour l'effet lumineux */
    font-size: 1em; /* Taille de police réduite */
}

.nav-links li a:hover {
    color: #fff; /* Texte blanc au survol */
    text-shadow: 0 0 10px #fff; /* Effet lumineux au survol */
}

/* Sélecteur de langue : même rendu que sur generique/navigation */
.nav-links li.lang-switcher {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    padding: 0.2em 0;
    margin: 0;
}

.nav-links li.lang-switcher::before {
    content: none !important;
}

.nav-links li.lang-switcher a.lang-flag {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 2px !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    color: inherit !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 0.45;
    background: transparent !important;
    transition: opacity 0.2s ease;
}

.nav-links li.lang-switcher a.lang-flag:hover {
    opacity: 1;
    color: inherit !important;
    text-shadow: none !important;
}

.nav-links li.lang-switcher a.lang-flag.lang-active {
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

.nav-links li.lang-switcher a.lang-flag img {
    display: block;
    width: auto;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
}

/* Nouveaux styles pour réduire les espacements verticaux */
.nav-links li br {
    display: block; /* Assurez-vous que le <br> est traité comme un bloc */
    margin: -2px 0; /* Utiliser des marges négatives pour rapprocher les éléments */
    line-height: 0.8; /* Réduire encore plus la hauteur de ligne */
    padding: 0; /* Assurez-vous qu'il n'y a pas de padding */
}
