:root {
    --ink: #0e1716;
    --paper: #f7f5ef;
    --cream: #fffdf7;
    --line: #ded8ca;
    --muted: #68716e;
    --blue: #245f78;
    --lime: #d8f45f;
    --coral: #ee6a4d;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% 4%, rgba(216, 244, 95, 0.24), transparent 25%),
        radial-gradient(circle at 14% 22%, rgba(36, 95, 120, 0.12), transparent 26%),
        linear-gradient(180deg, #fffdf7, #eef4f1);
    font-family: "Geist", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 18px 48px rgba(216, 244, 95, 0.28);
}
.btn-dark {
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 18px 48px rgba(14, 23, 22, 0.16);
}
.btn-ghost {
    border: 1px solid var(--night, #000091);
    background: #e0f2fe; /* Fond bleu ciel */
    color: var(--night, #000091);
}
.btn-ghost:hover {
    background: #bae6fd;
}
.btn[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.commerce-hero {
    padding: 46px 0 24px;
}

.kicker {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: 14px;
    font-weight: 900;
}

h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: 58px;
    line-height: 0.98;
}

.commerce-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(14, 23, 22, 0.68);
    font-size: 17px;
    line-height: 1.62;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.checkout-steps span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(14, 23, 22, 0.1);
    border-radius: 8px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.checkout-steps .is-active {
    background: var(--ink);
    color: var(--white);
}

.checkout-steps .is-done {
    background: rgba(216, 244, 95, 0.45);
    color: #415000;
}

.commerce-section {
    padding: 22px 0 86px;
}

.commerce-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
    gap: 28px;
    align-items: start;
}

.panel,
.summary-panel,
.line-item,
.empty-panel,
.success-panel {
    border: 1px solid rgba(14, 23, 22, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 22px 70px rgba(7, 27, 31, 0.08);
}

.panel,
.empty-panel,
.success-panel {
    padding: 24px;
}

.panel + .panel {
    margin-top: 16px;
}

.panel h2,
.summary-panel h2,
.success-panel h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
}

.panel p,
.empty-panel p,
.success-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.line-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 20px;
}

.line-item h3 {
    margin: 0;
    font-size: 24px;
}

.line-item ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.line-item li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--blue);
    font-weight: 900;
}

.item-price {
    text-align: right;
    font-family: "Space Grotesk", sans-serif;
    font-size: 34px;
    font-weight: 700;
}

.muted-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.summary-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.summary-block {
    padding: 22px;
}

.summary-block + .summary-block {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-top: 12px;
}

.summary-total strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 44px;
    line-height: 0.92;
}

.summary-total span {
    color: var(--lime);
    font-weight: 900;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 800;
}

.summary-row + .summary-row {
    margin-top: 10px;
}

.summary-row strong {
    color: var(--white);
}

.summary-panel .btn {
    width: 100%;
    margin-top: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(14, 23, 22, 0.13);
    border-radius: 8px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: rgba(36, 95, 120, 0.55);
    box-shadow: 0 0 0 3px rgba(36, 95, 120, 0.12);
}

.notice {
    margin-top: 16px;
    border: 1px solid rgba(216, 244, 95, 0.5);
    border-radius: 8px;
    padding: 14px;
    background: rgba(216, 244, 95, 0.18);
    color: #415000;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.payment-card {
    display: grid;
    gap: 18px;
    margin-top: 20px;
    border-radius: 14px;
    padding: 22px;
    background:
        radial-gradient(circle at 88% 18%, rgba(216, 244, 95, 0.38), transparent 28%),
        linear-gradient(135deg, #111f1d, #245f78);
    color: var(--white);
    box-shadow: 0 22px 70px rgba(7, 27, 31, 0.16);
}

.payment-card small {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 900;
}

.payment-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    letter-spacing: 0;
}

.payment-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
}

.success-panel {
    max-width: 780px;
}

.success-mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
    font-size: 26px;
    font-weight: 900;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.site-footer {
    padding: 26px 0 38px;
    color: var(--muted);
}

.footer-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(14, 23, 22, 0.1);
    padding-top: 22px;
}

@media (max-width: 980px) {
    h1 { font-size: 46px; }
    .commerce-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .summary-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .shell { width: min(100% - 28px, 1180px); }

    .commerce-hero { padding: 28px 0 12px; }
    h1 { font-size: 38px; }
    .commerce-hero p {
        font-size: 16px;
        line-height: 1.55;
    }
    .commerce-section { padding-top: 10px; }
    .line-item {
        grid-template-columns: 1fr;
    }
    .item-price {
        text-align: left;
    }
    .footer-line {
        flex-direction: column;
    }
}
