@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    line-height: 1.2;
    overflow-x: auto;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 25% 25%, #001100 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #001100 0%, transparent 50%);
}

/* === STYLES COMMUNS === */

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

.header {
    text-align: center;
    border: 2px solid #00ff00;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #001100;
    box-shadow: 0 0 20px #00ff00;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0000ff;
    color: #ffffff;
    padding: 5px 20px;
    font-size: 12px;
    border-top: 1px solid #00ff00;
}

.hidden {
    display: none !important;
}

/* Effet de scanlines */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

/* === STYLES PAGE D'ACCUEIL === */

.ascii-art {
    color: #00ffff;
    font-size: 12px;
    line-height: 1;
    white-space: pre;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffff;
}

.system-info {
    color: #ffff00;
    margin-bottom: 10px;
}

.welcome-message {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-section {
    border: 1px solid #00ff00;
    padding: 15px;
    background-color: #001100;
}

.menu-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: underline;
}

.menu-item {
    color: #00ff00;
    margin: 5px 0;
}

.menu-key {
    color: #ff00ff;
    font-weight: bold;
}

.connection-info {
    text-align: center;
    color: #ff00ff;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 30px;
}

.command-prompt {
    border: 1px solid #00ff00;
    padding: 10px;
    background-color: #001100;
    margin: 20px 0;
}

.command-prompt input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    outline: none;
    width: 90%;
    font-size: 14px;
}

.command-prompt input::placeholder {
    color: #006600;
}

/* === STYLES POUR LA PAGE DE LOGIN === */

.login-container {
    border: 2px solid #00ff00;
    padding: 30px;
    background-color: #001100;
    box-shadow: 0 0 20px #00ff00;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ascii-title {
    color: #00ffff;
    font-size: 12px;
    line-height: 1;
    white-space: pre;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffff;
}

.access-message {
    color: #ffff00;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-group {
    margin: 20px 0;
    text-align: left;
}

.form-group label {
    display: block;
    color: #00ff00;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    font-size: 16px;
    padding: 8px;
    outline: none;
}

.form-group input:focus {
    box-shadow: 0 0 10px #00ff00;
}

.form-group input:disabled {
    border-color: #666;
    color: #666;
}

.login-btn {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.login-btn:hover:not(:disabled) {
    background-color: #00ff00;
    color: #000;
    text-shadow: none;
}

.login-btn:disabled {
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}

.error {
    color: #ff0000;
    background-color: #330000;
    border: 1px solid #ff0000;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

.blocked {
    color: #ff0000;
    background-color: #330000;
    border: 2px solid #ff0000;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.security-info {
    color: #666;
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
}

.back-link {
    color: #ff00ff;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.back-link:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

/* === STYLES POUR LA PAGE ROMS === */

.page-title {
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ffff;
}

.nav-bar {
    background-color: #000080;
    color: #ffffff;
    padding: 10px 20px;
    margin-bottom: 20px;
    border: 1px solid #00ff00;
}

.rom-list-container {
    border: 1px solid #00ff00;
    background-color: #001100;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

/* Vue Liste */
.rom-list-header {
    color: #ffff00;
    font-weight: bold;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 50px 60px 1fr 100px;
    gap: 10px;
}

.rom-item-list {
    color: #00ff00;
    padding: 3px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 50px 60px 1fr 100px;
    gap: 10px;
    align-items: center;
    border-radius: 2px;
}

.rom-item-list:hover {
    background-color: #003300;
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

/* Vue Grille */
.rom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.rom-item-grid {
    background-color: #001100;
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rom-item-grid:hover {
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00;
    transform: translateY(-2px);
}

.rom-thumbnail {
    width: 100%;
    height: 120px;
    background-color: #000;
    border: 1px solid #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    overflow: hidden;
    position: relative;
}

.rom-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}

.rom-thumbnail.loading {
    background: linear-gradient(45deg, #001100, #002200, #001100);
    background-size: 400% 400%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.rom-name {
    color: #00ff00;
    font-size: 12px;
    margin-bottom: 4px;
    word-break: break-word;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rom-info {
    color: #00ffff;
    font-size: 10px;
}

.rom-number {
    color: #ff00ff;
    font-weight: bold;
}

.rom-size {
    color: #00ffff;
    text-align: right;
}

.controls {
    border: 1px solid #00ff00;
    padding: 10px;
    background-color: #001100;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
}

.search-box {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    padding: 5px;
    outline: none;
}

.search-box::placeholder {
    color: #666;
}

.view-toggle {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    background-color: #003300;
    color: #ffff00;
}

.view-toggle.active {
    background-color: #00ff00;
    color: #000;
}

.status-info {
    color: #ffff00;
    text-align: center;
}

.back-button {
    color: #ff00ff;
    cursor: pointer;
    font-weight: bold;
}

.back-button:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background-color: #001100;
    border: 2px solid #00ff00;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #00ff00;
    margin-bottom: 15px;
}

.lightbox-info {
    color: #00ff00;
    margin-bottom: 15px;
}

.lightbox-title {
    color: #ffff00;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.lightbox-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lightbox-btn {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background-color: #003300;
    color: #ffff00;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ff00ff;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.lightbox-close:hover {
    color: #ffff00;
}

/* === STYLES PAGE BOUTIQUE === */

.breadcrumb {
    color: #ffff00;
    margin-bottom: 20px;
    font-size: 12px;
}

.section {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.section-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 15px;
    text-decoration: underline;
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.product {
    border: 1px solid #666;
    padding: 10px;
    background-color: #000;
}

.product.available {
    border-color: #00ff00;
    background-color: #001100;
}

.product.unavailable {
    border-color: #444;
    background-color: #111;
    color: #666;
}

.product-name {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 8px;
}

.product.available .product-name {
    color: #ffff00;
}

.product-price {
    color: #ff00ff;
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
}

.product.unavailable .product-price {
    color: #444;
    text-decoration: line-through;
}

.product-desc {
    color: #00ff00;
    font-size: 12px;
    margin: 8px 0;
}

.product.unavailable .product-desc {
    color: #444;
}

.product-status {
    font-weight: bold;
    margin-top: 8px;
}

.status-available {
    color: #00ff00;
}

.status-unavailable {
    color: #ff0000;
}

.photo-placeholder {
    border: 1px dashed #00ff00;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    background-color: #002200;
    color: #00ff00;
    font-size: 10px;
}

.product.unavailable .photo-placeholder {
    border-color: #444;
    background-color: #111;
    color: #444;
}

.order-info {
    border: 2px solid #ffff00;
    padding: 15px;
    margin: 20px 0;
    background-color: #002200;
    color: #ffff00;
}

/* === STYLES POUR LES IMAGES DANS LES ARTICLES === */

.news-image {
    width: 500px;
    max-width: 100%;
    border: 2px solid #00ff00;
    margin: 15px;
    box-shadow: 0 0 10px #00ff00;
    display: block;
}

.news-image.left {
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

.news-image.right {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

.news-image-caption {
    color: #ffff00;
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.news-image-container {
    display: inline-block;
    margin: 15px;
}

.news-image-container.left {
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

.news-image-container.right {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

/* Responsive pour les images */
@media (max-width: 768px) {
    .news-image {
        width: 100%;
        max-width: 300px;
    }
    
    .news-image-container.left,
    .news-image-container.right {
        float: none;
        display: block;
        margin: 15px auto;
        text-align: center;
    }
}

/* Clearfix pour les floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hidden {
    display: none !important;
}