@import url('https://fonts.cdnfonts.com/css/oups');

:root {
    /* Couleurs par défaut (Mode Clair) */
    --primary: #00897B;
    --primary-light: #E0F2F1;
    --primary-dark: #00695C;
    --accent: #FFB300;
    --dark: #202124;
    /* Texte foncé */
    --text-main: #3C4043;
    /* Texte principal */
    --text-grey: #5f6368;
    --light: #f8f9fa;
    /* Fond de page */
    --white: #ffffff;
    /* Fond des cartes/header */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --radius: 12px;
    --border-color: #eee;
    /* Nouvelle variable pour les bordures */
}

/* --- Thème Sombre (Dark Mode) --- */
[data-theme="dark"] {
    --primary: #26A69A;
    /* Un peu plus clair pour ressortir sur le noir */
    --primary-light: #004D40;
    /* Fond des tags plus sombre */
    --primary-dark: #80CBC4;
    --dark: #E0E0E0;
    /* Le texte foncé devient clair */
    --text-main: #E0E0E0;
    /* Le texte principal devient blanc cassé */
    --text-grey: #B0B0B0;
    --light: #121212;
    /* Fond de page très sombre */
    --white: #1E1E1E;
    /* Fond des cartes (Gris foncé matériel) */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5);
    /* Ombres plus marquées */
    --border-color: #333;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    margin: 0;
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    /* Transition douce */
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    /* justify-content: space-between;  <-- SUPPRIMER ou REMPLACER par flex-end */
    justify-content: flex-end;
    /* <-- AJOUTER : Pousse le menu (ul) vers la droite */
    padding: 0.8rem 20px;
    align-items: center;
    position: relative;
    /* <-- AJOUTER : Indispensable pour centrer le logo */
}

.logo {
    font-size: 3rem;
    /* Augmenté de 1.4rem à 2rem pour bien voir le style */
    font-weight: 400;
    /* La font Oups est déjà épaisse par nature */
    font-family: 'Oups', sans-serif;
    /* Nouvelle font */
    color: var(--primary);
    letter-spacing: 4px;
    /* Un peu d'espace car les lettres sont larges */
    text-transform: uppercase;
    text-decoration: none;
    position: absolute;
    /* Sort le logo du flux normal */
    left: 50%;
    /* Le place à 50% de la largeur */
    transform: translateX(-50%);
    /* Le recale parfaitement au centre */
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* --- Layout Général --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h2 {
    font-size: 2rem;
    font-family: 'Oups', sans-serif;
    letter-spacing: 4px;
}

/* --- Section Hero (Accueil) --- */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    /* J'ai augmenté un peu le padding pour qu'on voie mieux l'image */

    /* L'astuce : On met un dégradé noir semi-transparent (0.6) PAR DESSUS l'image */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://res.cloudinary.com/kastonerapp/image/upload/v1766043668/header_hero_mvtljt.webp');

    background-size: cover;
    /* L'image couvre tout l'espace sans être déformée */
    background-position: center;
    /* L'image est centrée (important sur mobile) */
    background-repeat: no-repeat;

    color: white;
    margin-bottom: 2rem;
}

.hero h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-family: 'Oups', sans-serif;
    letter-spacing: 4px;
}

/* --- Grille des Applications (Accueil) --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.app-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    letter-spacing: 1px;
    transition: transform 0.3s;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card h3 {
    font-size: 1.5rem;
    font-family: 'Oups', sans-serif;
    letter-spacing: 4px;
}

.app-card:hover {
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* --- Pages Détails Applications (Structure unifiée) --- */
.app-detail {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.app-icon-large {
    width: 150px;
    /* Définit la largeur de l'image */
    height: 150px;
    /* Définit la hauteur de l'image */
    border-radius: 50%;
    /* Rend l'image parfaitement ronde */
    object-fit: cover;
    /* S'assure que l'image ne soit pas déformée si elle n'est pas carrée */
    margin-bottom: 1rem;
    /* Garde l'espace sous l'icône */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Optionnel : ajoute une petite ombre */
    /* Supprimez les anciennes propriétés comme font-size ou line-height si elles existent */
}


.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 2. Date de mise à jour */
.app-meta {
    text-align: center;
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* 3. Nouveautés */
.news-section {
    background-color: #F1F3F4;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--accent);
}

.news-section h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. À propos (Contenu) */
.content h2 {
    font-size: 1.6rem;
    margin-top: 0;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 1.5rem;
}

.content h3 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.important-note {
    background: #FFF8E1;
    color: #F57F17;
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid #FFECB3;
}

/* 5. Liens de téléchargements */
.download-section {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.download-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Oups', sans-serif;
    letter-spacing: 4px;
}

.download-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-item img {
    height: 60px;
    transition: transform 0.2s;
}

.download-item:hover img {
    transform: scale(1.05);
}

/* 6. Réseaux Sociaux */
.social-section {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
}

.social-section h4 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Oups', sans-serif;
    letter-spacing: 4px;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 2rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-grey);
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer du site global */
footer.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

/* --- Section Screenshots (Mise à jour) --- */
/* --- Section Screenshots (Slider avec Flèches) --- */

/* Conteneur parent pour positionner les flèches */
.screenshots-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

/* Le conteneur d'images (masquage de la scrollbar) */
.screenshots-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0 20px 0;

    /* Magnétisme */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Masquer la scrollbar (Firefox, IE, Edge) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Masquer la scrollbar (Chrome, Safari, Opera) */
.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot-img {
    /* 4 images visibles */
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px);
    scroll-snap-align: start;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

/* --- Styles des boutons flèches --- */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    /* Fond blanc semi-transparent */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.scroll-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: 10px;
}

