/* Beolle Paysage — feuille de style unique
   Direction : blanc, vert, noir. Typo Jost (géométrique, héritière de Futura/Avenir), graisses légères,
   capitales espacées pour les petits libellés. Texture : grain et courbes de niveau sur les fonds verts. */

:root {
  --white: #ffffff;
  --mist: #f2f6f1;
  --ink: #0f1311;
  --text: #1d221f;
  --muted: #5d635f;
  --green-950: #071a0e;
  --green-900: #0a2716;
  --green: #0d4923;
  --green-600: #0b6a32;
  --green-500: #057d36;
  --leaf: #a9d48b;
  --line: #e3e7e2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --font: 'Avenir Next', 'Avenir', 'Jost', system-ui, -apple-system, sans-serif;
  --max: 1240px;
  --gut: 32px;
  --header: 86px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  :root { --gut: 16px; --header: 70px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.h2-small { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gut))); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { display: flex; justify-content: center; margin-top: 64px; }
.small { font-size: 0.88rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { left: 12px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
/* petite feuille (forme du logo) : couleur du texte, 25 % d'opacité */
.eyebrow::before {
  content: '';
  flex: none;
  width: 21px;
  height: 12px;
  background-color: currentColor;
  opacity: 0.25;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 7C5 0.5 16 -0.5 23 7C16 13 5 13.5 1 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 7C5 0.5 16 -0.5 23 7C16 13 5 13.5 1 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-28deg);
}
.eyebrow { gap: 12px; }
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 50ch; font-weight: 400; }

/* ---------- Textures ---------- */

.hero, .page-hero, .trust, .credit-band, .cta-band, .site-footer { position: relative; isolation: isolate; }
.hero::after, .page-hero::after, .credit-band::after, .cta-band::after, .site-footer::after, .credit-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.09;
  mix-blend-mode: overlay;
}
.credit-band > *, .cta-band > *, .site-footer > *, .credit-strip > * { position: relative; z-index: 1; }

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 7px 7px 7px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.78rem/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
/* remplissage qui monte depuis le bas */
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-label { padding-right: 2px; }
.btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.btn-icon svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform 0.55s var(--ease); }
.btn-icon svg:nth-child(2) { transform: translateX(-220%); }
.btn:hover .btn-icon svg:nth-child(1) { transform: translateX(220%); }
.btn:hover .btn-icon svg:nth-child(2) { transform: none; }
.btn-icon-static svg { width: 17px; height: 17px; }
.btn:hover .btn-icon-static svg:nth-child(1) { transform: rotate(-14deg) scale(1.1); }

.btn-primary { color: var(--white); background: var(--green); }
.btn-primary::before { background: var(--green-900); }
.btn-primary .btn-icon { background: var(--white); color: var(--green); }

.btn-light { color: var(--ink); background: var(--white); }
.btn-light::before { background: var(--mist); }
.btn-light .btn-icon { background: var(--green); color: var(--white); }
.btn-light:hover .btn-icon { background: var(--green-500); }

