/* ========================================
   PAGE D'UN SERVICE (maquettes univers 03 à 07)
   Haut de page photo + titre en deux tons, bandeau clair des engagements, réalisations sur
   image de fond (défilement avec points), contenu en blocs, appel à contact, autres univers.
   Réglages : admin Services, bouton « Page » (services/servicePages.js).
   Cartes de réalisations, surtitres, apparition : site-sections.css ; couleurs : site-header.css.
   index.css impose marge et fond à toute <section> : chaque section les redéfinit.
   ======================================== */
.service-page,
.service-page .main {
  background: var(--site-green-deep, #10201a);
}

/* ========================================
   HAUT DE PAGE
   ======================================== */
/* Premier écran : haut de page (et, sur tablette et mobile, bandeau des engagements dessous) */
.sv-top {
  display: flex;
  flex-direction: column;
}

.sv-hero {
  position: relative;
  display: flex;
  flex: 1;
  /* Texte posé tout en bas de la photo (demande du client, 09/10/2026) */
  align-items: flex-end;
  /* Ordinateur : la photo occupe tout l'écran sous la barre de menu */
  min-height: calc(100vh - var(--site-header-h, 96px));
  min-height: calc(100svh - var(--site-header-h, 96px));
  padding: 0;
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

.sv-hero-media,
.sv-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sv-hero-media {
  z-index: -2;
}

.sv-hero-media img {
  object-fit: cover;
  object-position: center;
  animation: sv-hero-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sv-hero-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

.sv-hero-content {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(20px, 4vw, 56px) clamp(28px, 4.5vh, 52px);
}

/* Photo sans voile : un fond sombre en fondu se pose seulement derrière les textes. Ovale
   « closest-side » : il s'éteint avant les bords de sa zone (aucun cadre visible) */
.sv-hero-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -140px;
  z-index: -1;
  width: min(115%, 1040px);
  height: 160%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.36) 68%, rgba(0, 0, 0, 0.12) 88%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.sv-hero-content > * {
  max-width: 600px;
  animation: sv-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sv-hero-content > :nth-child(2) { animation-delay: 0.08s; }
.sv-hero-content > :nth-child(3) { animation-delay: 0.16s; }
.sv-hero-content > :nth-child(4) { animation-delay: 0.24s; }

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

/* Surtitre en capitales espacées, suivi d'un filet */
.service-page .sv-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--site-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--site-lime);
}

.service-page .sv-eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.service-page .sv-title {
  margin: 0 0 24px;
  font-family: var(--site-serif);
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.service-page .sv-title span {
  display: block;
  font-family: inherit;
  color: #fff;
}

.service-page .sv-title .is-accent {
  color: var(--site-lime);
}

.service-page .sv-text {
  margin: 0 0 34px;
  font-family: var(--site-sans);
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 300;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Bouton pilule (comme la page À propos) */
.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 28px 0 34px;
  font-family: var(--site-sans);
  font-size: 17px;
  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;
}

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

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

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

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

/* ========================================
   ENGAGEMENTS : bandeau clair, pictogrammes au trait
   ======================================== */
.sv-commitments {
  padding: 0;
  background: var(--site-cream, #f4f2ec);
}

.sv-commitments-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;
}

.sv-commitments-list li {
  position: relative;
  padding: 34px 26px;
}

/* Filet vert qui se déroule sous l'engagement survolé */
.sv-commitments-list li::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 0;
  left: 26px;
  height: 2px;
  background: linear-gradient(90deg, #2f5a3a, var(--site-lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-commitments-list li:first-child::after {
  left: 0;
}

.sv-commitments-list li:hover::after {
  transform: scaleX(1);
}

.sv-commitments-list li:first-child {
  padding-left: 0;
}

.sv-commitments-list li + li {
  border-left: 1px solid #ddd8cc;
}

.sv-icon {
  display: block;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  padding: 12px;
  background: #eaf1df;
  border-radius: 50%;
  fill: none;
  stroke: #2f5a3a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.35s ease, stroke 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-commitments-list li:hover .sv-icon {
  background: #172c23;
  stroke: var(--site-lime);
  transform: rotate(-8deg);
}

.service-page .sv-commitments-list h2 {
  margin: 0 0 6px;
  font-family: var(--site-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b1c1d;
}

.service-page .sv-commitments-list p {
  margin: 0;
  font-family: var(--site-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #4a4d48;
}

/* ========================================
   RÉALISATIONS : image de fond, feuillage flou, défilement
   ======================================== */
.sv-projects {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 90px);
  overflow: hidden;
  background: var(--site-green-deep, #10201a);
  isolation: isolate;
}

.sv-projects-media {
  position: absolute;
  top: -14%;
  right: 0;
  bottom: -14%;
  left: 0;
  z-index: -3;
  will-change: transform;
}

.sv-projects-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-projects.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(16, 32, 26, 0.9) 0%, rgba(16, 32, 26, 0.72) 30%, rgba(16, 32, 26, 0.72) 70%, rgba(16, 32, 26, 0.92) 100%);
  pointer-events: none;
}

.sv-projects.has-bg .fp-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

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

/* Feuilles floues dans les coins, comme le feuillage des maquettes */
.sv-leaf {
  position: absolute;
  z-index: -1;
  color: #2c5a3c;
  opacity: 0.55;
  filter: blur(6px);
  pointer-events: none;
}

.sv-leaf-a {
  bottom: -90px;
  left: -110px;
  width: clamp(240px, 26vw, 400px);
  transform: rotate(-20deg);
  animation: sv-leaf-a 14s ease-in-out infinite alternate;
}

.sv-leaf-b {
  top: -110px;
  right: -90px;
  width: clamp(200px, 20vw, 320px);
  transform: rotate(160deg);
  animation: sv-leaf-b 17s ease-in-out infinite alternate;
}

@keyframes sv-leaf-a {
  to {
    transform: rotate(-12deg) translate(10px, -8px);
  }
}

@keyframes sv-leaf-b {
  to {
    transform: rotate(168deg) translate(-8px, 10px);
  }
}

/* Piste : 4 cartes visibles, défilement par pages avec accroche */
.sv-carousel {
  position: relative;
}

.sv-track {
  display: grid;
  grid-auto-columns: calc((100% - 60px) / 4);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sv-track::-webkit-scrollbar {
  display: none;
}

.sv-track:focus-visible {
  outline: 2px solid var(--site-lime);
  outline-offset: 6px;
  border-radius: 12px;
}

/* Largeur des cartes selon leur nombre : 1 = pleine largeur, 2 ou 3 = colonnes, 4 et plus = 4 visibles */
.sv-n1 .sv-track { grid-auto-columns: 100%; }
.sv-n2 .sv-track { grid-auto-columns: calc((100% - 20px) / 2); }
.sv-n3 .sv-track { grid-auto-columns: calc((100% - 40px) / 3); }

/* ---- Carte : photo plein cadre, titre et lien posés dessus ---- */
.sv-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1f3a2e, #142820);
  border-radius: 16px;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.85);
  scroll-snap-align: start;
  isolation: isolate;
}

.sv-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
}

