:root {
  --background: #ffffff;
  --foreground: #171717;
  --font-sans: "Geist", Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: 130px;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e6e9e5;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  min-height: 78px;
  padding: 10px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 13px;
  text-decoration: none;
}

.site-logo-symbol {
  align-items: center;
  display: flex;
  height: 92px;
  justify-content: center;
  width: 92px;
}

.site-logo-symbol img {
  display: block;
  height: 92px;
  object-fit: contain;
  width: 92px;
}

.site-logo-name {
  color: #2f8345;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.header-phone {
  color: #255d36;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-right: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: #d26f26;
}

.header-icon {
  align-items: center;
  border-radius: 999px;
  color: #2f8345;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 42px;
}

.header-icon:hover,
.header-icon.is-active {
  background: #eef7f0;
  transform: translateY(-1px);
}

.header-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 21px;
}

.header-link {
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 18px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.header-link:hover {
  transform: translateY(-1px);
}

.header-link:focus-visible {
  outline: 3px solid rgba(47, 131, 69, 0.28);
  outline-offset: 3px;
}

.header-link-client {
  align-items: center;
  background: #d9772b;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding-block: 0;
}

.header-link-team {
  color: #255d36;
}

.header-link-team:hover,
.header-link-team.is-active {
  background: #eef7f0;
  color: #246b37;
}

.header-link-client:hover {
  background: #bf6120;
  color: #fff;
}

.header-link-contact {
  background: #2f8345;
  color: #fff;
}

.header-link-contact:hover {
  background: #246b37;
}

/* Notre équipe */
.team-page {
  background: #f5f7f3;
}

.team-hero {
  background-attachment: scroll;
  background-color: #e8ede8;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  position: relative;
  height: clamp(280px, 52svh, 460px);
  min-height: 0;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/equipe-bsyndic-v3.png");
  background-position: inherit;
  background-size: inherit;
  background-repeat: no-repeat;
  filter: saturate(0.76) contrast(0.94);
  pointer-events: none;
}

.team-hero-content {
  z-index: 1;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.88);
  border-left: 7px solid #d9772b;
  border-radius: 3px 22px 22px 3px;
  bottom: auto;
  box-shadow: 0 18px 50px rgba(28, 45, 33, 0.16);
  color: #255d36;
  left: clamp(24px, 7vw, 100px);
  max-width: 520px;
  padding: clamp(14px, 1.8vw, 24px);
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  transform-origin: left center;
  will-change: transform, opacity;
}

