/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme — intégration Sabas Artisan
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* =========================================================
   SABAS ARTISAN — CSS GLOBAL
   Les polices Archivo + Inter sont chargées via wp_enqueue_style
   (handle « sabas-fonts »), pas par @import.

   1. Tokens
   2. Reset / base
   3. Utilitaires (couleurs, typo, espacements)
   4. Composants globaux (boutons, cartes, titres, badges, form)
   5. Header / Footer (squelette bootscore)
   6. Sections (layouts ACF)
   7. Animations
   8. Contact Form 7
   9. Responsive
   ========================================================= */

/* ============ 1. TOKENS ============ */
:root {
  --bleu-charpente: #112f48;
  --bleu-nuit: #071b2c;
  --bleu-ardoise: #2d5577;
  --bleu-zinc: #6e88a0;
  --bleu-brume: #a8bcce;
  --terre-cuite: #d35c1d;
  --terre-cuite-hover: #b94b12;
  --cuivre: #a53e00;
  /* Terre cuite en APLAT de section. Le #d35c1d de la marque ne donne que
     3,8:1 avec le blanc chaux — insuffisant pour du texte courant (AA = 4,5:1).
     Cette déclinaison plus profonde monte à 6,1:1 tout en restant la même
     teinte. Le #d35c1d reste utilisé pour les boutons et accents sur fond clair. */
  --terre-fond: #a53e00;
  --rouge-alerte: #9e2b1e;
  --rouge-alerte-hover: #7f2118;
  --rouge-alerte-wash: #f6e9e5;
  --rouge-alerte-line: rgba(158, 43, 30, 0.22);
  --sable: #f1ece4;
  --blanc-chaux: #fbfaf8;

  --hairline: rgba(17, 47, 72, 0.14);
  --hairline-inverse: rgba(168, 188, 206, 0.24);
  --wash: rgba(17, 47, 72, 0.06);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --radius-lg: 4px;
  --container: 1380px;
  --gutter: 32px;
  /* Marge latérale du conteneur. Elle doit couvrir la plus grande gouttière de
     ligne utilisée (g-5 = 3rem, soit -24px de marge négative) : sans cela les
     .row débordent du conteneur et provoquent un défilement horizontal. */
  --pad: 24px;
  --section-y: 72px;
  --header-h: 84px;
  --topbar-h: 0px;
  --admin-offset: 0px;

  --easing: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 120ms var(--easing);
  --t-base: 180ms var(--easing);
  --t-panel: 280ms var(--easing);
}

/* ============ 2. RESET / BASE ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--bleu-charpente);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--cuivre); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--bleu-charpente); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; opacity: 1; }

:focus-visible {
  outline: 2px solid var(--terre-cuite);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--bleu-charpente);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* Grille : contenu calé sur 1380px, gouttières de colonnes de 32px */
.container, .container-fluid, .container-lg, .container-xl {
  --bs-gutter-x: var(--gutter);
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container { max-width: calc(var(--container) + var(--pad) * 2); }

/* L'en-tête est fixe : les pages qui ne démarrent pas par un hero sombre
   compensent sa hauteur. */
body.header-solid #page { padding-top: calc(var(--header-h) + var(--topbar-h)); }

/* Barre d'administration WordPress */
body.admin-bar { --admin-offset: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --admin-offset: 46px; }
}

/* ============ 3. UTILITAIRES ============ */
/* Couleurs */
.u-bg-sable { background: var(--sable); }
.u-bg-chaux { background: var(--blanc-chaux); }
.u-bg-bleu { background: var(--bleu-charpente); color: var(--blanc-chaux); }
.u-bg-nuit { background: var(--bleu-nuit); color: var(--blanc-chaux); }
.u-bg-terre { background: var(--terre-fond); color: var(--blanc-chaux); }
.u-ink-soft { color: var(--bleu-ardoise); }
.u-ink-brume { color: var(--bleu-brume); }
.u-ink-terre { color: var(--cuivre); }

/* --- Contrat « section sombre » -----------------------------------------
   Les trois fonds sombres partagent exactement le même traitement de texte.
   Les textes secondaires passent en brume claire plutôt qu'en encre ardoise,
   qui devenait illisible sur fond coloré. */
.u-bg-bleu, .u-bg-nuit, .u-bg-terre { color: var(--blanc-chaux); }
.u-bg-bleu a, .u-bg-nuit a, .u-bg-terre a { color: var(--blanc-chaux); }
.u-bg-bleu h1, .u-bg-bleu h2, .u-bg-bleu h3, .u-bg-bleu h4,
.u-bg-nuit h1, .u-bg-nuit h2, .u-bg-nuit h3, .u-bg-nuit h4,
.u-bg-terre h1, .u-bg-terre h2, .u-bg-terre h3, .u-bg-terre h4 { color: var(--blanc-chaux); }

.u-bg-bleu .u-ink-soft, .u-bg-nuit .u-ink-soft, .u-bg-terre .u-ink-soft { color: var(--bleu-brume); }
.u-bg-terre .u-ink-soft { color: rgba(251, 250, 248, 0.82); }

/* Sur terre cuite, les accents terre cuite deviennent invisibles : on les
   repasse en blanc chaux. */
.u-bg-terre .section-title__rule,
.u-bg-terre .hero__eyebrow::before,
.u-bg-terre .u-list li::before { background: var(--blanc-chaux); }
.u-bg-terre .process__num,
.u-bg-terre .stats__value,
.u-bg-terre .trust__icon,
.u-bg-terre .icon-sabas,
.u-bg-terre .u-rte ul li::before { color: var(--blanc-chaux); }
.u-bg-terre .icon-sabas { border-color: rgba(251, 250, 248, 0.45); }

/* --- Surfaces CLAIRES posées sur une section sombre ---------------------
   Une carte blanche dans une section sombre doit retrouver son encre foncée :
   sans cela le titre de carte héritait du blanc et disparaissait. */
.u-bg-bleu .card-sabas, .u-bg-nuit .card-sabas, .u-bg-terre .card-sabas,
.u-bg-bleu .faq__item, .u-bg-nuit .faq__item, .u-bg-terre .faq__item,
.u-bg-bleu .contact__info, .u-bg-nuit .contact__info, .u-bg-terre .contact__info,
.u-bg-bleu .contact__panel, .u-bg-nuit .contact__panel, .u-bg-terre .contact__panel,
.u-bg-bleu .cta__inner, .u-bg-nuit .cta__inner, .u-bg-terre .cta__inner,
.u-bg-bleu .hero__card, .u-bg-nuit .hero__card, .u-bg-terre .hero__card { color: var(--bleu-charpente); }

