/* ================================================
   BESH CONSTRUCTION — Stylesheet
   Inspired by Airelles.com — Blanc & Anthracite
   ================================================ */

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

:root {
  --bg:           #ffffff;
  --text:         #1e140b;
  --muted:        #6b6b6b;
  --border:       #e4e4e4;
  --light:        #f7f7f5;
  --surface-dark: #142725;
  --accent:       #C3A667;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.4s ease, color 0.4s ease;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ---- UTILITIES ---- */
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding: 1.4rem 4vw;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.4s var(--ease);
}

.nav--scrolled .nav__logo { color: var(--text); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.nav__links a:hover { color: #fff; }

.nav--scrolled .nav__links a { color: var(--muted); }
.nav--scrolled .nav__links a:hover { color: var(--text); }

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: background 0.3s;
}

.nav--scrolled .nav__burger span { background: var(--text); }

/* Mobile menu open */
.nav--open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: var(--bg);
  padding: 1.5rem 4vw 2rem;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav--open .nav__links a { color: var(--muted); }


/* ================================================
   HERO
   ================================================ */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
  transform: translateZ(0);
}

.page-content {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
  margin-top: 100svh;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* Fondu au noir entre chaque boucle */
.hero__loop-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
  z-index: 1;
}

.hero__media--fading .hero__loop-fade {
  opacity: 0.75;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  animation: fadeUp 1s 0.4s both;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 2.8rem;
  animation: fadeUp 1s 0.6s both;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
  animation: fadeUp 1s 0.8s both;
}

.hero__cta:hover {
  background: rgba(195, 166, 103, 0.15);
  border-color: var(--accent);
  color: #fff;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.45);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}


/* ================================================
   INTRO / EDITORIAL
   ================================================ */
.intro {
  padding: 8rem 4vw;
  background: var(--bg);
}

.intro__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.intro__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.2rem;
}

.intro__text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  color: var(--text);
  border: none;
}


/* ================================================
   SERVICES
   ================================================ */
.services {
  padding: 8rem 0;
  background: var(--light);
}

.services__header {
  padding: 0 4vw;
  margin-bottom: 4rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 4vw;
  max-width: 1380px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 460px;
  display: flex;
  align-items: flex-end;
  cursor: default;
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

/* Image de fond */
.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}

/* Dégradé permanent — assure la lisibilité du titre */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.28) 52%,
    rgba(0,0,0,0.10) 100%
  );
  z-index: 1;
  transition: background 0.5s var(--ease);
}

/* Voile supplémentaire au hover pour faire ressortir le texte */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1;
  transition: background 0.5s var(--ease);
}

.service-card:hover::after {
  background: rgba(0,0,0,0.42);
}

.service-card:hover .service-card__bg {
  transform: scale(1.05);
  opacity: 0.55;
}

.service-card__content {
  position: relative;
  z-index: 2;
  padding: 1.8rem 2rem 2.2rem;
  color: #fff;
  width: 100%;
}

.service-card__num {
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.55rem;
}

.service-card__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

.service-card__desc {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-top: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s 0.06s var(--ease), transform 0.4s 0.06s var(--ease);
}

.service-card:hover .service-card__desc {
  opacity: 1;
  transform: none;
}


/* ================================================
   BANNER INTERSTITIELLE
   ================================================ */
.banner {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

.banner img {
  object-position: center 40%;
  transition: transform 0.1s linear;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.banner__quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  max-width: 760px;
  opacity: 0.92;
}


/* ================================================
   REALISATIONS
   ================================================ */
.realisations {
  padding: 8rem 0;
}

.realisations__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 4vw;
  margin-bottom: 4rem;
}

.realisations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 10px;
  padding: 0 4vw;
  max-width: 1380px;
  margin: 0 auto;
}

.real-item--large { grid-column: span 2; }

.real-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.real-item img {
  transition: transform 0.75s var(--ease);
}

.real-item:hover img { transform: scale(1.045); }

.real-item figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 100%);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s, transform 0.4s;
}

.real-item:hover figcaption {
  opacity: 1;
  transform: none;
}


/* ================================================
   CONTACT
   ================================================ */
.contact {
  padding: 8rem 0;
  background: var(--surface-dark);
}

.contact .section-label { color: rgba(255, 255, 255, 0.4); }
.contact .section-title  { color: #fff; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 7rem;
  align-items: start;
  padding: 0 4vw;
  max-width: 1380px;
  margin: 0 auto;
}

.contact__subtitle {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 320px;
}

.contact__info {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s, border-color 0.3s;
}

