/*
Theme Name: RM Renovation Theme
Theme URI: https://com-maker.fr
Author: COM MAKER
Description: Theme Gutenberg/blocs de staging pour RM Rénovation, construit depuis DESIGN.md + export Claude Design.
Version: 0.2.15
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rm-renovation-theme
*/

/* WP/FSE reset */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }
.wp-block-post-content { margin-block-start: 0; }
/* Phase 4: neutralise le margin-block-start WP uniquement entre hero interne source et section suivante. */
.wp-block-post-content .rm-internal-page > .page-hero + *,
.wp-block-post-content .rm-internal-page > .page-hero + .section,
.wp-block-post-content .rm-internal-page > .page-hero + .cta-section {
  margin-block-start: 0;
  margin-top: 0;
}
button, .wp-block-button__link, .btn { min-height: 44px; min-width: 44px; }
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal!important; }
/* RM Rénovation - Design System */
:root {
  --base: #FFFFFF;
  /* Palette stricte logo RM : bleu logo + bleu secondaire conservé + vert logo */
  --contrast: #14173A;          /* bleu secondaire conservé — meilleure association avec le logo */
  --primary: #10153F;           /* bleu exact du logo RM */
  --primary-dark: #14173A;      /* bleu secondaire pour hover/surfaces contrastées */
  --accent: #99C43F;            /* vert exact du logo RM */
  --accent-dark: #99C43F;       /* pas de second vert : alias strict du vert logo */
  --surface: #f6f7fb;
  --surface-container: #eef0f6;
  --text-main: #1a1c1e;
  --text-secondary: #525463;
  --heading-font: "Manrope", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
  --container: 1240px;
  --container-sm: 940px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-main);
  background: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--contrast);
  line-height: 1.1;
  margin: 0 0 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container--wide { max-width: var(--container); }

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header ---------- */
#site-header { display: contents; }
/* Phase 5: restore Claude Design sticky behavior inside the WP template-part wrapper. */
.wp-block-template-part:has(.header) { display: contents; }
.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 24px -16px rgba(0,0,0,0);
}
.header.header--solid { position: sticky; background: var(--primary); }
/* Header scroll state: visual shadow only.
   Keep height stable to avoid sticky threshold jitter on first scroll. */
.header.is-scrolled {
  background: var(--primary);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.45);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img,