.u-bg-bleu .card-sabas h1, .u-bg-bleu .card-sabas h2, .u-bg-bleu .card-sabas h3, .u-bg-bleu .card-sabas h4,
.u-bg-nuit .card-sabas h1, .u-bg-nuit .card-sabas h2, .u-bg-nuit .card-sabas h3, .u-bg-nuit .card-sabas h4,
.u-bg-terre .card-sabas h1, .u-bg-terre .card-sabas h2, .u-bg-terre .card-sabas h3, .u-bg-terre .card-sabas h4,
.u-bg-bleu .faq__item .faq__question, .u-bg-nuit .faq__item .faq__question, .u-bg-terre .faq__item .faq__question,
.u-bg-bleu .cta__inner .cta__title, .u-bg-nuit .cta__inner .cta__title, .u-bg-terre .cta__inner .cta__title,
.u-bg-bleu .hero__card .hero__card-title, .u-bg-nuit .hero__card .hero__card-title, .u-bg-terre .hero__card .hero__card-title {
  color: var(--bleu-charpente);
}

.u-bg-bleu .card-sabas .values__item-text, .u-bg-nuit .card-sabas .values__item-text, .u-bg-terre .card-sabas .values__item-text,
.u-bg-bleu .card-sabas .services__item-text, .u-bg-nuit .card-sabas .services__item-text, .u-bg-terre .card-sabas .services__item-text,
.u-bg-bleu .card-sabas .u-ink-soft, .u-bg-nuit .card-sabas .u-ink-soft, .u-bg-terre .card-sabas .u-ink-soft,
.u-bg-bleu .cta__inner .cta__text, .u-bg-nuit .cta__inner .cta__text, .u-bg-terre .cta__inner .cta__text,
.u-bg-bleu .hero__card .hero__card-text, .u-bg-nuit .hero__card .hero__card-text, .u-bg-terre .hero__card .hero__card-text {
  color: var(--bleu-ardoise);
}

/* Les accents terre cuite redeviennent eux-mêmes à l'intérieur d'une carte claire. */
.u-bg-terre .card-sabas .icon-sabas { color: var(--terre-cuite); border-color: var(--hairline); }
.u-bg-terre .card-sabas .u-list li::before { background: var(--terre-cuite); }
.u-bg-terre .card-sabas a { color: var(--cuivre); }

/* Typographie */
.u-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.u-h2 { font-size: clamp(28px, 3.4vw, 40px); }
.u-h3 { font-size: clamp(21px, 2.2vw, 24px); }
.u-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.u-lead { font-size: 19px; line-height: 1.6; color: var(--bleu-ardoise); }
.u-small { font-size: 13px; line-height: 1.55; }
.u-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Espacements de section */
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * 0.66) 0; }
.section--flush-top { padding-top: 0; }
.u-mb-rule { margin-bottom: 40px; }

/* Filets */
.u-rule { display: block; width: 48px; height: 3px; background: var(--terre-cuite); border: 0; }
.u-rule--light { background: var(--terre-cuite); }
.u-hairline { border-top: 1px solid var(--hairline); }

/* Listes à puce carrée */
.u-list { display: grid; gap: 12px; }
.u-list li { position: relative; padding-left: 22px; }
.u-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--terre-cuite);
}

/* Élément masqué tant qu'il n'a pas été révélé par « Voir plus » */
.is-hidden { display: none !important; }

.sticky-col {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: flex-start;
}

/* ============ 3b. CONTENU RICHE (wysiwyg) ============ */
.u-rte > :last-child { margin-bottom: 0; }
.u-rte h2, .u-rte h3, .u-rte h4 { margin: 1.6em 0 0.6em; }
.u-rte h2 { font-size: clamp(24px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: 0.05em; }
.u-rte h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.u-rte h4 { font-size: 17px; }
.u-rte a { color: var(--cuivre); text-decoration: underline; text-underline-offset: 3px; }
.u-rte a:hover { color: var(--bleu-charpente); }
.u-rte img { border-radius: var(--radius); margin: 1.2em 0; }
.u-rte blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--terre-cuite);
  background: var(--blanc-chaux);
  font-size: 16px;
}
.u-rte table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.u-rte th, .u-rte td { border-bottom: 1px solid var(--hairline); padding: 10px 12px; text-align: left; }
.u-rte th { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* Puces du wysiwyg : icône check du design system */
.u-rte ul { display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.u-rte ul li { position: relative; padding-left: 28px; }
.u-rte ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 12px;
  color: var(--terre-cuite);
}
.u-rte ol { margin: 1.2em 0 1.2em 1.2em; padding-left: 1em; list-style: decimal; display: block; }
.u-rte ol li { margin-bottom: 8px; }
.u-rte ul ul, .u-rte ul ol, .u-rte ol ul, .u-rte ol ol { margin-top: 10px; margin-bottom: 0; }

/* Fonds sombres : check et textes adaptés */
.imgtxt--dark .u-rte,
.u-bg-bleu .u-rte, .u-bg-nuit .u-rte, .u-bg-terre .u-rte { color: var(--bleu-brume); }
.imgtxt--dark .u-rte ul li::before,
.u-bg-bleu .u-rte ul li::before, .u-bg-nuit .u-rte ul li::before, .u-bg-terre .u-rte ul li::before { color: var(--terre-cuite); }
.imgtxt--dark .u-rte a,
.u-bg-bleu .u-rte a, .u-bg-nuit .u-rte a, .u-bg-terre .u-rte a { color: var(--blanc-chaux); }
.imgtxt--dark .u-rte blockquote,
.u-bg-bleu .u-rte blockquote, .u-bg-nuit .u-rte blockquote, .u-bg-terre .u-rte blockquote { background: rgba(251, 250, 248, 0.05); color: var(--blanc-chaux); }

/* Contenu WordPress classique : on restaure les listes natives */
.entry-content ul, .widget ul, .comment-list, .wp-block-list,
.entry-content ol, .widget ol {
  list-style: revert;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.comment-list, .comment-list ul { list-style: none; padding-left: 0; }

/* ============ 4. COMPOSANTS GLOBAUX ============ */
/* --- Boutons --- */
.btn-sabas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
  text-align: center;
}
.btn-sabas:hover { text-decoration: none; }
.btn-sabas:active { transform: translateY(1px); }

.btn-sabas--primary { background: var(--terre-cuite); color: var(--blanc-chaux); }
.btn-sabas--primary:hover { background: var(--terre-cuite-hover); color: var(--blanc-chaux); }

.btn-sabas--solid { background: var(--bleu-charpente); color: var(--blanc-chaux); }
.btn-sabas--solid:hover { background: var(--bleu-nuit); color: var(--blanc-chaux); }

.btn-sabas--outline { background: transparent; color: var(--bleu-charpente); border-color: var(--bleu-charpente); }
.btn-sabas--outline:hover { background: var(--bleu-charpente); color: var(--blanc-chaux); }

.btn-sabas--outline-light { background: transparent; color: var(--blanc-chaux); border-color: var(--bleu-brume); }
.btn-sabas--outline-light:hover { background: var(--blanc-chaux); color: var(--bleu-charpente); }

.btn-sabas--ghost { background: transparent; color: var(--bleu-charpente); }
.btn-sabas--ghost:hover { background: var(--wash); }

.btn-sabas--block { width: 100%; justify-content: center; }

/* --- Cartes --- */
.card-sabas {
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--t-base);
}
.card-sabas--wide { padding: 32px; }
.card-sabas--cap::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: var(--terre-cuite);
}
.card-sabas--cap-bleu::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: var(--bleu-charpente);
}
a.card-sabas:hover, .card-sabas--hover:hover { border-color: var(--terre-cuite); }


