/* ==========================================================================
   Restaurant Menu QR - Styles Front-Office v4.2.5
   ========================================================================== */

/* Variables CSS */
:root {
    --rmq-primary: #e74c3c;
    --rmq-secondary: #34495e;
    --rmq-success: #27ae60;
    --rmq-warning: #f39c12;
    --rmq-danger: #e74c3c;
    --rmq-light: #ecf0f1;
    --rmq-dark: #2c3e50;
    --rmq-border: #dce0e3;
    --rmq-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --rmq-radius: 8px;
}

/* ==========================================================================
   Affichage du Menu Public
   ========================================================================== */

.rmq-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* v4.1.2 - Supprimé le padding pour le hero pleine largeur */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* v4.1.5 - En-tête Hero avec image pleine largeur (sortie du conteneur) */
.rmq-restaurant-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--rmq-secondary); /* Fallback si pas d'image */
    margin-bottom: 15px; /* v4.1.5 - Réduit de 25px à 15px */
}

.rmq-hero-overlay {
    width: 100%;
    min-height: 320px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmq-hero-content {
    text-align: center;
    color: white;
    padding: 30px 20px;
    max-width: 800px;
    /* v4.2.0 - Layout en colonne pour empiler les éléments */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rmq-hero-content .rmq-restaurant-name {
    font-size: 2.5em;
    margin: 0 0 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.rmq-hero-content .rmq-restaurant-phone {
    margin: 8px 0;
    font-size: 1.1em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.rmq-hero-content .rmq-restaurant-phone a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.rmq-hero-content .rmq-restaurant-phone a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.rmq-hero-content .rmq-restaurant-address {
    margin: 8px 0 15px 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* v4.1.9 - Adresse cliquable avec fond et texte noir */
.rmq-hero-content .rmq-address-clickable {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 25px;
    text-shadow: none;
    margin-bottom: 10px;
}

.rmq-hero-content .rmq-address-clickable:hover {
    background: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.rmq-hero-content .rmq-restaurant-hours {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    display: block;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* v4.2.0 - Largeur automatique centrée */
    width: auto;
}

.rmq-hero-content .rmq-restaurant-hours .dashicons {
    display: block;
    margin: 0 auto 8px;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.rmq-hero-content .rmq-hours-content {
    font-size: 0.9em;
    line-height: 1.6;
}

.rmq-hero-content .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* v4.0.1 - Bouton de réservation dans le hero */
/* v4.1.9 - Centrage et pleine largeur du bouton */
.rmq-hero-content .rmq-restaurant-reservation {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.rmq-hero-content .rmq-btn-reservation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rmq-primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rmq-hero-content .rmq-btn-reservation:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.rmq-hero-content .rmq-btn-reservation .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 3px;
}

/* Ancien header (conservé pour rétrocompatibilité) */
.rmq-restaurant-header {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, var(--rmq-primary) 0%, #c0392b 100%);
    color: white;
    border-radius: var(--rmq-radius);
    margin-bottom: 20px;
    box-shadow: var(--rmq-shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rmq-restaurant-logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.rmq-restaurant-logo img {
    max-width: 250px;
    max-height: 180px;
    border-radius: 6px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* v4.0.1 - Bouton de réservation (ancien style) */
.rmq-restaurant-reservation {
    margin-top: 15px;
}

.rmq-btn-reservation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rmq-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rmq-btn-reservation:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.rmq-btn-reservation .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rmq-restaurant-name {
    font-size: 1.8em;
    margin: 0 0 8px;
    font-weight: 700;
}

.rmq-restaurant-address,
.rmq-restaurant-phone {
    margin: 4px 0;
    opacity: 0.95;
    font-size: 0.95em;
}

.rmq-restaurant-phone a {
    color: white;
    text-decoration: none;
}

.rmq-restaurant-header .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.rmq-restaurant-hours {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--rmq-radius);
    display: inline-block;
    text-align: left;
}

.rmq-restaurant-hours .dashicons {
    display: block;
    margin: 0 auto 8px;
    font-size: 20px;
}

.rmq-hours-content {
    font-size: 0.85em;
    line-height: 1.5;
}

/* v4.1.2 - Styles responsive pour le hero */
@media (max-width: 768px) {
    .rmq-restaurant-hero {
        min-height: 280px;
    }
    
    .rmq-hero-overlay {
        min-height: 280px;
    }
    
    .rmq-hero-content {
        padding: 20px 15px;
    }
    
    .rmq-hero-content .rmq-restaurant-name {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .rmq-hero-content .rmq-restaurant-phone {
        font-size: 1em;
    }
    
    .rmq-hero-content .rmq-restaurant-address {
        font-size: 0.9em;
    }
    
    .rmq-hero-content .rmq-restaurant-hours {
        padding: 10px 15px;
    }
    
    .rmq-hero-content .rmq-hours-content {
        font-size: 0.85em;
    }
    
    .rmq-hero-content .rmq-btn-reservation {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .rmq-restaurant-hero {
        min-height: 250px;
    }
    
    .rmq-hero-overlay {
        min-height: 250px;
    }
    
    .rmq-hero-content .rmq-restaurant-name {
        font-size: 1.5em;
    }
    
    .rmq-hero-content .rmq-restaurant-phone,
    .rmq-hero-content .rmq-restaurant-address {
        font-size: 0.85em;
    }
}

/* Masquer les éléments WordPress sur la page du menu public */
body.rmq-clean-menu .site-header,
body.rmq-clean-menu .site-footer,
body.rmq-clean-menu #masthead,
body.rmq-clean-menu #colophon,
body.rmq-clean-menu .entry-header,
body.rmq-clean-menu .entry-footer,
body.rmq-clean-menu #site-navigation,
body.rmq-clean-menu .site-branding,
body.rmq-clean-menu nav,
body.rmq-clean-menu .navigation,
body.rmq-clean-menu header:not(.rmq-restaurant-header),
body.rmq-clean-menu footer,
body.rmq-clean-menu .breadcrumbs,
body.rmq-clean-menu .site-info,
body.rmq-clean-menu .powered-by,
body.rmq-clean-menu .entry-title,
body.rmq-clean-menu .page-title,
body.rmq-clean-menu h1.entry-title,
body.rmq-clean-menu h1:not(.rmq-restaurant-name) {
    display: none !important;
}

/* S'assurer que le contenu du menu prend toute la largeur */
body.rmq-clean-menu .site-content,
body.rmq-clean-menu .entry-content,
body.rmq-clean-menu .content-area,
body.rmq-clean-menu main,
body.rmq-clean-menu article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.rmq-clean-menu {
    padding: 0 !important;
    margin: 0 !important;
}

/* Masquer "Conçu avec WordPress" partout */
.site-info,
.powered-by,
.wp-block-site-title a[href*="wordpress.org"],
a[rel="nofollow"][href*="wordpress.org"],
.site-footer .site-info,
#colophon .site-info,
footer .powered-by,
.footer-credits,
.site-generator,
a[href*="wordpress.org"][rel*="nofollow"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Navigation par boutons (style unifié avec gestion-menu) */
.rmq-menu-filters {
    justify-content: center;
    margin-bottom: 30px;
}

.rmq-menu-tab {
    /* Les styles sont hérités de .rmq-filter-btn */
}

/* Section de catégorie */
.rmq-category-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.rmq-category-section.active {
    display: block;
}

/* v4.1.5 - Contenu des onglets - supprimé padding-top pour réduire espace */
.rmq-tab-content {
    padding: 0 20px;
}

.rmq-category-title {
    font-size: 2em;
    color: var(--rmq-dark);
    margin: 0 0 20px; /* v4.1.5 - Pas de margin-top pour réduire l'espace après les filtres */
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rmq-light);
}

/* Grille des plats */
.rmq-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.rmq-menu-item {
    background: white;
    border-radius: var(--rmq-radius);
    overflow: hidden;
    box-shadow: var(--rmq-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* v3.6.0 - Flexbox pour aligner le bouton en bas */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rmq-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.rmq-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--rmq-light);
}

.rmq-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmq-item-content {
    padding: 20px;
    /* v3.6.0 - Flex pour pousser le bouton en bas */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rmq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rmq-item-title {
    font-size: 1.3em;
    margin: 0;
    color: var(--rmq-dark);
    flex: 1;
}

.rmq-item-price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--rmq-primary);
    white-space: nowrap;
    margin-left: 15px;
}

.rmq-item-description {
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.rmq-item-allergens {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--rmq-border);
    color: var(--rmq-warning);
}

.rmq-no-items {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* ==========================================================================
   Interface de Gestion (Front-Office)
   ========================================================================== */

.rmq-manager-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.rmq-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.rmq-manager-header h1 {
    margin: 0;
    color: var(--rmq-dark);
}

.rmq-manager-section {
    background: white;
    border-radius: var(--rmq-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--rmq-shadow);
}

.rmq-manager-section h2 {
    margin-top: 0;
    color: var(--rmq-dark);
    border-bottom: 2px solid var(--rmq-light);
    padding-bottom: 10px;
}

/* En-tête de section avec bouton */
.rmq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.rmq-section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

/* Formulaires */
.rmq-form {
    max-width: 100%;
}

.rmq-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rmq-form-group {
    margin-bottom: 20px;
}

.rmq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rmq-dark);
}

.rmq-form-group input[type="text"],
.rmq-form-group input[type="tel"],
.rmq-form-group input[type="number"],
.rmq-form-group textarea,
.rmq-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--rmq-border);
    border-radius: var(--rmq-radius);
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: white;
}

/* Style spécifique pour le select */
.rmq-form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.rmq-form-group select option {
    padding: 10px;
    background-color: white;
    color: #333;
    font-size: 1em;
}

.rmq-form-group input:focus,
.rmq-form-group textarea:focus,
.rmq-form-group select:focus {
    outline: none;
    border-color: var(--rmq-primary);
}

.rmq-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Info box */
.rmq-info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--rmq-primary);
    padding: 20px;
    margin-top: 20px;
    border-radius: var(--rmq-radius);
}

.rmq-info-box h3 {
    margin-top: 0;
}

.rmq-menu-url {
    background: white;
    padding: 15px;
    border-radius: var(--rmq-radius);
    font-family: monospace;
    word-break: break-all;
}

.rmq-menu-url a {
    color: var(--rmq-primary);
    text-decoration: none;
}

/* Filtres */
.rmq-filters {
    display: flex;
    gap: 8px; /* v4.0.2 - Réduit de 10px */
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.rmq-filter-btn {
    padding: 7px 14px; /* v4.0.2 - Réduit de 30% (était 10px 20px) */
    font-size: 0.85em; /* v4.0.2 - Réduit de 30% */
    border: 2px solid var(--rmq-border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.rmq-filter-btn:hover {
    border-color: var(--rmq-primary);
    color: var(--rmq-primary);
}

.rmq-filter-btn.active {
    background: var(--rmq-primary);
    color: white;
    border-color: var(--rmq-primary);
}

/* Grille de gestion des plats */
.rmq-items-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rmq-manager-item {
    background: white;
    border: 2px solid var(--rmq-border);
    border-radius: var(--rmq-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.rmq-manager-item:hover {
    border-color: var(--rmq-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Icône de drag & drop */
.rmq-drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    z-index: 10;
    transition: all 0.3s ease;
}

.rmq-drag-handle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.rmq-drag-handle .dashicons {
    color: white;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* État pendant le drag */
.rmq-manager-item.sortable-chosen {
    opacity: 0.5;
    cursor: move;
}

.rmq-manager-item.sortable-ghost {
    opacity: 0.3;
    background: #f0f0f0;
}

.rmq-manager-item-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--rmq-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmq-manager-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmq-no-image {
    color: #ccc;
}

.rmq-no-image .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.rmq-manager-item-content {
    padding: 15px;
    /* v3.6.0 - Flex pour pousser les actions en bas */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rmq-manager-item-title {
    margin: 0 0 5px;
    font-size: 1.2em;
    color: var(--rmq-dark);
}

.rmq-manager-item-category {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.rmq-manager-item-description {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rmq-manager-item-price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--rmq-primary);
    margin: 10px 0 0;
}

.rmq-manager-item-actions {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: var(--rmq-light);
    border-top: 1px solid var(--rmq-border);
    /* v3.6.0 - Pousser les actions en bas */
    margin-top: auto;
}

.rmq-manager-item-actions button {
    flex: 1;
    padding: 12px 16px;  /* Augmenté de 8px à 12px/16px */
    border: none;
    background: white;
    border-radius: var(--rmq-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;  /* Augmenté la taille de l'icône */
}

.rmq-manager-item-actions button:hover {
    background: var(--rmq-secondary);
    color: white;
}

.rmq-toggle-available.available {
    color: var(--rmq-success);
}

.rmq-toggle-available.unavailable {
    color: #999;
}

.rmq-delete-item:hover {
    background: var(--rmq-danger) !important;
}

/* Boutons */
.rmq-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--rmq-radius);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.rmq-btn-primary {
    background: var(--rmq-primary);
    color: white;
}

.rmq-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.rmq-btn-secondary {
    background: var(--rmq-secondary);
    color: white;
}

.rmq-btn-secondary:hover {
    background: #2c3e50;
}

.rmq-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.rmq-btn .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Modal */
.rmq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start; /* v3.8.1 - Alignement en haut pour permettre le scroll */
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    padding-top: 20px; /* v3.8.1 - Réduit de 60px à 20px pour remonter la modale */
    overflow-y: auto; /* v3.8.1 - Permettre le scroll du fond si nécessaire */
}

.rmq-modal-content {
    background: white;
    border-radius: var(--rmq-radius);
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px); /* v3.8.1 - Hauteur max ajustée */
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 20px; /* v3.8.1 - Espace en bas */
}

.rmq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--rmq-light);
}

.rmq-modal-header h2 {
    margin: 0;
    color: var(--rmq-dark);
}

.rmq-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.rmq-modal-close:hover {
    color: var(--rmq-danger);
}

.rmq-modal .rmq-form {
    padding: 30px;
    display: block; /* Forcer display block pour le form */
}

.rmq-modal-footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 20px 30px;
    border-top: 2px solid var(--rmq-light);
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
}

.rmq-modal-footer button,
.rmq-modal-footer .rmq-btn {
    flex-shrink: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    white-space: nowrap !important;
    /* Ne pas écraser margin pour préserver les styles de base */
}

/* S'assurer que le footer n'hérite pas de styles du form-group */
.rmq-form .rmq-modal-footer {
    display: flex !important;
    flex-direction: row !important;
}

/* Positionnement sans écraser les marges internes */
.rmq-modal-footer > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.rmq-modal-footer > *:first-child {
    margin-right: auto;
}

/* Upload d'image */
.rmq-image-upload {
    border: 2px dashed var(--rmq-border);
    border-radius: var(--rmq-radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.rmq-image-upload:hover {
    border-color: var(--rmq-primary);
}

.rmq-image-preview {
    position: relative;
    margin-bottom: 15px;
}

.rmq-image-preview img {
    max-width: 100%;
    border-radius: var(--rmq-radius);
}

.rmq-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rmq-danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Notifications */
.rmq-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--rmq-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.rmq-notification.success {
    background: var(--rmq-success);
    color: white;
}

.rmq-notification.error {
    background: var(--rmq-danger);
    color: white;
}

/* Login Required */
.rmq-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--rmq-radius);
    box-shadow: var(--rmq-shadow);
}

.rmq-login-required p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--rmq-secondary);
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-restaurant-name {
        font-size: 2em;
    }
    
    .rmq-tabs {
        flex-wrap: nowrap;
    }
    
    .rmq-items-grid,
    .rmq-items-manager-grid {
        grid-template-columns: 1fr;
    }
    
    .rmq-manager-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rmq-form-row {
        grid-template-columns: 1fr;
    }
    
    .rmq-modal-footer {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .rmq-modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

@media print {
    .rmq-tabs,
    .rmq-manager-item-actions,
    .rmq-btn,
    .rmq-filters {
        display: none !important;
    }
    
    .rmq-category-section {
        display: block !important;
    }
}

/* ==========================================================================
   Toggle Vue Grille / Liste - v2.7.0
   ========================================================================== */

/* v4.1.7 - Filtres sticky pleine largeur - correction du breakout */
.rmq-filters-container {
    width: 100vw;
    position: sticky;
    top: 0;
    left: 0;
    margin-left: calc(-50vw + 50%);
    z-index: 100;
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* v4.1.7 - Styles pour la page /menu/ - centrage des boutons */
.rmq-filters.rmq-menu-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 5px 10px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.rmq-filters.rmq-menu-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.rmq-filters.rmq-menu-filters .rmq-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.82em;
}

/* v4.1.7 - Styles spécifiques pour la page /gestion-menu/ */
.rmq-manager-filters-container {
    padding: 8px 15px;
}

.rmq-filters.rmq-manager-filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 8px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.rmq-filters.rmq-manager-filters::-webkit-scrollbar {
    display: none;
}

/* v4.1.7 - Boutons catégories réduits de 20% pour /gestion-menu/ */
.rmq-filters.rmq-manager-filters .rmq-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 0.72em;
}

/* v4.0.2 - Icônes de vue intégrées à la suite des catégories */
.rmq-view-toggle-inline {
    display: flex;
    gap: 3px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px;
    margin-left: 8px;
    flex-shrink: 0;
}

.rmq-view-toggle-inline .rmq-view-btn {
    background: transparent;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #666;
}

.rmq-view-toggle-inline .rmq-view-btn:hover {
    background: #e2e8f0;
    color: var(--rmq-primary);
}

.rmq-view-toggle-inline .rmq-view-btn.active {
    background: var(--rmq-primary);
    color: white;
}

.rmq-view-toggle-inline .rmq-view-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* v4.1.7 - Icônes de vue pour /gestion-menu/ - légèrement plus petit */
.rmq-manager-filters .rmq-view-toggle-inline {
    margin-left: 6px;
    padding: 2px;
}

.rmq-manager-filters .rmq-view-toggle-inline .rmq-view-btn {
    padding: 4px 6px;
}

.rmq-manager-filters .rmq-view-toggle-inline .rmq-view-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Ancien style (conservé pour compatibilité mais masqué) */
.rmq-view-toggle {
    display: none; /* v4.1.6 - Masqué, remplacé par rmq-view-toggle-inline */
}

.rmq-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #666;
}

.rmq-view-btn:hover {
    background: var(--rmq-light);
    color: var(--rmq-primary);
}

.rmq-view-btn.active {
    background: var(--rmq-primary);
    color: white;
}

.rmq-view-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Vue en liste */
.rmq-items-manager-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    max-width: 100%;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 15px;
    flex-shrink: 0; /* v3.6.1 - Empêcher la réduction de l'image */
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-content {
    flex: 1;
    padding: 0;
    min-width: 0; /* v3.6.1 - Permettre le shrinking du contenu */
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-title {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-description,
.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-category {
    font-size: 0.85em;
    margin: 3px 0;
    overflow: hidden; /* v3.6.1 - Masquer le débordement */
    text-overflow: ellipsis; /* v3.6.1 - Afficher ... si le texte est trop long */
    display: -webkit-box; /* v3.6.1 - Limiter le nombre de lignes */
    -webkit-line-clamp: 2; /* v3.6.1 - Limite à 2 lignes */
    -webkit-box-orient: vertical; /* v3.6.1 - Orientation verticale pour le clamp */
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-price {
    font-size: 1.1em;
    margin: 5px 0 0;
}

/* v3.7.3 - Style pour le header avec prix à côté du nom */
.rmq-manager-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.rmq-manager-item-header .rmq-manager-item-title {
    margin: 0;
    flex: 1;
}

.rmq-manager-item-header .rmq-manager-item-price {
    font-weight: bold;
    color: #27ae60;
    white-space: nowrap;
    font-size: 1.1em;
    margin: 0;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-header {
    flex-wrap: nowrap;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-header .rmq-manager-item-price {
    font-size: 1em;
}

.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-actions {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0; /* v3.6.1 - Empêcher la réduction des boutons */
}

/* Vue en liste pour le menu public */
.rmq-tab-content[data-view="list"] .rmq-items-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rmq-tab-content[data-view="list"] .rmq-menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    max-width: 100%;
}

.rmq-tab-content[data-view="list"] .rmq-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0; /* v3.6.1 - Empêcher la réduction de l'image */
}

.rmq-tab-content[data-view="list"] .rmq-item-content {
    flex: 1;
    text-align: left;
    min-width: 0; /* v3.6.1 - Permettre le shrinking du contenu */
    display: flex; /* v3.6.1 - Flexbox pour mieux gérer l'espace */
    flex-direction: column; /* v3.6.1 - Alignement vertical */
}

.rmq-tab-content[data-view="list"] .rmq-item-header {
    display: flex; /* v3.6.1 - Flex pour titre et prix côte à côte */
    justify-content: space-between; /* v3.6.1 - Espacer titre et prix */
    align-items: flex-start; /* v3.6.1 - Aligner en haut */
    gap: 15px; /* v3.6.1 - Espacement entre titre et prix */
}

.rmq-tab-content[data-view="list"] .rmq-item-title {
    font-size: 1.1em;
    margin-bottom: 5px;
    flex: 1; /* v3.6.1 - Le titre prend l'espace disponible */
    min-width: 0; /* v3.6.1 - Permettre le shrinking */
}

.rmq-tab-content[data-view="list"] .rmq-item-description {
    font-size: 0.9em;
    margin: 5px 0;
    margin-right: 15px;
    overflow: hidden; /* v3.6.1 - Masquer le débordement */
    text-overflow: ellipsis; /* v3.6.1 - Afficher ... si le texte est trop long */
    display: -webkit-box; /* v3.6.1 - Limiter le nombre de lignes */
    -webkit-line-clamp: 2; /* v3.6.1 - Limite à 2 lignes */
    -webkit-box-orient: vertical; /* v3.6.1 - Orientation verticale pour le clamp */
}

.rmq-tab-content[data-view="list"] .rmq-item-price {
    font-size: 1.2em;
    margin: 0; /* v3.6.1 - Réinitialiser la marge */
    flex-shrink: 0; /* v3.6.1 - Empêcher la réduction du prix */
    white-space: nowrap; /* v3.6.1 - Empêcher le retour à la ligne */
}

.rmq-tab-content[data-view="list"] .rmq-item-allergens {
    font-size: 0.85em;
    margin-top: 5px;
}

/* Responsive pour le toggle - v4.1.7 */
@media (max-width: 768px) {
    .rmq-filters-container {
        padding: 8px 10px;
    }
    
    .rmq-filters.rmq-menu-filters,
    .rmq-filters.rmq-manager-filters {
        padding: 3px 5px;
        gap: 4px;
    }
    
    .rmq-filters.rmq-menu-filters .rmq-filter-btn {
        padding: 5px 10px;
        font-size: 0.78em;
    }
    
    .rmq-filters.rmq-manager-filters .rmq-filter-btn {
        padding: 4px 8px;
        font-size: 0.68em;
    }
    
    .rmq-view-toggle-inline {
        margin-left: 5px;
        padding: 2px;
    }
    
    .rmq-view-toggle-inline .rmq-view-btn {
        padding: 4px 6px;
    }
    
    .rmq-view-toggle-inline .rmq-view-btn .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .rmq-view-toggle {
        flex-shrink: 0;
    }
    
    /* v4.0.1 - Bouton réservation responsive */
    .rmq-btn-reservation {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}

/* v4.1.4 - Cacher les boutons list/grid sur smartphone */
@media (max-width: 576px) {
    .rmq-view-toggle-inline {
        display: none !important;
    }
}

/* ========================================================================
   PRICING FRONTEND STYLES - v3.1.0
   ======================================================================== */

.rmq-pricing-frontend {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header avec plan actuel */
.rmq-current-plan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.rmq-current-plan-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
}

.rmq-current-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.rmq-plan-name {
    font-size: 32px;
    font-weight: 800;
}

.rmq-plan-active {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Barre d'utilisation */
.rmq-usage-stats {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.rmq-usage-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.rmq-usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.rmq-usage-text {
    margin: 0;
    font-size: 18px;
}

.rmq-usage-warning {
    margin: 15px 0 0 0;
    padding: 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 14px;
}

/* Banner login */
.rmq-login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.rmq-login-banner h2 {
    margin: 0 0 15px 0;
    font-size: 36px;
}

.rmq-login-banner p {
    margin: 0 0 25px 0;
    font-size: 18px;
    opacity: 0.9;
}

/* Intro pricing */
.rmq-pricing-intro {
    text-align: center;
    margin-bottom: 50px;
}

.rmq-pricing-intro h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    color: #1a202c;
}

.rmq-pricing-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

/* Grille de pricing */
.rmq-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.rmq-pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.rmq-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.rmq-pricing-card.current {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.rmq-pricing-card.rmq-popular {
    border-color: #f59e0b;
    border-width: 3px;
}

.rmq-popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rmq-current-label {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.rmq-card-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.rmq-card-header h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1a202c;
}

.rmq-price {
    margin-bottom: 10px;
}

.rmq-amount {
    font-size: 48px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.rmq-period {
    font-size: 16px;
    color: #64748b;
}

.rmq-price-annual {
    margin: 0;
    font-size: 14px;
    color: #16a34a;
    font-weight: 600;
}

/* Liste des fonctionnalités */
.rmq-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.rmq-features-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #334155;
}

.rmq-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 18px;
}

.rmq-cross {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 18px;
}

/* Boutons */
.rmq-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rmq-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rmq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.rmq-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.rmq-btn-secondary:hover {
    background: #e2e8f0;
}

.rmq-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.rmq-btn-outline:hover {
    background: #667eea;
    color: white;
}

.rmq-btn-current {
    background: #16a34a;
    color: white;
    cursor: default;
}

.rmq-btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.rmq-plan-form {
    margin: 0;
}

/* Section comparaison */
.rmq-comparison-section {
    margin-bottom: 80px;
}

.rmq-comparison-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a202c;
}

/* =========================================================================
   TABLEAU COMPARATIF PRICING v3.1.1
   ========================================================================= */
   
.rmq-comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.rmq-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

/* En-têtes des colonnes */
.rmq-pricing-table thead th {
    background: #f8fafc;
    padding: 25px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: top;
    position: relative;
}

.rmq-pricing-table thead th:first-child {
    text-align: left;
    background: white;
    color: #1a202c;
    font-size: 16px;
}

/* Colonne du plan actuel - mise en surbrillance */
.rmq-pricing-table thead th.rmq-current-plan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 0 0 3px #3b82f6; /* Encadré bleu */
    position: relative;
    z-index: 2;
}

/* Plan recommandé */
.rmq-pricing-table thead th.rmq-recommended {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.rmq-pricing-table thead th.rmq-current-plan.rmq-recommended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Header de plan */
.rmq-plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rmq-plan-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.rmq-current-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.rmq-recommended-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cellules du corps du tableau */
.rmq-pricing-table tbody td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 15px;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.rmq-pricing-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a202c;
    background: #fafafa;
}

/* Colonne du plan actuel dans le corps */
.rmq-pricing-table tbody td.rmq-current-plan {
    background: #faf5ff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 #3b82f6, inset -3px 0 0 0 #3b82f6; /* Encadré bleu latéral */
    position: relative;
}

/* Dernière ligne - ajouter bordure bas */
.rmq-pricing-table tbody tr:last-child td.rmq-current-plan {
    box-shadow: inset 3px 0 0 0 #3b82f6, inset -3px 0 0 0 #3b82f6, inset 0 -3px 0 0 #3b82f6;
}

/* Lignes spéciales */
.rmq-price-row td {
    padding: 25px 20px;
}

.rmq-highlight-row td {
    background: #fef3c7;
    font-weight: 600;
}

.rmq-highlight-row td.rmq-current-plan {
    background: #e0e7ff;
}

.rmq-action-row td {
    padding: 25px 20px;
    border-bottom: none;
}

/* Prix */
.rmq-price {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 4px;
}

.rmq-period {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.rmq-annual-price {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.rmq-savings {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Icônes de vérification */
.rmq-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 20px;
}

.rmq-cross {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 20px;
}

/* Boutons dans le tableau */
.rmq-pricing-table .rmq-btn {
    width: auto;
    min-width: 140px;
    padding: 10px 20px;
    font-size: 14px;
}

.rmq-btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.rmq-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.rmq-btn-downgrade {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.rmq-btn-downgrade:hover {
    background: #e2e8f0;
    color: #475569;
}

.rmq-btn-current {
    background: #16a34a;
    color: white;
    cursor: default;
    opacity: 0.8;
}

/* Feature column */
.rmq-feature-column {
    min-width: 200px;
    max-width: 250px;
}

/* Responsive pour le tableau */
@media (max-width: 1024px) {
    .rmq-comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .rmq-pricing-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .rmq-pricing-table thead th,
    .rmq-pricing-table tbody td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .rmq-plan-header h3 {
        font-size: 16px;
    }
    
    .rmq-price {
        font-size: 22px;
    }
    
    .rmq-pricing-table .rmq-btn {
        min-width: 100px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* =========================================================================
   FIN TABLEAU COMPARATIF PRICING v3.1.1
   ========================================================================= */

/* FAQ Section */
.rmq-faq-section {
    margin-bottom: 80px;
}

.rmq-faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a202c;
}

.rmq-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.rmq-faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rmq-faq-item h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmq-faq-item h3 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.rmq-faq-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* CTA Final */
.rmq-cta-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.rmq-cta-final h2 {
    margin: 0 0 15px 0;
    font-size: 36px;
}

.rmq-cta-final p {
    margin: 0 0 30px 0;
    font-size: 18px;
    opacity: 0.9;
}

.rmq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Notice de succès */
.rmq-success-notice {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.rmq-success-notice p {
    margin: 0;
    color: #065f46;
    font-weight: 600;
}

/* Dev note */
.rmq-dev-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin-top: 40px;
    border-radius: 8px;
}

.rmq-dev-note p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .rmq-current-plan-header {
        padding: 30px 20px;
    }
    
    .rmq-pricing-intro h1 {
        font-size: 32px;
    }
    
    .rmq-cta-buttons {
        flex-direction: column;
    }
    
    .rmq-comparison-table {
        font-size: 14px;
    }
    
    .rmq-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   GESTION DES CATÉGORIES v3.3.0
   =================================================================== */

.rmq-category-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* En-tête */
.rmq-manager-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    color: #1e293b;
}

.rmq-header-subtitle {
    margin: 0;
    font-size: 16px;
    color: #64748b;
}

.rmq-header-actions {
    display: flex;
    gap: 12px;
}

/* Informations sur le plan */
.rmq-plan-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rmq-plan-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
}

.rmq-plan-badge.rmq-plan-free {
    background: rgba(255, 255, 255, 0.25);
}

.rmq-plan-badge.rmq-plan-basique {
    background: rgba(59, 130, 246, 0.3);
}

.rmq-plan-badge.rmq-plan-pro {
    background: rgba(16, 185, 129, 0.3);
}

.rmq-plan-badge.rmq-plan-pro_plus {
    background: rgba(245, 158, 11, 0.3);
}

.rmq-plan-limits p {
    margin: 0;
    font-size: 16px;
}

/* Section header */
.rmq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 20px 0;
}

.rmq-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1e293b;
}

.rmq-limit-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 14px;
}

.rmq-info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 14px;
}

/* Grille des catégories */
.rmq-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rmq-category-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s;
    cursor: move;
}

.rmq-category-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rmq-category-box.rmq-category-common {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.rmq-category-box.rmq-category-private {
    background: white;
}

.rmq-sortable-ghost {
    opacity: 0.4;
}

/* Poignée de drag */
.rmq-category-drag-handle {
    color: #94a3b8;
    cursor: move;
    padding: 4px;
}

.rmq-category-drag-handle:hover {
    color: #64748b;
}

/* Contenu de la catégorie */
.rmq-category-content {
    flex: 1;
}

.rmq-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rmq-category-name {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.rmq-category-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rmq-badge-common {
    background: #dbeafe;
    color: #1e40af;
}

.rmq-badge-private {
    background: #d1fae5;
    color: #065f46;
}

.rmq-category-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

/* Actions */
.rmq-category-actions {
    display: flex;
    gap: 8px;
}

.rmq-btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s;
}

.rmq-btn-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.rmq-btn-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Instructions */
.rmq-instructions-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.rmq-instructions-box h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmq-instructions-box ul {
    margin: 0;
    padding-left: 24px;
}

.rmq-instructions-box li {
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.6;
}

/* Modal */
.rmq-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.rmq-modal-content {
    background: white;
    margin: 5% auto; /* v3.6.0 - Réduit de 10% à 5% pour monter la modale */
    padding: 32px;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.rmq-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    font-weight: 300;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.rmq-modal-close:hover {
    color: #1e293b;
}

#rmq-category-modal-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #1e293b;
}

/* Formulaire */
.rmq-form-group {
    margin-bottom: 20px;
}

.rmq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.rmq-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.rmq-form-group input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.rmq-form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.rmq-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* État vide */
.rmq-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.rmq-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.rmq-empty-state p {
    font-size: 18px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .rmq-plan-info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .rmq-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .rmq-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .rmq-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 24px;
    }
}


/* ==========================================================================
   Styles pour checkboxes multiples catégories v3.3.2
   ========================================================================== */

.rmq-categories-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    max-height: 200px;
    overflow-y: auto;
}

.rmq-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #e2e8f0;
}

.rmq-checkbox-label:hover {
    background: #f1f5f9;
    border-color: var(--rmq-primary);
}

.rmq-checkbox-label input[type="checkbox"] {
    margin: 0 10px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rmq-primary);
}

.rmq-checkbox-label span {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.rmq-checkbox-label input[type="checkbox"]:checked + span {
    color: var(--rmq-primary);
    font-weight: 600;
}



/* ==========================================================================
   Images arrondies dans listview v3.3.2
   ========================================================================== */

/* Images arrondies dans la vue liste du gestionnaire de menu */
.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-image img {
    border-radius: 12px;
}

/* Images arrondies dans la vue liste du menu public */
.rmq-tab-content[data-view="list"] .rmq-item-image img {
    border-radius: 12px;
}

/* Assurer le conteneur d'image arrondi aussi */
.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-image,
.rmq-tab-content[data-view="list"] .rmq-item-image {
    border-radius: 12px;
    overflow: hidden;
}



/* ==========================================================================
   Affichage du logo restaurant dans /gestion-restaurant/ v3.3.3
   ========================================================================== */

#rmq-logo-preview img {
    max-width: 800px;
    max-height: 600px;
    width: auto;
    height: auto;
}


/* ==========================================================================
   Styles pour les nouvelles pages v3.3.3
   ========================================================================== */

/* ==========================================================================
   Page Statistiques
   ========================================================================== */

.rmq-statistics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rmq-stats-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rmq-stat-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--rmq-border);
    background: white;
    color: var(--rmq-dark);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rmq-stat-filter-btn:hover {
    border-color: var(--rmq-primary);
    color: var(--rmq-primary);
}

.rmq-stat-filter-btn.active {
    background: var(--rmq-primary);
    border-color: var(--rmq-primary);
    color: white;
}

.rmq-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rmq-stat-card {
    background: white;
    border-radius: var(--rmq-radius);
    padding: 25px;
    box-shadow: var(--rmq-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.rmq-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rmq-primary) 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rmq-stat-icon .dashicons {
    font-size: 30px;
    color: white;
}

.rmq-stat-content h3 {
    font-size: 32px;
    margin: 0 0 5px 0;
    color: var(--rmq-primary);
}

.rmq-stat-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.rmq-stats-chart-container {
    background: white;
    border-radius: var(--rmq-radius);
    padding: 30px;
    box-shadow: var(--rmq-shadow);
    margin-bottom: 30px;
}

.rmq-stats-chart-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--rmq-dark);
}

#rmq-stats-chart {
    height: 400px !important;
}

