/* Styles du mini-site Offre spéciale Import - ESPE Emballages */
:root {
            --blue: #2f63a4;
            --blue-dark: #213f7a;
            --red: #e7333f;
            --orange: #ec743a;
            --yellow: #f7bc18;
            --ice: #e9f5fb;
            --ink: #172033;
            --muted: #667085;
            --line: #e7edf5;
            --bg: #f4f7fb;
            --white: #fff;
            --shadow: 0 18px 48px rgba(29, 54, 93, .14);
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--ink);
            background:
                radial-gradient(circle at 0 8%, rgba(236,116,58,.23), transparent 25rem),
                radial-gradient(circle at 100% 0, rgba(247,188,24,.35), transparent 25rem),
                linear-gradient(135deg, #f7fbff 0%, var(--bg) 100%);
        }
        body.modal-open { overflow: hidden; }
        a { color: inherit; }
        .page { width: min(1600px, 100%); margin: 0 auto; padding: 22px; }
        .hero {
            position: relative;
            overflow: hidden;
            border-radius: 30px;
            background: linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #fff6ef 100%);
            box-shadow: var(--shadow);
            padding: 34px;
            margin-bottom: 26px;
            border: 1px solid rgba(255,255,255,.9);
        }
        .hero:before, .hero:after {
            content: "";
            position: absolute;
            width: 260px;
            height: 260px;
            border-radius: 32% 68% 55% 45% / 44% 40% 60% 56%;
            opacity: .92;
            z-index: 0;
        }
        .hero:before { background: var(--yellow); top: -120px; right: 120px; transform: rotate(18deg); }
        .hero:after { background: var(--orange); bottom: -160px; left: -90px; transform: rotate(-12deg); }
        .hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: center; }
        .brand-line { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
        .logo-mark {
            width: 66px; height: 66px; border-radius: 20px;
            background: conic-gradient(from 210deg, var(--red), var(--blue), var(--orange), var(--blue-dark), var(--red));
            box-shadow: inset 0 0 0 8px rgba(255,255,255,.78);
        }
        .logo-text strong { display: block; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.05em; color: var(--blue); line-height: .9; }
        .logo-text span { display: block; color: var(--blue-dark); font-weight: 700; margin-top: 4px; }
        .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff0e8; color: #af3f17; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
        h1 { margin: 14px 0 10px; font-size: clamp(36px, 6vw, 76px); line-height: .93; letter-spacing: -.06em; }
        .hero p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 720px; }
        .badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
        .badge { background: var(--white); border: 1px solid var(--line); padding: 12px 15px; border-radius: 17px; font-weight: 800; box-shadow: 0 10px 25px rgba(33,63,122,.08); }
        .badge strong { color: var(--red); }
        .promo-card { background: var(--blue-dark); color: #fff; border-radius: 26px; padding: 24px; box-shadow: 0 18px 40px rgba(33,63,122,.22); transform: rotate(1deg); }
        .promo-card .big { font-size: clamp(38px, 6vw, 64px); font-weight: 1000; line-height: .9; }
        .promo-card .big span { color: var(--yellow); }
        .promo-card p { color: rgba(255,255,255,.86); margin: 14px 0 0; }
        .notice { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 18px; padding: 16px 18px; margin-bottom: 22px; }
        .alert { border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; font-weight: 700; }
        .alert-success { background: #eaf8f0; color: #126c3b; border: 1px solid #bce7ce; }
        .alert-error { background: #fff0f0; color: #a51e28; border: 1px solid #ffd0d4; }
        .alert-error ul { margin: 8px 0 0 18px; padding: 0; }
        .offer-form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
        .section-title { margin: 8px 0 16px; font-size: 30px; letter-spacing: -.04em; }
        .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
        .product-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 14px 34px rgba(29,54,93,.09); display: flex; flex-direction: column; }
        .image-box { position: relative; isolation: isolate; background: linear-gradient(135deg, #f8fafc, #eef6ff); padding: 18px; min-height: 280px; display: grid; place-items: center; }
        .product-img { max-width: 100%; max-height: 250px; object-fit: contain; mix-blend-mode: multiply;}
        .category-pill { position: absolute; top: 16px; left: 16px; z-index: 20; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 900; color: var(--blue-dark); }
        .thumbs { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 10; }
        .thumbs button { width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; background: #fff; padding: 2px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
        .thumbs button.is-active { border-color: var(--red); }
        .thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
        .product-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
        .ref { color: var(--red); font-size: 13px; font-weight: 1000; letter-spacing: .06em; }
        .product-body h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; line-height: 1.15; }
        .specs { color: var(--muted); font-size: 14px; line-height: 1.55; display: grid; gap: 5px; }
        .specs strong { color: var(--ink); }
        .price-line { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 18px; background: #fff5f3; border: 1px solid #ffd8d1; }
        .old-price { color: #8d98aa; text-decoration: line-through; font-weight: 800; font-size: 14px; }
        .current-price { font-size: 30px; font-weight: 1000; color: var(--red); letter-spacing: -.05em; }
        .price-tax { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
        .quantity-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
        .quantity-row button { height: 46px; border: 0; border-radius: 14px; background: var(--blue-dark); color: #fff; font-size: 23px; font-weight: 900; cursor: pointer; }
        .quantity-row input { height: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; font-size: 16px; font-weight: 900; text-align: center; width: 100%; }
        .line-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; color: var(--muted); font-weight: 800; }
        .line-total strong { color: var(--blue-dark); font-size: 18px; }
        .quote-panel { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
        .quote-panel h2 { margin: 0 0 12px; font-size: 27px; letter-spacing: -.04em; }
        .toggle { display: grid; grid-template-columns: 1fr 1fr; background: #eef3f8; border-radius: 16px; padding: 5px; margin: 14px 0 18px; }
        .toggle label { cursor: pointer; text-align: center; border-radius: 12px; font-weight: 1000; color: var(--muted); }
        .toggle input { display: none; }
        .toggle input:checked + span { background: var(--blue-dark); color: #fff; box-shadow: 0 8px 16px rgba(33,63,122,.18); }
        .toggle span { display: block; border-radius: 12px; padding: 12px 8px; }
        .summary-empty { color: var(--muted); background: #f7fafc; border-radius: 16px; padding: 14px; }
        .summary-lines { display: grid; gap: 10px; margin-bottom: 18px; max-height: 280px; overflow: auto; }
        .summary-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
        .summary-item strong { color: var(--blue-dark); }
        .summary-item span { color: var(--muted); font-size: 13px; }
        .totals { border-top: 2px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
        .total-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; color: var(--muted); }
        .total-row.grand { color: var(--ink); font-size: 22px; }
        .tax-only-row, .ttc-only-row { display: flex; }
        .tax-mode-ht .tax-only-row, .tax-mode-ht .ttc-only-row { display: none; }
        .franco { margin: 16px 0 4px; background: #f6f8fb; border-radius: 16px; padding: 13px; }
        .bar { height: 9px; background: #dde6f2; border-radius: 999px; overflow: hidden; margin-top: 9px; }
        .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: inherit; transition: width .25s ease; }
        .cta-panel { margin-top: 18px; display: grid; gap: 10px; }
        .submit-btn, .modal-open-btn { border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; padding: 16px 24px; font-size: 17px; font-weight: 1000; cursor: pointer; box-shadow: 0 16px 34px rgba(231,51,63,.25); transition: .18s ease; width: 100%; }
        .submit-btn:disabled, .modal-open-btn:disabled { background: #aab2c0; color: #edf1f6; cursor: not-allowed; box-shadow: none; opacity: .9; }
        .cta-reason { color: #a51e28; background: #fff0f0; border: 1px solid #ffd0d4; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 800; }
        .small-note { color: var(--muted); font-size: 13px; text-align: center;}
        .modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 22, 39, .58); backdrop-filter: blur(7px); }
        .modal-backdrop.is-open { display: flex; }
        .modal-card { width: min(860px, 100%); max-height: min(92vh, 920px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.8); }
        .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff, #f7fbff); position: sticky; top: 0; z-index: 1; }
        .modal-head h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
        .modal-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
        .modal-close { border: 0; width: 42px; height: 42px; border-radius: 14px; background: #eef3f8; color: var(--blue-dark); font-size: 28px; line-height: 1; cursor: pointer; }
        .contact-card { padding: 24px; }
        .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .field { display: grid; gap: 7px; }
        .field.full { grid-column: 1 / -1; }
        .field.is-hidden { display: none; }
        .customer-toggle-wrap { margin-bottom: 18px; }
        .customer-toggle-wrap > label { display: block; margin-bottom: 8px; }
        label { font-weight: 900; color: var(--blue-dark); }
        input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px; font: inherit; background: #fbfdff; }
        textarea { min-height: 118px; resize: vertical; }
        .consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.45; margin: 18px 0; }
        .consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
        .modal-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
        .hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
        footer { color: var(--muted); text-align: center; padding: 30px 0 10px; font-size: 14px; }
        @media (max-width: 1020px) {
            .offer-form { grid-template-columns: 1fr; }
            .quote-panel { position: static; order: -1; }
        }
        @media (max-width: 760px) {
            .page { padding: 12px; }
            .hero { padding: 24px 18px; border-radius: 22px; }
            .hero-inner, .product-grid, .contact-grid { grid-template-columns: 1fr; }
            .promo-card { transform: none; }
            .image-box { min-height: 240px; }
            .modal-backdrop { padding: 8px; align-items: stretch; }
            .modal-card { max-height: 100%; border-radius: 22px; }
            .modal-head { padding: 18px; }
            .contact-card { padding: 18px; }
        }

/* Offre expirée */
.alert-expired {
    background: #fff4e5;
    color: #8a4b00;
    border: 1px solid #ffd59a;
}
.offer-form.is-locked .product-card,
.offer-form.is-locked .quote-panel {
    opacity: .72;
}
.offer-form.is-locked .qty-input,
.offer-form.is-locked [data-step-action] {
    pointer-events: none;
}

/* Écran plein format quand l'offre est terminée */
.offer-expired {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(247,188,24,.35), transparent 24rem),
        radial-gradient(circle at 85% 18%, rgba(231,51,63,.22), transparent 26rem),
        linear-gradient(135deg, #f7fbff 0%, #fff6ef 100%);
}
.expired-screen {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 42px 0 20px;
}
.expired-card {
    width: min(980px, 100%);
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 34px;
    box-shadow: var(--shadow);
    padding: clamp(26px, 5vw, 58px);
    text-align: center;
}
.expired-card:before,
.expired-card:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: 0;
}
.expired-card:before {
    width: 260px;
    height: 260px;
    background: rgba(247,188,24,.26);
    top: -120px;
    right: -70px;
}
.expired-card:after {
    width: 220px;
    height: 220px;
    background: rgba(47,99,164,.14);
    bottom: -100px;
    left: -80px;
}
.expired-card > * {
    position: relative;
    z-index: 1;
}
.expired-brand {
    justify-content: center;
    margin-bottom: 28px;
}
.expired-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff0e8;
    color: #af3f17;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
}
.expired-card h1 {
    max-width: 780px;
    margin: 18px auto 14px;
    color: var(--blue-dark);
    font-size: clamp(38px, 6vw, 72px);
    line-height: .95;
}
.expired-message {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.55;
}
.expired-reassurance {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border-radius: 22px;
    background: #f6f8fb;
    color: var(--blue-dark);
    font-weight: 800;
    line-height: 1.55;
}
.expired-contact {
    max-width: 720px;
    margin: 24px auto 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
}
.expired-contact strong {
    color: var(--ink);
    font-size: 18px;
}
.expired-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.expired-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 1000;
    box-shadow: 0 12px 26px rgba(33,63,122,.18);
}
.expired-actions a:first-child {
    background: linear-gradient(135deg, var(--red), var(--orange));
}
@media (max-width: 760px) {
    .expired-screen { min-height: calc(100vh - 100px); padding-top: 20px; }
    .expired-card { border-radius: 24px; }
    .expired-brand { align-items: flex-start; }
    .expired-actions { display: grid; }
}
