/* Styles propres à ce projet. Tout le reste vient de assets/css/site.css.
   Couleur du projet : le rouge SeLoger (#E30513), éclairci pour rester lisible sur le fond sombre. */
:root {
  --project-accent: #F5303C;
  --project-accent-soft: rgba(245, 48, 60, 0.16);
  --project-accent-on-light: #D7141F;
}

/* Téléphone vivant : la démo (demo-parcours/) à l'échelle, sans cadre de capture */
.step-live {
  position: relative;
  width: 240px;
  height: 507px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: #fff;
}
.step-live iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 760px;
  border: 0;
  transform: scale(0.6667);
  transform-origin: 0 0;
}

/* Hero : le parcours rejoué tout seul (demo-parcours/?auto), à la place des deux captures */
.hero-live { width: 300px; height: 633px; justify-self: center; }
.hero-live iframe { transform: scale(0.8333); }
@media (max-width: 720px) { .hero-live { width: 240px; height: 507px; } .hero-live iframe { transform: scale(0.6667); } }

/* Fond sombre teinté au rouge de SeLoger (Raph, 22/10). La partie papier garde ses couleurs. */
:root { --bg: #170A0C; --surface: #231214; --border: #311A1D; --border-strong: #402226; }

/* Signature SeLoger (Raph, 22/10) : l'annonce telle qu'elle sera publiée se remplit à chaque étape de la démo guidée.
   Grand écran : liste, téléphone, annonce. Mobile : une mini-annonce au-dessus du téléphone. Entre les deux : pas d'annonce. */
@media (min-width: 1100px) {
  .guided.sig-ad { --device-w: 270px; grid-template-columns: minmax(0, 280px) minmax(0, var(--device-w)) minmax(0, 1fr);
    grid-template-areas: ". device ad" "list device ad" "ctrl device ad" ". device ad"; column-gap: 44px; }
  .guided.sig-ad .guided-list p { font-size: 14px; }
}
.sig-ad .guided-ctrl button, .sig-ad .guided-count { white-space: nowrap; }
.sig-annonce { grid-area: ad; align-self: center; position: relative; font-family: "DM Sans", sans-serif; color: #1A1A1A; }
.sig-annonce-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.sig-annonce-label::before { content: ""; width: 22px; height: 1px; background: var(--border-strong); }
.sig-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sig-ph { position: relative; aspect-ratio: 16 / 9; background: #EFEFEF; overflow: hidden; }
.sig-ph .sig-full { position: absolute; inset: 0; }
.sig-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sig-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 500; }
.sig-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 4px 0; }
.sig-part.sig-thumbs.is-on > .sig-full { display: contents; }
.sig-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.sig-body { padding: 16px 18px 18px; }
.guided .sig-title { color: #1A1A1A; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.sig-sub { margin: 3px 0 0; font-size: 14px; color: #555; }
.sig-gap { margin-top: 12px; }
.sig-price { margin: 0; font-size: 14px; color: #1A1A1A; }
.sig-price b { font-size: 22px; font-weight: 700; }
.sig-price small { display: block; margin-top: 2px; font-size: 12.5px; color: #555; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.sig-chips li { padding: 4px 10px; border-radius: 999px; background: #F3F3F3; font-size: 12.5px; }
.sig-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.5; color: #333; }
.sig-owner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EEE; font-size: 13.5px; }
.sig-owner b { display: block; font-size: 14px; }
.sig-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #E7F6EC; color: #11713A; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sig-badge svg { width: 14px; height: 14px; }
/* Parties pas encore remplies : barres grises */
.sig-sk { display: block; height: 10px; border-radius: 5px; background: #EDEDED; }
.sig-sk + .sig-sk { margin-top: 7px; }
.sig-sk--title { width: 70%; height: 14px; }
.sig-sk--sub { width: 45%; }
.sig-sk + .sig-sk--sub { margin-top: 9px; }
.sig-sk--price { width: 38%; height: 16px; }
.sig-sk--92 { width: 92%; }
.sig-sk--60 { width: 60%; }
.sig-sk--badge { width: 110px; height: 22px; border-radius: 999px; }
.sig-part { position: relative; }
.sig-part > .sig-full { display: none; }
.sig-part.is-on > .sig-full { display: block; }
.sig-part.is-on > .sig-empty { display: none; }
.sig-part.is-new > .sig-full { animation: sigIn .7s cubic-bezier(.23, 1, .32, 1) both; }
.sig-part.is-new::after { content: ""; position: absolute; inset: -6px -8px; border-radius: 10px; box-shadow: 0 0 0 2px #E30513; opacity: 0; animation: sigRing 1.6s ease-out both; pointer-events: none; }
.sig-ph.sig-part.is-new::after { inset: 0; border-radius: 0; }
@keyframes sigIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sigRing { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.sig-empty-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #B5B5B5; }
.sig-empty-ph svg { width: 40px; height: 40px; }
.sig-status { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); }
.sig-status b { color: var(--text-strong); font-weight: 600; }
/* Sans JavaScript, l'annonce ne se remplit pas : on ne la montre pas */
html:not(.js) .sig-annonce { display: none; }
/* Moins de 1100 px : pas d'annonce (Raph 22/10 : sur mobile elle ne fonctionnait pas, à côté des étapes elle se lisait comme une carte cassée) */
@media (max-width: 1099px) { .sig-annonce { display: none; } }
/* Bloc fixe (data-guided-scroll, 22/10) : l'annonce complète doit tenir dans la hauteur de l'écran.
   Photo plus basse, description sur 2 lignes ; écrans peu hauts : sans vignettes, puis sans description et un peu plus petite. */
@media (min-width: 1100px) {
  .guided--scroll.sig-ad { padding-top: 28px; padding-bottom: 28px; }
  .guided--scroll .sig-annonce { width: 100%; max-width: 360px; justify-self: start; }
  .guided--scroll .sig-ph { aspect-ratio: 2 / 1; }
  .guided--scroll .sig-thumbs img { aspect-ratio: 16 / 9; }
  .guided--scroll .sig-body { padding: 14px 16px 16px; }
  .guided--scroll .sig-desc { -webkit-line-clamp: 2; }
}
@media (min-width: 1100px) and (max-height: 940px) { .guided--scroll .sig-thumbs { display: none; } }
@media (min-width: 1100px) and (max-height: 800px) {
  .guided--scroll .sig-annonce .sig-part[data-from="description"] { display: none; }
  .guided--scroll .sig-annonce { zoom: .86; }
}