/* ==========================================================================
   Page QR Code
   ========================================================================== */

.rmq-qrcode-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rmq-qrcode-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.rmq-qrcode-preview,
.rmq-qrcode-info {
    background: white;
    border-radius: var(--rmq-radius);
    padding: 30px;
    box-shadow: var(--rmq-shadow);
}

.rmq-qr-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--rmq-radius);
}

.rmq-qr-display img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 20px;
}

.rmq-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.rmq-url-display {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.rmq-url-display input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--rmq-border);
    border-radius: 6px;
    font-family: monospace;
}

.rmq-qr-sizes h3 {
    margin-bottom: 15px;
    margin-top: 30px;
}

.rmq-size-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rmq-btn-size {
    padding: 12px;
    background: var(--rmq-primary);
    border: 2px solid var(--rmq-primary);
    border-radius: 6px;
    text-align: center;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.rmq-btn-size .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rmq-btn-size:hover {
    background: var(--rmq-primary-dark);
    border-color: var(--rmq-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rmq-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rmq-usage-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--rmq-radius);
}

.rmq-usage-item .dashicons {
    font-size: 40px;
    color: var(--rmq-primary);
    margin-bottom: 10px;
}

.rmq-usage-item h4 {
    margin: 10px 0;
    color: var(--rmq-dark);
}

.rmq-usage-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.rmq-instructions-box {
    margin-top: 40px;
}

/* FAQ Section pour QR Code */
.rmq-qrcode-container .rmq-faq-section {
    margin-top: 60px;
    margin-bottom: 0;
}

.rmq-qrcode-container .rmq-faq-section h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 30px;
}

