/* Préversion « Sites vitrines par Arthur » : styles propres aux pages Artisans, Paysagistes, Couvreurs et à leurs démos.
   Se charge après offre-base.css (pages d’offre) ou demo-base.css (démos). */

/* ---------- Navigation de l’aperçu privé ---------- */
.apercu{background:var(--paper-2);border-bottom:1px solid var(--line);font-size:.82rem}
.apercu .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1rem;padding:.45rem 0}
.apercu span{color:var(--ink-soft)}
.apercu a{color:var(--ink);text-underline-offset:.2em}
.apercu a[aria-current="page"]{font-weight:700;text-decoration:none}

/* ---------- Premier écran ---------- */
.photo-landing .hero{align-items:center;padding-block:clamp(1.1rem,3.5vw,3.4rem) var(--section-space)}
.photo-landing h1{max-width:14ch;text-wrap:balance;margin-bottom:.7rem}
.photo-landing .lead{color:var(--ink);font-size:clamp(1.06rem,1.5vw,1.22rem);max-width:30ch;margin-bottom:.8rem}
.photo-landing .prix-court{color:var(--ink-soft);margin-bottom:1rem}
.photo-landing .prix-court strong{color:var(--ink)}
.photo-landing .hero .btn{font-size:1rem;padding:.85rem 1.4rem}
.photo-landing .phone{--pos:30}
.photo-landing .viewport iframe{width:100%;height:100%;transform:none}
@media (min-width:1000px){.photo-landing .compare-block{--phone-width:330px}}
.photo-landing .compare-top span:last-child{color:var(--ink);font-weight:650}
.photo-landing .caption a{color:var(--conifer);font-weight:600;text-underline-offset:.2em}

/* ---------- Galerie métier : une ouverture, deux vues complémentaires ---------- */
.section-intro{margin:-.35rem 0 1.25rem;color:var(--ink-soft);max-width:58ch}
.mosaique{display:grid;gap:.6rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.mosaique figure{position:relative;margin:0;min-width:0}
.mosaique img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:var(--paper-2,var(--doux))}
.mosaique .m-ouverture{grid-column:1/-1}
.mosaique .m-ouverture img{aspect-ratio:16/10}
.mosaique-1 figure{grid-column:1/-1}

