/* Webcomimmo — fiche et index Location.
   Tokens du thème uniquement : aucune couleur codée en dur hors états. */

/* ------------------------------------------------------------ Structure */
.wc-loc__section { padding: 2.4rem 0; border-top: 1px solid var(--wc-line); }
.wc-loc h1 { font-family: var(--wc-font-display); font-size: 1.9rem; line-height: 1.18; margin: .1em 0 .35em; }
.wc-loc h2 { font-family: var(--wc-font-display); font-size: 1.35rem; margin: 0 0 .8rem; color: var(--wc-marine); }
.wc-loc h3 { font-size: 1.02rem; margin: 1.4rem 0 .45rem; color: var(--wc-marine); }
.wc-loc__intro { color: var(--wc-muted); max-width: 70ch; }
.wc-loc__mini { font-size: .79rem; color: var(--wc-muted); line-height: 1.6; }
.wc-loc__legal { margin-top: 1.1rem; }
.wc-loc__two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.wc-loc__list { padding-left: 1.1rem; margin: .5rem 0; }
.wc-loc__list li { margin: .28rem 0; }

/* ---------------------------------------------------------------- Héros */
.wc-loc__hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.9rem; align-items: start; padding: 1.2rem 0 1.8rem; }
.wc-loc__ville { color: var(--wc-muted); font-size: .95rem; margin: 0 0 1.1rem; }

