/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --bg-2: #f4f8f3;
    --bg-3: #eaf3e8;
    --surface: #ffffff;
    --border: #d6e6d2;
    --text: #1a1f1a;
    --muted: #5a6a58;
    --primary: #107C10;          /* Xbox green */
    --primary-2: #16a916;
    --primary-glow: rgba(16, 124, 16, 0.35);
    --accent: #9BCA3E;
    --gold: #f5c542;
    --success: #107C10;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(16, 124, 16, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--primary-2); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-ghost {
    background: rgba(16, 124, 16, 0.04);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: rgba(16, 124, 16, 0.08);
    border-color: var(--primary-2);
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.3px;
}
.logo-img {
    display: block;
    height: 38px;
    width: auto;
}
.footer-brand .logo-img { height: 44px; }
.nav {
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}
.nav a { color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(16, 124, 16, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover { border-color: var(--primary-2); background: rgba(16, 124, 16, 0.08); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* Accessibilite clavier */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-2);
    outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 80% 10%, rgba(16, 124, 16, 0.18), transparent 70%),
        radial-gradient(700px 500px at 10% 80%, rgba(155, 202, 62, 0.18), transparent 70%),
        var(--bg);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(16,124,16,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,124,16,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 124, 16, 0.12);
    color: var(--primary-2);
    border: 1px solid rgba(16, 124, 16, 0.35);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-trust .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

/* Hero visual cards */
.hero-visual {
    position: relative;
    height: 420px;
}
.card-3d {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow:
        0 25px 50px rgba(16, 124, 16, 0.2),
        0 10px 20px rgba(16, 124, 16, 0.12);
}
.card-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-3d-1 { top: 0; left: 10px; transform: rotate(-8deg); animation: float1 6s ease-in-out infinite; }
.card-3d-2 { top: 50px; right: 10px; transform: rotate(6deg); animation: float2 7s ease-in-out infinite; }
.card-3d-3 { bottom: 0; left: 50%; margin-left: -100px; transform: rotate(-3deg); animation: float3 8s ease-in-out infinite; z-index: 2; }

@keyframes float1 { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(-8deg); } }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-15px) rotate(6deg); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }

/* ===== Strip ===== */
.strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 24px;
    text-align: center;
}
.strip-item {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.strip-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 124, 16, 0.12);
    border: 1px solid rgba(16, 124, 16, 0.3);
    color: var(--primary-2);
}
.strip-item > span svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-head {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Products grid ===== */
.products { background: var(--bg); }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--primary-2);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(16, 124, 16, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card.featured { border-color: rgba(245, 197, 66, 0.7); box-shadow: 0 10px 30px rgba(245, 197, 66, 0.18); }

@media (hover: hover) {
    .product-card { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(16, 124, 16, 0.18); }
    .product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(16, 124, 16, 0.28); }
    .product-card.featured { box-shadow: 0 14px 40px rgba(245, 197, 66, 0.2); }
    .product-card.featured:hover { box-shadow: 0 20px 50px rgba(245, 197, 66, 0.3); }
}

.product-visual {
    position: relative;
    aspect-ratio: 5 / 6;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow: hidden;
    cursor: pointer;
}
.product-visual::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(16,124,16,0.18), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(155,202,62,0.18), transparent 60%);
    pointer-events: none;
}
.product-visual img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
    transform: translateY(-2px) scale(1.02);
}
.product-card:hover .product-visual img {
    transform: translateY(-6px) scale(1.05);
}
.tag {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 124, 16, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 124, 16, 0.4);
}
.tag-gold {
    background: rgba(245, 197, 66, 0.15);
    color: var(--gold);
    border-color: rgba(245, 197, 66, 0.4);
}

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-body h3 { font-size: 18px; font-weight: 700; }
.product-body .meta { font-size: 13px; color: var(--muted); }
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}
.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.price-old {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
    white-space: nowrap;
}
.discount-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e53935, #ff5252);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}
.discount-badge.absolute {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}
.price-row .price-old {
    font-size: 18px;
}

