/*
Theme Name: MQG Home
Theme URI: https://mqghomes.com
Author: MQG Home
Description: Thème bloc sur mesure pour MQG Home : visite 3D de villa au défilement, registre de la référence (titres serif, fond blanc froid, accent or). Contenu 100 % en blocs natifs, éditable dans Gutenberg.
Version: 1.8.2
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mqg-home
Tags: block-theme, full-site-editing, business, one-column
*/

/* Registre relevé sur la vidéo de référence (docs/REFERENCE.md du projet) :
   serif pour les titres, sans fine pour le texte, fond blanc froid,
   un seul accent doré, angles légèrement arrondis, titres de section centrés. */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --accent: #b08d57;        /* or : décoratif (bordures, numéros) */
  --accent-ink: #8a6d3b;    /* or foncé : texte et boutons, contraste AA avec le blanc */
  --soft: #f5f5f3;
  --line: #e6e6e2;
  --radius: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  overflow-x: hidden;
}
/* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

/* Espacement automatique de Gutenberg coupé dans theme.json (blockGap 0) ;
   filet de sécurité ici à spécificité nulle, jamais en .wp-block-group > *. */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
:where(.wp-block-group) > p:where(:not(:last-child)) { margin-bottom: 1em; }

.eyebrow {
  font: 400 0.8rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1rem !important;
}

section.wp-block-group { padding: clamp(56px, 9vw, 120px) 16px; }
/* Ancres (#contact, #services…) : ne pas passer sous l'en-tête collant */
section.wp-block-group[id] { scroll-margin-top: 80px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ------------------------------------------------------------------ En-tête */
header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand img { height: 64px; width: auto; }
.nav .wp-block-navigation__container { gap: 28px; }
.nav .wp-block-navigation-item__content {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.nav .wp-block-navigation-item__content:hover { color: var(--accent-ink); }
/* Le panneau mobile de core/navigation s'ouvre blanc sur blanc sans ceci
   (le CSS du bloc est imprimé APRÈS cette feuille). */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: #ffffff !important;
  color: var(--ink) !important;
}

/* ------------------------------------------------------------------ Boutons
   La classe d'un core/button atterrit sur le conteneur : on le neutralise
   et on style le lien. */
.wp-block-buttons.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.wp-block-button.btn { display: inline-block; background: none; border: 0; padding: 0; border-radius: 0; }
.wp-block-button.btn .wp-block-button__link {
  display: inline-block;
  background: var(--accent-ink);
  color: #fff;
  border: 1px solid var(--accent-ink);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font: 400 0.95rem/1.2 var(--sans);
  letter-spacing: 0.04em;
}
.wp-block-button.btn .wp-block-button__link:hover { filter: brightness(0.92); }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.wp-block-button.btn--ghost-light .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.wp-block-button.btn--small .wp-block-button__link { padding: 10px 18px; font-size: 0.85rem; }

/* ------------------------------------------------------------------ Visite de nuit au défilement (film pré-calculé)
   La section mesure 6 écrans : la scène reste collée (sticky) pendant que
   les 6 étapes de texte défilent par-dessus. Pas de détournement du scroll.
   Les images de repli sont des blocs image (remplaçables dans l'éditeur). */
section.wp-block-group.tour { position: relative; padding: 0; background: #0b0f14; }
.tour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tour__stage { position: absolute; inset: 0; }
.tour__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
  z-index: 1;
}
figure.wp-block-image.tour__poster {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tour__poster img { width: 100%; height: 100%; object-fit: cover; }
figure.wp-block-image.tour__poster.is-active,
.tour:not(.tour--js) figure.wp-block-image.tour__poster:first-child { opacity: 1; }
.tour__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
.tour--3d .tour__canvas { opacity: 1; }
.tour__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.35); z-index: 2; }
.tour__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
p.tour__skip { position: absolute; right: 16px; bottom: 20px; z-index: 2; margin: 0; }
p.tour__skip a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
}
.tour__steps { position: relative; z-index: 1; margin-top: -100vh !important; margin-top: -100svh !important; }
.tour__step {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 96px 16px clamp(56px, 12vh, 120px) clamp(16px, 6vw, 80px);
  pointer-events: none;
}
.tour__card {
  pointer-events: auto;
  max-width: 500px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}