.sv-n1 .sv-card-media { aspect-ratio: 21 / 9; }
.sv-n2 .sv-card-media { aspect-ratio: 16 / 10; }

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

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

/* Fondu sombre en bas de la photo, sous le texte ; cadre fin vert clair au survol */
.sv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 40%, rgba(10, 20, 16, 0.55) 72%, rgba(10, 20, 16, 0.88) 100%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.sv-card-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 26px;
}

.service-page .sv-card-name {
  font-family: var(--site-serif);
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.sv-n1 .sv-card-name { font-size: clamp(28px, 2.6vw, 40px); }
.sv-n1 .sv-card-caption { padding: 34px 40px 38px; }

.service-page .sv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--site-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-lime);
}

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

.sv-card:hover .sv-card-media img {
  transform: scale(1.06);
}

.sv-card:hover::after {
  inset: 8px;
  border-color: rgba(157, 198, 107, 0.6);
}

.sv-card:hover .sv-card-link svg {
  transform: translateX(5px);
}

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

/* Lien « Voir toutes nos réalisations » sous les cartes : mobile seulement */
.sv-projects-more {
  display: none;
}

.sv-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.sv-dots[hidden] {
  display: none;
}

.sv-dot {
  width: 40px;
  height: 4px;
  padding: 0;
  background: rgba(244, 242, 236, 0.22);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.sv-dot.is-active {
  width: 56px;
  background: var(--site-lime);
}

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

/* ========================================
   CONTENU EN BLOCS
   ======================================== */
/* Chapitres : chaque titre ouvre un chapitre ; sur ordinateur, titre à gauche, aligné sur le haut
   de son texte, et contenu à droite, sur la même largeur que les réalisations */
.sv-content {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(157, 198, 107, 0.08) 0%, rgba(157, 198, 107, 0) 45%),
    var(--site-green, #172c23);
  isolation: isolate;
}

/* Lueur verte qui dérive lentement ; grande feuille au trait en filigrane */
.sv-content-glow {
  position: absolute;
  top: 30%;
  left: -240px;
  z-index: -1;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(157, 198, 107, 0.1), rgba(157, 198, 107, 0));
  pointer-events: none;
  animation: sv-content-drift 24s ease-in-out infinite alternate;
}