.wc-loc-gal { position: relative; border-radius: var(--wc-radius); overflow: hidden; background: var(--wc-marine); }
.wc-loc-gal img { width: 100%; height: 430px; object-fit: cover; display: none; }
.wc-loc-gal img.is-on { display: block; }
.wc-loc-gal__arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 .7rem; pointer-events: none; }
.wc-loc-gal__arrows button {
  pointer-events: auto; background: rgba(10, 34, 48, .55); color: #fff; border: 0;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.wc-loc-gal__arrows button:hover { background: var(--wc-teal); }
.wc-loc-gal__arrows button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wc-loc-gal__count {
  position: absolute; right: .8rem; bottom: .8rem; background: rgba(10, 34, 48, .7);
  color: #fff; font-size: .74rem; padding: .25rem .6rem; border-radius: 20px;
}

/* -------------------------------------------------------------- Badges */
.wc-loc__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.wc-loc__badge {
  font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  padding: .25rem .65rem; border-radius: 20px;
  background: var(--wc-paper-2); color: var(--wc-muted); border: 1px solid var(--wc-line);
}
.wc-loc__badge.is-hi { background: var(--wc-marine); color: #fff; border-color: var(--wc-marine); }
.wc-loc__badge.is-dpe { background: rgba(0, 122, 140, .1); color: var(--wc-teal); border-color: rgba(0, 122, 140, .3); }

/* --------------------------------------------------------------- Prix */
.wc-loc__price { border: 1px solid var(--wc-line); border-radius: var(--wc-radius); padding: 1.3rem; background: #fff; }
.wc-loc__price-big { font-family: var(--wc-font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--wc-marine); }
.wc-loc__price-big span { font-size: 1rem; font-weight: 400; color: var(--wc-muted); }
.wc-loc__price-cc { color: var(--wc-muted); font-size: .86rem; margin: .35rem 0 0; }
.wc-loc__price-lines { margin: 1rem 0 0; font-size: .89rem; border-top: 1px solid var(--wc-line); padding-top: .9rem; }
.wc-loc__price-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.wc-loc__price-lines dt { color: var(--wc-muted); margin: 0; }
.wc-loc__price-lines dd { margin: 0; font-weight: 600; white-space: nowrap; }

.wc-loc__btn {
  display: block; width: 100%; text-align: center; background: var(--wc-teal); color: #fff;
  text-decoration: none; padding: .85rem 1.1rem; border-radius: 8px; font-weight: 600;
  border: 0; cursor: pointer; font-size: 1rem; margin-top: 1rem; font-family: inherit;
}
.wc-loc__btn:hover { background: var(--wc-teal-l); color: #fff; }
.wc-loc__btn:disabled { opacity: .55; cursor: default; }
.wc-loc__btn.is-ghost { background: #fff; color: var(--wc-teal); border: 1.5px solid var(--wc-teal); margin-top: .5rem; }
.wc-loc__btn.is-ghost:hover { background: var(--wc-paper); }

/* ------------------------------------------------------------- Chiffres */
.wc-loc__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px; background: var(--wc-line); border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius); overflow: hidden; margin: 0; padding: 0; list-style: none;
}
.wc-loc__facts li { background: #fff; padding: .85rem 1rem; }
.wc-loc__facts .k { display: block; font-size: .69rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wc-muted); }
.wc-loc__facts .v { display: block; font-weight: 600; margin-top: .12rem; }

.wc-loc__plan { border: 1px solid var(--wc-line); border-radius: 10px; max-width: 100%; }

/* --------------------------------------------------------------- Vidéo */
.wc-loc__video { max-width: 340px; margin: 1.1rem 0; }
.wc-loc__video-ratio { position: relative; padding-bottom: 177.78%; height: 0; border-radius: var(--wc-radius); overflow: hidden; background: var(--wc-marine); }
.wc-loc__video-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------- Tableau */
.wc-loc__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wc-loc__table th, .wc-loc__table td { padding: .55rem .3rem; border-bottom: 1px solid var(--wc-line); text-align: left; }
.wc-loc__table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wc-muted); font-weight: 600; }
.wc-loc__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-loc__table .is-total td { font-weight: 700; background: var(--wc-paper); }

.wc-loc__note {
  background: rgba(255, 102, 0, .07); border: 1px solid rgba(255, 102, 0, .28);
  border-left: 4px solid var(--wc-orange); padding: .9rem 1.1rem; border-radius: 8px;
  font-size: .9rem; margin: 1.2rem 0;
}

/* ---------------------------------------------------------- Formulaire */
.wc-loc-form__box { background: var(--wc-paper); border-radius: var(--wc-radius); padding: 1.6rem; }
.wc-loc-form fieldset { border: 1px solid var(--wc-line); border-radius: 10px; padding: 1.1rem; margin: 0 0 1.2rem; background: #fff; }
.wc-loc-form legend { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--wc-muted); padding: 0 .5rem; font-weight: 700; }
.wc-loc-form__g2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.wc-loc-form label { display: block; font-size: .81rem; font-weight: 600; margin-bottom: .25rem; color: var(--wc-marine); }
.wc-loc-form input[type="text"], .wc-loc-form input[type="email"], .wc-loc-form input[type="tel"],
.wc-loc-form input[type="number"], .wc-loc-form input[type="url"], .wc-loc-form select {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--wc-line); border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--wc-ink);
}
.wc-loc-form input:focus-visible, .wc-loc-form select:focus-visible { outline: 2px solid var(--wc-teal); outline-offset: 1px; }
.wc-loc-form__hint { display: block; font-size: .75rem; color: var(--wc-muted); margin-top: .2rem; line-height: 1.45; }
.wc-loc-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wc-loc-form__tabs { display: flex; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.wc-loc-form__tab {
  padding: .55rem .9rem; border: 1.5px solid var(--wc-line); background: #fff; border-radius: 8px;
  cursor: pointer; font-size: .87rem; font-weight: 600; color: var(--wc-muted); font-family: inherit;
}
.wc-loc-form__tab.is-on { border-color: var(--wc-teal); color: var(--wc-teal); }
.wc-loc-form__pane { display: none; }
.wc-loc-form__pane.is-on { display: block; }

.wc-loc-form__check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .92rem; font-weight: 400; color: var(--wc-ink); }
.wc-loc-form__check input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--wc-teal); }
.wc-loc-form__error { color: #b3261e; font-size: .88rem; margin-top: .6rem; min-height: 1em; }

/* ------------------------------------------------------------- Écran 2 */
.wc-loc-ack {
  border: 1px solid rgba(0, 122, 140, .3); background: rgba(0, 122, 140, .07);
  border-radius: var(--wc-radius); padding: 1.4rem; margin-bottom: 1.5rem;
}
.wc-loc-ack h2 { color: var(--wc-teal); }
.wc-loc-ack .wc-loc__btn { display: inline-block; width: auto; padding-inline: 1.6rem; }

.wc-loc-capa { border: 1px solid var(--wc-line); border-radius: var(--wc-radius); overflow: hidden; }
.wc-loc-capa__head { background: var(--wc-marine); color: #fff; padding: 1.1rem 1.4rem; }
.wc-loc-capa__head h2 { color: #fff; margin: 0; font-size: 1.15rem; }
.wc-loc-capa__head p { margin: .35rem 0 0; opacity: .78; font-size: .86rem; }
.wc-loc-capa__body { padding: 1.4rem; }

.wc-loc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.wc-loc-kpi { background: var(--wc-paper); border-radius: 10px; padding: .9rem; }
.wc-loc-kpi .k { display: block; font-size: .69rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wc-muted); }
.wc-loc-kpi .v { display: block; font-size: 1.32rem; font-weight: 700; margin-top: .15rem; font-variant-numeric: tabular-nums; color: var(--wc-marine); }
.wc-loc-kpi.is-hl { background: var(--wc-teal); }
.wc-loc-kpi.is-hl .k { color: rgba(255, 255, 255, .7); }
.wc-loc-kpi.is-hl .v { color: #fff; }

.wc-loc-verdict {
  border-left: 4px solid var(--wc-orange); background: rgba(255, 102, 0, .07);
  padding: .9rem 1.1rem; border-radius: 8px; margin: 1.1rem 0; font-size: .94rem;
}

.wc-loc-reco { border: 1px solid var(--wc-line); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; background: #fff; }
.wc-loc-reco__body { padding: 1rem; }
.wc-loc-reco__head { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }

/* Carrousel du programme, visible sans clic */
.wc-loc-reco__gal { position: relative; background: var(--wc-marine); aspect-ratio: 16 / 9; }
.wc-loc-reco__gal img { width: 100%; height: 100%; object-fit: cover; display: none; }
.wc-loc-reco__gal img.is-on { display: block; }
.wc-loc-reco__arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 .55rem; pointer-events: none; }
.wc-loc-reco__arrows button {
  pointer-events: auto; background: rgba(10, 34, 48, .55); color: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.wc-loc-reco__arrows button:hover { background: var(--wc-teal); }
.wc-loc-reco__arrows button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wc-loc-reco__count {
  position: absolute; right: .6rem; bottom: .6rem; background: rgba(10, 34, 48, .7);
  color: #fff; font-size: .7rem; padding: .2rem .55rem; border-radius: 20px;
}

/* Adresse + mini-carte */
.wc-loc-reco__geo { margin: .7rem 0 .2rem; }
.wc-loc-reco__adr { margin: 0 0 .5rem; font-size: .87rem; color: var(--wc-muted); }
.wc-loc-reco__map { border: 1px solid var(--wc-line); border-radius: 8px; overflow: hidden; height: 165px; }
.wc-loc-reco__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.wc-loc-reco__maplegend { margin: .35rem 0 0; font-size: .74rem; color: var(--wc-muted); line-height: 1.45; }
.wc-loc-reco__maplegend a { color: var(--wc-teal); }
.wc-loc-reco strong { display: block; font-size: 1.05rem; color: var(--wc-marine); }
.wc-loc-reco__lines { margin: .7rem 0; }
.wc-loc-reco__line { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px solid var(--wc-line); font-size: .89rem; }
.wc-loc-reco .wc-loc__btn { display: inline-block; width: auto; padding-inline: 1.4rem; }

.wc-loc-epargne { border: 1px solid var(--wc-line); border-radius: var(--wc-radius); padding: 1.4rem; margin-top: 1.4rem; }

/* --------------------------------------------------------------- Index */
.wc-loc-index__intro { color: var(--wc-muted); max-width: 70ch; margin-bottom: 1.8rem; }
.wc-loc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.wc-loc-card {
  border: 1px solid var(--wc-line); border-radius: var(--wc-radius); overflow: hidden;
  text-decoration: none; color: inherit; display: block; background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.wc-loc-card:hover { box-shadow: var(--wc-shadow); transform: translateY(-2px); }
.wc-loc-card img { width: 100%; height: 195px; object-fit: cover; display: block; }
.wc-loc-card__body { padding: 1rem; }
.wc-loc-card__ville { font-size: .77rem; color: var(--wc-muted); }
.wc-loc-card h2 { font-size: 1.05rem; margin: .25rem 0 .5rem; }
.wc-loc-card strong { color: var(--wc-teal); }

/* ------------------------------------------------------------ Réactif */
@media (max-width: 900px) {
  .wc-loc__hero { grid-template-columns: 1fr; }
  .wc-loc__two { grid-template-columns: 1fr; gap: 1.4rem; }
  .wc-loc-gal img { height: 300px; }
}
@media (max-width: 640px) {
  .wc-loc-form__g2 { grid-template-columns: 1fr; }
  .wc-loc-form__box { padding: 1rem; }
  .wc-loc h1 { font-size: 1.5rem; }
  .wc-loc__price-big { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-loc-card { transition: none; }
  .wc-loc-card:hover { transform: none; }
}

/* ------------------------------------------------- Encadré DossierFacile */
.wc-loc-df {
  background: var(--wc-paper);
  border: 1px solid var(--wc-line);
  border-left: 4px solid var(--wc-teal);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
}
.wc-loc-df__lead { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; }
.wc-loc-df__lead strong { color: var(--wc-marine); }

.wc-loc-df__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 780px) { .wc-loc-df__points { grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; } }
.wc-loc-df__points li { font-size: .86rem; line-height: 1.55; color: var(--wc-ink); padding-left: 1.35rem; position: relative; }
.wc-loc-df__points li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wc-teal);
}
.wc-loc-df__k { display: block; font-weight: 700; color: var(--wc-marine); font-size: .88rem; margin-bottom: .1rem; }

.wc-loc-df__cta { margin: 1.1rem 0 0; }
.wc-loc-df__cta a {
  display: inline-block; background: var(--wc-teal); color: #fff; text-decoration: none;
  padding: .6rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.wc-loc-df__cta a:hover { background: var(--wc-teal-l); color: #fff; }
.wc-loc-df__cta a:focus-visible { outline: 2px solid var(--wc-marine); outline-offset: 2px; }
.wc-loc-df__note { display: block; font-size: .74rem; color: var(--wc-muted); margin-top: .35rem; }


/* Case « et si j'achetais ? » — l'invitation doit se distinguer des cases utilitaires */
.wc-loc-form__check--teaser {
  background: rgba(0, 122, 140, .06);
  border: 1px solid rgba(0, 122, 140, .25);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin: .9rem 0;
  align-items: flex-start;
}
.wc-loc-form__check--teaser strong { display: block; color: var(--wc-marine); font-size: .96rem; margin-bottom: .15rem; }
.wc-loc-form__check--teaser span { line-height: 1.55; }
.wc-loc-form__check--teaser em { display: block; margin-top: .3rem; font-size: .8rem; color: var(--wc-muted); font-style: normal; }

/* Rôle de chaque proposition d'acquisition */
.wc-loc-reco__role {
  margin: 0; padding: .55rem 1rem;
  background: var(--wc-marine); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.wc-loc-reco__role.is-plus { background: var(--wc-teal); }
.wc-loc-reco__role span { display: block; font-weight: 400; opacity: .82; font-size: .78rem; margin-top: .1rem; }

.wc-loc__badge.is-tva { background: rgba(255,102,0,.12); color: #a34400; border-color: rgba(255,102,0,.35); }
.wc-loc-reco__barre { text-decoration: line-through; color: var(--wc-muted); }

.wc-loc-reco__tva {
  background: rgba(255,102,0,.07); border: 1px solid rgba(255,102,0,.28);
  border-left: 4px solid var(--wc-orange); border-radius: 8px;
  padding: .85rem 1rem; margin: 1rem 0 0; font-size: .84rem; line-height: 1.6;
}
.wc-loc-reco__tva strong { display: block; color: var(--wc-marine); margin-bottom: .2rem; }

/* Ce que le candidat veut — posé après le comparatif, jamais avant */
.wc-loc-choix { border: 1px solid var(--wc-line); border-radius: var(--wc-radius); padding: 1.4rem; margin-top: 1.4rem; background: var(--wc-paper); }
.wc-loc-choix h2 { margin-bottom: .3rem; }
.wc-loc-choix > p { color: var(--wc-muted); font-size: .88rem; margin: 0 0 1rem; }
.wc-loc-choix__list { display: grid; gap: .6rem; }
.wc-loc-choix__btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--wc-line); border-radius: 10px;
  padding: .9rem 1.1rem; font-family: inherit; color: var(--wc-ink);
  transition: border-color .15s ease, background .15s ease;
}
.wc-loc-choix__btn:hover:not(:disabled) { border-color: var(--wc-teal); background: #fff; }
.wc-loc-choix__btn:focus-visible { outline: 2px solid var(--wc-teal); outline-offset: 2px; }
.wc-loc-choix__btn strong { display: block; color: var(--wc-marine); font-size: .96rem; }
.wc-loc-choix__btn span { display: block; color: var(--wc-muted); font-size: .84rem; margin-top: .1rem; }
.wc-loc-choix__btn:disabled { opacity: .45; cursor: default; }
.wc-loc-choix__btn.is-on { opacity: 1; border-color: var(--wc-teal); background: rgba(0,122,140,.07); }
.wc-loc-choix__rep {
  margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 8px;
  background: rgba(0,122,140,.08); border-left: 4px solid var(--wc-teal);
  font-size: .9rem; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { .wc-loc-choix__btn { transition: none; } }

/* Bloc conditionnel — s'ouvre selon une réponse précédente */
.wc-loc-form__cond {
  margin-top: 1rem; padding: 1rem 1.1rem;
  background: var(--wc-paper); border: 1px solid var(--wc-line);
  border-left: 3px solid var(--wc-teal); border-radius: 8px;
}
.wc-loc-form__cond[hidden] { display: none; }
.wc-loc-form__cond-t {
  margin: 0 0 .2rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--wc-teal);
}

/* Adresse et carte du bien loué */
.wc-loc__adresse { font-style: normal; margin: 0 0 .7rem; font-size: .95rem; }
.wc-loc__adresse strong { color: var(--wc-marine); }
.wc-loc__map { border: 1px solid var(--wc-line); border-radius: 10px; overflow: hidden; height: 230px; }
.wc-loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
