/* ========================================
 * PAGE-RECETTE-MOBILE-INFO.CSS
 * Styles pour la section d'informations mobile (auteur, notation, saisonnalité)
 * Visible uniquement sur écrans ≤ 1024px
 * ======================================== */

/* ======================================
 * SECTION PRINCIPALE - Masquée par défaut
 * ====================================== */

.mobile-recipe-info-section {
    display: none; /* Masquée par défaut (desktop) */
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    border-top: none;
}

/* ======================================
 * CARTE D'INFORMATIONS COMBINÉES
 * Structure en 3 parties distinctes sur une ligne
 * ====================================== */

.mobile-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* LIGNE 1 : IDENTITÉ (Avatar et auteur) */
.mobile-identity-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
}

/* LIGNE 2 : NOTATION ET ACTIONS */
.mobile-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.mobile-avatar-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    padding: 10px;
}

.mobile-avatar-svg {
    width: 100%;
    height: 100%;
    fill: #ff6b6b;
}

.mobile-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.mobile-author-line {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.2;
}

.mobile-author-line strong {
    color: #333;
    font-weight: 500;
}

.mobile-author-date {
    color: #999;
    font-size: 0.75rem;
}

/* SECTION NOTATION */
.mobile-rating-section {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.mobile-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.mobile-stars-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-rating-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-reviews-count {
    color: #666;
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1;
    margin-left: 2px;
    transition: transform 0.3s ease, color 0.3s ease;
}



.mobile-stars {
    display: flex;
    gap: 2px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Animation de mise à jour des étoiles */
.mobile-stars.stars-updated {
    animation: pulse-stars 0.5s ease;
}

@keyframes pulse-stars {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mobile-stars .star {
    color: #FFD700;
    line-height: 1;
}

.mobile-stars .star.empty {
    color: #e0e0e0;
}

.mobile-stars .star.partial {
    position: relative;
    display: inline-block;
    width: 1.2rem;
}

.mobile-stars .star.partial .star-filled {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #FFD700;
}

.mobile-stars .star.partial .star-empty {
    color: #e0e0e0;
}



/* Utilisation des mêmes animations que desktop */
.mobile-rating-value.rating-updated,
.mobile-reviews-count.count-updated {
    animation: flash-highlight 1s ease;
}

@keyframes flash-highlight {
    0% { 
        color: #FFD700; 
        transform: scale(1.1); 
    }
    100% { 
        color: inherit; 
        transform: scale(1); 
    }
}

/* SECTION ACTIONS */
.mobile-actions-section {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
}

/* Section actions pleine largeur (quand notation supprimée) */
.mobile-actions-section.mobile-actions-full-width {
    flex: 1 1 100%;
    justify-content: center;
}

/* Boutons d'action unifiés */
.mobile-btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 90px;
    height: 70px;
    padding: 0.8rem 0.9rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
}

.mobile-btn-action:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    color: #333;
}

.mobile-btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.mobile-btn-text {
    font-size: 0.75rem;
    line-height: 1;
    text-transform: capitalize;
    margin-top: auto;
}

/* Bouton Noter avec statut utilisateur a noté */
.mobile-btn-rate.user-has-rated {
    background: #fff8e1;
    border-color: rgba(255, 215, 0, 0.5);
    position: relative;
    flex-direction: column; /* Garde la direction normale */
    justify-content: space-between;
    padding: 0.8rem 0.9rem; /* Même padding que le bouton Partager */
}

/* Conteneur pour l'étoile et la note sur la même ligne en haut */
.mobile-btn-rate.user-has-rated .mobile-btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 22px; /* Hauteur fixe pour aligner avec l'icône Partager */
}

.mobile-btn-rate.user-has-rated .mobile-btn-icon {
    fill: #FFD700;
    width: 24px;
    height: 24px;
}

.mobile-btn-rate.user-has-rated .mobile-btn-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0; /* Pas de margin auto car déjà géré par justify-content */
}

.user-rating-badge {
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1;
    color: #666;
    display: inline-block;
}

/* Pas de suppression des styles desktop car nous voulons les mêmes */

/* ======================================
 * SECTION SAISONNALITÉ
 * ====================================== */

.mobile-seasonality-section {
    background: transparent;
    border-radius: 12px;
    padding: 10px 0;
    width: 100%;
    /* Pas de box-shadow pour cette section */
    border: none;
    border-top: none;
    position: relative;
}

/* Indicateur de saisonnalité mobile */
.mobile-seasonality-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    background: transparent;
    position: relative;
    border: none;
    color: inherit; /* Couleur normale du texte */
}

/* Icône indicateur de saisonnalité mobile */
.mobile-seasonality-indicator-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-seasonality-indicator-icon.icon-en-saison {
    color: #4CAF50;
}