.contact__link:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.contact__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.7rem 0;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 300;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255, 255, 255, 0.7); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.22); }

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: #fff;
  color: #1a1a1a;
  border: none;
  padding: 1rem 2.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}

.btn-submit:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 2.2rem 4vw;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { height: 400px; }

  .realisations__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
  }

  .real-item--large { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }

  .intro { padding: 5rem 4vw; }
  .services { padding: 5rem 0; }
  .realisations { padding: 5rem 0; }
  .contact { padding: 5rem 0; }

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

  .service-card { height: 340px; }

  /* Pas de hover sur mobile : description toujours visible */
  .service-card__desc {
    opacity: 1;
    transform: none;
  }

  .realisations__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .real-item--large { grid-column: span 1; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .banner { height: 45vh; }
}


/* ================================================
   TOGGLE THÈME — icône dans la nav
   ================================================ */
.nav__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s, opacity 0.3s;
  line-height: 1;
}

.nav__theme-toggle:hover { color: #fff; opacity: 1; }

.nav--scrolled .nav__theme-toggle        { color: var(--muted); }
.nav--scrolled .nav__theme-toggle:hover  { color: var(--text); }

/* Labels texte — cachés sur desktop, visibles dans le dropdown */
.toggle-label { display: none; }

.icon-moon,
.icon-sun { display: inline-flex; align-items: center; gap: 0.55rem; }
.icon-sun  { display: none; }

/* Dropdown mobile : séparateur + icône + texte */
.nav--open .nav__theme-item {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: -0.25rem;
}

.nav--open .nav__theme-toggle {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  gap: 0;
  padding: 0;
}

.nav--open .nav__theme-toggle:hover { color: var(--text); opacity: 1; }

.nav--open .toggle-label { display: inline; }


/* ================================================
   DARK MODE
   ================================================ */
body.dark {
  --bg:           #0d1918;
  --text:         #ede6dc;
  --muted:        #8a7f74;
  --border:       #1e2d2b;
  --light:        #111f1d;
  --surface-dark: #091312;
  --accent:       #C3A667;
}

body.dark .page-content { background: var(--bg); }

/* Nav */
body.dark .nav--scrolled {
  background: rgba(17, 17, 17, 0.96);
}
body.dark .nav__logo { color: rgba(255,255,255,0.9); }
body.dark .nav--scrolled .nav__logo      { color: var(--text); }
body.dark .nav--scrolled .nav__links a   { color: var(--muted); }
body.dark .nav--scrolled .nav__links a:hover { color: var(--text); }
body.dark .nav--scrolled .nav__theme-toggle  { color: var(--muted); }
body.dark .nav--scrolled .nav__theme-toggle:hover { color: var(--text); }
body.dark .nav--scrolled .nav__burger span   { background: var(--text); }

/* Icônes thème */
body.dark .icon-moon { display: none; }
body.dark .icon-sun  { display: inline-flex; }

/* Dropdown mobile en dark mode */
body.dark .nav--open .nav__links {
  background: var(--light);
  border-color: var(--border);
}
body.dark .nav--open .nav__links a            { color: rgba(255,255,255,0.6); }
body.dark .nav--open .nav__links a:hover      { color: var(--text); }
body.dark .nav--open .nav__theme-item         { border-color: rgba(255,255,255,0.1); }
body.dark .nav--open .nav__theme-toggle       { color: rgba(255,255,255,0.45); }
body.dark .nav--open .nav__theme-toggle:hover { color: var(--text); }

/* Sections */
body.dark .intro   { background: var(--bg); }
body.dark .services { background: var(--light); }
/* service-card : les photos s'adaptent naturellement en dark mode */

/* Footer */
body.dark .footer { background: var(--bg); border-color: var(--border); }

/* ================================================
   SPLASH SCREEN
   ================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #142725;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash__logo {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

#splash.splash--hidden {
  opacity: 0;
  visibility: hidden;
}


/* ================================================
   PAGES SECONDAIRES — Header
   ================================================ */
.page-hero {
  padding: 11rem 4vw 5.5rem;
  background: var(--surface-dark);
  text-align: center;
}

.page-hero .section-label { color: var(--accent); }

.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.page-hero__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ================================================
   CATALOGUE
   ================================================ */
.catalogue {
  padding: 7rem 0 9rem;
  background: var(--bg);
}

.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
  padding: 0 4vw;
  max-width: 1380px;
  margin: 0 auto;
}

.cat-card { cursor: default; }

.cat-card__img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.3rem;
  background: var(--light);
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.cat-card:hover .cat-card__img img { transform: scale(1.04); }

.cat-card__num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.cat-card__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cat-card__desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ================================================
   ARCHITECTE D'INTÉRIEUR
   ================================================ */