.btn-ghost { color: var(--ink); border-color: rgba(15, 19, 17, 0.22); background: var(--white); }
.btn-ghost::before { background: var(--green); }
.btn-ghost .btn-icon { background: var(--green); color: var(--white); }
.btn-ghost:hover { color: var(--white); border-color: var(--green); }
.btn-ghost:hover .btn-icon { background: var(--white); color: var(--green); }

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass::before { background: var(--white); }
.btn-glass .btn-icon { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.btn-glass:hover { color: var(--ink); border-color: var(--white); }
.btn-glass:hover .btn-icon { background: var(--green); }

.btn-sm { min-height: 48px; padding: 5px 5px 5px 22px; gap: 14px; font-size: 0.7rem; }
.btn-sm .btn-icon { width: 38px; height: 38px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.4s var(--ease); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.link .arrow { color: var(--green-500); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.header-inner { display: flex; align-items: stretch; gap: 40px; min-height: var(--header); }
/* Blason : logo officiel dans un bloc blanc qui dépasse sous la barre */
.brand { position: relative; z-index: 2; flex: none; align-self: stretch; width: 124px; margin-right: auto; }
.brand-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 124px;
  padding: 16px 16px 20px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px -18px rgba(7, 26, 14, 0.55);
  transform-origin: top left;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-badge img { width: 100%; height: auto; }
.brand:hover .brand-badge { box-shadow: 0 24px 48px -18px rgba(7, 26, 14, 0.65); }
/* au défilement (et menu mobile ouvert), le blason se réduit pour tenir dans la barre */
.site-header.is-scrolled .brand-badge { transform: scale(0.8); }
body.menu-open .site-header .brand-badge { transform: none; }

.site-nav { display: flex; align-items: stretch; gap: 36px; }
.nav-list { list-style: none; display: flex; align-items: stretch; gap: 34px; margin: 0; padding: 0; }
.nav-list > li { display: flex; align-items: center; }
.nav-list > li > a, .nav-sub-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  background: none;
  font: 500 0.76rem/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s;
}
.nav-list > li > a[aria-current='page'], .nav-sub-toggle[aria-current='page'] { color: var(--green-500); }
.nav-list > li > a::after, .nav-sub-toggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current='page']::after,
.nav-sub-toggle[aria-current='page']::after, .has-sub.is-open .nav-sub-toggle::after { transform: scaleX(1); transform-origin: left; }
.chevron { flex: none; width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.has-sub.is-open .chevron { transform: rotate(180deg); }

/* Dépliant Prestations (pleine largeur sous l'en-tête) */
.nav-sub {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 50px 80px -50px rgba(7, 26, 14, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.has-sub.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.brand-badge { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.3s var(--ease); }
@media (min-width: 1101px) {
  .site-header:has(.has-sub.is-open) .brand-badge { opacity: 0; transform: translateY(-16px); pointer-events: none; }
}
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .chevron { transform: rotate(180deg); }
  .has-sub:hover .nav-sub-toggle::after { transform: scaleX(1); transform-origin: left; }
  .site-header:has(.has-sub:hover) .brand-badge { opacity: 0; transform: translateY(-16px); pointer-events: none; }
}
.nav-sub-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 32px 0 40px; }
.nav-sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-content: start; }
.nav-sub-list a { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; transition: background 0.3s var(--ease); }
.nav-sub-list a:hover { background: var(--mist); }
.nav-sub-title { display: block; font-size: 1.06rem; font-weight: 500; color: var(--ink); }
.nav-sub-desc { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.nav-sub-card { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); text-decoration: none; isolation: isolate; }
.nav-sub-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.nav-sub-card:hover img { transform: scale(1.05); }
.nav-sub-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 26, 14, 0.85), rgba(7, 26, 14, 0) 70%); }
.nav-sub-card-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.nav-sub-card .nav-sub-title { color: var(--white); }
.nav-sub-card .nav-sub-desc { color: rgba(255, 255, 255, 0.82); }
.nav-sub-all { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nav-sub-all .arrow { color: var(--green-500); }
.nav-sub-all:hover .arrow { transform: translateX(4px); }

.nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: 500 0.74rem/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}
.nav-cta:hover { background: var(--green-500); }

