/*
 * Custom website page (website/custom-offers.blade.php), November 2026: a dark hero with the delays, live examples,
 * the guide that recommends a formula and the configurator with its live total (js/custom-offers.js).
 * « Net » tokens from brand/dowebo.css; bands follow the offer pages' column (css/offers.css).
 */
.offer-page.custom-page { padding-bottom: 0; }
.custom-page *, .custom-page *::before, .custom-page *::after { box-sizing: border-box; }
/* Read by screen readers only (the template's name after « Choisir ce modèle », « Compris » in the rental table):
   this page is not in .offer-container, whose rule (css/offers.css) does not reach it. */
.custom-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#choix, #configurateur { scroll-margin-top: var(--offer-scroll-offset, 160px); }

.custom-eyebrow { margin: 0 0 12px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.custom-section-heading h2, .custom-guide > h2, .custom-config-panel > h2 { margin: 0; max-width: 780px; color: var(--ink); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.045em; }

/* Hero: ink band, the delays beside the promise. */
/* Hero: the shared ink band (css/hero-ink.css). */

/* Examples: real pages scaled down (or captures of customers' sites). */
.workspace.custom-container { background: #fff; }
.custom-showcase { padding-bottom: 76px; }
.custom-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 32px; }
.custom-section-heading p:not(.custom-eyebrow) { max-width: 640px; margin: 14px 0 0; color: var(--body); font-size: 1.05rem; }
.custom-section-heading > a { font-weight: 600; text-decoration: none; }
.custom-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.custom-site { position: relative; display: grid; align-content: start; gap: 6px; }
.custom-site-frame { position: relative; aspect-ratio: 8 / 5; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); transition: transform .2s ease, border-color .2s ease; }
.custom-site-frame iframe { position: absolute; inset: 0; width: 400%; max-width: none; height: 400%; border: 0; transform: scale(.25); transform-origin: top left; pointer-events: none; }
.custom-site-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.custom-site h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.custom-site h3 a { color: var(--ink); text-decoration: none; }
.custom-site h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.custom-site p { margin: 0; color: var(--muted); font-size: .9rem; }
.custom-site .custom-site-host { font-family: var(--font-mono); font-size: .8rem; color: var(--blue); }
.custom-site h3 a span[aria-hidden] { color: var(--blue); }
.custom-site:hover .custom-site-frame, .custom-site:focus-within .custom-site-frame { border-color: var(--blue); transform: translateY(-3px); }

