/* =====================================================================
   AltaVu Immobilier : composants ajoutes le 24.11.2026
   Pages vendeurs, formulaire d'estimation en deux etapes, barre d'appel
   mobile, cartes de liens. Reprend strictement la charte existante
   (petrole, dore, sable, Cormorant Garamond + Inter).
   Charge APRES base.css (pages interieures) ou apres les styles
   integres de index.html.
   ===================================================================== */

/* ---------- en-tete des pages interieures ---------- */
.page-hero{position:relative;color:#fff;overflow:hidden;padding:168px 0 84px;
  background:linear-gradient(180deg,#132F39 0%,#1A4250 40%,#0F2B34 100%);}
.page-hero .topo{position:absolute;inset:0;opacity:.18;width:100%;height:100%;}
.page-hero .wrap{position:relative;z-index:2;}
.page-hero h1{font-size:clamp(2.3rem,5vw,3.9rem);max-width:20ch;}
.page-hero h1 em{font-style:italic;color:var(--gold);}
.page-hero .lead{font-size:1.06rem;max-width:62ch;margin:26px 0 34px;color:rgba(255,255,255,.82);}
.page-hero .hero-actions{margin-top:6px;}
.crumbs{font-size:.72rem;letter-spacing:.08em;color:rgba(255,255,255,.55);margin-bottom:26px;}
.crumbs a{color:rgba(255,255,255,.75);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.2);}
.crumbs a:hover{color:var(--gold);}
.crumbs span[aria-hidden]{margin:0 8px;color:var(--gold);}
.page-hero .tel-invite{margin-top:26px;}

/* ---------- contenu redactionnel ---------- */
.prose-wrap{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:72px;align-items:start;}
@media(max-width:960px){.prose-wrap{grid-template-columns:1fr;gap:48px;}}
.prose{max-width:70ch;}
.prose h2{font-size:clamp(1.8rem,3vw,2.4rem);margin:64px 0 18px;}
.prose h2:first-child{margin-top:0;}
.prose h3{font-size:1.06rem;font-weight:600;color:var(--petrol-deep);margin:34px 0 10px;}
.prose p{margin-bottom:18px;color:#39454a;}
.prose ul,.prose ol{margin:0 0 22px 1.2em;color:#39454a;}
.prose li{margin-bottom:8px;padding-left:4px;}
.prose li::marker{color:var(--gold-deep);}
.prose a{color:var(--petrol);text-decoration:none;border-bottom:1px solid var(--gold-deep);}
.prose a:hover{color:var(--gold-deep);}
.prose strong{font-weight:600;color:var(--petrol-dark);}
.prose .callout{background:var(--sand);border-left:3px solid var(--gold);padding:22px 26px;margin:28px 0;}
.prose .callout p:last-child{margin-bottom:0;}
.prose .callout .ck{font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:var(--gold-deep);margin-bottom:8px;display:block;}
.prose table{width:100%;border-collapse:collapse;margin:10px 0 26px;font-size:.92rem;}
.prose th,.prose td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;}
.prose th{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--petrol-dark);font-weight:600;background:var(--sand);}
.prose .src{font-size:.78rem;color:var(--grey);}
.prose ol.steps-list{list-style:none;margin-left:0;counter-reset:st;}
.prose ol.steps-list>li{counter-increment:st;position:relative;padding:0 0 0 56px;margin-bottom:26px;}
.prose ol.steps-list>li::before{content:counter(st);position:absolute;left:0;top:-6px;font-family:var(--serif);font-size:2.1rem;color:var(--gold);line-height:1;}
.prose ol.steps-list h3{margin-top:0;}
.updated{font-size:.78rem;color:var(--grey);margin-top:40px;padding-top:18px;border-top:1px solid var(--line);}

/* carte laterale */
.aside-card{position:sticky;top:110px;background:var(--petrol-deep);color:#fff;padding:38px 34px;}
.aside-card::before{content:"";position:absolute;inset:10px;border:1px solid rgba(200,169,106,.45);pointer-events:none;}
.aside-card h2{color:#fff;font-size:1.7rem;margin-bottom:14px;}
.aside-card p{font-size:.92rem;color:rgba(255,255,255,.74);margin-bottom:22px;}
.aside-card .btn{width:100%;justify-content:center;position:relative;}
.aside-card ul{list-style:none;margin:0 0 24px;}
.aside-card li{font-size:.88rem;color:rgba(255,255,255,.78);padding:9px 0;border-bottom:1px solid rgba(255,255,255,.12);}
.aside-card li::before{content:"·";color:var(--gold);margin-right:10px;font-weight:800;}
.aside-card .tel-invite{font-size:.88rem;margin-top:18px;position:relative;}
@media(max-width:960px){.aside-card{position:relative;top:auto;}}

/* ---------- bandeau d'appel a l'action ---------- */
.cta-band{background:linear-gradient(180deg,var(--petrol-dark),var(--petrol-deep));color:#fff;padding:96px 0;}
.cta-band h2{color:#fff;max-width:24ch;}
.cta-band .sub{color:rgba(255,255,255,.72);margin-bottom:34px;}
.cta-band .hero-actions{gap:16px;}

/* ---------- cartes de liens (pages vendeurs) ---------- */
.link-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
@media(max-width:1000px){.link-cards{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.link-cards{grid-template-columns:1fr;}}
.link-card{display:flex;flex-direction:column;gap:10px;padding:30px 28px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);transition:border-color .25s,transform .25s;}
.link-card:hover{border-color:var(--gold);transform:translateY(-2px);}
.link-card .lk{font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:var(--gold-deep);}
.link-card h3{font-family:var(--serif);font-size:1.5rem;font-weight:600;line-height:1.15;color:var(--petrol-deep);}
.link-card p{font-size:.9rem;color:var(--grey);}
.link-card .go{margin-top:auto;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--petrol);}
.link-card .go::after{content:" →";}
.sellers{background:var(--paper);}

/* ---------- formulaire d'estimation en deux etapes ---------- */
.estimation .fsteps{display:flex;gap:10px;margin:0 0 8px;position:relative;}
.estimation .fsteps span{flex:1;font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--grey);padding-top:10px;border-top:2px solid rgba(24,34,38,.12);}
.estimation .fsteps span.on{color:var(--petrol-dark);border-top-color:var(--gold-deep);}
.estimation fieldset{border:none;margin:0;padding:0;min-width:0;}
.estimation fieldset[hidden]{display:none;}
.estimation legend{font-family:var(--serif);font-size:1.6rem;font-weight:600;color:var(--petrol-deep);margin:14px 0 2px;padding:0;}
.estimation .lg-note{font-size:.84rem;color:var(--grey);margin-bottom:4px;}
.estimation textarea{width:100%;padding:14px 16px;border:1px solid rgba(24,34,38,.2);font-size:.95rem;background:#fff;font-family:var(--sans);color:var(--ink);min-height:96px;resize:vertical;}
.estimation textarea:focus{outline:none;border-color:var(--gold-deep);}
.estimation .choices{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;}
@media(max-width:420px){.estimation .choices{grid-template-columns:1fr;}}
.estimation .choice{position:relative;display:block;margin:0;cursor:pointer;}
.estimation .choice input{position:absolute;opacity:0;width:1px;height:1px;}
.estimation .choice span{display:flex;align-items:center;min-height:48px;padding:10px 14px;border:1px solid rgba(24,34,38,.2);background:#fff;font-size:.9rem;font-weight:400;letter-spacing:normal;text-transform:none;color:var(--ink);line-height:1.3;transition:border-color .2s,background .2s;}
.estimation .choice input:checked+span{border-color:var(--petrol);background:rgba(31,78,95,.07);box-shadow:inset 0 0 0 1px var(--petrol);}
.estimation .choice input:focus-visible+span{outline:2px solid var(--gold-deep);outline-offset:2px;}
.estimation .grp-label{display:block;font-size:.68rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;margin:22px 0 8px;color:var(--petrol-dark);}
.estimation details.more{margin-top:22px;border-top:1px solid var(--line);padding-top:6px;}
.estimation details.more summary{cursor:pointer;font-size:.86rem;color:var(--petrol);padding:12px 0 4px;list-style:none;}
.estimation details.more summary::-webkit-details-marker{display:none;}
.estimation details.more summary::before{content:"+ ";color:var(--gold-deep);font-weight:600;}
.estimation details.more[open] summary::before{content:"− ";}
.estimation .trio{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 14px;}
@media(max-width:640px){.estimation .trio{grid-template-columns:1fr 1fr;}}
.estimation .fnav{display:flex;gap:12px;align-items:center;margin-top:30px;}
.estimation .fnav .btn{margin-top:0;flex:1;}
.estimation .fnav .back{margin-top:0;background:none;border:none;color:var(--petrol);font-size:.82rem;cursor:pointer;padding:12px 6px;font-family:var(--sans);text-decoration:underline;text-underline-offset:3px;flex:0 0 auto;width:auto;}
.estimation .reassure{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:16px;font-size:.74rem;color:var(--grey);}
.estimation .reassure span::before{content:"✓ ";color:var(--petrol);font-weight:600;}
.estimation .ok-panel{text-align:left;}
.estimation .ok-panel h3{font-family:var(--serif);font-size:1.8rem;font-weight:600;color:var(--petrol-deep);margin:6px 0 12px;}
.estimation .ok-panel p{color:var(--grey);margin-bottom:12px;font-size:.95rem;}
.estimation .ok-panel a{color:var(--petrol);}

/* ---------- barre d'appel fixe sur mobile ---------- */
.mobile-bar{display:none;}
@media(max-width:760px){
  .mobile-bar{display:grid;grid-template-columns:1fr 1.4fr;position:fixed;left:0;right:0;bottom:0;z-index:120;
    background:rgba(15,43,52,.97);backdrop-filter:blur(10px);border-top:1px solid rgba(200,169,106,.35);
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:10px;transform:translateY(110%);transition:transform .3s;}
  .mobile-bar.show{transform:none;}
  .mobile-bar a{display:flex;align-items:center;justify-content:center;min-height:48px;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;}
  .mobile-bar .mb-tel{border:1px solid rgba(255,255,255,.4);color:#fff;}
  .mobile-bar .mb-est{background:var(--gold);color:var(--petrol-deep);}
  body.has-mobile-bar footer{padding-bottom:110px;}
}

/* ---------- page 404 ---------- */
.notfound{min-height:70vh;display:flex;align-items:center;}

.estimation form{scroll-margin-top:96px;}
.prose h2[id]{scroll-margin-top:100px;}

/* photo de fond des pages interieures (meme image que l'accueil), ajoutee le 24.11.2026 */
.page-hero .photo{position:absolute;inset:0;background:url('../images/vue-neuchatel-lac-alpes.jpg') center 30%/cover no-repeat;}
.page-hero .photo{background-image:image-set(url('../images/vue-neuchatel-lac-alpes.webp') type('image/webp'),url('../images/vue-neuchatel-lac-alpes.jpg') type('image/jpeg'));}
.page-hero .photo::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,rgba(15,43,52,.94) 0%,rgba(15,43,52,.88) 38%,rgba(15,43,52,.58) 62%,rgba(15,43,52,.28) 100%),linear-gradient(0deg,rgba(15,43,52,.95) 0%,rgba(15,43,52,.35) 30%,transparent 55%),linear-gradient(180deg,rgba(15,43,52,.8) 0%,transparent 22%);}
@media(max-width:900px){
  .page-hero .photo{background-image:url('../images/vue-neuchatel-lac-alpes-mobile.jpg');background-position:center 58%;}
  .page-hero .photo{background-image:image-set(url('../images/vue-neuchatel-lac-alpes-mobile.webp') type('image/webp'),url('../images/vue-neuchatel-lac-alpes-mobile.jpg') type('image/jpeg'));}
  .page-hero .photo::after{background:linear-gradient(180deg,rgba(15,43,52,.86) 0%,rgba(15,43,52,.72) 30%,rgba(15,43,52,.84) 65%,rgba(15,43,52,1) 100%);}
}
.page-hero .topo{z-index:1;}

/* finalisation v4 (24.11.2026) : 16 px evite le zoom automatique de Safari sur iPhone */
.estimation input,.estimation select,.estimation textarea{font-size:16px;}
.estimation .field-hint{font-size:.76rem;color:var(--grey);margin:6px 0 0;}

/* Lien d'evitement (audit du 24.11.2026) : invisible a l'ecran, il apparait
   seulement quand on navigue au clavier et mene directement au contenu. */
.skip-link{position:absolute;left:12px;top:-200px;z-index:300;padding:12px 18px;background:var(--petrol-deep);color:#fff;font-family:var(--sans);font-size:.85rem;font-weight:600;text-decoration:none;}
.skip-link:focus{top:12px;}
main:focus{outline:none;}
