/* ==========================================================================
   FSI Eco-Habitat — feuille de style principale
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --ink: #0c1410;
  --ink-2: #131d17;
  --ink-3: #1c2921;
  --green: #2c863a;
  --green-600: #24742f;
  --green-700: #145c2b;
  --green-300: #86d493;
  --green-50: #edf6ee;
  --paper: #f6f5f1;
  --white: #fff;
  --line: #e2e5df;
  --text: #2b352f;
  --muted: #5e6862;
  --metal: #aeb5b1;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -30px rgba(12, 20, 16, .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.site-header:not(.is-solid) :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .section--dark :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible, .mobile-nav :focus-visible, .card:focus-visible, .duo__card :focus-visible { outline-color: #fff; }
.contact__form :focus-visible { outline-color: var(--green); }
.main-nav__list .sub-menu :focus-visible { outline-color: var(--green); }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; color: var(--green); }
.section--dark em, .hero em, .page-hero em, .cta-band em { color: var(--green-300); }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Titres & textes ---------- */
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.section--dark .lead { color: rgba(255, 255, 255, .72); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--green-300); }
/* Sur fond teinté, le petit texte vert est un ton plus foncé pour garder un contraste de 4,5:1. */
.section--paper .eyebrow, .page-body .fsi-section--paper .fsi-kicker { color: var(--green-600); }

