:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #404040;
  --heading: #482727;
  --muted: #3a4240;
  --brand: #79981a;
  --brand-dark: #5f7a14;
  /* Vert plus foncé pour texte blanc (contraste AA) */
  --brand-contrast: #4e6610;
  --brand-accent: #71a061;
  --line: #d8e1db;
  --alt: #f3f3f3;
  --radius: 0;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* Open Sans auto-hébergée (latin + latin-ext) — police variable */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: auto;
  max-height: 59px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--heading);
  font-weight: 400;
  font-size: 1.05rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--brand-contrast);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #3f520c;
  color: #fff;
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--brand-contrast);
  color: #fff;
}

.btn-header {
  margin-left: 0.5rem;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

/* Fallback CSS (pages sans balise img) */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-barriere-720.webp") center / cover no-repeat;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero-bg {
    background-image: url("../img/hero-barriere.webp");
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding-block: 2.5rem;
}

.hero-copy {
  text-align: center;
  max-width: 52rem;
}

.hero-welcome {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  font-weight: 700;
  color: #fff;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-tag {
  display: inline-block;
  margin: 0 auto;
  padding: 0.6rem 1.15rem;
  background: #fff;
  color: var(--brand-accent);
  font-size: clamp(1.05rem, 2vw, 1.75rem);
  font-weight: 400;
  text-align: center;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--heading);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-account:hover,
.nav-account:focus-visible {
  color: var(--brand);
  background: rgba(121, 152, 26, 0.12);
}

.nav-account-icon {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
  color: var(--brand);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

h3,
.section-subtitle {
  color: var(--heading);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--alt);
}

.section-head {
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.split-media img {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.split-content p:last-child,
.block-text p:last-child {
  margin-bottom: 0;
}

.thumb-grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.thumb-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.block-text {
  margin-top: 1rem;
}

/* ---------- Intro soignée (index2) ---------- */
.intro-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.intro-media {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h, 120px) + 1rem);
}

