/*
Theme Name: BOELEC38
Theme URI: https://boelec38.fr
Author: BOELEC38
Description: Thème sur mesure pour BOELEC38, électricien à Voiron (Isère). Rapide, sans extension, optimisé pour le mobile et le référencement local.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: boelec38
*/

:root {
  --ink: #0a0f1f;
  --ink-2: #111a33;
  --ink-3: #1b2647;
  --blue: #2440f0;
  --blue-d: #1a30c4;
  --blue-soft: #eef1ff;
  --y: #f7c531;
  --y-d: #e0ad12;
  --paper: #f6f5f0;
  --white: #ffffff;
  --text: #0f1424;
  --muted: #5a6072;
  --line: #e5e3da;
  --wa: #1fae59;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(10, 15, 31, .04), 0 12px 40px -12px rgba(10, 15, 31, .16);
  --shadow-lg: 0 30px 80px -20px rgba(10, 15, 31, .35);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.22rem; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.note { color: var(--muted); font-size: .92rem; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--y); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: .98rem;
  line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn-sm { padding: .62em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1.02em 1.6em; font-size: 1.03rem; }
.btn-y { --bg: var(--y); --fg: var(--ink); box-shadow: 0 10px 30px -10px rgba(247, 197, 49, .7); }
.btn-y:hover { --bg: #ffd24d; box-shadow: 0 16px 40px -12px rgba(247, 197, 49, .85); }
.btn-blue { --bg: var(--blue); --fg: var(--white); box-shadow: 0 10px 30px -12px rgba(36, 64, 240, .7); }
.btn-blue:hover { --bg: var(--blue-d); }
.btn-ghost { --bg: rgba(255, 255, 255, .06); --fg: var(--white); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.btn-wa { --bg: var(--wa); --fg: var(--white); }
.btn-wa:hover { --bg: #17994d; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow .ic { display: none; }
.eyebrow-y { color: var(--y); }

/* ---------- Bandeau du haut & en-tête ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar span { display: inline-flex; align-items: center; gap: .5em; }
.topbar .ic { color: var(--y); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(10, 15, 31, .25); }
.bar { display: flex; align-items: center; gap: 28px; height: 78px; transition: height .3s var(--ease); }
.scrolled .bar { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 46px; height: 46px; border-radius: 13px; background: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -8px rgba(36, 64, 240, .5); }
.brand-logo img { width: 34px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 1.15rem; letter-spacing: -.02em; }
.brand-txt small { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.brand-light, .brand-light:hover { color: var(--white); }
.brand-light .brand-txt small { color: rgba(255, 255, 255, .55); }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav .nav-phone { display: none; }
.bar-actions { display: flex; align-items: center; gap: 14px; }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.bar-phone .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--paper); color: var(--blue); }
.bar-phone:hover { color: var(--blue); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); padding: 84px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 64, 240, .55), rgba(36, 64, 240, 0) 65%); filter: blur(10px); }
.hero-glow::after { content: ""; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 197, 49, .22), transparent 65%); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--y); }
.hero .lead { color: rgba(255, 255, 255, .72); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255, 255, 255, .8); font-size: .93rem; font-weight: 600; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ic { color: var(--y); width: 1.25em; height: 1.25em; padding: 3px; border-radius: 50%; background: rgba(247, 197, 49, .14); }

.hero-media { position: relative; }
.hero-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); outline: 1px solid rgba(255, 255, 255, .12); outline-offset: -1px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); font-size: .86rem; line-height: 1.3;
}
.float strong { display: block; font-size: .95rem; }
.float > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.float-k { font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; color: var(--blue); line-height: 1; }
.f1 { left: -34px; bottom: 54px; animation: bob 6s ease-in-out infinite; }
.f2 { right: -22px; top: 40px; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.stats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); background: rgba(255, 255, 255, .03); }
.stats li { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.stats strong { font-size: 2.3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--white); }
.stats li:first-child strong { color: var(--y); }
.stats span { color: rgba(255, 255, 255, .6); font-size: .9rem; }

/* ---------- Sections ---------- */
.sec { padding: 112px 0; }
.sec-tight { padding: 72px 0 104px; }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: var(--white); }
.shead { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.shead .lead { margin-inline: auto; }
.shead-left { text-align: left; margin: 0; }
.shead-left .lead { margin-inline: 0; }
.shead-light h2 { color: var(--white); }
.shead-light h2 em { color: var(--y); }

/* Cartes services (accueil) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.svc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.svc-n { font-size: .78rem; font-weight: 800; color: var(--blue); letter-spacing: .12em; margin-bottom: 8px; }
.svc-body h3 { margin-bottom: 8px; }
.svc-body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.more .ic { transition: transform .3s var(--ease); }
.svc-card:hover .more { color: var(--blue); }
.svc-card:hover .more .ic { transform: translateX(4px); }

/* Pourquoi nous */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 5.6; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.split-media::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border-radius: 28px; background: var(--y); z-index: -1; }
.split-media { isolation: isolate; }
.f3 { right: -26px; bottom: 44px; }
.pillars { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.pillars li { display: flex; gap: 14px; }
.pillars strong { display: block; color: var(--ink); margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: .94rem; margin: 0; }
.pill-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgba(36, 64, 240, .8); }
.pill-ic .ic { width: 22px; height: 22px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 26px 28px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .3s, transform .4s var(--ease); }
.steps li:hover { border-color: rgba(247, 197, 49, .5); transform: translateY(-4px); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--y), transparent); }
.step-n { display: inline-block; font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; background: linear-gradient(180deg, var(--y), #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps strong { display: block; color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: rgba(255, 255, 255, .62); font-size: .95rem; margin: 0; }

/* Zone */
.zone { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.towns { list-style: none; padding: 0; margin: 28px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.towns li:first-child { background: var(--ink); color: var(--white); border-color: var(--ink); }
.towns-lg li { padding: 11px 18px; font-size: 1rem; }
.towns-lg .ic { color: var(--blue); }
.towns-lg li:first-child .ic { color: var(--y); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link:hover .ic { transform: translateX(4px); }
.link .ic { transition: transform .3s var(--ease); }
.zone-card { position: relative; aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 50% 45%, var(--ink-3), var(--ink) 70%); overflow: hidden; box-shadow: var(--shadow-lg); }
.zone-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 70%); }
.radar { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.radar span { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; border: 1.5px solid rgba(247, 197, 49, .6); animation: ping 3.6s var(--ease) infinite; }
.radar span:nth-child(2) { animation-delay: 1.2s; }
.radar span:nth-child(3) { animation-delay: 2.4s; }
.radar i { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 6px rgba(247, 197, 49, .25), 0 0 40px 10px rgba(247, 197, 49, .45); }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(6); opacity: 0; } }
.zone-card-txt { position: absolute; left: 28px; right: 28px; bottom: 26px; color: var(--white); display: flex; flex-direction: column; }
.zone-card-txt strong { font-size: 1.6rem; letter-spacing: -.03em; }
.zone-card-txt span { color: rgba(255, 255, 255, .6); font-size: .9rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); transition: background .3s, transform .3s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px -6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background .3s; }
.faq-ic::after { transform: rotate(90deg); }
.faq details[open] .faq-ic { background: var(--blue); transform: rotate(180deg); }
.faq details[open] .faq-ic::before, .faq details[open] .faq-ic::after { background: var(--white); }
.faq details[open] .faq-ic::after { transform: rotate(0); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* Bandeau final */
.band { padding: 0 0 112px; }
.sec-paper + .band { padding-top: 0; background: linear-gradient(var(--paper) 50%, var(--white) 50%); }
.band-in {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  padding: 64px; border-radius: 32px; background: var(--blue); color: var(--white);
}
.band-in::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.band-in::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.band h2 { color: var(--white); margin-bottom: 12px; }
.band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 52ch; }
.band .eyebrow-y { color: var(--y); }
.band-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Pages intérieures ---------- */
.phead { position: relative; background: var(--ink); color: var(--white); padding: 72px 0 80px; overflow: hidden; isolation: isolate; }
.phead::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%); }
.phead::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 64, 240, .55), transparent 65%); }
.phead h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.phead h1 em { color: var(--y); }
.phead .lead { color: rgba(255, 255, 255, .7); margin: 0; }
.phead .note { color: rgba(255, 255, 255, .6); }
.phead-center { text-align: center; padding: 120px 0; }
.phead-center h1, .phead-center .lead { margin-inline: auto; }
.phead-center .hero-actions { justify-content: center; margin-top: 34px; }
.crumbs { display: flex; gap: 10px; font-size: .86rem; color: rgba(255, 255, 255, .55); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: var(--y); }

