/* ============================================================
   Beauf SDB — main stylesheet
   Palette : blanc cassé / beige / anthracite / accent doré
   ============================================================ */

:root {
  --c-bg:        #FAF8F5;
  --c-cream:     #F1EADE;
  --c-sand:      #E8DDD0;
  --c-ink:       #1F1B16;
  --c-ink-soft:  #4A4138;
  --c-mute:      #8A8073;
  --c-gold:      #B8936A;
  --c-gold-soft: #D4B896;
  --c-line:      rgba(31, 27, 22, 0.12);
  --c-dark:      #161311;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  --radius: 4px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

em { font-style: italic; }

/* ---------- Typo helpers ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--cream { background: var(--c-cream); }

.section__header {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section__title em { color: var(--c-gold); font-style: italic; }
.section__title--light { color: var(--c-bg); }
.section__lead {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--c-gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--gold {
  background: var(--c-gold);
  color: var(--c-bg);
}
.btn--gold:hover {
  background: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(31, 27, 22, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--c-bg);
  border-color: rgba(250, 248, 245, 0.6);
}
.btn--ghost:hover {
  background: var(--c-bg);
  color: var(--c-ink);
}
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-ink);
}
.header:not(.is-scrolled) .logo,
.header:not(.is-scrolled) .nav a { color: var(--c-bg); }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  border-radius: 50%;
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 2.25rem;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--c-gold); }
.nav a:hover::after { width: 100%; }

.header__cta { padding: 0.7rem 1.2rem; font-size: 0.75rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px; height: 28px;
  align-items: flex-end;
  justify-content: center;
}
.burger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--c-ink);
  transition: all 0.3s var(--ease);
}
.header:not(.is-scrolled) .burger span { background: var(--c-bg); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--c-bg);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 19, 17, 0.55) 0%,
    rgba(22, 19, 17, 0.35) 40%,
    rgba(22, 19, 17, 0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  max-width: 900px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}
.hero__title .italic { font-style: italic; color: var(--c-gold-soft); }
.reveal-word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
  color: rgba(250, 248, 245, 0.85);
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(250,248,245,0) 0%, var(--c-gold-soft) 100%);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0; right: 0;
  height: 50%;
  background: var(--c-gold-soft);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--c-sand);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.service-card { }
.service-card__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.service-card:hover .service-card__media img {
  transform: scale(1.06);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--c-ink-soft);
  line-height: 1.65;
}

/* ============================================================
   TIMELINE / PROCESSUS
   ============================================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  width: 1px;
  background: var(--c-gold);
  height: var(--timeline-progress, 0%);
  transition: height 0.1s linear;
}
.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -3rem;
  top: 0.4rem;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  transition: all 0.5s var(--ease);
}
.timeline__item.is-reached .timeline__dot {
  background: var(--c-gold);
  border-color: var(--c-gold);
  box-shadow: 0 0 0 6px rgba(184, 147, 106, 0.15);
}
.timeline__step {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--c-gold);
  letter-spacing: 0.1em;
}
.timeline__content h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0.4rem 0 0.6rem;
}
.timeline__content p {
  color: var(--c-ink-soft);
  line-height: 1.65;
}

/* ============================================================
   GALLERY / RÉALISATIONS
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 1.25rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(22,19,17,0.7) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item figcaption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--c-bg);
  font-family: var(--serif);
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease);
}
.gallery__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
}
.about__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  will-change: transform;
}
.about__content .section__title { margin-bottom: 1.5rem; }
.about__content p {
  color: var(--c-ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.75;
  font-size: 1.05rem;
}
.about__signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}
.about__signatures strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.about__signatures span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--c-mute);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  background: var(--c-cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--c-gold);
  line-height: 1;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.testimonial footer strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.testimonial footer span {
  font-size: 0.8rem;
  color: var(--c-mute);
  letter-spacing: 0.05em;
}

/* ============================================================
   ZONE
   ============================================================ */
.zone__cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.zone__cities li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: 0.95rem;
}
.zone__cities li:last-child { border-bottom: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--c-dark);
  color: var(--c-bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__intro .section__title { text-align: left; margin-bottom: 1.5rem; }
.contact__intro p {
  color: rgba(250, 248, 245, 0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.contact__info {
  display: grid;
  gap: 1.25rem;
}
.contact__info li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.08);
  align-items: baseline;
}
.contact__info span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.contact__info a {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--c-bg);
  transition: color 0.3s var(--ease);
}
.contact__info a[href]:hover { color: var(--c-gold-soft); }