.nav-toggle { display: none; align-self: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; transition: background 0.35s var(--ease); }
.nav-toggle[aria-expanded='true'] { background: var(--green); }
.bars, .bars::before, .bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.4s var(--ease), background 0.25s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { background: var(--white); transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { background: var(--white); transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    height: calc(100dvh - var(--header));
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 84px var(--gut) 28px;
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 20px 0; font-size: 1.3rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .nav-list > li > a::after, .nav-sub-toggle::after { display: none; }
  .nav-list > li > a[aria-current='page'], .nav-sub-toggle[aria-current='page'] { color: var(--green-500); }
  .nav-sub { background: transparent; }
  .chevron { width: 20px; height: 20px; }
  .nav-sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; }
  .has-sub.is-open .nav-sub { display: block; }
  .nav-sub-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; padding: 0 0 16px; }
  .nav-sub-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav-sub-list a { padding: 12px 0; gap: 14px; }
  .nav-sub-list a:hover { background: none; }
  .nav-sub-desc { display: none; }
  .nav-sub-card { aspect-ratio: auto; overflow: visible; }
  .nav-sub-card img, .nav-sub-card::after { display: none; }
  .nav-sub-card-text { position: static; display: block; padding: 12px 0; }
  .nav-sub-card .nav-sub-title { color: var(--ink); }
  .nav-sub-all { margin: 4px 0 0; }
  .nav-cta { align-self: stretch; height: 56px; font-size: 0.8rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Héros ---------- */

.hero {
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--green-950);
}
.hero-img, .page-hero-img, .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-img { object-position: 50% 55%; animation: kenburns 16s var(--ease) both; }
.page-hero-img { animation: kenburns 14s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 26, 14, 0.58) 0%, rgba(7, 26, 14, 0.74) 75%),
    linear-gradient(0deg, rgba(7, 26, 14, 0.55) 0%, rgba(7, 26, 14, 0) 40%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 26, 14, 0.6) 0%, rgba(7, 26, 14, 0.78) 80%),
    linear-gradient(0deg, rgba(7, 26, 14, 0.45) 0%, rgba(7, 26, 14, 0) 40%);
}
.hero-inner, .page-hero-inner { position: relative; z-index: 1; }
.hero-inner > * { animation: rise 1.1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.12s; }
.hero-inner > :nth-child(3) { animation-delay: 0.28s; }
.hero-inner > :nth-child(4) { animation-delay: 0.4s; }
.page-hero-inner > * { animation: rise 1s var(--ease) both; }
.page-hero-inner > :nth-child(3) { animation-delay: 0.1s; }
.page-hero-inner > :nth-child(4) { animation-delay: 0.2s; }
.page-hero-inner > :nth-child(5) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-inner { padding: 120px 0; }
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 15ch;
  margin: 0 auto 28px;
}
.hero h1 em { display: block; font-style: normal; color: var(--leaf); }
.hero .lead { color: rgba(255, 255, 255, 0.9); font-weight: 400; max-width: 44ch; margin-inline: auto; }
.hero .actions { justify-content: center; }
/* indicateur de défilement */
.hero-scroll { position: absolute; left: 50%; bottom: 32px; z-index: 1; width: 1px; height: 56px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero-scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--white); animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Bandeau de réassurance */
/* Bandeau d'engagements : défilement continu sur fond blanc, séparés par la feuille du logo */
.trust { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; align-items: center; flex: none; margin: 0; padding: 30px 0; list-style: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: block; white-space: nowrap; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); }
.marquee-track strong { font-weight: 500; color: var(--ink); }
.marquee-track li::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 22px; height: 13px;
  margin: 0 clamp(28px, 4vw, 56px);
  background-color: var(--green-500);
  opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 7C5 0.5 16 -0.5 23 7C16 13 5 13.5 1 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 7C5 0.5 16 -0.5 23 7C16 13 5 13.5 1 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-28deg);
}
.marquee-track li:nth-child(even)::after { transform: rotate(28deg) scaleX(-1); }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden='true'] { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section:not(.section-alt) + .section:not(.section-alt) { border-top: 1px solid var(--line); }
.section-alt { background: var(--mist); }
.section-flush { padding-top: 0; }
.section-tight { padding: 0 0 clamp(48px, 6vw, 80px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 80px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head > p { color: var(--muted); margin: 0; max-width: 52ch; }

/* Intro entreprise */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px 96px; align-items: center; }
.intro-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1; }
.intro-media > img { width: 100%; height: 100%; object-fit: cover; }
.intro-grid > div:last-child p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* ---------- Cartes prestations ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
/* Carte ouverte : photo arrondie et texte posé sur le fond, sans cadre ni ombre */
.service-card { display: flex; flex-direction: column; text-decoration: none; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-card:hover .arrow { transform: translateX(6px); }
.service-card:hover h3 { background-size: 100% 1px; }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-media .tag { position: absolute; left: 14px; top: 14px; }
.service-body { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.service-body h3 {
  align-self: flex-start;
  margin-bottom: 10px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.service-body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 20px; max-width: 42ch; }
.service-body .link { margin-top: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b8bdb9; }
.tag-oui { background: var(--green); color: var(--white); }
.tag-oui::before { background: var(--leaf); box-shadow: 0 0 0 3px rgba(169, 212, 139, 0.3); }
.tag-partiel::before { background: var(--green-500); }

/* ---------- Étapes ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before { content: ''; position: absolute; top: -4px; left: 0; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
/* Cycle « Notre méthode » (piloté par main.js) : l'étape active passe en pleine opacité,
   son point glisse le long du trait qui se remplit, puis elle s'estompe et la suivante prend le relais. */
.steps { --step-dur: 2.4s; }
.steps li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform-origin: left; }
.steps.animate li { opacity: 0.3; transition: opacity 0.7s var(--ease); }
.steps.animate li::after { transform: scaleX(0); }
.steps.animate li.is-active { opacity: 1; }
.steps.animate li.is-active::after { animation: step-line var(--step-dur) cubic-bezier(0.45, 0, 0.25, 1) forwards; }
.steps.animate li.is-active::before { animation: step-dot var(--step-dur) cubic-bezier(0.45, 0, 0.25, 1) forwards; }
.steps.animate li.is-done::after { transform: scaleX(1); }
.steps.animate li.is-done::before { left: calc(100% - 7px); }
@keyframes step-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-dot { from { left: 0; } to { left: calc(100% - 7px); } }
.step-num { display: block; font-size: 3.2rem; font-weight: 500; line-height: 1; color: var(--ink); margin-bottom: 22px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Bandeau crédit d'impôt ---------- */

.credit-band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center; padding: clamp(96px, 12vw, 168px) 0; background: var(--green-950); }
.credit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.credit-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7, 26, 14, 0.8); }
.credit-inner .eyebrow { justify-content: center; }
.credit-band h2 { color: var(--white); max-width: 18ch; margin: 0 auto; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.credit-equation { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 4vw, 64px); margin: clamp(48px, 6vw, 72px) auto clamp(36px, 5vw, 56px); }
.credit-equation > div { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.credit-equation strong { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.credit-equation > div span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.credit-equation .op { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; color: rgba(255, 255, 255, 0.4); }
.credit-equation .result strong { color: var(--leaf); }
.credit-note { max-width: 58ch; margin: 0 auto; color: rgba(255, 255, 255, 0.78); }
.credit-inner .actions { justify-content: center; }

/* ---------- Zone ---------- */

/* Bandeau Zone : photo du Rhône sous un voile uniforme ; le fleuve sépare les deux rives */
.zone-band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center; padding: clamp(110px, 13vw, 170px) 0; background: var(--green-950); }
.zone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.zone-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7, 26, 14, 0.78); }
.zone-inner .eyebrow, .zone-inner .actions { justify-content: center; }
.zone-band h2 { color: var(--white); font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 24px; }
.zone-band h2 em { font-style: normal; font-weight: 400; color: var(--leaf); }
.zone-intro { max-width: 46ch; margin: 0 auto; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.85); }
.banks-split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 clamp(28px, 5vw, 64px); max-width: 860px; margin: clamp(48px, 6vw, 72px) auto clamp(40px, 5vw, 56px); }
.bank-west { text-align: right; }
.bank-east { text-align: left; }
.bank-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--leaf); margin-bottom: 14px; }
.bank-side ul { list-style: none; margin: 0; padding: 0; }
.bank-side li { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.9; color: var(--white); }
.river-line { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.river-line::before, .river-line::after { content: ''; flex: 1; width: 1px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45)); }
.river-line::after { background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); }
.river-line span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-style: italic; }
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 96px; }
.bank { padding-top: 32px; border-top: 1px solid var(--ink); }
.bank > p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; max-width: 52ch; }
.town-list { list-style: none; margin: 0; padding: 0; line-height: 2; color: var(--ink); }
.town-list li { display: inline-block; white-space: nowrap; }
.town-list li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--green-500); }
.town-list li:first-child, .town-list li:nth-child(2) { font-weight: 500; }

