/* ========================================
   SECTIONS COMMUNES (accueil, page À propos)
   - apparition au défilement des blocs [data-reveal] (reveal.js) ;
   - bande des chiffres clés (partials/key-figures.ejs) ;
   - réalisations mises en avant (partials/featured-projects.ejs), d'après les maquettes univers ;
   - books de l'accueil en mosaïque (partials/home-books.ejs), mêmes surtitre et titre ;
   - services de l'accueil en liste éditoriale sur image de fond (partials/home-services.ejs).
   Couleurs et polices : site-header.css. index.css impose marge et fond à toute <section> :
   chaque section les redéfinit ici.
   ======================================== */

/* ---- Apparition au défilement ----
   La classe js-reveal est posée par la page : sans script, tout reste visible.
   Animation (et non transition) pour que les survols gardent leur propre rythme. */
.js-reveal [data-reveal]:not(.is-visible) {
  opacity: 0;
}

.js-reveal [data-reveal].is-visible {
  animation: site-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards;
}

@keyframes site-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ========================================
   CHIFFRES CLÉS
   Bande vert profond, grands chiffres serif vert clair qui défilent, filet qui se trace,
   titre et sous-texte ; fins séparateurs verticaux.
   ======================================== */
.key-figures {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0;
  overflow: hidden;
  background: var(--site-green, #172c23);
  border-top: 1px solid rgba(157, 198, 107, 0.16);
  border-bottom: 1px solid rgba(157, 198, 107, 0.16);
  isolation: isolate;
}

/* Lueur verte très douce au centre */
.kf-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(900px, 90vw);
  height: 420px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.12), rgba(157, 198, 107, 0));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kf-list {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  list-style: none;
}

.kf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px clamp(12px, 2vw, 28px);
  text-align: center;
}

.kf-item + .kf-item {
  border-left: 1px solid rgba(244, 242, 236, 0.1);
}

.key-figures .kf-value {
  font-family: var(--site-serif);
  font-size: clamp(44px, 4.6vw, 70px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--site-lime);
  white-space: nowrap;
}

.kf-line {
  display: block;
  width: 32px;
  height: 2px;
  margin: 18px 0 16px;
  background: rgba(157, 198, 107, 0.6);
  transform-origin: center;
}

.js-reveal .kf-item.is-visible .kf-line {
  animation: kf-draw 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0ms) + 0.35s) backwards;
}

@keyframes kf-draw {
  from {
    transform: scaleX(0);
  }
}

.key-figures .kf-label {
  font-family: var(--site-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.key-figures .kf-text {
  max-width: 240px;
  margin-top: 6px;
  font-family: var(--site-sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(244, 242, 236, 0.7);
}

/* ========================================
   RÉALISATIONS MISES EN AVANT
   ======================================== */
.featured-projects {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--site-green-deep, #10201a);
}

.fp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.fp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

/* Surtitre suivi d'un filet (maquette « NOS RÉALISATIONS —— ») */
.featured-projects .fp-eyebrow,
.home-books .fp-eyebrow,
.home-services .fp-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-family: var(--site-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.featured-projects .fp-eyebrow::after,
.home-books .fp-eyebrow::after,
.home-services .fp-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transform-origin: left;
}

.js-reveal .fp-head.is-visible .fp-eyebrow::after {
  animation: fp-line 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards;
}

@keyframes fp-line {
  from {
    transform: scaleX(0);
  }
}

.featured-projects .fp-title,
.home-books .fp-title,
.home-services .fp-title {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.fp-more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-family: var(--site-sans);
  font-size: 15px;
  color: #fff;
  transition: color 0.2s ease;
}

.fp-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-more:hover {
  color: var(--site-lime);
}

.fp-more:hover svg {
  transform: translateX(4px);
}

.fp-grid {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 20px;
}

.fp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

/* Photo 4:3 ; dessous, un fond vert et une feuille au trait si la photo manque */
.fp-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 12px;
}

.fp-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  color: var(--site-lime);
  opacity: 0.25;
  transform: translate(-50%, -50%);
}

.fp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Voile léger qui se lève au survol */
.fp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 32, 26, 0) 55%, rgba(16, 32, 26, 0.45) 100%);
  transition: opacity 0.4s ease;
}

