/*
Theme Name: Romance Québec
Description: Thème WordPress pour la gestion d'une collection de romances
Version: 1.0
Author: Romance Québec
*/

/* Reset et styles de base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Aspect ratio pour les couvertures de livres */
.aspect-book {
    aspect-ratio: 2/3;
    position: relative;
}

/* Styles pour les filtres mobiles */
.sidebar-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease-in-out;
}

.sidebar-mobile.open {
    left: 0;
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .sidebar-mobile {
        position: static;
        width: 300px;
        height: auto;
        max-height: calc(100vh - 2rem);
        left: 0;
    }
    
    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: block;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mobile-header {
        display: block;
    }
    
    .desktop-header {
        display: none !important;
    }
    
    .book-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Styles pour les filtres actifs */
.filter-btn.active {
    background: linear-gradient(to right, #ec4899, #8b5cf6) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fadeOut {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
}

/* Overlay pour les couvertures */
.book-overlay {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.8), rgba(139, 92, 246, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour les interactions utilisateur */
.user-interactions {
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
    border: 2px solid #f0abfc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Boutons d'état de lecture */
.reading-status-btn {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.reading-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reading-status-btn.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border-color: #ec4899;
    transform: scale(1.05);
}

.reading-status-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Étoiles de notation */
.star-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.star-rating .star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fbbf24;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star.filled {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.star-rating .star.empty {
    color: #d1d5db;
}

.star-rating .star.preview {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Bouton favori */
.favorite-btn {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    border: 2px solid #f87171;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: #dc2626;
}

.favorite-btn .heart {
    font-size: 1.25rem;
}

/* Notifications */
.romance-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.romance-notification.show {
    transform: translateX(0);
}

.romance-notification.success {
    border-left: 4px solid #10b981;
}

.romance-notification.error {
    border-left: 4px solid #ef4444;
}

.romance-notification.info {
    border-left: 4px solid #3b82f6;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
}

/* Formulaire de commentaire */
.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Section spoiler */
.review-spoiler {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.5rem 0;
}

.spoiler-warning {
    font-weight: bold;
    color: #d97706;
    margin-bottom: 0.5rem;
}

.spoiler-toggle {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
}

.spoiler-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #fbbf24;
}

/* Widget de connexion */
.login-widget {
    background: linear-gradient(135deg, #ddd6fe, #e0e7ff);
    border: 2px solid #a78bfa;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.login-widget h3 {
    color: #6d28d9;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.login-widget p {
    color: #7c3aed;
    margin-bottom: 1.5rem;
}

.login-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    text-decoration: none;
    color: white;
}

/* Note badge */
.note-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Info cards */
.info-card {
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Responsive fixes */
@media (max-width: 640px) {
    .romance-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .romance-notification.show {
        transform: translateY(0);
    }
    
    .user-interactions {
        margin: 1rem -1rem;
        border-radius: 0;
    }
}

/* Styles pour les liens de cartes */
.book-card-link {
    text-decoration: none;
    color: inherit;
}

.book-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Correction pour les boutons qui ne fonctionnent pas */
.login-required {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Animation de chargement pour les interactions */
.user-interactions.loading {
    opacity: 0.7;
    pointer-events: none;
}

.user-interactions.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ec4899;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.book-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les livres qui disparaissent lors du filtrage */
.book-card.fadeOut {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Style du bouton "Charger plus" */
#load-more-btn button {
    position: relative;
    overflow: hidden;
}

#load-more-btn button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#load-more-btn button:hover::before {
    left: 100%;
}

/* Indicateur de chargement amélioré */
#loading-more {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Amélioration du compteur avec gradient */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Animation de shimmer pour les boutons */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive pour le bouton "Charger plus" */
@media (max-width: 768px) {
    #load-more-btn button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    #load-more-btn p {
        font-size: 12px;
        margin-top: 8px;
    }
}

/* Animation d'entrée pour les livres */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Style pour les statistiques dans le bouton "Charger plus" */
#load-more-btn p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 500;
}

/* Animation pour l'indicateur de chargement rotatif */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Effets sur les images */
.book-cover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.book-cover:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Overlay magique */
.book-overlay {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

/* Animation des filtres */
.filter-btn {
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.filter-btn:hover {
    transform: scale(1.1);
}

.filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animations pour les filtres */
.filter-btn.active {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Animation pour l'apparition des livres */
.book-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.15s; }
.book-card:nth-child(3) { animation-delay: 0.2s; }
.book-card:nth-child(4) { animation-delay: 0.25s; }
.book-card:nth-child(5) { animation-delay: 0.3s; }
.book-card:nth-child(n+6) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour la disparition */
.book-card.fadeOut {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Transitions fluides pour les boutons de série */
#serie-oui.active, #serie-non.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Glow effect */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff9ff3, #54a0ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow:hover::before {
    opacity: 1;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.shimmer:hover::after {
    left: 100%;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations pour la modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Effet 3D sur les cartes info */
.info-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Backdrop blur pour la modal */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Animation de rotation pour le bouton fermer */
.hover\:rotate-90:hover {
    transform: rotate(90deg);
}

/* Note badge premium */
.note-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Styles pour le formulaire */
.form-section {
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trope-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trope-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trope-btn.selected {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-color: #ff6b6b;
    color: white;
    transform: scale(1.05);
}

.selected-trope-tag {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    margin: 0.25rem;
    transition: all 0.2s ease;
}

.selected-trope-tag .remove-trope {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.selected-trope-tag .remove-trope:hover {
    opacity: 1;
}

.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .sidebar-mobile {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 85%;
        max-width: 320px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-mobile.open {
        transform: translateX(0);
    }
    
    .mobile-header {
        display: block;
    }
    
    .desktop-header {
        display: none;
    }
    
    .book-grid-mobile {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .filter-btn-mobile {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: block;
    }
    
    .sidebar-mobile {
        position: relative;
        transform: none;
        height: auto;
        width: 320px;
    }
    /* Correction pour le titre qui passe sous les divs suivantes */
.single-romance h1 {
    margin-bottom: 2rem !important; /* Force un espacement de 32px */
    line-height: 1.2 !important; /* Améliore l'espacement des lignes */
    padding-bottom: 0.75rem !important; /* 12px pour les lettres descendantes */
    position: relative;
    z-index: 10; /* S'assure que le titre reste au-dessus */
}

/* Alternative plus spécifique si le h1 générique ne fonctionne pas */
.container h1.text-4xl,
.container h1.md\\:text-5xl {
    margin-bottom: 2rem !important;
    line-height: 1.2 !important;
    padding-bottom: 0.75rem !important;
    position: relative;
    z-index: 10;
}

/* S'assurer que la div suivante ne chevauche pas */
.grid.grid-cols-1.lg\\:grid-cols-2 {
    margin-top: 1rem; /* Ajoute un espacement supplémentaire */
}
/* Rapprocher le nom de l'auteure du titre */
.single-romance h1.text-4xl {
    margin-bottom: 0.5rem !important; /* Réduit l'espace après le titre */
    line-height: 1.2 !important;
    padding-bottom: 0.25rem !important; /* Garde un peu d'espace pour les descendantes */
    position: relative;
    z-index: 10;
}

/* Ajuster l'espacement du paragraphe auteure */
.single-romance h1 + p {
    margin-top: 0 !important; /* Supprime l'espace au-dessus */
    margin-bottom: 2rem !important; /* Garde l'espace après pour la section suivante */
}

/* Alternative si la première règle ne fonctionne pas */
.container .mb-8 h1 {
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
    padding-bottom: 0.25rem !important;
}

.container .mb-8 p.text-xl {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}
}
/* ═══════════════════════════════════════════════════════════
   PATCH MOBILE — Romance
   Ajouter à la fin de style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Nav mobile : évite le débordement sur iPhone SE ── */
@media (max-width: 480px) {
    nav .container { padding: 0 12px; }
    nav h1 { font-size: 1.1rem !important; }
    nav h1 a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
        display: inline-block;
    }
}

/* ── Grille 1 colonne sous 400px, 2 colonnes entre 401-767px ── */
@media (max-width: 400px) {
    .book-grid-mobile {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}
@media (min-width: 401px) and (max-width: 767px) {
    .book-grid-mobile {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ── Formulaires mobiles : une colonne, pleine largeur ── */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .isbn-row {
        flex-direction: column;
    }
    .isbn-row input,
    .isbn-row .isbn-btn {
        width: 100% !important;
    }
    .form-card {
        padding: 1.25rem !important;
        border-radius: 16px;
    }
}

/* ── Tap targets minimum 44px (Apple HIG / Material Design) ── */
@media (max-width: 767px) {
    .filter-btn,
    .filter-mood,
    .filter-trope,
    .trope-chip,
    .mood-chip {
        min-height: 44px;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        display: inline-flex;
        align-items: center;
    }
    .sidebar-mobile .p-5 {
        padding: 1rem !important;
    }
    /* Espacement entre sections de filtres */
    .sidebar-mobile h3 {
        margin-top: 1rem;
        font-size: 0.8rem !important;
    }
}

/* ── Safe area iPhone X et plus (notch / home bar) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .sidebar-mobile {
        padding-bottom: env(safe-area-inset-bottom);
    }
    nav {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ── Carte livre : texte lisible sur petite grille ── */
@media (max-width: 480px) {
    .book-card .px-1 h3 {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    .book-card .px-1 p {
        font-size: 0.7rem;
    }
}

/* ── Modal / overlay plein écran sur mobile ── */
@media (max-width: 767px) {
    .modal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        position: fixed;
        bottom: 0;
        max-height: 90vh;
    }
    .modal-overlay {
        align-items: flex-end !important;
    }
}

/* ══════════════════════════════════════════════════
   AMÉLIORATIONS MOBILE — ajoutées pour nav bas
   ══════════════════════════════════════════════════ */

/* Espace en bas pour la nav fixe mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    main {
        padding-bottom: 72px;
    }
    /* Footer caché sur mobile (nav bas suffit) */
    footer {
        margin-bottom: 60px;
    }
    /* Agrandissement zones tactiles */
    .rom-chip,
    .rom-card,
    .rom-load-more button {
        -webkit-tap-highlight-color: transparent;
    }
    /* Grille 2 colonnes sur petits écrans */
    .rom-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    /* Cartes plus compactes */
    .rom-card-body {
        padding: 7px;
    }
    .rom-card-title {
        font-size: 0.77rem;
    }
    /* Sidebar en tiroir — déjà géré dans index.php */
}

/* Touch feedback sur les éléments interactifs */
@media (hover: none) {
    .rom-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(232,84,122,0.07);
    }
    .rom-card:active {
        transform: scale(0.97);
        box-shadow: 0 1px 6px rgba(232,84,122,0.10);
    }
}

/* ── Bouton cookie : caché sur mobile (bloque la nav bas) ── */
@media (max-width: 767px) {
    /* Cookie Admin Re-Consent (plugin utilisé sur ce site) */
    .cookieadmin_re_consent,
    /* Autres plugins courants en fallback */
    #CybotCookiebotDialog,
    .cky-btn-revisit-wrapper,
    .cky-revisit-bottom-left,
    #cookie-law-info-bar,
    .cookie-notice-container,
    [class*="cookieyes"],
    button[aria-label*="cookie" i] {
        display: none !important;
    }
}
