:root {
    --bg: #0b1020;
    --bg-alt: #151a2c;
    --card-bg: #1f2538;
    --accent: #4cc3ff;
    --accent-soft: rgba(76,195,255,0.15);
    --text: #f5f7ff;
    --text-muted: #9aa3c7;
    --danger: #ff4c6a;
    --radius: 10px;
    --shadow: 0 14px 30px rgba(0,0,0,0.35);
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #1b2340 0, #050814 55%, #02030a 100%);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

/* Layout */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(90deg, #050814, #10152a);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

nav a:hover {
    color: var(--accent);
}

h1, h2, h3 {
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

h1 {
    font-size: 26px;
}

main {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* Grille produits */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-card strong {
    font-size: 16px;
    margin-bottom: 12px;
}

/* Page produit */

.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 30px;
    margin-top: 20px;
}

.product-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-info {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.04);
}

.product-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.price {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px;
}

/* Boutons */

.btn,
button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #7af0ff);
    color: #02030a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.6);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff8a9c);
    color: #fff;
}

/* Tableau panier / checkout */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.cart-table th {
    background: rgba(255,255,255,0.03);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-table tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* Messages */

p {
    margin-top: 10px;
}

/* Responsive */

@media (max-width: 800px) {
    .product-page {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================
   PAGE PRODUIT — ICOSPACE COCKPIT
   ============================ */

.product-header {
    margin-bottom: 25px;
}

.product-header h1 {
    font-size: 32px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.product-header .tagline {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}

.product-features {
    margin-top: 30px;
    background: var(--card-bg);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.04);
}

.product-features h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    color: var(--text-muted);
}

.product-features li:last-child {
    border-bottom: none;
}
.intro-screen {
    font-family: monospace;
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent);
    white-space: pre-wrap;
    min-height: 40px;
}