@keyframes sv-content-drift {
  to {
    transform: translate(200px, -160px) scale(1.1);
  }
}

.sv-content-leaf {
  position: absolute;
  right: -70px;
  bottom: -60px;
  z-index: -1;
  width: clamp(260px, 26vw, 400px);
  color: var(--site-lime);
  opacity: 0.06;
  transform: rotate(-8deg);
  transform-origin: bottom left;
  pointer-events: none;
  animation: sv-content-sway 15s ease-in-out infinite alternate;
}

@keyframes sv-content-sway {
  to {
    transform: rotate(-2deg) translateY(-6px);
  }
}

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

.sv-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding: clamp(40px, 4.5vw, 64px) 0;
  border-top: 1px solid rgba(157, 198, 107, 0.16);
}

.sv-chapter:first-child {
  padding-top: 0;
  border-top: 0;
}

.sv-chapter:last-child {
  padding-bottom: 0;
}

.sv-chapter.no-heading .sv-chapter-body {
  grid-column: 2;
}

.sv-chapter-head {
  align-self: start;
}

/* Filet vert au-dessus du titre, qui se trace à l'apparition */
.sv-chapter-line {
  display: block;
  width: 48px;
  height: 2px;
  margin: 6px 0 18px;
  background: var(--site-lime);
  transform-origin: left;
}

.js-reveal .sv-chapter-head.is-visible .sv-chapter-line {
  animation: sv-line-draw 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

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

.sv-chapter-body > .sv-block + .sv-block {
  margin-top: 24px;
}

.service-page .sv-heading {
  margin: 0;
  font-family: var(--site-serif);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.service-page h2.sv-heading { font-size: clamp(30px, 2.8vw, 42px); }
.service-page h3.sv-heading { font-size: clamp(25px, 2.2vw, 33px); }
.service-page h4.sv-heading { font-size: clamp(21px, 1.8vw, 26px); color: var(--site-lime); }

.service-page .sv-block-text p {
  margin: 0;
  font-family: var(--site-sans);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.service-page .sv-block-text strong {
  font-weight: 500;
  color: #fff;
}

.service-page .sv-block-text a {
  color: var(--site-lime);
  text-decoration: underline;
}

.service-page .sv-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-page .sv-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--site-sans);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.service-page .sv-list li + li {
  margin-top: 6px;
}

.service-page ul.sv-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--site-lime);
  border-radius: 50%;
}

.service-page ol.sv-list {
  counter-reset: sv-list;
}

.service-page ol.sv-list li::before {
  counter-increment: sv-list;
  content: counter(sv-list) ".";
  position: absolute;
  left: 0;
  font-weight: 500;
  color: var(--site-lime);
}

.sv-quote {
  margin: 8px 0;
  padding: 6px 0 6px 24px;
  border-left: 2px solid var(--site-lime);
}

.service-page .sv-quote p {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--site-lime);
}

.sv-figure {
  margin: 8px 0;
}

.sv-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 34px 60px -36px rgba(0, 0, 0, 0.85);
}

.service-page .sv-figure figcaption {
  margin-top: 8px;
  font-family: var(--site-sans);
  font-size: 13px;
  color: rgba(244, 242, 236, 0.65);
}

.service-page .sv-gallery-title {
  margin: 0 0 10px;
  font-family: var(--site-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-lime);
}

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

.sv-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

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

.sv-gallery a:hover img {
  transform: scale(1.05);
}

/* ========================================
   APPEL À CONTACT
   ======================================== */
.sv-cta {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(157, 198, 107, 0.16) 0%, rgba(157, 198, 107, 0) 60%),
    var(--site-green, #172c23); /* même vert que le contenu et les autres univers : aucune bande */
}