/* ---------- Réalisations ---------- */

.real-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.real-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.real-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.real-card:hover .real-media img { transform: scale(1.05); }
.real-card h3 { margin: 8px 0 8px; }
.real-card p:last-child { color: var(--muted); font-size: 0.96rem; }
.draft {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}
.meta { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- Journal ---------- */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-card h3 { margin: 12px 0 10px; }
.post-card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.post-card:hover h3 a { background-size: 100% 1px; }
.post-card > p:not(.meta) { color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 96px; }
.faq h2 { max-width: 12ch; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.3s;
}
summary:hover { color: var(--green-500); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.45s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}
summary:hover::after { border-color: var(--green); }
details[open] summary::after { transform: rotate(135deg); background: var(--green); border-color: var(--green); color: var(--white); }
details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }

/* ---------- Appel à l'action ---------- */

.cta-band { overflow: hidden; color: var(--white); padding: clamp(64px, 7vw, 96px) 0; }
/* voile vert + courbes de niveau (relief des coteaux) par-dessus la photo */
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 26, 14, 0.94) 0%, rgba(10, 39, 22, 0.82) 100%); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px 96px; align-items: center; }
.cta-band h2 { color: var(--white); margin: 0 0 18px; font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.02; }
.cta-band .cta-text p { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; line-height: 1.7; }
.cta-card { display: flex; flex-direction: column; padding: 12px 32px 32px; background: var(--white); border-radius: var(--radius); color: var(--ink); }
.cta-line { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cta-line span { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.cta-line strong { font-size: 1.4rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); overflow-wrap: anywhere; transition: color 0.3s; }
.cta-line:hover strong { color: var(--green-500); }
.cta-card .btn { margin-top: 24px; }

/* ---------- En-têtes de page ---------- */

.page-hero { overflow: hidden; color: var(--white); min-height: 640px; display: flex; align-items: center; text-align: center; background: var(--green-950); }
.page-hero-inner { padding: 120px 0; }
.page-hero h1 { max-width: 24ch; color: var(--white); text-wrap: balance; }
.page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 58ch; }
.page-hero .crumbs ol { color: rgba(255, 255, 255, 0.7); }
.page-head { padding: clamp(112px, 12vw, 168px) 0 clamp(80px, 9vw, 128px); background: var(--white); text-align: center; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 60ch; }
/* contenu des en-têtes centré */
.page-hero .eyebrow, .page-head .eyebrow, .page-hero .actions, .page-head .actions, .page-hero .crumbs ol, .page-head .crumbs ol { justify-content: center; }
.page-hero h1, .page-head h1, .page-hero .lead, .page-head .lead { margin-inline: auto; }
.page-404 { min-height: 60vh; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 44px; padding: 0; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: '—'; margin-right: 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Contenus ---------- */

.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 48px 104px; align-items: start; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a403c; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.5em; padding-left: 0.3em; }
.prose li::marker { color: var(--green-500); }
.prose a { color: var(--ink); font-weight: 500; text-decoration-color: var(--green-500); }
.prose a:hover { color: var(--green-500); }
.article .page-head h1 { max-width: 22ch; }
.article-cover { margin: 0 auto clamp(48px, 6vw, 72px); overflow: hidden; border-radius: var(--radius); }
.article-cover img { width: 100%; max-height: 580px; object-fit: cover; }
.article-body { padding-bottom: clamp(72px, 9vw, 120px); }

