/*
Theme Name: HERON
Theme URI: https://heron-solutions.fr
Author: HERON — Thomas Cebadero
Description: Thème bloc sur mesure du site HERON, constat visuel aérien d'ouvrages. Après activation : Apparence > Installer HERON.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heron
Tags: block-theme, full-site-editing
*/

/* socle WordPress : figures sans marge, hauteur d'image libre */
figure.wp-block-image { margin: 0; }
img { height: auto; }
/* HERON — maquette d'accueil
   Registre relevé sur spiebatignolles.fr : sans-serif condensée en capitales
   pour les titres + Inter pour le texte ; accent dominant unique (orange du
   véhicule, valeur et saturation du jaune d'origine) ; fond gris froid ; angles
   droits ; bandes pleine largeur séparées par des filets. */

:root {
  --accent: #F36A12;
  --ink: #282828;
  --text: #222222;
  --bg: #F9F9F9;
  --white: #FFFFFF;
  --line: #CACACA;
  --gutter: 24px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Inter", Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; hyphens: none; text-wrap: balance; }
p { margin: 0; }

/* ---------- boutons et liens ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  height: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.btn-text {
  display: flex; align-items: center;
  padding: 0 32px;
  background: var(--ink);
  color: var(--white);
  transition: background .2s;
}
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 50px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover .btn-icon { background: var(--ink); color: var(--white); }
.btn:hover .btn-text { background: #000; }

.link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link:hover { color: #000; border-bottom-width: 2px; }

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  padding: 4px 6px;
}
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #555; }

.underline { width: 120px; height: 16px; background: var(--accent); }

h2 {
  font: 600 64px/1 var(--display);
  text-transform: uppercase;
  color: var(--text);
}
h2.big { font-size: 80px; }
h2 span { color: var(--accent); }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 64px; width: auto; }
.brand-name {
  font: 600 34px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a { text-decoration: none; font-size: 16px; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-cta { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.main-nav .nav-cta:hover { text-decoration: none; border-bottom-width: 2px; }
/* Seul élément arrondi du site : demandé par le client. */
.main-nav .nav-devis {
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s;
}
.main-nav .nav-devis:hover { background: var(--accent); text-decoration: none; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 7px 0; transition: transform .2s; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(900px, max(640px, calc(100vh - var(--header-h))));
}
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
}
.hero-link {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 16px;
  color: var(--white); text-decoration: none; font-size: 16px;
}
.hero-link:hover { text-decoration: underline; }
.ring {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--white); border-radius: 50%;
}
.hero-field {
  background: var(--accent);
  padding: 56px var(--gutter) 48px;
  display: flex; flex-direction: column;
}
.hero h1 {
  font: 600 112px/1 var(--display);
  text-transform: uppercase;
  color: var(--ink);
  max-width: 680px;
}
.hero-lead { margin-top: auto; padding-top: 48px; font-size: 20px; line-height: 1.4; max-width: 560px; color: var(--ink); }
.hero-field .btn { margin-top: 40px; align-self: flex-start; }

/* ---------- trois engagements ---------- */
.overlap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 0;
  min-height: 545px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.overlap.reverse { grid-template-columns: 480px minmax(0, 1fr); }
.overlap-text { padding: 80px var(--gutter) 80px; max-width: 760px; }
.overlap.reverse .overlap-text { padding-left: 40px; }
.overlap h2 { max-width: 700px; }
.overlap .underline { margin: 48px 0 40px; }
.overlap-text p { max-width: 560px; font-size: 16px; line-height: 1.5; }

