/* Plastilys — boitescartesdevisite.com. Hand-written CSS, no framework. */

:root {
    --blue: #0072bc;          /* logo colour */
    --blue-dark: #005a96;
    --blue-soft: #e8f2fa;
    --navy: #0b2d4f;
    --ink: #1c2633;
    --muted: #5d6b7a;
    --line: #dde4ec;
    --bg: #f5f7fa;
    --white: #ffffff;
    --accent: #c2410c;        /* calls to action (AA contrast with white text) */
    --accent-dark: #9a3412;
    --ok: #067647;
    --ok-bg: #e7f6ee;
    --ko: #b42318;
    --ko-bg: #fdecea;
    --wait: #8a5a00;
    --wait-bg: #fff4dc;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(11, 45, 79, .06), 0 4px 16px rgba(11, 45, 79, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 140px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.req { color: var(--ko); }
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Top bar & header ---------- */

.topbar { background: var(--navy); color: #cfdbe8; font-size: .8125rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar__tagline { display: none; }
/* Language menu (<details>, no JavaScript): links to the same page on the other languages' domains. */
.languages { position: relative; margin-left: auto; }
.languages summary { cursor: pointer; list-style: none; color: var(--white); font-weight: 600; padding: 0 4px; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: "▾"; margin-left: 4px; font-size: .75em; }
.languages ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 11rem; margin: 0; padding: 6px 0; list-style: none; background: var(--white); border-radius: 8px; box-shadow: 0 8px 24px rgba(11, 45, 79, .2); }
.languages li a, .languages li span { display: block; padding: 6px 14px; color: var(--navy); text-decoration: none; font-size: .9rem; }
.languages li a:hover { background: var(--bg); text-decoration: none; color: var(--blue); }
.languages li span[aria-current] { font-weight: 700; color: var(--blue); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
/* Two rows at every width: logo + account/cart buttons, then the menu (one row does not fit the five entries). */
.site-header__inner { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; align-items: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 0; }

.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 130px; height: auto; display: block; }
.brand__text { display: none; font-size: .78rem; line-height: 1.2; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

.header-actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.header-link { color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; }
.header-link:hover { color: var(--blue); }
.header-link--button { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; cursor: pointer; color: var(--navy); font-weight: 500; }
.header-link--button:hover { color: var(--blue); }

.account-btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--blue); color: var(--blue); background: var(--white); padding: 5px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.account-btn:hover, .account-btn.is-active { background: var(--blue-soft); color: var(--blue-dark); }

.cart-link { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: var(--white); border: 2px solid var(--blue); padding: 5px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.cart-link:hover, .cart-link.is-active { background: var(--blue-dark); color: var(--white); }
.badge { background: var(--white); color: var(--blue); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; }

.main-nav { grid-area: nav; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
@media (min-width: 720px) { .main-nav ul { flex-wrap: wrap; } }
.main-nav a { display: block; padding: 8px 12px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

@media (min-width: 720px) {
    .topbar__tagline { display: block; }
    .brand img { width: 160px; }
    .brand__text { display: block; }
}

@media (min-width: 720px) {
    .site-header__inner { padding-top: 14px; row-gap: 8px; }
    .main-nav a { padding: 10px 12px 11px; font-size: .95rem; }
}

@media (max-width: 479px) {
    /* Phones: icons stay, words go, so logo + both buttons fit on one line. */
    .header-actions .account-btn { padding: 5px 9px; font-size: 0; gap: 0; }
    .header-actions .account-btn svg { width: 20px; height: 20px; }
}

/* Back-office / Déconnexion are also in the account menu (/profil): not repeated in the header below desktop width. */
@media (max-width: 899px) {
    .header-actions .header-link, .header-actions .inline-form { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.hero--slider_contact { background-image: linear-gradient(90deg, rgba(11, 45, 79, .94), rgba(11, 45, 79, .55)), url("/images/slider_contact.jpg"); }
.hero--cristal { background-image: linear-gradient(90deg, rgba(11, 45, 79, .95) 30%, rgba(11, 45, 79, .45)), url("/images/boites/cristal.jpg"); background-position: center 45%; }
.hero--translucide { background-image: linear-gradient(90deg, rgba(11, 45, 79, .95) 30%, rgba(11, 45, 79, .5)), url("/images/boites/translucide.jpg"); }
.hero--atelier { background-image: linear-gradient(90deg, rgba(11, 45, 79, .94) 25%, rgba(11, 45, 79, .45)), url("/images/usine/atelier.jpg"); background-position: center 60%; }

/* Home banner: the boxes themselves, in the three materials. */
.hero-home {
    color: var(--white);
    background: radial-gradient(ellipse at 85% 20%, rgba(0, 114, 188, .55), transparent 60%), linear-gradient(135deg, #0b2d4f 0%, #071c33 100%);
}
.hero-home__inner { display: grid; gap: 18px; padding-top: 32px; padding-bottom: 36px; grid-template-areas: "title" "text" "shots"; }
.hero-home__title { grid-area: title; color: var(--white); font-size: clamp(1.7rem, 4.2vw, 2.9rem); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.hero-home__text { grid-area: text; }
.hero-home__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-home__shots { grid-area: shots; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-shot { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); outline: 1px solid rgba(255, 255, 255, .12); outline-offset: -1px; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hero-shot:hover img, .hero-shot:focus-visible img { transform: scale(1.05); }
.hero-shot__label { position: absolute; left: 6px; right: 6px; bottom: 8px; width: fit-content; max-width: calc(100% - 12px); background: rgba(11, 45, 79, .88); color: var(--white); padding: 3px 8px; border-radius: 12px; font-size: .72rem; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.btn.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

@media (min-width: 900px) {
    .hero-home__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "title title" "text shots"; align-items: center; column-gap: 40px; padding-top: 48px; padding-bottom: 52px; }
    .hero-home__shots { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; height: 360px; gap: 12px; }
    .hero-shot { aspect-ratio: auto; }
    .hero-shot--main { grid-row: 1 / span 2; }
    .hero-shot__label { left: 12px; bottom: 12px; font-size: .85rem; }
}

.hero__inner { padding-top: 40px; padding-bottom: 44px; }
.hero__text { max-width: 980px; }
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 4.2vw, 2.9rem); letter-spacing: -.015em; margin-bottom: .4em; text-wrap: balance; }
.hero__lead, .hero__price { max-width: 640px; }
.hero__lead { font-size: 1.08rem; color: #dbe7f3; }
.hero__price { font-size: 1.05rem; color: #dbe7f3; }
.hero__price strong { font-size: 1.9rem; color: var(--white); margin: 0 .1em; }

@media (min-width: 720px) {
    .hero__inner { padding-top: 64px; padding-bottom: 68px; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px; border: 2px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger { background: var(--ko); color: var(--white); }
.btn--danger:hover { background: #8f1c13; color: var(--white); }
.btn--lg { padding: 13px 24px; font-size: 1rem; }
.btn--sm { padding: 7px 12px; font-size: .85rem; }
.btn--block { width: 100%; }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.icon-btn { background: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; padding: 6px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--ko); border-color: var(--line); background: var(--ko-bg); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 24px; }
.actions--end { justify-content: flex-end; }
.actions--center { justify-content: center; }

/* ---------- Layout helpers ---------- */

.site-main { min-height: 50vh; }
.page { padding-top: 32px; padding-bottom: 56px; }
.page--narrow { max-width: 820px; }
.page-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.section { padding-top: 40px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 16px; }
.section-title { font-size: 1.5rem; margin-bottom: .3em; }
.subsection-title { font-size: 1.05rem; margin-top: 28px; }
.section--tight { padding-top: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .3em; }
.empty { color: var(--muted); }
.empty-state { text-align: center; padding: 40px 16px; background: var(--bg); border-radius: var(--radius); }

.flashes { padding-top: 16px; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; }
.alert--success { background: var(--ok-bg); border-color: #a6dcbf; color: #05603a; }
.alert--error { background: var(--ko-bg); border-color: #f5b5ae; color: #8f1c13; }
.alert--info { background: var(--blue-soft); border-color: #b9d6ee; color: var(--navy); }

/* ---------- Features strip ---------- */

.features { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
.feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--blue-soft); fill: var(--blue); }
.feature h2 { font-size: 1rem; margin: 0 0 .15em; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Price grid ---------- */

.price-note { margin: 0; font-size: .9rem; color: var(--muted); max-width: 520px; }
.price-note strong { color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: .88rem; font-weight: 600; background: var(--white); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip--help { display: inline-flex; align-items: center; gap: 6px; border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.chip--help:hover { background: var(--blue); color: var(--white); }
@media (min-width: 720px) { .chip--help { margin-left: auto; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table-scroll:focus-visible { outline-offset: 0; }

.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 860px; }
.price-table th, .price-table td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 8px; white-space: nowrap; position: sticky; top: 0; }
.price-table thead th:first-child { text-align: left; }
.price-table__group th, .price-table__group td { background: var(--blue-soft); color: var(--navy); font-size: .8rem; font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
.price-table__dims { text-align: left !important; white-space: nowrap; }
.price-table__dims img { width: 52px; height: auto; vertical-align: middle; margin-right: 8px; background: var(--white); border-radius: 4px; padding: 2px; border: 1px solid #cfe0ef; }
.price-table__model { text-align: left !important; font-weight: 600; color: var(--navy); white-space: nowrap; background: var(--white); position: sticky; left: 0; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom-width: 2px; }

.price-btn {
    width: 100%; min-width: 72px; padding: 7px 6px; border-radius: 6px; border: 1px solid transparent;
    background: transparent; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
}
.price-btn:hover, .price-btn:focus-visible { background: var(--blue); color: var(--white); border-color: var(--blue); }
.price-btn:active { transform: translateY(1px); }

/* ---------- Tables ---------- */

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table thead th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tfoot th, .data-table tfoot td { border-bottom: 0; border-top: 1px solid var(--line); text-align: right; padding-top: 8px; padding-bottom: 8px; font-weight: 500; }
.data-table--compact th, .data-table--compact td { padding: 8px 10px; }
.data-table--narrow { max-width: 560px; }

.cart-table { min-width: 560px; }
.cart-table__remove { width: 48px; text-align: center !important; }
.cart-table__remove form { margin: 0; }
.cart-table__total th, .cart-table__total td { font-size: 1.1rem; font-weight: 700 !important; color: var(--navy); background: var(--bg); }
.cart-table__vat { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.cart-table__note td { text-align: left !important; color: var(--muted); font-size: .85rem; background: var(--bg); }

/* ---------- Checkout steps ---------- */

.steps { list-style: none; display: flex; padding: 0; margin: 0 0 28px; }
.steps__item { flex: 1; position: relative; min-width: 0; }
.steps__item::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.steps__item:first-child::before { display: none; }
.steps__item.is-done::before, .steps__item.is-current::before { background: var(--blue); }
.steps__link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.steps__num { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--white); border: 3px solid var(--line); color: var(--muted); }
.steps__label { font-size: .8rem; color: var(--muted); text-align: center; }
.is-done .steps__num { background: var(--blue); border-color: var(--blue); color: var(--white); }
.is-current .steps__num { border-color: var(--blue); color: var(--blue); }
.is-current .steps__label, .is-done .steps__label { color: var(--navy); font-weight: 600; }
.steps a:hover .steps__label { color: var(--blue); }

@media (max-width: 520px) { .steps__label { display: none; } .is-current .steps__label { display: block; } }

/* ---------- Cards, forms ---------- */

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 0 0 20px; min-width: 0; }
.card--soft { background: var(--bg); box-shadow: none; }
.card--center { text-align: center; padding: 32px 20px; }
.card--narrow { max-width: 560px; }
.card--inset { box-shadow: none; background: var(--bg); margin: 0 0 12px; }
.card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; }
.card__edit { font-size: .85rem; font-weight: 500; }
fieldset.card { padding-top: 8px; }
fieldset.card legend { float: left; width: 100%; padding: 12px 0 0; }
fieldset.card legend + * { clear: both; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field--wide { grid-column: 1 / -1; }
}

.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; color: var(--navy); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1px solid #c3cdd8; border-radius: 8px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 188, .2); }
[aria-invalid="true"], .is-invalid { border-color: var(--ko) !important; background: #fffafa; }
.field-error { color: var(--ko); font-size: .85rem; margin: 4px 0 0; }
.hint { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.checkbox { display: flex; gap: 8px; align-items: center; margin: 8px 0; }

.choices { display: grid; gap: 8px; margin: 4px 0 12px; border: 0; padding: 0; min-width: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:hover { border-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice input { margin-top: 5px; accent-color: var(--blue); }

/* Fields shown only when "new address" / "traite" is selected (no JavaScript needed). */
.reveal { display: none; padding-top: 8px; }
fieldset:has(.reveal-trigger:checked) .reveal { display: block; }
@supports not selector(:has(*)) { .reveal { display: block; } }

.option-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.option-card.is-selected, .option-card--radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.option-card--radio { cursor: pointer; }
.option-card--radio:hover { border-color: var(--blue); }
.option-card--radio input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.option-card__icon { width: 40px; height: 40px; color: var(--blue); flex: none; }
.option-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option-card__body p { margin: 0; }
.option-card__title { font-weight: 700; color: var(--navy); margin: 0; }
.option-card__price { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0; }

.summary-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .summary-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.summary-grid .card { margin: 0; }

.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 2rem; font-weight: 700; }
.status-icon--ok { background: var(--ok-bg); color: var(--ok); }
.status-icon--ko { background: var(--wait-bg); color: var(--wait); }
.error-code { font-size: 3rem; font-weight: 800; color: var(--blue); margin: 0; line-height: 1; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--ko { background: var(--ko-bg); color: var(--ko); }
.pill--wait { background: var(--wait-bg); color: var(--wait); }
.pill--info { background: var(--blue-soft); color: var(--blue-dark); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

/* ---------- Auth & account ---------- */

.auth-layout { display: grid; gap: 20px; max-width: 900px; }
@media (min-width: 760px) { .auth-layout { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.account-layout { display: grid; gap: 24px; }
@media (min-width: 860px) { .account-layout { grid-template-columns: 220px 1fr; align-items: start; } }
.account-nav { background: var(--bg); border-radius: var(--radius); padding: 16px; }
.account-nav__title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.account-nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 860px) { .account-nav ul { flex-direction: column; } }
.account-nav a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--navy); font-weight: 500; }
.account-nav a:hover { background: var(--white); }
.account-nav a[aria-current="page"] { background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.account-content { min-width: 0; }

/* ---------- Content pages ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.lead { font-size: 1.15rem; color: var(--navy); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }

.prose-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .prose-layout { grid-template-columns: 1fr 340px; } }
.figure-stack { display: grid; gap: 20px; align-content: start; }
figure { margin: 0; }
figure img { border-radius: var(--radius); display: block; width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.figure-center { max-width: 320px; margin: 24px auto 0; text-align: center; }

.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.format-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--white); }
.format-card img { width: 140px; margin: 0 auto 8px; display: block; }
.format-card h4 { font-size: 1.15rem; color: var(--blue); margin: 0 0 4px; }
.format-card p { margin: 0 0 4px; }

.material { display: grid; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.material img { border-radius: var(--radius); width: 100%; max-width: 420px; }
@media (min-width: 760px) { .material { grid-template-columns: 360px 1fr; } }
.material--featured { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; border: 0; margin-top: 16px; }
.material__title { font-size: 1.35rem; }
.material[id] { scroll-margin-top: 140px; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 680px; margin: 24px auto 0; text-align: center; }

.compare-table { min-width: 620px; }
.compare-table thead th { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--navy); }
.compare-table thead a { color: var(--navy); text-decoration: none; }
.compare-table thead a:hover { color: var(--blue); text-decoration: underline; }
.compare-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 1%; }
.compare-table td, .compare-table th { vertical-align: top; }

.factory { display: grid; gap: 40px; margin: 28px 0 8px; }
.factory__block { display: grid; gap: 18px; align-items: center; }
.factory__block img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.factory__text h2 { font-size: 1.5rem; margin-bottom: .4em; }
.factory__text p { color: var(--ink); font-size: 1.05rem; margin: 0; }
@media (min-width: 860px) {
    .factory__block { grid-template-columns: 3fr 2fr; gap: 40px; }
    .factory__block--reverse { grid-template-columns: 2fr 3fr; }
    .factory__block--reverse img { order: 2; }
}
.benefits dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.benefits dd { margin: 2px 0 0; }

.faq-section { margin-bottom: 28px; }
.faq { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--white); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--blue); }
.faq__answer { padding: 0 16px 6px; }
.faq__answer ul { padding-left: 1.2em; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 20px 24px; margin-top: 32px; }
.cta-band p { margin: 0; font-weight: 600; font-size: 1.1rem; }

.contact-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 320px; align-items: start; } }
.contact-info dt { font-weight: 700; color: var(--navy); margin-top: 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-info dd { margin: 2px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #c4d2e0; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__logo { width: 140px; margin-bottom: 12px; }
.site-footer__title { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__secure { display: flex; align-items: center; gap: 8px; }
.site-footer__secure img { background: var(--white); border-radius: 4px; padding: 2px; }

/* ---------- Back office ---------- */

body.admin { background: var(--bg); }
.admin-header { background: var(--navy); color: #c4d2e0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand user" "nav nav"; align-items: center; gap: 8px 24px; padding: 10px 16px; position: sticky; top: 0; z-index: 5; }
.admin-brand { grid-area: brand; }
.admin-nav { grid-area: nav; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-user { grid-area: user; justify-content: flex-end; }
@media (min-width: 1360px) { .admin-header { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav user"; } }
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 600; }
.admin-brand:hover { color: var(--white); }
.admin-brand img { width: 110px; }
.admin-brand span { border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.admin-nav { flex: 1; overflow-x: auto; }
.admin-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.admin-nav a { display: block; padding: 7px 12px; border-radius: 6px; color: #dbe5ef; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.admin-nav a[aria-current="page"] { background: var(--blue); color: var(--white); }
.admin-user { display: flex; gap: 14px; align-items: center; font-size: .82rem; flex-wrap: wrap; }
.admin-user a, .admin-user .link-button { color: var(--white); }
.admin-user form { margin: 0; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; }
.admin-main .table-scroll { margin-bottom: 16px; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-head .page-title { margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-head__actions form { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--blue); }
.stat__value { font-size: 1.8rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .88rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters input, .filters select { width: auto; flex: 1 1 200px; max-width: 360px; padding: 7px 10px; }

.meta-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 20px; }
.meta-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }

.price-table--admin { min-width: 960px; }
.price-input { width: 84px; padding: 6px 8px !important; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem !important; }
.num-input { width: 110px; }

.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 16px 0 8px; margin-top: 8px; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.stack p { margin: 0; }

.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; }

.danger-zone { margin-top: 32px; border: 1px solid #f5b5ae; border-radius: 8px; padding: 10px 16px; background: var(--white); }
.danger-zone summary { cursor: pointer; color: var(--ko); font-weight: 600; }

/* ---------- Print (orders) ---------- */

@media print {
    .topbar, .site-header, .site-footer, .admin-header, .no-print, .actions, .account-nav { display: none !important; }
    body, body.admin { background: var(--white); }
    .card, .table-scroll { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
.field--vat input { max-width: 22rem; }