.rmq-qrcode-container .rmq-faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rmq-qrcode-container .rmq-faq-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rmq-qrcode-container .rmq-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.rmq-qrcode-container .rmq-faq-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.rmq-qrcode-container .rmq-faq-item p {
    font-size: 14px;
}

.rmq-tips-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--rmq-radius);
    padding: 20px;
    margin-top: 30px;
}

.rmq-tips-box h3 {
    margin-top: 0;
    color: #856404;
}

.rmq-tips-box ul {
    margin: 0;
    padding-left: 20px;
}

.rmq-tips-box li {
    margin-bottom: 8px;
    color: #856404;
}

/* ==========================================================================
   Page Export PDF
   ========================================================================== */

.rmq-export-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rmq-export-options {
    background: white;
    border-radius: var(--rmq-radius);
    padding: 30px;
    box-shadow: var(--rmq-shadow);
    margin-bottom: 20px;
}

.rmq-export-options h2 {
    margin-top: 0;
}

.rmq-export-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.rmq-upgrade-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--rmq-radius);
    box-shadow: var(--rmq-shadow);
}

.rmq-upgrade-required h2 {
    color: var(--rmq-dark);
    margin-bottom: 15px;
}

.rmq-upgrade-required p {
    color: #666;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-qrcode-section {
        grid-template-columns: 1fr;
    }
    
    .rmq-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .rmq-usage-grid {
        grid-template-columns: 1fr;
    }
    
    .rmq-size-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Version 3.5.0 - Nouveaux styles
   ========================================================================== */

/* Compteur de caractères pour la description */
.rmq-char-count {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
    text-align: right;
}

.rmq-char-count.warning {
    color: #f39c12;
    font-weight: 600;
}

.rmq-char-count.error {
    color: #e74c3c;
    font-weight: 600;
}

/* Bouton "Voir les détails" dans menu public */
.rmq-view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto; /* v3.6.0 - Pousser le bouton en bas */
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start; /* v3.6.0 - Aligner à gauche */
}

.rmq-view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.rmq-view-details-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal de détails d'article */
.rmq-item-details-body {
    padding: 30px;
}

.rmq-item-details-image {
    text-align: center;
    margin-bottom: 20px;
}

.rmq-item-details-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rmq-item-details-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.rmq-item-details-price-row,
.rmq-item-details-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.rmq-item-details-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rmq-item-details-info .rmq-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.rmq-item-details-info .rmq-value {
    display: block;
    color: #6b7280;
    line-height: 1.6;
}

.rmq-item-details-info .rmq-price-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #10b981;
}

/* Amélioration du modal pour qu'il soit scrollable et affiche bien les boutons - v3.8.1 */
.rmq-modal-content {
    background: white;
    border-radius: var(--rmq-radius);
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px); /* v3.8.1 - Ajusté pour être entièrement visible */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.rmq-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--rmq-light);
}

