/* Configurateur Hotonomie — mêmes couleurs et polices que la page de vente. */
@font-face { font-family: Fraunces; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
	--ink: #0F1419;
	--paper: #F7F4EE;
	--paper-2: #EFE9DE;
	--white: #FFFFFF;
	--line: rgba(15, 20, 25, .14);
	--muted: #5A6470;
	--teal: #0E5C55;
	--brass: #D3A04A;
	--red: #B3261E;
	--display: Fraunces, Georgia, serif;
	--body: Inter, system-ui, sans-serif;
	--r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
.wrap { width: min(920px, 100% - 32px); margin-inline: auto; }
a { color: var(--teal); }
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 244, 238, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font: 600 1.35rem/1 var(--display); text-decoration: none; }
.brand img { display: block; width: auto; height: 1.85rem; }
.top-note { margin: 0; color: var(--muted); font-size: .85rem; }

.steps { display: flex; gap: .4rem; margin: 1.6rem 0 1.2rem; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; counter-reset: s; }
.steps li { flex: 1 0 auto; padding: .45rem .7rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .85rem; white-space: nowrap; counter-increment: s; }
.steps li::before { content: counter(s) " · "; }
.steps li.is-current { background: var(--ink); color: var(--white); }
.steps li.is-done { background: #DDE9E5; color: var(--teal); }

.step { margin: 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.step legend { float: left; width: 100%; margin-bottom: .4rem; font: 500 1.7rem/1.2 var(--display); }
.step legend ~ * { clear: both; } /* Sous le titre flottant, jamais à côté. */
.step legend span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .4rem; border-radius: 50%; background: var(--brass); color: var(--ink); font: 600 1rem/1 var(--body); vertical-align: .2em; }
.step h3 { margin: 1.6rem 0 .6rem; font: 600 1.05rem/1.3 var(--body); }
.hint { clear: both; margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.label { margin: 1.4rem 0 .5rem; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1rem; }
.f { display: grid; align-content: start; gap: .3rem; font-size: .9rem; font-weight: 600; }
.f.wide { grid-column: span 2; }
.f small, h3 small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--body); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .drop:focus-within { outline: 3px solid rgba(14, 92, 85, .35); outline-offset: 1px; border-color: var(--teal); }
input[aria-invalid="true"] { border-color: var(--red); }
textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .9rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.checks input, .choices input { width: auto; accent-color: var(--teal); }
.choices { display: grid; gap: .5rem; }
.choices label { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.choices span { grid-column: 2; color: var(--muted); font-size: .88rem; }
.rows { display: grid; gap: .5rem; }
.row { display: grid; grid-template-columns: 6rem 1fr auto; gap: .5rem; align-items: center; }
.row.nearby { grid-template-columns: 8rem 1fr 9rem auto; }
.row button { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; font-size: 1.1rem; }
.link { padding: .5rem 0; border: 0; background: none; color: var(--teal); font: 600 .95rem/1 var(--body); cursor: pointer; }

.amenity-groups { display: grid; gap: .5rem; }
.amenity-groups details { border: 1px solid var(--line); border-radius: 12px; }
.amenity-groups summary { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; font-weight: 600; cursor: pointer; }
.amenity-groups summary small { color: var(--teal); font-weight: 600; }
.amenity-groups .checks { margin: 0; padding: 0 1rem 1rem; }
.amenity-groups details.is-a11y { border-color: var(--teal); }
.drop { display: grid; place-items: center; gap: .2rem; padding: 2.4rem 1rem; border: 2px dashed var(--line); border-radius: var(--r); background: var(--paper); text-align: center; cursor: pointer; }
.drop.is-over { border-color: var(--teal); background: #E6F0ED; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop span { color: var(--muted); font-size: .9rem; }
.count { color: var(--muted); font-size: .9rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.thumbs li { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: .3rem; right: .3rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: rgba(15, 20, 25, .75); color: var(--white); cursor: pointer; }

.error { min-height: 1.5em; margin: .8rem 0 0; color: var(--red); font-weight: 600; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .6rem 0 3rem; }
.nav [data-example] { margin-right: auto; margin-left: 1rem; }
.btn { padding: .8rem 1.4rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; display: inline-block; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.brass { background: var(--brass); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }

.run { margin: 2rem 0 3rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.run h1 { margin: 0 0 .4rem; font: 500 2rem/1.2 var(--display); }
.run h2 { margin: 2rem 0 .6rem; font: 500 1.4rem/1.2 var(--display); }
.bar { height: 8px; margin: 1.2rem 0; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.bar span { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .6s ease; }
.log { max-height: 16rem; margin: 0; padding: .8rem 1rem .8rem 2.2rem; overflow-y: auto; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: .88rem; }
.report ul { padding-left: 1.2rem; }
.report li { margin-bottom: .35rem; }

.install .choices { margin-bottom: 1.4rem; }
.pane { margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.pane h2 { margin: 0 0 .5rem; }
.kicker { margin: 0 0 .2rem; color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.domains { display: grid; gap: .45rem; margin-bottom: 1rem; }
.domain { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.domain input { width: auto; accent-color: var(--teal); }
.domain strong { overflow-wrap: anywhere; }
.domain:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.domain.is-taken { color: var(--muted); cursor: not-allowed; }
.domain.is-taken strong { text-decoration: line-through; font-weight: 500; }
.badge { padding: .2rem .55rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.is-free .badge { background: #DDE9E5; color: var(--teal); }
.domain-check { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; max-width: 34rem; }
.nav-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: .6rem 0 1rem; }
.paste { margin-bottom: .8rem; }
.pane .grid + .hint { margin-top: 1rem; }
.partner { display: inline-block; margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.paste textarea { font-size: .9rem; }
.tips { margin: .5rem 0 .2rem; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.tips li { margin-bottom: .25rem; }
.btn.small { padding: .55rem 1rem; font-size: .9rem; margin-right: .3rem; }
.btn.ghost { background: transparent; }
.found { padding: .7rem 1rem; border-radius: 10px; background: #E6F0ED; color: var(--teal); font-weight: 600; }
.howto { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.howto li { margin-bottom: .45rem; }
.howto code, .credentials code { padding: .1rem .35rem; border-radius: 6px; background: var(--paper-2); font-size: .92em; }
.install-form .btn { margin-top: .4rem; }
.install-steps { display: grid; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 .6rem; align-items: baseline; padding: .55rem .8rem; border-radius: 10px; background: var(--paper); color: var(--muted); }
.install-steps li::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--line); justify-self: center; align-self: center; }
.install-steps li small { grid-column: 2; font-size: .85rem; overflow-wrap: anywhere; }
.install-steps .is-running { color: var(--ink); font-weight: 600; }
.install-steps .is-running::before { border-color: var(--teal); border-right-color: transparent; animation: spin 1s linear infinite; }
.install-steps .is-done { color: var(--ink); }
.install-steps .is-done::before { content: "✓"; width: auto; height: auto; border: 0; color: var(--teal); font-weight: 700; }
.install-steps .is-error { color: var(--red); font-weight: 600; }
.install-steps .is-error::before { content: "!"; width: auto; height: auto; border: 0; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .install-steps .is-running::before { animation: none; } }
.credentials { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 1rem 0; padding: 1rem 1.2rem; border-radius: 12px; background: var(--paper); }
.credentials dt { color: var(--muted); }
.credentials dd { margin: 0; overflow-wrap: anywhere; }
.warn { padding: .8rem 1rem; border-left: 4px solid var(--brass); border-radius: 0 10px 10px 0; background: #FBF3E3; }
.warnings { padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }

@media (max-width: 720px) {
	.grid { grid-template-columns: 1fr 1fr; }
	.f.wide { grid-column: 1 / -1; }
	.step { padding: 1.1rem; }
	.row.nearby { grid-template-columns: 1fr 1fr; }
	.row.nearby input:first-of-type { grid-column: 1 / -1; }
	.top-note { display: none; }
	.nav [data-example] { display: none; }
}
@media (max-width: 420px) {
	.grid { grid-template-columns: 1fr; }
	.credentials { grid-template-columns: 1fr; gap: .1rem; }
	.domain { grid-template-columns: auto 1fr; }
	.domain .badge { grid-column: 2; justify-self: start; }
	.domain-check { grid-template-columns: 1fr; }
	.credentials dd { margin-bottom: .6rem; }
}

.gate form .btn { margin: .3rem 0 1.2rem; }
.gate-key { margin-top: .4rem; }
.gate-key summary { cursor: pointer; color: var(--muted); font-size: .95rem; }
.gate-key form { margin-top: .8rem; }

/* Site créé : aperçu, puis paiement de la mise en ligne */
.note { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: var(--r); background: #E8F2EF; color: var(--teal); font-weight: 600; }
.wrap > .note { margin: 2rem 0 -1rem; }
.preview-cta { margin: 0 0 1.4rem; }
.preview-cta .btn { margin-bottom: .5rem; }
.paywall { margin: 0 0 1.8rem; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--ink); color: var(--white); }
.paywall h2 { margin-top: 0; color: var(--white); }
.paywall .hint { margin: .7rem 0 0; color: #C3CBD3; }
.paywall .error { color: #F2B8B5; }