/* Guide: two questions, one recommendation. */
.workspace.custom-guide { padding-top: 80px; padding-bottom: 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.custom-guide-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 28px; margin-top: 32px; }
.custom-questions { flex: 999 1 560px; min-width: 0; display: grid; align-content: start; gap: 26px; }
.custom-questions fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.custom-questions legend { margin-bottom: 14px; padding: 0; color: var(--body); font-size: .95rem; font-weight: 600; }
.custom-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.custom-tile, .custom-plan { position: relative; display: grid; align-content: start; gap: 6px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.custom-tile { min-height: 108px; padding: 18px 20px; border-radius: 18px; }
.custom-tile input, .custom-plan input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.custom-tile strong { color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.custom-tile span { color: var(--body); font-size: .9rem; line-height: 1.45; }
.custom-tile:hover, .custom-plan:hover, .custom-tile:has(input:checked), .custom-plan:has(input:checked) { border-color: var(--blue); }
.custom-tile:has(input:checked), .custom-plan:has(input:checked) { background: var(--surface-blue); }
.custom-tile:has(input:focus-visible), .custom-plan:has(input:focus-visible) { outline: 3px solid var(--dot); outline-offset: 2px; }
.custom-rec { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius-lg, 22px); background: var(--ink); color: #fff; }
.custom-rec-kicker { margin: 0; color: var(--dot); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.custom-rec h3 { margin: 0; color: #fff; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.04em; }
.custom-rec-family { margin: 8px 0 0; color: #cfd6e3; font-size: .95rem; }
.custom-rec-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.custom-rec-price strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.05em; }
.custom-rec-price span { color: #cfd6e3; font-size: .95rem; }
.custom-rec-price .custom-rec-from { flex-basis: 100%; margin-bottom: 2px; font-size: .85rem; }
.custom-rec-price .custom-rec-from[hidden] { display: none; }
.custom-rec ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.custom-rec li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.45; }
.custom-rec li svg { flex: none; margin-top: 2px; color: var(--dot); }
.custom-rec .offer-button { margin-top: auto; }

/* Configurator: plan, options, live total. */
.workspace.custom-configurator { padding-top: 80px; padding-bottom: 88px; background: #fff; }
.custom-config { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 32px; }
.custom-config-main { flex: 999 1 600px; min-width: 0; display: grid; gap: 20px; }
.custom-panel { min-width: 0; margin: 0; padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg, 22px); }
.custom-panel legend { float: left; width: 100%; margin-bottom: 18px; padding: 0; color: var(--ink); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.custom-panel legend span { color: var(--blue); }
.custom-panel-note { clear: both; margin: -10px 0 16px; color: var(--body); font-size: .9rem; }
.custom-plans { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.custom-plan { gap: 4px; padding: 18px; border-radius: 16px; }
.custom-plan strong { color: var(--ink); font-size: 1.1rem; }
.custom-plan span { color: var(--body); font-size: .88rem; line-height: 1.4; }
.custom-plan em { margin-top: 8px; color: var(--ink); font-size: 1.4rem; font-style: normal; font-weight: 700; letter-spacing: -.03em; }
.custom-plan em small { color: var(--body); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.custom-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.custom-option { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.custom-option > label:first-child { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.custom-option input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.custom-option-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.custom-option-copy strong { color: var(--ink); font-size: .95rem; }
.custom-option-copy small { color: var(--muted); font-size: .83rem; line-height: 1.4; }
.custom-option-tag { color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.custom-option[data-state="opt"]:hover, .custom-option[data-state="opt"]:has(input:checked) { border-color: var(--blue); }
.custom-option[data-state="opt"]:has(input:checked) { background: var(--surface-blue); }
.custom-option[data-state="inc"] { border-color: #b9ead1; background: var(--success-soft); }
.custom-option[data-state="inc"] .custom-option-tag { color: var(--success); }
.custom-option[data-state="no"] { border-style: dashed; border-color: var(--line-strong); }
.custom-option[data-state="no"] > label:first-child { cursor: default; }
.custom-option[data-state="no"] .custom-option-copy strong, .custom-option[data-state="no"] .custom-option-tag { color: var(--muted); }
.custom-option-quantity { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--body); font-size: .9rem; }
.custom-option-quantity input { width: 84px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }
.custom-option-quantity:has(input:disabled) { display: none; }
.custom-config-note { margin: 0; padding: 0 4px; color: var(--body); font-size: .88rem; line-height: 1.6; }
.custom-total { flex: 1 1 340px; min-width: 0; position: sticky; top: var(--offer-scroll-offset, 24px); display: grid; gap: 18px; padding: 28px; border-radius: var(--radius-lg, 22px); background: var(--ink); color: #fff; }
.custom-total h3 { margin: 8px 0 0; color: #fff; font-size: 1.7rem; letter-spacing: -.035em; }
.custom-total-delay { margin: 6px 0 0; color: #cfd6e3; font-size: .9rem; }
.custom-total dl { display: grid; gap: 10px; margin: 0; }
.custom-total dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.custom-total dt { color: #cfd6e3; }
.custom-total dd { margin: 0; font-variant-numeric: tabular-nums; }
.custom-total-ht { padding-top: 10px; border-top: 1px solid #2a3449; }
.custom-total-ht dd { font-weight: 600; }
.custom-total dl > .custom-total-ttc { align-items: baseline; }
.custom-total-ttc dt { color: #fff; font-weight: 600; }
.custom-total-ttc dd { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.custom-gift { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #1a2336; }
.custom-gift[hidden] { display: none; }
.custom-gift p { margin: 0; font-size: .9rem; line-height: 1.45; }
.custom-gift-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #2a3449; }
.custom-gift-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.custom-gift.is-reached .custom-gift-bar > span { background: var(--dot); }
.custom-total .offer-button { width: 100%; text-align: center; }
.custom-total-note { margin: 0; color: #cfd6e3; font-size: .82rem; line-height: 1.5; text-align: center; }

/* « Configurer » panels: one per answer to « Vous préférez… » (custom, rented site, ready-made sites). */
.custom-config-panel[hidden], .workspace.custom-promises[hidden] { display: none; }
.custom-panel-lead { max-width: 760px; margin: 16px 0 0; color: var(--body); font-size: 1.05rem; line-height: 1.6; }
.custom-config-panel .offer-help { margin-top: 24px; }
.custom-config-panel .offer-help h3, .custom-rental-faq > h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.3rem; }
.custom-rental-faq { max-width: none; margin: 40px 0 0; }
.custom-config-panel[data-config-panel="today"] .template-catalog-layout { margin-top: 32px; }

/* Promises: closing ink band before the footer. */
.workspace.custom-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; padding-top: 56px; padding-bottom: 64px; background: var(--ink); color: #fff; }
.custom-promise h2 { margin: 0 0 8px; color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.custom-promise p { margin: 0; color: #cfd6e3; font-size: .95rem; line-height: 1.6; }

.custom-page :focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }

/* « Vous souhaitez… » has two answers; « Payer en une fois » hides for « Le faire moi-même », « Importer mon site » for
   « Que vous le fassiez pour moi » (js/custom-offers.js). */
.custom-tiles-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* « Vous préférez… »: the tiles the answer allows (two or three) share the width, the hidden ones take none. */
.custom-tiles-fit { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.custom-tile[hidden] { display: none; }
.custom-soon[hidden] { display: none; }
.custom-soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--surface-blue); color: var(--blue); font-size: .72rem; font-style: normal; font-weight: 700; letter-spacing: 0; vertical-align: 2px; }

/* Site generator panel: the web hosting plans that include it, then its formulas per site. The import panel shows its
   ways (GitHub, SFTP, file manager) the same way, above the hosting plans. */
.custom-builder-plans, .custom-builder-tiers, .custom-import-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.custom-builder-tiers, .custom-import-ways + .custom-builder-plans { margin-top: 12px; }
.custom-import-ways { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.custom-builder-plans li, .custom-builder-tiers li, .custom-import-ways li { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.custom-builder-plans strong, .custom-builder-tiers strong, .custom-import-ways strong { color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.custom-builder-plans span, .custom-builder-tiers span, .custom-import-ways span { color: var(--body); font-size: .9rem; line-height: 1.45; }
.custom-builder-plans small, .custom-builder-tiers small, .custom-import-ways small { color: var(--blue); font-size: .82rem; font-weight: 700; }
.custom-import-ways small { margin-top: 4px; }
.custom-builder-soon { display: grid; gap: 4px; max-width: 760px; padding: 16px 20px; border-radius: 18px; background: var(--surface-blue); }
.custom-builder-soon strong { color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.custom-builder-soon span { color: var(--body); font-size: .92rem; line-height: 1.5; }

/* « Voir une démonstration »: in the hero (generator and pre-designed sites only) and beside the pre-designed sites'
   title; both open the generator at work in a window (#demonstration-generateur). */
.custom-demo-open { gap: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.custom-demo-open::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1.5 1l7.5 5-7.5 5z' fill='white'/%3E%3C/svg%3E") 56% 50% / 8px no-repeat; }
button.offer-demo-link { font-family: inherit; cursor: pointer; }
.builder-models-title { margin-bottom: 0; }
.builder-models-title h2 { margin: 0; }

.custom-demo-dialog { box-sizing: border-box; width: min(1180px, calc(100% - 48px)); max-width: none; max-height: calc(100% - 48px); padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-lg, 22px); background: #fff; color: var(--body); box-shadow: 0 30px 90px rgba(4, 10, 24, .45); }
.custom-demo-dialog[open] { display: flex; flex-direction: column; }
.custom-demo-dialog::backdrop { background: rgba(8, 13, 24, .74); }
.custom-demo-body { min-height: 0; padding: 30px 32px 32px; overflow: auto; overscroll-behavior: contain; }
.custom-demo-body .gdemo { margin: 0; }
.custom-demo-body .gdemo-head { padding-right: 56px; }
.custom-demo-close { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.custom-demo-close:hover { border-color: var(--ink); }
.custom-demo-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.custom-demo-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
html:has(.custom-demo-dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .custom-demo-dialog[open] { animation: custom-demo-in .24s cubic-bezier(.2, .8, .2, 1); }
    .custom-demo-dialog[open]::backdrop { animation: custom-demo-fade .24s ease-out; }
}
@keyframes custom-demo-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes custom-demo-fade { from { opacity: 0; } }

@media (max-width: 1100px) {
    .custom-tiles, .custom-tiles-two, .custom-tiles-fit { grid-template-columns: 1fr; }
    .custom-tile { min-height: 0; }
}
@media (max-width: 1000px) {
    .custom-total { position: static; }
}
@media (max-width: 760px) {
    .workspace.custom-guide, .workspace.custom-configurator { padding-top: 56px; padding-bottom: 56px; }
    .custom-showcase { padding-bottom: 56px; }
    .custom-plans, .custom-options, .workspace.custom-promises { grid-template-columns: 1fr; }
    .custom-panel { padding: 20px; }
    .custom-rec, .custom-total { padding: 22px; }
}
@media (max-width: 560px) {
    .custom-demo-dialog { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .custom-demo-body { padding: 20px 16px 24px; }
    .custom-demo-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .custom-site-frame, .custom-tile, .custom-plan, .custom-option, .custom-gift-bar > span { transition: none; }
    .custom-site:hover .custom-site-frame, .custom-site:focus-within .custom-site-frame { transform: none; }
}