.card-sabas,
.card-sabas--cap,
.card-sabas--cap-bleu { position: relative; }

/* --- Titre de section --- */
.section-title { margin-bottom: 40px; }
.section-title__rule { display: block; width: 48px; height: 3px; background: var(--terre-cuite); margin-bottom: 18px; }
.section-title__index {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu-zinc);
  display: block;
  margin-bottom: 10px;
}
.section-title__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.14;
}
.section-title__text { margin-top: 16px; max-width: 62ch; color: var(--bleu-ardoise); }
.u-bg-bleu .section-title__text, .u-bg-nuit .section-title__text, .u-bg-terre .section-title__text,
.imgtxt--dark .section-title__text { color: var(--bleu-brume); }
.u-bg-bleu .section-title__index, .u-bg-nuit .section-title__index, .u-bg-terre .section-title__index,
.imgtxt--dark .section-title__index { color: var(--bleu-brume); }

/* --- Badges / tags --- */
.badge-sabas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--blanc-chaux);
  color: var(--bleu-charpente);
}
.badge-sabas--terre { background: rgba(211, 92, 29, 0.1); border-color: rgba(211, 92, 29, 0.28); color: var(--cuivre); }
.badge-sabas--light { background: transparent; border-color: var(--hairline-inverse); color: var(--blanc-chaux); }

.tag-sabas {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--bleu-ardoise);
  cursor: pointer;
  transition: all var(--t-fast);
}
.tag-sabas:hover, .tag-sabas.is-active { background: var(--bleu-charpente); border-color: var(--bleu-charpente); color: var(--blanc-chaux); }

/* --- Icônes --- */
.icon-sabas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--terre-cuite);
}
.icon-sabas--plain { border: 0; width: auto; height: auto; }

/* --- Visuels --- */
.media-ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--bleu-charpente);
  border-radius: var(--radius);
  overflow: hidden;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  padding: 18px;
  width: 100%;
}
img.media-ph { width: 100%; padding: 0; }

.media-ph::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--hairline-inverse);
  pointer-events: none;
}
img.media-ph::after { content: none; }
.media-ph__label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu-brume);
}
.media-ph--tall { aspect-ratio: 3 / 4; }
.media-ph--wide { aspect-ratio: 16 / 9; }
.media-ph--square { aspect-ratio: 1 / 1; }
.media-ph--soft { background: var(--bleu-ardoise); }

/* --- Formulaire --- */
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--bleu-charpente);
}
.field__req { color: var(--cuivre); }
.field__control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bleu-charpente);
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__control::placeholder { color: var(--bleu-zinc); }
.field__control:focus {
  outline: none;
  border-color: var(--terre-cuite);
  box-shadow: inset 0 -2px 0 0 var(--terre-cuite);
}
textarea.field__control { min-height: 150px; resize: vertical; }
select.field__control { appearance: none; background-image: none; }
.field__hint { font-size: 13px; color: var(--bleu-ardoise); margin-top: 6px; }
.field__check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--bleu-ardoise); }
.field__check input { margin-top: 4px; accent-color: var(--terre-cuite); width: 16px; height: 16px; flex: 0 0 auto; }

/* --- Alerte / règle --- */
.alert-sabas {
  display: flex;
  gap: 14px;
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--terre-cuite);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--bleu-ardoise);
}
.alert-sabas i { color: var(--terre-cuite); margin-top: 4px; }
.alert-sabas__lead {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--bleu-charpente);
  display: block;
  margin-bottom: 4px;
}

/* ============ 5. HEADER / FOOTER ============ */
/* --- Top-bar (Options du thème, masquée si vide) --- */
.topbar {
  position: fixed;
  inset: calc(var(--admin-offset)) 0 auto 0;
  z-index: 1031;
  height: var(--topbar-h);
  background: var(--bleu-nuit);
  color: var(--bleu-brume);
  font-size: 13px;
  display: flex;
  align-items: center;
}
body.has-topbar { --topbar-h: 40px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.topbar__message { margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar__message i { color: var(--terre-cuite); }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar__link { color: var(--bleu-brume); display: inline-flex; align-items: center; gap: 8px; }
.topbar__link:hover { color: var(--blanc-chaux); text-decoration: none; }
.topbar__link i { color: var(--terre-cuite); }

/* --- Masthead : en-tête fixe, transparent puis solide au scroll --- */
.site-header.sabas-header {
  position: fixed;
  inset: calc(var(--admin-offset) + var(--topbar-h)) 0 auto 0;
  z-index: 1030;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), height var(--t-base);
}
.site-header.sabas-header .navbar { width: 100%; padding: 0; }
.site-header.sabas-header > .navbar > .container { gap: 24px; flex-wrap: nowrap; }

/* État solide : au scroll, ou d'office sur les pages sans hero sombre */
.site-header.sabas-header.is-solid,
body.header-solid .site-header.sabas-header {
  background: var(--bleu-charpente);
  border-bottom-color: rgba(7, 27, 44, 0.9);
}
.site-header.sabas-header.is-solid { height: 72px; }

/* Marque */
.sabas-brand { display: flex; align-items: center; flex: 0 0 auto; padding: 0; margin: 0; }
.sabas-brand__img { height: 42px; width: auto; max-width: min(260px, 40vw); object-fit: contain; }
.site-header.sabas-header.is-solid .sabas-brand__img { height: 36px; }

/* Menu principal — l'écart se resserre juste au-dessus du breakpoint navbar */
.site-header .navbar-nav { align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.site-header .nav-item { position: relative; }
.site-header .nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanc-chaux);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-item.show > .nav-link {
  color: var(--blanc-chaux);
  border-bottom-color: var(--terre-cuite);
  text-decoration: none;
}
.site-header .dropdown-toggle::after {
  margin-left: 0;
  border-top-color: currentColor;
  transition: transform var(--t-fast);
}
.site-header .nav-item.dropdown:hover > .dropdown-toggle::after,
.site-header .nav-item.show > .dropdown-toggle::after { transform: rotate(180deg); }

/* Sous-menu desktop (au-dessus du breakpoint navbar : xl) */
@media (min-width: 1200px) {
  /* Passerelle invisible : garde le survol actif entre le lien et le panneau */
  .site-header .nav-item.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }
  .site-header .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: -18px;
    min-width: 250px;
    background: var(--blanc-chaux);
    border: 1px solid var(--hairline);
    border-top: 3px solid var(--terre-cuite);
    border-radius: var(--radius);
    padding: 6px 0;
    margin: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  }
  .site-header .nav-item.dropdown:hover > .dropdown-menu,
  .site-header .nav-item.dropdown:focus-within > .dropdown-menu,
  .site-header .dropdown-menu.show { opacity: 1; visibility: visible; transform: none; }
}
.site-header .dropdown-item {
  display: block;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bleu-charpente);
  white-space: normal;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus { background: var(--wash); color: var(--cuivre); text-decoration: none; }