/* Liste des services */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 72px; }
.chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .2s; }
.chips a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.svc-list { display: grid; gap: 96px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.svc-row.rev .svc-row-media { order: 2; }
.svc-row-media { position: relative; isolation: isolate; }
.svc-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.svc-row-media::before { content: ""; position: absolute; z-index: -1; inset: -18px auto auto -18px; width: 45%; height: 55%; border-radius: 22px; background: var(--blue-soft); }
.svc-row.rev .svc-row-media::before { inset: auto -18px -18px auto; background: #fff6d6; }
.svc-row-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); margin-top: 1px; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 110px; }
.also-card { display: flex; gap: 16px; padding: 28px; border-radius: var(--r); background: var(--paper); }
.also-card h3 { margin-bottom: 6px; }
.also-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Formulaires */
.form-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fcfcfa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(36, 64, 240, .12); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .check input { width: 20px; height: 20px; padding: 0; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-status { margin: 0; font-weight: 600; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 18px; border-radius: 12px; background: #e9f8ef; color: #136c3a; }
.form-status.is-err { padding: 14px 18px; border-radius: 12px; background: #fdecec; color: #a12020; }
.aside { position: sticky; top: 100px; padding: 34px; border-radius: 28px; background: var(--paper); }
.aside h3 { margin-top: 28px; }
.aside .ticks { margin-bottom: 24px; font-size: .95rem; }
.aside-hi { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: var(--ink); color: var(--white); }
.aside-hi .float-k { color: var(--y); }
.aside-hi .float-k .ic { width: 34px; height: 34px; }
.aside-hi p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.aside-hi strong { display: block; color: var(--white); font-size: 1rem; }
.aside-call { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; transition: transform .3s var(--ease), box-shadow .3s; }
.aside-call:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--blue); }
.aside-call > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--y); color: var(--ink); }
.aside-call small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card strong { color: var(--ink); font-size: 1.05rem; }