.contact__form {
  background: rgba(250, 248, 245, 0.04);
  padding: 2.5rem;
  border: 1px solid rgba(250, 248, 245, 0.08);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.25rem;
}
.contact__form label {
  display: grid;
  gap: 0.5rem;
}
.contact__form label span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.contact__form input,
.contact__form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 248, 245, 0.2);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--c-bg);
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--c-gold);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(250, 248, 245, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-dark);
  color: rgba(250, 248, 245, 0.6);
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--c-bg);
}
.footer__legal {
  font-size: 0.8rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.8rem;
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--c-gold-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --pad-x: 1.25rem; }

  .section { padding: 4.5rem 0; }
  .section__header { margin-bottom: 2.5rem; }

  .header__inner { padding-top: 1rem; padding-bottom: 1rem; }
  .logo { font-size: 1.2rem; }
  .logo__mark { width: 34px; height: 34px; font-size: 1.1rem; }

  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--c-bg);
    padding: 5.5rem 2rem 2rem;
    gap: 0.25rem;
    z-index: 90;
    overflow-y: auto;
  }
  .header.menu-open .nav.is-open a {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--c-ink);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--c-line);
  }
  .nav.is-open a::after { display: none; }

  /* Quand le menu est ouvert, forcer le header en mode "clair" (texte foncé) */
  .header.menu-open .logo,
  .header.menu-open .nav a { color: var(--c-ink); }
  .header.menu-open .burger span { background: var(--c-ink); }
  /* Logo et burger doivent passer au-dessus de l'overlay du menu */
  .header.menu-open .logo,
  .header.menu-open .burger { position: relative; z-index: 100; }

  .hero__content { padding-top: 5rem; }
  .hero__title { margin-bottom: 1.25rem; }
  .hero__subtitle { margin-bottom: 1.75rem; }
  .hero__scroll { bottom: 1.5rem; }
  .hero__scroll-line { height: 36px; }

  .services__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .gallery__item figcaption { opacity: 1; transform: translateY(0); }

  .about__grid { grid-template-columns: 1fr; }
  .about__signatures { grid-template-columns: 1fr; gap: 1.25rem; }

  .testimonial { padding: 2rem 1.5rem; }
  .testimonial p { font-size: 1.1rem; }

  .timeline { padding-left: 2.25rem; }
  .timeline::before, .timeline::after { left: 7px; }
  .timeline__dot { left: -2.25rem; width: 17px; height: 17px; }
  .timeline__item { padding-bottom: 2.25rem; }
  .timeline__content h3 { font-size: 1.5rem; }

  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__form { padding: 1.5rem; }
  .contact__info li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-bottom: 1rem;
  }
  .contact__info a { font-size: 1.05rem; }

  .zone__cities { grid-template-columns: 1fr; max-width: 320px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }

  .footer { padding: 2rem 0; }
  .footer__inner { justify-content: center; text-align: center; gap: 1.25rem; }
  .footer__legal { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.25rem, 11vw, 3rem); }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .btn { padding: 0.95rem 1.2rem; font-size: 0.8rem; }

  .section__title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .stat__number { font-size: clamp(2rem, 11vw, 3rem); }

  .testimonial { padding: 1.75rem 1.25rem; }
  .testimonial::before { font-size: 4rem; left: 1rem; }

  .service-card__media { aspect-ratio: 3/2; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