.site-header .dropdown-item.active { background: transparent; color: var(--cuivre); }

/* Actions d'en-tête */
.header-actions { flex: 0 0 auto; gap: 16px; }
.sabas-header__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--blanc-chaux);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.sabas-header__phone:hover { color: var(--terre-cuite); text-decoration: none; }
.sabas-header__phone i { color: var(--terre-cuite); }

.sabas-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline-inverse);
  border-radius: var(--radius);
  color: var(--blanc-chaux);
  width: 44px;
  height: 44px;
  font-size: 17px;
  padding: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sabas-burger:hover { background: rgba(251, 250, 248, 0.08); border-color: var(--terre-cuite); color: var(--blanc-chaux); }

/* --- Offcanvas mobile (sous le breakpoint navbar : xl) --- */
@media (max-width: 1199.98px) {
  .sabas-offcanvas {
    width: min(340px, 86vw);
    background: linear-gradient(180deg, var(--bleu-charpente) 0%, var(--bleu-nuit) 100%);
    color: var(--blanc-chaux);
    border-left: 1px solid var(--hairline-inverse);
  }
  .sabas-offcanvas .offcanvas-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--hairline-inverse);
  }
  .sabas-offcanvas .offcanvas-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blanc-chaux);
    margin: 0;
  }
  .sabas-offcanvas .btn-close { filter: invert(1) grayscale(1) brightness(2.2); opacity: 0.8; }

  /* Gotcha : margin-top:auto n'agit que dans un parent flex — on passe le corps
     de l'offcanvas en colonne, uniquement sous le breakpoint navbar pour ne pas
     casser le menu inline desktop. */
  .sabas-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 20px 28px 28px;
    overscroll-behavior: contain; /* stoppe le rubber-band iOS */
  }

  .sabas-offcanvas .navbar-nav { gap: 0; align-items: stretch; width: 100%; margin: 0 !important; }
  .sabas-offcanvas .nav-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline-inverse);
    border-bottom-width: 1px;
  }
  .sabas-offcanvas .nav-link:hover,
  .sabas-offcanvas .nav-link.active { color: var(--terre-cuite); border-bottom-color: var(--hairline-inverse); }
  .sabas-offcanvas .dropdown-menu {
    position: static;
    float: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  .sabas-offcanvas .dropdown-item {
    position: relative;
    padding: 12px 0 12px 20px;
    font-size: 11px;
    color: var(--bleu-brume);
    background: transparent;
    border-bottom: 1px solid var(--hairline-inverse);
  }
  .sabas-offcanvas .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 1px;
    background: var(--terre-cuite);
  }
  .sabas-offcanvas .dropdown-item:hover { background: transparent; color: var(--blanc-chaux); }

  /* Bloc d'actions collé en bas du panneau (d'où le parent en flex-column). */
  .sabas-offcanvas__actions {
    margin-top: auto;
    padding-top: 24px;
    display: grid;
    gap: 10px;
  }
}

/* Le panneau passe au-dessus de la barre d'appel, qui s'efface le temps de
   l'ouverture : sans cela le dernier bouton du menu reste sous la barre. */
body.offcanvas-is-open .callbar { opacity: 0; pointer-events: none; }
.callbar { transition: opacity var(--t-fast); }

.offcanvas-backdrop.show { background: var(--bleu-nuit); opacity: 0.55; }

/* --- Footer --- */
.footer { background: var(--bleu-charpente); color: var(--bleu-brume); padding: 64px 0 0; }
.footer__logo img { height: 46px; width: auto; margin-bottom: 20px; }
.footer__text { color: var(--bleu-brume); font-size: 15px; max-width: 34ch; }
.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanc-chaux);
  margin-bottom: 18px;
}
.footer__title a { color: var(--blanc-chaux); }
.footer__list { display: grid; gap: 10px; font-size: 15px; }
.footer__list a { color: var(--bleu-brume); }
.footer__list a:hover { color: var(--blanc-chaux); }
.footer__contact { display: grid; gap: 12px; font-size: 15px; }
.footer__contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact-item i { color: var(--terre-cuite); margin-top: 4px; }
.footer__contact-item a { color: var(--bleu-brume); }
.footer__contact-item a:hover { color: var(--blanc-chaux); }
.footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-inverse);
  border-radius: var(--radius);
  color: var(--bleu-brume);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer__social:hover { background: var(--terre-cuite); border-color: var(--terre-cuite); color: var(--blanc-chaux); text-decoration: none; }
.footer__bottom {
  margin-top: 56px;
  border-top: 1px solid var(--hairline-inverse);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { color: var(--bleu-brume); }
.footer__legal a:hover { color: var(--blanc-chaux); }

/* Bouton retour en haut (classe « visible » posée par theme.js de bootscore) */
.top-button {
  right: 20px;
  bottom: 20px;
  opacity: 0;
  visibility: hidden;
  padding: 14px 16px;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.top-button.visible { opacity: 1; visibility: visible; }

/* Barre d'appel mobile */
.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1020; /* sous l'en-tête (1030) et sous l'offcanvas (1045) */
  background: var(--bleu-charpente);
  border-top: 1px solid var(--hairline-inverse);
  padding: 10px 14px;
  gap: 10px;
}
.callbar .btn-sabas { flex: 1; justify-content: center; padding: 14px 12px; }

/* ============ 6. SECTIONS ============ */
/* --- HERO --- */
/* Mise en scène : fond « plan d'architecte » (grille qui dérive + halo terre
   cuite), titre révélé mot à mot, visuel découpé en pignon sous un trait de
   toiture tracé au chargement, sceau tournant qui reprend le sur-titre.
   Les animations d'entrée sont en fill-mode « backwards » : l'état de base de
   chaque élément EST son état final. Sans animation (mouvement réduit,
   navigateur ancien), tout reste affiché et les :hover/:active restent libres. */
.hero {
  --reveal: cubic-bezier(0.16, 1, 0.3, 1);
  /* Pignon du visuel. --roof-k = 1 + 2 × --roof-over : c'est ce qui garde le
     trait de toiture parfaitement parallèle au pignon, quel que soit le format. */
  --roof: 16%;
  --roof-over: 4%;
  --roof-k: 1.08;
  --roof-gap: 18px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(45, 85, 119, 0.5), transparent 60%),
    linear-gradient(165deg, var(--bleu-charpente) 0%, var(--bleu-nuit) 100%);
  color: var(--blanc-chaux);
  padding: 88px 0;
  overflow: hidden;
}
/* Sous en-tête transparent, le hero réserve la hauteur de la barre fixe */
body.header-transparent .hero { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--admin-offset) + 88px); }
.hero > .container { position: relative; z-index: 1; }