.ai-intro {
  padding: 7rem 4vw;
  background: var(--bg);
}

.ai-intro__inner {
  max-width: 780px;
  margin: 0 auto;
}

.ai-intro__text {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.avant-apres {
  padding: 0 0 8rem;
  background: var(--bg);
}

.avant-apres__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.avant-apres__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.avant-apres__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.avant-apres__photo:hover img { transform: scale(1.03); }

.avant-apres__badge {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 39, 37, 0.72);
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(4px);
}

.avant-apres__badge--after { background: rgba(195, 166, 103, 0.85); color: #1e140b; }

.avant-apres__caption {
  padding: 0 4vw;
  max-width: 1380px;
  margin: 2rem auto 4rem;
}

.avant-apres__caption h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.avant-apres__caption p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.ai-cta {
  padding: 7rem 4vw;
  background: var(--surface-dark);
  text-align: center;
}

.ai-cta .section-label { color: var(--accent); }

.ai-cta__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}

.ai-cta__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
}

.ai-cta__btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.35s, color 0.35s;
}

.ai-cta__btn:hover {
  background: rgba(195, 166, 103, 0.15);
  color: #fff;
}


/* ================================================
   RESPONSIVE — Pages secondaires
   ================================================ */
@media (max-width: 1100px) {
  .catalogue__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .catalogue__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .avant-apres__item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .catalogue__grid { grid-template-columns: 1fr; }
}


/* ================================================
   BEFORE / AFTER SLIDER
   ================================================ */
.ba-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
  background: var(--light);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.ba-handle__line {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
}

.ba-handle__btn {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.ba-label {
  position: absolute;
  bottom: 1.2rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 39, 37, 0.72);
  padding: 0.38rem 0.85rem;
  backdrop-filter: blur(4px);
  z-index: 5;
  pointer-events: none;
}

.ba-label--before { left: 1.2rem; }
.ba-label--after  { right: 1.2rem; }

/* Avant en noir et blanc */
.ba-img--grayscale {
  filter: grayscale(100%);
}

/* Labels : cachés par défaut, visibles au survol */
.ba-label {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ba-slider--active .ba-label { opacity: 1; }


/* ================================================
   PROJETS — Section slider + info
   ================================================ */
.projets {
  padding: 2rem 0 9rem;
  background: var(--bg);
}

.projet {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 520px;
  border-top: 1px solid var(--border);
}

.projet--reverse {
  grid-template-columns: 360px 1fr;
}

.projet--reverse .projet__slider-wrap { order: 2; }
.projet--reverse .projet__info        { order: 1; }

.projet__slider-wrap {
  overflow: hidden;
}

.projet__slider-wrap .ba-slider {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

.projet__info {
  padding: 3.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--light);
  border-left: 1px solid var(--border);
}

.projet--reverse .projet__info {
  border-left: none;
  border-right: 1px solid var(--border);
}

.projet__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.projet__desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.projet__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.3s, gap 0.3s;
  align-self: flex-start;
}

.projet__link:hover {
  color: var(--accent);
  gap: 1rem;
}


/* ================================================
   TEXTE + ACCORDÉON — Page détail projet
   ================================================ */
.detail-text {
  padding: 4rem 4vw 5rem;
  border-bottom: 1px solid var(--border);
}

.detail-text__inner {
  max-width: 680px;
  margin: 0 auto;
}

.detail-text__body {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.detail-text__highlight {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  margin-top: 2rem;
  margin-bottom: 2.8rem;
}

.detail-toggle {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.detail-toggle summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  padding: 0.15rem 0;
  transition: color 0.3s;
}

.detail-toggle summary::-webkit-details-marker { display: none; }
.detail-toggle summary::marker { display: none; }
.detail-toggle summary:hover { color: var(--accent); }

.detail-toggle__icon {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

details[open] .detail-toggle__icon {
  transform: rotate(45deg);
}

.detail-toggle__list {
  list-style: none;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.detail-toggle__list li {
  font-size: 0.91rem;
  color: var(--text);
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}

.detail-toggle__list li:first-child {
  border-top: 1px solid var(--border);
  margin-top: 1.2rem;
}

.detail-toggle__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.82rem;
  top: 1.15rem;
}


/* ================================================
   PAGES DÉTAIL PROJET
   ================================================ */
.detail-back {
  padding: 1.8rem 4vw 0;
  max-width: 1380px;
  margin: 0 auto;
}

.detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, gap 0.3s;
}

.detail-back a:hover { color: var(--text); gap: 0.8rem; }

.detail-header {
  padding: 2.5rem 4vw 3.5rem;
  max-width: 1380px;
  margin: 0 auto;
}

.detail-header__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.detail-header__sub {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
}

.detail-gallery {
  padding: 0 4vw 9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 1380px;
  margin: 0 auto;
}

.detail-grid__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.detail-grid__item--wide {
  grid-column: span 2;
}

.detail-grid__item--hero {
  grid-column: span 3;
  aspect-ratio: 16 / 9;
}

.detail-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.detail-grid__item:hover img { transform: scale(1.03); }

.detail-grid__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 39, 37, 0.72);
  padding: 0.35rem 0.8rem;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.detail-grid__badge--after {
  background: rgba(195, 166, 103, 0.85);
  color: #1e140b;
}