.fp-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.featured-projects .fp-category {
  font-family: var(--site-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.featured-projects .fp-name {
  font-family: var(--site-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}

.fp-arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-arrow svg {
  width: 16px;
  height: 16px;
}

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

.fp-card:hover .fp-media::after {
  opacity: 0;
}

.fp-card:hover .fp-arrow {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
  transform: translateX(3px);
}

.fp-card:focus-visible,
.fp-more:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

/* ========================================
   CHIFFRES + RÉALISATIONS SUR IMAGE DE FOND (accueil)
   Une même photo derrière les deux sections, assombrie en vert profond ; la bande des chiffres
   devient translucide. Sur ordinateur, la photo glisse plus lentement que la page (reveal.js) :
   elle déborde du bloc en haut et en bas pour ne jamais laisser de vide.
   ======================================== */
.home-showcase {
  position: relative;
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

.home-showcase-media {
  position: absolute;
  top: -14%;
  right: 0;
  bottom: -14%;
  left: 0;
  z-index: -2;
  will-change: transform;
}

.home-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Voile : plus dense en haut et en bas (raccord avec les sections voisines), plus léger au milieu */
.home-showcase.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 32, 26, 0.94) 0%, rgba(16, 32, 26, 0.7) 22%, rgba(16, 32, 26, 0.62) 55%, rgba(16, 32, 26, 0.9) 88%, var(--site-green-deep, #10201a) 100%),
    radial-gradient(ellipse at 50% 60%, rgba(16, 32, 26, 0) 0%, rgba(16, 32, 26, 0.35) 100%);
  pointer-events: none;
}

/* ========================================
   PETIT « À PROPOS » DE L'ACCUEIL
   Photo portrait encadrée à gauche, titre serif (2e ligne vert clair), introduction, premier
   paragraphe de la page À propos, bouton pilule vers /a-propos (admin : onglet À propos).
   ======================================== */
.home-about {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0;
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

.ha-glow {
  position: absolute;
  top: 10%;
  right: -220px;
  z-index: -1;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.11), rgba(157, 198, 107, 0));
  pointer-events: none;
  animation: ha-drift 24s ease-in-out infinite alternate;
}

@keyframes ha-drift {
  to {
    transform: translate(-180px, 140px) scale(1.1);
  }
}

.ha-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.home-about.no-image .ha-wrap {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.ha-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  overflow: hidden;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 18px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.85);
}

.ha-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cadre fin vert clair en retrait, qui se resserre au survol */
.ha-media::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(157, 198, 107, 0.4);
  border-radius: 10px;
  pointer-events: none;
  transition: inset 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.home-about:hover .ha-media img {
  transform: scale(1.04);
}

.home-about:hover .ha-media::after {
  inset: 10px;
  border-color: rgba(157, 198, 107, 0.7);
}

.home-about .ha-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--site-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.home-about .ha-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.home-about .ha-title {
  margin: 0 0 24px;
  font-family: var(--site-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.02;
  color: #fff;
}

.home-about .ha-title span {
  display: block;
  font-family: inherit;
}

.home-about .ha-title .is-accent {
  color: var(--site-lime);
}

.home-about .ha-intro {
  margin: 0 0 18px;
  font-family: var(--site-sans);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.home-about .ha-paragraph {
  margin: 0;
  font-family: var(--site-sans);
  font-size: clamp(15px, 1.1vw, 16.5px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.home-about .ha-paragraph strong {
  font-weight: 500;
  color: #fff;
}

.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  margin-top: 32px;
  padding: 0 26px 0 30px;
  font-family: var(--site-sans);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background: rgba(16, 40, 24, 0.92);
  border: 1.5px solid rgba(157, 198, 107, 0.75);
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ha-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ha-btn:hover {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
}

.ha-btn:hover svg {
  transform: translateX(4px);
}

.ha-btn:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .home-about .ha-title {
    font-size: clamp(28px, 3.4vw, 36px);
  }

  .home-about .ha-intro {
    font-size: 16px;
  }

  .home-about .ha-paragraph {
    font-size: 14.5px;
  }

  .ha-btn {
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .ha-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ha-media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .home-about {
    padding: 56px 0 64px;
  }

  .ha-media {
    border-radius: 14px;
  }

  .ha-media::after {
    inset: 10px;
    border-radius: 8px;
  }

  .home-about .ha-eyebrow {
    font-size: 11px;
  }

  .home-about .ha-title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .home-about .ha-intro {
    margin-bottom: 14px;
    font-size: 14.5px;
  }

  .home-about .ha-paragraph {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .ha-btn {
    height: 42px;
    gap: 10px;
    margin-top: 24px;
    padding: 0 18px 0 22px;
    font-size: 14px;
  }

  .ha-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-glow {
    animation: none;
  }

  .ha-media img,
  .ha-media::after,
  .ha-btn svg {
    transition: none;
  }

  .home-about:hover .ha-media img {
    transform: none;
  }
}

/* ========================================
   BLOG DE L'ACCUEIL
   Fond crème (rompt avec les sections vertes), article à la une en grande carte photo avec le
   texte posé dessus, articles suivants en liste compacte (vignette, catégorie, date, titre).
   ======================================== */
.home-blog {
  position: relative;
  padding: clamp(72px, 8vw, 120px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 4% 100%, rgba(157, 198, 107, 0.16) 0, rgba(157, 198, 107, 0) 34%),
    var(--site-cream, #f4f2ec);
  isolation: isolate;
}

/* Grande feuille au trait en filigrane, qui se balance */
.hbl-leaf {
  position: absolute;
  top: -40px;
  right: -70px;
  z-index: -1;
  width: clamp(240px, 26vw, 400px);
  color: #2f5a3a;
  opacity: 0.07;
  transform: rotate(6deg);
  transform-origin: bottom left;
  pointer-events: none;
  animation: hbl-sway 14s ease-in-out infinite alternate;
}

@keyframes hbl-sway {
  to {
    transform: rotate(0deg) translateY(-6px);
  }
}

.hbl-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.hbl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.home-blog .hbl-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-family: var(--site-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #4f7f31;
}

.home-blog .hbl-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.home-blog .hbl-title {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  color: #13261d;
}

.hbl-more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-family: var(--site-sans);
  font-size: 15px;
  color: #13261d;
  transition: color 0.2s ease;
}

.hbl-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-more:hover {
  color: #4f7f31;
}

.hbl-more:hover svg {
  transform: translateX(4px);
}

.hbl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: stretch;
}

.hbl-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

/* ---- Article à la une : photo plein cadre, texte posé dessus ---- */
.hbl-feature {
  position: relative;
  display: flex;
  min-height: clamp(420px, 38vw, 560px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 18px;
  box-shadow: 0 34px 60px -36px rgba(19, 38, 29, 0.6);
  isolation: isolate;
}

.hbl-feature-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hbl-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-placeholder {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 26%;
  max-width: 140px;
  color: var(--site-lime);
  opacity: 0.25;
  transform: translate(-50%, -50%);
}

/* Fondu sombre en bas, sous le texte ; cadre fin vert clair au survol */
.hbl-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 30%, rgba(10, 20, 16, 0.55) 62%, rgba(10, 20, 16, 0.9) 100%);
}

.hbl-feature::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(157, 198, 107, 0);
  border-radius: 10px;
  pointer-events: none;
  transition: border-color 0.4s ease, inset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-feature:hover .hbl-feature-media img {
  transform: scale(1.05);
}

.hbl-feature:hover::after {
  inset: 10px;
  border-color: rgba(157, 198, 107, 0.6);
}

.hbl-feature-body {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 12px;
  width: 100%;
  padding: clamp(24px, 2.6vw, 40px);
}

.home-blog .hbl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-family: var(--site-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.home-blog .hbl-category {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.home-blog .hbl-feature-title {
  font-family: var(--site-serif);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.home-blog .hbl-excerpt {
  display: -webkit-box;
  max-width: 560px;
  overflow: hidden;
  font-family: var(--site-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-blog .hbl-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--site-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.hbl-read svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-feature:hover .hbl-read svg {
  transform: translateX(5px);
}

/* ---- Articles suivants : liste compacte ---- */
.hbl-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hbl-list li {
  flex: 1;
}

.hbl-item {
  display: grid;
  grid-template-columns: clamp(110px, 10vw, 150px) minmax(0, 1fr) 40px;
  gap: 18px;
  align-items: center;
  height: 100%;
  padding: 14px;
  color: #13261d;
  background: #fbfaf6;
  border: 1px solid #e4dfd2;
  border-radius: 16px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hbl-item:hover {
  transform: translateY(-4px);
  border-color: #cfdcc4;
  box-shadow: 0 22px 40px -26px rgba(19, 38, 29, 0.38);
}

.hbl-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 10px;
}

.hbl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-item:hover .hbl-thumb img {
  transform: scale(1.06);
}

.hbl-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-blog .hbl-item .hbl-meta {
  color: #6b6e68;
}

.home-blog .hbl-item .hbl-category {
  color: #4f7f31;
}

.home-blog .hbl-item-title {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--site-serif);
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.15;
  color: #13261d;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-blog .hbl-minutes {
  font-family: var(--site-sans);
  font-size: 12px;
  color: #6b6e68;
}

.hbl-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #13261d;
  border: 1.5px solid #cfd6c6;
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hbl-arrow svg {
  width: 16px;
  height: 16px;
}

.hbl-item:hover .hbl-arrow {
  color: var(--site-lime);
  background: #172c23;
  border-color: #172c23;
  transform: translateX(3px);
}

.hbl-feature:focus-visible,
.hbl-item:focus-visible,
.hbl-more:focus-visible {
  outline: 2px solid #4f7f31;
  outline-offset: 4px;
}

/* ---- Tablette ---- */
@media (max-width: 1199px) {
  .home-blog .hbl-title {
    font-size: clamp(28px, 3.4vw, 36px);
  }

  .home-blog .hbl-feature-title {
    font-size: clamp(24px, 2.8vw, 30px);
  }

  .home-blog .hbl-excerpt {
    font-size: 14px;
  }

  .home-blog .hbl-item-title {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .hbl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

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

  .hbl-feature {
    min-height: 420px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 575px) {
  .home-blog {
    padding: 56px 0 64px;
  }

  .home-blog .hbl-eyebrow {
    font-size: 11px;
  }

  .home-blog .hbl-title {
    font-size: 28px;
  }

  .hbl-more {
    font-size: 14px;
  }

  .hbl-feature {
    min-height: 380px;
    border-radius: 14px;
  }

  .hbl-feature::after {
    inset: 10px;
    border-radius: 8px;
  }

  .hbl-feature-body {
    gap: 8px;
    padding: 20px;
  }

  .home-blog .hbl-feature-title {
    font-size: 22px;
  }

  .home-blog .hbl-excerpt {
    font-size: 13.5px;
  }

  .home-blog .hbl-meta {
    font-size: 11px;
  }

  .hbl-list {
    gap: 10px;
  }

  .hbl-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    border-radius: 14px;
  }

  .hbl-arrow {
    display: none;
  }

  .home-blog .hbl-item-title {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbl-leaf {
    animation: none;
  }

  .hbl-feature-media img,
  .hbl-feature::after,
  .hbl-read svg,
  .hbl-item,
  .hbl-thumb img,
  .hbl-arrow {
    transition: none;
  }

  .hbl-item:hover {
    transform: none;
  }
}

/* ========================================
   GRANDE PHRASE À LA PLACE DES CHIFFRES (accueil)
   « 35 années d'expertise au service du vivant » : nombre serif vert clair en dégradé, qui défile,
   dans un double anneau (le second, en pointillés, tourne très lentement) ; phrase serif sur deux
   lignes ; filets verts terminés par un point ; lumière douce qui balaie la bande.
   (admin : Chiffres & réalisations)
   ======================================== */
.key-headline {
  position: relative;
  padding: clamp(48px, 5.5vw, 76px) 0;
  overflow: hidden;
  text-align: center;
  background: var(--site-green, #172c23);
  border-top: 1px solid rgba(157, 198, 107, 0.16);
  border-bottom: 1px solid rgba(157, 198, 107, 0.16);
  isolation: isolate;
}

/* Lumière en biais qui balaie lentement la bande */
.key-headline::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: -1;
  background: linear-gradient(105deg, rgba(157, 198, 107, 0) 42%, rgba(157, 198, 107, 0.07) 50%, rgba(157, 198, 107, 0) 58%);
  pointer-events: none;
  animation: kh-sweep 14s ease-in-out infinite alternate;
}

@keyframes kh-sweep {
  from {
    transform: translateX(-24%);
  }

  to {
    transform: translateX(24%);
  }
}

.kh-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Filets terminés par un point vert, de part et d'autre */
.kh-line {
  position: relative;
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 198, 107, 0), rgba(157, 198, 107, 0.7));
  transform-origin: right;
}

.kh-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  background: var(--site-lime);
  border-radius: 50%;
  transform: translateY(-50%);
}

.kh-line:last-child {
  background: linear-gradient(270deg, rgba(157, 198, 107, 0), rgba(157, 198, 107, 0.7));
  transform-origin: left;
}

.kh-line:last-child::after {
  right: auto;
  left: -3px;
}

.js-reveal .kh-inner.is-visible .kh-line {
  animation: fp-line 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

/* Grand nombre à gauche, phrase sur deux lignes à droite */
.key-headline .kh-phrase {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0 clamp(22px, 2.4vw, 36px);
  margin: 0;
  font-family: var(--site-serif);
  font-weight: 600;
  color: #fff;
}

/* Double anneau autour du nombre : un trait fin, et des pointillés qui tournent lentement */
.kh-badge {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(104px, 9vw, 136px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.14), rgba(157, 198, 107, 0));
  border: 1px solid rgba(157, 198, 107, 0.4);
  border-radius: 50%;
}

.kh-badge::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(157, 198, 107, 0.45);
  border-radius: 50%;
  animation: kh-turn 40s linear infinite;
}

@keyframes kh-turn {
  to {
    transform: rotate(360deg);
  }
}

.key-headline .kh-value {
  font-family: var(--site-serif);
  font-size: clamp(50px, 4.6vw, 72px);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--site-lime);
  background: linear-gradient(180deg, #d4ecae 0%, #9dc66b 70%, #7fae4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.key-headline .kh-text {
  max-width: 10.5em;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.15;
  text-align: left;
}

.home-showcase.has-bg .key-headline {
  background: rgba(23, 44, 35, 0.42);
  border-color: rgba(157, 198, 107, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.home-showcase.has-bg .key-headline .kf-glow {
  display: none;
}

/* Nombre en dégradé (texte transparent) : pas d'ombre, elle se verrait au travers */
.home-showcase.has-bg .kh-phrase .kh-value {
  text-shadow: none;
}

.home-showcase.has-bg .kh-phrase {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
  .kh-line {
    display: none;
  }

  .key-headline .kh-phrase {
    flex-direction: column;
    align-items: center;
  }

  .key-headline .kh-phrase {
    gap: 18px;
  }

  .kh-badge {
    width: 104px;
  }

  .key-headline .kh-value {
    font-size: 52px;
  }

  .key-headline .kh-text {
    max-width: 14em;
    font-size: 24px;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .key-headline {
    padding: 44px 0;
  }

  .key-headline .kh-phrase {
    gap: 16px;
  }

  .kh-badge {
    width: 88px;
  }

  .kh-badge::after {
    inset: -7px;
  }

  .key-headline .kh-value {
    font-size: 42px;
  }

  .key-headline .kh-text {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .kh-inner.is-visible .kh-line,
  .key-headline::before,
  .kh-badge::after {
    animation: none;
  }
}

.home-showcase.has-bg .key-figures {
  background: rgba(23, 44, 35, 0.42);
  border-color: rgba(157, 198, 107, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.home-showcase.has-bg .kf-glow {
  display: none;
}

.home-showcase.has-bg .featured-projects {
  background: transparent;
}

/* Textes posés sur la photo : une ombre douce les détache */
.home-showcase.has-bg .fp-title,
.home-showcase.has-bg .kf-value,
.home-showcase.has-bg .kf-label {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.home-showcase.has-bg .fp-media {
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.85);
}

/* ========================================
   BOOKS EN MOSAÏQUE (accueil)
   Le premier book en grand à gauche ; à droite, un large en haut et deux en dessous.
   Texte posé sur la photo, pictogramme « agrandir » en haut à droite ; un clic ouvre la galerie.
   ======================================== */
.home-books {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  overflow: hidden;
  background: var(--site-green, #172c23);
  isolation: isolate;
}

/* Décor : lueurs vertes très douces qui dérivent lentement */
.hb-glow {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.16), rgba(157, 198, 107, 0));
  pointer-events: none;
}

.hb-glow-a {
  top: -260px;
  left: -220px;
  animation: hb-drift-a 22s ease-in-out infinite alternate;
}

.hb-glow-b {
  right: -260px;
  bottom: -300px;
  width: 820px;
  height: 820px;
  background: radial-gradient(closest-side, rgba(90, 160, 140, 0.13), rgba(90, 160, 140, 0));
  animation: hb-drift-b 26s ease-in-out infinite alternate;
}

@keyframes hb-drift-a {
  to {
    transform: translate(160px, 90px) scale(1.12);
  }
}

@keyframes hb-drift-b {
  to {
    transform: translate(-140px, -70px) scale(0.92);
  }
}

/* Grande feuille au trait en filigrane, qui se balance */
.hb-leaf {
  position: absolute;
  top: 40px;
  right: -90px;
  z-index: -1;
  width: clamp(260px, 30vw, 460px);
  color: var(--site-lime);
  opacity: 0.06;
  transform: rotate(8deg);
  transform-origin: bottom left;
  pointer-events: none;
  animation: hb-sway 16s ease-in-out infinite alternate;
}

@keyframes hb-sway {
  to {
    transform: rotate(1deg) translateY(10px);
  }
}

/* Apparition : la photo se dévoile de bas en haut en dézoomant, puis le texte monte */
.js-reveal .hb-card.is-visible {
  animation: hb-unveil 1.15s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0ms) backwards;
}

.js-reveal .hb-card.is-visible .hb-media img {
  animation: hb-settle 1.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards;
}

.js-reveal .hb-card.is-visible .hb-caption,
.js-reveal .hb-card.is-visible .hb-open {
  animation: hb-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0ms) + 0.55s) backwards;
}

@keyframes hb-unveil {
  from {
    clip-path: inset(100% 0 0 0 round 14px);
  }

  to {
    clip-path: inset(0 0 0 0 round 14px);
  }
}

@keyframes hb-settle {
  from {
    transform: scale(1.14);
  }
}

@keyframes hb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hb-mosaic {
  --row: clamp(200px, 19vw, 290px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, var(--row));
  gap: 16px;
}

.hb-n4 .hb-card:nth-child(1) { grid-row: 1 / 3; }
.hb-n4 .hb-card:nth-child(2) { grid-column: 2 / 4; }

.hb-mosaic.hb-n3 {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.hb-n3 .hb-card:nth-child(1) { grid-row: 1 / 3; }

.hb-mosaic.hb-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: calc(var(--row) * 1.5);
}

.hb-mosaic.hb-n1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: calc(var(--row) * 1.6);
}

.hb-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 14px;
  cursor: pointer;
  isolation: isolate;
}

.hb-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Sans photo : feuille au trait de taille mesurée, même sur les grandes cartes */
.hb-media .fp-placeholder {
  width: min(34%, 110px);
}

.hb-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dégradé sombre en bas, sous le texte */
.hb-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 40%, rgba(10, 20, 16, 0.55) 70%, rgba(10, 20, 16, 0.88) 100%);
  transition: opacity 0.4s ease;
}

.hb-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-books .hb-category {
  font-family: var(--site-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.home-books .hb-name {
  font-family: var(--site-serif);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.home-books .hb-card:first-child .hb-name {
  font-size: clamp(24px, 2.3vw, 34px);
}

.home-books .hb-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-family: var(--site-sans);
  font-size: 12.5px;
  color: rgba(244, 242, 236, 0.75);
}

.hb-count svg {
  width: 16px;
  height: 16px;
}

/* Pictogramme « agrandir » : pastille verre en haut à droite */
.hb-open {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(16, 32, 26, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-open svg {
  width: 16px;
  height: 16px;
}

.hb-card:hover .hb-media img,
.hb-card:focus-visible .hb-media img {
  transform: scale(1.06);
}

.hb-card:hover .hb-caption {
  transform: translateY(-4px);
}

.hb-card:hover .hb-open,
.hb-card:focus-visible .hb-open {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
  transform: scale(1.06);
}

.hb-card:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

/* ========================================
   SERVICES (accueil) : liste éditoriale sur image de fond
   À gauche, titre, introduction et lignes (titre serif, description, flèche ronde) ; à droite
   sur ordinateur, la photo du service survolé dans un grand cadre (home-services.js).
   L'image de fond glisse plus lentement que la page (reveal.js, data-parallax).
   ======================================== */
.home-services {
  position: relative;
  padding: clamp(64px, 7vw, 100px) 0;
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

.home-services-media {
  position: absolute;
  top: -14%;
  right: 0;
  bottom: -14%;
  left: 0;
  z-index: -2;
  will-change: transform;
}

.home-services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile : la liste reste lisible, la photo transparaît surtout à droite */
.home-services.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 26, 0.95) 0%, rgba(16, 32, 26, 0.86) 45%, rgba(16, 32, 26, 0.6) 100%),
    linear-gradient(180deg, var(--site-green-deep, #10201a) 0%, rgba(16, 32, 26, 0) 18%, rgba(16, 32, 26, 0) 82%, var(--site-green-deep, #10201a) 100%);
  pointer-events: none;
}

/* Lueur verte douce qui dérive derrière la liste */
.hs-glow {
  position: absolute;
  top: 10%;
  left: -200px;
  z-index: -1;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.12), rgba(157, 198, 107, 0));
  pointer-events: none;
  animation: hb-drift-a 24s ease-in-out infinite alternate;
}

.hs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hs-head {
  margin-bottom: clamp(22px, 2.4vw, 32px);
}

/* Titre de section : 40 px au plus, comme les autres titres de section de l'accueil */
.home-services .fp-title {
  font-size: clamp(28px, 2.6vw, 40px);
}

.home-services .hs-intro {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: var(--site-sans);
  font-size: clamp(14px, 1vw, 15.5px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 242, 236, 0.8);
}

.hs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(244, 242, 236, 0.12);
}

.hs-list li {
  border-bottom: 1px solid rgba(244, 242, 236, 0.12);
}

.hs-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 4px 15px 0;
  color: #fff;
  transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Filet vert qui pousse à gauche de la ligne active */
.hs-item::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 2px;
  background: var(--site-lime);
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-thumb {
  display: none;
}

.hs-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-services .hs-name {
  font-family: var(--site-serif);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  transition: color 0.3s ease;
}

.home-services .hs-desc {
  max-width: 520px;
  font-family: var(--site-sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(244, 242, 236, 0.7);
}

.hs-item .fp-arrow {
  width: 34px;
  height: 34px;
  opacity: 0.55;
  transition: opacity 0.3s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-item.is-active,
.hs-item:hover,
.hs-item:focus-visible {
  padding-left: 18px;
}

.hs-item.is-active::before,
.hs-item:hover::before,
.hs-item:focus-visible::before {
  transform: scaleY(1);
}

.hs-item.is-active .hs-name,
.hs-item:hover .hs-name {
  color: var(--site-lime);
}

.hs-item.is-active .fp-arrow,
.hs-item:hover .fp-arrow {
  opacity: 1;
}

.hs-item:hover .fp-arrow {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
  transform: translateX(3px);
}

.hs-item:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

.hs-more {
  margin-top: 24px;
}

/* Grand cadre photo (ordinateur) : fondu entre les photos, nom du service en bas */
.hs-preview {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  isolation: isolate;
}

.hs-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-preview img.is-active {
  opacity: 1;
  transform: none;
}

/* Fin cadre vert intérieur et dégradé sous le nom */
.hs-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(157, 198, 107, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.hs-preview::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 0%, rgba(10, 20, 16, 0.85) 100%);
  pointer-events: none;
}

.home-services .hs-preview-name {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 3;
  font-family: var(--site-serif);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

/* ========================================
   TABLETTE
   ======================================== */
@media (max-width: 991px) {
  /* Services : une colonne, vignette dans chaque ligne, sans grand cadre ni parallaxe */
  .hs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-preview {
    display: none;
  }

  .home-services-media {
    top: 0;
    bottom: 0;
  }

  .home-services.has-bg::before {
    background:
      linear-gradient(180deg, var(--site-green-deep, #10201a) 0%, rgba(16, 32, 26, 0.86) 14%, rgba(16, 32, 26, 0.8) 50%, rgba(16, 32, 26, 0.88) 86%, var(--site-green-deep, #10201a) 100%);
  }

  .hs-thumb {
    display: block;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: linear-gradient(145deg, #1f3a2e, #142820);
    border-radius: 10px;
  }

  .hs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hs-item.is-active {
    padding-left: 0;
  }

  .hs-item.is-active::before {
    transform: scaleY(0);
  }

  .hs-item.is-active .hs-name {
    color: #fff;
  }

  /* Books : rangées un peu plus hautes (cartes plus étroites) */
  .hb-mosaic {
    --row: 230px;
  }

  /* Pas de parallaxe : la photo reste dans le bloc */
  .home-showcase-media {
    top: 0;
    bottom: 0;
  }

  /* Tablette : quatre chiffres sur deux lignes ; jusqu'à trois, une seule ligne */
  .kf-list.kf-n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .kf-n4 .kf-item:nth-child(odd) {
    border-left: 0;
  }

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

  .fp-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 575px) {
  /* Mobile : deux chiffres par ligne ; nombre impair, le dernier se centre sur toute la largeur */
  .kf-list:not(.kf-n1) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .kf-item:nth-child(odd) {
    border-left: 0;
  }

  .kf-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .key-figures .kf-value {
    font-size: 38px;
  }

  .kf-line {
    margin: 12px 0 10px;
  }

  .key-figures .kf-label {
    font-size: 13.5px;
  }

  .key-figures .kf-text {
    font-size: 12px;
  }

  .featured-projects .fp-eyebrow {
    font-size: 11px;
  }

  .featured-projects .fp-title {
    font-size: 28px;
  }

  /* Services : lignes plus compactes */
  .hs-item {
    gap: 14px;
    padding: 16px 0;
  }

  .hs-item:hover,
  .hs-item:focus-visible {
    padding-left: 0;
  }

  .hs-item::before {
    display: none;
  }

  .hs-thumb {
    width: 60px;
    height: 60px;
  }

  .home-services .hs-name {
    font-size: 20px;
  }

  .home-services .hs-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .home-services .hs-intro {
    font-size: 14px;
  }

  .hs-item .fp-arrow {
    width: 34px;
    height: 34px;
  }

  /* Books : le grand en premier, puis un large et deux carrés */
  .hb-mosaic,
  .hb-mosaic.hb-n3,
  .hb-mosaic.hb-n2,
  .hb-mosaic.hb-n1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .hb-card,
  .hb-n4 .hb-card:nth-child(1),
  .hb-n4 .hb-card:nth-child(2),
  .hb-n3 .hb-card:nth-child(1) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 1;
  }

  .hb-mosaic .hb-card:first-child,
  .hb-n4 .hb-card:nth-child(2),
  .hb-n1 .hb-card,
  .hb-n2 .hb-card {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .hb-n4 .hb-card:nth-child(2) {
    aspect-ratio: 16 / 9;
  }

  .hb-caption {
    right: 14px;
    bottom: 12px;
    left: 14px;
    gap: 3px;
  }

  .home-books .hb-category {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .home-books .hb-name {
    font-size: 15px;
  }

  .home-books .hb-card:first-child .hb-name {
    font-size: 22px;
  }

  /* Titre de section : 28 px comme les autres sections sur mobile */
  .home-books .fp-title {
    font-size: 28px;
  }

  .home-books .hb-count {
    font-size: 11px;
  }

  .hb-open {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .hb-open svg {
    width: 13px;
    height: 13px;
  }

  /* Mobile : deux cartes par ligne, la carte entière reste cliquable (sans flèche ronde) */
  .fp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .fp-card {
    gap: 10px;
  }

  .fp-media {
    border-radius: 10px;
  }

  .fp-arrow {
    display: none;
  }

  .featured-projects .fp-category {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .featured-projects .fp-name {
    font-size: 13px;
  }

  .fp-more {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-glow,
  .hb-leaf,
  .hs-glow,
  .js-reveal .hb-card.is-visible,
  .js-reveal .hb-card.is-visible .hb-media img,
  .js-reveal .hb-card.is-visible .hb-caption,
  .js-reveal .hb-card.is-visible .hb-open,
  .js-reveal .fp-head.is-visible .fp-eyebrow::after {
    animation: none;
  }

  .home-showcase-media,
  .home-services-media {
    top: 0;
    bottom: 0;
    transform: none !important;
  }

  .hs-item,
  .hs-item::before,
  .hs-preview img {
    transition: none;
  }

  .js-reveal [data-reveal].is-visible,
  .js-reveal .kf-item.is-visible .kf-line {
    animation: none;
  }

  .fp-media img,
  .fp-arrow,
  .hb-media img,
  .hb-caption,
  .hb-open {
    transition: none;
  }
}

/* ========================================
   RÉALISATIONS EN MOSAÏQUE (accueil, partials/featured-projects.ejs avec mosaic)
   En miroir des books juste en dessous : la première réalisation en grand à droite ; à gauche,
   une large en haut et deux en dessous. Texte posé sur la photo (univers, titre, lieu et année,
   description sur la grande). Tablette : la grande puis les autres ; mobile : carrousel d'une
   carte entière à la fois, avec des points (featured-projects.js).
   ======================================== */
.fp-mosaic {
  --row: clamp(210px, 19vw, 290px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  grid-template-rows: repeat(2, var(--row));
  gap: 16px;
}

.fp-n4 .fp-tile:nth-child(1) { grid-column: 3; grid-row: 1 / 3; }
.fp-n4 .fp-tile:nth-child(2) { grid-column: 1 / 3; grid-row: 1; }
.fp-n4 .fp-tile:nth-child(3) { grid-column: 1; grid-row: 2; }
.fp-n4 .fp-tile:nth-child(4) { grid-column: 2; grid-row: 2; }

.fp-mosaic.fp-n3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.fp-n3 .fp-tile:nth-child(1) { grid-column: 2; grid-row: 1 / 3; }
.fp-n3 .fp-tile:nth-child(2) { grid-column: 1; grid-row: 1; }
.fp-n3 .fp-tile:nth-child(3) { grid-column: 1; grid-row: 2; }

.fp-mosaic.fp-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: calc(var(--row) * 1.5);
}

.fp-mosaic.fp-n1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: calc(var(--row) * 1.6);
}

.fp-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 14px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85);
  isolation: isolate;
}

.fp-tile:hover {
  color: #fff;
}

.fp-tile-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.fp-tile-media .fp-placeholder {
  width: min(34%, 110px);
}

.fp-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dégradé sombre en bas, sous le texte */
.fp-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 35%, rgba(10, 20, 16, 0.55) 65%, rgba(10, 20, 16, 0.9) 100%);
}

.fp-tile-caption {
  position: absolute;
  right: 78px;
  bottom: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-projects .fp-tile-name {
  font-family: var(--site-serif);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.fp-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  font-family: var(--site-sans);
  font-size: 12.5px;
  color: rgba(244, 242, 236, 0.8);
}

.fp-tile-meta > span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--site-lime);
  border-radius: 50%;
}

.fp-tile-place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fp-tile-place svg {
  width: 14px;
  height: 14px;
  color: var(--site-lime);
}

/* Description : seulement sur la grande réalisation */
.fp-tile-excerpt {
  display: none;
}

.fp-mosaic .fp-tile:first-child .fp-tile-excerpt {
  display: -webkit-box;
  max-width: 520px;
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--site-sans);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 242, 236, 0.85);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-projects .fp-mosaic .fp-tile:first-child .fp-tile-name {
  font-size: clamp(26px, 2.4vw, 36px);
}

.fp-mosaic .fp-tile:first-child .fp-tile-caption {
  right: 90px;
  bottom: 26px;
  left: 28px;
}

/* Flèche ronde en bas à droite, verre dépoli */
.fp-tile-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: rgba(16, 32, 26, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.fp-mosaic .fp-tile:first-child .fp-tile-arrow {
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
}

.fp-tile:hover .fp-tile-media img,
.fp-tile:focus-visible .fp-tile-media img {
  transform: scale(1.06);
}

.fp-tile:hover .fp-tile-caption {
  transform: translateY(-4px);
}

.fp-tile:hover .fp-tile-arrow,
.fp-tile:focus-visible .fp-tile-arrow {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
  transform: translateX(3px);
}

.fp-tile:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

/* Apparition : la photo se dévoile de bas en haut (comme les books), puis le texte monte */
.js-reveal .fp-tile.is-visible {
  animation: hb-unveil 1.15s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0ms) backwards;
}

.js-reveal .fp-tile.is-visible .fp-tile-media img {
  animation: hb-settle 1.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards;
}

.js-reveal .fp-tile.is-visible .fp-tile-caption,
.js-reveal .fp-tile.is-visible .fp-tile-arrow {
  animation: hb-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0ms) + 0.55s) backwards;
}

/* Points du carrousel (mobile seulement) */
.fp-dots {
  display: none;
}

@media (max-width: 1199px) {
  .fp-mosaic {
    --row: 230px;
  }

  .featured-projects .fp-tile-name {
    font-size: 19px;
  }

  .featured-projects .fp-mosaic .fp-tile:first-child .fp-tile-name {
    font-size: 26px;
  }

  .fp-mosaic .fp-tile:first-child .fp-tile-excerpt {
    font-size: 14px;
  }

  .fp-tile-meta {
    font-size: 12px;
  }
}

/* Tablette : la grande en premier sur toute la largeur, puis une large et deux côte à côte */
@media (min-width: 576px) and (max-width: 991px) {
  .fp-mosaic,
  .fp-mosaic.fp-n3,
  .fp-mosaic.fp-n2,
  .fp-mosaic.fp-n1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  /* :nth-child(n) : annule le placement de l'ordinateur (même poids, déclaré après) */
  .fp-mosaic .fp-tile:nth-child(n) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 1;
  }

  .fp-mosaic .fp-tile:first-child,
  .fp-mosaic.fp-n4 .fp-tile:nth-child(2),
  .fp-mosaic.fp-n1 .fp-tile:nth-child(n),
  .fp-mosaic.fp-n2 .fp-tile:nth-child(n) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .fp-tile-caption,
  .fp-mosaic .fp-tile:first-child .fp-tile-caption {
    right: 70px;
    bottom: 16px;
    left: 18px;
  }

  .fp-tile-arrow,
  .fp-mosaic .fp-tile:first-child .fp-tile-arrow {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }

  .featured-projects .fp-tile-name {
    font-size: 19px;
  }

  .featured-projects .fp-mosaic .fp-tile:first-child .fp-tile-name {
    font-size: 24px;
  }

  .fp-mosaic .fp-tile:first-child .fp-tile-excerpt {
    font-size: 13.5px;
  }
}

/* Mobile : carrousel, une carte entière à la fois (l'écart égale la marge de la page) */
@media (max-width: 575px) {
  .fp-mosaic,
  .fp-mosaic.fp-n3,
  .fp-mosaic.fp-n2,
  .fp-mosaic.fp-n1 {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fp-mosaic::-webkit-scrollbar {
    display: none;
  }

  .fp-mosaic .fp-tile:nth-child(n),
  .fp-mosaic.fp-n4 .fp-tile:nth-child(2) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
    box-shadow: none;
  }

  .fp-tile-caption,
  .fp-mosaic .fp-tile:first-child .fp-tile-caption {
    right: 64px;
    bottom: 18px;
    left: 18px;
    gap: 5px;
  }

  .featured-projects .fp-tile-name,
  .featured-projects .fp-mosaic .fp-tile:first-child .fp-tile-name {
    font-size: 22px;
  }

  /* Mobile : chaque carte montre sa description */
  .fp-tile-excerpt,
  .fp-mosaic .fp-tile:first-child .fp-tile-excerpt {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-family: var(--site-sans);
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(244, 242, 236, 0.85);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .fp-tile-meta {
    font-size: 11.5px;
  }

  .fp-tile-arrow,
  .fp-mosaic .fp-tile:first-child .fp-tile-arrow {
    display: flex;
    right: 16px;
    bottom: 18px;
    width: 36px;
    height: 36px;
  }

  .fp-dots:not([hidden]) {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .fp-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
  }

  .fp-dots button[aria-current="true"] {
    width: 24px;
    background: var(--site-lime);
  }

  .fp-dots button:focus-visible {
    outline: 2px solid var(--site-lime);
    outline-offset: 3px;
  }

  /* Carrousel : pas d'apparition décalée (les cartes hors écran resteraient cachées) */
  .js-reveal .fp-tile.is-visible {
    animation-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .fp-tile.is-visible,
  .js-reveal .fp-tile.is-visible .fp-tile-media img,
  .js-reveal .fp-tile.is-visible .fp-tile-caption,
  .js-reveal .fp-tile.is-visible .fp-tile-arrow {
    animation: none;
  }

  .fp-tile-media img,
  .fp-tile-caption {
    transition: none;
  }
}

/* ========================================
   TÉMOIGNAGES (accueil, partials/home-testimonials.ejs)
   Une grande citation à la fois sur le vert du site, qui change en fondu (home-testimonials.js).
   Les citations sont superposées dans la même case : pas de saut de hauteur. Photo de fond
   facultative (admin), fondue sur les quatre bords, avec un voile sombre sous la citation.
   ======================================== */
.home-testimonials {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0;
  overflow: hidden;
  text-align: center;
  background: var(--site-green, #172c23);
  isolation: isolate;
}

/* Photos de fond des deux sections : fondues sur les quatre bords (masques croisés, sur le
   conteneur : aucun filtre ni zoom sur l'image, ils annulaient le masque) */
.htm-media,
.hc-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 30%, #000 70%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 30%, #000 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 30%, #000 70%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 30%, #000 70%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
}

.htm-media img,
.hc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

/* Témoignages : photo un peu plus présente (le voile du centre garde la citation lisible) */
.htm-media img {
  opacity: 0.4;
}

/* Voile sombre au centre, sous la citation, quand il y a une photo */
.home-testimonials.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 44% 50% at 50% 52%, rgba(10, 20, 16, 0.62) 0%, rgba(10, 20, 16, 0.28) 60%, rgba(10, 20, 16, 0) 100%);
  pointer-events: none;
}

.htm-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(860px, 120vw);
  height: 560px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.12), rgba(157, 198, 107, 0));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.htm-leaf {
  position: absolute;
  bottom: -80px;
  left: -70px;
  z-index: -1;
  width: clamp(200px, 22vw, 320px);
  color: var(--site-lime);
  opacity: 0.07;
  transform: rotate(-12deg);
  transform-origin: bottom left;
  pointer-events: none;
  animation: hb-sway 16s ease-in-out infinite alternate;
}

.htm-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.htm-head {
  margin-bottom: clamp(22px, 2.4vw, 32px);
}

.home-testimonials .htm-eyebrow,
.home-contact .hc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-family: var(--site-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--site-lime);
}

/* Filet de part et d'autre du surtitre centré */
.home-testimonials .htm-eyebrow::before,
.home-testimonials .htm-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.home-testimonials .htm-title,
.home-contact .hc-title {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
}

.htm-slider {
  position: relative;
}

.htm-quote-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  color: var(--site-lime);
  opacity: 0.55;
}