.sv-cta {
  isolation: isolate;
}

/* Photo du haut de page en fondu : estompée, fondue vers les quatre bords (pas de zoom animé :
   une image animée sous un masque n'était plus fondue) */
.sv-cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Fondu sur les quatre bords (deux dégradés croisés) (sur le conteneur ; aucun filtre sur l'image, il annulait le masque) */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 28%, #000 72%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 32%, #000 68%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 28%, #000 72%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 32%, #000 68%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
}

.sv-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* Avec photo : fond uni (la lueur verte du bas créait une ligne nette avec la section suivante) */
.sv-cta.has-bg {
  background: var(--site-green, #172c23);
}

/* Voile sombre au centre, sous le texte */
.sv-cta.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 42% 46% at 50% 50%, rgba(10, 20, 16, 0.6) 0%, rgba(10, 20, 16, 0.25) 60%, rgba(10, 20, 16, 0) 100%);
  pointer-events: none;
}

.sv-cta-leaf {
  position: absolute;
  top: -50px;
  right: -60px;
  z-index: -1;
  width: clamp(220px, 24vw, 360px);
  color: var(--site-lime);
  opacity: 0.08;
  transform: rotate(8deg);
  transform-origin: bottom left;
  pointer-events: none;
  animation: sv-content-sway 14s ease-in-out infinite alternate;
}