/* ================================================
   RESPONSIVE — Slider + Projets + Détail
   ================================================ */
@media (max-width: 900px) {
  .projet,
  .projet--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .projet--reverse .projet__slider-wrap { order: 1; }
  .projet--reverse .projet__info        { order: 2; }

  .projet__slider-wrap .ba-slider {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .projet__info {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 2.5rem 4vw;
  }

  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid__item--hero { grid-column: span 2; aspect-ratio: 4/3; }
  .detail-grid__item--wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid__item--hero,
  .detail-grid__item--wide { grid-column: span 1; }
}

/* ── CATALOGUE PREVIEW (index) ──────────────────────────────────── */
.cat-preview {
  padding: 6rem 0;
  background: var(--light);
}
.dark .cat-preview { background: #111; }

.cat-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

.cat-preview__all {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity .2s;
}
.cat-preview__all:hover { opacity: .65; }

.cat-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-prev-card {
  display: block;
  color: var(--text);
}

.cat-prev-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.cat-prev-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.cat-prev-card:hover .cat-prev-card__img img {
  transform: scale(1.04);
}

.cat-prev-card__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: .3rem;
}

.cat-prev-card__sub {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cat-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-preview__header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .realisations__header { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
@media (max-width: 480px) {
  .cat-preview__grid { gap: 1rem; }
}

/* ── FORM FEEDBACK ──────────────────────────────────────────────── */
.form-feedback {
  font-family: var(--sans);
  font-size: .82rem;
  margin-top: 1rem;
  min-height: 1.2em;
}
.form-feedback--ok  { color: #4a7c59; }
.form-feedback--err { color: #b94040; }
.dark .form-feedback--ok  { color: #7ec89a; }
.dark .form-feedback--err { color: #e07070; }


/* ================================================
   ACTIVITÉS
   ================================================ */
.activites {
  padding: 8rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.activites__header {
  padding: 0 4vw;
  margin-bottom: 4.5rem;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
}

.activites__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 4vw;
  max-width: 1380px;
  margin: 0 auto;
}

.activites__col {
  padding: 0 2rem 4rem;
}

.activites__col:nth-child(4n+1) {
  padding-left: 0;
}

.activites__col:nth-child(4n) {
  padding-right: 0;
}

.activites__col:not(:nth-child(4n+1)) {
  border-left: 1px solid var(--border);
}

.activites__col-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.activites__list {
  list-style: none;
}

.activites__item {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  cursor: default;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  overflow: hidden;
}

.activites__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 55%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}

.activites__item:hover {
  color: var(--text);
  padding-left: 2rem;
}

.activites__item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

@media (max-width: 1024px) {
  .activites__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .activites__col {
    padding: 0 2rem 3rem;
  }

  .activites__col:nth-child(4n+1),
  .activites__col:nth-child(4n) {
    padding-left: 0;
    padding-right: 2rem;
    border-left: none;
  }

  .activites__col:nth-child(2n+1) {
    padding-left: 0;
    border-left: none;
  }

  .activites__col:nth-child(2n) {
    padding-right: 0;
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }
}

@media (max-width: 600px) {
  .activites__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .activites__col,
  .activites__col:nth-child(2n),
  .activites__col:nth-child(2n+1) {
    padding: 0 0 3rem;
    border-left: none;
  }
}


/* ================================================
   LIGHTBOX
   ================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 8, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb--open {
  opacity: 1;
  visibility: visible;
}

.lb__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.lb__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}

.lb__img--loading { opacity: 0; }

.lb__close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}
.lb__close:hover { color: #fff; }

.lb__prev,
.lb__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lb__prev { left: 1.4rem; }
.lb__next { right: 1.4rem; }

.lb__prev:hover,
.lb__next:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.lb__prev--hidden,
.lb__next--hidden { visibility: hidden; }

/* Curseur zoom sur les images lightboxables */
[data-lb] { cursor: zoom-in; }