/* OpensPlace — /defier-une-offre 2026
 * Page autonome ; charge home.css en amont pour les tokens .home-2026.
 */

.home-2026.ch-page { background: var(--hp-bg); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.ch-hero {
    background: linear-gradient(135deg,
        #FBE9E1 0%,
        #F4ECF4 35%,
        #E6F0F4 70%,
        #E8F2EB 100%);
    border-bottom: 0.5px solid var(--hp-line);
    padding-block: clamp(56px, 40px + 4vw, 110px);
}
.ch-hero__inner {
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 32px + 2vw, 48px);
    align-items: center;
}
@media (max-width: 768px) {
    .ch-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
.ch-hero__content { min-width: 0; }
.ch-hero__eyebrow { color: var(--hp-brand); }
.ch-hero__title {
    font-size: clamp(36px, 26px + 2.6vw, 60px);
    font-weight: 500;
    color: var(--hp-ink);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 16px;
    text-wrap: balance;
}
.ch-hero__title em { color: var(--hp-ink); font-style: italic; font-weight: 500; }
.ch-hero__subtitle {
    font-size: clamp(17px, 15px + 0.4vw, 19px);
    color: var(--hp-ink-soft);
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 0 28px;
}

.ch-hero__image {
    display: block;
    overflow: hidden;
    border-radius: clamp(12px, 8px + 1.5vw, 20px);
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.6s ease-out;
}
.ch-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ch-hero__image {
        animation: none;
    }
}

.ch-hero__perks {
    list-style: none;
    margin: 0;
    padding: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-top: 0.5px solid var(--hp-line);
    max-width: 560px;
}
@media (max-width: 480px) {
    .ch-hero__perks {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.ch-hero__perks li { display: flex; flex-direction: column; gap: 4px; }
.ch-hero__perks strong {
    font-family: var(--hp-serif);
    font-size: clamp(22px, 18px + 0.8vw, 28px);
    font-weight: 500;
    color: var(--hp-ink);
    letter-spacing: -0.01em;
}
.ch-hero__perks span { font-size: 13px; color: var(--hp-ink-muted); }

/* ── Form ─────────────────────────────────────────────────────────── */
.ch-form { padding-block: clamp(40px, 24px + 3vw, 64px); }

.ch-card {
    background: var(--hp-white);
    border: 0.5px solid var(--hp-line);
    border-radius: var(--hp-radius-card);
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 36px rgba(0,0,0,.05);
    max-width: 880px;
    margin-inline: auto;
}
@media (min-width: 768px) { .ch-card { padding: 32px; } }

.ch-pane { display: block; }
.ch-pane__hint {
    color: var(--hp-ink-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}

/* Drop file */
.ch-file-form { display: flex; flex-direction: column; gap: 12px; }
.ch-drop {
    position: relative;
    display: block;
    border: 1.5px dashed rgba(0, 0, 0, 0.18);
    border-radius: var(--hp-radius);
    padding: 28px 20px;
    background: var(--hp-bg-alt);
    cursor: pointer;
    text-align: center;
    transition: border-color .18s ease, background .18s ease;
}
.ch-drop:hover, .ch-drop.is-dragover {
    border-color: var(--hp-brand);
    background: var(--hp-brand-soft);
}
.ch-drop__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--hp-ink-muted);
}
.ch-drop__inner svg { color: var(--hp-brand); }
.ch-drop__inner strong { color: var(--hp-ink); font-size: 15px; }
.ch-drop__inner span { font-size: 13px; }
.ch-file-input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.ch-drop__file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
}
.ch-drop__file-icon { font-size: 26px; }
.ch-drop__file-name {
    flex: 1 1 auto;
    text-align: left;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}
.ch-drop__remove {
    border: 0;
    background: var(--hp-bg-alt);
    color: var(--hp-ink-muted);
    width: 32px; height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.ch-drop__remove:hover { background: var(--hp-brand-soft); color: var(--hp-brand-deep); }

/* Erreur */
.ch-error {
    color: #B8431F;
    font-size: 14px;
    min-height: 20px;
    margin: 14px 0 0;
}

/* Stratégie */
.ch-strategy {
    border: 0;
    margin: 26px 0 0;
    padding: 0;
}
.ch-strategy legend {
    font-family: var(--hp-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-ink);
    margin-bottom: 12px;
    padding: 0;
}
.ch-strategy__opt {
    display: block;
    border: 0.5px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
    position: relative;
    padding-left: 44px;
}
.ch-strategy__opt input {
    position: absolute;
    left: 14px;
    top: 18px;
    accent-color: var(--hp-brand);
}
.ch-strategy__opt:hover { border-color: var(--hp-brand); background: var(--hp-brand-soft); }
.ch-strategy__opt:has(input:checked) {
    border-color: var(--hp-brand);
    background: var(--hp-brand-soft);
}
.ch-strategy__title {
    display: block;
    font-weight: 600;
    color: var(--hp-ink);
    font-size: 15px;
    margin-bottom: 2px;
}
.ch-strategy__desc {
    display: block;
    font-size: 13px;
    color: var(--hp-ink-muted);
    line-height: 1.55;
}

/* Supplier */
.ch-supplier { margin-top: 22px; }
.ch-supplier label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-ink);
    margin-bottom: 6px;
}
.ch-supplier label small { color: var(--hp-ink-muted); font-weight: 400; }
.ch-select {
    width: 100%;
    border: 0.5px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 12px 16px;
    background: var(--hp-white);
    font-family: var(--hp-sans);
    font-size: 15px;
    color: var(--hp-ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ch-select:focus {
    border-color: var(--hp-brand);
    box-shadow: 0 0 0 3px rgba(216,90,48,.18);
}

/* Perks */
.ch-perks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0 0;
    max-width: 880px;
    margin-inline: auto;
}
@media (min-width: 720px) { .ch-perks { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.ch-perks__card {
    background: var(--hp-white);
    border: 0.5px solid var(--hp-line);
    border-radius: var(--hp-radius-card);
    padding: 22px;
}
.ch-perks__icon { font-size: 28px; display: block; margin-bottom: 10px; }
.ch-perks__card h3 {
    font-family: var(--hp-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--hp-ink);
    margin: 0 0 6px;
}
.ch-perks__card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hp-ink-muted);
    margin: 0;
}

/* FAQ accordéons natifs */
.ch-faq {
    max-width: 880px;
    margin: 14px auto 0;
    border-bottom: 0.5px solid var(--hp-line);
    padding: 16px 4px;
}
.ch-faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--hp-sans);
    font-weight: 500;
    font-size: 16px;
    color: var(--hp-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.ch-faq summary::after {
    content: "+";
    font-size: 20px;
    color: var(--hp-brand);
    transition: transform .18s ease;
}
.ch-faq[open] summary::after { transform: rotate(45deg); }
.ch-faq summary::-webkit-details-marker { display: none; }
.ch-faq p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hp-ink-muted);
}