.rmq-modal .rmq-form,
.rmq-item-details-body,
.rmq-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.rmq-modal-footer {
    flex-shrink: 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 20px 30px;
    border-top: 2px solid var(--rmq-light);
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    background: white;
}

/* Correction du bouton Annuler pour qu'il soit bien centré visuellement */
.rmq-modal-footer .rmq-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    line-height: 1.4;
}

/* Amélioration du fond de la date de fin dans pricing */
.rmq-plan-expiry {
    margin: 15px 0;
    padding: 12px;
    border-left: 4px solid #4f46e5;
    border-radius: 4px;
}

.rmq-plan-expiry.free-plan {
    background: #f0f4ff;
}

.rmq-plan-expiry.basique-plan {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.rmq-plan-expiry.pro-plan {
    background: #dbeafe;
    border-left-color: #3b82f6;
}

.rmq-plan-expiry.pro_plus-plan {
    background: #e0e7ff;
    border-left-color: #6366f1;
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-view-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rmq-item-details-body {
        padding: 20px;
    }
}

/* =================================================================== */
/* v3.7.0 - Styles pour le modal de recadrage d'image avec Cropper.js */
/* =================================================================== */

#rmq-crop-modal .rmq-modal-content {
    max-width: 900px;
}

.rmq-crop-container {
    max-height: 500px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

#rmq-crop-image {
    display: block;
    max-width: 100%;
    max-height: 500px;
}