/* Position bouton gauche */
.scroll-btn.right {
    right: 10px;
}

/* Position bouton droite */

/* Adaptation Mobile */
@media (max-width: 768px) {
    .screenshot-img {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }

    /* Optionnel : On peut masquer les flèches sur mobile car on a le tactile */
    .scroll-btn {
        display: none;
    }
}

/* --- Lightbox (Zoom) --- */
.lightbox {
    display: none;
    /* Masqué par défaut */
    position: fixed;
    /* Reste fixe lors du scroll */
    z-index: 1000;
    /* Au-dessus de tout (le header est à 100) */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fond noir semi-transparent */
    align-items: center;
    /* Centre l'image verticalement */
    justify-content: center;
    /* Centre l'image horizontalement */
}

/* Cette classe est ajoutée par le JavaScript au clic */
.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    /* Empêche l'image de dépasser la hauteur de l'écran */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* Bouton de fermeture (la croix) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent);
    /* Utilise votre couleur d'accentuation */
    text-decoration: none;
    cursor: pointer;
}

/* Petite animation d'ouverture */
@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Adaptation Mobile pour la lightbox */
@media only screen and (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-content {
        width: 95%;
    }
}

/* --- Navigation Lightbox (Flèches) --- */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 1002;
    /* Au-dessus de l'image et du fond */
    padding: 10px;
    transition: color 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--accent);
    /* Change de couleur au survol */
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Adaptation mobile : flèches un peu plus petites */
@media only screen and (max-width: 768px) {
    .lightbox-nav {
        font-size: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* --- Logo Play Store dans le menu --- */
.nav-icon {
    display: flex;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s ease;
}

.nav-icon img {
    height: 20px;
    /* Ajustez la taille selon vos préférences */
    width: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    /* Une petite ombre subtile */
}

.nav-icon:hover {
    transform: scale(1.1);
    /* Petit effet de zoom au survol */
}

/* --- Header App avec Image de fond --- */
.app-hero {
    /* Mise en forme du bloc */
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    /* Coins arrondis comme le reste */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Une belle ombre portée */

    /* Gestion de l'image de fond via une variable --bg-image */
    background-color: var(--dark);
    /* Couleur de secours */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Texte et alignement */
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* On s'assure que le titre est bien blanc et lisible */
.app-hero h1 {
    color: white;
    font-family: 'Oups', sans-serif;
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* Ombre sous le texte pour le contraste */
    letter-spacing: 4px;
}

/* Adaptation du Tag pour aller sur fond sombre */
.app-hero .tag {
    background-color: rgba(255, 255, 255, 0.2);
    /* Fond blanc transparent */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    /* Petit effet flou moderne */
    text-shadow: none;
}

/* L'image de l'icône ressort mieux avec une petite ombre */
.app-hero .app-icon-large {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* --- Styles pour le Menu Latéral (Hamburger) --- */

/* Ajustement de la nav pour espacer le bouton gauche et le reste */
nav {
    justify-content: space-between;
    /* Change de flex-end à space-between */
}

/* Le bouton hamburger (icône) */
.menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    z-index: 101;
    /* Doit être cliquable */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.menu-btn:hover {
    color: var(--primary);
}

/* Le fond sombre quand le menu est ouvert */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Le panneau latéral (Menu) */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    /* Caché à gauche */
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
    /* Visible */
}

/* En-tête du menu */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
}

.side-menu-title {
    font-family: 'Oups', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Liste des éléments du menu */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Reset le gap de la nav principale */
}

.menu-list li {
    width: 100%;
}

/* Liens principaux */
.menu-list a {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.menu-list a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Titre de l'application dans le menu */
.app-item {
    border-bottom: 1px solid #f0f0f0;
}

.app-title {
    display: block;
    padding: 15px 20px 5px 20px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sous-menu (liens confidentitalité etc.) */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    /* Force l'affichage en colonne */
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Prend toute la largeur disponible */
}

/* S'assure que chaque élément de liste prend toute la largeur */
.submenu li {
    width: 100%;
    display: block;
}

/* S'assure que le lien est un bloc cliquable sur toute la ligne */
.submenu li a {
    display: block;
    padding: 10px 20px 10px 35px;
    /* Décalage pour l'effet d'arborescence */
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    color: var(--text-grey);
    text-decoration: none;
    /* Enlève le soulignement par défaut */
}

.submenu li a:hover {
    color: var(--primary);
    background: #fff;
    padding-left: 40px;
    /* Petit effet de mouvement au survol */
}

/* --- Bouton Retour (Flèche SVG) --- */
.nav-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    /* Même espacement que le menu hamburger */
    color: var(--text-main);
    transition: color 0.3s, transform 0.2s;
    line-height: 0;
    /* Évite les décalages verticaux */
}

.nav-back-btn:hover {
    color: var(--primary);
    transform: translateX(-3px);
    /* Petit effet de mouvement vers la gauche */
}

/* --- Bouton Thème Flottant (Floating Action Button) --- */
.theme-toggle {
    position: fixed;
    /* Fixe par rapport à l'écran */
    bottom: 20px;
    /* 20px du bas */
    right: 20px;
    /* 20px de la droite */
    width: 50px;
    /* Largeur */
    height: 50px;
    /* Hauteur */
    border-radius: 50%;
    /* Rend le bouton parfaitement rond */
    background-color: var(--white);
    /* S'adapte au thème (blanc ou gris foncé) */
    color: var(--text-main);
    border: 1px solid var(--border-color);
    /* Légère bordure */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Belle ombre pour le relief */
    cursor: pointer;
    z-index: 2000;
    /* S'assure qu'il est au-dessus de tout (images, footer...) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    /* Petit effet de grossissement au survol */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: var(--primary);
    /* L'icône prend la couleur primaire */
}

/* Ajustement pour mobile : un peu plus petit ou position différente si besoin */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Ajustements spécifiques pour le mode sombre */
[data-theme="dark"] .app-meta {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .menu-list a,
[data-theme="dark"] .app-item,
[data-theme="dark"] footer.site-footer,
[data-theme="dark"] .submenu li a {
    border-color: var(--border-color);
}

[data-theme="dark"] .submenu {
    background: #181818;
    /* Fond sous-menu sombre */
}

[data-theme="dark"] .submenu li a:hover {
    background: #252525;
}

[data-theme="dark"] .side-menu {
    background: var(--white);
}

/* Correction pour les pages politiques qui ont des styles inline */
.policy-content {
    background: var(--white) !important;
}

.policy-content h3,
.policy-content strong {
    color: var(--text-main) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.review-stars {
    color: #FFD700;
}

/* Mode sombre */
[data-theme="dark"] .app-stats-container {
    background: #252525;
}

/* --- NOUVEAU : Ligne Stats Hero --- */
.hero-stats-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.star-icon {
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: normal;
    margin-left: 2px;
}

.hero-review-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.hero-review-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- NOUVEAU : Slider Avis (Bas de page) --- */
.reviews-section-container {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reviews-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.4rem;
}

.reviews-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    width: 100%;
}

.reviews-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    min-width: 280px;
    /* Largeur fixe carte */
    max-width: 280px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    /* Empêche l'écrasement */
    display: flex;
    flex-direction: column;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.review-author {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.review-stars {
    font-size: 0.85rem;
    color: #FFD700;
}

.review-content {
    font-size: 0.9rem;
    color: var(--text-grey);
    font-style: italic;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

.review-nav-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    z-index: 2;
}

.review-nav-btn:hover {
    background: var(--primary);
    color: white;
}

/* Dark Mode Adaptation */
[data-theme="dark"] .stat-bubble {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .review-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .review-card-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .news-section {
    background-color: var(--white);
    /* Passe sur le fond gris foncé du thème */
    color: var(--text-main);
    border: 1px solid var(--border-color);
    /* Ajoute une bordure pour la visibilité */
}

/* Optionnel : Assurer que les titres dans ces sections sont bien lisibles */
[data-theme="dark"] .news-section h3,
[data-theme="dark"] .download-section h3 {
    color: var(--dark);
    /* Utilise la variable texte clair du mode sombre */
}