/* Fond */
.hero__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 15%, transparent 75%);
  animation: hero-fade 1.6s ease backwards;
}
/* La trame déborde d'un pas et glisse d'un pas : la boucle est invisible. */
.hero__grid::before {
  content: "";
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(to right, rgba(168, 188, 206, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 188, 206, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: hero-grid 30s linear infinite;
}
.hero__glow {
  position: absolute;
  top: 4%;
  right: -12%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(211, 92, 29, 0.24), rgba(211, 92, 29, 0));
  animation: hero-glow 16s ease-in-out infinite alternate, hero-fade 1.6s ease backwards;
}

/* Texte */
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bleu-brume);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  animation: hero-rise 0.8s var(--reveal) 0.05s backwards;
}
.hero__eyebrow::before {
  content: "";
  width: 48px;
  height: 3px;
  background: var(--terre-cuite);
  flex: 0 0 auto;
  transform-origin: left;
  animation: hero-rule 0.9s var(--reveal) 0.2s backwards;
}
.hero__title {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--blanc-chaux);
  text-wrap: balance;
}
.hero__title em,
.pagehead__title em {
  font-style: normal;
  color: var(--terre-cuite);
  /* Filet de soulignement : balayé une fois le titre posé */
  background: linear-gradient(currentColor, currentColor) no-repeat 0 96% / 100% 0.075em;
}
.hero__title em { animation: hero-underline 0.9s var(--reveal) 1.05s backwards; }
.hero__title .u-word__in { animation: hero-word 0.95s var(--reveal) backwards; animation-delay: calc(0.25s + var(--w) * 45ms); }
.hero__title .u-word--punct { animation: hero-fade 0.6s ease backwards; animation-delay: calc(0.45s + var(--w) * 45ms); }
.hero__text {
  margin-top: 24px;
  font-size: 19px;
  color: var(--bleu-brume);
  max-width: 52ch;
  animation: hero-rise 0.9s var(--reveal) 0.55s backwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__actions > * { animation: hero-rise 0.8s var(--reveal) 0.7s backwards; }
.hero__actions > :nth-child(2) { animation-delay: 0.8s; }

/* CTA principal : reflet périodique pour accrocher l'œil sans clignoter */
.hero .btn-sabas--primary { position: relative; overflow: hidden; }
.hero .btn-sabas--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(251, 250, 248, 0.4) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
  animation: hero-shine 6s ease-in-out 2.4s infinite;
}

/* Repères : le filet se trace, puis les items montent un à un */
.hero__meta { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 26px; }
.hero__meta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--hairline-inverse);
  transform-origin: left;
  animation: hero-rule 1.2s var(--reveal) 0.95s backwards;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--bleu-brume);
  animation: hero-rise 0.8s var(--reveal) backwards;
  animation-delay: calc(1.05s + var(--i, 0) * 90ms);
}
.hero__meta-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline-inverse);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--terre-cuite);
}

/* Visuel en pignon */
.hero__frame { position: relative; }
.hero__visual {
  position: relative;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% var(--roof), 100% 100%, 0 100%, 0 var(--roof));
}
.hero__media .media-ph { background: var(--bleu-nuit); }
.hero__visual .media-ph {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  transform-origin: 50% 60%;
  transition: transform 1.2s var(--reveal);
  animation: hero-zoom 1.8s var(--reveal) 0.15s backwards;
}
.hero__frame:hover .media-ph { transform: scale(1.04); }
/* Volet terre cuite qui remonte pour découvrir la photo */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--terre-cuite);
  transform: scaleY(0);
  transform-origin: top;
  animation: hero-curtain 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.15s backwards;
}
/* Trait de toiture : parallèle au pignon, tracé depuis le faîtage */
.hero__roof {
  position: absolute;
  z-index: 2;
  top: calc(var(--roof-gap) * -1);
  left: calc(var(--roof-over) * -1);
  /* Largeur explicite : un <svg> positionné ne s'étire pas entre left/right,
     et la règle globale « svg { max-width: 100% } » le briderait. */
  width: calc(100% + var(--roof-over) * 2);
  max-width: none;
  height: calc(var(--roof) * var(--roof-k));
  overflow: visible;
  pointer-events: none;
  clip-path: inset(-12px);
  animation: hero-roof 1.1s var(--reveal) 0.95s backwards;
}
.hero__roof polyline {
  fill: none;
  stroke: var(--terre-cuite);
  stroke-width: 3;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

/* Sceau tournant, à cheval sur l'angle bas gauche du visuel */
.hero__seal {
  position: absolute;
  z-index: 3;
  left: -40px;
  bottom: -62px;
  width: 124px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terre-cuite);
  color: var(--blanc-chaux);
  outline: 1px solid rgba(211, 92, 29, 0.45);
  outline-offset: 6px;
  animation: hero-seal-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.35s backwards;
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: 27%;
  border: 1px solid rgba(251, 250, 248, 0.45);
  border-radius: 50%;
}
.hero__seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: hero-spin 24s linear infinite;
}
.hero__seal-ring text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  fill: currentColor;
}
.hero__seal-icon { position: relative; width: 30%; height: auto; }
.hero__seal-icon path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: miter; }

/* Encart */
.hero__card {
  position: relative;
  z-index: 2;
  background: var(--blanc-chaux);
  color: var(--bleu-charpente);
  border-radius: var(--radius);
  border-left: 3px solid var(--terre-cuite);
  padding: 22px 24px;
  animation: hero-card-in 0.9s var(--reveal) 1.15s backwards;
}
.hero__frame + .hero__card { margin: -56px 0 0 104px; }
.hero__card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* Témoin « en service » */
.hero__card-title::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terre-cuite);
  animation: hero-pulse 2s ease-out 2s infinite;
}
.hero__card-text { font-size: 14px; color: var(--bleu-ardoise); }

/* Indicateur de défilement (desktop) */
.hero__scroll { display: none; }