/* ---------- Avant/après d’un chantier (photo double, à ne pas confondre avec le comparateur de site) ---------- */
.avant-apres{margin:1.5rem 0 0}
.aa-titre{margin:0 0 .5rem;font-weight:650;font-size:.98rem}
.aa-cadre{position:relative}
.aa-cadre img{display:block;width:100%;height:auto;border-radius:8px;background:var(--paper-2,var(--doux))}
.aa-tag{position:absolute;bottom:.55rem;padding:.12rem .5rem;border-radius:4px;background:#fbfaf7;color:#262a24;font-size:.75rem;font-weight:700;line-height:1.5;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.aa-avant{left:.55rem}
.aa-apres{left:calc(50% + .55rem)}
.aa-11 .aa-apres{left:calc(50.6% + .55rem)}
.aa-18 img{clip-path:inset(2% 1.3% round 6px)}
.aa-18 .aa-avant,.aa-18 .aa-apres{bottom:calc(2% + .55rem)}
.aa-18 .aa-avant{left:calc(1.3% + .55rem)}
.aa-18 .aa-apres{left:calc(52.8% + .55rem)}

/* ---------- Offre ---------- */
.demo-gratuite{margin:.85rem 0 0;font-weight:650;color:var(--conifer)}

/* ---------- Demande de démo (désactivée dans l’aperçu) ---------- */
.photo-landing .contact-field input:disabled{opacity:.8;cursor:not-allowed}
.photo-landing #demande .btn:disabled{opacity:.72;cursor:not-allowed;text-decoration:none}
.contact-apercu{margin:.8rem 0 0;font-size:.88rem;color:var(--contact-soft)}

/* ---------- Cadrages des photos ---------- */
[data-photo="2"]{object-position:42% 45%}
[data-photo="3"]{object-position:62% 56%}
[data-photo="4"]{object-position:50% 52%}
[data-photo="5"]{object-position:56% 46%}
[data-photo="7"]{object-position:50% 62%}
[data-photo="8"]{object-position:44% 50%}
[data-photo="12"]{object-position:50% 62%}
[data-photo="13"]{object-position:38% 62%}
[data-photo="15"]{object-position:54% 62%}
[data-photo="16"]{object-position:50% 58%}
[data-photo="17"]{object-position:42% 55%}
[data-photo="19"]{object-position:50% 42%}
[data-photo="20"]{object-position:58% 40%}
[data-photo="22"]{object-position:50% 46%}
[data-photo="23"]{object-position:56% 48%}
[data-photo="24"]{object-position:52% 56%}
[data-photo="25"]{object-position:50% 40%}
[data-photo="26"]{object-position:57% 57%}

/* ---------- Démos fictives ---------- */
.demo{padding-bottom:0}
.demo[data-secteur="artisans"]{--fond:#f7f1e8;--encre:#30271f;--accent:#684f36;--doux:#e8dccb;--bouton:#edc78d}
.demo[data-secteur="couvreurs"]{--fond:#eef3f6;--encre:#233342;--accent:#324f63;--doux:#d8e3ea;--bouton:#edcb82}
.demo-retour{margin:0;padding:10px 16px;background:var(--doux);font-size:13px;font-weight:700}
.demo-retour a{text-underline-offset:.18em}
.demo header{flex-wrap:wrap;row-gap:6px}
.demo header nav{flex-basis:100%}
.demo-fictif{font-size:11px;font-weight:600;line-height:1.4;padding:2px 8px;border-radius:999px;border:1px solid var(--doux);color:var(--encre);opacity:.8}
.demo .hero-visuel img{aspect-ratio:3/2;max-height:none;object-fit:cover}
.demo .hero-txt{padding:18px 16px 10px}
.demo .zone{margin:12px 0 0;font-size:14px;opacity:.85}
.demo .liste{grid-template-columns:repeat(2,minmax(0,1fr))}
.demo .mosaique{gap:8px}
.demo .mosaique img{border-radius:6px}
.demo .avant-apres{margin-top:14px}
.demo .aa-titre{font-size:15px}
.demo .formulaire{grid-template-columns:minmax(0,1fr)}
.demo .formulaire input,.demo .formulaire select,.demo .formulaire textarea{min-width:0;max-width:100%}
.demo .formulaire .btn{justify-self:start;margin-top:6px;font:inherit;font-weight:700;cursor:not-allowed}
.demo .neutre{margin-top:10px;font-weight:500;opacity:.8}
.demo footer{padding:18px 16px 24px}

/* La démo intégrée se met en page à la largeur réelle du téléphone. */
.demo-integree header{gap:5px;padding:8px 11px}
.demo-integree header nav{gap:8px;font-size:11px}
.demo-integree .marque{font-size:13px}
.demo-integree .demo-fictif{font-size:9px}
.demo-integree .hero-txt{padding:12px 11px 8px}
.demo-integree .hero-txt h1{font-size:clamp(18px,6.8vw,24px)}
.demo-integree .hero-txt .sous{font-size:12px;margin-bottom:9px}
.demo-integree .hero-txt .btn{font-size:11px;padding:6px 9px}
.demo-integree .hero-txt .zone{font-size:10px;margin-top:8px}
.demo-integree .bloc{padding:10px 11px}
.demo-integree .bloc h2{font-size:15px}
.demo-integree .bloc li,.demo-integree footer{font-size:11px}

@media (max-width:479px){
  .apercu span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .photo-landing .hero{gap:1.15rem;padding-top:1rem}
  .photo-landing .hero .actions .btn{display:block;width:100%}
  .photo-landing .compare-block{--phone-width:250px}
}

@media (min-width:720px){
  .demo header{padding:14px max(24px,calc((100% - 1000px) / 2))}
  .demo header nav{flex-basis:auto;margin-left:auto}
  .demo main,.demo footer{max-width:1000px}
  .demo .hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:stretch;margin:24px 24px 8px;border:1px solid var(--doux);border-radius:14px;overflow:hidden;background:#fff}
  .demo .hero-visuel{height:100%}
  .demo .hero-visuel img{height:100%;min-height:320px}
  .demo .hero-txt{align-self:center;padding:28px 30px}
  .demo .hero-txt h1{font-size:clamp(2rem,3.6vw,2.8rem)}
  .demo .bloc{padding-inline:24px}
  .demo .liste{grid-template-columns:repeat(4,minmax(0,1fr))}
  .demo .formulaire{max-width:560px}
}

@media (min-width:760px){
  .photo-landing .hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
  .mosaique{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-template-rows:repeat(2,auto);gap:.8rem}
  .mosaique .m-ouverture{grid-column:1;grid-row:1/span 2}
  .mosaique .m-ouverture img{aspect-ratio:auto;min-height:100%}
  .mosaique-1 figure{grid-row:auto}
  .mosaique-1 .m-ouverture img{aspect-ratio:16/9}
  .avant-apres{max-width:640px}
}
