/* ═══════════════════════════════════════════════════════════════════════════
   IMAGIN'ART PACK 3D — Showcase Website Stylesheet
   Design: Editorial Packaging Studio — Charcoal #0c0c0e & Warm Gold #d9ae4e
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark:        #0c0c0e;
    --bg-surface:     #141417;
    --bg-card:        #1a1a1e;
    --bg-card-hover:  #232329;

    --text-main:      #f2efe9;
    --text-muted:     #a19b90;
    --text-dim:       #6d6860;

    --gold-light:     #f0d98a;
    --gold-primary:   #d9ae4e;
    --gold-dark:      #9e7a28;

    --border-subtle:  rgba(217, 174, 78, 0.14);
    --border-bright:  rgba(240, 217, 138, 0.32);

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   18px;
    --radius-full: 9999px;

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.pattern-bg {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56' viewBox='0 0 48 56'%3E%3Cpath d='M24 2L46 15v26L24 54 2 41V15L24 2zm0 0v26m22-13L24 28 2 15' fill='none' stroke='%23d9ae4e' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 56px 65px;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

.site-header, section, footer {
    position: relative;
    z-index: 1;
}

::selection {
    background: var(--gold-primary);
    color: #0c0c0e;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

p { color: var(--text-muted); }

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

.section {
    padding: 84px 0;
}

.section-header {
    margin-bottom: 44px;
    max-width: 680px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--text-muted);
}

/* ═══ HEADER / NAVBAR ═══ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo img.logo-icon {
    height: 36px;
    width: auto;
}

.brand-logo img.logo-text {
    height: 20px;
    width: auto;
}

.pack-tag {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(217, 174, 78, 0.14);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Strictement masqué sur PC ; activé uniquement dans @media (max-width: 768px) */
.nav-hamburger,
.nav-mobile-cta {
    display: none;
}

/* ─── Boutons (sobres, sans trait parasite ni halo néon) ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn-primary {
    background: #d9ae4e;
    color: #0c0c0e;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #e3bc63;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.btn-sm { padding: 9px 18px; font-size: 0.86rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 30px; font-size: 0.98rem; }

/* ═══ HERO SECTION (Option A : Scène 3D interactive) ═══ */
.hero-section {
    padding: 120px 0 64px;
    min-height: calc(100vh - 20px);
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 44px;
    align-items: center;
}

.hero-content,
.hero-stage {
    min-width: 0;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fff 15%, var(--gold-light) 70%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 470px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ─── Stage 3D Hero ─── */
.hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stage-viewport {
    position: relative;
    height: 460px;
    border-radius: var(--radius-lg);
    background: #131317;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.hero-3d-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.hero-3d-canvas:active {
    cursor: grabbing;
}

.hero-3d-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.stage-hint {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
    background: rgba(12, 12, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    pointer-events: none;
    backdrop-filter: blur(6px);
}

/* Barre de contrôle studio sous la 3D */
.stage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--text-main);
}

.mode-btn.active {
    background: var(--gold-primary);
    color: #0c0c0e;
}

.stage-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 80px;
}

.fold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.fold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 2px solid #0c0c0e;
    box-shadow: none;
    cursor: pointer;
}

.fold-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 2px solid #0c0c0e;
    cursor: pointer;
}

/* ═══ COMMENT ÇA MARCHE (3 étapes simples) ═══ */
.steps-section {
    background: rgba(20, 20, 23, 0.55);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 24px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.step-text {
    font-size: 0.92rem;
    line-height: 1.65;
}

.steps-extras {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.steps-extras .sep {
    color: var(--gold-primary);
}

/* ═══ LES 8 MODÈLES ═══ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px 18px;
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.model-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    background: #141418;
    margin-bottom: 14px;
    overflow: hidden;
}

.model-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.model-card:hover .model-thumb-img {
    transform: scale(1.03);
}

.model-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.model-ref {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.model-name {
    font-size: 0.98rem;
    margin: 0;
}

.model-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ═══ COMPATIBILITÉ & FAQ COMPACT ═══ */
.info-faq-section {
    background: rgba(20, 20, 23, 0.55);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.info-faq-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 48px;
    align-items: start;
}

.specs-lead {
    font-size: 0.96rem;
    margin-bottom: 24px;
}

.specs-list {
    border-top: 1px solid var(--border-subtle);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.spec-row dt {
    color: var(--text-main);
    font-weight: 600;
    flex-shrink: 0;
}

.spec-row dd {
    color: var(--text-muted);
    text-align: right;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--border-bright);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--gold-light); }

.faq-chevron {
    width: 17px;
    height: 17px;
    color: var(--gold-primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    padding: 0 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.65;
    padding-top: 14px;
}

/* ═══ SECTION COMMANDER ═══ */
.cta-block {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

/* ═══ FOOTER PRO (style Suite) ═══ */
.site-footer {
    background: #08080a;
    border-top: 1px solid var(--border-subtle);
    padding: 58px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 340px;
}

.footer-brand p {
    font-size: 0.88rem;
    margin-top: 14px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 0.94rem;
    margin-bottom: 14px;
    color: var(--gold-light);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links-group li,
.footer-links-group a {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-links-group strong {
    color: var(--text-main);
}

.footer-links-group a:hover {
    color: var(--gold-light);
}

.footer-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-google-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24 !important;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero-section { padding-top: 108px; min-height: auto; }
    .hero-subtitle { max-width: 600px; }
    .stage-viewport { height: 420px; }
    .models-grid { grid-template-columns: repeat(2, 1fr); }
    .info-faq-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .stage-viewport { height: 300px; }
    .stage-toolbar { flex-wrap: wrap; }
    .stage-slider-wrap { order: 3; flex: 1 0 100%; padding-top: 4px; }

    /* Menu sandwich UNIQUEMENT sur mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 74px; left: 0; right: 0;
        background: #0c0c0e;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 28px;
        gap: 6px;
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(16px);
    }

    .nav-links.open { display: flex; }
    .nav-link { padding: 10px 0; font-size: 1rem; width: 100%; }
    .nav-mobile-cta { display: block; padding-top: 10px; width: 100%; }
    .nav-mobile-cta .btn { width: 100%; }
    .nav-actions { display: none; }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        background: none;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }

    .nav-hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text-muted);
        border-radius: 2px;
        transition: transform 0.25s, opacity 0.25s;
    }

    .nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .spec-row { flex-direction: column; gap: 4px; }
    .spec-row dd { text-align: left; }
}

@media (max-width: 520px) {
    .models-grid { grid-template-columns: 1fr; }
    .hero-buttons, .cta-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
}

/* ═══ ACCESSIBILITÉ, TACTILE & MOTION ═══ */
.hero-stage,
.stage-toolbar {
    touch-action: pan-y;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input[type="range"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn:active,
.mode-btn:active,
.nav-hamburger:active {
    transform: scale(0.98);
}

@media (hover: none) {
    .btn:hover,
    .model-card:hover,
    .step-card:hover {
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .model-card,
    .step-card,
    .nav-link,
    .nav-hamburger span,
    .faq-chevron {
        transition-duration: 0.01ms !important;
    }
}