/* Toutes les citations dans la même case de grille : hauteur = la plus longue */
.htm-slides {
  display: grid;
}

.htm-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.7s;
}

.htm-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, visibility 0s;
}

.htm-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0 0 14px;
}

.htm-stars svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.2);
}

.htm-stars svg.is-on {
  color: #d6b545;
}

.htm-text {
  margin: 0;
}

.htm-text p {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(20px, 1.75vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-wrap: balance;
}

.htm-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.htm-author img,
.htm-initial {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.htm-author img {
  object-fit: cover;
  border: 2px solid rgba(157, 198, 107, 0.5);
}

.htm-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--site-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
}

.htm-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.htm-who strong {
  font-family: var(--site-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.htm-who small {
  font-family: var(--site-sans);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.htm-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-family: var(--site-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.htm-project svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.htm-project:hover {
  color: #fff;
}

.htm-project:hover svg {
  transform: translateX(4px);
}

.htm-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.htm-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(157, 198, 107, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.htm-arrow svg {
  width: 16px;
  height: 16px;
}

.htm-arrow:hover {
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-color: var(--site-lime);
}

.htm-dots {
  display: flex;
  gap: 7px;
}

.htm-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.htm-dot[aria-current="true"] {
  width: 24px;
  background: var(--site-lime);
}

.htm-arrow:focus-visible,
.htm-dot:focus-visible,
.htm-project:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 3px;
}

.htm-more-wrap {
  margin: 0;
}

/* Bouton vers la page Témoignages : même style que le bouton du petit « À propos », plus compact */
.home-testimonials .htm-more {
  height: 46px;
  margin-top: 28px;
  padding: 0 22px 0 26px;
  font-size: 14.5px;
}

/* ========================================
   CONTACT (accueil, partials/home-contact.ejs)
   Présentation à gauche, carte d'appel à droite ; photo de fond en fondu (facultative).
   ======================================== */
.home-contact {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0;
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

/* Avec photo : voile sombre sous la présentation (à gauche), pour garder le texte lisible */
.home-contact.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 20, 16, 0.78) 0%, rgba(10, 20, 16, 0.55) 45%, rgba(10, 20, 16, 0.25) 75%, rgba(10, 20, 16, 0.1) 100%);
  pointer-events: none;
}

.hc-glow {
  position: absolute;
  top: -180px;
  right: -200px;
  z-index: -1;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.12), rgba(157, 198, 107, 0));
  pointer-events: none;
  animation: hb-drift-b 26s ease-in-out infinite alternate;
}

.hc-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.hc-head {
  margin-bottom: clamp(26px, 2.8vw, 40px);
}

.home-contact .hc-eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 72px);
}