.side-card { padding-top: 28px; border-top: 1px solid var(--ink); }
.side-card p:last-child { margin-bottom: 0; }
.side-note { font-size: 0.9rem; color: var(--muted); margin-top: 20px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.compare-no .checks li::before { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' stroke='%235d635f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.68rem; font-weight: 500; line-height: 2; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* Bandeau crédit d'impôt des pages prestations */
.credit-strip { position: relative; isolation: isolate; overflow: hidden; background: var(--green-900); color: var(--white); text-align: center; padding: clamp(80px, 10vw, 128px) 0; }
.credit-strip-inner .eyebrow, .credit-strip-inner .actions { justify-content: center; }
.credit-strip h2 { color: var(--white); max-width: 20ch; margin: 0 auto 18px; }
.credit-strip p:not(.eyebrow) { max-width: 58ch; margin: 0 auto; color: rgba(255, 255, 255, 0.78); }

/* Crédit d'impôt : comparatif éligible / non éligible */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 96px; }
.compare-col { padding-top: 32px; border-top: 1px solid var(--ink); }
.compare-no { border-top-color: var(--line); }
.compare-no .checks li { color: var(--muted); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 96px; align-items: start; }
.contact-phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.contact-phone:hover strong { color: var(--green-500); }
.contact-phone span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.contact-phone strong { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: 0.02em; transition: color 0.3s; }
.contact-info .side-card { margin-top: 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; padding-top: 32px; border-top: 1px solid var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.form input:not([type='radio']):not([type='checkbox']), .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-bottom: 1px solid #c9cfca;
  border-radius: 0;
  padding: 12px 2px;
  transition: border-color 0.3s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--green-500); box-shadow: 0 1px 0 var(--green-500); }
