.interfaces-view {
    padding: 2.5rem;
    background: var(--bg-body);
}

[data-theme="neon"] .interfaces-view h1,
[data-theme="neon"] .freebox-view h1,
[data-theme="neon"] .free-mobile-view h1 {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(1.4rem, 4vw, 3.2rem);
    text-shadow: 2px 2px 0 var(--info), -2px -2px 0 var(--secondary);
    margin: 3rem auto;
    animation: none !important;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    display: block;
    line-height: 1.2;
}

@media (max-width: 768px) {
    [data-theme="neon"] .interfaces-view h1,
    [data-theme="neon"] .freebox-view h1,
    [data-theme="neon"] .free-mobile-view h1 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
        letter-spacing: 1px;
        margin: 1.5rem auto;
    }
}


.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: #d40000;
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.device-card {
    background: var(--bg-body);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.device-card:hover {
    
    box-shadow: var(--shadow-sm);
    border-color: rgba(212, 0, 0, 0.3);
}

.device-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
}

[data-theme="dark"] .device-image {
    background: transparent;
}

.device-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-info {
    text-align: center;
}

.device-version {
    font-size: 11px;
    color: white;
    background: #d40000;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 6px;
}

.device-info h3 {
    font-size: 16px;
    margin: 4px 0;
    color: var(--text-main);
}

.device-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Device Modal */
.device-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.device-modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

.modal-close:hover {
    color: #d40000;
}

.modal-header {
    background: linear-gradient(135deg, #d40000 0%, #ff4444 100%);
    padding: 24px;
    color: white;
    position: relative;
}

.modal-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-image-box {
    background: white;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-image-box:hover {
    transform: scale(1.05);
}

.modal-image-box img {
    flex: 1;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.image-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: auto;
    padding-top: 8px;
}

.modal-title {
    text-align: center;
}

.device-version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.modal-title h2 {
    margin: 8px 0 4px;
    font-size: 28px;
}

.device-desc {
    opacity: 0.9;
    font-size: 14px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Two-column layout for modal */
.modal-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .modal-columns {
        grid-template-columns: 1fr 1fr;
    }

    .device-modal {
        max-width: 900px;
    }
}

.modal-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-column .info-section {
    margin-bottom: 0;
}

.info-section {
    margin-bottom: 24px;
}

.info-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d40000;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    background: var(--bg-body);
    padding: 12px;
    border-radius: 8px;
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--text-main);
}

.install-steps {
    padding-left: 20px;
    margin: 0;
}

.install-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-main);
}

.colis-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.colis-list li {
    background: var(--bg-body);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-main);
}

.colis-list li::before {
    content: "✓ ";
    color: #22c55e;
}

.faq-link {
    display: inline-block;
    color: #d40000;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #d40000;
    border-radius: 8px;
    transition: all 0.2s;
}

.faq-link:hover {
    background: #d40000;
    color: white;
}

/* Video wrapper for YouTube embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .modal-images {
        flex-direction: column;
        align-items: center;
    }

    .modal-image-box {
        max-width: 140px;
    }

    .device-modal {
        max-height: 90vh;
    }
}

/* Interface Button */
.interface-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: linear-gradient(135deg, #d40000 0%, #ff4444 100%);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.interface-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(212, 0, 0, 0.3);
}

/* Interfaces Page */
.interfaces-view {
    padding: 20px 0;
}

.interface-section {
    margin-bottom: 60px;
    /* Stronger separation between categories */
}

.interface-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title i {
    color: var(--primary);
}

.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.interface-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.interface-card:hover {
    
    box-shadow: var(--shadow-sm);
    border-color: rgba(212, 0, 0, 0.4);
}

.interface-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle default background */
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

[data-theme="dark"] .interface-icon {
    background: rgba(255, 255, 255, 0.1);
    /* Lighter for dark mode visibility */
}

.interface-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.interface-info h3 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--text-main);
}

.interface-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Annuaire Styles */