/* ===== Product details block (eneba-style) ===== */
.product-details {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.detail-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.detail-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16,124,16,0.18), rgba(155,202,62,0.14));
    border: 1px solid rgba(16,124,16,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-2);
}
.detail-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.detail-block h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.detail-block p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.compat-list li {
    padding: 4px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

/* ===== Features ===== */
.features { background: var(--bg-2); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--primary-2); }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16,124,16,0.2), rgba(155,202,62,0.16));
    border: 1px solid rgba(16,124,16,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--primary-2);
}
.feature-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ===== How ===== */
.how { background: var(--bg); }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
}
.step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px var(--primary-glow);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== FAQ ===== */
.faq { background: var(--bg-2); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--primary-2); }
.faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--primary-2);
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    color: var(--muted);
    font-size: 14px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--primary-2); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges span {
    padding: 6px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ===== Product detail page ===== */
.product-page { padding: 60px 0 80px; }
.breadcrumb {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-2); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.product-gallery {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-gallery::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(16,124,16,0.18), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(155,202,62,0.18), transparent 60%);
}
.product-gallery img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.product-info .product-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(16,124,16,0.15);
    color: var(--primary-2);
    border: 1px solid rgba(16,124,16,0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.product-info .subtitle {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 15px;
}
.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.price-row .price-big {
    font-size: 38px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    white-space: nowrap;
}
.price-row .price-old { white-space: nowrap; }
.price-row .discount-badge { white-space: nowrap; }
.price-row .price-vat {
    font-size: 13px;
    color: var(--muted);
}
.buy-row { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }

.product-features-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.product-features-list .feature-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.product-features-list .feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.product-features-list .feature-row:first-child { padding-top: 0; }
.product-features-list .feature-row .ic {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16,124,16,0.18), rgba(155,202,62,0.14));
    border: 1px solid rgba(16,124,16,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-2);
}
.product-features-list .feature-row .ic svg {
    width: 18px;
    height: 18px;
    display: block;
}
.product-features-list .feature-row h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}
.product-features-list .feature-row p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.product-features-list .feature-row a { color: var(--primary-2); text-decoration: underline; }

.compat-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.compat-block h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.product-description {
    margin-top: 60px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.product-description h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 800;
}
.product-description h3 {
    font-size: 17px;
    margin: 22px 0 10px;
    color: var(--primary-2);
}
.product-description p,
.product-description li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}
.product-description ul { padding-left: 22px; list-style: disc; }

.related {
    margin-top: 60px;
}
.related h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}
.related .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { padding: 30px; }
    .product-gallery img { max-height: 380px; }
}

/* ===== Pages legales ===== */
.page-content { padding: 80px 0; min-height: 60vh; }
.page-content h1 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.page-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    font-weight: 700;
    color: var(--primary-2);
}
.page-content p,
.page-content li { color: var(--muted); margin-bottom: 12px; font-size: 15px; line-height: 1.7; }
.page-content ul { padding-left: 22px; list-style: disc; }
.page-content a { color: var(--primary-2); text-decoration: underline; }

/* ===== Merci page ===== */
.thanks {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}
.thanks-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
    max-width: 580px;
    margin: 0 auto;
}
.thanks-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #27ae60);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.35);
}
.thanks-card h1 { font-size: 30px; margin-bottom: 14px; }
.thanks-card p { color: var(--muted); margin-bottom: 16px; }
.thanks-card .btn { margin-top: 14px; }

/* ===== Contact form ===== */
.contact-form {
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
}
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 18px;
    transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-2);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 380px; }
    .card-3d { width: 170px; height: 240px; }
    .card-3d-1 { left: 22px; }
    .card-3d-2 { right: 22px; }
    .card-3d-3 { margin-left: -85px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }

    /* Detail page */
    .product-page { padding: 40px 0 60px; }
    .product-info h1 { font-size: 26px; }
    .price-row .price-big { font-size: 32px; }
    .product-description { padding: 28px; margin-top: 40px; }
    .product-description h2 { font-size: 20px; }
    .related { margin-top: 40px; }
    .related .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-details { padding: 22px; margin-top: 40px; }
}