.form textarea { resize: vertical; min-height: 140px; }
.radios { border: 0; margin: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.radios legend { margin-bottom: 12px; width: 100%; }
.radios label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.9rem; letter-spacing: 0.02em; text-transform: none; font-weight: 400; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.radios label:hover { border-color: var(--green-500); }
.radios label:has(input:checked) { border-color: var(--green); background: var(--green); color: var(--white); }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.consent input { accent-color: var(--green); }
.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 0.88rem !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { margin-top: 5px; }
.form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
.form-status { margin: 0; font-size: 0.92rem; color: var(--green-500); }
.form-status.is-error { color: #a33a1c; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #a33a1c; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--green-950); color: rgba(255, 255, 255, 0.66); padding: clamp(96px, 11vw, 152px) 0 40px; font-size: 0.93rem; overflow: hidden; }
.site-footer a { text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: clamp(72px, 8vw, 112px); }
.foot-brand p { max-width: 36ch; margin-top: 22px; }
.foot-brand .foot-phone { font-size: 1.6rem; font-weight: 500; letter-spacing: 0.04em; color: var(--white); margin-bottom: 4px; }
.foot-title { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--leaf); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 0.82rem; }
.foot-bottom p { margin: 0; }
.site-footer .foot-legal { display: flex; flex-wrap: wrap; gap: 8px 32px; grid-auto-flow: unset; }
.foot-legal a { display: inline-block; padding: 6px 0; }
.foot-brand .foot-title { margin: 0; }
.foot-brand > p:nth-child(2) { margin-top: 18px; }

/* Bouton d'appel flottant (mobile) */
.call-fab { display: none; }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.service-grid > .reveal:nth-child(3n + 2), .real-grid > .reveal:nth-child(3n + 2), .posts > .reveal:nth-child(3n + 2) { transition-delay: 0.1s; }
.service-grid > .reveal:nth-child(3n), .real-grid > .reveal:nth-child(3n), .posts > .reveal:nth-child(3n) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .section-head, .faq-grid, .two-col, .contact-grid, .intro-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid, .real-grid, .posts, .steps { grid-template-columns: 1fr 1fr; }
  .intro-media { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .brand, .brand-badge { width: 84px; }
  .brand-badge { padding: 12px 12px 14px; }
  .site-header.is-scrolled .brand-badge { transform: none; }
  .site-nav { padding-top: 52px; }
  .page-head { padding: 112px 0 64px; }
  body { font-size: 16px; }
  .hero { min-height: calc(100svh - var(--header)); }
  .hero::before { background: rgba(7, 26, 14, 0.62); }
  .hero-inner { padding: 96px 0; }
  .page-hero { min-height: 540px; }
  .page-hero::before { background: rgba(7, 26, 14, 0.66); }
  .page-hero-inner { padding: 96px 0; }
  .actions .btn { flex: 1 1 100%; }
  .bank-side li { font-size: 0.98rem; line-height: 1.7; }
  .banks-split { gap: 0 18px; }
  .credit-equation { flex-direction: column; align-items: center; gap: 14px; }
  .cta-card { padding: 4px 20px 20px; }
  .cta-line strong { font-size: 1.2rem; }
  .btn { white-space: normal; text-align: left; line-height: 1.35; letter-spacing: 0.14em; }
  .center .btn { width: 100%; }
  .marquee-track { padding: 22px 0; animation-duration: 30s; }
  .service-grid, .real-grid, .posts, .steps, .compare, .banks, .form { grid-template-columns: minmax(0, 1fr); }
  .real-media { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-footer { padding-bottom: 96px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .crumbs ol { margin-bottom: 28px; }
  /* Bouton d'appel : pilule dans le langage des boutons du site, visible une fois le héros dépassé */
  .call-fab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    height: 52px;
    padding: 6px 6px 6px 20px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font: 500 0.7rem/1 var(--font);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px -14px rgba(7, 26, 14, 0.6);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), bottom 0.4s var(--ease);
  }
  .call-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .call-fab:active { transform: scale(0.97); }
  .call-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--green); }
  .call-icon svg { width: 17px; height: 17px; }
  body.menu-open .call-fab { display: none; }
}