.sv-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.service-page .sv-cta-text {
  margin: -12px auto 28px;
  max-width: 560px;
  font-family: var(--site-sans);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.service-page .sv-cta h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.service-page .sv-cta .fp-eyebrow {
  justify-content: center;
}

.service-page .sv-cta h2 {
  margin: 0 0 28px;
  font-family: var(--site-serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

/* Surtitre et titre (site-sections.css les limite à leurs sections) */
.service-page .sv-cta .fp-eyebrow,
.service-page .sv-universes .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);
}

.service-page .sv-cta .fp-eyebrow::after,
.service-page .sv-universes .fp-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.service-page .sv-cta .fp-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.service-page .sv-universes .fp-title {
  margin: 0;
  font-family: var(--site-serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

/* ========================================
   AUTRES UNIVERS
   ======================================== */
.sv-universes {
  padding: clamp(56px, 7vw, 90px) 0 0;
  background: var(--site-green, #172c23);
}

.sv-universes .home-universes {
  margin-top: 0;
  padding-top: 26px;
  padding-bottom: clamp(56px, 7vw, 90px);
  background: transparent;
}

/* ========================================
   TABLETTE ET MOBILE
   ======================================== */
@media (max-width: 1199px) {
  /* Premier écran : photo puis bandeau des engagements, les deux visibles sans défiler */
  .sv-top {
    min-height: calc(100vh - var(--site-header-h, 76px) - 1px);
    min-height: calc(100svh - var(--site-header-h, 76px) - 1px);
  }

  .sv-hero {
    min-height: 0;
  }

  .sv-hero-content::before {
    left: -60px;
    width: min(120%, 900px);
    height: 150%;
  }

  .sv-hero-content > * {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  }

  .service-page .sv-title {
    margin-bottom: 22px;
    font-size: clamp(50px, 7.4vw, 64px);
  }

  .service-page .sv-eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .service-page .sv-text {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.5;
  }

  .sv-btn {
    height: 50px;
    gap: 12px;
    padding: 0 24px 0 28px;
    font-size: 16px;
  }

  .sv-btn svg {
    width: 17px;
    height: 17px;
  }

  /* Contenu en blocs, contact, autres univers : un cran plus petits (comme l'accueil) */
  .service-page h2.sv-heading { font-size: 26px; }
  .service-page h3.sv-heading { font-size: 21px; }
  .service-page h4.sv-heading { font-size: 18px; }

  .service-page .sv-block-text p,
  .service-page .sv-list li {
    font-size: 14.5px;
  }

  .service-page .sv-quote p {
    font-size: 23px;
  }

  .service-page .sv-cta h2 {
    margin-bottom: 24px;
    font-size: clamp(28px, 3.4vw, 36px);
  }

  .service-page .sv-universes .fp-title {
    font-size: clamp(28px, 3.4vw, 36px);
  }

  .sv-dots {
    margin-top: 28px;
  }
}

@media (max-width: 1199px) {
  /* Engagements : les 4 sur une ligne, centrés, sous la photo */
  .sv-commitments-list {
    padding: 0 12px;
  }

  .sv-commitments-list li,
  .sv-commitments-list li:first-child {
    padding: 20px 12px 22px;
    text-align: center;
  }

  .sv-commitments-list li::after,
  .sv-commitments-list li:first-child::after {
    right: 12px;
    left: 12px;
  }

  .sv-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    padding: 10px;
  }

  .service-page .sv-commitments-list h2 {
    margin-bottom: 4px;
    font-size: 13.5px;
    line-height: 1.25;
  }

  .service-page .sv-commitments-list p {
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 991px) {
  /* Chapitres : titre au-dessus du contenu, une seule colonne */
  .sv-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 40px 0;
  }

  .sv-chapter.no-heading .sv-chapter-body {
    grid-column: auto;
  }

  .sv-chapter-line {
    width: 40px;
    margin-bottom: 16px;
  }

  .sv-chapter-body > .sv-block + .sv-block {
    margin-top: 20px;
  }

  .sv-content-glow {
    width: 480px;
    height: 480px;
  }

  /* Carrousel jusqu'au bord de l'écran, cartes entières seulement : l'espace entre deux cartes
     vaut la marge de la page, la carte suivante commence donc juste après le bord de l'écran
     (aucune carte coupée) ; la première carte reste alignée sur le titre */
  .sv-track {
    gap: clamp(20px, 4vw, 56px);
    margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
    padding: 0 clamp(20px, 4vw, 56px) 4px;
    scroll-padding: 0 clamp(20px, 4vw, 56px);
  }

  .sv-track,
  .sv-n3 .sv-track {
    grid-auto-columns: calc((100% - clamp(20px, 4vw, 56px)) / 2);
  }

  .sv-n1 .sv-card-media { aspect-ratio: 16 / 9; }
  .sv-n2 .sv-card-media { aspect-ratio: 4 / 5; }

  .service-page .sv-card-name { font-size: 21px; }
  .service-page .sv-n1 .sv-card-name { font-size: 28px; }

  .sv-card-caption { padding: 20px 20px 22px; }
  .sv-n1 .sv-card-caption { padding: 26px 28px 30px; }

  .sv-projects-media {
    top: 0;
    bottom: 0;
  }

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

@media (max-width: 575px) {
  /* Grande photo sur l'essentiel du premier écran */
  .sv-hero-content {
    padding-top: 40px;
    padding-bottom: 26px;
  }

  .sv-hero-content::before {
    left: -40px;
    width: calc(100% + 80px);
    height: 140%;
  }

  .service-page .sv-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .service-page .sv-eyebrow {
    margin-bottom: 12px;
  }

  .service-page .sv-eyebrow::after {
    width: 32px;
  }

  .service-page .sv-title {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .service-page .sv-text {
    margin-bottom: 22px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .sv-btn {
    height: 42px;
    gap: 10px;
    padding: 0 18px 0 22px;
    font-size: 14px;
  }

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

  .service-page h2.sv-heading { font-size: 22px; }
  .service-page h3.sv-heading { font-size: 19px; }
  .service-page h4.sv-heading { font-size: 16.5px; }

  .service-page .sv-block-text p {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .service-page .sv-quote p {
    font-size: 20px;
  }

  .sv-quote {
    padding-left: 18px;
  }

  .service-page .sv-gallery-title {
    font-size: 11.5px;
  }

  .service-page .sv-cta h2 {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .service-page .sv-cta-text {
    margin: -8px auto 22px;
    font-size: 13.5px;
  }

  .service-page .sv-cta .fp-eyebrow::before,
  .service-page .sv-cta .fp-eyebrow::after {
    width: 24px;
  }

  .service-page .sv-universes .fp-title {
    font-size: 28px;
  }

  /* Engagements : les 4 sur une ligne, pictogramme et titre ; le texte court est masqué */
  .sv-commitments-list {
    padding: 0 6px;
  }

  .sv-commitments-list li,
  .sv-commitments-list li:first-child {
    padding: 14px 5px 15px;
  }

  .sv-commitments-list li::after,
  .sv-commitments-list li:first-child::after {
    right: 6px;
    left: 6px;
  }

  .sv-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    padding: 8px;
  }

  .service-page .sv-commitments-list h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    hyphens: auto;
  }

  .service-page .sv-commitments-list p {
    display: none;
  }

  /* Réalisations : une carte entière par écran, on fait glisser pour la suivante (points dessous) ;
     lien vers toutes sous les cartes */
  .sv-track,
  .sv-n1 .sv-track,
  .sv-n2 .sv-track,
  .sv-n3 .sv-track {
    grid-auto-columns: 100%;
  }

  .sv-card-media,
  .sv-n1 .sv-card-media,
  .sv-n2 .sv-card-media {
    aspect-ratio: 4 / 5;
  }

  .sv-card {
    border-radius: 14px;
  }

  .sv-card::after {
    inset: 10px;
    border-radius: 8px;
  }

  .sv-card-caption,
  .sv-n1 .sv-card-caption {
    gap: 8px;
    padding: 18px 18px 20px;
  }

  .service-page .sv-card-name,
  .service-page .sv-n1 .sv-card-name {
    font-size: 20px;
  }

  .service-page .sv-card-link {
    font-size: 11px;
  }

  .sv-projects .fp-head {
    margin-bottom: 22px;
  }

  .sv-projects .fp-head .fp-more {
    display: none;
  }

  .sv-projects-more {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
  }

  .sv-dot {
    width: 28px;
  }

  .sv-dot.is-active {
    width: 40px;
  }

  .sv-gallery {
    gap: 8px;
  }

  .service-page .sv-list li {
    font-size: 13.5px;
  }
}

/* Autres univers, mobile : toutes les cartes, en carrousel (2 cartes entières par écran, l'espace
   entre deux cartes vaut la marge : la 3e commence au bord de l'écran), points dessous */
@media (max-width: 767px) {
  .sv-universes .home-universes-track {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 20px) / 2);
    grid-auto-flow: column;
    gap: 20px;
    padding: 0 20px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }

  .sv-universes .home-universes-track::-webkit-scrollbar {
    display: none;
  }

  .sv-universes .universe-card {
    scroll-snap-align: start;
  }

  .sv-universes .sv-dots {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-hero-media img,
  .sv-hero-content > *,
  .sv-leaf,
  .sv-content-glow,
  .sv-content-leaf,
  .sv-cta-leaf,
  .js-reveal .sv-chapter-head.is-visible .sv-chapter-line {
    animation: none;
  }

  .sv-projects-media {
    top: 0;
    bottom: 0;
    transform: none !important;
  }

  .sv-btn svg,
  .sv-dot,
  .sv-gallery img,
  .sv-card-media img,
  .sv-card::after,
  .sv-card-link svg,
  .sv-icon,
  .sv-commitments-list li::after {
    transition: none;
  }
}

/* ========================================
   HAUT DE PAGE : TEXTE PLUS DISCRET (demande du client, 09/10/2026)
   Environ un quart plus petit qu'avant (titre, texte, bouton), limité au texte posé sur la photo.
   ======================================== */
.service-page .sv-hero-content > * {
  max-width: 520px;
}

.service-page .sv-hero-content .sv-eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
}

.service-page .sv-hero-content .sv-title {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.4vw, 64px);
}

.service-page .sv-hero-content .sv-text {
  margin-bottom: 26px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.45;
}

.service-page .sv-hero-content .sv-btn {
  height: 48px;
  gap: 12px;
  padding: 0 22px 0 26px;
  font-size: 15px;
}

.service-page .sv-hero-content .sv-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1199px) {
  .service-page .sv-hero-content .sv-title {
    font-size: clamp(36px, 5.6vw, 50px);
  }

  .service-page .sv-hero-content .sv-text {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .service-page .sv-hero-content .sv-btn {
    height: 46px;
  }
}

@media (max-width: 575px) {
  .service-page .sv-hero-content .sv-eyebrow {
    margin-bottom: 10px;
    font-size: 10.5px;
  }

  .service-page .sv-hero-content .sv-title {
    margin-bottom: 12px;
    font-size: 30px;
  }

  .service-page .sv-hero-content .sv-text {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .service-page .sv-hero-content .sv-btn {
    height: 40px;
    gap: 10px;
    padding: 0 16px 0 20px;
    font-size: 13.5px;
  }

  .service-page .sv-hero-content .sv-btn svg {
    width: 14px;
    height: 14px;
  }
}