/* Loader */
.ch-loader {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ch-loader[hidden] { display: none; }
.ch-loader__card {
    width: min(440px, calc(100vw - 32px));
    background: var(--hp-white);
    border-radius: var(--hp-radius-card);
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: ch-loader-in .3s ease;
}
@keyframes ch-loader-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ch-loader__spin {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid var(--hp-line);
    border-top-color: var(--hp-brand);
    margin: 0 auto 14px;
    animation: hp-spin 0.7s linear infinite;
}
.ch-loader__card h3 {
    font-family: var(--hp-serif);
    font-weight: 500;
    font-size: 22px;
    color: var(--hp-ink);
    margin: 0 0 4px;
}
.ch-loader__card > p {
    font-size: 14px;
    color: var(--hp-ink-muted);
    margin: 0 0 18px;
}
.ch-loader__steps {
    text-align: left;
    border-top: 0.5px solid var(--hp-line);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ch-loader__step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--hp-ink-muted);
    transition: color .25s ease;
}
.ch-loader__step span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hp-line);
    flex: 0 0 auto;
    transition: background .25s ease;
}
.ch-loader__step.is-active { color: var(--hp-ink); }
.ch-loader__step.is-active span { background: var(--hp-brand); animation: ch-pulse 1s infinite; }
.ch-loader__step.is-done { color: var(--hp-ink); }
.ch-loader__step.is-done span { background: var(--hp-online); }
@keyframes ch-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }
