/* ============================================================
   ARCHITECTE VALLÉE DE CHEVREUSE — Page Styles
   ============================================================ */

/* ── Typography ────────────────────────────────────────────── */

.hero-banner {
  width: 100%;
  height: clamp(220px, 40vh, 460px);
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

h1 {
  font-family: "TT-Milks-Casual-Pie-Line", serif;
  font-weight: 400;
  color: #042825;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  text-align: center;
  margin-block: 3rem 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h2 {
  font-family: "Poiret", serif;
  font-weight: 400;
  color: #042825;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  text-align: center;
  line-height: 1.35;
}

/* h3 global — légèrement agrandi et harmonisé */
h3 {
  font-family: "Poiret", serif;
  font-weight: 600;
  color: #222222;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* h4 global — agrandi, couleur #222222 */
h4 {
  font-family: "Poiret", serif;
  font-weight: 600;
  color: #222222;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #042825;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  text-align: left;
  max-width: 1200px;
  line-height: 1.8;
}

/* ── Projet section ─────────────────────────────────────────── */

.projet-section {
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
}

.projet-section-titre {
  margin-bottom: 1.75rem;
}

.projet-section-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.projet-section-text p {
  max-width: 680px;
}

/* ── Expertise section ──────────────────────────────────────── */

.expertise-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  background-color: #ffffff;
}

.expertise-section-titre {
  margin-bottom: 2rem;
}

.expertise-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.expertise-section li {
  position: relative;
  padding-left: 1.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  margin-top: 14px;
  text-align: left;
  color: #042825;
  line-height: 1.65;
}

.expertise-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background-color: #d1976aed;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(209, 150, 106, 0.18);
}

.expertise-section-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.expertise-section-esquisse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1 1 300px;
  max-width: 600px;
}

.expertise-section-esquisse img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.expertise-section-liste {
  flex: 1 1 280px;
  max-width: 560px;
}

.slogan-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
}

/* ── Vallée Chevreuse section ───────────────────────────────── */

.vallee-chevreuse-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  background-color: #eef5ec;
}

.vallee-chevreuse-section p {
  text-align: left;
}

.vallee-chevreuse-photo {
  flex: 1 1 280px;
  max-width: 560px;
}

.vallee-chevreuse-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.vallee-chevreuse-liste {
  flex: 0 1 220px;
}

.vallee-chevreuse-liste ul {
  list-style: none;
  padding: 0;
}

.vallee-chevreuse-liste li {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: #042825;
  padding: 0.4rem 0;
  border-bottom: 1px solid #c8c3bb;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.vallee-chevreuse-liste li:last-child {
  border-bottom: none;
}

.vallee-chevreuse-section-button-wrapper {
  flex: 0 0 auto;
}

/* ── Founder section ────────────────────────────────────────── */

.founder-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  background-color: #ffffff;
  gap: 3rem;
}

.founder-container-presentation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-block: 0;
}

.founder-content {
  width: clamp(260px, 42vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.founder-content p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  text-align: left;
  color: #14110f;
  line-height: 1.8;
}

.founder-content h2 {
  font-family: "Poiret", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  text-align: left;
  color: #44301d;
  margin-bottom: 0.5rem;
}

/* founder h3 — taille revue à la hausse, couleur harmonisée avec la palette terracotta */
.founder-content h3 {
  font-family: "Poiret", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.85vw, 1.45rem);
  text-align: left;
  border-bottom: 2px solid #d1966a;
  margin-block: 0.75rem;
  padding-bottom: 0.4rem;
  color: #b8903a;
}

.founder-image {
  flex-shrink: 0;
}

.founder-image img {
  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  margin-inline: 0;
  object-fit: cover;
  display: block;
}

/* Citation block */
.founder-citation {
  position: relative;
  width: clamp(180px, 18vw, 340px);
  flex-shrink: 0;
  margin: 0;
  padding: 18px 22px;
  color: #2c403d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  background-image:
    linear-gradient(#c5cbcd, #c5cbcd), linear-gradient(#c5cbcd, #c5cbcd),
    linear-gradient(#c5cbcd, #c5cbcd), linear-gradient(#c5cbcd, #c5cbcd);
  background-repeat: no-repeat;
  background-size:
    32px 1px,
    1px 32px,
    32px 1px,
    1px 32px;
  background-position:
    left 28px top 0px,
    left 0px top 28px,
    right 28px bottom 0px,
    right 0px bottom 28px;
}

.founder-citation::before,
.founder-citation::after {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 2.8rem;
  color: #c5cbcd;
  line-height: 1;
}

.founder-citation::before {
  content: "\201C";
  top: -4px;
  left: -4px;
}

.founder-citation::after {
  content: "\201D";
  bottom: -24px;
  right: -4px;
}

.founder-citation p {
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  text-align: left;
}

.image-b {
  display: inline-block;
  width: 60px;
  height: 80px;
  background-image: url("../img/images/equipe/b-beryl-transparent.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  text-indent: -9999px;
  overflow: hidden;
}

/* ── Split Circle — DESKTOP (≥ 768px) ───────────────────────── */

.split-circle-section {
  position: relative;
  height: 300vh;
  background: #ffffff;
}

.split-circle-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-circle-scene {
  position: relative;
  width: 520px;
  height: 520px;
}

.sc-half {
  position: absolute;
  top: 0;
  width: 260px;
  height: 520px;
  overflow: visible;
  will-change: transform;
}

.sc-half--left {
  left: 0;
}
.sc-half--right {
  left: 260px;
}

.sc-img-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 520px;
  overflow: hidden;
}

.sc-img {
  width: 520px;
  height: 520px;
  border-radius: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
  flex-shrink: 0;
}

.sc-half--right .sc-img {
  margin-left: -260px;
}

/* Text panels */
.sc-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  width: 200px;
  pointer-events: none;
}

.sc-text--left {
  left: 100%;
  padding-left: 32px;
  text-align: left;
}

.sc-text--right {
  right: 100%;
  padding-right: 32px;
  text-align: right;
}

.sc-text .sc-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
}