.card {
  position: relative; z-index: 2;
  align-self: start;
  margin: -32px var(--gutter) 40px 0;
  padding: 24px;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.overlap.reverse .card { margin: -32px 0 40px var(--gutter); border-left: 0; border-right: 1px solid var(--line); }
.hero + .overlap .card { margin-top: 24px; }
.card-photo { aspect-ratio: 16 / 9.5; overflow: hidden; margin-bottom: 8px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-photo img { transform: scale(1.04); }
.card h3 { font: 600 16px/1.4 var(--sans); }
.card .link { align-self: flex-start; margin-top: 16px; }

/* ---------- savoir-faire ---------- */
.knowledge { padding: 156px var(--gutter) 156px; background: var(--bg); border-bottom: 1px solid var(--line); }
.knowledge-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 72px; }
.knowledge-list { list-style: none; margin: 0; padding: 0; }
.knowledge-list li { border-bottom: 1px solid var(--line); max-width: 520px; }
.k-tab {
  display: block; width: 100%;
  padding: 18px 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 32px/1.1 var(--display);
  color: var(--text);
  transition: background .2s;
}
.k-tab:hover { background: rgba(243, 106, 18,.18); }
.k-tab.is-active { background: var(--accent); }
.knowledge-panels { position: relative; }
.k-panel { display: none; position: relative; padding: 32px 0 0 32px; }
.k-panel.is-active { display: block; animation: fade .4s ease; }
.k-panel::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 160px; height: 160px; background: var(--accent);
}
.k-panel figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.k-panel figure img { width: 100%; height: 100%; object-fit: cover; }
.k-card {
  position: relative;
  width: min(440px, 80%);
  margin: -120px 0 0 -32px;
  padding: 28px 24px 24px;
  background: var(--white);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- qui sommes-nous ---------- */
.join {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding: 156px var(--gutter) 156px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.join-cards { display: grid; grid-template-columns: 1fr 1fr; align-self: start; border: 1px solid var(--line); border-left: 0; background: var(--white); }
.person { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.person + .person { border-left: 1px solid var(--line); }
.person figure { margin: 0 -24px 12px; aspect-ratio: 4 / 3.4; overflow: hidden; }
.person figure img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font: 600 16px/1.4 var(--sans); }
.person p { color: #555; font-size: 15px; line-height: 1.5; }
.person .link { align-self: flex-start; margin-top: 8px; }
.join-text { max-width: 660px; }
.join-text .underline, .figures-text .underline { margin: 48px 0 40px; }
.join-text p, .figures-text p { font-size: 15px; line-height: 1.6; }
.join-text p + p, .figures-text p + p { margin-top: 16px; }
p.strong { font-weight: 600; }
.join-text .btn, .figures-text .btn { margin-top: 56px; }

/* ---------- projets ---------- */
.news { padding: 156px var(--gutter) 0; background: var(--bg); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; }
.feature {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 64px;
  background: var(--white);
}
.feature-text { padding: 48px 24px 48px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 620px; }
.feature h3 { font: 600 40px/1.05 var(--display); }
.feature p { font-size: 15px; line-height: 1.6; color: #444; }
.feature .btn { margin-top: 16px; }
.feature-photo { position: relative; overflow: hidden; min-height: 460px; }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-accent { position: absolute; left: 0; bottom: -16px; width: 120px; height: 16px; background: var(--accent); }
.news-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 32px calc(-1 * var(--gutter)) 0;
  border-top: 1px solid var(--line);
}
.mini { padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 20px; min-height: 260px; }
.mini + .mini { border-left: 1px solid var(--line); }
.news-row.three { grid-template-columns: repeat(3, 1fr); }
.hero-photo img.hero-toulouse { object-position: 85% 40%; }
.mini h3 { font: 600 16px/1.4 var(--sans); }
.mini .link { margin-top: auto; align-self: flex-start; }
.mini.is-yellow { background: var(--accent); margin: -24px var(--gutter) 24px; }
.mini.is-yellow .tag { background: var(--white); }
.mini.is-yellow .card-meta { color: var(--ink); }

/* ---------- chiffres ---------- */
.figures {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding: 156px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.figures-grid { display: grid; grid-template-columns: 1fr 1fr; align-self: start; border: 1px solid var(--line); background: var(--white); }
.fig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 220px; padding: 24px; text-align: center; }
.fig:nth-child(even) { border-left: 1px solid var(--line); }
.fig:nth-child(n+3) { border-top: 1px solid var(--line); }
.fig strong { font: 600 64px/1 var(--display); color: var(--text); }
.fig span { font-size: 14px; font-weight: 600; }

/* ---------- pied de page ---------- */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 1fr) 560px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-ask { padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.footer-ask h3 { font: 600 64px/1 var(--display); }
.footer-contact { font-size: 16px; line-height: 1.8; }
.footer-contact a { text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-side { background: var(--white); padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.footer-side .brand-mark { height: 56px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.footer-links a { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px; color: #666;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- menus déployables (méga-menu de la référence) ---------- */
.main-nav { gap: 24px; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 400 16px/1.4 var(--sans); color: var(--text);
}
.nav-toggle .chev { transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-toggle[aria-expanded="true"]::after,
.nav-toggle.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -30px; height: 3px; background: var(--accent);
}
.nav-toggle.is-current:not([aria-expanded="true"])::after { height: 2px; bottom: -4px; }
.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 420px;
}
.nav-item.is-open .mega { display: grid; animation: fade .25s ease; }
.mega-intro { padding: 72px var(--gutter); border-right: 1px solid var(--line); }
.mega-title { font: 600 48px/1.05 var(--display); color: var(--text); margin-bottom: 40px; }
.mega-intro p:not(.mega-title) { font-size: 16px; line-height: 1.5; max-width: 560px; color: #444; }
.mega-links { padding: 72px 48px; }
.mega-head { font-weight: 600; margin-bottom: 24px; }
.mega-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.main-nav .mega-links a { display: inline-block; padding: 8px 0; font-size: 16px; text-decoration: none; }
.main-nav .mega-links a:hover, .main-nav .mega-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* les ancres du menu ne doivent pas finir sous l'en-tête collant */
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.mega.has-two { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); }
.mega.has-two .mega-links + .mega-links { padding-left: 0; }
.mega-side { padding: 72px 48px 72px 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.main-nav .mega-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.main-nav .mega-arrow:hover { color: var(--accent); text-decoration: none; }
.mega-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 20, 20, .55); }
.mega-backdrop[hidden] { display: none; }

/* ---------- loupe, espace client, panneau de recherche ---------- */
.site-header { justify-content: flex-start; }
.main-nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink);
}
.icon-btn:hover { color: var(--accent); }
.icon-btn.is-current { color: var(--accent); }
.nav-account-mobile { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 72px var(--gutter) 80px;
  text-align: center;
  animation: fade .25s ease;
}
.search-panel[hidden] { display: none; }
.search-title { font: 600 64px/1.05 var(--display); color: var(--text); margin-bottom: 40px; }
.search-form { display: flex; max-width: 880px; margin: 0 auto; text-align: left; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-right: 0;
  color: var(--ink);
}
.search-field input { flex: 1; border: 0; outline: 0; font: 400 16px var(--sans); color: var(--text); background: none; height: 100%; min-width: 0; }
.search-field:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.search-form .btn { border: 0; padding: 0; background: none; cursor: pointer; font-family: var(--sans); }
.search-close {
  position: absolute; right: var(--gutter); top: 40px;
  display: inline-flex; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; font: 600 16px var(--sans); color: var(--ink);
}
.search-close > span:first-child { border-bottom: 1px solid currentColor; }
/* cercle repris tel quel de la référence (bouton Fermer de sa recherche) */
.close-ring { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; }
.search-close:hover .close-ring { background: var(--ink); color: var(--white); }
.search-results { max-width: 880px; margin: 0 auto; text-align: left; max-height: 46vh; overflow-y: auto; }
.search-results:not(:empty) { margin-top: 32px; border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results a:hover strong { color: var(--accent); }
.search-results strong { display: block; font: 600 22px/1.15 var(--display); margin-bottom: 6px; }
.search-results span { font-size: 14px; line-height: 1.5; color: #555; }
.search-results mark { background: rgba(243, 106, 18, .2); color: inherit; }
.search-results p { padding: 18px 0; font-size: 15px; color: #555; }

/* ====================== pages internes ====================== */
.main-nav a.is-current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.main-nav .nav-devis.is-current { background: var(--accent); text-decoration: none; }

/* en-tête de page : même partition que l'accueil, en plus bas */
.page-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-photo { min-height: 520px; }
.page-hero .hero-field { padding: 48px var(--gutter); justify-content: flex-end; }
.crumb { font-size: 14px; margin-bottom: auto; color: var(--ink); }
.crumb a { text-decoration: none; border-bottom: 1px solid currentColor; }
.page-hero h1 {
  font: 600 88px/1 var(--display);
  text-transform: uppercase;
  color: var(--ink);
  max-width: 640px;
  margin-top: 48px;
}
.page-hero .hero-lead { margin-top: 32px; padding-top: 0; }

/* bande de contenu générique */
.band { padding: 128px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.band.white { background: var(--white); }
.band.tight { padding-top: 48px; padding-bottom: 48px; }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 72px; }
.band-head .underline { margin-top: 40px; }
.band-head p { font-size: 16px; line-height: 1.6; max-width: 560px; }
.prose p { font-size: 16px; line-height: 1.6; max-width: 620px; }
.prose p + p { margin-top: 16px; }
.prose h3 { font: 600 32px/1.1 var(--display); margin-bottom: 24px; }
.prose ul { margin: 24px 0 0; padding: 0; list-style: none; max-width: 620px; }
.prose li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.5; }
.prose li:last-child { border-bottom: 1px solid var(--line); }
.prose li::before { content: ""; position: absolute; left: 0; top: 20px; width: 16px; height: 4px; background: var(--accent); }

/* texte + visuel avec carré décalé (repris du bloc savoir-faire) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse .split-visual { order: -1; }
.split-visual { position: relative; padding: 32px 0 0 32px; }
.split-visual::before { content: ""; position: absolute; left: 0; top: 0; width: 160px; height: 160px; background: var(--accent); }
.split-visual figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-visual figcaption, .gallery figcaption { font-size: 13px; color: #555; padding-top: 10px; }
.kicker { display: inline-block; margin-bottom: 20px; }

/* étapes en grille à filets */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); counter-reset: etape; }
.step { padding: 32px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.step + .step { border-left: 1px solid var(--line); }
.step::before { counter-increment: etape; content: counter(etape, decimal-leading-zero); font: 600 64px/1 var(--display); color: var(--text); }
.step h3 { font: 600 16px/1.4 var(--sans); }
.step p { font-size: 15px; line-height: 1.5; color: #444; }
.step::after { content: ""; order: -1; width: 48px; height: 6px; background: var(--accent); }

/* fiche d'identité de mission */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
.facts-grid div { padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.facts-grid div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.facts-grid div:nth-child(n+5) { border-top: 1px solid var(--line); }
.facts-grid dt { font-size: 13px; color: #555; }
.facts-grid dd { margin: 0; font: 600 28px/1.1 var(--display); }

/* galeries */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: auto; height: 100%; max-height: 560px; }
.label { display: inline-block; background: var(--ink); color: var(--white); font-size: 12px; padding: 3px 6px; margin-right: 8px; }
.label.accent { background: var(--accent); color: var(--ink); }

.segment-nav { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); background: var(--white); }
.segment-nav a { flex: 1 1 200px; padding: 20px 24px; text-decoration: none; font: 600 24px/1.1 var(--display); border-right: 1px solid var(--line); }
.segment-nav a:last-child { border-right: 0; }
.segment-nav a:hover { background: var(--accent); }
.segment-nav small { display: block; font: 400 13px/1.4 var(--sans); color: #555; margin-top: 6px; }

.note { margin-top: 40px; padding: 20px 24px; background: var(--white); border-left: 6px solid var(--accent); font-size: 15px; line-height: 1.5; max-width: 860px; }

/* formulaires */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--white); border: 1px solid var(--line); padding: 40px; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form legend { font: 600 24px/1.1 var(--display); padding: 0 0 16px; text-transform: uppercase; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: #666; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  font: 400 16px/1.4 var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  height: 50px;
  width: 100%;
}
.field textarea { height: auto; min-height: 160px; padding: 14px 16px; resize: vertical; }
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: var(--white); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; font-size: 15px; border-bottom: 1px solid var(--line); }
.choice:nth-child(odd) { border-right: 1px solid var(--line); }
.choice:nth-last-child(-n+2) { border-bottom: 0; }
.choice input { appearance: none; padding: 0; width: 20px; height: 20px; border: 2px solid var(--ink); margin: 0; flex: none; background: var(--white); }
.choice input[type="radio"] { border-radius: 50%; }
.choice input:checked { background: var(--accent); box-shadow: inset 0 0 0 3px var(--white); }
.choice:has(input:checked) { background: rgba(243, 106, 18, .1); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 8px; }
.form-foot p { font-size: 13px; color: #555; max-width: 420px; }
.form button.btn { border: 0; padding: 0; background: none; cursor: pointer; font-family: var(--sans); }
.form-done { grid-column: 1 / -1; display: none; padding: 20px 24px; background: var(--accent); color: var(--ink); font-weight: 600; }
.form.is-sent .form-done { display: block; }

.aside-card { background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.aside-card h3 { font: 600 32px/1.05 var(--display); text-transform: uppercase; }
.aside-card ol { margin: 0; padding: 0; list-style: none; counter-reset: a; }
.aside-card ol li { counter-increment: a; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.aside-card ol li::before { content: counter(a, decimal-leading-zero); font: 600 20px/1.2 var(--display); color: var(--accent); }
.aside-card .direct { font: 600 28px/1.2 var(--display); }
.aside-card .direct a { text-decoration: none; }
.aside-card .direct a:hover { text-decoration: underline; }

.map-wrap { position: relative; border: 1px solid var(--line); background: var(--bg); }
.map { height: 600px; width: 100%; background: var(--bg); }
/* fond de carte désaturé : la seule couleur vive reste l'accent de la zone */
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.95) brightness(1.04); }
.map-legend { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; }
.map-key { width: 24px; height: 16px; border: 3px solid var(--accent); background: rgba(243, 106, 18, .12); flex: none; }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip.map-label { background: var(--ink); color: var(--white); border: 0; border-radius: 0; box-shadow: none; font: 600 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; }
.leaflet-tooltip.map-label::before { display: none; }
.leaflet-bar a, .leaflet-bar { border-radius: 0 !important; }

/* portrait du fondateur : volontairement petit, posé sur le carré d'accent */
.founder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; max-width: 1040px; }
.founder-photo { position: relative; padding: 20px 0 0 20px; margin: 0; }
.founder-photo::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 120px; background: var(--accent); }
.founder-photo img { position: relative; width: 240px; height: 240px; object-fit: cover; }

/* ---------- ce que vous obtenez (savoir-faire) ---------- */
.gain-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--white); }
.gain { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.gain + .gain { border-left: 1px solid var(--line); }
.gain figure { aspect-ratio: 16 / 9; overflow: hidden; margin: -40px -40px 8px; }
.gain figure img { width: 100%; height: 100%; object-fit: cover; }
.gain h3 { font: 600 36px/1.05 var(--display); text-transform: uppercase; }
.gain > p { font-size: 16px; line-height: 1.6; color: #444; }
.gain dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.gain dl div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.gain dl div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.gain dt { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.gain dt::before { content: ""; width: 14px; height: 4px; background: var(--accent); flex: none; }
.gain dd { margin: 0; font-size: 14px; line-height: 1.5; color: #555; }

/* ---------- actualités ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.news-card { display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.news-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover img { transform: scale(1.04); }
.news-card > div { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.news-card h3 { font: 600 24px/1.15 var(--display); }
.news-card p { font-size: 14px; line-height: 1.5; color: #555; }
.news-card .link { margin-top: auto; align-self: flex-start; }
.news-card:hover h3 { color: var(--accent); }

.article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.article-body { max-width: 720px; }
.article-body > p:first-child { font-size: 20px; line-height: 1.5; color: var(--ink); }
.article-body p { font-size: 17px; line-height: 1.7; margin-top: 20px; }
.article-body h2 { font: 600 36px/1.1 var(--display); text-transform: uppercase; margin-top: 56px; }
.article-body ul { margin: 20px 0 0; padding: 0; list-style: none; }
.article-body li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.6; }
.article-body li:last-child { border-bottom: 1px solid var(--line); }
.article-body li::before { content: ""; position: absolute; left: 0; top: 22px; width: 16px; height: 4px; background: var(--accent); }
.article-body figure { margin: 40px 0 0; }
.article-body figure img { width: 100%; }
.article-body figcaption { font-size: 13px; color: #555; padding-top: 10px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }

/* ---------- interventions et prix (accueil) ---------- */
.offers { padding: 128px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.offer { position: relative; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.offer + .offer { border-left: 1px solid var(--line); }
.offer h3 { font: 600 30px/1.05 var(--display); text-transform: uppercase; }
.offer > p { font-size: 15px; line-height: 1.5; color: #444; }
.offer .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 600 36px/1.1 var(--display); color: var(--text); }
.offer .price small { display: block; font: 400 13px var(--sans); color: #555; margin-bottom: 4px; }
.offer .link { align-self: flex-start; }
.offer.is-accent { background: var(--accent); margin: -16px 0; padding-top: 48px; padding-bottom: 48px; }
.offer.is-accent > p, .offer.is-accent .price small { color: var(--ink); }
.offer.is-accent .price { border-top-color: rgba(0, 0, 0, .2); }
.offer-flag { position: absolute; top: 16px; left: 24px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.offer-foot p { font-size: 14px; color: #555; max-width: 640px; line-height: 1.5; }

/* ---------- avis clients ---------- */
.review { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.review blockquote { margin: 0; padding: 40px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.review blockquote p { font: 500 28px/1.3 var(--display); color: var(--text); }
.review blockquote p + p { margin-top: 16px; }
.review footer { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.review footer strong { font-weight: 600; }
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.stars span { width: 28px; height: 28px; background: var(--accent); display: grid; place-items: center; font: 600 15px var(--display); }
.demo-note { display: inline-block; margin-bottom: 16px; padding: 6px 10px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 960px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 600 24px/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 28px; max-width: 760px; }
.faq details p { font-size: 16px; line-height: 1.6; color: #444; }
.faq details p + p { margin-top: 12px; }

/* ---------- garanties affichées ---------- */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); margin-top: 48px; }
.proof { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.proof + .proof { border-left: 1px solid var(--line); }
.proof span { font-size: 13px; color: #555; }
.proof strong { font: 600 24px/1.15 var(--display); overflow-wrap: anywhere; }
.todo { background: #fff3e0; color: #7a3b00; font-weight: 600; padding: 0 4px; }

.rgpd { font-size: 13px; line-height: 1.5; color: #555; }
.rgpd a { color: inherit; }
.main-nav .mega-links a.mega-pdf { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #777; text-decoration: none; vertical-align: 1px; }
.main-nav .mega-links a.mega-pdf:hover { color: var(--accent); text-decoration: none; }

/* mention région sous le titre de l'accueil */
.hero-region { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-top: 20px; font: 600 30px/1.1 var(--display); text-transform: uppercase; color: var(--white); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.hero-region:hover { color: var(--ink); }
.pdf-download { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.pdf-download:hover { background: var(--ink); color: var(--white); }

/* ---------- pages légales ---------- */
.legal { max-width: 820px; }
.legal h2 { font: 600 32px/1.1 var(--display); text-transform: uppercase; margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }

/* ---------- espace client ---------- */
.account-login { min-height: 60vh; }
.login-intro { font-size: 15px; line-height: 1.5; color: #444; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.account-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 56px var(--gutter) 48px;
  background: var(--accent);
  border-bottom: 1px solid var(--line);
}
.account-head .crumb { margin-bottom: 24px; }
.account-head h1 { font: 600 72px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.account-who { margin-top: 16px; font-size: 18px; color: var(--ink); }
.account-head .link { color: var(--ink); }

.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.account-nav a { display: flex; justify-content: space-between; padding: 18px 20px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.account-nav a:last-child { border-bottom: 0; font-weight: 400; color: #555; }
.account-nav a:hover, .account-nav a.is-active { background: var(--accent); color: var(--ink); }
.account-nav span { font: 600 16px var(--display); }
.account-main { display: flex; flex-direction: column; gap: 72px; }
.account-block h2 { font: 600 40px/1.05 var(--display); text-transform: uppercase; margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.account-block { scroll-margin-top: calc(var(--header-h) + 24px); }

.constat-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: start; background: var(--white); border: 1px solid var(--line); padding: 28px; }
.constat-row + .constat-row { border-top: 0; }
.constat-date { display: flex; flex-direction: column; align-items: center; padding: 12px 0; border: 1px solid var(--line); background: var(--bg); }
.constat-date strong { font: 600 56px/1 var(--display); }
.constat-date span { font-size: 13px; margin-top: 6px; }
.constat-info { display: flex; flex-direction: column; gap: 10px; }
.constat-info h3 { font: 600 26px/1.15 var(--display); }
.constat-info h3 a { text-decoration: none; }
.constat-info h3 a:hover { color: var(--accent); }
.constat-info > p { font-size: 14px; color: #555; }
.constat-row.is-pending { opacity: .75; }
.tag-muted { background: var(--line); }
.pending-note { font-size: 14px; font-weight: 600; color: #555; padding-top: 14px; }
.dl-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.dl-list a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dl-list a:hover { color: var(--accent); }
.dl-list small { font-weight: 400; color: #666; }

.thread { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.thread p { font-size: 15px; line-height: 1.5; }
.thread-reply { padding: 12px 16px; background: var(--bg); }

.constat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; margin-top: 48px; align-items: start; }
.constat-preview { background: var(--white); border: 1px solid var(--line); }
.constat-preview figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.constat-open { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px; flex-wrap: wrap; }
.constat-open h2 { font: 600 32px/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.constat-open p { font-size: 15px; color: #444; max-width: 420px; }
.dl-cards { list-style: none; margin: 0; padding: 0; }
.dl-cards a { display: block; padding: 18px 0 18px 36px; border-top: 1px solid var(--line); text-decoration: none; position: relative; }
.dl-cards a::before { content: ""; position: absolute; left: 0; top: 20px; width: 20px; height: 20px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v7M5 7.5L8 10.5l3-3M3.5 13h9' fill='none' stroke='%23282828' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dl-cards strong { display: block; font-weight: 600; margin-bottom: 4px; }
.dl-cards span { font-size: 14px; color: #555; line-height: 1.5; }
.dl-cards a:hover strong { color: var(--accent); }

.feedback-tabs { display: flex; border: 1px solid var(--line); border-bottom: 0; background: var(--bg); }
.fb-tab { flex: 1; padding: 20px 24px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; font: 600 22px/1.1 var(--display); text-align: left; color: var(--text); }
.fb-tab:last-child { border-right: 0; }
.fb-tab:hover { background: rgba(243, 106, 18, .12); }
.fb-tab.is-active { background: var(--accent); }
.fb-panel { display: none; }
.fb-panel.is-active { display: grid; }
.rating { display: flex; gap: 0; }
.rating label { cursor: pointer; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--line); margin-left: -1px; font: 600 24px var(--display); background: var(--bg); }
.rating label:first-child span { margin-left: 0; }
.rating input:checked + span, .rating label:hover span { background: var(--accent); }
.rating input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: min(560px, calc(100% - 32px)); padding: 16px 20px; background: var(--ink); color: var(--white); border-left: 6px solid var(--accent); font-size: 15px; line-height: 1.4; }

.contact-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 40px; }
.contact-line { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-line span { font-size: 14px; color: #555; }
.contact-line a, .contact-line strong { font: 600 44px/1.05 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
/* Cinq entrées de menu et deux icônes : le menu passe en tiroir sous 1260 px. */
@media (max-width: 1259px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav > a, .nav-toggle { width: 100%; padding: 18px var(--gutter); border-top: 1px solid var(--line); font-size: 18px; }
  .main-nav .nav-cta { border-bottom: 0; }
  .main-nav .nav-devis { align-self: flex-start; width: auto; margin: 16px var(--gutter); border: 2px solid var(--accent); }
  .nav-toggle { justify-content: space-between; }
  .nav-toggle::after { display: none; }
  .nav-toggle.is-current { font-weight: 600; }
  .mega, .nav-item.is-open .mega { position: static; min-height: 0; border: 0; grid-template-columns: 1fr; background: var(--bg); }
  .mega-intro { display: none; }
  .mega-links { padding: 8px var(--gutter) 8px calc(var(--gutter) + 16px); }
  .mega-head { display: none; }
  .mega.has-two { grid-template-columns: 1fr; }
  .mega.has-two .mega-head { display: block; margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #555; }
  .mega.has-two .mega-links + .mega-links { padding-left: calc(var(--gutter) + 16px); }
  .mega-side { padding: 8px var(--gutter) 24px calc(var(--gutter) + 16px); gap: 16px; }
  .main-nav .mega-links a { font-size: 16px; padding: 10px 0; }
  .mega-backdrop { display: none; }
  .site-header.is-open .main-nav { display: flex; }
  .site-header.is-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .site-header.is-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .burger { display: block; }
  .nav-account-mobile { display: block; font-weight: 600; }
  .main-nav { margin-left: 0; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 1180px) {
  .hero h1 { font-size: 88px; }
  .overlap, .overlap.reverse { grid-template-columns: minmax(0, 1fr) 400px; }
  .overlap.reverse { grid-template-columns: 400px minmax(0, 1fr); }
  h2.big { font-size: 64px; }
  h2 { font-size: 52px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand-mark { height: 50px; }
  .brand-name { font-size: 28px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 320px; }
  .hero-field { padding: 40px var(--gutter); }
  .hero h1 { font-size: 64px; }
  .hero-region { font-size: 22px; margin-top: 14px; }
  .hero-lead { padding-top: 40px; font-size: 18px; }

  .overlap, .overlap.reverse { grid-template-columns: 1fr; min-height: 0; }
  .overlap.reverse .card { order: 2; }
  .overlap-text, .overlap.reverse .overlap-text { padding: 56px var(--gutter) 40px; }
  .card, .overlap.reverse .card, .hero + .overlap .card { margin: 0 var(--gutter) 48px; border: 0; }
  h2 { font-size: 44px; }
  h2.big { font-size: 52px; }
  .overlap .underline, .join-text .underline, .figures-text .underline { margin: 32px 0 28px; }

  .knowledge, .news { padding-top: 88px; }
  .knowledge { padding-bottom: 88px; }
  .knowledge-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 32px; }
  .k-tab { font-size: 26px; }
  .k-panel { padding: 20px 0 0 20px; }
  .k-card { margin: -64px 0 0 -20px; width: 92%; }

  .join { grid-template-columns: 1fr; padding: 88px var(--gutter); }
  .join-cards { border-left: 1px solid var(--line); order: 2; }
  .figures { grid-template-columns: 1fr; padding: 88px var(--gutter); }

  .news-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .feature { grid-template-columns: 1fr; margin-top: 40px; }
  .feature-photo { min-height: 260px; order: -1; }
  .feature h3 { font-size: 32px; }
  .news-row, .news-row.three { grid-template-columns: 1fr; }
  .mini + .mini { border-left: 0; border-top: 1px solid var(--line); }
  .mini.is-yellow { margin: 0; }

  .site-footer { grid-template-columns: 1fr; }
  .footer-ask h3 { font-size: 48px; }

  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero .hero-photo { min-height: 260px; }
  .page-hero h1 { font-size: 56px; margin-top: 32px; }
  .band { padding: 88px var(--gutter); }
  .band-head, .split, .split.reverse, .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .band-head { margin-bottom: 48px; }
  .split.reverse .split-visual { order: 0; }
  .split-visual { padding: 20px 0 0 20px; }
  .split-visual::before { width: 100px; height: 100px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .facts-grid div:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .facts-grid div:nth-child(-n+2) { border-top: 0; }
  .gallery, .gallery.two { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
  .gallery figure.wide { grid-column: 1 / -1; }
  .contact-line { grid-template-columns: 1fr; gap: 8px; }
  .search-panel { padding: 72px var(--gutter) 40px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .search-title { font-size: 40px; margin-bottom: 24px; }
  .search-form { flex-direction: column; gap: 12px; }
  .search-field { border-right: 1px solid var(--line); }
  .search-close { top: 16px; }
  .search-results { max-height: none; }
  .account-head h1 { font-size: 48px; }
  .offers { padding: 88px var(--gutter); }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer:nth-child(3) { border-left: 0; }
  .offer:nth-child(n+3) { border-top: 1px solid var(--line); }
  .offer.is-accent { margin: 0; }
  .review { grid-template-columns: 1fr; gap: 32px; }
  .review blockquote { padding: 24px; }
  .review blockquote p { font-size: 22px; }
  .proofs { grid-template-columns: 1fr; }
  .proof + .proof { border-left: 0; border-top: 1px solid var(--line); }
  .faq summary { font-size: 20px; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo img { width: 180px; height: 180px; }
  .founder-photo::before { width: 90px; height: 90px; }
  .gain-grid { grid-template-columns: 1fr; }
  .gain + .gain { border-left: 0; border-top: 1px solid var(--line); }
  .gain { padding: 24px; }
  .gain figure { margin: -24px -24px 8px; }
  .gain h3 { font-size: 28px; }
  .news-list { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 40px; }
  .article-aside { position: static; }
  .account-layout, .constat-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .account-nav { position: static; }
  .constat-row { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .constat-row > .btn, .constat-row > .pending-note { grid-column: 1 / -1; justify-self: start; }
  .constat-date strong { font-size: 40px; }
  .feedback-tabs { flex-direction: column; border-bottom: 1px solid var(--line); }
  .fb-tab { border-right: 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .fb-tab:last-child { border-bottom: 0; }
  .rating span { width: 48px; height: 48px; }
  .contact-line a, .contact-line strong { font-size: 32px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 52px; }
  .join-cards { grid-template-columns: 1fr; }
  .person + .person { border-left: 0; border-top: 1px solid var(--line); }
  .fig strong { font-size: 48px; }
  .fig { min-height: 160px; }
  .btn-text { padding: 0 20px; }
  .page-hero h1 { font-size: 44px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer + .offer, .offer:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .gain dl { grid-template-columns: 1fr; }
  .gain dl div:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps, .gallery, .gallery.two { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; padding: 24px 16px; }
  .choices { grid-template-columns: 1fr; }
  .choice:nth-child(odd) { border-right: 0; }
  .choice:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .facts-grid dd { font-size: 22px; }
  .segment-nav a { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
}


/* ==========================================================================
   ADAPTATIONS WORDPRESS
   Le CSS de la maquette est repris tel quel au-dessus. Ce qui suit fait
   correspondre le balisage des blocs natifs aux sélecteurs de la maquette :
   les éléments inline classés sont devenus des paragraphes, les SVG des
   pseudo-éléments, les boutons des core/button, l'en-tête une partie de
   modèle. Le CSS des blocs est imprimé APRÈS cette feuille : toute
   surcharge d'un style de bloc est donc plus spécifique, pas plus tardive.
   ========================================================================== */

/* ---------- socle (le reset des figures est placé en tête de feuille, voir construire.py) ---------- */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
.wp-site-blocks { padding: 0; }
.site-main, .site-footer-wrap { display: block; }
.link a, .hero-link a, .hero-region a, .mega-arrow a, .seg-titre a, .pdf-download a,
.news-card h3 a, .brand-name a, .nav-devis a, .nav-link a, .account-link a,
.wp-block-post-title a { color: inherit; text-decoration: none; }
.card-meta p { margin: 0; }
h2 em, h1 em { font-style: normal; color: var(--accent); }

/* barres décoratives : core/separator */
:where(hr.underline) { margin: 0; }
hr.wp-block-separator.underline:not(.is-style-wide):not(.is-style-dots) { width: 120px; height: 16px; background: var(--accent); border: 0; opacity: 1; margin-left: 0; margin-right: 0; }

/* ---------- boutons : core/button portant la classe btn ---------- */
.wp-block-buttons.btns { display: flex; gap: 0; }
.wp-block-button.btn { display: inline-flex; align-items: stretch; }
.wp-block-buttons > .wp-block-button.btn { margin: 0; }   /* les marges de la maquette visent le conteneur, pas le bouton */
.wp-block-button.btn .wp-block-button__link {
  display: flex; align-items: center; height: 50px; padding: 0 32px;
  background: var(--ink); color: var(--white); border-radius: 0; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; transition: background .2s;
}
.wp-block-button.btn::after {
  content: ""; flex: none; width: 50px; height: 50px; box-sizing: border-box;
  border: 1px solid var(--ink); background: var(--white);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M2 7.5h10M8 3.5l4 4-4 4' fill='none' stroke='%23282828' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
  transition: background-color .2s;
}
.wp-block-button.btn:hover .wp-block-button__link { background: #000; }
.wp-block-button.btn:hover::after {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M2 7.5h10M8 3.5l4 4-4 4' fill='none' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E");
}
.hero-field .btns { margin-top: 40px; align-self: flex-start; }
.join-text .btns, .figures-text .btns { margin-top: 56px; }
.feature .btns { margin-top: 16px; }
.footer-ask .btns, .feature-text .btns, .aside-card .btns { align-self: flex-start; }

/* ---------- liens devenus paragraphes ---------- */
.hero-link a { display: flex; align-items: center; gap: 16px; color: var(--white); }
.hero-link a::after {
  content: ""; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid var(--white); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M5 3l5 4.5L5 12' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero-link a:hover { text-decoration: underline; }
.hero-region a { color: inherit; }
.pdf-download a { display: inline-flex; align-items: center; gap: 10px; }
.pdf-download a::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v8M4.5 6.5L8 10l3.5-3.5M2.5 13.5h11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v8M4.5 6.5L8 10l3.5-3.5M2.5 13.5h11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-field .hero-lead.wp-block-group { display: flex; align-items: center; gap: 10px; }

/* ---------- images : le CSS des blocs remet height:auto, on le dépasse ---------- */
.hero-photo .wp-block-image img, .wp-block-image.hero-photo img,
.wp-block-image.card-photo img, .k-panel .wp-block-image img, .person .wp-block-image img,
.wp-block-image.feature-photo img, .split-visual .wp-block-image img, .gain .wp-block-image img,
.news-card .wp-block-image img, .news-card .wp-block-post-featured-image img { height: 100%; width: 100%; object-fit: cover; }
.gallery .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-image.founder-photo img { width: 240px; height: 240px; object-fit: cover; }
.hero-toulouse img { object-position: 85% 40%; }
figure.wp-block-image.card-photo { margin-bottom: 8px; }   /* le socle (0,1,1) l'emportait sur .card-photo (0,1,0) */
.hero-photo > .wp-block-image { position: static; }
.feature-photo.wp-block-image { position: relative; }

/* légendes */
.split-visual .figcaption, .gallery .wp-element-caption { font-size: 13px; color: #555; padding-top: 10px; margin: 0; }
.gallery .wp-element-caption strong, .gallery .wp-element-caption em {
  display: inline-block; margin-right: 8px; padding: 3px 6px; font-size: 12px; font-style: normal; font-weight: 400;
}
.gallery .wp-element-caption strong { background: var(--ink); color: var(--white); }
.gallery .wp-element-caption em { background: var(--accent); color: var(--ink); }

/* ---------- composants dont le balisage a changé ---------- */
.knowledge-list .k-tab { border-bottom: 1px solid var(--line); max-width: 520px; }
.feature::after { content: ""; position: absolute; left: 0; bottom: -16px; width: 120px; height: 16px; background: var(--accent); }
.fig > p:last-child { font-size: 14px; font-weight: 600; }
.proof > p:first-child { font-size: 13px; color: #555; }
.contact-line > p:first-child { font-size: 14px; color: #555; }
.offer .price > p:first-child { font: 400 13px var(--sans); color: #555; margin-bottom: 4px; }
.offer.is-accent .price > p:first-child { color: var(--ink); }
.map-legend::before { content: ""; width: 24px; height: 16px; box-sizing: border-box; border: 3px solid var(--accent); background: rgba(243, 106, 18, .12); flex: none; }
.review .quote { margin: 0; padding: 40px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.review .quote > p { font: 500 28px/1.3 var(--display); color: var(--text); }

/* listes de définitions devenues groupes */
.facts-grid .dt { font-size: 13px; color: #555; }
.facts-grid .dd { margin: 0; font: 600 28px/1.1 var(--display); }
.gain .dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.gain .dl > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.gain .dl > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.gain .dt { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.gain .dt::before { content: ""; width: 14px; height: 4px; background: var(--accent); flex: none; }
.gain .dd { margin: 0; font-size: 14px; line-height: 1.5; color: #555; }

/* navigation de segments */
.segment-nav > .wp-block-group { position: relative; flex: 1 1 200px; padding: 20px 24px; border-right: 1px solid var(--line); }
.segment-nav > .wp-block-group:last-child { border-right: 0; }
.segment-nav > .wp-block-group:hover { background: var(--accent); }
.seg-titre { font: 600 24px/1.1 var(--display); }
.seg-titre a::after { content: ""; position: absolute; inset: 0; }
.seg-sous { font: 400 13px/1.4 var(--sans); color: #555; margin-top: 6px; }

/* FAQ : core/details */
.faq .wp-block-details > :not(summary) { max-width: 760px; font-size: 16px; line-height: 1.6; color: #444; }
.faq .wp-block-details > :not(summary) + :not(summary) { margin-top: 12px; }
.faq .wp-block-details > :last-child:not(summary) { padding-bottom: 28px; }
.faq .wp-block-details p + p { margin-top: 12px; }

/* ---------- actualités : boucle de requête ---------- */
ul.news-list { list-style: none; margin: 0; padding: 0; }
.news-list > li { display: flex; margin: 0; }
.news-list .news-card { flex: 1; }
.news-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.news-card .wp-block-post-title { font: 600 24px/1.15 var(--display); }
.news-card .wp-block-post-title a:hover { color: var(--accent); }
.news-card .wp-block-post-excerpt { margin: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.news-card .wp-block-post-excerpt__excerpt { font-size: 14px; line-height: 1.5; color: #555; margin: 0; }
.news-card .wp-block-post-excerpt__more-text { margin: auto 0 0; }
.news-card .wp-block-post-excerpt__more-link { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--text); }
.wp-block-post-date.date { font-size: 14px; color: #555; }
.account-head .wp-block-query-title { font: 600 72px/1 var(--display); text-transform: uppercase; color: var(--ink); }

/* ==========================================================================
   EN-TÊTE (partie de modèle)
   ========================================================================== */
.site-header-wrap { position: sticky; top: 0; z-index: 50; }
body.admin-bar .site-header-wrap { top: 32px; }
.site-header { position: relative; display: flex; align-items: center; height: var(--header-h); padding: 0 var(--gutter); background: var(--white); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .wp-block-site-logo { margin: 0; line-height: 0; }
.brand .wp-block-site-logo img { height: 64px; width: auto; }
.footer-side .brand .wp-block-site-logo img { height: 56px; }
.brand-name { font: 600 34px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.main-nav > p { margin: 0; }
.main-nav p.is-current:not(.nav-devis) a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.main-nav .nav-devis a:hover { text-decoration: none; }
.nav-toggle { cursor: pointer; user-select: none; }
.nav-toggle::before {
  content: ""; order: 2; width: 10px; height: 10px; background: currentColor; transition: transform .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5L5 7l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5L5 7l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-toggle[aria-expanded="true"]::before { transform: rotate(180deg); }
.mega-list li { margin: 0; }
.main-nav .mega-list li a + a { display: inline-flex; align-items: center; margin-left: 10px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #777; vertical-align: 1px; }
.main-nav .mega-list li a + a::after { content: "↓"; margin-left: 3px; font-size: 10px; }
.main-nav .mega-list li a + a:hover { color: var(--accent); text-decoration: none; }
.main-nav .mega-arrow a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.main-nav .mega-arrow a::after { content: "→"; font-weight: 400; }
.main-nav .mega-arrow a:hover { color: var(--accent); }
body.a-voile::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(20, 20, 20, .55); }

/* icônes : paragraphes au texte masqué, pictogrammes en masque CSS */
.icon-btn { position: relative; font-size: 0; cursor: pointer; margin: 0; }
.icon-btn::before { content: ""; width: 22px; height: 22px; background: currentColor; }
.search-open::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M16 16l5.5 5.5' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M16 16l5.5 5.5' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.account-link::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M3.5 21c1.2-4.2 4.4-6.3 8.5-6.3s7.3 2.1 8.5 6.3' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M3.5 21c1.2-4.2 4.4-6.3 8.5-6.3s7.3 2.1 8.5 6.3' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.account-link a { position: absolute; inset: 0; }
.burger { display: none; position: relative; width: 44px; height: 44px; font-size: 0; cursor: pointer; margin: 0; }
.burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger::before { top: 17px; }
.burger::after { top: 26px; }
.site-header.is-open .burger::before { transform: translateY(4.5px) rotate(45deg); }
.site-header.is-open .burger::after { transform: translateY(-4.5px) rotate(-45deg); }

/* panneau de recherche */
.search-panel { display: none; }
.search-panel.is-open { display: block; }
.search-close { text-decoration: underline; text-underline-offset: 5px; cursor: pointer; margin: 0; }
.search-close::after {
  content: ""; width: 46px; height: 46px; box-sizing: border-box; border: 1px solid var(--ink); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23282828' stroke-width='1.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.wp-block-search.search-form { max-width: 880px; margin: 0 auto; text-align: left; }
.wp-block-search.search-form .wp-block-search__inside-wrapper { display: flex; border: 0; padding: 0; }
.wp-block-search.search-form .wp-block-search__input {
  flex: 1; height: 50px; margin: 0; padding: 0 16px 0 46px; border: 1px solid var(--line); border-right: 0; border-radius: 0;
  font: 400 16px var(--sans); color: var(--text); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='7' fill='none' stroke='%23282828' stroke-width='1.6'/%3E%3Cpath d='M16 16l5.5 5.5' stroke='%23282828' stroke-width='1.6'/%3E%3C/svg%3E") 14px center / 20px no-repeat;
}
.wp-block-search.search-form .wp-block-search__input:focus { outline: 0; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.wp-block-search.search-form .wp-block-search__button {
  margin: 0; height: 50px; padding: 0 82px 0 32px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  font: 600 16px var(--sans); color: var(--white);
  background: linear-gradient(to left, var(--white) 50px, var(--ink) 50px);
  position: relative;
}
.wp-block-search.search-form .wp-block-search__button::after {
  content: ""; position: absolute; right: 0; top: 0; width: 50px; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M2 7.5h10M8 3.5l4 4-4 4' fill='none' stroke='%23282828' stroke-width='1.3'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.account-head .search-form-page { margin: 24px 0 0; }
.search-results span { display: block; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.footer-legal p { margin: 0; }
.footer-contact a { color: inherit; }

/* ==========================================================================
   FORMULAIRES CONTACT FORM 7 (gabarits posés par l'installateur)
   ========================================================================== */
.wpcf7 .form { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.form .hidden-fields-container { display: none; }
.form .fieldset-ouvrage { margin-top: 24px; }
.choices { display: block; border: 0; }
.choices .wpcf7-form-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.choices .wpcf7-list-item { margin: 0; border-bottom: 1px solid var(--line); }
.choices .wpcf7-list-item:nth-child(odd) { border-right: 1px solid var(--line); }
.choices .wpcf7-list-item:nth-last-child(-n+2) { border-bottom: 0; }
.choices .wpcf7-list-item label { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; font-size: 15px; }
.choices .wpcf7-list-item:has(input:checked) { background: rgba(243, 106, 18, .1); }
.choices input[type="radio"], .choices input[type="checkbox"] { appearance: none; width: 20px; height: 20px; margin: 0; padding: 0; border: 2px solid var(--ink); flex: none; background: var(--white); }
.choices input[type="radio"] { border-radius: 50%; }
.choices input:checked { background: var(--accent); box-shadow: inset 0 0 0 3px var(--white); }
.form .btn-submit {
  height: 50px; padding: 0 82px 0 32px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  font: 600 16px var(--sans); color: var(--white);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M2 7.5h10M8 3.5l4 4-4 4' fill='none' stroke='%23282828' stroke-width='1.3'/%3E%3C/svg%3E") right 17px center / 15px no-repeat,
              linear-gradient(to left, var(--white) 50px, var(--ink) 50px);
}
.form .btn-submit:hover { background-color: #000; }
.wpcf7-spinner { display: none; }
.wpcf7 form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; padding: 20px 24px; border: 0; background: var(--accent); color: var(--ink); font-weight: 600; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: var(--ink); color: var(--white); }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #b3122a; }

/* ==========================================================================
   RESPONSIVE (compléments)
   ========================================================================== */
@media (max-width: 1259px) {
  .main-nav > p:not(.nav-devis), .nav-toggle { width: 100%; padding: 18px var(--gutter); border-top: 1px solid var(--line); font-size: 18px; }
  .main-nav > p:not(.nav-devis) a { font-size: 18px; }
  .main-nav .nav-devis { align-self: flex-start; margin: 16px var(--gutter); }
  .burger { display: block; }
  .nav-account-mobile { display: block; font-weight: 600; }
}
@media (max-width: 900px) {
  .hero-field .btns { margin-top: 32px; }
  .wp-block-image.founder-photo img { width: 180px; height: 180px; }
  .review .quote { padding: 24px; }
  .review .quote > p { font-size: 22px; }
  .gain .dl { grid-template-columns: 1fr; }
  .gain .dl > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .account-head .wp-block-query-title { font-size: 48px; }
  .wp-block-search.search-form .wp-block-search__inside-wrapper { flex-direction: column; gap: 12px; }
  .wp-block-search.search-form .wp-block-search__input { border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .wp-block-button.btn .wp-block-button__link { padding: 0 20px; }
  .choices .wpcf7-form-control { grid-template-columns: 1fr; }
  .choices .wpcf7-list-item:nth-child(odd) { border-right: 0; }
  .choices .wpcf7-list-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- utilitaires (styles en ligne de la maquette) ---------- */
.u-1 { font-size:14px;color:#555;margin-bottom:8px !important; }
.u-2 { font-size:15px;margin-top:6px !important; }
.u-3 { margin-top:40px !important; }
.u-4 { margin:40px 0 !important; }
.u-5 { margin:32px 0 !important; }
.u-6 { margin-top:24px !important; }
.u-7 { margin-top:20px !important; }
.u-8 { align-self:flex-start !important; }
.u-9 { background:var(--white) !important; }