.intro-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.intro-body {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.intro-copy {
  display: grid;
  gap: 0.85rem;
}

.intro-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro-tags {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.intro-tags li {
  padding: 0.4rem 0.75rem;
  background: rgba(121, 152, 26, 0.1);
  color: var(--heading);
  border: 1px solid rgba(121, 152, 26, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.intro-highlight {
  margin: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  border-left: 4px solid var(--brand);
  background: linear-gradient(180deg, #f7faf0 0%, #f3f3f3 100%);
}

.intro-highlight h2,
.intro-highlight h3 {
  margin: 0 0 0.75rem;
  color: var(--heading);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.35;
}

.intro-highlight p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.intro-highlight p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-media {
    position: static;
    max-width: 420px;
  }

  .intro-media img {
    aspect-ratio: 16 / 11;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item-title,
.gallery-item h4 {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.contact {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: url("../img/contact-bg.webp") center / cover no-repeat;
  z-index: 0;
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background: rgba(243, 243, 243, 0.92);
  padding: 2rem;
}

.contact-info h2,
.contact-info h3 {
  color: var(--brand);
}

.contact-info h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--heading);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  font: inherit;
  width: 100%;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

.form-legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.2em;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.form-status.is-success {
  color: #227a3b;
  background: #e8f6ec;
  padding: 0.65rem 0.75rem;
}

.form-status.is-error {
  color: #b3261e;
  background: #fdecea;
  padding: 0.65rem 0.75rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--heading);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}

.filter-btn.is-active,
.filter-btn:hover,
.filter-btn:focus-visible {
  background: var(--brand-contrast);
  color: #fff;
}

.gallery-dynamic .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item.is-filtered-out {
  display: none;
}

.gallery-link {
  display: block;
  cursor: zoom-in;
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  transition: opacity 0.2s ease;
}

.lightbox-img.is-loading {
  opacity: 0.25;
}

.lightbox-caption {
  display: grid;
  gap: 0.15rem;
  text-align: center;
  color: #fff;
}

.lightbox-title {
  font-weight: 600;
}

.lightbox-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox-btn[hidden] {
  display: none;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--brand);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

@media (max-width: 700px) {
  .lightbox {
    padding: 3.5rem 0.5rem 1rem;
  }

  .lightbox-img {
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-img,
  .lightbox-btn {
    transition: none;
  }
}

.contact-right {
  display: grid;
  gap: 1rem;
}

.maps-wrap iframe,
.maps-placeholder {
  width: 100%;
  min-height: 260px;
  border: 0;
  background: #fff;
}

.maps-placeholder {
  display: grid;
  place-content: center;
  padding: 1rem;
  border: 1px dashed #bbb;
  text-align: center;
  color: var(--muted);
}

.cookie-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #482727;
  color: #fff;
}

.cookie-banner-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.cookie-banner a {
  color: #ffd54a;
  text-decoration: underline;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
}

.auth-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.auth-section .container {
  display: flex;
  justify-content: center;
  width: min(1140px, calc(100% - 2rem));
}

.auth-box {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.auth-box h1 {
  text-align: center;
  margin: 0 0 0.25rem;
}

.auth-box .contact-form {
  width: 100%;
}

.auth-box .auth-links {
  margin: 0;
  text-align: center;
}

.auth-box .form-status {
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy p {
  margin: 0;
}

.footer-credit {
  margin-top: 0.35rem !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-heart {
  display: inline-flex;
  color: #c04545;
  line-height: 0;
}

.footer-credit a {
  color: var(--brand-contrast);
  font-weight: 600;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #3f520c;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--heading);
  font-weight: 600;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand-contrast);
  text-decoration: underline;
}

.legal-page {
  padding: 3rem 0 4rem;
  background: var(--alt);
}

.legal-content {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.legal-content h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content a {
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 84px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-header {
    display: none;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.35rem);
    width: min(320px, calc(100% - 2rem));
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem;
  }

  .hero-inner,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section,
  .contact {
    padding: 3rem 0;
  }

  .gallery,
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 1.25rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Encarts verts (index2) — style Max Paysagiste, sans pagination
   ========================================================================== */

.pillar-section {
  scroll-margin-top: var(--header-h, 120px);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pillar-card[id] {
  scroll-margin-top: var(--header-h, 120px);
}

.pillar-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pillar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.pillar-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.3;
}

.pillar-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pillar-list li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.pillar-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd54a;
}

@media (hover: hover) {
  .pillar-card:hover .pillar-media img {
    transform: scale(1.05);
  }

  .pillar-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }
}

@media (max-width: 1000px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillar-media {
    aspect-ratio: 21 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-media img,
  .pillar-card {
    transition: none;
  }

  .pillar-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Animations au scroll (GSAP / Lenis) - page principale
   ========================================================================== */

:root {
  --header-h: 120px;
}

/* Les ancres tiennent compte de l'en-tête collant (également sans JavaScript) */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* Etat de départ masqué uniquement quand animations.js va prendre la main */
.anim-pending :is(.hero-anim, .section-head > *) {
  opacity: 0;
}

/* Filet de sécurité : si les scripts ne démarrent pas, le contenu devient visible */
@keyframes anim-failsafe {
  to {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

.anim-pending:not(.anim-ok) :is(.reveal, .hero-anim, .section-head > *) {
  animation: anim-failsafe 0.01s 3s forwards;
}

/* Quand GSAP pilote les apparitions, la transition CSS de .reveal est désactivée */
.anim-ok .reveal {
  transform: none;
  transition: none;
}

/* Trait vert sous les titres de section (dessiné au scroll) */
.anim-ok .section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(var(--line, 1));
}

.has-motion .section-head {
  --line: 0;
}

/* Hero : image plus haute que le bloc pour la parallaxe */
.has-parallax .hero-bg,
.has-parallax .hero-bg-img {
  inset: -15% 0;
  height: auto;
  min-height: 130%;
  will-change: transform;
}

/* En-tête masqué en descendant / réaffiché en remontant */
.site-header.is-hidden {
  box-shadow: none;
  border-color: transparent;
}

/* Galerie : zoom doux au survol et relief des cartes */
.gallery-dynamic {
  position: relative;
}

.gallery-link {
  overflow: hidden;
}

.gallery-link img {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.anim-ok .gallery-item.reveal {
  transition: box-shadow 0.35s ease;
}

@media (hover: hover) {
  .gallery-link:hover img {
    transform: scale(1.06);
  }

  .gallery-item:hover {
    box-shadow: var(--shadow);
  }
}

/* Lenis (défilement fluide) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@media (max-width: 820px) {
  :root {
    --header-h: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-link img {
    transition: none;
  }

  .gallery-link:hover img {
    transform: none;
  }
}
