/* RSVOLT Électricité — feuille de style (par-dessus Bootstrap 5.1.1) */
:root {
  --rs-red: #d10f12;
  --rs-red-dark: #a80b0d;
  --rs-ink: #15181c;
  --rs-ink-2: #262b32;
  --rs-muted: #5a6370;
  --rs-line: #e3e6ea;
  --rs-soft: #f4f5f7;
  --rs-radius: 14px;
  --rs-shadow: 0 8px 28px rgba(21, 24, 28, .09);
  --bs-primary: var(--rs-red);
  --bs-primary-rgb: 209, 15, 18;
}
html { scroll-padding-top: 84px; }
body { color: var(--rs-ink); font-size: 1.04rem; line-height: 1.65; background: #fff; padding-bottom: 0; }
h1, h2, h3, h4 { color: var(--rs-ink); line-height: 1.18; letter-spacing: -.01em; }
a { color: var(--rs-red); }
a:hover { color: var(--rs-red-dark); }
img { max-width: 100%; height: auto; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 3000; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }

/* Boutons */
.btn { border-radius: 10px; font-weight: 650; padding: .72rem 1.35rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-rs { background: var(--rs-red); border-color: var(--rs-red); color: #fff; }
.btn-rs:hover, .btn-rs:focus { background: var(--rs-red-dark); border-color: var(--rs-red-dark); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--rs-ink); }
.btn-outline-ink { border: 2px solid var(--rs-ink); color: var(--rs-ink); background: transparent; }
.btn-outline-ink:hover { background: var(--rs-ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; vertical-align: -.17em; margin-right: .45rem; }

/* Barre supérieure + navigation */
.topbar { background: var(--rs-ink); color: #e9ecef; font-size: .9rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffd5d5; }
.topbar .sep { opacity: .35; margin: 0 .7rem; }
.site-nav { background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rs-line); position: sticky; top: 0; z-index: 1030; }
.site-nav .navbar-brand img { height: 38px; width: auto; display: block; }
.site-nav .nav-link { color: var(--rs-ink); font-weight: 600; padding: .6rem .9rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--rs-red); }
.dropdown-menu { border: 0; box-shadow: var(--rs-shadow); border-radius: 12px; padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-weight: 500; }
.dropdown-item:hover { background: var(--rs-soft); color: var(--rs-red); }

/* Héros */
.hero { position: relative; background: var(--rs-ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 24, 28, .96) 0%, rgba(21, 24, 28, .86) 46%, rgba(21, 24, 28, .35) 100%); z-index: -1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
.hero .lead { color: #e5e8ec; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; }
.hero .eyebrow { color: #ff8a8c; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750; color: var(--rs-red); display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 0; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .32rem .85rem; font-size: .88rem; color: #f1f3f5; }
.page-hero { background: var(--rs-ink); color: #fff; padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 24, 28, .97), rgba(21, 24, 28, .78)); z-index: -1; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; }
.page-hero p { color: #e1e5ea; max-width: 40rem; font-size: 1.12rem; }
.breadcrumb { --bs-breadcrumb-divider-color: #9aa3ae; font-size: .88rem; }
.breadcrumb a { color: #ffb3b4; text-decoration: none; }
.breadcrumb-item.active { color: #cfd5dc; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--rs-soft); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: .5rem 0 .8rem; }
.section-intro { color: var(--rs-muted); max-width: 40rem; font-size: 1.1rem; }

/* Cartes services */
.svc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); border-color: #d0d5db; color: inherit; }
.svc-card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--rs-soft); }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .ph img { transform: scale(1.04); }
.svc-card .body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: .4rem; }
.svc-card p { color: var(--rs-muted); font-size: .97rem; margin-bottom: .9rem; }
.svc-card .more { margin-top: auto; color: var(--rs-red); font-weight: 700; font-size: .95rem; }
.svc-card .more::after { content: " →"; }
.svc-cta { background: var(--rs-ink); color: #fff; justify-content: center; padding: 2rem 1.6rem; }
.svc-cta h3 { color: #fff; }
.svc-cta p { color: #cfd5dc; }

/* Points forts / étapes */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .ico { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #fdeaea; color: var(--rs-red); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; font-weight: 750; margin: 0 0 .2rem; }
.feature p { margin: 0; color: var(--rs-muted); font-size: .98rem; }
.step { position: relative; background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 1.5rem 1.4rem; height: 100%; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--rs-red); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: .9rem; }
.step h3 { font-size: 1.1rem; font-weight: 750; }
.step p { color: var(--rs-muted); margin: 0; font-size: .97rem; }

/* Galerie */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gal button { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--rs-soft); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gal button.tall { grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.gal button:hover img { transform: scale(1.05); }
.gal span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-weight: 650; font-size: .95rem; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
@media (max-width: 991px) { .gal { grid-template-columns: repeat(2, 1fr); } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 12, 14, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; display: block; margin: 0 auto; }
dialog.lightbox .cap { color: #fff; text-align: center; padding: .6rem; font-weight: 600; }
dialog.lightbox .x { position: absolute; top: -4px; right: -4px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* Zone / carte */
.zone-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-list li { background: #fff; border: 1px solid var(--rs-line); border-radius: 999px; padding: .3rem .95rem; font-weight: 600; font-size: .95rem; }
.map-box { position: relative; aspect-ratio: 4 / 3; background: var(--rs-soft); border-radius: var(--rs-radius); overflow: hidden; border: 1px solid var(--rs-line); display: grid; place-items: center; text-align: center; padding: 1.2rem; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box p { color: var(--rs-muted); font-size: .88rem; max-width: 24rem; }

/* Formulaire */
.form-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; box-shadow: var(--rs-shadow); padding: 1.8rem; }
.form-label { font-weight: 650; font-size: .93rem; margin-bottom: .25rem; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; border-color: #cfd5dc; }
.form-control:focus, .form-select:focus { border-color: var(--rs-red); box-shadow: 0 0 0 .2rem rgba(209, 15, 18, .15); }
.req { color: var(--rs-red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: .9rem 1rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e7f6ec; color: #145c2e; }
.form-msg.err { display: block; background: #fdeaea; color: #8a1013; }
.contact-info dt { font-weight: 700; color: var(--rs-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 1rem; }
.contact-info dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.contact-info a { text-decoration: none; }
.mascot { max-height: 230px; width: auto; }

/* FAQ */
.accordion-button { font-weight: 700; color: var(--rs-ink); }
.accordion-button:not(.collapsed) { background: #fdeeee; color: var(--rs-red-dark); box-shadow: none; }
.accordion-item { border-color: var(--rs-line); }

/* Pages de service */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px solid var(--rs-line); }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: .85rem; width: 1rem; height: .55rem; border-left: 3px solid var(--rs-red); border-bottom: 3px solid var(--rs-red); transform: rotate(-45deg) scale(.9); }
.note { background: #fff8e6; border-left: 4px solid #f2b705; border-radius: 8px; padding: 1rem 1.2rem; }
.note.danger { background: #fdeaea; border-color: var(--rs-red); }
.side-card { background: var(--rs-soft); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 1.5rem; position: sticky; top: 96px; }
.prose h2 { font-size: 1.5rem; font-weight: 780; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; font-weight: 750; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { max-width: 46rem; }
.related a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--rs-line); text-decoration: none; font-weight: 600; color: var(--rs-ink); }
.related a:hover { color: var(--rs-red); }
.banner-cta { background: var(--rs-red); color: #fff; }
.banner-cta h2 { color: #fff; }

/* Pied de page */
.site-footer { background: var(--rs-ink); color: #c9cfd6; padding: 3.4rem 0 1.6rem; font-size: .96rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .9rem; }
.site-footer a { color: #e9ecef; text-decoration: none; }
.site-footer a:hover { color: #ff9a9c; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .logo { height: 38px; width: auto; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); margin-right: .4rem; }
.social a:hover { background: var(--rs-red); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.legal-line { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.2rem; font-size: .86rem; color: #9aa3ae; }
.legal-line a { color: #cfd5dc; }
.btn-link-plain { background: none; border: 0; padding: 0; color: #e9ecef; text-decoration: none; font: inherit; }
.btn-link-plain:hover { color: #ff9a9c; }

/* Barre d'appel mobile */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: none; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rs-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .1); }
.callbar .btn { flex: 1; padding: .7rem .5rem; }
@media (max-width: 767px) { .callbar { display: flex; } body { padding-bottom: 68px; } }

/* Bandeau cookies */
.cookie { position: fixed; z-index: 1060; left: 12px; right: 12px; bottom: 12px; max-width: 620px; background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); padding: 1.1rem 1.2rem; display: none; }
.cookie.show { display: block; }
.cookie p { font-size: .93rem; margin-bottom: .8rem; }
@media (max-width: 767px) { .cookie { bottom: 78px; } }
@media (min-width: 768px) { .cookie { left: 20px; bottom: 20px; right: auto; } }

@media (max-width: 575px) {
  .section { padding: 3rem 0; }
  .form-card { padding: 1.2rem; }
  .gal { gap: .5rem; }
}
@media print { .topbar, .site-nav, .callbar, .cookie, .site-footer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 575px) {
  .site-nav .navbar-brand { margin-right: .5rem; }
  .site-nav .navbar-brand img { height: 26px; }
  .site-footer .logo { height: 30px; }
}
.site-nav.navbar-light .navbar-nav .nav-link { color: var(--rs-ink); }
.site-nav.navbar-light .navbar-nav .nav-link:hover, .site-nav.navbar-light .navbar-nav .nav-link.active, .site-nav.navbar-light .navbar-nav .nav-link.show { color: var(--rs-red); }
.site-nav .btn-rs, .site-nav .btn-rs:hover { color: #fff; }

/* Avis clients */
.stars { display: flex; gap: 2px; color: #f5b301; margin-bottom: .6rem; }
.stars svg { width: 24px; height: 24px; fill: currentColor; }
.review { background: var(--rs-soft); border: 1px solid var(--rs-line); border-radius: 18px; padding: 1.8rem 2rem; }
.review blockquote { font-size: 1.3rem; font-weight: 600; line-height: 1.45; margin: 0 0 1rem; color: var(--rs-ink); }
.review figcaption { color: var(--rs-muted); font-size: .92rem; }

/* ---------- Réalisations, blog « Électricité », vidéos ---------- */
.rmeta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-size: .85rem; color: var(--rs-muted); margin-bottom: .5rem; }
.rstat { font-weight: 750; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .55rem; border-radius: 999px; background: #e8eaed; color: #3b434d; }
.rstat.on { background: #fff1d6; color: #8a5a00; }
.rstat.ok { background: #fdeaea; color: var(--rs-red-dark); }
.rcard { background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.rcard .gal { grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: .35rem .35rem 0; }
.rcard .gal button { aspect-ratio: 1; border-radius: 8px; }
.rcard .gal button.cover { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 10px; }
.rcard .nb { position: absolute; right: .6rem; bottom: .6rem; left: auto; top: auto; padding: .2rem .6rem; border-radius: 999px; background: rgba(21, 24, 28, .78); color: #fff; font-size: .8rem; font-weight: 650; }
.rcard .rbody { padding: 1rem 1.2rem 1.3rem; }
.rtitle { font-size: 1.25rem; font-weight: 780; margin: 0 0 .4rem; }
.rtext { color: #38404a; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chipf { display: inline-block; padding: .35rem .95rem; border-radius: 999px; border: 1px solid var(--rs-line); background: #fff; color: var(--rs-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chipf:hover { border-color: var(--rs-red); color: var(--rs-red); }
.chipf.on { background: var(--rs-red); border-color: var(--rs-red); color: #fff; }
.acard .noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; color: #fff; background: linear-gradient(135deg, #15181c, #3a1011); }
.acard h2.h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: .4rem; }
.art-cover { width: 100%; height: auto; border-radius: var(--rs-radius); margin-bottom: 1.5rem; }
.art-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.art-body blockquote { border-left: 4px solid var(--rs-line); margin: 1.2rem 0; padding: .2rem 1rem; color: #3b434d; font-style: italic; }
.art-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.art-body th, .art-body td { border: 1px solid var(--rs-line); padding: .45rem .7rem; text-align: left; }
.art-body th { background: var(--rs-soft); }
.art-body .note { margin: 1.2rem 0; }
.rs-video { position: relative; margin: 1.5rem 0; aspect-ratio: 16 / 9; background: #15181c; border-radius: var(--rs-radius); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #cfd5dc; text-align: center; padding: 1rem; }
.rs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-video-btn { background: var(--rs-red); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.rs-video-btn:hover { background: var(--rs-red-dark); }
.rs-video small { max-width: 26rem; }
.home-feed .rcard .gal { display: block; }

/* ---------- Avant / après et séries de photos ---------- */
.rrub { font-weight: 700; font-size: .78rem; color: var(--rs-red-dark); text-decoration: none; border: 1px solid #f1c3c4; border-radius: 999px; padding: .08rem .6rem; }
.rrub:hover { background: #fdeaea; color: var(--rs-red-dark); }
.ba { position: relative; overflow: hidden; background: var(--rs-soft); margin: .35rem .35rem 0; border-radius: 10px; width: auto; touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .5); pointer-events: none; }
.ba-line span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.ba-line span::before, .ba-line span::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ba-line span::before { left: 5px; border-right-color: var(--rs-ink); }
.ba-line span::after { right: 5px; border-left-color: var(--rs-ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible ~ .ba-line { outline: 3px solid var(--rs-red); }
.ba-tag { position: absolute; top: .6rem; padding: .12rem .65rem; border-radius: 999px; background: rgba(21, 24, 28, .8); color: #fff; font-size: .78rem; font-weight: 700; z-index: 2; pointer-events: none; }
.ba-tag.b { left: .6rem; }
.ba-tag.a { right: .6rem; background: rgba(209, 15, 18, .9); }
.gal.gal-s { grid-template-columns: repeat(var(--n, 2), 1fr); padding: .35rem .35rem 0; gap: .35rem; }
.gal.gal-s button { aspect-ratio: 4 / 3; border-radius: 8px; }
.gal.gal-s .ba-tag { top: .4rem; font-size: .7rem; padding: .05rem .5rem; }
.gal.gal-s .ba-tag.b { left: .4rem; }
.gal.gal-s .ba-tag.a { right: auto; left: .4rem; }