@media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .header-inner > .btn { margin-left: auto; }
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 16px;
        font-size: 16px;
        font-weight: 600;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
        z-index: 49;
    }
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav a {
        display: block;
        padding: 14px 4px;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }
    .nav a:last-child { border-bottom: none; }

    section { padding: 56px 0; }
    .hero { padding: 50px 0 70px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .strip-inner { flex-direction: column; gap: 14px; }
    .card-3d { width: 135px; height: 190px; }
    .card-3d-1 { left: 18px; top: 10px; }
    .card-3d-2 { right: 18px; top: 50px; }
    .card-3d-3 { bottom: 0; left: 50%; margin-left: -68px; }

    /* Header tighter */
    .header-inner { height: 60px; gap: 10px; }
    .logo { font-size: 16px; gap: 8px; }
    .logo-img { height: 48px; }
    .footer-brand .logo-img { height: 56px; }

    /* Section heads */
    .section-head { margin-bottom: 36px; }
    .section-head h2 { font-size: 26px; }
    .section-head p { font-size: 15px; }

    /* Products grid: 2 columns side-by-side for richer feel on phones */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-visual { padding: 14px; }
    .product-body { padding: 14px; gap: 6px; }
    .product-body h3 { font-size: 15px; }
    .product-body .meta { font-size: 11.5px; }
    .product-footer { padding-top: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .product-footer .btn { width: 100%; }
    .price-current { font-size: 18px; }
    .price-old { font-size: 12px; }
    .discount-badge.absolute { top: 8px; left: 8px; padding: 2px 6px; font-size: 10px; }

    /* Detail page */
    .product-page { padding: 28px 0 50px; }
    .breadcrumb { font-size: 12px; margin-bottom: 16px; }
    .breadcrumb .sep { margin: 0 6px; }
    .product-layout { gap: 22px; }
    .product-gallery { padding: 22px; }
    .product-gallery img { max-height: 280px; }
    .product-info h1 { font-size: 23px; }
    .product-info .subtitle { font-size: 14px; margin-bottom: 22px; }
    .price-row { gap: 10px; row-gap: 6px; margin-bottom: 20px; }
    .price-row .price-big { font-size: 28px; }
    .price-row .price-old { font-size: 16px; }
    .price-row .price-vat { flex-basis: 100%; }
    .buy-row .btn { flex: 1 1 100%; min-width: 0; padding: 13px 18px; font-size: 14px; }
    .product-features-list { padding: 16px; }
    .product-features-list .feature-row { gap: 12px; padding: 12px 0; }
    .product-features-list .feature-row .ic { width: 32px; height: 32px; }
    .product-features-list .feature-row .ic svg { width: 16px; height: 16px; }
    .compat-block { padding: 16px 18px; }
    .product-description { padding: 22px; margin-top: 32px; }
    .product-description h2 { font-size: 19px; }
    .product-description h3 { font-size: 15px; }
    .product-description p, .product-description li { font-size: 14px; }
    .related h2 { font-size: 19px; }

    /* Product-details block (index) */
    .product-details { padding: 18px; gap: 14px; }
    .detail-icon { width: 36px; height: 36px; }
    .detail-icon svg { width: 18px; height: 18px; }
    .detail-block h4 { font-size: 14px; }
    .detail-block p { font-size: 13px; }

    /* Features */
    .feature { padding: 22px; }
    .feature-icon { width: 44px; height: 44px; margin-bottom: 14px; }
    .feature-icon svg { width: 22px; height: 22px; }

    /* Steps */
    .step { padding: 22px; }

    /* FAQ */
    .faq summary { padding: 14px 16px; font-size: 14.5px; }
    .faq summary::after { font-size: 20px; }
    .faq details p { padding: 0 16px 16px; font-size: 13.5px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-inner { padding-bottom: 28px; }
    .footer-bottom { font-size: 12px; padding-top: 18px; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 30px; line-height: 1.15; }
    .hero-sub { font-size: 15px; margin-bottom: 24px; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-cta .btn { width: 100%; padding: 13px 18px; }
    .hero-visual { height: 290px; }
    .card-3d { width: 108px; height: 152px; }
    .card-3d-1 { left: 14px; top: 0; }
    .card-3d-2 { right: 14px; top: 30px; }
    .card-3d-3 { bottom: 0; left: 50%; margin-left: -54px; }

    /* Single column for products on smallest phones for readability */
    .grid { grid-template-columns: 1fr; }
    .product-visual { aspect-ratio: 16 / 11; padding: 18px; }
    .product-footer { flex-direction: row; align-items: center; }
    .product-footer .btn { width: auto; }

    /* Header acheter button text shorter */
    .header-inner .btn { padding: 11px 14px; font-size: 13px; }

    /* Related grid: keep 2 cols, image smaller */
    .related .grid { gap: 10px; }
    /* Related cards: stack footer (price + Voir btn) so button isn't cropped in 2-col layout */
    .related .product-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .related .product-footer .btn { width: 100%; }
}