@media (min-width: 992px) {
  /* Plein écran, plafonné pour les très grands moniteurs */
  .hero {
    min-height: min(100vh, 1040px);
    min-height: min(100svh, 1040px);
    display: flex;
    align-items: center;
    padding: 72px 0;
  }
  body.header-transparent .hero { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--admin-offset) + 48px); }
  .hero > .container { width: 100%; }
  /* Le visuel suit la hauteur d'écran pour que l'encart reste au-dessus de la
     ligne de flottaison sur les portables. */
  .hero__visual .media-ph { max-height: max(440px, 100svh - 290px); }
  .hero__scroll {
    display: block;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 72px;
    overflow: hidden;
    background: var(--hairline-inverse);
    animation: hero-fade 1s ease 1.8s backwards;
  }
  .hero__scroll::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--terre-cuite);
    transform: translateY(-100%);
    animation: hero-scroll 2.4s cubic-bezier(0.65, 0, 0.35, 1) 2s infinite;
  }
}

/* --- TRUST --- */
.trust { background: var(--blanc-chaux); border-bottom: 1px solid var(--hairline); padding: 34px 0; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__icon { color: var(--terre-cuite); font-size: 20px; line-height: 1.4; }
.trust__title { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.trust__text { font-size: 14px; color: var(--bleu-ardoise); margin: 0; }

/* --- SERVICES --- */
.services__item { display: flex; flex-direction: column; height: 100%; }
.services__icon { margin-bottom: 18px; }
.services__item-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.services__item-text { font-size: 15px; color: var(--bleu-ardoise); margin-bottom: 18px; }
.services__list { margin-bottom: 22px; font-size: 14px; color: var(--bleu-ardoise); }
.services__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.services__link:hover { color: var(--bleu-charpente); text-decoration: none; }
.services__link i { transition: transform var(--t-fast); }
.services__link:hover i { transform: translateX(3px); }

/* --- IMAGE + TEXTE --- */
.imgtxt__figure { position: relative; }
.imgtxt__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--blanc-chaux);
  color: var(--bleu-charpente);
  border-radius: var(--radius);
  border-left: 3px solid var(--terre-cuite);
  padding: 16px 20px;
  display: grid;
  gap: 2px;
  max-width: 62%;
  z-index: 2;
}
.imgtxt__badge-value { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; color: var(--terre-cuite); }
.imgtxt__badge-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bleu-ardoise); }
.imgtxt__text { font-size: 17px; color: var(--bleu-ardoise); }
.imgtxt__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.imgtxt--dark .imgtxt__text { color: var(--bleu-brume); }
.imgtxt--dark .section-title__title { color: var(--blanc-chaux); }

/* --- RÉALISATIONS (Swiper) --- */
.realisations { background: var(--sable); }
.realisations__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.realisations__nav { display: flex; gap: 10px; }
.realisations__btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--bleu-charpente);
  border-radius: var(--radius);
  background: transparent;
  color: var(--bleu-charpente);
  transition: background var(--t-fast), color var(--t-fast);
}
.realisations__btn:hover { background: var(--bleu-charpente); color: var(--blanc-chaux); }
.realisations__btn.swiper-button-disabled { opacity: 0.35; cursor: default; }
.realisations__btn--light { border-color: var(--bleu-brume); color: var(--blanc-chaux); }
.realisations__btn--light:hover { background: var(--blanc-chaux); color: var(--bleu-charpente); }
.realisations__slider, .avis__slider { margin-top: 40px; }
.realisations__card { background: var(--blanc-chaux); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; height: auto; transition: border-color var(--t-base); }
.realisations__card:hover { border-color: var(--terre-cuite); }
.realisations__media { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.realisations__media .media-ph { border-radius: 0; }
.realisations__zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc-chaux);
  color: var(--bleu-charpente);
  border-radius: var(--radius);
  font-size: 13px;
}
.realisations__body { padding: 20px 22px 24px; }
.realisations__tag { margin-bottom: 12px; }
.realisations__card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.realisations__meta { font-size: 13px; color: var(--bleu-ardoise); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.swiper { overflow: hidden; }
.realisations__slider .swiper-slide,
.avis__slider .swiper-slide { height: auto; }

/* --- AVIS --- */
.avis { background: var(--bleu-charpente); color: var(--blanc-chaux); }
.avis__item {
  height: 100%;
  border: 1px solid var(--hairline-inverse);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.avis__stars { color: var(--terre-cuite); font-size: 13px; letter-spacing: 3px; margin: 0; }
.avis__quote { font-size: 16px; color: var(--blanc-chaux); line-height: 1.6; margin: 0; }
.avis__author { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline-inverse); }
.avis__author-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blanc-chaux); margin: 0; }
.avis__author-meta { font-size: 13px; color: var(--bleu-brume); margin: 0; }

/* --- FAQ --- */
.faq__item { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--blanc-chaux); margin-bottom: 12px; overflow: hidden; }
.faq__question {
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bleu-charpente);
  cursor: pointer;
  transition: background var(--t-fast);
}
.faq__question:hover { background: var(--wash); }
.faq__question i { color: var(--terre-cuite); transition: transform var(--t-base); flex: 0 0 auto; }
.faq__question[aria-expanded="true"] i { transform: rotate(45deg); }
.faq__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-panel); }
.faq__answer.is-open { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }
.faq__answer-inner > * { padding-left: 22px; padding-right: 22px; }
.faq__answer-inner > :first-child { padding-top: 0; }
.faq__answer-inner > :last-child { padding-bottom: 22px; }
.faq__answer-inner p { color: var(--bleu-ardoise); font-size: 15px; margin: 0 0 10px; }
.faq__answer-inner ul { margin: 0 0 10px; }

/* --- MODALE RÉALISATION (surcharge Bootstrap) --- */
.modal-realisation .modal-dialog { max-width: 620px; }
.modal-realisation .modal-content {
  position: relative;
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}
.modal-realisation .modal-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--terre-cuite);
  z-index: 2;
}
.modal-backdrop.show { background: var(--bleu-nuit); opacity: 0.72; }
.modal-realisation__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc-chaux);
  color: var(--bleu-charpente);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 15px;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-realisation__close:hover { background: var(--bleu-charpente); color: var(--blanc-chaux); }
.modal-realisation__scroll { overflow-y: auto; }
.modal-realisation__media { border-radius: 0; aspect-ratio: 4 / 3; }
.modal-realisation__body { padding: 28px 32px 32px; }
.modal-realisation__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 18px;
}
.modal-realisation__facts { display: grid; gap: 0; margin-bottom: 20px; }
.modal-realisation__fact { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.modal-realisation__fact dt { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bleu-ardoise); margin: 0; }
.modal-realisation__fact dd { margin: 0; font-weight: 500; text-align: right; }
.modal-realisation__text { font-size: 15px; color: var(--bleu-ardoise); margin-bottom: 24px; }