/* ---------- Boutons & liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px -14px rgba(46, 139, 60, .75); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-50); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn > .icon:first-child { transform: none !important; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 16px; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s var(--ease), background-size .4s var(--ease); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--green); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--green-300); }
.link-arrow--light:hover .icon { transform: translateY(3px); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: background .4s var(--ease), box-shadow .4s var(--ease), color .3s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(8, 13, 10, .55), rgba(8, 13, 10, 0)); pointer-events: none; transition: opacity .4s var(--ease); z-index: -1; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); width: min(100% - clamp(32px, 4vw, 80px), 1560px); margin-inline: auto; transition: height .4s var(--ease); }
.site-header.is-solid { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(12, 20, 16, .35); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .site-header__inner { height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 52px; height: 52px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); transition: width .4s var(--ease), height .4s var(--ease); }
.site-header.is-solid .brand__logo { width: 46px; height: 46px; }
.brand__name { font-family: var(--font-head); font-size: 17px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand__name strong { font-weight: 800; }

.main-nav { margin-inline: auto; }
.main-nav__list { display: flex; align-items: center; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 15px; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; border-radius: 999px; transition: color .25s var(--ease), background .25s var(--ease); }
.main-nav__list > li.menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .65; transition: transform .3s var(--ease); }
.main-nav__list > li:hover > a, .main-nav__list > li:focus-within > a { background: rgba(255, 255, 255, .14); }
.site-header.is-solid .main-nav__list > li:hover > a, .site-header.is-solid .main-nav__list > li:focus-within > a { background: var(--green-50); color: var(--green-700); }
.main-nav__list > li.current-menu-item > a, .main-nav__list > li.current-menu-ancestor > a { color: var(--green-300); }
.site-header.is-solid .main-nav__list > li.current-menu-item > a, .site-header.is-solid .main-nav__list > li.current-menu-ancestor > a { color: var(--green); }
.main-nav__list > li:hover > a::after { transform: translateY(1px) rotate(225deg); }

/* panneaux déroulants */
.main-nav__list > li > .sub-menu { position: absolute; top: calc(100% + 10px); left: -14px; min-width: 270px; padding: 12px; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(12, 20, 16, .45), 0 0 0 1px rgba(12, 20, 16, .06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.main-nav__list > li > .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.main-nav__list > li:hover > .sub-menu, .main-nav__list > li:focus-within > .sub-menu, .main-nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__list > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: -14px; }
.main-nav__list .sub-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease), padding .2s var(--ease); }
.main-nav__list .sub-menu a:hover, .main-nav__list .sub-menu a:focus-visible { background: var(--green-50); color: var(--green-700); padding-left: 18px; }
.main-nav__list .sub-menu .current-menu-item > a { color: var(--green); }
.main-nav__list > li > .sub-menu:has(.sub-menu) { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 4px 10px; min-width: 520px; padding: 16px; align-items: start; }
.main-nav__list .sub-menu .sub-menu { margin: 0 0 8px 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.main-nav__list .sub-menu .sub-menu a { padding: 6px 12px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.main-nav__list .sub-menu .menu-item-has-children > a { font-weight: 700; }

.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-cta__short { display: none; }
/* Accès direct au devis, à côté du téléphone (grands écrans uniquement). */
.header-devis { display: none; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.header-devis:hover { background: #fff; color: var(--ink); }
.site-header.is-solid .header-devis { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 20, 16, .24); }
.site-header.is-solid .header-devis:hover { background: var(--ink); color: #fff; }
@media (min-width: 1280px) { .header-devis { display: inline-flex; } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .14); transition: background .3s var(--ease); }
.site-header.is-solid .burger { background: var(--green-50); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }

/* navigation mobile */
.mobile-nav { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: calc(var(--header-h) + 12px) var(--gutter) 28px; background: var(--ink); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.admin-bar .mobile-nav { padding-top: calc(var(--header-h) + 58px); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-nav__list li { position: relative; }
.mobile-nav__list > li > a { display: block; padding: 18px 56px 18px 0; font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.mobile-nav__list .sub-menu { display: none; padding: 0 0 14px; }
.mobile-nav__list li.is-open > .sub-menu { display: block; }
.mobile-nav__list .sub-menu a { display: block; padding: 10px 56px 10px 16px; font-size: 16.5px; color: rgba(255, 255, 255, .78); }
.mobile-nav__list .sub-menu .sub-menu { padding: 0 0 6px 16px; }
.mobile-nav__list .sub-menu .sub-menu a { font-size: 15px; color: rgba(255, 255, 255, .58); }
.submenu-toggle { position: absolute; right: 0; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sub-menu .submenu-toggle { top: 0; width: 40px; height: 40px; }
.submenu-toggle .icon { transition: transform .3s var(--ease); }
li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.mobile-nav__footer { margin-top: auto; padding-top: 28px; display: grid; gap: 16px; text-align: center; }
.mobile-nav__contact { font-family: var(--font-head); font-weight: 600; color: rgba(255, 255, 255, .8); }
body.nav-open .site-header { background: var(--ink); color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.nav-open .site-header .burger { background: rgba(255, 255, 255, .14); }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(680px, 100svh); padding-top: calc(var(--header-h) + 40px); color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: hero-zoom 4.8s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8, 13, 10, .88) 0%, rgba(8, 13, 10, .62) 38%, rgba(8, 13, 10, .12) 72%, rgba(8, 13, 10, 0) 100%),
  linear-gradient(0deg, rgba(8, 13, 10, .82) 0%, rgba(8, 13, 10, 0) 42%); }
.hero__content { padding-bottom: clamp(36px, 6vh, 72px); }
.hero__title { max-width: 16.5ch; font-size: clamp(2.5rem, 6.1vw, 5.5rem); line-height: 1; letter-spacing: -.04em; color: #fff; }
.hero__eyebrow { animation: rise .9s var(--ease) both; }
.hero__lead { max-width: 52ch; margin: 28px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .82); animation: rise .9s var(--ease) .3s both; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; animation: rise .9s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* Le grand titre n'est pas animé : il est affiché dès la première image, ce qui compte pour la vitesse mesurée par Google (LCP). */

.hero__facts { animation: rise .9s var(--ease) .6s both; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .2); }
.facts li { padding: 22px 24px 26px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts__k { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.facts__v { font-family: var(--font-head); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 148px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper { background: var(--paper); }
.section--dark { position: relative; background: var(--ink); color: rgba(255, 255, 255, .78); overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head__lead { margin: 24px 0 0; max-width: 60ch; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--muted); }
.section-head__lead a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Grille des solutions ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 18px; }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--ink-2); isolation: isolate; }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img, .card:focus-visible img { transform: scale(1.07); }
.card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 13, 10, .88) 0%, rgba(8, 13, 10, .28) 48%, rgba(8, 13, 10, .05) 100%); transition: opacity .5s var(--ease); }
.card__body { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 26px; }
.card__icon { display: none; }
.card__title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.card--xl .card__title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 500; }
.card__text { max-width: 36ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.card--xl .card__body { padding: 36px; }
.card--xl .card__text { font-size: 17px; }
.card__go { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .35s var(--ease), transform .35s var(--ease); }
.card:hover .card__go, .card:focus-visible .card__go { background: var(--green); transform: rotate(45deg); }

/* ---------- Bandeau défilant ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__toggle { position: absolute; right: 16px; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(12, 20, 16, .4); }
.marquee__toggle:hover { background: var(--green-50); }
.marquee__toggle .icon { width: 18px; height: 18px; }
.marquee__toggle .icon--play, .marquee.is-paused .marquee__toggle .icon--pause { display: none; }
.marquee.is-paused .marquee__toggle .icon--play { display: block; }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #b9c0ba; }
.marquee__track span:nth-of-type(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee__track i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bloc image + texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split__media { position: relative; padding: 0 9% 9% 0; }
.frame { border-radius: 26px; overflow: hidden; background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.frame--inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
.split__body .lead { margin-top: 24px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; margin: 44px 0 40px; }
.benefits li { display: flex; gap: 16px; }
.benefits__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: var(--green); box-shadow: 0 0 0 1px var(--line); }
.benefits__icon .icon { width: 24px; height: 24px; }
.benefits h3 { margin-bottom: 6px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; }
.benefits p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Onglets matériaux ---------- */
.tabs__list { display: flex; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 6px; background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tabs__tab { height: 48px; padding: 0 28px; border-radius: 999px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(12, 20, 16, .6); }
.tabs__panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; animation: fade .6s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tabs__media { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--line); }
.tabs__media img { width: 100%; height: 100%; object-fit: cover; }
.tabs__name { margin: 0 0 14px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.tabs__body .h3 { margin-bottom: 18px; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.tabs__body p { color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 26px 0 32px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.checks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.checks--light li { color: #fff; }
.checks--light .icon { background: rgba(134, 212, 147, .16); color: var(--green-300); }

/* ---------- Méthode ---------- */
.method::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 139, 60, .34), rgba(46, 139, 60, 0)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 34px; counter-reset: step; }
.steps__item { position: relative; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .16); }
.steps__item::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--green-300); }
.method__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid rgba(255, 255, 255, .16); }
.method__cta p { margin: 0; max-width: 44ch; font-size: 1.12rem; color: rgba(255, 255, 255, .82); }
.method__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.steps__num { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--green-300); }
.steps__icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 0 24px; border-radius: 18px; background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.steps__icon .icon { width: 26px; height: 26px; }
.steps h3 { margin-bottom: 12px; font-size: 1.35rem; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }

/* ---------- Partenaires ---------- */
.partners__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.partners__head .eyebrow { margin-bottom: 16px; }
.partners__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partners__list > li { display: flex; }
.partner { display: flex; align-items: center; gap: 18px; width: 100%; padding: 26px 26px; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.partner:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 26px 44px -28px rgba(12, 20, 16, .3); }
.partner__mark { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.partner__text { display: grid; gap: 4px; min-width: 0; }
.partner__name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.partner__role { font-size: 14px; line-height: 1.45; color: var(--muted); }
.partner--logo { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; }
.partner__logo { flex: none; width: 100%; height: 68px; }
.partner__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.partner__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--green-600); }
.partner__link .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
a.partner:hover .partner__link .icon { transform: translate(2px, -2px); }

/* ---------- Particuliers / Professionnels ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo__card { position: relative; display: flex; align-items: flex-end; min-height: 560px; border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate; }
.duo__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.duo__card:hover img { transform: scale(1.05); }
.duo__card .card__shade { background: linear-gradient(0deg, rgba(8, 13, 10, .92) 0%, rgba(8, 13, 10, .5) 55%, rgba(8, 13, 10, .08) 100%); }
.duo__body { padding: clamp(26px, 3.4vw, 46px); }
.duo__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.duo__body h3 { margin-bottom: 12px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); color: #fff; }
.duo__body p { max-width: 44ch; color: rgba(255, 255, 255, .8); }
.duo__body ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.duo__body li a { display: inline-flex; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background .3s var(--ease); }
.duo__body li a:hover { background: var(--green); }

/* ---------- Zones ---------- */
.zones__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.zones__intro .lead { margin: 24px 0 30px; }
.zones__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zones__list a { position: relative; display: grid; gap: 2px; height: 100%; padding: 22px 22px 20px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.zones__list a:hover { transform: translateY(-4px); background: var(--ink); color: #fff; box-shadow: 0 26px 44px -24px rgba(12, 20, 16, .55); }
.zones__num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: var(--green); transition: color .35s var(--ease); }
.zones__list a:hover .zones__num { color: var(--green-300); }
.zones__name { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ink); transition: color .35s var(--ease); }
.zones__list a:hover .zones__name { color: #fff; }
.zones__list .icon { position: absolute; top: 20px; right: 18px; width: 18px; height: 18px; color: var(--metal); transition: transform .35s var(--ease), color .35s var(--ease); }
.zones__list a:hover .icon { transform: translate(3px, -3px); color: var(--green-300); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--font-head); font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); cursor: pointer; list-style: none; transition: color .25s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__item summary .icon { width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq__answer { padding: 0 66px 28px 0; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Bloc contact / devis (accueil) ---------- */
.contact__media { position: absolute; inset: 0; z-index: -1; opacity: .22; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 20%, rgba(12, 20, 16, .55) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(36px, 6vw, 100px); align-items: center; }
.contact__intro .lead { margin: 24px 0 8px; }
.contact__form { padding: clamp(26px, 3.4vw, 44px); background: #fff; color: var(--text); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.contact__form .h3 { margin-bottom: 24px; color: var(--ink); }

/* ---------- Formulaire WPForms ---------- */
.fsi-form .wpforms-container { margin: 0 !important; }
.fsi-form .wpforms-form .wpforms-field-container { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 14px; }
.fsi-form .wpforms-form .wpforms-field { grid-column: span 6; padding: 0 0 18px !important; }
.fsi-form .wpforms-form .fsi-col-2 { grid-column: span 2; }
.fsi-form .wpforms-form .fsi-col-3 { grid-column: span 3; }
.fsi-form .wpforms-form .fsi-col-4 { grid-column: span 4; }
.fsi-form .wpforms-form .wpforms-field-label { display: block; margin: 0 0 8px !important; font-family: var(--font-head); font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: 0; color: var(--ink) !important; }
.fsi-form .wpforms-form .wpforms-required-label { color: var(--green) !important; }
.fsi-form .wpforms-form input[type="text"], .fsi-form .wpforms-form input[type="email"], .fsi-form .wpforms-form input[type="tel"], .fsi-form .wpforms-form textarea, .fsi-form .wpforms-form select {
  width: 100% !important; max-width: 100% !important; height: 54px !important; padding: 0 18px !important; font: 400 16px/1.4 var(--font-body) !important; color: var(--ink) !important; background: var(--paper) !important; border: 1px solid transparent !important; border-radius: 14px !important; box-shadow: none !important; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.fsi-form .wpforms-form textarea { height: 140px !important; padding: 16px 18px !important; resize: vertical; }
.fsi-form .wpforms-form select { -webkit-appearance: none; appearance: none; padding-right: 46px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1410' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 18px !important; cursor: pointer; text-overflow: ellipsis; }
.fsi-form .wpforms-form input:focus, .fsi-form .wpforms-form textarea:focus, .fsi-form .wpforms-form select:focus { background: #fff !important; border-color: var(--green) !important; box-shadow: 0 0 0 4px rgba(46, 139, 60, .14) !important; outline: none !important; }
.fsi-form .wpforms-form ::placeholder { color: var(--muted) !important; opacity: 1 !important; }
.fsi-form .wpforms-form .wpforms-field-sublabel, .fsi-form .wpforms-form .wpforms-field-description { font-size: 13px !important; color: var(--muted) !important; }
.fsi-form .wpforms-form .wpforms-field-row { max-width: 100% !important; }
.fsi-form .wpforms-form .wpforms-submit-container { padding: 6px 0 0 !important; margin: 0 !important; }
.fsi-form .wpforms-form button[type="submit"] { width: 100% !important; height: 60px !important; padding: 0 28px !important; font: 600 16px var(--font-head) !important; color: #fff !important; background: var(--green) !important; border: 0 !important; border-radius: 999px !important; box-shadow: 0 14px 30px -14px rgba(46, 139, 60, .75) !important; cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease) !important; }
.fsi-form .wpforms-form button[type="submit"]:hover { background: var(--green-600) !important; transform: translateY(-1px); }
.fsi-form .wpforms-form label.wpforms-error, .fsi-form .wpforms-form em.wpforms-error { font-family: var(--font-body); font-style: normal; font-size: 13px !important; color: #b3261e !important; }
.fsi-form .wpforms-confirmation-container-full, .fsi-form .wpforms-confirmation-container { margin: 0 !important; padding: 22px !important; color: var(--green-700) !important; background: var(--green-50) !important; border: 0 !important; border-radius: 16px !important; }

.fsi-form [class*="wpforms-confirmation-container"] p { margin: 0 0 10px; }
.fsi-form [class*="wpforms-confirmation-container"] p:last-child { margin-bottom: 0; }
.fsi-form [class*="wpforms-confirmation-container"] a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fsi-form__reassure { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; text-align: center; color: var(--muted); }

.fsi-form__notice { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fsi-form__notice p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fsi-form__notice p:last-child { margin-bottom: 0; }
.fsi-form__notice a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bandeau devis (pages intérieures) ---------- */
.cta-band { background: var(--ink); color: rgba(255, 255, 255, .76); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; left: -220px; bottom: -520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 139, 60, .42), rgba(46, 139, 60, 0)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px 60px; padding-block: clamp(64px, 8vw, 110px); }
.cta-band .h2 { color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact__call { margin: 30px 0 14px; color: rgba(255, 255, 255, .72); }
.site-footer__phone { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #fff; }
.fsi-form-aside p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cta-band__text { margin: 20px 0 0; max-width: 52ch; font-size: 1.1rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 40px; padding: clamp(60px, 7vw, 96px) 0 clamp(44px, 5vw, 64px); }
.brand--footer { margin-bottom: 24px; color: #fff; }
.brand--footer .brand__logo { width: 64px; height: 64px; }
.brand--footer .brand__name { font-size: 20px; }
.site-footer__brand p { max-width: 40ch; }
.site-footer__place { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .86); }
.site-footer__place .icon { margin-top: 3px; color: var(--green-300); }
.site-footer__col h2 { margin-bottom: 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer__col li + li { margin-top: 11px; }
.site-footer a { transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--green-300); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(480px, 68vh, 700px); padding-top: calc(var(--header-h) + 40px); color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.page-hero--plain { min-height: 0; padding-top: calc(var(--header-h) + 70px); }
.page-hero--compact { min-height: 0; padding-top: calc(var(--header-h) + 52px); }
.page-hero--compact .page-hero__content { padding-bottom: clamp(30px, 4vw, 48px); }
.page-hero--compact .page-hero__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.page-hero--compact .breadcrumb { margin-bottom: 18px; }
.page-hero--compact + .page-body > .fsi-section:first-child { padding-top: clamp(32px, 4.5vw, 60px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 4.8s var(--ease) both; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8, 13, 10, .9) 0%, rgba(8, 13, 10, .66) 42%, rgba(8, 13, 10, .22) 80%),
  linear-gradient(0deg, rgba(8, 13, 10, .7) 0%, rgba(8, 13, 10, 0) 50%); }
.page-hero__content { padding-bottom: clamp(44px, 6vw, 80px); }
.page-hero__content > .breadcrumb, .page-hero__content > .eyebrow, .page-hero__lead { animation: rise .9s var(--ease) both; }
.page-hero__title { max-width: 18ch; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.page-hero__title--long { max-width: 24ch; font-size: clamp(2rem, 4.1vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; }
.page-hero__lead { max-width: 58ch; margin: 24px 0 0; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(255, 255, 255, .82); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.breadcrumb a { display: inline-block; padding-block: 3px; text-decoration: underline; text-underline-offset: 3px; transition: color .25s var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Contenu des pages intérieures (classes fsi-*) ---------- */
.fsi-section { padding: clamp(60px, 8vw, 116px) 0; }
.fsi-section + .fsi-section { padding-top: 0; }
.fsi-section--paper { background: var(--paper); padding-top: clamp(60px, 8vw, 116px) !important; }
.fsi-section--paper + .fsi-section { padding-top: clamp(60px, 8vw, 116px); }
.fsi-wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.fsi-wrap--narrow { width: min(100% - (var(--gutter) * 2), 820px); }

.page-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.page-body h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.page-body p { color: var(--muted); }
.page-body .fsi-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.page-body .fsi-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.fsi-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.fsi-intro__text p { font-size: 1.12rem; line-height: 1.7; }
.fsi-intro__text p:first-child { color: var(--ink); font-size: 1.28rem; line-height: 1.55; }

.fsi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: card; }
.fsi-cards--2 { grid-template-columns: repeat(2, 1fr); }
.fsi-cards--4 { grid-template-columns: repeat(4, 1fr); }
.fsi-card { position: relative; padding: 32px 30px 30px; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); counter-increment: card; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fsi-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(12, 20, 16, .3); }
.fsi-card::before { content: ''; display: block; width: 34px; height: 3px; margin-bottom: 24px; border-radius: 3px; background: var(--green); transition: width .4s var(--ease); }
.fsi-card:hover::before { width: 56px; }
.fsi-card h3 { margin-bottom: 10px; }
.fsi-card p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.fsi-card--link h3 a { color: inherit; transition: color .3s var(--ease); }
.fsi-card--link h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.fsi-card--link:hover h3 a { color: var(--green-600); }
.fsi-card--link::after { content: '\2192'; position: absolute; top: 26px; right: 28px; font-family: var(--font-head); font-size: 18px; line-height: 1; color: var(--green-600); transition: transform .3s var(--ease); pointer-events: none; }
.fsi-card--link:hover::after { transform: translateX(4px); }
.fsi-section:not(.fsi-section--paper) .fsi-card { background: var(--paper); box-shadow: none; }
.fsi-section:not(.fsi-section--paper) .fsi-card:hover { box-shadow: 0 30px 50px -30px rgba(12, 20, 16, .3); }
.fsi-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 54px); }
.fsi-head p { margin: 18px 0 0; font-size: 1.1rem; }

.fsi-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.fsi-split--reverse .fsi-split__media { order: 2; }
.fsi-split__media { border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--line); box-shadow: var(--shadow); }
.fsi-split__media img { width: 100%; height: 100%; object-fit: cover; }
.fsi-split__body h2 { margin-bottom: 22px; }
.fsi-split__body p { font-size: 1.06rem; }

.fsi-checks { display: grid; gap: 14px; margin: 26px 0 0; }
.fsi-checks li { position: relative; padding-left: 40px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.fsi-checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b3c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.fsi-checks li span { display: block; font-weight: 400; color: var(--muted); font-size: 15.5px; }

.fsi-note { display: grid; gap: 8px; padding: 30px 34px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, .76); }
.fsi-note strong { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-300); }
.fsi-note p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.fsi-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fsi-note a:hover { color: var(--green-300); }

.fsi-faq { border-top: 1px solid var(--line); }
.fsi-faq details { border-bottom: 1px solid var(--line); }
.fsi-faq summary { position: relative; padding: 24px 60px 24px 0; font-family: var(--font-head); font-size: clamp(1.05rem, 1.4vw, 1.22rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); cursor: pointer; list-style: none; transition: color .25s var(--ease); }
.fsi-faq summary::-webkit-details-marker { display: none; }
.fsi-faq summary:hover { color: var(--green); }
.fsi-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-family: var(--font-body); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.fsi-faq details[open] summary::after { transform: rotate(45deg); background: var(--green); color: #fff; }
.fsi-faq details > p { margin: 0; padding: 0 60px 26px 0; }
.fsi-faq details > p a { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fsi-section--paper .fsi-faq summary::after { background: #fff; }

.fsi-prose > * + * { margin-top: 1.1em; }
.fsi-prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fsi-prose h3 { margin-top: 1.5em; }
.fsi-prose p, .fsi-prose li { font-size: 1.05rem; color: var(--text); }
.fsi-prose ul { padding-left: 1.2em; list-style: disc; }
.fsi-prose ul li + li { margin-top: .4em; }
.fsi-prose blockquote { margin: 1.6em 0; padding: 26px 30px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.fsi-prose blockquote p { font-size: .96rem; line-height: 1.6; }
.fsi-prose blockquote p + p { margin-top: .8em; }
.fsi-prose a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.fsi-form-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fsi-form-card { padding: clamp(26px, 3.4vw, 44px); background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fsi-form-card h2 { margin-bottom: 24px; font-size: 1.6rem; }
.fsi-form-aside h2 { margin-bottom: 22px; }
.fsi-form-aside p { font-size: 1.08rem; }

/* tuiles des sous-pages */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 34px 56px -30px rgba(12, 20, 16, .35); }
.tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px 26px 28px; }
.tile__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
.tile__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.tile .link-arrow { align-self: flex-start; margin-top: auto; padding-top: 10px; }
.tile:hover .link-arrow { color: var(--green); }
.tile:hover .link-arrow .icon { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; padding: 11px 20px; border-radius: 999px; background: #fff; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chips a:hover { background: var(--ink); color: #fff; box-shadow: none; }
.chips-group + .chips-group { margin-top: 36px; }

.page-body--legal { padding: clamp(48px, 6vw, 88px) 0; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Barre d'action (téléphone et tablette) ---------- */
.action-bar { display: none; }
@media (max-width: 1023px) {
  .action-bar { position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(12, 20, 16, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(255, 255, 255, .1), 0 -20px 40px -26px rgba(0, 0, 0, .7); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .action-bar[hidden] { display: none; }
  .action-bar.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .action-bar .btn { height: 50px; padding: 0 14px; font-size: 15px; }
  .action-bar .btn--primary { box-shadow: none; }
  .action-bar :focus-visible { outline-color: #fff; }
  body.nav-open .action-bar { display: none; }
  body.has-action-bar .site-footer { padding-bottom: 72px; }
}

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1279px) {
  .header-cta__long { display: none; }
  .header-cta__short { display: inline; }
}
@media (max-width: 1139px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .partners__list { grid-template-columns: 1fr; }
  .card--xl { grid-row: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 34px; }
  .site-footer__top { grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .fsi-cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 959px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .partners__grid { grid-template-columns: 1fr; }
  .split, .tabs__panel, .zones__grid, .faq-grid, .contact__grid, .fsi-intro, .fsi-split, .fsi-form-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .fsi-form-grid .fsi-form-card { order: -1; }
  .fsi-split--reverse .fsi-split__media { order: 0; }
  .duo { grid-template-columns: 1fr; }
  .duo__card { min-height: 460px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .tiles, .fsi-cards { grid-template-columns: repeat(2, 1fr); }
  .hero__shade { background: linear-gradient(0deg, rgba(8, 13, 10, .94) 0%, rgba(8, 13, 10, .66) 55%, rgba(8, 13, 10, .3) 100%); }
  .contact::after { background: rgba(12, 20, 16, .7); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 639px) {
  .eyebrow, .page-body .fsi-kicker { font-size: 11.5px; letter-spacing: .13em; gap: 10px; }
  .eyebrow::before, .page-body .fsi-kicker::before { width: 20px; }
  .site-header .brand__name { font-size: 15.5px; }
  .brand__logo { width: 44px; height: 44px; }
  .header-cta { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .hero { min-height: max(640px, 100svh); }
  .hero__actions .btn { width: 100%; }
  .facts li { padding: 16px 12px 18px 0; }
  .facts li + li { padding-left: 14px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .facts__v { font-size: 14px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .card--xl, .card--wide { grid-column: span 1; }
  .card--xl .card__body { padding: 26px; }
  .benefits { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 26px 0; }
  .steps__icon { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: end; margin: 0; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn, .contact__intro .btn { width: 100%; }
  .zones__list { grid-template-columns: 1fr 1fr; }
  .tabs__tab { padding: 0 20px; }
  .tiles, .fsi-cards, .fsi-cards--2, .fsi-cards--4 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .faq__answer { padding-right: 0; }
  .cta-band__inner .btn { width: 100%; }
  .method__actions, .method__actions .btn { width: 100%; }
  .fsi-note { padding: 24px; }
}
@media (max-width: 479px) {
  .fsi-form .wpforms-form .fsi-col-2, .fsi-form .wpforms-form .fsi-col-3, .fsi-form .wpforms-form .fsi-col-4 { grid-column: span 6; }
}
@media (max-width: 379px) {
  .site-header .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* Bandeau cookies : même police que le site (évite de télécharger une police supplémentaire). */
/* L'extension du bandeau déclare sa propre police : on la fait pointer vers le fichier déjà chargé par le site. */
@font-face { font-family: Figtree; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
html body #surecookie-public-root, html body #surecookie-preferences-root,
html body :is(#surecookie-public-root, #surecookie-preferences-root) * { font-family: var(--font-body) !important; }

/* Bandeau cookies sur téléphone : moins haut, pour ne pas masquer la page. « Tout refuser » et « Tout accepter »
   restent côte à côte, de même taille et de même couleur (recommandation de la CNIL). */
@media (max-width: 639px) {
  html body #surecookie-public-root .surecookie-banner { padding: 16px 16px 14px !important; }
  html body #surecookie-public-root .surecookie-banner-description, html body #surecookie-public-root .surecookie-banner-description * { font-size: 13.5px !important; line-height: 1.45 !important; }
  html body #surecookie-public-root .surecookie-banner-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 10px !important; }
  html body #surecookie-public-root .surecookie-banner-buttons > button { width: 100% !important; margin: 0 !important; }
  html body #surecookie-public-root .surecookie-banner-buttons > .surecookie-preferences-btn,
  html body #surecookie-public-root .surecookie-banner-buttons > .surecookie-branding { grid-column: 1 / -1; }
}