.rmq-crop-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.rmq-crop-controls .rmq-btn {
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.rmq-crop-controls .dashicons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Ajustements pour Cropper.js */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cropper-view-box {
    border-radius: 8px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #rmq-crop-modal .rmq-modal-content {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .rmq-crop-container {
        max-height: 350px;
    }
    
    .rmq-crop-controls {
        flex-direction: column;
    }
    
    .rmq-crop-controls .rmq-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =================================================================== */
/* v3.8.1 - Amélioration de la modale article                          */
/* =================================================================== */

/* Structure de la modale article comme la modale catégorie */
#rmq-item-modal .rmq-modal-content {
    position: relative;
    padding-top: 0;
    max-height: calc(100vh - 40px); /* v3.8.1 - Assurer la visibilité complète */
}

#rmq-item-modal .rmq-modal-content > .rmq-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

#rmq-item-modal .rmq-modal-content > h2 {
    padding: 20px 30px;
    margin: 0;
    border-bottom: 2px solid var(--rmq-light);
    color: var(--rmq-dark);
    flex-shrink: 0; /* v3.8.1 - Ne pas rétrécir le titre */
}

/* Styles pour le formulaire article */
#rmq-item-modal .rmq-item-form {
    padding: 30px;
    padding-bottom: 0;
    overflow-y: auto; /* v3.8.1 - Scroll interne au formulaire */
    flex: 1; /* v3.8.1 - Prendre l'espace restant */
}

/* Actions du formulaire article - identique à la modale catégorie */
#rmq-item-modal .rmq-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding: 20px 30px; /* v3.8.1 - Padding ajusté */
    border-top: 2px solid var(--rmq-light);
    background: white; /* v3.8.1 - Fond blanc pour le footer */
    flex-shrink: 0; /* v3.8.1 - Ne pas rétrécir les boutons */
    margin-left: -30px; /* v3.8.1 - Compenser le padding du form */
    margin-right: -30px;
    margin-bottom: 0;
}

/* Bouton Annuler à gauche */
#rmq-item-modal .rmq-form-actions .rmq-btn-secondary {
    margin-right: auto;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #rmq-item-modal .rmq-form-actions {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    #rmq-item-modal .rmq-form-actions .rmq-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   v3.8.5 - Styles pour le prix promo
   ========================================================================== */

/* Container pour les prix */
.rmq-item-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* Prix original (barré) */
.rmq-item-price.rmq-price-promo {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

/* Prix promo (nouveau prix) */
.rmq-item-price.rmq-price-original {
    font-size: 1.3em;
    font-weight: bold;
    color: #27ae60;
}

/* Badge PROMO sur l'image */
.rmq-item-image {
    position: relative;
}

/* v4.2.5 - Badge promo en haut à droite */
.rmq-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 1;
}

/* Article en promo - effet subtil */
.rmq-menu-item.rmq-item-promo {
    border: 2px solid #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15);
}

/* Prix dans le modal de détails */
.rmq-price-original-detail {
    font-size: 0.85em;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.rmq-price-promo-detail {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
}

/* Styles pour le champ prix promo dans le formulaire */
#item_promo_price {
    border-color: #27ae60;
}