/* --- CTA --- */
.cta { background: var(--sable); padding: 56px 0; }
.cta__inner {
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--terre-cuite);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; letter-spacing: 0.04em; color: var(--bleu-charpente); }
.cta__text { color: var(--bleu-ardoise); font-size: 17px; margin-top: 12px; max-width: 54ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Mode urgence : même bandeau, décliné en rouge */
.cta--urgence .cta__inner {
  background: var(--rouge-alerte-wash);
  border-color: var(--rouge-alerte-line);
  border-left-color: var(--rouge-alerte);
}
.cta--urgence .cta__eyebrow { color: var(--rouge-alerte); }
.cta--urgence .cta__title em { font-style: normal; color: var(--rouge-alerte); }
.cta--urgence .btn-sabas--primary { background: var(--rouge-alerte); color: var(--blanc-chaux); }
.cta--urgence .btn-sabas--primary:hover { background: var(--rouge-alerte-hover); color: var(--blanc-chaux); }
.cta--urgence .btn-sabas--outline:hover { background: var(--rouge-alerte); border-color: var(--rouge-alerte); color: var(--blanc-chaux); }

/* --- EN-TÊTE DE PAGE (mode « titre ») --- */
/* Même langage que le hero, en version resserrée : trame de plan, halo, titre
   révélé mot à mot, entrées échelonnées. */
.pagehead {
  --reveal: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(211, 92, 29, 0.16), transparent 60%),
    linear-gradient(165deg, var(--bleu-charpente) 0%, var(--bleu-nuit) 100%);
  color: var(--blanc-chaux);
  padding: 56px 0;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168, 188, 206, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 188, 206, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 55% 110% at 90% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 110% at 90% 20%, #000 10%, transparent 70%);
  animation: hero-fade 1.4s ease backwards;
}
body.header-transparent .pagehead { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--admin-offset) + 56px); }
.pagehead__breadcrumb { font-size: 13px; color: var(--bleu-brume); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; animation: hero-rise 0.7s var(--reveal) 0.05s backwards; }
.pagehead__breadcrumb a { color: var(--bleu-brume); }
.pagehead__breadcrumb a:hover { color: var(--blanc-chaux); }
.pagehead__title { font-size: clamp(32px, 4.4vw, 48px); text-transform: uppercase; letter-spacing: 0.03em; color: var(--blanc-chaux); text-wrap: balance; }
.pagehead__title em { animation: hero-underline 0.8s var(--reveal) 0.8s backwards; }
.pagehead__title .u-word__in { animation: hero-word 0.9s var(--reveal) backwards; animation-delay: calc(0.15s + var(--w) * 40ms); }
.pagehead__title .u-word--punct { animation: hero-fade 0.6s ease backwards; animation-delay: calc(0.3s + var(--w) * 40ms); }
.pagehead__text { margin-top: 18px; color: var(--bleu-brume); font-size: 18px; max-width: 58ch; animation: hero-rise 0.8s var(--reveal) 0.45s backwards; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pagehead__meta > * { animation: hero-rise 0.7s var(--reveal) backwards; animation-delay: calc(0.6s + var(--i, 0) * 70ms); }
.pagehead .cta__actions > * { animation: hero-rise 0.8s var(--reveal) 0.5s backwards; }
.pagehead .cta__actions > :nth-child(2) { animation-delay: 0.6s; }

/* --- PRESTATION : contenu --- */
.service-intro__text { font-size: 17px; color: var(--bleu-ardoise); }
.service-prestations__item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.service-prestations__item:last-child { border-bottom: 1px solid var(--hairline); }
.service-prestations__icon { color: var(--terre-cuite); font-size: 18px; margin-top: 3px; }
.service-prestations__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.service-prestations__text { font-size: 15px; color: var(--bleu-ardoise); margin: 0; }

.process__step { position: relative; height: 100%; padding-top: 26px; border-top: 3px solid var(--bleu-charpente); }
.process__num { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; color: var(--terre-cuite); display: block; margin-bottom: 10px; }
.process__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.process__text { font-size: 15px; color: var(--bleu-ardoise); margin: 0; }
.u-bg-bleu .process__step, .u-bg-nuit .process__step, .u-bg-terre .process__step { border-top-color: var(--bleu-zinc); }
.u-bg-bleu .process__title, .u-bg-nuit .process__title, .u-bg-terre .process__title { color: var(--blanc-chaux); }
.u-bg-bleu .process__text, .u-bg-nuit .process__text, .u-bg-terre .process__text { color: var(--bleu-brume); }

/* --- GALERIE --- */
.gallery__item { display: block; position: relative; }
.gallery__item .media-ph { transition: opacity var(--t-base); }
.gallery__item:hover .media-ph { opacity: 0.88; }
.galerie__more { margin-top: 32px; display: flex; justify-content: center; }

.pricing__row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.pricing__label { color: var(--bleu-charpente); font-weight: 500; }
.pricing__value { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* --- À PROPOS --- */
/* Signature de fin de texte (section Image + texte) */
.imgtxt__signature { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.imgtxt__signature-logo { width: 52px; height: 52px; object-fit: contain; }
.imgtxt__signature-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.imgtxt__signature-role { font-size: 13px; color: var(--bleu-ardoise); }
.imgtxt--dark .imgtxt__signature-name { color: var(--blanc-chaux); }
.imgtxt--dark .imgtxt__signature-role { color: var(--bleu-brume); }
.stats__item { text-align: left; }
.stats__value { color: var(--terre-cuite); }
.stats__label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 10px; color: var(--bleu-ardoise); }
.u-bg-bleu .stats__label, .u-bg-nuit .stats__label, .u-bg-terre .stats__label { color: var(--bleu-brume); }
.values__item-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; margin: 16px 0 8px; }
.values__item-text { font-size: 15px; color: var(--bleu-ardoise); margin: 0; }
.zone__list { columns: 2; column-gap: 32px; font-size: 15px; color: var(--bleu-ardoise); display: block; }
.zone__list li { break-inside: avoid; margin-bottom: 12px; }
/* La carte intégrée prend la place du visuel */
.zone__map iframe, .zone__map embed, .zone__map object {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}
.zone__map--ultrawide iframe, .zone__map--ultrawide .media-ph { aspect-ratio: 21 / 9; }

/* --- CONTACT --- */
.contact__panel { background: var(--blanc-chaux); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; }
.contact__aside { display: grid; gap: 14px; }
.contact__info { display: flex; gap: 16px; align-items: flex-start; background: var(--blanc-chaux); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; }
.contact__info i { color: var(--terre-cuite); font-size: 17px; margin-top: 4px; }
.contact__info-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.contact__info-value { font-size: 16px; color: var(--bleu-charpente); }
.contact__info-value a { color: var(--bleu-charpente); }
.contact__hours { display: grid; gap: 8px; font-size: 15px; color: var(--bleu-ardoise); }
.contact__hours-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--hairline); padding-bottom: 6px; }
.contact__map .media-ph { aspect-ratio: 21 / 9; }
.contact__steps { display: grid; gap: 14px; }
.contact__step { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--bleu-ardoise); }
.contact__step-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--terre-cuite); margin-top: 3px; }

