/* ==============================================
   PAGE NOS MOTOS - DESIGN ULTRA-MODERNE 2026
   Créé le 18/01/2026 - Synchronisé avec new_membre
=============================================== */

/* Masquer UNIQUEMENT le contenu visuel du header, PAS le menu sticky */
.page-template-template-nos-motos .header .overlay-layer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-nos-motos .intro-section {
    display: none !important;
}

/* Réduire l'espace du header au minimum */
.page-template-template-nos-motos .header {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Section principale avec fond dégradé */
.motos-section-modern {
    position: relative;
    padding: 40px 0 100px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* Effet de particules en arrière-plan */
.motos-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.motos-overlay-modern {
    position: relative;
    z-index: 1;
}

/* Header moderne */
.motos-header-modern {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 100px;
    position: relative;
}

.motos-title-modern {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ligne décorative animée */
.motos-line-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px auto;
}

.motos-line-modern span {
    height: 3px;
    background: #f16c20;
    border-radius: 3px;
    animation: lineGrow 2s ease-in-out infinite;
}

.motos-line-modern span:nth-child(1) {
    width: 60px;
    animation-delay: 0s;
}

.motos-line-modern span:nth-child(2) {
    width: 100px;
    animation-delay: 0.3s;
}

.motos-line-modern span:nth-child(3) {
    width: 60px;
    animation-delay: 0.6s;
}

/* Texte d'introduction */
.motos-intro-modern {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.motos-intro-modern p {
    margin: 0;
}

.motos-intro-modern strong {
    color: #f16c20;
    font-weight: 600;
}

/* Grille des photos moderne - 6 COLONNES FIXES */
.motos-grid-modern {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* Carte de moto moderne */
.moto-card-modern {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.moto-card-modern.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.moto-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(241, 108, 32, 0.15) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.moto-card-modern:hover .moto-card-glow {
    opacity: 1;
}

.moto-card-inner-modern {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.moto-card-modern:hover .moto-card-inner-modern {
    transform: translateY(-8px);
    border-color: rgba(241, 108, 32, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(241, 108, 32, 0.2);
}

/* Image de la carte - hauteur réduite pour 6 colonnes */
.moto-card-image-modern {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.moto-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.moto-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.moto-card-modern:hover .moto-image-wrapper img {
    transform: scale(1.1);
}

.moto-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

/* Contenu de la carte */
.moto-card-content-modern {
    padding: 15px;
    position: relative;
    text-align: center;
}

.moto-card-name-modern {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-align: center;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.moto-card-modern:hover .moto-card-name-modern {
    color: #f16c20;
}

/* Propriétaire de la moto */
.moto-card-owner-modern {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.2;
    text-align: center;
    transition: color 0.3s ease;
}

.moto-card-modern:hover .moto-card-owner-modern {
    color: rgba(241, 108, 32, 0.8);
}

/* Ligne hover */
.moto-card-hover-line {
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #f16c20 50%, transparent 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 3px;
}

.moto-card-modern:hover .moto-card-hover-line {
    transform: scaleX(1);
}

/* Message si aucune photo */
.no-photos-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

/* Message aucun résultat de recherche */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-style: italic;
}

/* ========================================
   BARRE DE RECHERCHE MODERNE
======================================== */

.moto-search-container {
    max-width: 600px;
    margin: 40px auto;
}

.moto-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.moto-search-input {
    width: 100%;
    padding: 16px 55px 16px 55px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

.moto-search-input::placeholder {
    color: #ffffff;
    font-weight: 400;
    opacity: 0.7;
}

/* Force le texte en blanc lors de la saisie */
.moto-search-input:focus {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(241, 108, 32, 0.5);
    box-shadow: 0 0 20px rgba(241, 108, 32, 0.2);
    color: #ffffff !important;
}

.search-icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: rgba(241, 108, 32, 0.8);
    pointer-events: none;
    transition: color 0.3s ease;
}

.moto-search-input:focus + .search-icon {
    color: #f16c20;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(241, 108, 32, 0.8);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(241, 108, 32, 1);
    transform: rotate(90deg);
}

.search-results-count {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* Lightbox pour afficher les photos en grand */
.moto-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moto-lightbox.active {
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
}

.lightbox-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.lightbox-owner {
    color: rgba(241, 108, 32, 0.9);
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(241, 108, 32, 0.9);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .motos-grid-modern {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .motos-title-modern {
        font-size: 42px;
    }
    
    .motos-grid-modern {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    
    .moto-card-image-modern {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .motos-section-modern {
        padding: 60px 0;
    }
    
    .motos-header-modern {
        margin-bottom: 40px;
        margin-top: 80px;
    }
    
    .motos-title-modern {
        font-size: 32px;
    }
    
    .motos-intro-modern {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .moto-search-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .moto-search-input {
        padding: 14px 50px 14px 48px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
    
    .motos-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .moto-card-image-modern {
        height: 180px;
    }
    
    .moto-card-name-modern {
        font-size: 11px;
    }
    
    .moto-card-owner-modern {
        font-size: 10px;
    }
    
    .lightbox-content {
        max-width: 95vw;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-name {
        font-size: 18px;
    }
    
    .lightbox-owner {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .motos-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .moto-card-image-modern {
        height: 280px;
    }
}

/* Animation pour les navigateurs qui supportent */
@media (prefers-reduced-motion: no-preference) {
    .moto-card-modern {
        will-change: opacity, transform;
    }
    
    .moto-image-wrapper img {
        will-change: transform;
    }
}

/* Mode sombre optimisé */
@media (prefers-color-scheme: dark) {
    .motos-section-modern {
        background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    }
}

/* Print styles */
@media print {
    .motos-section-modern {
        background: #ffffff;
    }
    
    .moto-card-inner-modern {
        border: 1px solid #cccccc;
    }
    
    .motos-particles,
    .moto-card-glow,
    .moto-lightbox,
    .upload-modal-overlay {
        display: none !important;
    }
}

/* ============================================================
   BARRE RECHERCHE + BOUTON + ADMIN - NOS MOTOS
   Ajouté le 01/03/2026
============================================================ */

.moto-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.moto-search-row .moto-search-wrapper {
    flex: 1;
}

/* ============================================================
   BOUTON + ADMIN INLINE - UPLOAD PHOTO MOTO
   Ajouté le 01/03/2026
============================================================ */

.admin-upload-moto-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f16c20 0%, #e05a10 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(241, 108, 32, 0.5),
                0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.admin-upload-moto-btn:hover {
    background: linear-gradient(135deg, #ff7a30 0%, #f16c20 100%);
    box-shadow: 0 6px 24px rgba(241, 108, 32, 0.7),
                0 3px 8px rgba(0,0,0,0.35);
    transform: scale(1.1) rotate(90deg);
}

.admin-upload-moto-btn:active {
    transform: scale(0.95);
}

.admin-upload-moto-icon {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

/* ============================================================
   MODAL UPLOAD PHOTO MOTO - ADMIN
   (classes partagées avec template-new-membre)
============================================================ */

.upload-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-modal-overlay.upload-modal-active {
    opacity: 1;
}

.upload-modal-box {
    background: #1a1a1a;
    border: 1px solid rgba(241, 108, 32, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7),
                0 0 0 1px rgba(241,108,32,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-modal-overlay.upload-modal-active .upload-modal-box {
    transform: translateY(0) scale(1);
}

.upload-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}

.upload-modal-icon {
    font-size: 28px;
    line-height: 1;
}

.upload-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.upload-modal-close:hover {
    background: rgba(241, 108, 32, 0.85);
    color: #ffffff;
    transform: rotate(90deg);
}

.upload-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-drop-zone {
    border: 2px dashed rgba(241, 108, 32, 0.4);
    border-radius: 14px;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(241, 108, 32, 0.04);
    position: relative;
    overflow: hidden;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: #f16c20;
    background: rgba(241, 108, 32, 0.1);
}

.upload-drop-zone.drag-over {
    transform: scale(1.02);
}

.upload-drop-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 4px;
}

.upload-drop-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.upload-drop-subtext {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
}

.upload-drop-formats {
    color: rgba(241, 108, 32, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 4px 0 0;
}

.upload-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-preview-zone {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(241, 108, 32, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.upload-preview-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.upload-preview-change {
    width: 100%;
    padding: 12px;
    background: rgba(241, 108, 32, 0.12);
    border: none;
    border-top: 1px solid rgba(241, 108, 32, 0.2);
    color: rgba(241, 108, 32, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-preview-change:hover {
    background: rgba(241, 108, 32, 0.22);
    color: #f16c20;
}

.upload-name-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-name-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-name-hint {
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.upload-name-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.upload-name-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.upload-name-input:focus {
    border-color: rgba(241, 108, 32, 0.6);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(241, 108, 32, 0.12);
    color: #ffffff !important;
}

.upload-name-tip {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.5;
}

.upload-progress-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f16c20, #ff9a50);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.upload-result-msg {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.upload-result-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.upload-result-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.upload-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.upload-btn-cancel {
    padding: 12px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-btn-cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.upload-btn-cancel:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.upload-btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f16c20 0%, #e05a10 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7a30 0%, #f16c20 100%);
    box-shadow: 0 4px 16px rgba(241, 108, 32, 0.5);
    transform: translateY(-1px);
}

.upload-btn-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-btn-submit-icon {
    font-size: 16px;
    line-height: 1;
}

/* ==============================================
   BOUTON - SUPPRESSION MOTO (admin / contributeur)
   Ajouté le 01/03/2026
=============================================== */

.admin-delete-moto-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.5), 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.admin-delete-moto-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.7), 0 3px 8px rgba(0,0,0,0.35);
    transform: scale(1.1);
}

.admin-delete-moto-btn:active {
    transform: scale(0.95);
}

.admin-delete-moto-icon {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

/* ==============================================
   MODALE SUPPRESSION MOTO
=============================================== */

.delete-moto-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-moto-modal-overlay.delete-moto-modal-active {
    opacity: 1;
}

.delete-moto-modal-box {
    background: #1a1a1a;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(231,76,60,0.1);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.delete-moto-modal-overlay.delete-moto-modal-active .delete-moto-modal-box {
    transform: translateY(0) scale(1);
}

.delete-moto-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(231,76,60,0.2);
    flex-shrink: 0;
}

.delete-moto-modal-icon { font-size: 28px; line-height: 1; }

.delete-moto-modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.delete-moto-modal-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaaaaa;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.delete-moto-modal-close:hover {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
    border-color: rgba(231,76,60,0.4);
}

.delete-moto-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delete-moto-search-wrap { position: relative; }

.delete-moto-search-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.delete-moto-search-input:focus {
    border-color: rgba(231,76,60,0.5);
    background: rgba(255,255,255,0.08);
}

.delete-moto-search-input::placeholder { color: rgba(255,255,255,0.3); }

.delete-moto-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.delete-moto-photo-grid::-webkit-scrollbar { width: 5px; }
.delete-moto-photo-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.delete-moto-photo-grid::-webkit-scrollbar-thumb { background: rgba(231,76,60,0.4); border-radius: 3px; }

.delete-moto-photo-item {
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    padding: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.04);
}

.delete-moto-photo-item:hover {
    background: rgba(231,76,60,0.1);
    border-color: rgba(231,76,60,0.3);
}

.delete-moto-photo-item.selected {
    border-color: #e74c3c;
    background: rgba(231,76,60,0.15);
}

.delete-moto-photo-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 7px;
    margin-bottom: 5px;
}

.delete-moto-photo-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.delete-moto-photo-item:hover .delete-moto-photo-thumb img { opacity: 0.7; }

.delete-moto-photo-check {
    position: absolute;
    inset: 0;
    background: rgba(231,76,60,0.55);
    color: #ffffff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 7px;
}

.delete-moto-photo-item.selected .delete-moto-photo-check { opacity: 1; }

.delete-moto-photo-name {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.delete-moto-photo-item.selected .delete-moto-photo-name {
    color: #e74c3c;
    font-weight: 700;
}

.delete-moto-empty-msg {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px 0;
    margin: 0;
}

.delete-moto-confirm-zone {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.25);
    border-radius: 12px;
    padding: 14px 18px;
    flex-shrink: 0;
}

.delete-moto-confirm-preview img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(231,76,60,0.4);
    display: block;
    flex-shrink: 0;
}

.delete-moto-confirm-text {
    color: #ffffff;
    font-size: 15px;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.delete-moto-confirm-text strong { color: #e74c3c; }

.delete-moto-confirm-warning {
    color: rgba(255,180,50,0.85);
    font-size: 13px;
    margin: 0;
}

.delete-moto-result-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.delete-moto-result-success {
    background: rgba(46,213,115,0.12);
    border: 1px solid rgba(46,213,115,0.35);
    color: #2ed573;
}

.delete-moto-result-error {
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.35);
    color: #e74c3c;
}

.delete-moto-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.delete-moto-btn-cancel {
    padding: 12px 22px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-moto-btn-cancel:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.delete-moto-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(192,57,43,0.35);
}

.delete-moto-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.5);
}

.delete-moto-btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .admin-upload-moto-btn {
        width: 46px;
        height: 46px;
    }
    .admin-upload-moto-icon {
        font-size: 26px;
    }
    .admin-delete-moto-btn {
        width: 46px;
        height: 46px;
        border-radius: 50%;
    }
    .admin-delete-moto-icon {
        font-size: 26px;
    }
    .delete-moto-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .delete-moto-modal-footer {
        flex-direction: column-reverse;
    }
    .delete-moto-btn-cancel,
    .delete-moto-btn-submit {
        width: 100%;
        justify-content: center;
    }
    .upload-modal-box {
        max-width: 100%;
        border-radius: 16px;
    }
    .upload-modal-header {
        padding: 18px;
    }
    .upload-modal-title {
        font-size: 17px;
    }
    .upload-modal-body {
        padding: 18px;
    }
    .upload-drop-zone {
        padding: 26px 14px;
    }
    .upload-modal-footer {
        padding: 14px 18px;
        flex-direction: column-reverse;
    }
    .upload-btn-cancel,
    .upload-btn-submit {
        width: 100%;
        justify-content: center;
    }
}