.team-eyebrow,
.team-section-label {
  color: #f4c143;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.team-hero h1 {
  font-size: clamp(1.3rem, 3vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.team-hero-content > p:last-child {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 660px;
}

.team-portrait {
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(22px, 3vw, 36px) clamp(24px, 5vw, 72px) 0;
}

.team-summary {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.team-summary .team-eyebrow {
  color: #d9772b;
}

.team-summary > p:last-child {
  color: #526057;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  margin: 0;
}

.team-members {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 30px clamp(8px, 2vw, 28px) 0;
  text-align: center;
}

.team-members div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-members strong {
  color: #255d36;
  font-size: 1.08rem;
}

.team-members span {
  color: #68746c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.team-intro {
  display: grid;
  gap: clamp(32px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 88px);
}

.team-section-label {
  color: #d9772b;
}

.team-intro h2,
.team-cta h2 {
  color: #25372a;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.team-intro > p {
  color: #526057;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  margin: 24px 0 0;
}

.team-roles {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 clamp(24px, 6vw, 88px) clamp(64px, 8vw, 110px);
}

.team-role-card {
  background: #fff;
  border-radius: 4px 30px 30px 30px;
  min-height: 0;
  padding: clamp(26px, 3vw, 38px);
}

.team-role-card-green { background: #dfeadf; }
.team-role-card-orange { background: #fff0e3; }
.team-role-card-light { background: #fff; }

.team-role-card h2 {
  color: #255d36;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.team-role-card p {
  color: #4c5950;
  line-height: 1.6;
  margin: 0;
}

.team-cta {
  align-items: end;
  background: #fff;
  display: grid;
  gap: clamp(30px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  padding: clamp(54px, 7vw, 92px) clamp(24px, 7vw, 108px);
}

.team-cta-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 820px) {
  .team-intro,
  .team-cta {
    grid-template-columns: 1fr;
  }

  .team-roles {
    grid-template-columns: 1fr;
  }

  .team-members {
    gap: 12px;
  }

  .team-role-card {
    min-height: auto;
  }

}

@media (max-width: 620px) {
  .team-hero {
    background-attachment: scroll;
    min-height: 0;
  }

  .team-hero-content {
    bottom: auto;
    left: 20px;
    max-width: calc(100% - 40px);
    top: clamp(18px, 3vw, 32px);
  }

  .team-members {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.tagline {
  --clearing-opacity: 0;
  --clouds-opacity: 1;
  align-items: flex-start;
  background-attachment: fixed;
  background-image: url("images/hero-bsyndic-v7-sun.png");
  background-position: center;
  background-size: cover;
  display: flex;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  padding: 26px clamp(24px, 8vw, 128px);
  text-align: right;
}

.tagline::before,
.tagline::after {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.tagline::before {
  background-image: url("images/hero-bsyndic-v7-clouds.png");
  opacity: var(--clouds-opacity);
}

.tagline::after {
  background-image: url("images/hero-bsyndic-v7-clearing.png");
  opacity: var(--clearing-opacity);
}

.tagline h1 {
  background: rgba(255, 255, 255, 0.92);
  border-left: 7px solid #d9772b;
  border-radius: 3px 18px 18px 3px;
  box-shadow: 0 18px 50px rgba(28, 45, 33, 0.14);
  color: #255d36;
  font-size: clamp(2.15rem, 4.7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
  max-width: 600px;
  padding: clamp(16px, 2vw, 26px) clamp(20px, 2.7vw, 34px);
  left: clamp(24px, 8vw, 128px);
  position: absolute;
  top: clamp(24px, 8vh, 72px);
  text-wrap: balance;
  z-index: 2;
  transform-origin: left center;
  will-change: transform, opacity;
}

.introduction {
  background: #fff;
  margin: 0 auto;
  max-width: 1040px;
  padding: clamp(30px, 4vw, 50px) clamp(24px, 6vw, 72px);
  text-align: right;
}

.introduction-lead {
  color: #255d36;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 18px auto;
  max-width: 900px;
  text-wrap: balance;
  text-align: right;
}

.introduction-copy {
  color: #4c5650;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  margin: 0 0 0 auto;
  max-width: 820px;
  text-wrap: pretty;
  text-align: right;
}

.switch-syndic {
  display: block;
  margin: 18px auto 0;
  position: relative;
  width: fit-content;
  z-index: 8;
}

body:has(.switch-syndic[open])::before {
  backdrop-filter: blur(5px);
  background: rgba(31, 42, 35, 0.52);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 7;
}

.switch-syndic summary {
  background: #2b7141;
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(43, 113, 65, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  list-style: none;
  padding: 13px 22px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.switch-syndic summary::-webkit-details-marker {
  display: none;
}

.switch-syndic summary:hover {
  background: #225d35;
  transform: translateY(-1px);
}

.switch-syndic summary:focus-visible {
  outline: 3px solid rgba(43, 113, 65, 0.25);
  outline-offset: 3px;
}

.switch-syndic-panel {
  background: #fff;
  border-left: 5px solid #d9772b;
  border-radius: 3px 22px 22px 3px;
  box-shadow: 0 18px 50px rgba(38, 62, 44, 0.18);
  left: calc(100% + 14px);
  opacity: 0;
  padding: 24px 26px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: 50%;
  transform: translate(-6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  width: min(430px, calc(100vw - 48px));
}

.switch-syndic-panel::before {
  content: "";
  height: 100%;
  position: absolute;
  right: 100%;
  top: 0;
  width: 16px;
}

.switch-syndic:hover .switch-syndic-panel,
.switch-syndic:focus-within .switch-syndic-panel,
.switch-syndic[open] .switch-syndic-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
  visibility: visible;
}

.switch-syndic[open] summary {
  position: relative;
  z-index: 9;
}

.switch-syndic[open] .switch-syndic-panel {
  z-index: 9;
}

.switch-syndic-panel p {
  color: #465249;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.switch-syndic-panel p + p {
  color: #255d36;
  font-weight: 750;
  margin-top: 12px;
}

.switch-syndic-panel a {
  color: #d26f26;
  text-underline-offset: 3px;
}

.services {
  background: #fff;
  padding: 0 0 clamp(30px, 4vw, 50px);
}

.services-heading {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), url("images/services-background-v3.png");
  background-position: center;
  background-size: cover;
  margin: 0 0 clamp(20px, 2.8vw, 32px);
  padding: clamp(34px, 4.5vw, 56px) 24px;
}

.services-heading-inner {
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1180px;
}

.section-label {
  color: #d26f26;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.services h2 {
  color: #255d36;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  max-width: 720px;
  text-align: right;
  text-wrap: balance;
}

.services-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  width: calc(100% - 48px);
}

.service-card {
  background: #fff;
  border-left: 5px solid #d9772b;
  border-radius: 3px 26px 26px 3px;
  box-shadow: 0 14px 38px rgba(38, 62, 44, 0.09);
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: clamp(20px, 2.4vw, 28px);
}

.service-card h3 {
  color: #2b7141;
  font-size: clamp(1.3rem, 2.15vw, 1.95rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 13px;
  text-wrap: balance;
}

.service-card p {
  color: #4a554d;
  font-size: clamp(0.95rem, 1.12vw, 1.03rem);
  line-height: 1.55;
  margin: 0;
}

.service-link {
  align-self: flex-start;
  background: #d9772b;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(160, 80, 25, 0.18);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: auto;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.services > .service-link {
  display: table;
  margin: 18px auto 0;
}

.service-link:hover {
  background: #bf6120;
  box-shadow: 0 10px 24px rgba(160, 80, 25, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.service-link:focus-visible {
  outline: 3px solid rgba(217, 119, 43, 0.28);
  outline-offset: 3px;
}

/* Scroll-driven garden sequence */
.services {
  background: #eef3ed;
  min-height: 135vh;
  overflow: clip;
  padding: 0;
  position: relative;
}

.services-visual {
  height: 80vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 0;
}

.services-visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(238, 243, 237, 0.3));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.services-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: 84% 86%;
  width: 100%;
  will-change: transform;
}

.services-content {
  margin-top: -80vh;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.services .services-heading {
  align-items: flex-start;
  background: none;
  display: flex;
  min-height: 80vh;
  margin: 0;
  overflow: hidden;
  padding: clamp(32px, 6vw, 88px);
}

.services .services-heading-inner {
  justify-content: flex-end;
  max-width: none;
  opacity: 1;
  transform: none;
  width: 100%;
  will-change: transform, opacity;
}

.services h2 {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.84);
  border-right: 6px solid #d9772b;
  border-radius: 24px 3px 3px 24px;
  box-shadow: 0 18px 50px rgba(35, 55, 40, 0.14);
  max-width: 760px;
  padding: clamp(20px, 3vw, 36px);
  text-align: right;
}

.services-cards-stage {
  align-items: center;
  background: linear-gradient(180deg, rgba(238, 243, 237, 0), rgba(238, 243, 237, 0.62) 35%, rgba(238, 243, 237, 0.88));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: -45vh;
  min-height: 100vh;
  opacity: 1;
  padding: 38vh 0 44px;
  position: sticky;
  top: 0;
  transform: none;
  will-change: transform, opacity;
}

.services.is-scroll-sequence .services-heading-inner {
  opacity: 0;
  transform: translate3d(55vw, 0, 0);
}

.services.is-scroll-sequence .services-cards-stage {
  opacity: 0;
  transform: translate3d(0, 90px, 0);
}

.services-cards-stage .service-card {
  backdrop-filter: blur(9px);
  background: rgba(255, 255, 255, 0.9);
}

.services-cards-stage > .service-link {
  align-self: center;
  margin-top: 22px;
}

.testimonials {
  background: #eef3ed;
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 6vw, 88px) clamp(48px, 5.5vw, 66px);
}

.testimonials-heading {
  margin: 0 auto clamp(20px, 2.8vw, 30px);
  max-width: 1180px;
  text-align: center;
}

.testimonials h2 {
  color: #25372a;
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 auto;
  max-width: 850px;
  text-wrap: balance;
}

.testimonials-grid {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.testimonial-card {
  background: #fff;
  border-radius: 38px 38px 38px 8px;
  box-shadow: 0 16px 38px rgba(38, 62, 44, 0.1);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 235px;
  padding: clamp(22px, 2.3vw, 28px);
  position: relative;
}

.testimonial-card::after {
  border-right: 26px solid transparent;
  border-top: 30px solid #fff;
  bottom: -22px;
  content: "";
  left: 32px;
  position: absolute;
}

.testimonial-card-green {
  background: #dfeadf;
}

.testimonial-card-green::after {
  border-top-color: #dfeadf;
}

.testimonial-card-orange {
  background: #fff0e3;
}

.testimonial-card-orange::after {
  border-top-color: #fff0e3;
}

.testimonial-card p {
  color: #34443a;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.52;
  margin: 0 0 16px;
}

.testimonial-card footer {
  margin-top: auto;
}

.testimonial-card cite {
  color: #2b7141;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-section {
  background: #26372b;
  color: #fff;
  padding: clamp(42px, 5vw, 64px) clamp(24px, 7vw, 108px) clamp(30px, 4vw, 44px);
}

.contact-intro,
.contact-main,
.contact-details {
  margin-inline: auto;
  max-width: 1180px;
}

.contact-intro p {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  max-width: 980px;
  text-wrap: balance;
}

.contact-main {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(22px, 3vw, 34px);
}

.contact-action {
  background: #fff;
  border-radius: 3px 24px 24px 3px;
  color: #255d36;
  display: flex;
  flex-direction: column;
  font-size: clamp(1.2rem, 2.15vw, 1.8rem);
  font-weight: 750;
  line-height: 1.2;
  padding: clamp(20px, 2.4vw, 28px);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-action-orange {
  background: #d9772b;
  color: #fff;
}

.contact-action span {
  color: #728076;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-action-orange span {
  color: rgba(255, 255, 255, 0.76);
}

.contact-action:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.contact-details {
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  display: flex;
  justify-content: space-between;
  margin-top: clamp(28px, 3.5vw, 42px);
  padding-top: 22px;
}

.contact-details address,
.contact-legal {
  color: #d9e1da;
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-style: normal;
  gap: 6px;
  line-height: 1.45;
}

.contact-legal {
  text-align: right;
}

.legal-footer {
  background: #1d2920;
  color: #bfc9c0;
  padding: 22px clamp(24px, 7vw, 108px) 26px;
}

.legal-footer-inner {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.65fr);
  margin: 0 auto;
  max-width: 1180px;
}

.ai-credit {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #93a095;
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 22px auto 0;
  max-width: 1180px;
  padding-top: 16px;
  text-align: center;
}

.legal-privacy h2 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0 0 8px;
}

.legal-footer p {
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}

.legal-information {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-footer a {
  color: #dbe6dc;
  text-decoration-color: #d9772b;
  text-underline-offset: 3px;
}

.legal-footer a:hover {
  color: #fff;
}

.legal-to-confirm {
  color: #e4a56e;
}

@media (max-width: 1100px) {
  .switch-syndic-panel {
    display: none;
    left: auto;
    margin-top: 12px;
    position: static;
    transform: none;
    width: min(540px, calc(100vw - 48px));
  }

  .switch-syndic[open] .switch-syndic-panel {
    display: block;
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  .site-logo {
    align-self: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    margin-left: 0;
    width: 100%;
  }

  .header-phone {
    align-items: center;
    flex-basis: auto;
    margin: 0;
  }

  .header-link {
    flex: 1;
    padding-inline: 10px;
    text-align: center;
  }

  .tagline {
    align-items: flex-start;
    background-attachment: scroll;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.88) 100%), url("images/hero-bsyndic-v7-sun.png");
    background-position: 66% center;
    min-height: 400px;
    padding: 20px;
  }

  .tagline::before,
  .tagline::after {
    background-attachment: scroll;
    background-position: 66% center;
  }

  .tagline h1 {
    border-left-width: 5px;
    border-radius: 3px 14px 14px 3px;
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    max-width: 430px;
    padding: 16px 18px;
    top: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .contact-legal {
    text-align: left;
  }

  .legal-footer-inner {
    grid-template-columns: 1fr;
  }

  .switch-syndic {
    width: 100%;
  }

  .switch-syndic summary {
    display: block;
    margin-inline: auto;
    width: fit-content;
  }

  .switch-syndic-panel {
    display: none;
    left: auto;
    margin-top: 12px;
    position: static;
    transform: none;
    width: 100%;
  }

  .switch-syndic[open] .switch-syndic-panel {
    display: block;
    transform: none;
  }

  .service-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .services {
    min-height: auto;
    overflow: hidden;
  }

  .services-visual {
    height: min(62vh, 520px);
    position: relative;
  }

  .services-content {
    margin-top: 0;
    padding-bottom: 0;
  }

  .services .services-heading {
    min-height: auto;
    padding: 46px 24px 28px;
  }

  .services h2 {
    border-right-width: 4px;
    padding: 20px;
  }

  .services-cards-stage {
    margin-top: 0;
    min-height: auto;
    padding: 28px 0 50px;
    position: relative;
    top: auto;
  }
}

/* Consolidated small-screen layout: preserve full imagery and prevent overflow. */
@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 8px;
    padding: 8px 6px 10px;
  }

  .site-logo {
    align-self: center;
    gap: 8px;
  }

  .site-logo-symbol,
  .site-logo-symbol img {
    height: 58px;
    width: 58px;
  }

  .site-logo-name {
    font-size: 1.55rem;
  }

  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
  }

  .header-phone {
    flex: 1 1 78px;
    font-size: 0.72rem;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
  }

  .header-link-team {
    flex: 1 1 92px;
  }

  .header-link-client {
    flex: 1 1 104px;
    height: 36px;
  }

  .header-link {
    font-size: 0.7rem;
    min-width: 0;
    padding-inline: 6px;
    white-space: nowrap;
    width: auto;
  }

  .header-icon {
    flex-basis: 36px;
    height: 36px;
    width: 36px;
  }

  .header-icon svg {
    height: 18px;
    width: 18px;
  }

  .tagline {
    background-color: #e8ede8;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 43.31vw;
    padding: 0;
  }

  .tagline::before,
  .tagline::after {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    bottom: auto;
    height: 43.31vw;
  }

  .tagline h1 {
    bottom: auto;
    font-size: clamp(1.1rem, 5.8vw, 1.5rem);
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 8px 10px;
    position: absolute;
    top: 8px;
    width: auto;
  }

  .introduction {
    padding-inline: 20px;
    text-align: right;
  }

  .services-visual {
    aspect-ratio: 1905 / 825;
    height: auto;
  }

  .services-visual img {
    height: 100%;
    object-fit: contain;
    transform: none;
  }

  .services-content {
    margin-top: -43.31vw;
  }

  .services .services-heading {
    align-items: flex-end;
    min-height: 43.31vw;
    padding: 10px 14px;
  }

  .services h2 {
    font-size: clamp(1.05rem, 5.2vw, 1.4rem);
    max-width: 88%;
    padding: 10px 12px;
    text-align: left;
  }

  .services-grid {
    width: calc(100% - 32px);
  }

  .team-hero {
    background-color: #e8ede8;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    aspect-ratio: 1672 / 941;
    min-height: 0;
  }

  .team-hero-content {
    bottom: auto;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 10px 12px;
  }

  .team-hero h1 {
    font-size: clamp(1.05rem, 5.5vw, 1.4rem);
    line-height: 1.08;
  }

  .team-portrait {
    padding-inline: 20px;
  }

  .team-intro,
  .team-roles,
  .team-cta {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services {
    min-height: auto;
  }

  .services-visual {
    height: min(70vh, 620px);
    position: relative;
  }

  .services-content {
    margin-top: 0;
    padding-bottom: 0;
  }

  .services .services-heading,
  .services-cards-stage {
    margin-top: 0;
    min-height: auto;
    position: relative;
    top: auto;
  }

  .tagline {
    background-attachment: scroll;
  }

  .tagline::before,
  .tagline::after {
    animation: none;
    display: none;
  }
}

/* Wider portrait leaves room for the title within the image. */
.team-hero {
  height: auto;
  min-height: 0;
  aspect-ratio: 12 / 5;
  background-position: center top;
  background-size: cover;
}

.team-hero::before {
  background-image: url("images/equipe-bsyndic-v4-wide.png");
}

.team-hero-content {
  position: absolute;
  top: auto;
  bottom: clamp(10px, 2vw, 24px);
  left: clamp(12px, 4vw, 56px);
  margin: 0;
  max-width: min(720px, calc(100% - 24px));
}

.team-hero h1 {
  font-size: clamp(1rem, 2.6vw, 2.2rem);
  line-height: 1.12;
}

@media (max-width: 620px) {
  .team-hero {
    aspect-ratio: 2 / 1;
  }
  .team-hero-content {
    padding: 8px 10px;
  }
}

/* Original brand artwork, including its original lettering. */
.site-logo-original {
  display: block;
  width: clamp(220px, 24vw, 320px);
  max-width: 100%;
  height: auto;
}

@media (max-width: 620px) {
  .site-logo-original {
    width: 220px;
  }
}