/* --- 404 --- */
.page-404 { background: var(--bleu-charpente); color: var(--blanc-chaux); padding: 72px 0; position: relative; overflow: hidden; }
.page-404::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 420px;
  height: 420px;
  border: 1px solid var(--hairline-inverse);
  transform: rotate(45deg);
  pointer-events: none;
}
.page-404__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; position: relative; }
.page-404__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 16vw, 190px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--terre-cuite);
  margin: 0;
  flex: 0 0 auto;
}
.page-404__body { flex: 1 1 380px; }
.page-404__title { font-size: clamp(28px, 3.6vw, 40px); text-transform: uppercase; letter-spacing: 0.04em; color: var(--blanc-chaux); }
.page-404__text { margin-top: 18px; color: var(--bleu-brume); font-size: 17px; max-width: 58ch; }
.page-404__search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 520px; }
.page-404__search .field__control { flex: 1 1 220px; }
.page-404__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-404__widget { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline-inverse); }

/* ============ 7. ANIMATIONS ============ */
.u-reveal { opacity: 1; transform: none; }
.js .u-reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-panel), transform var(--t-panel); }
.js .u-reveal.is-visible { opacity: 1; transform: none; }

/* Mot révélé par masque (titres découpés par sabas_split_words()).
   Le rembourrage protège accents et jambages du masque ; la marge négative
   l'annule pour ne pas toucher à l'interlignage. vertical-align: top est
   indispensable : un inline-block en overflow:hidden a sa ligne de base sur
   son bord inférieur et remonterait sinon au-dessus du texte voisin. */
.u-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.04em 0.16em;
  margin: -0.12em -0.04em -0.16em;
}
.u-word__in { display: inline-block; transform-origin: 0 100%; }
.u-word--punct { display: inline; overflow: visible; padding: 0; margin: 0; }

/* Hero & en-tête de page */
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes hero-word { from { transform: translateY(108%) rotate(4deg); } }
@keyframes hero-rule { from { transform: scaleX(0); } }
@keyframes hero-underline { from { background-size: 0% 0.075em; } }
@keyframes hero-curtain { from { transform: scaleY(1); } }
@keyframes hero-zoom { from { transform: scale(1.2); } }
@keyframes hero-roof { from { clip-path: inset(-12px 50% -12px 50%); } }
@keyframes hero-seal-in { from { opacity: 0; transform: scale(0.3) rotate(-90deg); } }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-card-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(211, 92, 29, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(211, 92, 29, 0); }
}
@keyframes hero-shine {
  0% { transform: translateX(-100%); }
  22%, 100% { transform: translateX(100%); }
}
@keyframes hero-scroll { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes hero-glow { to { transform: translate3d(-8%, 10%, 0) scale(1.15); } }
@keyframes hero-grid { to { transform: translate3d(64px, 64px, 0); } }

/* Parallaxe du hero au défilement — CSS pur (scroll-driven animations).
   Amélioration progressive : les navigateurs sans support gardent un hero
   statique. La timeline est nommée sur .hero : son overflow:hidden en fait un
   conteneur de défilement, une timeline view() anonyme sur les enfants ne
   progresserait jamais. */
@keyframes hero-par-content { to { transform: translateY(90px); opacity: 0.3; } }
@keyframes hero-par-media { to { transform: translateY(-50px); } }
@keyframes hero-par-back { to { transform: translateY(140px); } }

@supports (animation-timeline: view()) {
  @media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero__content { animation: hero-par-content linear both; }
    .hero__media { animation: hero-par-media linear both; }
    .hero__backdrop { animation: hero-par-back linear both; }
    /* Après le raccourci « animation », qui réinitialise la timeline */
    .hero__content,
    .hero__media,
    .hero__backdrop {
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .u-reveal, .js .u-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* Hero : aucune animation, pas même en accéléré (les délais d'entrée
     laisseraient sinon le contenu masqué un instant). */
  .hero *, .hero *::before, .hero *::after,
  .pagehead::before, .pagehead *, .pagehead *::before, .pagehead *::after { animation: none !important; }
}

/* ============ 8. CONTACT FORM 7 ============ */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="file"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bleu-charpente);
  background: var(--blanc-chaux);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--terre-cuite);
  box-shadow: inset 0 -2px 0 0 var(--terre-cuite);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label { display: flex; gap: 12px; align-items: flex-start; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label { font-size: 13px; color: var(--bleu-ardoise); line-height: 1.5; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { accent-color: var(--terre-cuite); width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; }
.wpcf7 input[type="file"] { padding: 10px 14px; }
.contact__submit { margin-top: 8px; }
.contact__form .row { --bs-gutter-x: 24px; }
.wpcf7 .wpcf7-not-valid { border-color: var(--rouge-alerte); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--rouge-alerte); font-size: 13px; margin-top: 6px; }
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--terre-cuite);
  border-radius: var(--radius);
  background: var(--blanc-chaux);
  font-size: 15px;
  color: var(--bleu-ardoise);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-left-color: var(--rouge-alerte); background: var(--rouge-alerte-wash); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 14px; }
.wpcf7 .wpcf7-submit { width: auto; }

/* ============ 9. RESPONSIVE ============ */
@media (max-width: 1199.98px) {
  :root { --section-y: 64px; }
}

@media (max-width: 991.98px) {
  :root { --section-y: 56px; --gutter: 24px; }
  body.has-topbar { --topbar-h: 0px; }
  .topbar { display: none; }
  .hero { padding: 64px 0; --roof: 20%; --roof-gap: 14px; }
  body.header-transparent .hero { padding-top: calc(var(--header-h) + var(--admin-offset) + 56px); }
  .hero__media { margin-top: 16px; }
  .hero__card,
  .hero__frame + .hero__card { margin: 20px 0 0; }
  .hero__seal { width: 92px; left: 12px; bottom: 12px; outline-offset: 4px; }
  .hero__glow { top: auto; bottom: -10%; width: 110vw; }
  .service-intro__figure { position: static; }
  .media-ph--tall, .media-ph--square { aspect-ratio: 16 / 10; }
  .hero__media .media-ph, .imgtxt__figure .media-ph, .service-intro__figure .media-ph { max-height: 46vh; }
  .hero__visual .media-ph { aspect-ratio: 4 / 3; }
  .imgtxt__badge { left: 16px; bottom: 16px; padding: 12px 16px; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .callbar { display: flex; }
  .section { padding: 48px 0; }
  .card-sabas, .card-sabas--wide { padding: 20px; }
  .contact__panel { padding: 22px; }
  .cta__inner { padding: 26px 22px; }
  .modal-realisation__body { padding: 26px 22px; }
  .zone__list { columns: 1; }
  .footer__bottom { flex-direction: column; }
  .page-404__inner { gap: 24px; }
  .top-button { bottom: 86px; }
}