#item_promo_price:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Prix dans la liste de gestion */
.rmq-manager-item-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rmq-manager-item-price.rmq-price-promo {
    font-size: 0.85em;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.rmq-manager-item-price.rmq-price-original {
    font-size: 1.1em;
    font-weight: bold;
    color: #27ae60;
}

/* Badge promo dans la grille de gestion */
.rmq-manager-item.rmq-item-promo {
    border-left: 4px solid #27ae60;
}

.rmq-manager-item.rmq-item-promo .rmq-manager-item-image {
    position: relative;
}

/* v4.2.5 - Badge promo en haut à droite dans la grille de gestion */
.rmq-manager-item.rmq-item-promo .rmq-promo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #27ae60;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Vue liste - prix promo */
.rmq-items-manager-grid[data-view="list"] .rmq-manager-item-price-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .rmq-item-price-container {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .rmq-item-price.rmq-price-promo {
        font-size: 0.8em;
    }
    
    .rmq-item-price.rmq-price-original {
        font-size: 1.1em;
    }
    
    .rmq-promo-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ==========================================================================
   v3.9.0 - Styles pour la gestion des formules
   ========================================================================== */

.rmq-formula-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grille des formules */
.rmq-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Box d'une formule */
.rmq-formula-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rmq-formula-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.rmq-formula-box.rmq-formula-unavailable {
    opacity: 0.6;
    border-color: #e0e0e0;
}

/* Header de la formule */
.rmq-formula-header {
    margin-bottom: 15px;
}

.rmq-formula-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.rmq-formula-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.rmq-formula-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
}

.rmq-formula-status {
    display: inline-block;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.rmq-formula-status.rmq-status-unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.rmq-formula-schedule {
    display: inline-block;
    font-size: 0.8em;
    color: #6b7280;
    margin-top: 5px;
}

/* Description */
.rmq-formula-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Stats */
.rmq-formula-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.rmq-formula-stats .dashicons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Aperçu des sections */
.rmq-formula-sections-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.rmq-section-preview {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.rmq-section-preview:last-child {
    border-bottom: none;
}

.rmq-section-preview strong {
    color: #374151;
    font-size: 0.9em;
}

.rmq-section-items-count {
    color: #6b7280;
    font-size: 0.85em;
}

.rmq-section-preview.rmq-more {
    color: #9ca3af;
    font-style: italic;
    justify-content: center;
}

/* Actions */
.rmq-formula-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.rmq-formula-actions button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rmq-toggle-formula {
    background: #ecfdf5;
    color: #059669;
}

.rmq-toggle-formula.unavailable {
    background: #fef2f2;
    color: #dc2626;
}

.rmq-edit-formula {
    background: #eff6ff;
    color: #2563eb;
}

.rmq-delete-formula {
    background: #fef2f2;
    color: #dc2626;
}

.rmq-formula-actions button:hover {
    transform: scale(1.1);
}

/* État vide */
.rmq-no-formulas {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.rmq-no-formulas .rmq-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.rmq-no-formulas h3 {
    color: #374151;
    margin-bottom: 10px;
}

.rmq-no-formulas p {
    color: #6b7280;
    margin-bottom: 20px;
}

.rmq-no-formulas.rmq-upgrade-prompt {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-color: #93c5fd;
}

/* Modal large pour les formules */
.rmq-modal-large {
    max-width: 800px !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* Sections du formulaire */
.rmq-form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rmq-form-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #374151;
}

.rmq-form-row {
    display: flex;
    gap: 15px;
}

.rmq-form-group-large {
    flex: 2;
}

/* Options de disponibilité */
.rmq-availability-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rmq-radio-card {
    cursor: pointer;
}

.rmq-radio-card input[type="radio"] {
    display: none;
}

.rmq-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.rmq-radio-card input[type="radio"]:checked + .rmq-radio-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.rmq-radio-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.rmq-radio-label {
    font-size: 0.85em;
    color: #374151;
    text-align: center;
}

.rmq-custom-time {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

/* Sections de la formule */
#rmq-formula-sections {
    margin-bottom: 15px;
}

.rmq-formula-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.rmq-formula-section .rmq-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rmq-section-drag-handle {
    cursor: grab;
    color: #9ca3af;
}

.rmq-section-name {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
}

.rmq-remove-section {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 5px;
}

.rmq-section-items {
    min-height: 50px;
    background: #f9fafb;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.rmq-no-items-in-section {
    color: #9ca3af;
    font-size: 0.9em;
    text-align: center;
    margin: 0;
}

.rmq-section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 5px;
}

.rmq-section-item-name {
    flex: 1;
    font-size: 0.95em;
}

.rmq-section-item-supplement {
    color: #059669;
    font-size: 0.85em;
    margin-right: 10px;
}

.rmq-remove-section-item {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
}

.rmq-remove-section-item:hover {
    color: #dc2626;
}

.rmq-btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.rmq-btn-outline {
    background: transparent;
    border: 1px dashed #9ca3af;
    color: #6b7280;
}

.rmq-btn-outline:hover {
    border-style: solid;
    background: #f9fafb;
}

/* Modal sélection d'articles */
.rmq-items-search {
    margin-bottom: 15px;
}

.rmq-items-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
}

.rmq-items-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.rmq-item-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.rmq-item-checkbox:hover {
    background: #f9fafb;
}

.rmq-item-checkbox:last-child {
    border-bottom: none;
}

.rmq-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.rmq-item-info {
    flex: 1;
}

.rmq-item-name {
    display: block;
    font-weight: 500;
    color: #374151;
}

.rmq-item-meta {
    display: block;
    font-size: 0.85em;
    color: #9ca3af;
}

.rmq-item-supplement {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #6b7280;
}

.rmq-supplement-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.rmq-no-items-message {
    padding: 30px;
    text-align: center;
    color: #6b7280;
}

.rmq-no-items-message a {
    color: #3b82f6;
}

/* ==========================================================================
   v3.9.0 - Affichage des formules dans le menu public
   ========================================================================== */

.rmq-formulas-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.rmq-formulas-section-title {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.rmq-public-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.rmq-public-formula-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.rmq-public-formula-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #3b82f6;
}

.rmq-public-formula-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.rmq-public-formula-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.rmq-public-formula-price {
    font-size: 2em;
    font-weight: 800;
}

.rmq-public-formula-schedule {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 8px;
}

.rmq-public-formula-body {
    padding: 20px;
}

.rmq-public-formula-description {
    color: #6b7280;
    font-size: 0.95em;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.rmq-public-section {
    margin-bottom: 15px;
}

.rmq-public-section-name {
    font-weight: 600;
    color: #374151;
    font-size: 1em;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e5e7eb;
}

.rmq-public-section-items {
    padding-left: 15px;
}

.rmq-public-section-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95em;
    color: #4b5563;
}

.rmq-public-section-item-name {
    flex: 1;
}

.rmq-public-section-item-supplement {
    color: #059669;
    font-weight: 500;
}

/* Responsive formules */
@media (max-width: 768px) {
    .rmq-formulas-grid {
        grid-template-columns: 1fr;
    }
    
    .rmq-availability-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rmq-form-row {
        flex-direction: column;
    }
    
    .rmq-modal-large {
        max-width: 95% !important;
        margin: 10px;
    }
    
    .rmq-public-formulas-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   v3.9.1 - Styles pour l'icône Google Maps
   v3.9.2 - Adresse centrée et entièrement cliquable
   ============================================ */
.rmq-maps-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.rmq-maps-link:hover {
    transform: scale(1.15);
}

.rmq-maps-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    flex-shrink: 0;
}

.rmq-restaurant-address {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: #64748b;
    font-size: 1em;
}

/* v3.9.2 - Adresse entièrement cliquable */
a.rmq-address-clickable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

a.rmq-address-clickable:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

a.rmq-address-clickable:hover .dashicons {
    color: white;
}

a.rmq-address-clickable:hover .rmq-maps-icon path {
    fill: white;
}

a.rmq-address-clickable:hover .rmq-maps-icon circle {
    fill: #667eea;
}

.rmq-address-text {
    max-width: 400px;
    text-align: center;
}

/* ============================================
   v3.9.1 - Formules affichées comme catégorie
   ============================================ */
.rmq-formulas-as-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.rmq-formula-card-category {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.rmq-formula-card-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.rmq-formula-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
}

.rmq-formula-card-name {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.rmq-formula-card-price {
    font-size: 1.5em;
    font-weight: 800;
    color: #ffd700;
}

.rmq-formula-card-schedule {
    font-size: 0.9em;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
}

.rmq-formula-card-body {
    padding: 20px;
}

.rmq-formula-card-description {
    color: #64748b;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rmq-formula-section {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.rmq-formula-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rmq-formula-section-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* v3.9.1 - Mention "(Au choix)" en italique */
.rmq-au-choix {
    font-style: italic;
    font-weight: 400;
    color: #64748b;
    font-size: 0.85em;
}

.rmq-formula-section-items {
    padding-left: 15px;
}

.rmq-formula-section-item {
    padding: 6px 0;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rmq-formula-item-name {
    flex: 1;
}

.rmq-formula-item-supplement {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Responsive pour formules comme catégorie */
@media (max-width: 768px) {
    .rmq-formulas-as-category {
        grid-template-columns: 1fr;
    }
    
    .rmq-formula-card-category {
        margin: 0 5px;
    }
    
    .rmq-formula-card-header {
        padding: 15px;
    }
    
    .rmq-formula-card-body {
        padding: 15px;
    }
}

/* ==========================================================================
   v4.2.5 - Loader pour upload d'image
   ========================================================================== */

.rmq-upload-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(248, 250, 252, 0.95);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 15px;
}

.rmq-upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: rmq-spin 1s linear infinite;
}

@keyframes rmq-spin {
    to {
        transform: rotate(360deg);
    }
}

.rmq-upload-loader-text {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   v4.2.5 - Modale de sélection d'articles (même design que modale catégorie)
   ========================================================================== */

#rmq-items-selector-modal .rmq-modal-content {
    max-width: 600px;
}

#rmq-items-selector-modal .rmq-items-search {
    margin-bottom: 15px;
}

#rmq-items-selector-modal .rmq-items-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#rmq-items-selector-modal .rmq-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--rmq-light, #ecf0f1);
}

/* ==========================================================================
   v4.3.0 - Sections Inline (remplacent les modales)
   Optimisé pour l'affichage mobile et la visibilité sur smartphone
   ========================================================================== */

/* Section d'édition inline - conteneur principal */
.rmq-inline-editor {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.rmq-inline-editor-content {
    background: white;
    border-radius: 10px;
    margin: 3px;
}

.rmq-inline-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rmq-inline-editor-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: white;
}

.rmq-inline-editor-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #333;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.rmq-inline-editor-close:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1) rotate(90deg);
    color: #e74c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rmq-inline-editor-close:active {
    transform: scale(0.95);
}

.rmq-inline-editor-close .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: inherit;
    line-height: 1;
}