.mobile-seasonality-indicator-icon.icon-hors-saison {
    color: #ff6b6b;
}

.mobile-seasonality-indicator-text {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    color: inherit; /* Couleur normale du texte */
    display: inline; /* Sur mobile, tout sur la même ligne */
}

.mobile-details-link {
    color: var(--text-color-secondary, #666);
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: 5px;
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline;
}

.mobile-details-link:hover,
.mobile-details-link:active {
    color: var(--primary-color, #ff5a5f);
    opacity: 1;
    text-decoration: underline;
}

.mobile-section-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Badge sur le titre mobile - DEPRECATED (conservé pour compatibilité) */
/*
.mobile-season-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.mobile-season-badge.en-saison {
    background: #4CAF50;
    color: white;
    animation: fadeInScale 0.5s ease;
}

.mobile-season-badge.hors-saison {
    background: #ff6b6b;
    color: white;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
*/

.mobile-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b6b;
}

.mobile-seasonality-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    /* Masquer la barre de défilement */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

/* Masquer la barre de défilement pour Chrome, Safari et Opéra */
.mobile-seasonality-grid::-webkit-scrollbar {
    display: none;
}

.mobile-month-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: calc(100% / 9); /* Afficher environ 8-9 blocs */
    min-width: 70px;
    max-width: 100px;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.mobile-month-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.mobile-month-name {
    font-size: 0.75rem;
    text-transform: capitalize;
}

.mobile-month-active {
    background: #4CAF50;
    color: white;
    position: relative;
}

.mobile-month-active.mobile-month-current {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.mobile-month-active:not(.mobile-month-current) {
    opacity: 0.4;
}

.mobile-month-inactive {
    background: #ff6b6b;
    color: white;
}

.mobile-month-inactive.mobile-month-current {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.mobile-month-inactive:not(.mobile-month-current) {
    opacity: 0.4;
}

/* ======================================
 * MEDIA QUERY - Affichage sur écrans ≤ 1024px
 * ====================================== */

@media screen and (max-width: 1024px) {
    .mobile-recipe-info-section {
        display: block; /* Visible sur tablettes et mobiles */
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-info-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-seasonality-section {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ======================================
 * RESPONSIVE - Desktop (> 768px) - Layout sur 1 ligne
 * ====================================== */
@media screen and (min-width: 769px) {
    .mobile-info-card {
        align-items: center;
        padding: 1.5rem 2rem;
    }
    
    .mobile-identity-row {
        flex: 1 1 auto;
        justify-content: flex-start;
        text-align: left;
    }
    
    .mobile-author-info {
        align-items: flex-start;
    }
    
    .mobile-bottom-row {
        flex: 0 0 auto;
        gap: 2rem;
    }
    
    .mobile-rating-section {
        flex: 0 0 auto;
    }
    
    .mobile-rating-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .mobile-reviews-count {
        margin-left: 0;
    }
}

/* ======================================
 * RESPONSIVE - Tablettes (768px - 1024px)
 * ====================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Afficher les 12 blocs sur toute la largeur pour tablettes */
    .mobile-seasonality-section {
        padding: 0;
        margin: 0 0 30px 0;
        border-radius: 0;
        width: 100%;
    }
    
    .mobile-seasonality-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: visible; /* Pas de défilement */
        scroll-snap-type: none;
        justify-content: space-between; /* Répartition égale de l'espace */
    }
    
    .mobile-month-item {
        flex: 1 1 0; /* Répartition égale avec flex-basis à 0 */
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 0.9rem 0.3rem;
        aspect-ratio: auto; /* Retirer le ratio fixe pour cette taille */
    }
    
    .mobile-month-number {
        font-size: 1.15rem;
        font-weight: bold;
        margin-bottom: 0.25rem;
    }
    
    .mobile-month-name {
        font-size: 0.6rem;
        line-height: 1;
        text-transform: capitalize;
    }
}

/* ======================================
 * RESPONSIVE - Mobiles moyens (480px - 768px)
 * ====================================== */

@media screen and (max-width: 768px) {
    .mobile-info-card,
    .mobile-seasonality-section {
        border-radius: 8px;
    }
    
    .mobile-info-card {
        padding: 1.25rem;
        gap: 0;
    }
    
    .mobile-seasonality-section {
        padding: 0;
        margin: 0 0 30px 0;
    }
    
    /* LIGNE 1 : Identité centrée sur mobile */
    .mobile-identity-row {
        justify-content: center;
        text-align: center;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border: none;
    }
    
    .mobile-author-info {
        align-items: center;
        text-align: center;
    }
    
    /* LIGNE 2 : Note et actions */
    .mobile-bottom-row {
        gap: 3rem;
        justify-content: center;
    }
    
    .mobile-rating-section {
        flex: none;
    }
    
    .mobile-actions-section {
        flex: 0 0 0;
        gap: 0.5rem;
    }
    
    .mobile-identity-row {
        gap: 0.75rem;
    }
    
    .mobile-avatar-container {
        width: 45px;
        height: 45px;
        padding: 9px;
    }
    
    .mobile-author-line {
        font-size: 0.8rem;
    }
    
    .mobile-author-date {
        font-size: 0.7rem;
    }
    
    .mobile-stars {
        font-size: 1.2rem;
    }
    
    .mobile-rating-info {
        gap: 0.5rem;
    }

    .mobile-rating-value {
        font-size: 1.2rem;
    }
    
    .mobile-reviews-count {
        font-size: 0.8rem;
    }
    
    .mobile-btn-action {
        width: 80px;
        height: 70px;
        padding: 0.7rem 0.5rem;
    }
    
    .mobile-btn-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-btn-text {
        font-size: 0.8rem;
    }
    
    .mobile-btn-rate.user-has-rated {
        padding: 0.7rem 0.5rem; /* Même padding que les autres boutons */
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-text {
        font-size: 0.8rem;
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-icon-wrapper {
        gap: 4px;
        height: 18px; /* Hauteur ajustée pour cette taille */
    }
    
    .user-rating-badge {
        font-size: 1.25rem;
        margin-top: 1px;
    }
    
    /* Affichage sur une ligne avec défilement horizontal */
    .mobile-seasonality-grid {
        gap: 0.5rem;
    }
    
    .mobile-month-item {
        width: calc(100% / 6); /* Afficher environ 5-6 blocs */
        min-width: 65px;
        max-width: 80px;
        padding: 0.75rem 0.4rem;
    }
    
    .mobile-month-number {
        font-size: 1.1rem;
    }
    
    .mobile-month-name {
        font-size: 0.7rem;
    }
}

/* ======================================
 * RESPONSIVE - Petits mobiles (320px - 479px)
 * ====================================== */

@media screen and (min-width: 320px) and (max-width: 479px) {
    /* Affichage sur une ligne avec défilement horizontal pour petits mobiles */
    .mobile-seasonality-grid {
        gap: 0.25rem;
    }
    
    .mobile-month-item {
        width: calc(100% / 5); /* Afficher environ 4-5 blocs */
        min-width: 60px;
        max-width: 75px;
        padding: 0.65rem 0.25rem;
    }
    
    .mobile-month-number {
        font-size: 0.95rem;
    }
    
    .mobile-month-name {
        font-size: 0.62rem;
    }
}

/* ======================================
 * RESPONSIVE - Petits mobiles (< 480px)
 * ====================================== */

@media screen and (max-width: 480px) {
    .mobile-info-card {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        width: 100%;
        gap: 0;
    }
    
    .mobile-seasonality-section {
        padding: 0;
        margin: 0 0 30px 0;
        border-radius: 0;
        width: 100%;
    }
    
    .mobile-identity-row {
        gap: 1rem;
        justify-content: center;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-avatar-container {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    .mobile-author-line {
        font-size: 0.8rem;
    }
    
    .mobile-author-date {
        font-size: 0.65rem;
    }
    
    /* Section notation et actions sur la même ligne */
    .mobile-bottom-row {
        gap: 0.5rem;
        align-items: center;
    }
    
    .mobile-rating-section {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
    }

    .mobile-stars-row {
        gap: 0.5rem;
    }
    
    .mobile-stars {
        font-size: 1rem;
        gap: 2px;
    }
    

    .mobile-rating-value {
        font-size: 1.05rem;
        position: relative;
        bottom: 2px;
        right: 5px;
    }
    
    .mobile-reviews-count {
        font-size: 0.8rem;
    }
    
    /* Boutons plus compacts */
    .mobile-actions-section {
        gap: 0.5rem;
    }
    
    .mobile-btn-action {
        width: 70px;
        height: 65px;
        padding: 0.6rem 0.4rem;
    }
    
    .mobile-btn-icon {
        width: 22px;
        height: 22px;
    }
    
    .mobile-btn-text {
        font-size: 0.75rem;
    }
    
    .mobile-btn-rate.user-has-rated {
        padding: 0.6rem 0.4rem; /* Même padding que les autres boutons */
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-text {
        font-size: 0.8rem;
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-icon-wrapper {
        gap: 3px;
        height: 16px; /* Hauteur ajustée pour cette taille */
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .user-rating-badge {
        font-size: 1.1rem;
    }
    
    /* Saisonnalité - maintien sur une ligne avec défilement */
    .mobile-seasonality-grid {
        gap: 0.3rem;
    }
    
    .mobile-month-item {
        width: calc(100% / 5); /* Afficher environ 4-5 blocs */
        min-width: 55px;
        max-width: 70px;
        padding: 0.6rem 0.3rem;
    }
    
    .mobile-month-number {
        font-size: 1rem;
    }
    
    .mobile-month-name {
        font-size: 0.65rem;
    }
}

/* ======================================
 * RESPONSIVE - Très petits mobiles (< 380px)
 * ====================================== */

@media screen and (max-width: 380px) {
    /* Réduction supplémentaire pour très petits écrans */
    .mobile-info-card {
        padding: 0.85rem 0.6rem;
        gap: 0;
    }
    
    /* LIGNE 1 : Identité centrée */
    .mobile-identity-row {
        justify-content: center;
        text-align: center;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-author-info {
        align-items: center;
        text-align: center;
    }
    
    /* LIGNE 2 : Note et actions restent sur la même ligne */
    .mobile-bottom-row {
        gap: 0.5rem;
    }
    
    .mobile-rating-section {
        flex: 1 1 auto;
    }
    
    .mobile-actions-section {
        flex: 0 0 auto;
        gap: 0.3rem;
    }
    
    /* Réduction de la taille de l'avatar sur très petits écrans */
    .mobile-avatar-container {
        width: 35px;
        height: 35px;
        padding: 7px;
    }
    
    /* Badge plus petit sur très petits écrans */
    .mobile-btn-rate.user-has-rated {
        padding: 0.5rem 0.3rem; /* Même padding que les autres boutons */
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-icon-wrapper {
        gap: 2px;
        height: 16px; /* Hauteur fixe pour aligner avec l'icône Partager */
    }
    
    .mobile-btn-rate.user-has-rated .mobile-btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .user-rating-badge {
        font-size: 1rem;
    }
    
    .mobile-btn-action {
        width: 60px;
        height: 55px;
        padding: 0.5rem 0.3rem;
    }
    
    .mobile-btn-icon {
        width: 18px;
        height: 18px;
    }
    

    /* Saisonnalité compacte sur une ligne avec défilement */
    .mobile-seasonality-grid {
        gap: 0.2rem;
    }
    
    .mobile-month-item {
        width: calc(100% / 4); /* Afficher environ 3-4 blocs */
        min-width: 50px;
        max-width: 65px;
        padding: 0.5rem 0.2rem;
    }
    
    .mobile-month-number {
        font-size: 0.9rem;
    }
    
    .mobile-month-name {
        font-size: 0.6rem;
    }
}

/* ======================================
 * MODE SOMBRE (dark mode)
 * ====================================== */

body.dark-mode .mobile-info-card {
    background: #2a3334;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-identity-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .mobile-seasonality-section {
    background: transparent;
    border: none;
}

body.dark-mode .mobile-seasonality-indicator {
    background: transparent;
    border: none;
    color: inherit;
}

body.dark-mode .mobile-seasonality-indicator-text {
    color: inherit;
}

body.dark-mode .mobile-details-link {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .mobile-details-link:hover,
body.dark-mode .mobile-details-link:active {
    color: var(--primary-color, #ff5a5f);
    opacity: 1;
}

body.dark-mode .mobile-month-active {
    background: #4CAF50;
    color: white;
}

body.dark-mode .mobile-month-active.mobile-month-current {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

body.dark-mode .mobile-month-active:not(.mobile-month-current) {
    opacity: 0.4;
}

body.dark-mode .mobile-month-inactive {
    background: #ff6b6b;
    color: white;
}

body.dark-mode .mobile-month-inactive.mobile-month-current {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

body.dark-mode .mobile-month-inactive:not(.mobile-month-current) {
    opacity: 0.4;
}

body.dark-mode .mobile-author-line {
    color: #aaa;
}

body.dark-mode .mobile-author-line strong {
    color: #f0f0f0;
}

body.dark-mode .mobile-author-date {
    color: #888;
}

body.dark-mode .mobile-rating-value {
    color: #f0f0f0;
}

body.dark-mode .mobile-reviews-count {
    color: #888;
}

body.dark-mode .mobile-section-title {
    color: #f0f0f0;
}

body.dark-mode .mobile-avatar-container {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-avatar-svg {
    fill: #ff6b6b;
}

body.dark-mode .mobile-btn-action {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

body.dark-mode .mobile-btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}

body.dark-mode .mobile-stars .star.empty {
    color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .mobile-stars .star.partial .star-empty {
    color: rgba(255, 255, 255, 0.15);
}

/* Bouton noté en mode sombre */
body.dark-mode .mobile-btn-rate.user-has-rated {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

body.dark-mode .mobile-btn-rate.user-has-rated .mobile-btn-text {
    color: #aaa;
}

body.dark-mode .mobile-btn-rate.user-has-rated .mobile-btn-icon {
    fill: #FFD700;
}

body.dark-mode .user-rating-badge {
    color: #FFD700;
}

body.dark-mode .mobile-btn-rate.user-has-rated .mobile-btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