.sc-text h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #042825;
  line-height: 1.2;
  margin-bottom: 10px;
  text-align: inherit;
}

.sc-text p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #5a6b68;
  text-align: inherit;
  max-width: none;
}

.sc-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 0;
  background: #ccc;
  will-change: height;
  z-index: 10;
  pointer-events: none;
}

/* Scroll hint */
.sc-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 20;
}

.sc-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  font-family: "Montserrat", sans-serif;
}

.sc-scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  transform: rotate(45deg);
  animation: sc-bounce 1.4s ease-in-out infinite;
}

@keyframes sc-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(4px);
  }
}

/* ── Split Circle — MOBILE fallback (< 768px) ───────────────── */

@media screen and (max-width: 767px) {
  /* Collapse the scroll runway and unstick the container */
  .split-circle-section {
    height: auto;
    background: #f7f4f0;
  }

  .split-circle-sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }

  /* Hide the desktop animated scene */
  .split-circle-scene {
    display: none;
  }

  /* Mobile two-card layout */
  .split-circle-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .sc-mobile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    gap: 1.25rem;
  }

  .sc-mobile-card:first-child {
    background: #eef5ec;
  }

  .sc-mobile-card:last-child {
    background: #f0ece6;
  }

  .sc-mobile-card img {
    width: clamp(160px, 55vw, 240px);
    height: auto;
    object-fit: cover;
    display: block;
  }

  .sc-mobile-card-text {
    text-align: center;
    max-width: 360px;
  }

  .sc-mobile-card-text .sc-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 6px;
  }

  .sc-mobile-card-text h2 {
    font-size: 1.25rem;
    font-family: "Poiret", serif;
    color: #042825;
    margin-bottom: 0.6rem;
  }

  .sc-mobile-card-text p {
    font-size: 0.88rem;
    color: #5a6b68;
    text-align: center;
    max-width: none;
    line-height: 1.7;
  }
}

/* Hide mobile cards on desktop */
.split-circle-mobile {
  display: none;
}

/* ── Service section ────────────────────────────────────────── */
.service-section {
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  gap: 3rem;
}

.service-section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* service intro h3 — taille revue à la hausse */
.service-section-intro h3 {
  font-family: "Poiret", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #222222;
  font-weight: 600;
  margin-top: 0.25rem;
}

.service-section-intro p {
  text-align: center;
  color: #222222;
}

.service-section-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.service-section-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 3rem;
}

/* Firmly assign 2/3 of the space to the text */
.service-section .service-section-item-description {
  flex: 0 0 calc(66.66% - 1.5rem);
  width: calc(66.66% - 1.5rem);
  max-width: none;
  min-width: 0;
}

/* service h4 — agrandi et couleur #222222 */
.service-section-item-description h4 {
  font-family: "Poiret", serif;
  font-size: clamp(1.05rem, 1.85vw, 1.35rem);
  color: #222222;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.service-section-item-description p {
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  line-height: 1.8;
}

.service-section-button-wrapper {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Firmly assign 1/3 of the space to the image */
.service-section .image-compare-wrapper {
  flex: 0 0 calc(33.33% - 1.5rem);
  width: calc(33.33% - 1.5rem);
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.end-text-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* Centers the paragraph block horizontally */
  padding: 2rem 1.25rem; /* Adds breathing room around the text */
}

.end-text-section p {
  text-align: center;
  font-style: italic;
  font-size: small;
}
/* ── Responsive ─────────────────────────────────────────────── */

@media screen and (max-width: 1024px) {
  .founder-citation {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  .expertise-section-content,
  .vallee-chevreuse-section,
  .service-section-item {
    flex-direction: column;
    align-items: center;
  }

  .service-section-item:nth-child(even) {
    flex-direction: column-reverse;
  }

  /* Allow elements to stack naturally and take full width on mobile */
  .service-section .service-section-item-description,
  .service-section .image-compare-wrapper {
    flex: 0 0 100%;
    width: 100%;
  }

  .vallee-chevreuse-section-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 650px) {
  .founder-container {
    padding-block: 2.5rem;
  }

  .founder-container-presentation {
    flex-direction: column;
    align-items: center;
  }

  .founder-image {
    order: 1;
  }

  .founder-content {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .founder-content h2 {
    text-align: center;
  }

  .founder-content h3 {
    text-align: center;
  }

  .founder-content p {
    text-align: left;
  }

  .founder-image img {
    width: clamp(160px, 58vw, 260px);
    height: clamp(160px, 58vw, 260px);
  }

  .founder-citation {
    display: none;
  }

  .projet-section-content {
    flex-direction: column;
  }

  .vallee-chevreuse-section {
    flex-direction: column;
  }

  p {
    text-align: left;
  }

  h1 {
    margin-block: 2rem 0.5rem;
    padding-inline: 1rem;
  }

  .service-section {
    gap: 2.5rem;
  }

  .service-section-content {
    gap: 3rem;
  }
}

@media screen and (max-width: 400px) {
  .vallee-chevreuse-liste li {
    font-size: 0.88rem;
  }

  .expertise-section li {
    font-size: 0.88rem;
  }
}