.tour__card > p:last-child { margin-bottom: 0; }
.tour__card--hero {
  max-width: 760px;
  padding: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.tour__card--hero .eyebrow { color: #e9d9b8; }
.lead { font-size: 1.15rem; max-width: 58ch; opacity: 0.92; }

/* ------------------------------------------------------------------ Sections */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px !important; }
.section-sub { color: var(--muted); margin: 0 auto; }

/* À propos */
.apropos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.apropos__media { position: relative; }
.apropos__media figure.wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
p.float-card {
  position: absolute;
  right: -24px;
  bottom: -24px;
  margin: 0;
  background: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  font-family: var(--serif);
  font-size: 1.25rem;
  border-left: 3px solid var(--accent);
}
ul.valeurs { list-style: none; padding: 0; margin: 24px 0; }
ul.valeurs li { padding: 10px 0; border-top: 1px solid var(--line); }

/* Services */
.services__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
p.card__num { font-family: var(--serif); color: var(--accent); font-size: 1.6rem; line-height: 1; margin: 0 0 12px; }
.card > p:last-child { color: var(--muted); margin: 0; }

/* Réalisations */
section.realisations { background: var(--soft); }
.realisations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.realisations__grid figure.wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.realisations__grid figcaption {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  text-align: left;
  color: var(--ink);
}

/* Contact (fond sombre) */
section.contact { background: #1a1a1a; color: #fff; text-align: center; }
.contact .eyebrow { color: #e9d9b8; }
.contact .section-sub, .contact .hours { color: #cfcfcf; }
.contact .wp-block-button.btn--ghost .wp-block-button__link { color: #fff; border-color: #fff; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.wp-block-buttons.contact__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 28px 0; }

/* Formulaire de devis (extension mqg-devis, code court [mqg_devis]) */
.devis-form { text-align: left; max-width: 640px; margin: 32px auto 8px; }
.devis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.devis-field { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.devis-field--full { grid-column: 1 / -1; }
.devis-field label { font-size: 0.85rem; letter-spacing: 0.04em; color: #e9e4da; }
.devis-field input,
.devis-field select,
.devis-field textarea {
  width: 100%;
  font: 300 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9d4ca;
  border-radius: 8px;
  padding: 12px 14px;
}
.devis-field textarea { resize: vertical; min-height: 130px; }
.devis-field [aria-invalid="true"] { border-color: #e07a5f; box-shadow: 0 0 0 2px rgba(224, 122, 95, 0.35); }
.devis-err { color: #f2a58e; font-size: 0.85rem; }
.devis-err:empty { display: none; }
.devis-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.devis-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent-ink); }
.devis-check label { flex: 1; font-size: 0.85rem; color: #cfcfcf; line-height: 1.5; letter-spacing: 0; }
.devis-check .devis-err { flex-basis: 100%; }
.devis-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.devis-submit {
  margin-top: 20px;
  background: var(--accent-ink);
  color: #fff;
  border: 1px solid var(--accent-ink);
  padding: 14px 28px;
  border-radius: 999px;
  font: 400 0.95rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.devis-submit:hover { filter: brightness(0.92); }
.devis-note { font-size: 0.8rem; color: #a9a9a9; margin: 12px 0 0; }
.devis-msg { border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; color: #fff; }
.devis-msg p { margin: 0; }
.devis-msg--ok { background: rgba(176, 141, 87, 0.18); border: 1px solid var(--accent); }
.devis-msg--err { background: rgba(224, 122, 95, 0.15); border: 1px solid #e07a5f; }

/* ------------------------------------------------------------------ Pied de page */
.site-footer { background: var(--soft); padding: 40px 16px; text-align: center; font-size: 0.9rem; }
.site-footer__inner { max-width: 900px; margin: 0 auto; }
.site-footer .brand { display: flex; justify-content: center; margin-bottom: 16px; }
.site-footer .brand img { height: 110px; width: auto; }
.site-footer a { color: var(--ink); }
.site-footer__copy { color: var(--muted); }

/* Pages simples (mentions, confidentialité…) */
.page-main { padding: clamp(48px, 8vw, 96px) 16px; }
.page-main > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.page-main .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
.page-main .wp-block-post-content h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.page-main .wp-block-post-content p,
.page-main .wp-block-post-content li { color: #333; }
.page-main .wp-block-post-content ul { padding-left: 1.2em; margin: 0 0 1em; }
/* La mise en page « flow » de WordPress met les marges des enfants à zéro (spécificité 0,1,0) :
   on rétablit l'espacement des paragraphes et listes avec un sélecteur plus spécifique. */
.page-main .wp-block-post-content > p,
.page-main .wp-block-post-content > ul { margin-block-end: 1em; }
.page-main .wp-block-post-content li { margin-bottom: 6px; }
.page-main a { color: var(--accent-ink); }
p.note-juridique {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}
p.maj { margin-top: 40px; font-size: 0.85rem; color: var(--muted) !important; }
.devis-check label a { color: #e9d9b8; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .apropos__grid { grid-template-columns: 1fr; }
  .services__grid, .realisations__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .site-header .brand img { height: 50px; }
  .site-header .wp-block-buttons { display: none; }
  .services__grid, .realisations__grid { grid-template-columns: 1fr; }
  .devis-grid { grid-template-columns: 1fr; }
  p.float-card { right: 12px; bottom: 12px; }
  .tour__step { padding: 88px 16px 72px; }
  .tour__card { padding: 22px; }
  p.tour__skip { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ================================================================== Site multipage (v1.3) */
section.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding: 140px 16px 72px; color: #fff; overflow: hidden; background: #1a1a1a; }
figure.wp-block-image.page-hero__img { position: absolute; inset: 0; margin: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
section.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.2) 70%); }
.page-hero__content { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-hero__content .eyebrow { color: #e9d9b8; }
.page-hero__content .lead { max-width: 60ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1200px; margin: 0 auto; }
.split__media figure.wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service-card figure.wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card > h3, .service-card > p { padding: 0 22px; }
.service-card > h3 { margin-top: 20px; }
.service-card > p { color: var(--muted); }
p.card-link { margin-top: auto !important; padding-bottom: 22px !important; }
p.card-link a { color: var(--accent-ink); text-decoration: none; font-weight: 400; }
p.section-note { text-align: center; margin: 32px auto 0; color: var(--muted); }
section.services-home, section.process, section.service-prestations, section.about-values { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--accent); }
p.step__num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.step > p:last-child { color: var(--muted); margin: 0; }
ul.checklist { list-style: none; padding: 0; max-width: 900px; margin: 0 auto; }
ul.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
ul.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 11px; color: var(--accent); font-weight: 500; }
ul.checklist--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
section.cta-band { background: #1a1a1a; color: #fff; text-align: center; }
section.cta-band .section-sub { color: #cfcfcf; }
.wp-block-buttons.actions--center, section.cta-band .wp-block-buttons.actions { justify-content: center; }
section.realisations-3d { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 72px); max-width: 1200px; margin: 0 auto; }
ul.contact-list { list-style: none; padding: 0; }
ul.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-form { background: #1a1a1a; border-radius: var(--radius); padding: 32px; color: #fff; }
.contact-form .eyebrow { color: #e9d9b8; }
section.contact-map { background: var(--soft); }
.carte { max-width: 1200px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #e9e6df; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.carte iframe { width: 100%; height: 420px; border: 0; display: block; }
.carte.est-chargee { padding: 0; min-height: 0; }
.carte__bouton { background: var(--accent-ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 400 .95rem var(--sans); cursor: pointer; }
.carte__note { font-size: .8rem; color: var(--muted); margin: 0; }
.site-footer { text-align: left; padding: 56px 16px 24px; }
.site-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
.site-footer h3 { font-size: 1.2rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; }
.site-footer .brand { justify-content: flex-start; }
.site-footer__bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
.site-footer__bottom p { margin: 0 !important; }
.nav .wp-block-navigation__submenu-container { border: 1px solid var(--line) !important; border-radius: 8px; padding: 8px 0; min-width: 220px !important; }
.nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 16px; }
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cards, .steps, .steps--4, .site-footer__cols, .cards--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cards, .cards--3, .steps, .steps--4, .site-footer__cols, .realisations__grid, ul.checklist--cols { grid-template-columns: 1fr; }
  section.page-hero { min-height: 52vh; padding-top: 110px; }
}

/* ================================================================== Retouches client (v1.5)
   Poppins pour les textes, menu plus marqué, en-tête flottant arrondi sur téléphone,
   cartes de la visite en verre dépoli avec titres or lumineux. */
body { font-weight: 300; font-size: 16px; }
.nav .wp-block-navigation-item__content { font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em; }
.wp-block-button.btn .wp-block-button__link { font-weight: 500; }
.eyebrow { font-weight: 500; }

/* Visite : cartes en verre dépoli (fond sombre translucide + flou gaussien) */
.tour__card {
  max-width: 420px;
  padding: 22px 26px;
  border-radius: 22px;
  color: #fff;
  background: rgba(14, 16, 20, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.tour__card .eyebrow { color: #f1d7a0; margin-bottom: 0.7rem !important; }
.tour__card h2,
.tour__card--hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #ffe2a0;
  /* Néon net (demande client) : contour sombre d'1 px pour la lisibilité,
     lueur dorée fine et serrée — plus de grand halo qui faisait baver les lettres. */
  text-shadow: 0 1px 1px rgba(20, 12, 0, 0.55), 0 0 2px rgba(255, 214, 140, 0.6), 0 0 10px rgba(232, 170, 70, 0.35);
}
.tour__card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; }
.tour__card p { color: #ffffff; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.tour__card .wp-block-button.btn--ghost .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.tour__card--hero {
  max-width: 720px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tour__card--hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; }
/* Accueil : le titre remonte vers le milieu de l'écran au lieu de rester collé en bas */
.tour__step:first-child { align-items: center; padding-bottom: clamp(56px, 14vh, 140px); }

@media (max-width: 768px) {
  /* En-tête flottant : pastille arrondie, marges sur les côtés, blanc opaque
     (demande client : les vraies couleurs du logo doivent ressortir, pas d'effet verre) */
  header.wp-block-template-part { padding: 10px 12px 0; pointer-events: none; }
  .site-header {
    pointer-events: auto;
    padding: 8px 10px 8px 16px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(8, 15, 40, 0.22);
  }
  .site-header .brand img { height: 42px; }
  /* Sur l'accueil et les pages à bandeau photo, l'en-tête flotte au-dessus de l'image */
  .home header.wp-block-template-part,
  body:has(section.page-hero) header.wp-block-template-part { margin-bottom: -72px; }
  /* Bouton menu : bleu du logo, icône blanche */
  .nav .wp-block-navigation__responsive-container-open {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 0;
    background: #395da0;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(57, 93, 160, 0.35);
  }
  .nav .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.15rem; font-weight: 500;
  }
  .tour__step { padding: 100px 12px 96px; }
  .tour__card { padding: 18px 20px; border-radius: 20px; max-width: none; }
  .tour__step:first-child { align-items: flex-start; padding-top: 22vh; padding-top: 22svh; }
}

/* ================================================================== Menu mobile (v1.5)
   Panneau organisé en cartes : titre « Menu », bouton fermer rond, une ligne par page
   avec pastille-icône et chevron, Services repliable (assets/js/menu.js),
   devis en orange et WhatsApp en vert. Les liens restent des blocs Navigation éditables. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mobile { display: none !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 22px 16px 32px !important;
  background: #f6f7fb !important;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { position: relative; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
  content: "Menu";
  display: block;
  margin: 8px 4px 22px;
  font: 600 1.5rem/1 var(--sans);
  color: #1f2547;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  top: 0 !important; right: 0 !important;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e7e9f2; color: #1f2547;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: stretch !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px !important; width: 100%; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; position: relative; display: block !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-ico > .wp-block-navigation-item__content {
  display: flex !important; align-items: center; gap: 14px;
  width: 100%;
  padding: 12px 48px 12px 12px !important;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eceef5;
  box-shadow: 0 6px 18px rgba(31, 37, 71, 0.06);
  font: 500 1.02rem/1.2 var(--sans) !important;
  color: #1f2547 !important;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-ico > .wp-block-navigation-item__content::before {
  content: ""; flex: 0 0 36px; height: 36px; border-radius: 50%;
  background: var(--ico-bg, #2a3560) var(--ico) center / 18px no-repeat;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-ico:not(.has-child) > .wp-block-navigation-item__content::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border: solid #ea5e2e; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-ico > .wp-block-navigation-item__content[aria-current="page"] { border-color: #ea5e2e; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-cta > .wp-block-navigation-item__content { background: linear-gradient(135deg, #ea5e2e, #c94e22); border-color: transparent; color: #fff !important; font-weight: 600 !important; box-shadow: 0 10px 22px rgba(234, 94, 46, 0.32); }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-whatsapp > .wp-block-navigation-item__content { background: #1fa855; border-color: transparent; color: #fff !important; font-weight: 600 !important; box-shadow: 0 10px 22px rgba(31, 168, 85, 0.3); }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-cta > .wp-block-navigation-item__content::after,
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-whatsapp > .wp-block-navigation-item__content::after { border-color: #fff !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .nav-cta { margin-top: 6px; }
/* Services : chevron vers le bas, sous-menu replié tant qu'on n'a pas touché le chevron */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle {
  display: grid !important; place-items: center;
  position: absolute; right: 8px; top: 8px;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border-radius: 12px; color: #ea5e2e; background: transparent; border: 0;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { width: 14px; height: 14px; stroke-width: 2.4; transition: transform 0.2s; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child.mqg-sub-open > .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg); }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation__submenu-container { display: none !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child.mqg-sub-open > .wp-block-navigation__submenu-container {
  display: flex !important; flex-direction: column; gap: 8px;
  padding: 10px 0 2px 22px !important; margin: 0; border: 0 !important; background: none !important;
  position: static !important; opacity: 1 !important; visibility: visible !important; width: auto !important; height: auto !important;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block; padding: 11px 16px !important; border-radius: 14px;
  background: #fff; border: 1px solid #eceef5;
  font: 400 0.95rem/1.2 var(--sans) !important; color: #1f2547 !important;
}
.nav-ico--accueil { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); --ico-bg: #2a3560; }
.nav-ico--apropos { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); --ico-bg: #ea5e2e; }
.nav-ico--services { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); --ico-bg: #ea5e2e; }
.nav-ico--realisations { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 19'/%3E%3C/svg%3E"); --ico-bg: #395da0; }
.nav-ico--contact { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); --ico-bg: #2a3560; }
.nav-ico--devis { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); --ico-bg: rgba(255,255,255,0.22); }
.nav-ico--whatsapp { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5'/%3E%3C/svg%3E"); --ico-bg: rgba(255,255,255,0.22); }
/* Un backdrop-filter enferme les éléments position:fixed : on le coupe quand le menu est ouvert,
   sinon le panneau reste prisonnier de la pastille de l'en-tête. */
.site-header:has(.is-menu-open) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* Chevron de Services : vers le bas fermé, vers le haut ouvert (indépendant de l'état interne du bloc) */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { transform: none !important; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .has-child.mqg-sub-open > .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg) !important; }

/* ================================================================== Charte du logo (v1.6)
   Bleu nuit + bleu du logo + orange du logo, fond sable chaud au lieu du blanc.
   Rythme : chaque type de section a sa couleur ; textes plus gros, plus gras, contrastés.
   Pictogrammes métier en pastilles (classes ico--*), bandeaux photo à dégradé renforcé. */
:root {
  --navy: #13214a;
  --navy-2: #1b2d5e;
  --blue: #395da0;
  --orange: #ea5e2e;
  --orange-btn: #cf4f1f;     /* orange des boutons : contraste suffisant avec le blanc */
  --sand: #f5efe7;
  --ink: #141b2e;
  --muted: #464e63;
  --line: #e4ddd2;
  --accent: #ea5e2e;
  --accent-ink: #b8441b;
  --radius: 18px;
  --serif: "Poppins", system-ui, sans-serif;
}
body { font-size: 17px; font-weight: 400; color: var(--ink); background: var(--sand); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-weight: 400; }
.eyebrow { color: var(--orange); font-weight: 600; letter-spacing: 0.18em; }
.section-head h2::after,
.split__text h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), #f39a54); margin-top: 18px;
}
.section-head h2::after { margin-left: auto; margin-right: auto; }
.section-sub { font-size: 1.08rem; color: var(--muted); }

/* Boutons : orange du logo */
.wp-block-button.btn .wp-block-button__link,
.devis-submit, .carte__bouton {
  background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; font-weight: 600;
  box-shadow: 0 10px 24px rgba(207, 79, 31, 0.28);
}
.wp-block-button.btn .wp-block-button__link:hover, .devis-submit:hover, .carte__bouton:hover { filter: none; background: #b8441b; }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.wp-block-button.btn--ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; }

/* Fonds par section */
section.home-intro, section.about-story, section.service-intro, section.materiaux,
section.realisations-3d, section.contact-grid { background: var(--sand); }
section.realisations, section.about-values { background: #fff; }
section.atouts, section.services-home, section.services-list, section.about-why, section.process,
section.realisations-list, section.contact-map {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(57, 93, 160, 0.55), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(234, 94, 46, 0.18), transparent 60%),
    var(--navy);
  color: #fff;
}
section.about-mission, section.service-prestations {
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  color: #fff;
}
section.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, #ea5e2e, #c2471c);
  color: #fff;
}
section.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
section.cta-band .section-sub { color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; }
section.cta-band .wp-block-button.btn .wp-block-button__link { background: #fff; color: var(--orange-btn); border-color: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }

/* Textes sur fond sombre (bleu nuit, bleu) */
:is(section.atouts, section.services-home, section.services-list, section.about-why, section.process,
    section.realisations-list, section.contact-map, section.about-mission, section.service-prestations) :is(h2, h3) { color: #fff; }
:is(section.atouts, section.services-home, section.services-list, section.about-why, section.process,
    section.realisations-list, section.contact-map, section.about-mission, section.service-prestations) .eyebrow { color: #ff9a6c; }
:is(section.atouts, section.services-home, section.services-list, section.about-why, section.process,
    section.realisations-list, section.contact-map, section.about-mission, section.service-prestations) :is(.section-sub, .section-note) { color: rgba(255, 255, 255, 0.82); }
section.services-home p.section-note a { color: #ffb08c; }

/* Pastilles pictogrammes */
.service-card > h3::before, .card[class*="ico--"] > h3::before, .atout > h3::before {
  content: ""; display: block; width: 58px; height: 58px; border-radius: 18px;
  background: var(--orange) var(--ico) center / 28px no-repeat;
  box-shadow: 0 12px 24px rgba(234, 94, 46, 0.35);
}

/* Bande des atouts (accueil, sous la visite) */
section.atouts { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.atouts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.atout {
  padding: 26px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.atout > h3 { font-size: 1.15rem; margin: 0 0 8px; }
.atout > h3::before { margin-bottom: 18px; }
.atout > p { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 0.98rem; }

/* Cartes services : blanches, pastille qui chevauche la photo */
.service-card {
  border: 0; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 40px rgba(8, 15, 40, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(8, 15, 40, 0.26); }
.service-card figure.wp-block-image { overflow: hidden; }
.service-card figure.wp-block-image img { transition: transform 0.5s ease; }
.service-card:hover figure.wp-block-image img { transform: scale(1.05); }
.service-card > h3 { color: var(--navy) !important; margin-top: 0; position: relative; z-index: 1; }
.service-card > h3::before { margin: -29px 0 16px; border: 4px solid #fff; }
.service-card > p { color: var(--muted); }
p.card-link a { color: var(--accent-ink); font-weight: 600; }

/* Cartes mission / vision / équipe sur fond bleu */
.card {
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card > h3 { color: #fff; }
.card[class*="ico--"] > h3::before { margin-bottom: 18px; }
.card > p:last-child { color: rgba(255, 255, 255, 0.85); }

/* Étapes : grands numéros orange */
.step {
  border: 0; border-radius: 20px; padding: 28px 24px;
  background: #fff; box-shadow: 0 14px 30px rgba(8, 15, 40, 0.10);
  border-top: 0; position: relative; overflow: hidden;
}
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--blue)); }
p.step__num {
  font: 700 2.6rem/1 var(--sans); color: transparent; margin-bottom: 14px;
  -webkit-text-stroke: 1.5px var(--orange);
}
.step > h3 { color: var(--navy); }
.step > p:last-child { color: var(--muted); }
section.process .step { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
section.process .step > h3 { color: #fff; }
section.process .step > p:last-child { color: rgba(255, 255, 255, 0.82); }

/* Listes à coches : coche orange en pastille */
ul.checklist li { padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
ul.checklist li::before {
  content: "✓"; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 0.85rem; font-weight: 700;
}
:is(section.about-why, section.service-prestations) ul.checklist li { border-color: rgba(255, 255, 255, 0.16); color: #fff; }
:is(section.about-why, section.service-prestations) ul.checklist li strong { color: #ffb08c; }

/* Images des blocs texte + image : coins arrondis et cadre orange décalé */
.split__media figure.wp-block-image img {
  border-radius: 22px;
  box-shadow: 18px 18px 0 0 var(--orange), 0 24px 50px rgba(8, 15, 40, 0.18);
}
.split--reverse .split__media figure.wp-block-image img { box-shadow: -18px 18px 0 0 var(--blue), 0 24px 50px rgba(8, 15, 40, 0.18); }
.split__text p { font-size: 1.05rem; color: var(--muted); }

/* Galeries : légende en surimpression bien lisible */
.realisations__grid figure.wp-block-image { position: relative; overflow: hidden; border-radius: 20px; }
.realisations__grid figure.wp-block-image img { border-radius: 0; transition: transform 0.5s ease; }
.realisations__grid figure.wp-block-image:hover img { transform: scale(1.06); }
.realisations__grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(10, 18, 40, 0.92), rgba(10, 18, 40, 0));
  color: #fff !important; font: 600 1.05rem/1.3 var(--sans);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Bandeaux photo des pages : texte blanc franc sur dégradé bleu nuit */
section.page-hero { min-height: 68vh; background: var(--navy); }
section.page-hero::after {
  background:
    linear-gradient(to top, rgba(10, 18, 40, 0.94) 0%, rgba(10, 18, 40, 0.55) 45%, rgba(10, 18, 40, 0.25) 100%),
    linear-gradient(to right, rgba(10, 18, 40, 0.65), rgba(10, 18, 40, 0) 70%);
}
section.page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.page-hero__content h1 { color: #fff; font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.2rem); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.page-hero__content .lead { color: #fff; font-size: 1.2rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.page-hero__content .eyebrow {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--orange); color: #fff; letter-spacing: 0.14em;
}

/* Contact */
ul.contact-list li { border-color: var(--line); font-size: 1.02rem; }
ul.contact-list a { color: var(--accent-ink); font-weight: 600; }
.contact-form { background: var(--navy); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 50px rgba(8, 15, 40, 0.25); }
.contact-form .eyebrow { color: #ff9a6c; }
.devis-msg--ok { background: rgba(234, 94, 46, 0.16); border-color: var(--orange); }
.carte { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.carte__note, .carte__note a { color: rgba(255, 255, 255, 0.78); }

/* Pied de page bleu nuit, logo sur badge blanc */
.site-footer {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(57, 93, 160, 0.45), transparent 60%),
    #0f1a3a;
  color: rgba(255, 255, 255, 0.82);
  border-top: 6px solid var(--orange);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb08c; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer h3::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--orange); margin-top: 10px; }
.site-footer .brand {
  display: inline-flex !important; padding: 14px 18px; margin-bottom: 18px;
  background: #fff; border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.35);
}
.site-footer .brand img { height: 88px; }
.site-footer__bottom { border-top-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.7); }
.site-footer__copy { color: rgba(255, 255, 255, 0.7); }

/* Pages simples (mentions, confidentialité) : fond blanc pour la lecture */
body:has(main.page-main) { background: #fff; }

@media (max-width: 900px) {
  .atouts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .atouts__grid { grid-template-columns: 1fr; }
  .split__media figure.wp-block-image img { box-shadow: 10px 10px 0 0 var(--orange), 0 18px 36px rgba(8, 15, 40, 0.18); }
  .split--reverse .split__media figure.wp-block-image img { box-shadow: -10px 10px 0 0 var(--blue), 0 18px 36px rgba(8, 15, 40, 0.18); }
  section.page-hero { min-height: 60vh; }
}
.ico--architecture { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Cpath d='m10.8 9.7-5.3 10.8M13.2 9.7l5.3 10.8M7.3 16.5h9.4'/%3E%3C/svg%3E"); }
.ico--renovation { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='14' height='6' rx='1.5'/%3E%3Cpath d='M17 6h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-7v3'/%3E%3Crect x='10.5' y='14' width='3' height='7' rx='1'/%3E%3C/svg%3E"); }
.ico--construction { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18h18'/%3E%3Cpath d='M5 18v-3a7 7 0 0 1 14 0v3'/%3E%3Cpath d='M10 8.3V6h4v2.3'/%3E%3Cpath d='M12 8v5'/%3E%3C/svg%3E"); }
.ico--design-interieur { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11V9a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 13a2 2 0 0 1 4 0v2h10v-2a2 2 0 0 1 4 0v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M6 18v2M18 18v2'/%3E%3C/svg%3E"); }
.ico--materiaux { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 9.7h18M3 14.3h18M9 5v4.7M15 5v4.7M6 9.7v4.6M12 9.7v4.6M18 9.7v4.6M9 14.3V19M15 14.3V19'/%3E%3C/svg%3E"); }
.ico--mission { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.ico--vision { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ico--equipe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 20a6.5 6.5 0 0 0-2.5-5.1'/%3E%3C/svg%3E"); }
.ico--metiers { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.ico--interlocuteur { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E"); }
.ico--devis { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); }
.ico--finitions { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M2 9h20M12 21 8 9l4-6 4 6z'/%3E%3C/svg%3E"); }
/* v1.6 — ajustements après test */
section.cta-band .wp-block-button.btn--ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; }
section.cta-band .wp-block-button.btn--ghost-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.14); }
/* Page Services : cartes sur fond sable, la méthode reste en bleu nuit juste après */
section.services-list { background: var(--sand); color: var(--ink); }
.split__text p.eyebrow { color: var(--orange); font-size: 0.8rem; }
/* Logo du pied de page plus grand : la phrase « La maison des professionnels » reste lisible */
.site-footer .brand img { height: 120px; }
@media (max-width: 600px) { .site-footer .brand img { height: 104px; } }
/* Pages de service : prestations en bleu, puis méthode sur sable (alternance des fonds) */
section.service-prestations + section.process { background: var(--sand); color: var(--ink); }
section.service-prestations + section.process :is(h2, h3) { color: var(--navy); }
section.service-prestations + section.process .eyebrow { color: var(--orange); }
section.service-prestations + section.process .step { background: #fff; border: 0; box-shadow: 0 14px 30px rgba(8, 15, 40, 0.10); }
section.service-prestations + section.process .step > p:last-child { color: var(--muted); }

/* ================================================================== Devis express (v1.7)
   Formulaire en 3 étapes (extension mqg-devis) sur la carte bleu nuit de la page Contact,
   bouton WhatsApp flottant et barre de contact fixe sur téléphone. */
p.devis-intro { color: rgba(255, 255, 255, 0.82); margin-top: -4px !important; }
.devis-form { max-width: none; margin: 24px 0 0; }
.devis-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.devis-steps li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem; font-weight: 500;
}
.devis-steps li span {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); font-size: 0.8rem; font-weight: 700;
}
.devis-steps li.is-current { background: rgba(234, 94, 46, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(234, 94, 46, 0.6); }
.devis-steps li.is-current span, .devis-steps li.is-done span { background: var(--orange); color: #fff; }
.devis-steps li.is-done { color: rgba(255, 255, 255, 0.85); }
.devis-form:not(.is-wizard) .devis-steps, .devis-form:not(.is-wizard) .devis-nav { display: none; }
.devis-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.devis-step[hidden] { display: none; }
.devis-step legend { font: 600 1.2rem/1.3 var(--sans); color: #fff; margin-bottom: 16px; padding: 0; }
.devis-step legend:focus { outline: none; }

/* Étape 1 : grandes cartes à pictogramme */
.devis-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.devis-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.devis-card::before {
  content: ""; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 8px;
  background: rgba(234, 94, 46, 0.9) var(--ico) center / 22px no-repeat;
}
.devis-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.devis-card input, .devis-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.devis-card__title { font-weight: 600; color: #fff; font-size: 1rem; }
.devis-card__hint { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); line-height: 1.35; }
.devis-card:has(input:checked) { background: rgba(234, 94, 46, 0.18); border-color: var(--orange); }
.devis-card:has(input:checked)::after {
  content: "✓"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.devis-card:has(input:focus-visible), .devis-chip:has(input:focus-visible) { outline: 2px solid #ffb08c; outline-offset: 2px; }

/* Étape 2 : pastilles de choix */
.devis-choice { margin-bottom: 18px; }
.devis-choice__label { font-weight: 600; color: #fff; margin: 0 0 10px !important; font-size: 0.95rem; }
.devis-opt { font-weight: 400; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.devis-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.devis-chip {
  position: relative; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; transition: background 0.2s, border-color 0.2s;
}
.devis-chip:hover { border-color: rgba(255, 255, 255, 0.4); }
.devis-chip:has(input:checked) { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.devis-hint { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.devis-field label { color: #fff; font-weight: 500; }
.devis-field input, .devis-field textarea { font-weight: 400; }

/* Navigation et boutons d'envoi */
.devis-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.devis-nav--start { justify-content: flex-start; }
.devis-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--orange-btn);
  background: var(--orange-btn); color: #fff; font: 600 0.98rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
}
.devis-btn:hover { background: #b8441b; border-color: #b8441b; }
.devis-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.devis-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.devis-send__label { color: #fff; font-weight: 600; margin: 22px 0 12px !important; }
.devis-send { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.devis-send .devis-btn { border-radius: 18px; padding: 16px 18px; font-size: 1.02rem; }
.devis-send .devis-btn small { font-weight: 400; font-size: 0.78rem; opacity: 0.9; }
.devis-btn--wa { background: #1fa855; border-color: #1fa855; }
.devis-btn--wa:hover { background: #178a45; border-color: #178a45; }
.devis-btn--mail { background: var(--orange-btn); }
.devis-form.is-sending .devis-send .devis-btn { opacity: 0.6; pointer-events: none; }

/* Confirmation */
.devis-done { text-align: center; padding: 12px 0; color: #fff; }
.devis-done h3 { color: #fff; font-size: 1.6rem; }
.devis-done p { color: rgba(255, 255, 255, 0.88); }
.devis-done strong { color: #ffb08c; }
p.devis-done__icon {
  width: 64px; height: 64px; margin: 0 auto 16px !important; border-radius: 50%;
  display: grid; place-items: center; background: #1fa855; font-size: 1.8rem; font-weight: 700; color: #fff;
}
.devis-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px !important; }

/* Contact : le formulaire prend plus de place que les coordonnées */
.contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }

/* Bouton WhatsApp flottant (ordinateur) */
.mqg-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #1fa855; color: #fff; text-decoration: none; font: 600 0.95rem/1 var(--sans);
  box-shadow: 0 14px 30px rgba(31, 168, 85, 0.4);
  transition: transform 0.2s;
}
.mqg-wa-float:hover { transform: translateY(-3px); }
.mqg-wa-float svg, .mqg-mobile-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Barre de contact fixe (téléphone) */
.mqg-mobile-bar { display: none; }
@media (max-width: 768px) {
  .mqg-wa-float { display: none; }
  .mqg-mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 6px;
    border-radius: 20px; background: rgba(19, 33, 74, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  }
  .mqg-mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px; border-radius: 14px; color: #fff; text-decoration: none; font: 600 0.78rem/1 var(--sans);
  }
  .mqg-mobile-bar a.mqg-mobile-bar__devis { background: var(--orange-btn); }
  .mqg-mobile-bar a.mqg-mobile-bar__wa { background: #1fa855; }
  body { padding-bottom: 84px; }
  p.tour__skip { bottom: 96px; }
  .devis-send { grid-template-columns: 1fr; }
  .devis-steps li { font-size: 0; justify-content: center; }
  .devis-steps li span { font-size: 0.8rem; }
  .devis-steps li.is-current { font-size: 0.8rem; flex: 2; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
/* Crédit de conception (bas du pied de page) */
p.site-footer__credit { color: rgba(255, 255, 255, 0.7); }
p.site-footer__credit a { color: #ffb08c; font-weight: 600; }
p.site-footer__credit a:hover { color: #fff; }
/* Le bouton WhatsApp flottant ne doit pas cacher la dernière ligne du pied de page */
@media (min-width: 769px) { .site-footer { padding-bottom: 96px; } }
/* Réalisations rangées par thème */
section.realisations-list h2.gallery-title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 auto 28px !important; color: #fff; }
section.realisations-list h2.gallery-title::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--orange); margin: 14px auto 0; }
section.realisations-list .realisations__grid + h2.gallery-title { margin-top: clamp(48px, 7vw, 80px) !important; }

/* ================================================================== En-tête ordinateur (v1.8)
   Demande client : barre de menu en pastille blanche arrondie, centrée et flottante
   (même esprit que sur téléphone). Logo à gauche, liens au centre, devis à droite ;
   la page en cours est en orange et soulignée. */
@media (min-width: 769px) {
  header.wp-block-template-part { padding: 14px 24px 0; pointer-events: none; }
  .site-header {
    pointer-events: auto;
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 10px 8px 26px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 14px 36px rgba(8, 15, 40, 0.16);
  }
  .site-header .brand img { height: 52px; }
  .site-header .nav { flex: 1; display: flex; justify-content: center; }
  .nav .wp-block-navigation__container { gap: 34px; }
  .nav .wp-block-navigation-item__content { position: relative; font-weight: 500; font-size: 0.98rem; color: #1f2547; padding: 6px 0; }
  .nav .wp-block-navigation-item__content::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform 0.2s ease;
  }
  .nav .wp-block-navigation-item__content:hover { color: var(--accent-ink); }
  .nav .wp-block-navigation-item__content:hover::after,
  .nav .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
  .nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--accent-ink); }
  .nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { content: none; }
  .nav .wp-block-navigation__submenu-container { border-radius: 16px !important; border: 0 !important; box-shadow: 0 18px 40px rgba(8, 15, 40, 0.16); padding: 10px 0 !important; }
  .site-header .wp-block-button.btn .wp-block-button__link { padding: 13px 24px; }
  /* Accueil et pages à bandeau photo : la pastille flotte au-dessus de l'image */
  .home header.wp-block-template-part,
  body:has(section.page-hero) header.wp-block-template-part { margin-bottom: -90px; }
  section.page-hero { padding-top: 170px; }
}
@media (min-width: 769px) {
  .nav .wp-block-navigation-item__content[aria-current="true"] { color: var(--accent-ink); }
  .nav .wp-block-navigation-item__content[aria-current="true"]::after { transform: scaleX(1); }
}

/* Pied de page : colonne « Nos réseaux » avec le code QR (même lien que le bouton) */
@media (min-width: 901px) { .site-footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1.2fr 0.9fr; } }
.site-footer__qr figure.qr-code { margin: 4px 0 10px; }
.site-footer__qr figure.qr-code img {
  width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.3);
  image-rendering: pixelated;
}
p.qr-legende { margin: 0 0 8px !important; color: #fff; font-weight: 600; letter-spacing: 0.04em; }
.site-footer__qr .wp-block-buttons.qr-actions { margin: 0; }
.site-footer__qr .wp-block-button.btn .wp-block-button__link { padding: 9px 18px; font-size: 0.85rem; }