.hc-intro-title {
  margin: 0 0 14px;
  font-family: var(--site-serif);
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.home-contact .hc-lead,
.home-contact .hc-text {
  margin: 0 0 12px;
  font-family: var(--site-sans);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.home-contact .hc-lead {
  font-size: clamp(15px, 1.1vw, 16.5px);
  color: rgba(255, 255, 255, 0.92);
}

.home-contact .hc-text {
  font-size: clamp(14px, 0.95vw, 15px);
}

.home-contact .hc-lead strong,
.home-contact .hc-text strong,
.home-contact .hc-card-text strong {
  font-weight: 600;
  color: #fff;
}

.hc-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hc-highlights li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  background: rgba(23, 44, 35, 0.7);
  border: 1px solid rgba(157, 198, 107, 0.16);
  border-radius: 12px;
}

.hc-highlight-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--site-lime);
  background: rgba(157, 198, 107, 0.1);
  border: 1px solid rgba(157, 198, 107, 0.3);
  border-radius: 50%;
}

.hc-highlight-icon svg {
  width: 17px;
  height: 17px;
}

.hc-highlights strong {
  display: block;
  font-family: var(--site-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.hc-highlights small {
  display: block;
  margin-top: 2px;
  font-family: var(--site-sans);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

/* Carte d'appel */
.hc-card {
  position: relative;
  padding: clamp(24px, 2.4vw, 34px);
  overflow: hidden;
  background: linear-gradient(155deg, #1d382c 0%, #162c22 55%, #12241c 100%);
  border: 1px solid rgba(157, 198, 107, 0.25);
  border-radius: 18px;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.95);
  isolation: isolate;
}

/* Lueur verte dans le coin de la carte */
.hc-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  z-index: -1;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.18), rgba(157, 198, 107, 0));
  pointer-events: none;
}