.brand-logo svg { height: 56px; width: auto; display: block; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-link {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.18s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }

/* Mega menu — full-width navy panel */
.mega-item { position: static; }
.mega-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.mega-trigger .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  transition: transform 0.22s;
  position: relative;
  top: 1px;
}
.mega-trigger .chev svg { width: 14px; height: 14px; stroke-width: 2.25; }
.mega-item.mega-open .mega-trigger .chev,
.mega-item:hover .mega-trigger .chev { transform: rotate(180deg); }
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 40;
}
.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel,
.mega-item.mega-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-panel::before {
  content: "";
  position: absolute;
  top: -24px; left: 0; right: 0; height: 24px;
  pointer-events: auto;
  background: transparent;
}
.mega-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
}
.mega-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.75rem; }
.mega-title { font-size: 1.75rem; margin-bottom: 0.85rem; color: #fff; line-height: 1.15; }
.mega-text { font-size: 1rem; color: rgba(255,255,255,0.72); margin: 0; line-height: 1.55; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.mega-link:hover {
  background: rgba(153,196,63,0.12);
  border-color: rgba(153,196,63,0.35);
  color: #fff;
  transform: translateY(-2px);
}
.mega-link > span[aria-hidden="true"] {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.mega-link strong { display: block; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
.mega-link small { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.45; display: block; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--body-font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  text-align: center;
  line-height: 1.2;
}
.btn--accent { background: var(--accent); color: var(--contrast); }
.btn--accent:hover { background: var(--accent); color: var(--contrast); transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--outline-dark { border-color: #e4e7ef; color: var(--contrast); background: #fff; }
.btn--outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn--large { padding: 18px 32px; font-size: 1.05rem; }
.btn--xl { padding: 1.5rem 2.25rem; font-size: 1.2rem; border-radius: 1rem; }

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}
.nav-mobile-overlay {
  position: fixed; inset: 0;
  background: var(--primary);
  color: #fff;
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-head { display: flex; justify-content: flex-end; }
.nav-mobile-close { background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-mobile-list { list-style: none; padding: 2rem 0 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.nav-mobile-list li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav-mobile-list a { display: block; padding: 1.1rem 0; color: #fff; font-size: 20px; font-weight: 600; }
.nav-mobile-list .sub { font-size: 1rem; font-weight: 500; padding-left: 1.2rem; opacity: 0.85; }
.nav-mobile-cta { margin-top: 2rem; }

@media (max-width: 900px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  padding: 6rem 1.5rem 9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero--short { min-height: auto; padding: 5rem 1.5rem 4rem; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,23,58,0.55) 0%, rgba(20,23,58,0.75) 60%, rgba(20,23,58,0.85) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__content { max-width: 820px; }
.eyebrow {
  display: inline-block;
  background: rgba(153,196,63,0.14);
  border: 1px solid rgba(153,196,63,0.4);
  border-radius: 999px;
  color: var(--accent);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--heading-font);
  font-size: clamp(2.75rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  margin: 1.5rem 0;
}
.hero__title span { color: var(--accent); }
.hero__text {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 640px;
}
.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust/Stats — straddling hero / surface ---------- */
.trust-wrap {
  position: relative;
  z-index: 10;
  margin-top: -6rem;            /* pulls up so half sits on hero */
  margin-bottom: -6rem;         /* and half extends into next section */
  padding: 0 1.5rem;
  pointer-events: none;
}
.trust-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--primary);   /* same as next section feel - navy card on surface */
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(20,23,58,0.5);
  padding: 2.5rem 2.5rem;
  pointer-events: auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  align-items: center;
}
.stats-grid > div {
  position: relative;
  padding: 0.5rem 0.75rem;
}
.stats-grid > div + div::before {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.stat-number {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0.5rem 0 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Section following the trust card needs top padding for the overlap */
.trust-wrap + .section { padding-top: 10rem; }
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-grid > div:nth-child(3)::before { display: none; }
  .trust-card { padding: 2rem 1.5rem; }
}

/* ---------- Section ---------- */
.section { padding: 6rem 1.5rem; }
.section--surface { background: var(--surface); }
.section--white { background: #fff; }
.section--primary { background: var(--primary); color: #fff; }

.section-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.section-title {
  font-family: var(--heading-font);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--contrast);
  margin: 0 0 1rem;
}
.section-text {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: none;
  margin: 0 0 1rem;
}
.section-head--center { text-align: center; margin: 0 auto 3.5rem; max-width: none; }
.section-head--center .section-title { max-width: none; }
.section-head--center .section-text { max-width: none; margin-left: auto; margin-right: auto; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #eef0f6;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20,23,58,0.18);
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(153,196,63,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; stroke-width: 1.75; }
.service-title {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--contrast);
}
.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.service-link a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-link a::after { content: "›"; transition: transform 0.2s; display: inline-block; }
.service-link a:hover::after { transform: translateX(4px); }
.services-cta-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Projects ---------- */
.realisations-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  color: #fff;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.project-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,23,58,0) 35%, rgba(20,23,58,0.9) 100%);
}
.project-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.96);
  color: var(--primary);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.project-content {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  color: #fff;
}
.project-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}
.project-title {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.25rem;
  font-weight: 700;
}
.project-location { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ---------- Avis ---------- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.avis-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid #eef0f6;
  position: relative;
}
.avis-stars { color: #f5b800; font-size: 1.1rem; margin: 0 0 1rem; letter-spacing: 0.1em; }
.avis-quote {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
}
.avis-quote p { margin: 0; font-style: italic; }
.avis-cite { display: flex; align-items: center; gap: 1rem; }
.avis-avatar { flex-shrink: 0; }
.avis-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avis-name { font-weight: 700; color: var(--contrast); margin: 0; }
.avis-type { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

@media (max-width: 700px) {
  .avis-grid { grid-template-columns: 1fr; }
  .avis-card { padding: 2rem 1.5rem; }
}

/* ---------- CTA (light card — version artisan-rm-renovation) ---------- */
/* ---------- CTA (dark navy — version artisan-rm-renovation) ---------- */
.cta-section { padding: 5rem 1.5rem; background: var(--surface); }
.cta-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--contrast);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(153,196,63,0.10), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(153,196,63,0.06), transparent 60%);
  color: #fff;
  border-radius: 28px;
  padding: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 80px -40px rgba(20,23,58,0.45);
}
.cta-orb { display: none; }
.cta-columns {
  display: grid;
  grid-template-columns: 2.6fr 1px 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.cta-columns::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.14);
}
.cta-kicker { display: none; }
.cta-title {
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}
.cta-title em { font-style: normal; color: var(--accent); }
.cta-text {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 540px;
  text-align: center;
}
.cta-infos { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.cta-pill {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 1.1rem 1.9rem;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
  transition: background 0.18s, border-color 0.18s;
}
.cta-pill:hover { background: rgba(153,196,63,0.18); border-color: rgba(153,196,63,0.5); }
.cta-pill a { color: #fff; display: inline-flex; align-items: center; gap: 0.8rem; font-weight: 700; }
.cta-pill a::before {
  content: "";
  width: 20px; height: 20px;
  background: #fff;
  display: inline-block;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  flex-shrink: 0;
}
.cta-pill--phone a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24 11.72 11.72 0 003.68.59 1 1 0 011 1v3.45a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1 11.72 11.72 0 00.59 3.68 1 1 0 01-.24 1.02z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24 11.72 11.72 0 003.68.59 1 1 0 011 1v3.45a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1 11.72 11.72 0 00.59 3.68 1 1 0 01-.24 1.02z'/></svg>");
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-actions .btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.35rem 2.25rem;
  border-radius: 18px;
  box-shadow: 0 14px 34px -10px rgba(153,196,63,0.55);
  white-space: nowrap;
}
.cta-actions .btn:hover { background: #aad350; transform: translateY(-1px); }
.cta-note {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .cta-columns { grid-template-columns: 1fr; gap: 2rem; }
  .cta-columns::before { width: 80%; height: 3px; min-height: 0; justify-self: center; background: linear-gradient(to right, transparent, #99C43F, transparent); }
  .cta-card { padding: 2.75rem 1.75rem; }
  .cta-actions { align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--contrast);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.footer-columns { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 68px; width: auto; margin-bottom: 1.25rem; }
.footer-text { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.8; margin: 0 0 1.5rem; max-width: 360px; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  color: #fff;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social:hover { background: var(--accent); border-color: var(--accent); color: var(--contrast); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { color: var(--contrast); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-heading { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 1.25rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.65rem; }
.footer-list a { color: rgba(255,255,255,0.78); font-size: 0.95rem; transition: color 0.2s; }
.footer-list a:hover { color: var(--accent); }
.footer-contact p { margin: 0 0 0.65rem; color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.footer-contact a { color: rgba(255,255,255,0.78); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact-link { display: inline-flex; align-items: center; gap: 0.55rem; line-height: 1.4; }
.footer-contact-link svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--accent); stroke-width: 2; }
.footer-contact-link span { word-break: break-word; }

.footer { padding: 4rem 0 0; }
.footer-inner { padding: 0 1.5rem; }
.footer-bottom {
  margin-top: 2rem;
  background: #10153f;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  width: 100%;
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-meta { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-legal-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal-nav a { color: rgba(255,255,255,0.78); font-size: 0.88rem; }
.footer-legal-nav a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-columns { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) {
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic page hero (inner pages) — minimal ---------- */
.page-hero {
  background: var(--contrast);
  color: #fff;
  padding: 2.75rem 1.5rem;
  position: relative;
}
.page-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.breadcrumb { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin: 0 0 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.page-hero .eyebrow { display: none; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #fff;
  margin: 0;
  max-width: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-hero__lead { display: none; }

/* RM DESIGN TARGETED 2026-04-25 — H1 pages internes/hero en blanc uniquement (sans layout/tailles/textes) */
.rm-internal-page .page-hero h1,
.rm-placeholder-page .hero__title {
  color: #FFFFFF;
}

/* ---------- Prose ---------- */
.prose { max-width: none; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--text-main); }
.prose h2 { font-size: 2rem; margin: 2.5rem 0 1rem; color: var(--contrast); }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--contrast); }
.prose p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; color: var(--text-secondary); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--contrast); }

/* ---------- About layout ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-split img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card { background: #fff; padding: 2rem; border-radius: 20px; border: 1px solid #eef0f6; }
.value-card .service-icon { margin-bottom: 1rem; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Service detail ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
}
.service-detail-grid .service-media img { border-radius: 24px; aspect-ratio: 4/5; width: 100%; object-fit: cover; }
@media (max-width: 900px) { .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; } }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.step-card { background: #fff; padding: 1.75rem; border-radius: 20px; border: 1px solid #eef0f6; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 1rem; font-family: var(--heading-font); }
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.92rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  color: var(--text-secondary);
}
.check-list li > svg, .check-list li > i[data-lucide] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  background: rgba(153,196,63,0.18);
  border-radius: 50%;
  padding: 4px;
  margin-top: 2px;
  stroke-width: 2.6;
}
/* Fallback when Lucide hasn't rendered yet (i still present) */
.check-list li > i[data-lucide] { display: inline-flex; align-items: center; justify-content: center; font-size: 0; }
/* Legacy text bullet fallback (only applied if no <i> or <svg> present) */
.check-list li:not(:has(svg)):not(:has(i[data-lucide]))::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  background: rgba(153,196,63,0.12);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---------- Form ---------- */
.form-wrap {
  background: #fff;
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 30px 70px -25px rgba(20,23,58,0.1);
  border: 1px solid #eef0f6;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--contrast); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #dce0ea;
  background: #fafbfd;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-main);
  transition: border-color 0.18s, background 0.18s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.88rem; color: var(--text-secondary); margin: 0.5rem 0 1.25rem; }
.form-checkbox input { margin-top: 3px; }
.form-success { display: none; padding: 1rem 1.25rem; background: rgba(153,196,63,0.15); border-radius: 12px; color: var(--primary-dark); font-weight: 600; margin-top: 1rem; }
.form-success.visible { display: block; }
@media (max-width: 650px) { .form-grid { grid-template-columns: 1fr; } .form-wrap { padding: 2rem 1.5rem; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card { background: var(--primary); color: #fff; border-radius: 28px; padding: 3rem; }
.contact-info-card h3 { color: #fff; font-size: 1.5rem; }
.contact-info-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-info-card .info-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-card .info-row:last-child { border-bottom: 0; }
.contact-info-card .info-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(153,196,63,0.2); color: var(--accent); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.contact-info-card .info-row div p { margin: 0; }
.contact-info-card .info-row div strong { color: #fff; display: block; margin-bottom: 0.25rem; font-size: 0.92rem; }
.contact-info-card a { color: #fff; }
.contact-info-card a:hover { color: var(--accent); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-info-card { padding: 2rem; } }

/* ---------- Gallery / realisations page ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.gallery-filter {
  padding: 0.6rem 1.25rem;
  border: 1px solid #dce0ea;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
}
.gallery-filter:hover { border-color: var(--primary); color: var(--primary); }
.gallery-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Two-column simple content */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Helpers */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Gallery items (realisations page) ---------- */
.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,23,58,0);
  pointer-events: none;
  transition: background 0.3s ease;
  z-index: 1;
}
.gallery-item:hover::after { background: rgba(20,23,58,0.25); }
.gallery-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328285B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 3 21 3 21 9'/><polyline points='9 21 3 21 3 15'/><line x1='21' y1='3' x2='14' y2='10'/><line x1='3' y1='21' x2='10' y2='14'/></svg>") no-repeat center / 20px 20px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 3;
}
.gallery-item:hover::before, .gallery-item:focus-visible::before { opacity: 1; transform: scale(1); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-item { aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(20,23,58,0) 0%, rgba(20,23,58,0.88) 100%);
  color: #fff;
  padding: 3rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  z-index: 1;
}
.gallery-item figcaption strong { font-family: var(--heading-font); font-size: 1.1rem; font-weight: 700; }
.gallery-item figcaption span { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

/* ---------- Devis page ---------- */
.devis-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.devis-form {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 70px -35px rgba(20,23,58,0.12);
}
.devis-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-weight: 600; font-size: 0.9rem; color: var(--contrast);
}
.devis-form input,
.devis-form select,
.devis-form textarea {
  border: 1px solid #dce0ea;
  background: #fafbfd;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 400;
  transition: border-color 0.18s, background 0.18s;
}
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.devis-form textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-secondary); margin: 0; font-weight: 400; }
.form-consent input { margin-top: 3px; }
.form-consent label { display: inline; font-weight: 400; font-size: 0.88rem; color: var(--text-secondary); }
.form-ok { padding: 1rem 1.25rem; background: rgba(153,196,63,0.18); border-radius: 12px; color: var(--primary-dark); font-weight: 600; margin: 0; }
.devis-aside {
  background: var(--surface);
  border-radius: 28px;
  padding: 2.25rem;
  border: 1px solid #eef0f6;
}
.devis-aside h3 { font-size: 1.05rem; margin: 0 0 1rem; color: var(--contrast); }
.devis-aside hr { border: 0; border-top: 1px solid #e4e7ef; margin: 1.5rem 0; }
.devis-aside .check-list { margin: 0; }
.devis-aside .cta-pill {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  margin-bottom: 0.5rem;
  display: inline-flex;
  padding: 1rem 1.5rem;
}
.devis-aside .cta-pill a { color: #fff; }
.devis-aside .cta-pill a::before { background: #fff; }
@media (max-width: 900px) {
  .devis-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .devis-form { padding: 1.75rem; }
}

/* ---------- SEO content zone ---------- */
.seo-content { max-width: 100%; margin: 0 auto; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; }
.seo-content > p, .seo-content > ul:not(.zones-list) { max-width: none; }
.seo-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 1rem; color: var(--contrast); font-family: var(--heading-font); }
.seo-content h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--contrast); font-family: var(--heading-font); }
.seo-content p { margin-bottom: 1.15rem; }
.seo-content ul { padding-left: 1.25rem; margin: 0 0 1.15rem; }
.seo-content ul li { margin-bottom: 0.4rem; }
.seo-content a { color: var(--primary); font-weight: 600; }
.seo-content strong { color: var(--contrast); }

/* ---------- FAQ ---------- */
.faq-list { max-width: none; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid #e4e7ef; border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--primary); box-shadow: 0 10px 30px -20px rgba(16,21,63,.3); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.5rem; font-weight: 600; color: var(--contrast); font-family: var(--heading-font); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { background: #fff; border: 1px solid #e4e7ef; border-radius: 20px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.review-card .stars { display: flex; gap: 3px; color: var(--accent); font-size: 1.05rem; letter-spacing: 1px; text-shadow: 0 0 1px var(--accent); }
.review-card .review-text { color: var(--text-secondary); line-height: 1.65; font-size: 0.98rem; flex: 1; }
.review-card .review-author { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.review-card .review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--heading-font); }
.review-card .review-meta strong { display: block; color: var(--contrast); font-weight: 600; }
.review-card .review-meta span { color: var(--text-secondary); font-size: 0.82rem; }
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Zones intervention ---------- */
.zones-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.5rem 0 1.5rem; padding: 0 !important; list-style: none; }
.zones-list li { background: #fff; border: 1px solid #e4e7ef; color: var(--contrast); padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; margin: 0; }

/* ---------- Legal content ---------- */
.legal-content { max-width: var(--container); margin: 0 auto; padding: 0; font-size: 1.02rem; line-height: 1.75; color: var(--text-secondary); }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 0.85rem; color: var(--contrast); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1.25rem; max-width: none; }
.legal-content a { color: var(--primary); font-weight: 600; }
.legal-content a:hover { color: var(--primary); }



/* RM targeted 2026-04-26 — floating WhatsApp, discret et accessible */
.rm-floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 990;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #99C43F;
  color: #10153F;
  box-shadow: none !important;
  filter: none !important;
  border: 2px solid rgba(255,255,255,0.9);
  transition: transform 0.2s ease, background 0.2s ease;
}
.rm-floating-whatsapp:hover,
.rm-floating-whatsapp:focus-visible {
  transform: translateY(-2px);
  background: #FFFFFF;
  color: #10153F;
  box-shadow: none !important;
  filter: none !important;
  outline: 3px solid rgba(153, 196, 63, 0.35);
  outline-offset: 3px;
}
.rm-floating-whatsapp svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}
@media (max-width: 480px) {
  .rm-floating-whatsapp {
    width: 44px;
    height: 44px;
    right: 0.75rem;
    bottom: 1.75rem;
  }
  .rm-floating-whatsapp svg { width: 23px; height: 23px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 35, 0.96);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 4.5rem;
  gap: 1.25rem;
}
.lightbox.is-open { display: flex; animation: lb-fade 0.22s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  position: relative;
  max-width: min(1280px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  gap: 0.9rem;
  flex: 0 0 auto;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 17rem);
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  display: block;
  object-fit: contain;
}
.lightbox__caption {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--body-font);
}
.lightbox__caption strong { font-family: var(--heading-font); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.lightbox__caption span { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: scale(1.08); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100vw - 3rem);
  flex: 0 0 auto;
  margin-top: 1rem;
}
.lightbox__footer .lightbox__counter {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
}
.lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  max-width: min(920px, calc(100vw - 3rem));
  overflow-x: auto;
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.lightbox__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 6px; }
.lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--accent); }

@media (max-width: 700px) {
  .lightbox { padding: 1rem 1rem 6rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__img { max-height: calc(100vh - 12rem); border-radius: 10px; }
  .lightbox__thumb { width: 56px; height: 42px; }
}

/* =====================================================================
   RESPONSIVE REFINEMENTS — Tablet (≤1024px) & Mobile (≤720px / ≤560px)
   Centering, rhythm, type-scaling, touch targets
   ===================================================================== */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  .section { padding: 5rem 1.5rem; }
  .cta-section { padding: 4.5rem 1.5rem; }
  .cta-card { padding: 3rem 2.5rem; }
  .trust-wrap + .section { padding-top: 9rem; }
  .service-detail-grid { gap: 3rem; }
  .about-split { gap: 3rem; }
  .contact-grid { gap: 2.5rem; }
  .devis-layout { gap: 2.5rem; }
  .form-wrap { padding: 2.5rem; }
  .avis-card { padding: 2.25rem; }
}

/* ---------- Tablet portrait / small tablet (≤900px) ---------- */
@media (max-width: 900px) {
  /* Container padding tighter */
  .container, .container-sm { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Section rhythm */
  .section { padding: 4.5rem 1.25rem; }
  .cta-section { padding: 4rem 1.25rem; }
  .trust-wrap + .section { padding-top: 8rem; }

  /* Hero — tighter, better-centered content */
  .hero { min-height: 68vh; padding: 5rem 1.25rem 8rem; }
  .hero--short { padding: 4rem 1.25rem 3.5rem; }
  .hero__content { max-width: 100%; }

  /* Page hero */
  .page-hero { padding: 2.25rem 1.25rem; }
  .breadcrumb { font-size: 0.82rem; margin-bottom: 1rem; }

  /* Section heads stay centered when asked */
  .section-head--center { margin-bottom: 2.75rem; }
}

/* ---------- Mobile (≤720px) — the big shift ---------- */
@media (max-width: 720px) {
  /* Tighter container */
  .container, .container-sm { padding-left: 1rem; padding-right: 1rem; }

  /* Section rhythm */
  .section { padding: 3.5rem 1rem; }
  .cta-section { padding: 3.5rem 1rem; }
  .trust-wrap + .section { padding-top: 7rem; }

  /* Typography scales */
  h2, .section-title { text-align: center; }
  .section-kicker { text-align: center; }
  .section-text { text-align: center; }

  /* Hero centered on mobile */
  .hero { min-height: auto; padding: 4rem 1rem 7rem; text-align: center; }
  .hero__content { margin: 0 auto; text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero__ctas { justify-content: center; flex-direction: column; gap: 0.75rem; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .eyebrow { font-size: 0.75rem; padding: 0.4rem 0.9rem; }

  /* Page hero + breadcrumb */
  .page-hero { padding: 2rem 1rem; text-align: center; }
  .breadcrumb { text-align: center; }
  .page-hero h1 { text-align: center; }

  /* Trust/stats card */
  .trust-wrap { margin-top: -5rem; margin-bottom: -5rem; padding: 0 1rem; }
  .trust-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .stat-label { font-size: 0.8rem; }

  /* Services grid — stacked, centered content in cards */
  .service-card { padding: 1.75rem; text-align: center; align-items: center; }
  .service-icon { margin-left: auto; margin-right: auto; }
  .service-desc { text-align: center; }
  .service-link { text-align: center; }

  /* Realisations head: stack + center */
  .realisations-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .realisations-head .section-title,
  .realisations-head .section-kicker { text-align: center; }

  /* Project cards */
  .project-card { aspect-ratio: 5/4; }
  .project-title { font-size: 1.25rem; }

  /* Avis cards */
  .avis-card { padding: 1.75rem 1.5rem; text-align: left; }
  .avis-quote { font-size: 1rem; }

  /* Reviews (new 3-col layout) */
  .review-card { padding: 1.5rem; }

  /* CTA card */
  .cta-card { padding: 2.25rem 1.25rem; border-radius: 20px; }
  .cta-title { font-size: 1.6rem; }
  .cta-text { font-size: 0.95rem; }
  .cta-infos { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .cta-pill { padding: 0.9rem 1.25rem; font-size: 1rem; justify-content: center; text-align: center; }
  .cta-pill a { justify-content: center; }
  .cta-actions { align-items: stretch; }
  .cta-actions .btn { width: 100%; padding: 1.15rem 1.5rem; font-size: 1rem; }

  /* Footer */
  .footer { padding: 3rem 0 0; }
  .footer-columns { gap: 2.5rem; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-text { margin-left: auto; margin-right: auto; max-width: 100%; }
  .footer-socials { justify-content: center; }
  .footer-links-grid { gap: 2rem; text-align: center; }
  .footer-contact-link { justify-content: center; }
  .footer-bottom { padding: 1.25rem 1rem; }
  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-legal-nav { justify-content: center; }

  /* Forms */
  .form-wrap { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .devis-form { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .devis-aside { padding: 1.75rem 1.25rem; border-radius: 20px; }
  .form-consent, .form-checkbox { font-size: 0.85rem; }
  .form-wrap .btn,
  .devis-form .btn { width: 100%; }
  .devis-aside .cta-pill { width: 100%; justify-content: center; }

  /* Contact info card */
  .contact-info-card { padding: 1.75rem 1.5rem; border-radius: 22px; }
  .contact-info-card h3 { text-align: center; font-size: 1.3rem; }
  .contact-info-card p { text-align: center; }
  .contact-info-card .info-row { flex-direction: row; align-items: center; }

  /* About split */
  .about-split { gap: 1.75rem; }
  .about-split img { aspect-ratio: 4/3; max-height: 360px; }
  .about-split .section-title { text-align: left; }

  /* Service detail */
  .service-detail-grid { gap: 1.75rem; }
  .service-detail-grid .service-media img { aspect-ratio: 4/3; max-height: 360px; }

  /* Values / steps */
  .value-card { padding: 1.5rem; text-align: center; }
  .value-card .service-icon { margin-left: auto; margin-right: auto; }
  .step-card { padding: 1.25rem; text-align: center; }
  .step-num { margin-left: auto; margin-right: auto; }

  /* Check list: stay left-aligned inside its container */
  .check-list li { padding: 0.45rem 0; font-size: 0.95rem; }

  /* Gallery filters wrap nicely */
  .gallery-filters { gap: 0.4rem; margin-bottom: 2rem; }
  .gallery-filter { padding: 0.5rem 1rem; font-size: 0.85rem; }

  /* Two-col */
  .two-col { gap: 1.75rem; }
  .two-col img { aspect-ratio: 4/3; }

  /* Buttons: big enough to tap */
  .btn { min-height: 48px; padding: 14px 22px; }
  .btn--large { min-height: 52px; padding: 16px 26px; font-size: 1rem; }

  /* FAQ */
  .faq-item summary { padding: 1rem 1.25rem; font-size: 0.98rem; }
  .faq-item .faq-answer { padding: 0 1.25rem 1.1rem; font-size: 0.95rem; }

  /* SEO content */
  .seo-content { font-size: 0.98rem; }
  .seo-content h2 { font-size: 1.4rem; }

  /* Zones list centered */
  .zones-list { justify-content: center; }

  /* Mobile nav list touch targets */
  .nav-mobile-list a { padding: 1rem 0; font-size: 20px; }
}

/* ---------- Small mobile (≤480px) ---------- */
@media (max-width: 480px) {
  /* Zones intervention subtitle: mobile only */
  .seo-content h3:has(+ .zones-list) { text-align: center; }

  /* Service page CTA: mobile divider between phone and quote button */
  .cta-columns::before {
    grid-column: 1;
    grid-row: 2;
    width: 80%;
    height: 1px;
    min-height: 0;
    align-self: center;
    justify-self: center;
    background: #fff;
  }

  .hero__title { font-size: 2.4rem; line-height: 1.08; }
  .hero__text { font-size: 1rem; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .stats-grid { gap: 1.25rem; }
  .stat-number { font-size: 1.85rem; }

  /* Gallery filters scrollable row */
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 0.25rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter { flex-shrink: 0; }

  .brand-logo img { height: 54px; }
  .header { padding: 0.8rem 1rem; }

  /* Section kicker smaller */
  .section-kicker { font-size: 0.78rem; letter-spacing: 0.14em; }

  /* Footer legal nav smaller gap */
  .footer-legal-nav { gap: 1rem; font-size: 0.82rem; }
}

/* Gutenberg conversion support */
.rm-home-pattern { margin-block-start: 0; }
@media (max-width: 560px) { .hero__ctas .btn { width: 100%; } .btn--xl { width: 100%; } }


/* Phase 3 navigation + lightbox hardening */
.mega-item { display: inline-flex; align-items: center; }
.nav-mobile-toggle, .nav-mobile-close { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
.nav-mobile-overlay.open { height: 100dvh; }
.nav-mobile-list a.sub { color: rgba(255,255,255,0.86); font-size: 1rem; padding-left: 1.2rem; }
.project-card { -webkit-tap-highlight-color: transparent; }
.lightbox.is-open { overflow: hidden; }
@media (max-width: 900px) { .mega-panel { display: none; } }
@media (max-width: 700px) { .lightbox__stage { width: 100%; } .lightbox__caption strong { font-size: 1rem; } .lightbox__caption span { font-size: 0.85rem; } }

.lightbox__close, .lightbox__nav { font-size: 2rem; line-height: 1; font-weight: 600; }
.lightbox__close { font-size: 2.2rem; }
/* RM Rénovation 4 — WPForms contact form styling (2026-04-24) */
.devis-form--wpforms .wpforms-container,
.devis-form--wpforms .wpforms-container-full {
  margin: 0;
}
.devis-form--wpforms .wpforms-field-container {
  display: block;
  font-family: var(--font-body);
  font-size: 0; /* RM Phase C: neutralise les espaces inline-block pour stabiliser les paires de champs quand WPForms injecte ses champs anti-spam. */
}
.devis-form--wpforms .wpforms-field {
  padding: 0 0 1rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
}
.devis-form--wpforms #wpforms-29-field_1-container,
.devis-form--wpforms #wpforms-29-field_2-container,
.devis-form--wpforms #wpforms-29-field_3-container,
.devis-form--wpforms #wpforms-29-field_4-container {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}
.devis-form--wpforms #wpforms-29-field_1-container,
.devis-form--wpforms #wpforms-29-field_3-container {
  margin-right: 0.95rem !important;
}
.devis-form--wpforms .wpforms-field-label,
.devis-form--wpforms .wpforms-field-label-inline {
  display: block;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 0 0.45rem !important;
}
.devis-form--wpforms input[type="text"],
.devis-form--wpforms input[type="email"],
.devis-form--wpforms input[type="tel"],
.devis-form--wpforms select,
.devis-form--wpforms textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(16,21,63,0.16) !important;
  background: var(--surface) !important;
  border-radius: 14px !important;
  padding: 0.95rem 1rem !important;
  font: inherit !important;
  color: var(--text-primary) !important;
  min-height: 48px !important;
  box-shadow: none !important;
}
.devis-form--wpforms textarea {
  min-height: 140px !important;
  resize: vertical;
}
.devis-form--wpforms input:focus,
.devis-form--wpforms select:focus,
.devis-form--wpforms textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  background: #fff !important;
}
.devis-form--wpforms .wpforms-field-checkbox ul {
  margin: 0 !important;
  padding: 0 !important;
}
.devis-form--wpforms .wpforms-field-checkbox li {
  display: flex !important;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 !important;
}
.devis-form--wpforms .wpforms-field-checkbox input[type="checkbox"] {
  margin-top: 3px !important;
}
.devis-form--wpforms .wpforms-field-checkbox .wpforms-field-label {
  display: none;
}
.devis-form--wpforms .wpforms-submit-container {
  padding: 0 !important;
  margin: 0 !important;
}
.devis-form--wpforms button[type="submit"].wpforms-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 0.95rem 1.45rem !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-family: var(--font-body) !important;
  box-shadow: var(--shadow-sm) !important;
}
.devis-form--wpforms .wpforms-confirmation-container-full {
  padding: 1rem 1.25rem !important;
  background: rgba(153,196,63,0.18) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .devis-form--wpforms #wpforms-29-field_1-container,
  .devis-form--wpforms #wpforms-29-field_2-container,
  .devis-form--wpforms #wpforms-29-field_3-container,
  .devis-form--wpforms #wpforms-29-field_4-container {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }
  .devis-form--wpforms button[type="submit"].wpforms-submit {
    width: 100% !important;
  }
}


/* RM PHASE C CONTACT WPFORMS HIDDEN FIELD LAYOUT GUARD 2026-04-25
   Stabilise le formulaire Contact desktop : les champs anti-spam WPForms (aria-hidden/tabindex=-1) ne doivent jamais créer de retour ligne visible. */
.devis-form--wpforms #wpforms-29-field_8-container,
.devis-form--wpforms #wpforms-29-field_9-container {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* === RM-SECTION-GAP v2 (2026-05-28) ===
   Neutralise la marge inter-blocks WP par défaut (block-gap 24px) entre sections consécutives.
   La vraie structure DOM est : main.rm-internal-page > div.wp-block-post-content > section. */
.rm-internal-page > .wp-block-post-content > section,
.rm-home-content > .wp-block-post-content > section,
.wp-block-post-content > section.section,
.wp-block-post-content > section.cta-section,
.wp-block-post-content > section.page-hero,
.wp-block-post-content > section.hero,
.wp-block-post-content > section + section {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* === RM-HERO-NEXT-SECTION v1 (2026-05-28) ===
   La section juste après le page-hero a son padding-top réduit
   pour éviter le "bandeau blanc-cassé" qui contraste avec le hero navy.
   Le contenu de la première section démarre plus tôt. */
.rm-internal-page > .wp-block-post-content > section.page-hero + section.section,
.rm-internal-page > .wp-block-post-content > section.page-hero + section.cta-section,
.rm-home-content > .wp-block-post-content > section.hero + section.section,
.rm-home-content > .wp-block-post-content > section.hero + section.cta-section {
  padding-top: 2.5rem !important;
}
@media (max-width: 720px) {
  .rm-internal-page > .wp-block-post-content > section.page-hero + section.section,
  .rm-internal-page > .wp-block-post-content > section.page-hero + section.cta-section {
    padding-top: 1.5rem !important;
  }
}
