﻿/*=============================================================================
  23. MEDIA QUERIES GLOBALES (RESPONSIVE)
=============================================================================*/
@media (max-width: 768px) {
    .page-card-body,
    .page-card-aside,
    .contact-container .contact-form,
    .contact-container .site-form,
    .contact-info-panel,
    .page-card-inner {
        padding: 24px 20px;
    }

    .hero-inner {
        padding: 24px 16px 0px;
        min-height: 85vh;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-cta .button-submit,
    .hero-cta .button-forgot {
        width: 100%;
        justify-content: center;
    }

    .home-hero .hero-image-container {
        gap: 16px;
        padding: 20px;
    }

    .home-hero .hero-image-container img {
        height: 56px;
    }

    .home-games-inner {
        padding: 24px 20px;
    }

    .home-jeux-catalog {
        padding: 20px 16px 28px;
    }

    .home-page .home-jeux-catalog .jeux-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .home-page .home-jeux-catalog .jeux-card {
        width: 200px;
    }

    .home-page .home-jeux-catalog .jeux-card-visual {
        width: 200px;
        height: 268px;
    }

    .home-page .home-jeux-catalog .jeux-card-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .login-box {
        margin: 20px 0;
    }

    .login-actions {
        flex-direction: column-reverse;
    }

    .login-actions .button-submit,
    .login-actions .button-forgot {
        width: 100%;
    }

    .command-status-box .grid-two-cols {
        padding: 20px 15px;
    }

    .order-details-container h2,
    .order-date,
    .tracking-info p {
        text-align: center;
    }

    .game-specs {
        align-items: center;
    }

    .game-specs li {
        padding-left: 0;
    }

    .game-specs li::before {
        display: none;
    }

    .action-btn-container {
        justify-content: center;
    }

    .button-submit,
    .button-forgot,
    .btn-cancel-order {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .top-article h1  { font-size: 2rem; }
    .new-price       { font-size: 1.5rem; }
    .old-price       { font-size: 1.33rem; }
    .stars           { font-size: 1rem; }
}

@media (min-width: 600px) {
    .page-card .postal-code-field {
        flex: 0 0 150px !important;
    }
    .page-card .city-field {
        flex: 1;
    }
}

/* == EXTRACTED INLINE STYLES == */

/* --- buy/recap.php --- */
.recap-page-card {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.recap-inner {
    padding: clamp(16px, 4vw, 28px) clamp(14px, 4vw, 24px);
    box-sizing: border-box;
}

.recap-product {
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    min-width: 0;
}

.recap-product-img {
    width: auto;
    height: 100%;
    max-height: 160px;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: contain;
    flex-shrink: 0;
}

.recap-product-info {
    flex: 1;
    min-width: 0;
}

.recap-badge-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.badge-support--inline {
    width: fit-content;
    display: inline-block;
}

.badge-support--new {
    width: fit-content;
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
}

.recap-price-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.recap-buy-btn {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    border-radius: var(--radius-pill) !important;
}

.recap-buy-btn-label {
    flex: 1;
}

.recap-buy-btn-arrow {
    flex-shrink: 0;
    margin-left: 8px;
}

.recap-info-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
}

.recap-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.recap-info-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

.recap-totals {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recap-total-amount--primary {
    color: var(--color-primary) !important;
}

/* --- user/user_delivery.php & reset_password.php --- */
.form-success-alert {
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 4px solid #2ecc71;
    color: #2ecc71;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-error-alert {
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-danger-alert {
    background-color: rgba(204, 0, 0, 0.15);
    border-left: 4px solid var(--color-danger);
    color: var(--color-danger);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* .ua-alert--error (user_account.php page-scoped) is a visual alias for .form-error-alert.
   Both share identical styling; ua-alert--error is intentionally kept scoped to that page. */

.form-back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer-block {
    margin-top: 24px;
}

.form-intro-text {
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- admin/orders.php --- */
.order-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- admin/games.php --- */
.admin-view-toggle-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.chart-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.chart-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
}

