/* ===== Luminova – feuille de style principale ===== */
:root {
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --accent-soft: #e0f2fe;
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 14px;
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.container.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.right { text-align: right; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .12em; font-size: 1.1rem; color: var(--ink); }
.brand em { font-style: normal; color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { color: var(--ink-soft); font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--accent); text-decoration: none; }
.phone-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.phone-link svg { color: var(--accent); }
.phone-link:hover { color: var(--accent-dark); text-decoration: none; }
@media (max-width: 520px) { .phone-link span { display: none; } }
@media (max-width: 760px) { .main-nav { display: none; } }

/* Flash */
.flash { padding: .9rem 1.2rem; border-radius: 10px; margin: 1rem 0 0; font-weight: 500; }
.flash-success { background: #dcfce7; color: #14532d; }
.flash-error { background: #fee2e2; color: #7f1d1d; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg-alt)); padding: 5rem 0 4rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 1rem; }
.hero-text p { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.fan-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,.35), transparent 65%); filter: blur(10px); }
.fan-spin { width: 300px; color: var(--ink); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { min-height: 240px; } .fan-spin { width: 200px; } }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { max-width: 60ch; color: var(--ink-soft); }
.page-head { background: var(--bg-alt); padding: 3rem 0 2rem; }
.page-head p { color: var(--ink-soft); max-width: 70ch; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.category-card { display: block; padding: 1.6rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), #1e293b); color: #fff; transition: transform .15s; }
.category-card:hover { transform: translateY(-3px); text-decoration: none; }
.category-card p { color: #cbd5e1; font-size: .95rem; }
.category-card span { color: var(--accent); font-weight: 600; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band p { color: #e0f2fe; margin-bottom: 1.5rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card-media { position: relative; aspect-ratio: 1; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; background: #fff; }
.product-placeholder { width: 55%; color: var(--muted); }
.product-placeholder.large { width: 60%; margin: auto; }
.tag { position: absolute; top: .8rem; left: .8rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 999px; }
.tag-featured { background: var(--accent); color: #fff; }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); font-weight: 700; }
.product-card-body h3 { margin: 0; font-size: 1.05rem; }
.product-card-body h3 a { color: var(--ink); }
.product-card-body p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.specs-inline { list-style: none; padding: 0; margin: .2rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.specs-inline li { font-size: .78rem; background: var(--bg-alt); padding: .2rem .55rem; border-radius: 6px; color: var(--ink-soft); }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; }
.price { font-weight: 800; font-size: 1.15rem; }
.price-lg { font-size: 2rem; }
.price-request { font-size: .95rem; font-weight: 700; color: var(--ink-soft); }

/* Product page */
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--ink-soft); }
.price-block { display: flex; align-items: baseline; gap: .6rem; margin: 1.2rem 0 .6rem; }
.product-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0; }
@media (max-width: 760px) { .header-cta { display: none; } }
/* Fiche produit (modèle fiche catalogue) */
.product-sheet { --sheet-teal: #2bbf9f; --sheet-teal-soft: #5fe3c8; --sheet-rose: #fbeae6; --sheet-red: #e35d5d; --sheet-row: #e3e9f0; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; border-bottom: 3px solid var(--sheet-teal); padding-bottom: 1rem; margin-bottom: 2rem; }
.sheet-head h1 { color: var(--sheet-teal); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .2rem; letter-spacing: .02em; }
.sheet-subtitle { font-style: italic; color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; max-width: 680px; }
.badges li { width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; color: var(--ink); background: #fff; }
.badges strong { font-size: 1.25rem; font-weight: 800; }
.badges span, .badges small { font-size: .5rem; font-weight: 700; letter-spacing: .03em; }
.badge-hex { width: 66px !important; }
.badge-hex small { font-size: .42rem !important; }
.badge-hex {  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: var(--ink) !important; position: relative; }
.badge-hex::before { content: ''; position: absolute; inset: 3px; clip-path: inherit; background: #fff; z-index: 0; }
.badge-hex > * { position: relative; z-index: 1; }
.badge-round { border-radius: 50%; border: 2px solid var(--ink); }
.badge-round.badge-dark { background: var(--ink) !important; color: #fff !important; }
.badge-round.badge-dark strong { font-size: 1.4rem; letter-spacing: -.04em; }
.badge-volt { font-size: .62rem !important; font-weight: 800 !important; padding: 0 4px; }
.badge-repair { color: #ea7a24 !important; }
.badge-repair small { margin-top: 2px; }
.badge-pent { clip-path: polygon(50% 0, 100% 36%, 82% 100%, 18% 100%, 0 36%); background: var(--ink) !important; color: #fff !important; padding-top: 8px; }
.badge-pent span { font-size: .8rem !important; }
.badge-oct { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: var(--ink) !important; position: relative; }
.badge-oct::before { content: ''; position: absolute; inset: 2px; clip-path: inherit; background: #fff; }
.badge-oct > * { position: relative; }
.badge-oct span { font-size: .8rem !important; }

.sheet-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: start; }
.sheet-main-image { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.sheet-main-image img { width: 100%; height: 100%; object-fit: contain; }
.sheet-thumbs { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.sheet-thumbs button { width: 100%; aspect-ratio: 16 / 9; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.sheet-thumbs button.active, .sheet-thumbs button:hover { border-color: var(--sheet-teal); }
.sheet-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.key-points { background: var(--sheet-rose); border: 1px solid var(--sheet-red); padding: 1.2rem 1.5rem; }
.key-points h2 { font-size: 1rem; margin: 0 0 .5rem; }
.key-points ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; color: #334155; }

.sheet-middle { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-top: 2.5rem; align-items: start; }
.sheet-middle:not(:has(.options-box)) { grid-template-columns: 1fr; }
.options-box { border: 1px solid var(--sheet-teal); padding: 1.2rem 1.4rem; font-size: .9rem; }
.options-box h2 { text-align: center; text-decoration: underline; font-size: 1.15rem; margin-bottom: 1rem; }
.options-box h3 { font-size: .9rem; margin: 1rem 0 .3rem; }
.options-box ul { margin: 0; padding-left: 1.1rem; color: #334155; }
.specs-title { background: var(--sheet-teal-soft); color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; padding: .4rem .7rem; margin: 0; }
.specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs-table th, .specs-table td { padding: .4rem .7rem; text-align: left; vertical-align: top; }
.specs-table th { width: 40%; font-weight: 700; }
.specs-table tr:nth-child(even) th, .specs-table tr:nth-child(even) td { background: var(--sheet-row); }

.variants-box { margin-top: 2.5rem; }
.variants-box h2 { font-size: 1.15rem; }
.table-scroll { overflow-x: auto; }
.variants-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 760px; }
.variants-table th { background: var(--sheet-rose); border: 1px solid var(--sheet-red); text-align: left; padding: .45rem .6rem; }
.variants-table td { border: 1px solid var(--sheet-teal-soft); padding: .45rem .6rem; }
.product-description { margin-top: 2.5rem; color: var(--ink-soft); }
@media (max-width: 860px) {
    .sheet-top, .sheet-middle { grid-template-columns: 1fr; }
    .badges { justify-content: flex-start; }
}

/* Exemples d'installation */
.btn-installation svg { color: var(--accent); }
.installation-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(1100px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); box-shadow: var(--shadow); }
.installation-dialog::backdrop { background: rgba(15, 23, 42, .7); }
.installation-dialog-inner { padding: 1.5rem; }
.installation-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.installation-dialog h2 { font-size: 1.2rem; margin: 0; }
.installation-close { background: var(--bg-alt); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }
.installation-close:hover { background: var(--line); }
.installation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.installation-grid figure { margin: 0; }
.installation-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg-alt); }
.installation-grid figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; }
.catalog-filters h4 { margin: 1.5rem 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ink-soft); }
.filter-list a:hover, .filter-list a.active { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.search-form { display: flex; gap: .4rem; }
.search-form input { flex: 1; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; min-width: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } }

/* Forms */
.form-group { margin-bottom: 1.1rem; flex: 1; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group label, .login-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-group input, .form-group textarea, .form-group select, .login-form input[type=email], .login-form input[type=password] { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.form-group input:focus, .form-group textarea:focus, .login-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.form-errors { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--danger); font-size: .85rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 1.2rem; font-weight: 500 !important; }
.checkout-form h3 { margin-top: 1.5rem; }
.checkout-form h3:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; color: #cbd5e1; padding: .2rem 0; }
.footer-grid a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
