/* Corinne Ros · BSK Immobilier · Estimateur Haute-Corse */
:root {
  --azur: #0178E8;
  --azur-d: #0160BD;
  --ciel: #7AB6EE;
  --ciel-l: #EAF3FD;
  --anthra: #323631;
  --pierre: #F6F2EA;
  --pierre-d: #E7DFD0;
  --ink: #1F2320;
  --muted: #5F655E;
  --line: #E3E6E2;
  --white: #fff;
  --err: #C4342B;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(20, 30, 40, .45);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azur); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); color: var(--anthra); }
h3 { font-size: 20px; color: var(--anthra); }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; padding: 18px 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--azur); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(1, 120, 232, .4); }
.brand__mark svg { width: 24px; height: 24px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.brand__txt small { font-size: 12.5px; opacity: .85; letter-spacing: .02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: 600 15.5px var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--azur); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 120, 232, .8); }
.btn--primary:hover { background: var(--azur-d); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .25); }
.btn--ghost-dark { background: transparent; color: var(--anthra); border: 1.5px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--azur); color: var(--azur); }
.btn--white { background: #fff; color: var(--azur); }
.btn--link { background: none; color: var(--muted); padding: 14px 8px; }
.btn--link:hover { color: var(--anthra); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { position: relative; color: #fff; padding: 112px 0 72px; overflow: hidden; background: var(--anthra); }
.hero__bg { position: absolute; inset: 0; background: url("bastia-vieux-port.jpg") center 35% / cover no-repeat, linear-gradient(160deg, #0b4f93, #1b2a33); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(14, 24, 32, .92) 0%, rgba(14, 24, 32, .72) 42%, rgba(1, 78, 160, .45) 100%),
  linear-gradient(0deg, rgba(14, 24, 32, .55), transparent 40%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy card" "fen card"; column-gap: 56px; align-items: start; }
.hero__copy { grid-area: copy; }
.hero .card { grid-area: card; }
.fenetre { grid-area: fen; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ciel); margin: 0 0 16px; }
.eyebrow--dark { color: var(--azur); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); }
.hero h1 em { font-style: italic; color: var(--ciel); font-weight: 500; }
.lead { font-size: 18px; max-width: 34em; opacity: .92; margin: 20px 0 28px; }
.stats { list-style: none; padding: 22px 0 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.stats strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; }
.stats span { font-size: 13.5px; opacity: .8; line-height: 1.35; display: block; margin-top: 4px; }

/* Fenêtre corse : portrait de Corinne */
.fenetre { position: relative; margin: 0; display: grid; grid-template-columns: 34px 170px 34px 1fr; align-items: end; gap: 0; }
.fenetre__cadre { grid-column: 2; height: 210px; border-radius: 85px 85px 6px 6px; background: linear-gradient(180deg, var(--ciel) 0%, #CFE4F9 100%); border: 6px solid var(--pierre); box-shadow: inset 0 -12px 24px rgba(0,0,0,.08), 0 18px 40px -16px rgba(0,0,0,.6); overflow: hidden; position: relative; }
.fenetre__cadre img { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 92%; height: auto; }
.fenetre__volet { height: 196px; margin-bottom: 7px; background:
  repeating-linear-gradient(180deg, var(--azur) 0 9px, var(--azur-d) 9px 11px); border-radius: 4px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.fenetre__volet--g { grid-column: 1; transform: perspective(300px) rotateY(28deg); transform-origin: right; }
.fenetre__volet--d { grid-column: 3; transform: perspective(300px) rotateY(-28deg); transform-origin: left; }
.fenetre figcaption { grid-column: 4; padding: 0 0 6px 26px; }
.fenetre figcaption strong { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; }
.fenetre figcaption span { font-size: 14px; opacity: .8; display: block; margin-bottom: 10px; }
.fenetre q { display: block; font-size: 15px; line-height: 1.5; font-style: italic; opacity: .95; quotes: "« " " »"; border-left: 3px solid var(--ciel); padding-left: 14px; }

/* Card / form */
.card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--azur), var(--ciel) 60%, var(--pierre-d)); }
.progress { height: 6px; border-radius: 6px; background: var(--ciel-l); overflow: hidden; margin: 6px 0 12px; }
.progress__bar { display: block; height: 100%; width: 16.66%; background: var(--azur); border-radius: 6px; transition: width .4s ease; }
.card__step { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-on { display: block; animation: fadeIn .35s ease; }
.step.is-back { animation: fadeBack .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
legend { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--anthra); padding: 0; margin: 0 0 18px; line-height: 1.2; }
.sub { margin: -10px 0 14px; color: var(--muted); font-size: 14.5px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.choices--big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; height: 100%; }
.choice__in svg { width: 46px; height: 46px; color: var(--azur); padding: 8px; border-radius: 50%; background: var(--ciel-l); }
.choice__in b { font-size: 17px; }
.choice__in small { color: var(--muted); font-size: 13px; }
.choice:hover .choice__in { border-color: var(--ciel); }
.choice input:checked + .choice__in { border-color: var(--azur); background: var(--ciel-l); }
.choice input:focus-visible + .choice__in, .chip input:focus-visible + span { outline: 3px solid rgba(1, 120, 232, .35); outline-offset: 2px; }
.chip span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .18s; user-select: none; }
.chip:hover span { border-color: var(--ciel); }
.chip input:checked + span { background: var(--azur); border-color: var(--azur); color: #fff; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.f label { font-size: 13.5px; font-weight: 600; color: var(--anthra); }
.f input, .f select { width: 100%; font: 400 16px var(--sans); color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.f select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23323631' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.f input:focus, .f select:focus { outline: 0; border-color: var(--azur); box-shadow: 0 0 0 4px rgba(1, 120, 232, .14); }
.f.err input { border-color: var(--err); }
.unit { position: relative; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { margin: 2px 0 0; font-size: 13.5px; color: var(--azur); font-weight: 500; min-height: 1em; }
.err-msg { display: none; color: var(--err); font-size: 13.5px; margin: -6px 0 12px; }
.err-msg.on { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--azur); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.nav [data-next], .nav [data-submit] { margin-left: auto; }
form[data-type="maison"] .only-appart, form[data-type="appartement"] .only-maison, form:not([data-type]) .only-appart { display: none; }

/* Autocomplete */
.ac__list { list-style: none; margin: 4px 0 0; padding: 6px; position: static; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); max-height: 260px; overflow: auto; }
.ac__list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ac__list li small { display: block; color: var(--muted); font-size: 12.5px; }
.ac__list li.on, .ac__list li:hover { background: var(--ciel-l); }
.ac__list li.ac__empty { color: var(--muted); cursor: default; background: none; }

/* Result */
.result { animation: fadeIn .45s ease; }
.result__kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azur); }
.result__what { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--anthra); margin: 6px 0 18px; line-height: 1.25; }
.result__what small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.result__range { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; align-items: end; text-align: center; }
.result__range small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.result__range b { font-size: 18px; color: var(--anthra); white-space: nowrap; }
.result__mid { background: var(--ciel-l); border-radius: 14px; padding: 12px 6px; }
.result__mid b { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); color: var(--azur); }
.gauge { position: relative; height: 10px; border-radius: 10px; margin: 18px 4px 20px; background: linear-gradient(90deg, #DDE9F6, var(--ciel), var(--azur), var(--ciel), #DDE9F6); }
.gauge__pin { position: absolute; top: -5px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--azur); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.result__facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result__facts li { background: var(--pierre); border-radius: 12px; padding: 12px 10px; text-align: center; }
.result__facts b { display: block; font-size: 17px; color: var(--anthra); }
.result__facts span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }
.result__note { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.result__note img { width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--ciel); flex: none; }
.result__note p { margin: 0; font-size: 14px; color: var(--muted); }
.result__note strong { color: var(--anthra); }
.result__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.result__ctas .btn { flex: 1 1 200px; }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--pierre); }
.section__lead { color: var(--muted); font-size: 17px; max-width: 46em; margin: 14px 0 36px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.tile__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ciel-l); color: var(--azur); display: grid; place-items: center; margin-bottom: 16px; }
.tile__ic svg { width: 28px; height: 28px; }
.tile p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