/* Parallaxe (pilotée par main.js) */
.hero-img, .page-hero-img, .cta-bg, .credit-bg, .zone-bg, .service-media img, .real-media img, .post-media img, .article-cover img, .intro-media img { will-change: translate; }

/* ---------- Transition de page (pilotée par main.js) ----------
   Un aplat vert monte depuis le bas, puis repart vers le haut sur la page suivante.
   Seul `transform` est animé : tout se passe sur le compositeur, sans redessin. */
/* pétales du clic : sous le texte du bouton, au-dessus de son fond */
.petal { position: absolute; z-index: -1; height: auto; fill: currentColor; pointer-events: none; will-change: transform, opacity; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green-900);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
html.pt-leave .page-transition { visibility: visible; animation: pt-cover 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
html.pt-leave main { transform: translateY(-32px); transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1); }
html.pt-enter .page-transition { visibility: visible; transform: none; animation: pt-reveal 0.75s 0.05s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
html.pt-enter .hero-img, html.pt-enter .page-hero-img { animation-delay: 0.3s; }
html.pt-enter .hero-inner > *, html.pt-enter .page-hero-inner > * { animation-delay: 0.45s; }
html.pt-enter .hero-inner > :nth-child(2), html.pt-enter .page-hero-inner > :nth-child(2) { animation-delay: 0.55s; }
html.pt-enter .hero-inner > :nth-child(3), html.pt-enter .page-hero-inner > :nth-child(3) { animation-delay: 0.65s; }
html.pt-enter .hero-inner > :nth-child(4), html.pt-enter .page-hero-inner > :nth-child(4) { animation-delay: 0.75s; }
@keyframes pt-cover { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pt-reveal { from { transform: none; } to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .page-transition { display: none; } }

/* ---------- Pages légales ---------- */

.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px 96px; align-items: start; max-width: 1080px; }
.legal-toc { position: sticky; top: calc(var(--header) + 72px); }
.legal-toc-title { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 12px; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.92rem; color: var(--muted); text-decoration: none; transition: color 0.3s, border-color 0.3s; }
.legal-toc a span { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--green-500); padding-top: 3px; }
.legal-toc a:hover, .legal-toc a.is-current { color: var(--ink); border-left-color: var(--green-500); }
.legal-updated { margin-top: 24px; font-size: 0.8rem; color: var(--muted); }
.legal-section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 32px); }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-num { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; color: var(--green-500); margin-bottom: 10px; }
.legal-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.legal-section p { color: #3a403c; max-width: 64ch; }
.legal-section a { color: var(--ink); text-decoration-color: var(--green-500); }
.legal-dl { margin: 0; }
.legal-dl div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-dl div:first-child { padding-top: 0; }
.legal-dl div:last-child { border-bottom: 0; }
.legal-dl dt { font-size: 0.7rem; font-weight: 500; line-height: 2; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.legal-dl dd { margin: 0; color: var(--ink); }
.legal-table { margin-top: 20px; }
.legal-row { display: grid; grid-template-columns: 160px 1fr 140px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.legal-row-head { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.legal-row code { font-size: 0.86rem; padding: 2px 8px; border-radius: 4px; background: var(--mist); color: var(--green); }

/* ---------- Bandeau cookies : une ligne fine en bas ---------- */

.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(7, 26, 14, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.cookie-bar.is-visible { transform: none; }
.cookie-inner { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.cookie-inner p { flex: 1; margin: 0; line-height: 1.4; }
.cookie-leaf { flex: none; width: 22px; height: 13px; fill: var(--leaf); transform-origin: 10% 50%; animation: leaf-sway 3.2s ease-in-out infinite; }
.cookie-leaf .vein { fill: none; stroke: var(--green-950); stroke-width: 0.9; opacity: 0.5; }
@keyframes leaf-sway { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(8deg) translateY(-1px); } }
.cookie-link { flex: none; color: rgba(255, 255, 255, 0.7); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); white-space: nowrap; }
.cookie-link:hover { color: var(--white); }
.cookie-ok { flex: none; height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--white); color: var(--green); font: 500 0.7rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.cookie-ok:hover { background: var(--leaf); }

@media (max-width: 1000px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}
@media (max-width: 680px) {
  .legal-dl div, .legal-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .legal-row-head { display: none; }
  .cookie-more { display: none; }
  .cookie-inner { gap: 12px; min-height: 52px; font-size: 0.8rem; }
  body.has-cookie-bar .call-fab { bottom: 68px; }
}
.cookie-short { display: none; }
@media (max-width: 680px) {
  .cookie-long { display: none; }
  .cookie-short { display: inline; }
}
@media (max-width: 680px) {
  .cookie-link { display: none; }
}

/* ---------- Carrière ---------- */

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.value-num { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; color: var(--green-500); margin-bottom: 14px; }
.values h3 { margin-bottom: 10px; }
.values p { color: var(--muted); font-size: 0.97rem; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.job { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto; gap: 16px 56px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.job h3 { margin: 8px 0 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.job-tag { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-500); }
.job p { margin: 0; color: var(--muted); }
.job .link { white-space: nowrap; text-decoration: none; }
.job .link:hover .arrow { transform: translateX(6px); }
@media (max-width: 1000px) {
  .values { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .values { grid-template-columns: minmax(0, 1fr); }
}

/* Variante claire de l'équation (page crédit d'impôt) : fond vert très clair, texte foncé */
.credit-light { text-align: center; }
.credit-light h2 { max-width: 18ch; margin: 0 auto; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.credit-light .credit-equation strong { color: var(--ink); }
.credit-light .credit-equation > div span { color: var(--muted); }
.credit-light .credit-equation .op { color: var(--green-500); opacity: 0.5; }
.credit-light .credit-equation .result strong { color: var(--green-500); }
.credit-light .credit-note { color: var(--muted); }

/* Crédit d'impôt : conditions côte à côte, sous un trait */
.conditions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.conditions > div { padding-top: 28px; border-top: 1px solid var(--ink); }
.conditions h3 { margin-bottom: 10px; }
.conditions p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.conditions-note { margin: 48px 0 0; }
.conditions-note a { color: inherit; }
@media (max-width: 1000px) { .conditions { grid-template-columns: minmax(0, 1fr); } }

/* Courbes de niveau du pied de page (dessinées par main.js) : invisibles en haut, de plus en plus nettes vers le bas */
.site-footer .foot-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 32%, rgba(0, 0, 0, 0.35) 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 32%, rgba(0, 0, 0, 0.35) 55%, #000 100%);
}