/* Texte (mentions, pages WordPress) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child, .prose .note + h2 { margin-top: 0; }
.prose p, .prose li { color: #343a4a; }
.entry img { border-radius: var(--r-sm); margin: 1.5em 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.post-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 22px; }
.post-body h2 { font-size: 1.2rem; }
.post-body h2 a { color: var(--ink); text-decoration: none; }
.pager { margin-top: 40px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 88px 0 0; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 48px; }
.foot-brand p { margin: 20px 0 24px; max-width: 34ch; }
.site-footer h3 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.foot-list, .foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-list li { display: flex; gap: 12px; align-items: flex-start; }
.foot-list .ic { color: var(--y); margin-top: 3px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--y); }
.site-footer .btn-y, .site-footer .btn-y:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 72px; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* Barre de contact mobile */
.dock { display: none; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Adaptation écrans ---------- */
@media (max-width: 1180px) {
  .bar-phone span { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  body { font-size: 16px; }
  .sec { padding: 84px 0; }
  .burger { display: block; }
  .bar-phone { display: none; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; margin: 0;
    background: var(--white); padding: 120px 24px 40px;
    display: flex; flex-direction: column; gap: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; padding: 12px 16px; border-radius: 14px; }
  .nav .nav-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 22px; border-radius: 18px; background: var(--y); color: var(--ink); font-weight: 800; font-size: 1.2rem; text-decoration: none; justify-content: center; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .hero { padding: 56px 0 48px; }
  .hero-in, .split, .zone, .faq-wrap, .svc-row, .form-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .f1 { left: 12px; bottom: -22px; }
  .f2 { right: 12px; top: 16px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .split-media { max-width: 560px; }
  .split-media::before { inset: 18px -14px -14px 18px; }
  .f3 { right: 12px; bottom: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .zone-card { max-width: 440px; }
  .svc-row.rev .svc-row-media { order: 0; }
  .svc-list { gap: 72px; }
  .also, .contact-grid, .posts { grid-template-columns: 1fr 1fr; }
  .band-in { grid-template-columns: 1fr; padding: 48px 36px; }
  .band-actions { flex-direction: row; flex-wrap: wrap; }
  .aside { position: static; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .topbar .topbar-r { display: none; }
  .topbar-in { justify-content: center; }
  .bar { height: 66px; gap: 12px; }
  .bar-actions .btn-sm { display: none; }
  .brand-logo { width: 40px; height: 40px; border-radius: 11px; }
  .brand-logo img { width: 29px; }
  .sec { padding: 68px 0; }
  .sec-tight { padding: 48px 0 72px; }
  .shead { margin-bottom: 40px; text-align: left; }
  .shead .lead { margin-inline: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { flex-direction: column; gap: 10px; }
  .float { padding: 11px 14px; font-size: .8rem; }
  .float-k { font-size: 1.5rem; }
  .f2 { display: none; }
  .stats li { padding: 20px; }
  .stats strong { font-size: 1.9rem; }
  .svc-grid, .steps, .also, .contact-grid, .posts, .pillars, .form .row { grid-template-columns: 1fr; }
  .svc-grid { gap: 12px; }
  .svc-card { flex-direction: row; align-items: stretch; border-radius: 18px; }
  .svc-img { flex: none; width: 108px; aspect-ratio: auto; }
  .svc-body { padding: 16px 16px 16px 18px; }
  .svc-n { margin-bottom: 4px; }
  .svc-body h3 { font-size: 1.04rem; margin-bottom: 4px; }
  .svc-body p { font-size: .88rem; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .svc-body .more { display: none; }
  .steps { gap: 12px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 22px; }
  .step-n { grid-row: span 2; font-size: 2.1rem; margin: 0; }
  .steps strong { margin-bottom: 4px; }
  .chips { margin-bottom: 48px; }
  .phead { padding: 48px 0 56px; }
  .form { padding: 24px; border-radius: 22px; }
  .form-actions .btn { width: 100%; }
  .aside { padding: 24px; }
  .band { padding-bottom: 80px; }
  .band-in { padding: 40px 24px; border-radius: 26px; }
  .band-actions .btn { width: 100%; }
  .foot { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding-top: 64px; padding-bottom: 76px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 20px; background: rgba(10, 15, 31, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 14px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .88rem; }
  .dock a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
  .dock .dock-main { background: var(--y); color: var(--ink); }
  .dock .dock-main:hover { background: #ffd24d; color: var(--ink); }
  .menu-open .dock { display: none; }
}