.toggle { display: inline-flex; background: #fff; border: 1px solid var(--pierre-d); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.toggle button { border: 0; background: none; font: 600 14.5px var(--sans); color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.toggle button.is-on { background: var(--azur); color: #fff; }
.market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk { background: #fff; border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.mk__name { font-weight: 600; color: var(--anthra); }
.mk__price { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--azur); }
.mk__bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--ciel-l); overflow: hidden; margin-top: 6px; }
.mk__bar span { display: block; height: 100%; background: var(--ciel); border-radius: 5px; }
.mk__n { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.market__foot { font-size: 13px; color: var(--muted); margin-top: 16px; }

.faq { max-width: 800px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--anthra); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--azur); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.band { background: linear-gradient(110deg, var(--azur), #2E8FEC 60%, var(--ciel)); color: #fff; padding: 46px 0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band p { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 0; }

.foot { background: var(--anthra); color: rgba(255,255,255,.85); padding: 40px 0; font-size: 14.5px; }
.foot p { margin: 0 0 10px; }
.foot__small { font-size: 12.5px; opacity: .7; }
.foot a { color: var(--ciel); }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "card" "fen"; row-gap: 36px; }
  .stats { margin-bottom: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .market { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__cta { padding: 10px 14px; font-size: 14px; white-space: nowrap; flex: none; }
  .brand__txt strong { white-space: nowrap; font-size: 17px; }
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__txt small { display: none; }
  .hero { padding: 96px 0 48px; }
  .lead { font-size: 16.5px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats strong { font-size: 23px; }
  .stats span { font-size: 12px; }
  .fenetre { grid-template-columns: 22px 120px 22px 1fr; }
  .fenetre__cadre { height: 156px; border-radius: 60px 60px 6px 6px; border-width: 5px; }
  .fenetre__volet { height: 144px; }
  .fenetre figcaption { padding-left: 16px; }
  .fenetre q { display: none; }
  .card { padding: 22px 18px; }
  legend { font-size: 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .result__range b { font-size: 15px; }
  .result__facts b { font-size: 15px; }
  .tiles, .market { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
