/* ==========================================================
   PAC Ouest — feuille de style principale
   ========================================================== */
:root {
  --navy: #0a2f4f;
  --navy-2: #0f416b;
  --blue: #1d74c9;
  --ice: #5ec8f2;
  --orange: #f2711c;
  --orange-2: #ff9a3d;
  --ink: #142233;
  --muted: #5b6b7d;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --line: #dde6ef;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 47, 79, .10);
  --shadow-lg: 0 24px 60px rgba(10, 47, 79, .18);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #e9f1f8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--orange); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: #b9cde0; }
.text-gradient {
  background: linear-gradient(90deg, var(--orange), var(--orange-2) 40%, var(--ice) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Quand le titre est découpé mot par mot, le dégradé doit suivre chaque mot */
.text-gradient .w, .text-gradient .w > span {
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--orange);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 2px solid var(--b);
  background: var(--b); color: #fff; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 8px 22px rgba(242, 113, 28, .35);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(242, 113, 28, .45); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--outline:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 24px rgba(10,47,79,.08); padding: 10px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: #fff; transition: color .4s; }
.logo-mark {
  width: 46px; height: 46px; flex: none; object-fit: contain;
  filter: invert(1); /* logo noir → blanc sur fond sombre */
  transition: filter .4s, transform .6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.site-header.is-scrolled .logo-mark{ filter: none; }
.logo small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.site-header.is-scrolled .logo{ color: var(--navy); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 8px 14px; font-weight: 600; font-size: .95rem; color: #fff; transition: color .3s;
}
.site-header.is-scrolled .nav a:not(.btn){ color: var(--ink); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px; margin-left: 8px; }
.nav a { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 961px) { .nav a:not(.btn) { padding: 8px 10px; font-size: .9rem; } }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.15); cursor: pointer; position: relative; z-index: 60;
}
.site-header.is-scrolled .menu-toggle{ background: var(--bg-soft); }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.site-header.is-scrolled .menu-toggle span{ background: var(--navy); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
body.menu-open .menu-toggle span { background: var(--navy); }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 10px;
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  }
  body.menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav a:not(.btn) { color: var(--ink) !important; font-size: 1.4rem; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
  body.menu-open .nav a:not(.btn) { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .08s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .14s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .2s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .26s; }
  .nav .btn { margin: 16px 0 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 130px 0 90px;
  color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(94,200,242,.25), transparent 60%),
              radial-gradient(900px 600px at 0% 100%, rgba(242,113,28,.28), transparent 60%),
              linear-gradient(160deg, #07233b, var(--navy) 45%, var(--navy-2));
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero p.lead { color: #c7d9ea; max-width: 560px; font-size: 1.2rem; }

/* Particules / bulles d'air */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-particles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), rgba(94,200,242,.15));
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* Illustration PAC animée */
.hero-visual { position: relative; }
.pac-illu { width: 100%; max-width: 520px; margin-inline: auto; animation: float 6s ease-in-out infinite; }
.pac-illu .fan-blades { transform-origin: 170px 170px; animation: spin 2.2s linear infinite; }
.pac-illu .wave { stroke-dasharray: 10 14; animation: flow 1.6s linear infinite; }
.pac-illu .wave.cold { animation-duration: 2.2s; }
.pac-illu .led { animation: blink 2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }


/* Hero de page interne */
.page-hero { min-height: auto; padding: 170px 0 100px; }
.page-hero .container { grid-template-columns: 1fr; text-align: center; }
.page-hero p.lead { margin-inline: auto; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--ice));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(242,113,28,.12), rgba(94,200,242,.18)); color: var(--orange);
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.card-icon svg { width: 30px; height: 30px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--orange); color: #fff; }
.card-num { position: absolute; top: 18px; right: 22px; font-size: 3rem; font-weight: 800; color: var(--bg-soft); line-height: 1; }

/* Solutions (2 grandes cartes) */
.solution {
  border-radius: 26px; padding: 190px 38px 44px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution--warm { background: linear-gradient(155deg, #ff9a3d, #e1530e 70%); }
.solution--cold { background: linear-gradient(155deg, #4fc3ef, #1d5fae 70%); }
.solution h3 { font-size: 1.8rem; }
.solution p { color: rgba(255,255,255,.9); }
.solution ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.solution li { display: flex; gap: 10px; align-items: flex-start; }
.solution li::before { content: "✓"; font-weight: 800; }

@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .8rem; font-weight: 700; margin-bottom: 14px; width: fit-content; }

/* Aides */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.aid-list { display: grid; gap: 18px; }
.aid {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .4s, transform .4s var(--ease);
}
.aid:hover { background: rgba(255,255,255,.1); transform: translateX(8px); }
.aid .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--orange); display: grid; place-items: center; flex: none; color: #fff; }
.aid .ic svg { width: 26px; height: 26px; }
.aid h3 { margin-bottom: 4px; font-size: 1.15rem; }
.aid p { margin: 0; color: #b9cde0; font-size: .96rem; }

.savings {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); border-radius: 26px; padding: 40px;
}
.bar { margin-bottom: 24px; }
.bar-label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; color: #d6e4f0; }
.bar-track { height: 14px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); border-radius: 999px; transition: width 1.6s var(--ease); }
.js .bar-fill { width: 0; }
.bar-fill.warm { background: linear-gradient(90deg, #e1530e, #ff9a3d); }
.bar-fill.cold { background: linear-gradient(90deg, #1d5fae, #5ec8f2); }
.js .is-visible .bar-fill { width: var(--w); }
.note { font-size: .8rem; color: #8fa9c2; margin-top: 10px; }

/* Garanties */
.badge-card { text-align: center; padding: 40px 28px; }
.badge-card .seal {
  width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 36px; position: relative; line-height: 1;
  background: var(--bg-soft); color: var(--navy); font-weight: 800; font-size: 1.4rem;
}
.badge-card .seal::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed var(--orange); animation: spin 18s linear infinite;
}

/* Étapes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--ice)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.steps.is-visible::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step-dot {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--orange); position: relative; z-index: 1;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.step:hover .step-dot { background: var(--orange); color: #fff; transform: scale(1.1); }
.step p { color: var(--muted); font-size: .95rem; }

/* CTA */
.cta {
  border-radius: 30px; padding: clamp(40px, 6vw, 70px); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--orange), #e1530e 45%, var(--navy-2));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); margin: 0; }
.cta .btn { background: #fff; color: var(--orange); border-color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta .btn-row { justify-content: flex-end; }
.cta-circle { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); animation: pulse 6s ease-in-out infinite; }

/* Réseaux */
.socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); font-weight: 700; transition: transform .4s var(--ease), box-shadow .4s, color .3s;
}
.social:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--orange); }
.social svg { width: 22px; height: 22px; }

/* Contenu texte (pages internes) */
.prose h2 { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-size: .95rem; }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: var(--bg-soft); }
.compare td:first-child { font-weight: 700; }
.yes { color: #18a058; font-weight: 700; }
.no { color: #c2410c; font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Compteurs */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--orange); line-height: 1.1; }
.stats-band span { color: #b9cde0; font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: transparent; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); position: relative; flex: none; transition: background .3s, transform .4s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus { background: var(--orange); transform: rotate(180deg); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: #fff; }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* Formulaire */
.form-card { background: #fff; border-radius: 26px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .98rem;
  background: var(--bg-soft); color: var(--ink); transition: border-color .3s, background .3s, box-shadow .3s; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field label {
  position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: .98rem; pointer-events: none;
  transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: left top;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,113,28,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{ transform: translateY(-9px); font-size: .75rem; color: var(--orange); font-weight: 600; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem;
  transition: all .3s var(--ease);
}
.choice input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; transform: scale(1.04); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(242,113,28,.25); }
.form-label { font-weight: 700; margin-bottom: 10px; display: block; font-size: .95rem; }
.form-success {
  display: none; text-align: center; padding: 40px 10px;
}
.form-success.show { display: block; animation: pop .6s var(--ease); }
.form-success .check { width: 80px; height: 80px; margin: 0 auto 18px; }
.form-success .check circle { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw .8s var(--ease) forwards; }
.form-success .check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.contact-info { display: grid; gap: 18px; }
.contact-line {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.contact-line:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-line .ic { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; display: grid; place-items: center; flex: none; }
.contact-line .ic svg { width: 24px; height: 24px; }
.contact-line small { display: block; color: var(--muted); font-size: .82rem; }
.contact-line strong { font-size: 1.08rem; }

/* Pied de page */
.site-footer { background: #061c30; color: #9fb6cc; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .3s, padding .3s; }
.site-footer ul a:hover { color: var(--orange); padding-left: 6px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Bouton d'appel flottant (mobile) */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: #fff; display: none; place-items: center; box-shadow: 0 10px 24px rgba(242,113,28,.45);
}
.call-fab svg { width: 26px; height: 26px; }
.call-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); z-index: -1; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; background: linear-gradient(90deg, var(--orange), var(--ice)); transform: scaleX(0); transform-origin: left; }

/* Uniquement si JavaScript tourne : sans JS, tout le contenu reste visible */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-50px); }
.js .reveal.from-right { transform: translateX(50px); }
.js .reveal.zoom { transform: scale(.9); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Le titre reste visible dès le premier affichage (vitesse mesurée par Google) :
   seuls les mots glissent légèrement en place. */
.split-words .w { display: inline-block; vertical-align: bottom; }
.split-words .w > span { display: inline-block; transform: translateY(.35em); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes wordUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .container, .split, .cta { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta .btn-row { justify-content: flex-start; }
  .call-fab { display: grid; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .solution { padding: 130px 26px 34px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .fade-up, .split-words .w > span { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   Ajouts : menu déroulant, devis express, pages de services
   ========================================================== */

/* Menu déroulant « Pompe à chaleur & climatisation » */
.nav-drop { position: relative; }
.nav-drop > a::before { content: ""; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: 10px; margin-top: 8px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .3s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-header .nav .nav-sub a { color: var(--ink) !important; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.nav .nav-sub a::after { display: none; }
.nav .nav-sub a:hover, .nav .nav-sub a.active { background: var(--bg-soft); color: var(--orange) !important; }

@media (max-width: 960px) {
  .nav-drop { display: flex; flex-direction: column; align-items: center; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; min-width: 0; padding: 0; margin: 4px 0 6px; text-align: center; }
  .site-header .nav .nav-sub a { font-size: 1rem !important; padding: 4px 10px; color: var(--muted) !important; opacity: 0; transform: translateY(16px); transition: opacity .4s .3s, transform .5s .3s var(--ease); }
  body.menu-open .nav .nav-sub a { opacity: 1; transform: none; }
  .nav { overflow-y: auto; padding: 90px 0 40px; justify-content: flex-start; }
}
@media (max-height: 700px) and (max-width: 960px) { .nav a:not(.btn) { font-size: 1.15rem; } }

/* Bloc « Devis express » sous le hero */
.quick-quote { position: relative; z-index: 5; margin-top: -60px; padding-bottom: 20px; }
.quick-quote--page { margin-top: 0; padding: clamp(50px, 7vw, 90px) 0; background: var(--bg-soft); }
.qq-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px);
  background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.qq-intro h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.qq-intro p { color: var(--muted); }
.qq-points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.qq-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.qq-points li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242,113,28,.12); color: var(--orange); font-size: .8rem; font-weight: 800;
}
.qq-phone { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--navy); transition: color .3s; }
.qq-phone small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.qq-phone:hover { color: var(--orange); }

/* Formulaire de devis */
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.quote-form legend { padding: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn--full { width: 100%; justify-content: center; margin-top: 20px; }
.form-legal { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-legal a { text-decoration: underline; }
.form-error { color: #c2410c; font-size: .9rem; font-weight: 600; margin: 14px 0 0; }
.field.invalid input { border-color: #c2410c; background: #fff7f3; }
.form-title { font-size: 1.4rem; margin-bottom: 20px; }

/* Cartes de services cliquables */
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .92rem; color: var(--orange); transition: transform .35s var(--ease); }
.card:hover .card-more { transform: translateX(6px); }

/* Pages de services */
.split--top { align-items: start; }
.prose h3 { margin-top: 1.6em; }
.prose a, .text-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.checklist { list-style: none; padding: 0 !important; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(242,113,28,.12); color: var(--orange); font-size: .72rem; font-weight: 800;
}
.checklist strong { color: var(--ink); }
.key-box { background: var(--navy); color: #d6e4f0; border-radius: 24px; padding: 32px; position: sticky; top: 100px; }
.key-box h3 { color: #fff; font-size: 1.3rem; }
.key-box dl { margin: 0 0 6px; }
.key-box dl div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.key-box dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8fa9c2; font-weight: 700; }
.key-box dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.key-box a:not(.btn) { color: #fff; text-decoration: underline; }
.key-box .checklist li { color: #d6e4f0; }
.key-phone { font-size: 1.8rem; font-weight: 800; margin: 0 0 6px; }
.key-phone a { text-decoration: none !important; }

.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-links a {
  display: block; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.service-links a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-links strong { display: block; margin-bottom: 4px; }
.service-links strong::after { content: " →"; color: var(--orange); transition: margin .3s; }
.service-links a:hover strong::after { margin-left: 4px; }
.service-links span { color: var(--muted); font-size: .92rem; }

/* Pied de page */
.footer-address { margin-top: 14px; line-height: 1.7; }
.footer-address a { color: #fff; font-weight: 700; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); padding: 0 !important; }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

@media (max-width: 900px) {
  .qq-card { grid-template-columns: 1fr; }
  .quick-quote { margin-top: -40px; }
  .service-links { grid-template-columns: 1fr 1fr; }
  .key-box { position: static; }
}
@media (max-width: 600px) {
  /* Accueil mobile : on remonte le formulaire de devis juste sous le titre */
  .hero:not(.page-hero) { min-height: 0; padding: 110px 0 80px; }
  .hero:not(.page-hero) .hero-visual { display: none; }

  .service-links { grid-template-columns: 1fr; }
  .qq-card { padding: 26px 20px; border-radius: 22px; }
}

/* ==========================================================
   Photos
   ========================================================== */
.photo { margin: 0; border-radius: 24px; overflow: hidden; position: relative; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute; right: 12px; bottom: 10px; font-size: .7rem; color: #fff;
  background: rgba(6, 28, 48, .55); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px);
}
.photo--wide { aspect-ratio: 21 / 9; }
.section--photo { padding: clamp(40px, 6vw, 70px) 0; }

/* Cartes solutions : photo en fond, couleur en dégradé pour la lisibilité */
.solution { isolation: isolate; }
.solution-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.solution:hover .solution-bg { transform: scale(1.06); }
.solution::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.solution--warm::before { background: linear-gradient(180deg, rgba(225, 83, 14, 0) 0%, rgba(225, 83, 14, .15) 28%, rgba(216, 80, 15, .88) 52%, #d8500f 72%); }
.solution--cold::before { background: linear-gradient(180deg, rgba(29, 95, 174, 0) 0%, rgba(29, 95, 174, .15) 28%, rgba(27, 90, 166, .88) 52%, #1b5aa6 72%); }
.solution { padding-top: 230px; }

/* Logos de garanties */
.badge-card .seal--img { background: #fff; border: 1px solid var(--line); }
.badge-card .seal--img img { width: 74%; height: auto; }

@media (max-width: 600px) {
  .photo--wide { aspect-ratio: 4 / 3; }
  .solution { padding-top: 190px; }
}

/* ==========================================================
   Communes desservies
   ========================================================== */

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.city-grid a {
  display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.city-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.city-grid strong { display: block; }

.site-footer .footer-strong { color: #fff; font-weight: 700; }
.site-footer .footer-strong:hover { color: var(--orange); }

/* ==========================================================
   Nom « PAC Ouest » plus visible
   ========================================================== */
/* En-tête : logo et nom plus grands sur toutes les pages */
.logo { font-size: 1.65rem; gap: 12px; line-height: 1.05; white-space: nowrap; flex: none; }
.logo-mark { width: 58px; height: 58px; }
.logo small { font-size: .7rem; margin-top: 3px; }
/* Accueil : le nom en grand au-dessus du titre */
.hero-brand {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff;
}
.hero-brand img { width: clamp(56px, 6vw, 76px); height: auto; filter: invert(1); }
.hero:not(.page-hero) h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
@media (min-width: 961px) and (max-width: 1100px) {
  .logo { font-size: 1.4rem; }
  .logo-mark { width: 50px; height: 50px; }
}
@media (max-width: 600px) {
  .logo { font-size: 1.45rem; }
  .logo-mark { width: 50px; height: 50px; }
}

/* ==========================================================
   Formulaire de devis complet (page /devis/)
   ========================================================== */
.qq-card--full { grid-template-columns: .6fr 1.4fr; align-items: start; }
.qq-card--full .qq-intro { position: sticky; top: 110px; }
.qf-step { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin: 34px 0 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.qf-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.qf-step span { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; flex: none; }
.quote-form--full .qf-group { margin-bottom: 22px; }
.quote-form--full .choice span { padding: 12px 20px; text-align: center; }
.quote-form--full .choice small { display: block; font-size: .76rem; font-weight: 500; opacity: .8; margin-top: 2px; }
.field.invalid .choice span, .field.invalid .consent input { border-color: #c2410c; }
.field.invalid legend, .field--consent.invalid .consent { color: #c2410c; }
.field input[type=number] { -moz-appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Curseur de surface */
.field--range .form-label { margin-bottom: 8px; position: static; transform: none; color: var(--ink); font-size: .95rem; font-weight: 700; pointer-events: auto; }
.field--range output { color: var(--orange); font-size: 1.25rem; font-weight: 800; }
.field input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--orange) var(--p, 20%), var(--line) var(--p, 20%));
}
.field input[type=range]:focus { box-shadow: 0 0 0 4px rgba(242,113,28,.18); }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 2px 8px rgba(10,47,79,.25); }
.field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* Accord sur les données */
.field--consent { margin-top: 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; position: static !important; transform: none !important; pointer-events: auto !important; }
.consent input { width: 22px; height: 22px; padding: 0; flex: none; margin-top: 2px; accent-color: var(--orange); appearance: auto; }
.consent a { text-decoration: underline; color: var(--ink); }

/* « Toutes nos communes » : nom de la ville seul */
.city-grid a { padding: 18px 20px; }
.city-grid strong::after { content: " →"; color: var(--orange); }

@media (max-width: 900px) {
  .qq-card--full { grid-template-columns: 1fr; }
  .qq-card--full .qq-intro { position: static; }
}
/* Les boutons de choix ne sont pas des libellés flottants */
.field label.choice { position: relative; left: auto; top: auto; transform: none !important; pointer-events: auto; font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
.quote-form--full .choice-group { gap: 10px; }
.quote-form--full fieldset.field { position: static; }

/* Les boutons de formulaire gardent la police du site */
button.btn, .faq-q, .menu-toggle { font-family: inherit; }

/* « Nos engagements » : logos bien centrés dans leur cercle */
.badge-card .seal--img { display: grid; place-items: center; padding: 0; line-height: 0; }
.badge-card .seal--img img { width: 78%; max-height: 66%; height: auto; object-fit: contain; margin: 0; }

/* ==========================================================
   Avis clients
   ========================================================== */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.review-stars { display: flex; align-items: center; gap: 3px; }
.review-stars svg { width: 22px; height: 22px; fill: #f5a623; flex: none; }
.review-stars b { margin-left: 8px; font-size: .9rem; color: var(--ink); }
.review blockquote { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.6; flex: 1; }
.review blockquote::before { content: "« "; color: var(--orange); font-weight: 800; }
.review blockquote::after { content: " »"; color: var(--orange); font-weight: 800; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.review strong { display: block; line-height: 1.25; font-size: 1rem; }
.review small { display: block; color: var(--muted); font-size: .82rem; }
.review-source { font-size: .85rem; font-weight: 700; color: var(--blue); padding-top: 14px; border-top: 1px solid var(--line); }
.review-source::after { content: " →"; }
.review-source:hover { text-decoration: underline; }
@media (max-width: 1080px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* Sous-titre du logo : « Pompe à chaleur & climatisation » sur une seule ligne */
.logo small { letter-spacing: .06em; font-size: .68rem; }
@media (max-width: 1240px) { .logo small { font-size: .62rem; letter-spacing: .04em; } }

/* Accueil : pas de doublon du nom. L'en-tête ne montre « PAC Ouest » qu'après le défilement. */
.site-header .logo { transition: opacity .4s var(--ease), visibility .4s, color .4s; }
.js body:has(.hero-brand) .site-header:not(.show-brand) .logo { opacity: 0; visibility: hidden; pointer-events: none; }
.hero-brand span { display: block; }
.hero-brand small { display: block; margin-top: 8px; font-size: clamp(.8rem, 1.3vw, 1rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ==========================================================
   Modifications du PDF (avis, aides, accessibilité)
   ========================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Avis : 2 colonnes pour que les commentaires se lisent bien */
.reviews { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } }
.review { padding: 28px 28px 22px; }
.review blockquote::before, .review blockquote::after { content: none; }
.review blockquote { position: relative; }
.review blockquote p { margin: 0 0 .7em; }
.review blockquote p:last-child { margin-bottom: 0; }
.review blockquote p:first-child::before { content: "« "; color: var(--orange); font-weight: 800; }
.review blockquote p:last-child::after { content: " »"; color: var(--orange); font-weight: 800; }
.review blockquote.is-clamped { max-height: calc(1.6em * 6); overflow: hidden; }
.review blockquote.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.review-more {
  align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--orange); text-decoration: underline; text-underline-offset: 3px;
}

/* Aides : logo dans chaque cadre, carte cliquable vers le site officiel */
.aid-card { display: flex; flex-direction: column; color: inherit; }
.aid-logo {
  height: 110px; margin: -6px 0 20px; border-radius: 14px; background: var(--bg-soft);
  display: grid; place-items: center; padding: 14px; color: var(--navy);
}
.aid-logo img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.aid-logo svg { width: 56px; height: 56px; }
.aid-card p { flex: 1; }
.aid-official { margin-top: 18px; font-weight: 700; font-size: .92rem; color: var(--blue); }
.aid-official::after { content: " ↗"; }
.aid-card:hover .aid-official { text-decoration: underline; }
.aid-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* fond blanc : se confond avec le fond blanc des logos */
.aid-logo { height: 128px; background: #fff; border: 1px solid var(--line); }

/* ==========================================================
   Modifications du 2e PDF
   ========================================================== */
/* Accueil : un peu plus d'air entre le titre, le texte et les boutons */
.hero:not(.page-hero) h1 { margin-bottom: .85em; }
.hero:not(.page-hero) p.lead { line-height: 1.75; margin-bottom: 1.7em; }
.hero-brand { margin-bottom: 28px; }

/* Aides : 2 colonnes de 2, logos plus compacts */
.aid-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .aid-grid { grid-template-columns: 1fr; } }
.aid-logo { height: 84px; margin: -4px 0 18px; padding: 10px; }
.aid-logo img { height: 62px; }
.aid-logo svg { width: 40px; height: 40px; }

/* Avis : chaque cadre garde sa propre hauteur */
.reviews { align-items: start; }

/* Aides : logo dans un petit carré, dans l'angle haut droit de la carte */
.aid-card { position: relative; }
.aid-card .aid-logo {
  position: absolute; top: 24px; right: 24px; width: 84px; height: 84px; margin: 0; padding: 8px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
}
.aid-card .aid-logo img { width: 100%; height: 100%; object-fit: contain; }
.aid-card .aid-logo svg { width: 38px; height: 38px; }
.aid-card h3 { min-height: 84px; display: flex; align-items: center; padding-right: 104px; margin-bottom: 10px; margin-top: -4px; }
@media (max-width: 420px) {
  .aid-card .aid-logo { width: 64px; height: 64px; top: 18px; right: 18px; }
  .aid-card h3 { min-height: 64px; padding-right: 78px; }
}

/* Pages des communes : liste des communes voisines */

.aid-card .aid-logo { width: 96px; height: 96px; padding: 6px; }
.aid-card h3 { min-height: 96px; padding-right: 116px; }

/* Pages des communes : encadré « Pourquoi choisir PAC Ouest » */
.local-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow); position: sticky; top: 110px;
}
.local-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.local-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.local-points li { position: relative; padding-left: 34px; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.local-points li strong { color: var(--ink); }
.local-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(242,113,28,.12); color: var(--orange); font-size: .75rem; font-weight: 800;
}
.local-actions { display: grid; gap: 14px; }
.local-actions .btn--full { margin-top: 0; }
.local-phone { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.local-phone small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.local-phone:hover { color: var(--orange); }
.near-line { font-size: .92rem; margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.near-line a { color: var(--blue); }
.near-line a:hover { text-decoration: underline; }
@media (max-width: 900px) { .local-card { position: static; } }

/* Encadrés latéraux fixes : ils ne suivent plus le défilement */
.key-box, .local-card, .qq-card--full .qq-intro { position: static; top: auto; }

/* Menu mobile : les liens longs passent à la ligne au lieu de dépasser de l'écran */
@media (max-width: 960px) {
  .nav { padding-left: 24px; padding-right: 24px; }
  .nav a { white-space: normal; text-align: center; max-width: 100%; }
  .nav .nav-drop { max-width: 100%; }
  .nav > a:not(.btn), .nav .nav-drop > a { font-size: clamp(1.15rem, 5.4vw, 1.4rem) !important; line-height: 1.3; }
}

/* « Lire la suite » : zone cliquable assez grande pour le doigt */
.review-more { min-height: 44px; padding: 10px 0; margin: -10px 0 -8px; display: inline-flex; align-items: center; }

/* ==========================================================
   Fluidité : pause des animations hors écran
   ========================================================== */
/* Les animations en boucle s'arrêtent quand leur bloc n'est pas à l'écran */
.anim-paused, .anim-paused *, .anim-paused *::before, .anim-paused *::after { animation-play-state: paused !important; }