/* Contenu du formulaire inline */
.rmq-inline-editor .rmq-form,
.rmq-inline-editor form {
    padding: 25px;
}

/* Section de recadrage intégrée */
.rmq-crop-section {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.rmq-crop-section-header h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1em;
}

.rmq-crop-section .rmq-crop-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rmq-crop-section .rmq-crop-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Section de détails d'article inline (menu public) */
.rmq-item-details-inline {
    background: white;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.rmq-item-details-content {
    background: white;
}

.rmq-item-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.rmq-item-details-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: white;
    flex: 1;
    padding-right: 15px;
}

/* v4.3.1 - Croix de fermeture améliorée (noire, plus grande, parfaitement centrée) */
.rmq-item-details-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #333;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    line-height: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rmq-item-details-close:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1) rotate(90deg);
    color: #e74c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rmq-item-details-close:active {
    transform: scale(0.95);
}

/* S'assurer que le header a l'espace pour le bouton */
.rmq-item-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    gap: 15px;
}

.rmq-item-details-header h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rmq-item-details-inline .rmq-item-details-body {
    padding: 25px;
}

.rmq-item-details-footer {
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

/* Section de recadrage inline pour restaurant-config */
.rmq-crop-inline-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.rmq-crop-inline-content {
    background: white;
    border-radius: 10px;
    margin: 3px;
}

.rmq-crop-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.rmq-crop-inline-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: white;
}

.rmq-crop-inline-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #333;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    line-height: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.rmq-crop-inline-close:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1) rotate(90deg);
    color: #e74c3c;
}

.rmq-crop-inline-body {
    padding: 25px;
}

.rmq-crop-inline-footer {
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Section de sélection d'articles inline */
#rmq-items-selector .rmq-items-search {
    margin-bottom: 15px;
}

#rmq-items-selector .rmq-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

/* Section large pour les formules */
.rmq-inline-editor-large .rmq-inline-editor-content {
    max-width: 100%;
}

/* Formulaire inline amélioré */
.rmq-inline-editor .rmq-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rmq-inline-editor .rmq-form-group-half {
    flex: 1;
    min-width: 150px;
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .rmq-inline-editor-header {
        padding: 15px 20px;
    }
    
    .rmq-inline-editor-header h2 {
        font-size: 1.2em;
    }
    
    .rmq-inline-editor .rmq-form,
    .rmq-inline-editor form {
        padding: 20px;
    }
    
    .rmq-inline-editor .rmq-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .rmq-inline-editor .rmq-form-group-half {
        min-width: 100%;
    }
    
    .rmq-crop-section .rmq-crop-controls {
        gap: 5px;
    }
    
    .rmq-crop-section .rmq-btn-sm {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .rmq-inline-editor {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .rmq-inline-editor-header {
        padding: 12px 15px;
    }
    
    .rmq-inline-editor-header h2 {
        font-size: 1.1em;
    }
    
    /* v4.3.1 - Garder les boutons de fermeture grands sur mobile (44px minimum recommandé) */
    .rmq-inline-editor-close,
    .rmq-item-details-close,
    .rmq-crop-inline-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 28px;
    }
    
    .rmq-inline-editor .rmq-form,
    .rmq-inline-editor form {
        padding: 15px;
    }
    
    .rmq-item-details-inline .rmq-item-details-body {
        padding: 15px;
    }
    
    .rmq-item-details-header {
        padding: 15px;
    }
    
    .rmq-item-details-header h2 {
        font-size: 1.1em;
    }
    
    .rmq-crop-inline-body {
        padding: 15px;
    }
    
    .rmq-crop-section .rmq-crop-actions {
        flex-direction: column;
    }
    
    .rmq-crop-section .rmq-crop-actions .rmq-btn {
        width: 100%;
    }
    
    #rmq-items-selector .rmq-items-list {
        max-height: 200px;
    }
}

/* v4.3.1 - Animations de transition améliorées */
.rmq-inline-editor,
.rmq-item-details-inline,
.rmq-crop-inline-section,
.rmq-crop-section {
    animation: rmq-slide-in 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Animation de fermeture */
.rmq-inline-editor.rmq-closing,
.rmq-item-details-inline.rmq-closing,
.rmq-crop-inline-section.rmq-closing {
    animation: rmq-slide-out 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes rmq-slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Animation de pulsation pour les boutons de fermeture au focus */
.rmq-inline-editor-close:focus,
.rmq-item-details-close:focus,
.rmq-crop-inline-close:focus {
    outline: none;
    animation: rmq-pulse 0.3s ease;
}

@keyframes rmq-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Animation du contenu lors du chargement */
.rmq-inline-editor .rmq-form,
.rmq-inline-editor form {
    animation: rmq-content-fade 0.4s ease 0.15s both;
}

@keyframes rmq-content-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition fluide pour les boutons */
.rmq-inline-editor .rmq-btn,
.rmq-item-details-inline .rmq-btn {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* v4.3.1 - Optimisation performances mobile */
@media (prefers-reduced-motion: reduce) {
    .rmq-inline-editor,
    .rmq-item-details-inline,
    .rmq-crop-inline-section,
    .rmq-crop-section {
        animation: none;
    }
    
    .rmq-inline-editor .rmq-form,
    .rmq-inline-editor form {
        animation: none;
    }
}

/* Optimisation GPU pour les animations sur mobile */
.rmq-inline-editor,
.rmq-item-details-inline,
.rmq-crop-inline-section {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Touch targets améliorés pour mobile */
@media (max-width: 768px) {
    .rmq-inline-editor-close,
    .rmq-item-details-close,
    .rmq-crop-inline-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .rmq-inline-editor-close .dashicons {
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   v4.3.6 - Modal Webcam pour capture photo desktop
   ========================================================================== */

#rmq-webcam-modal video {
    width: 100%;
    max-width: 640px;
    height: auto;
    border: 2px solid var(--rmq-border);
}

#rmq-webcam-modal canvas {
    display: none;
}

#rmq-webcam-preview {
    max-width: 640px;
    border: 2px solid var(--rmq-success);
}

#rmq-webcam-error {
    text-align: center;
}

#rmq-webcam-error .dashicons {
    vertical-align: middle;
}

/* Animation pour la modal webcam */
#rmq-webcam-modal.rmq-modal-open {
    animation: rmqWebcamFadeIn 0.3s ease-out;
}

@keyframes rmqWebcamFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