.hc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-radius: 12px;
}

.hc-card-icon svg {
  width: 21px;
  height: 21px;
}

.hc-card-title {
  margin: 0 0 10px;
  font-family: var(--site-serif);
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.home-contact .hc-card-text {
  margin: 0 0 10px;
  font-family: var(--site-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.hc-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(157, 198, 107, 0.16);
}

.hc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--site-sans);
  font-size: 14px;
  color: #fff;
}

.hc-features svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: var(--site-lime);
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin-top: 22px;
  padding: 0 22px;
  font-family: var(--site-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-green-deep, #10201a);
  background: var(--site-lime);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.hc-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-btn:hover {
  color: var(--site-green-deep, #10201a);
  background: #b5d68c;
}

.hc-btn:hover svg {
  transform: translateX(5px);
}

.hc-btn:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 4px;
}

.home-contact .hc-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  font-family: var(--site-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.hc-trust svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--site-lime);
}

/* ---- Témoignages et contact : tablette et mobile (tailles alignées sur le reste du site) ---- */
@media (max-width: 1199px) {
  /* Mêmes tailles que les titres des autres sections de l'accueil (Blog, À propos) */
  .home-testimonials .htm-title,
  .home-contact .hc-title {
    font-size: clamp(28px, 3.4vw, 36px);
  }

  .htm-text p {
    font-size: 21px;
  }

  .hc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  .hc-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hc-highlights li {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .hc-intro-title,
  .hc-card-title {
    font-size: 22px;
  }

  .home-contact .hc-lead {
    font-size: 15px;
  }

  .home-contact .hc-text,
  .home-contact .hc-card-text,
  .hc-features li {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .htm-text p {
    font-size: 20px;
  }

  .hc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hc-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hc-highlights li {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 575px) {
  .home-testimonials,
  .home-contact {
    padding: 52px 0 60px;
  }

  .home-testimonials .htm-eyebrow,
  .home-contact .hc-eyebrow {
    font-size: 11px;
  }

  .home-testimonials .htm-title,
  .home-contact .hc-title {
    font-size: 28px;
  }

  .htm-quote-mark {
    width: 34px;
    height: 34px;
  }

  .htm-stars svg {
    width: 14px;
    height: 14px;
  }

  .htm-text p {
    font-size: 18px;
  }

  .htm-author {
    margin-top: 18px;
  }

  .htm-author img,
  .htm-initial {
    width: 40px;
    height: 40px;
  }

  .htm-initial {
    font-size: 17px;
  }

  .htm-who strong {
    font-size: 13.5px;
  }

  .htm-who small {
    font-size: 11.5px;
  }

  .htm-controls {
    gap: 12px;
    margin-top: 22px;
  }

  .htm-arrow {
    width: 38px;
    height: 38px;
  }

  .home-testimonials .htm-more {
    height: 42px;
    margin-top: 24px;
    padding: 0 18px 0 22px;
    font-size: 14px;
  }

  .hc-intro-title,
  .hc-card-title {
    font-size: 20px;
  }

  .home-contact .hc-lead {
    font-size: 14px;
  }

  .home-contact .hc-text,
  .home-contact .hc-card-text {
    font-size: 13.5px;
  }

  .hc-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-highlights li {
    flex-direction: row;
    align-items: center;
    padding: 11px 13px;
  }

  .hc-highlight-icon {
    width: 32px;
    height: 32px;
  }

  .hc-highlights strong {
    font-size: 13px;
  }

  .hc-highlights small {
    font-size: 11.5px;
  }

  .hc-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .hc-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .hc-features li {
    font-size: 13.5px;
  }

  .hc-btn {
    height: 44px;
    font-size: 11.5px;
  }

  .home-contact .hc-trust {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htm-leaf,
  .hc-glow {
    animation: none;
  }

  .htm-slide,
  .htm-slide.is-active {
    transition: none;
    transform: none;
  }
}

/* Réalisations en cartes (page À propos) : mobile en portrait (4:5), comme les autres cartes de
   réalisation, avec l'image mobile de l'admin « Cartes » si elle existe */
@media (max-width: 575px) {
  .fp-card .fp-media {
    aspect-ratio: 4 / 5;
  }
}

/* ========================================
   PROTECTION DES PHOTOS (demande du client du 09/10/2026)
   Photos des books (accueil, page Books, books liés) et photos ouvertes dans les galeries :
   pas de menu « Enregistrer l'image » à l'appui long sur téléphone, pas de sélection ni de
   glisser-déposer. Aucune mention affichée sur les photos. Voir aussi books.js (clic droit),
   app.js (originaux réservés à l'admin) et imageOptimizer.js (signature invisible).
   ======================================== */
.book-gallery img,
.bk-media img,
.bk-thumb img,
.lg-outer .lg-image,
.lg-outer .lg-thumb-item img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
