/* assets/v15-layout.css — Y&R Multiservice, refonte V15 (22/08/2026), basée sur les captures
   de référence fournies. Réutilise au maximum l'existant (.check-list, .filter, .card, .btn) ;
   ne contient que les composants réellement nouveaux. Variables --yr-* uniquement, aucun bleu. */

/* --- Bandeau de réassurance (clair), sous le hero --- */
.reassur-strip{background:#fff;border-bottom:1px solid var(--yr-line)}
.reassur-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.reassur-item{display:flex;align-items:center;gap:12px;padding:22px 18px;border-right:1px solid var(--yr-line)}
.reassur-item:last-child{border-right:0}
.reassur-icon{width:38px;height:38px;flex:0 0 auto;border-radius:8px;background:#fff1ea;color:var(--yr-orange);
  display:grid;place-items:center;font-size:1.05rem}
.reassur-item b{display:block;font-size:.86rem}
@media(max-width:767px){.reassur-grid{grid-template-columns:1fr 1fr}.reassur-item{border-right:0;border-bottom:1px solid var(--yr-line);padding:16px 10px}}

/* --- Sous-nav et pastilles (page Services) --- */
.svc-subnav{display:flex;gap:28px;padding:16px 0;border-top:1px solid #232323;flex-wrap:wrap}
.svc-subnav a{color:#ccc;font-size:.8rem;font-weight:700;text-decoration:none}
.svc-subnav a:hover{color:var(--yr-orange)}
.pill-row{display:flex;flex-wrap:wrap;gap:10px}
.pill-row .filter{text-decoration:none;display:inline-block}

/* --- Carte service avec photo (accueil) --- */
.svc-card-v2{background:#fff;border:1px solid var(--yr-line);border-radius:10px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(0,0,0,.025)}
.svc-card-v2-media{aspect-ratio:4/3;overflow:hidden;background:#eee}
.svc-card-v2-media img{width:100%;height:100%;object-fit:cover;display:block}
.svc-card-v2-body{padding:20px;display:flex;flex-direction:column;flex:1}
.svc-card-v2-body .check-list{margin:10px 0 16px;flex:1}
.svc-card-v2-body .check-list li{font-size:.82rem;padding:5px 0 5px 26px}
.svc-card-v2-body .check-list li:before{width:16px;height:16px;font-size:.6rem}

/* --- Comment ça marche : 3 étapes numérotées --- */
.how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.how-step{text-align:center}
.how-step-badge{position:relative;width:56px;height:56px;margin:0 auto 16px;border-radius:10px;
  background:var(--yr-orange);color:#fff;display:grid;place-items:center;font-size:1.3rem}
.how-step-badge span{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;
  background:var(--yr-ink);color:#fff;font-size:.7rem;font-weight:800;display:grid;place-items:center}
.how-step h3{font-size:1rem;margin-bottom:6px}
.how-step p{font-size:.85rem;color:var(--yr-muted)}
@media(max-width:767px){.how-steps{grid-template-columns:1fr;gap:30px}}

/* --- Cartes Maintenance (icônes), variantes claire/sombre --- */
.maint-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.maint-card{border-radius:10px;padding:22px}
.maint-card .maint-icon{width:42px;height:42px;border-radius:8px;background:#fff1ea;color:var(--yr-orange);
  display:grid;place-items:center;font-size:1.15rem;margin-bottom:14px}
.maint-card h3{font-size:.98rem;margin-bottom:4px}
.maint-card p{font-size:.82rem;color:var(--yr-muted)}
.maint-card.light{background:#fff;border:1px solid var(--yr-line)}
.maint-card.dark{background:#151515;border:1px solid #2a2a2a}
.maint-card.dark h3{color:#fff}
.maint-card.dark p{color:#aaa}
.maint-card.dark .maint-icon{background:rgba(255,255,255,.08)}
@media(max-width:767px){.maint-grid{grid-template-columns:1fr 1fr;gap:12px}.maint-card{padding:16px}}
@media(max-width:430px){.maint-grid{grid-template-columns:1fr}}

/* --- Section « Disponible 24h/24 » (Maintenance) --- */
.avail-block{text-align:center;padding:56px 0;background:var(--yr-soft)}
.avail-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:50%;border:2px solid var(--yr-orange);
  color:var(--yr-orange);display:grid;place-items:center;font-size:1.4rem}

/* --- Slider Avant/Après (Réalisations) --- */
.ba-card{border-radius:10px;overflow:hidden;border:1px solid var(--yr-line);background:#fff}
.ba-slider{position:relative;aspect-ratio:4/3;overflow:hidden;background:#111;touch-action:pan-y}
.ba-slider img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;user-select:none}
.ba-slider .ba-before{clip-path:inset(0 50% 0 0)}
.ba-slider .ba-handle{position:absolute;top:0;bottom:0;left:50%;width:0;transform:translateX(-50%);pointer-events:none}
.ba-slider .ba-handle:before{content:"";position:absolute;top:0;bottom:0;left:0;width:3px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
.ba-slider .ba-handle .ba-grip{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);width:38px;height:38px;
  border-radius:50%;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.3);display:grid;place-items:center;
  font-size:.8rem;color:var(--yr-ink);pointer-events:auto;cursor:ew-resize}
.ba-slider .ba-tag{position:absolute;top:10px;z-index:2;font-size:.62rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.04em;padding:4px 9px;border-radius:3px;color:#fff}
.ba-slider .ba-tag.ba-tag-before{left:10px;background:#111}
.ba-slider .ba-tag.ba-tag-after{right:10px;background:var(--yr-orange)}
.ba-card.ba-single .ba-slider .ba-handle,.ba-card.ba-single .ba-tag-before{display:none}
.ba-card.ba-single .ba-before{clip-path:none}
.ba-card-body{padding:16px 18px}
.ba-card-body .portfolio-status{display:inline-block;margin-top:6px}
.ba-note{font-size:.72rem;color:var(--yr-muted);margin-top:4px}

/* --- Simulateur de tarif --- */
.price-sim{background:#fff;border:1px solid var(--yr-line);border-radius:12px;padding:28px;max-width:760px;margin:0 auto}
.price-sim-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.price-sim label{display:block;font-size:.78rem;font-weight:700;margin-bottom:6px}
.price-sim select,.price-sim input[type="number"]{width:100%;padding:10px 12px;border:1.5px solid var(--yr-line);
  border-radius:6px;font:inherit;font-size:.88rem}
.price-sim-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.price-sim-options label{display:flex;align-items:center;gap:6px;font-weight:400;font-size:.8rem;
  border:1px solid var(--yr-line);border-radius:20px;padding:6px 12px;cursor:pointer}
.price-sim-options input{width:auto}
.price-sim-result{margin-top:22px;padding:18px;border-radius:8px;background:var(--yr-soft);text-align:center}
.price-sim-result .amount{font-size:1.7rem;font-weight:900;color:var(--yr-orange)}
.price-sim-result .amount small{font-size:.9rem;color:var(--yr-ink);font-weight:700}
.price-sim-breakdown{display:flex;flex-direction:column;gap:6px;text-align:left;max-width:320px;margin:0 auto}
.price-sim-line{display:flex;justify-content:space-between;align-items:baseline;font-size:.85rem;color:var(--yr-ink)}
.price-sim-line strong{font-weight:700}
.price-sim-line-total{border-top:1.5px solid var(--yr-line);margin-top:4px;padding-top:8px;font-size:1.05rem}
.price-sim-line-total strong{color:var(--yr-orange);font-size:1.3rem;font-weight:900}
.price-sim-disclaimer{font-size:.72rem;color:var(--yr-muted);margin-top:10px;text-align:center}
.price-sim-cta{display:flex;justify-content:center;margin-top:16px}
.price-sim-error{color:#b3261e;font-size:.78rem;margin-top:6px;display:none}
.price-sim-error.show{display:block}
@media(max-width:640px){.price-sim{padding:20px}.price-sim-grid{grid-template-columns:1fr}}

/* --- Carte de France / zone d'intervention --- */
.zone-map-wrap{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.zone-map-svg{max-width:100%;height:auto}
.zone-map-svg .fr-region{fill:#eceae7;stroke:#d8d5d0;stroke-width:1.5;stroke-linejoin:round}
.zone-map-svg .fr-idf{fill:var(--yr-orange);stroke:#fff;stroke-width:3}
.zone-map-svg .fr-idf-label{font-size:13px;font-weight:800;fill:var(--yr-ink)}
.zone-map-svg .fr-idf-sub{font-size:10px;font-weight:500;fill:var(--yr-muted)}
.zone-city-list{list-style:none;margin:16px 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.zone-city-list li{font-size:.88rem;font-weight:700;display:flex;align-items:center;gap:8px}
.zone-city-list li:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--yr-orange)}
@media(max-width:900px){.zone-map-wrap{grid-template-columns:1fr}}

/* --- Menu mobile : Appeler / WhatsApp secondaires sous le CTA Devis --- */
.mobile-quick .mobile-secondary{grid-column:1/-1;display:flex;gap:8px;margin-top:0}
.mobile-quick .mobile-secondary a{flex:1;text-align:center;padding:9px 6px;border-radius:4px;font-size:.72rem;
  font-weight:700;border:1px solid var(--yr-line);color:var(--yr-ink)!important;background:#fff!important}

@media (prefers-reduced-motion: reduce){
  .ba-slider .ba-handle,.ba-slider .ba-before{transition:none}
}

/* --- Correctif mobile V15.1 : un seul accès WhatsApp sur mobile (barre fixe
   Appeler|WhatsApp|Devis) — le bouton flottant vert issu du hero (.whatsapp-float,
   position:fixed sous 767px via maquette-v9.css) est désactivé UNIQUEMENT sous
   767px. Le bouton noir de l'assistant (.yr-assist-launcher) reste inchangé, sa
   marge mobile (bottom:76px) dégage déjà la barre fixe (58px de haut). Desktop
   non impacté : aucune règle ci-dessous n'est active au-delà de 767px. --- */
@media(max-width:767px){.whatsapp-float{display:none!important}}

/* --- Barre fixe mobile Appeler|WhatsApp|Devis : icônes SVG au-dessus du
   libellé (au lieu de l'emoji ☎ seul devant "Appeler"). Fonds/liens/hrefs
   inchangés — .mobile-bar a:last-child (Devis) garde le fond orange, les
   deux premiers gardent le fond noir hérité de .mobile-bar. Ajout d'un
   padding-bottom safe-area sur la barre elle-même pour les iPhone à
   encoche/Dynamic Island : le dégagement du bouton assistant (76px, cf.
   assistant-guide.css) inclut déjà le même terme env(safe-area-inset-bottom)
   des deux côtés, l'écart de 18px entre les deux reste donc constant quel
   que soit l'appareil — aucun chevauchement, sur 320px/390px comme ailleurs. --- */
@media(max-width:767px){
  .mobile-bar{padding-bottom:env(safe-area-inset-bottom)}
  .mobile-bar a{flex-direction:column;gap:3px}
  .mobile-bar-icon{width:20px;height:20px;flex:0 0 auto;fill:currentColor}
}

/* --- Correctif chevauchement 641-767px : .mobile-bar est affichée sur toute
   la plage ≤767px (cf. ceo-v6.css), mais assistant-guide.css ne relevait le
   bouton assistant (bottom:76px+safe-area) qu'en dessous de 640px — entre
   641 et 767px il retombait sur son bottom desktop (20px+safe-area, plus
   petit que la barre), d'où un chevauchement latent. Cette règle, chargée
   après assistant-guide.css, étend le même bottom:76px+safe-area à toute la
   plage ≤767px (seule la propriété bottom est reprise ici — right/width/
   height de la version ≤640px restent gérés par assistant-guide.css, non
   modifiés). Écart constant de 18px au-dessus de la barre sur 320-767px. --- */
@media(max-width:767px){.yr-assist-launcher{bottom:calc(76px + env(safe-area-inset-bottom))}}

/* --- Contenu juridique (mentions légales / politique confidentialité / CGV) --- */
.legal-content{max-width:820px;margin:0 auto}
.legal-content h2{font-size:1.5rem;margin-top:46px}
.legal-content h2:first-child{margin-top:0}
.legal-content h3{font-size:1rem;margin-top:26px}
.legal-content ul,.legal-content ol{margin:0 0 18px;padding-left:22px}
.legal-content li{margin-bottom:8px}
.legal-table-wrap{overflow-x:auto;margin:0 0 24px}
.legal-table{width:100%;border-collapse:collapse;font-size:.85rem}
.legal-table th,.legal-table td{border:1px solid var(--yr-line);padding:10px 14px;text-align:left;vertical-align:top}
.legal-table th{background:var(--yr-soft);font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--yr-muted);font-weight:800}
.legal-note{background:var(--yr-soft);border-left:3px solid var(--yr-orange);padding:16px 20px;border-radius:4px;margin:20px 0}
.legal-note strong{display:block;margin-bottom:6px}
