/* =====================================================
   BPRI — Plâtrerie, Rénovation & Isolation
   Design system: premium, architectural, quiet luxury
===================================================== */

:root {
  --charcoal: #141414;
  --charcoal-2: #1f1f1f;
  --cream: #f6f2ec;
  --paper: #faf8f4;
  --bronze: #b08757;
  --bronze-dark: #8d6a3e;
  --muted: #6b6b6b;
  --line: #e5e0d6;
  --line-dark: #2a2a2a;

  --radius: 2px;
  --max: 1280px;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

/* ========== UTILS ========== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.container--split-reverse > *:first-child { order: 2; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-left: 48px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 36px; height: 1px;
  background: var(--bronze);
}
.eyebrow--light { color: var(--bronze); }

/* ========== SECTION ========== */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section--light { background: var(--paper); }
.section--cream  { background: var(--cream); }
.section--dark   { background: var(--charcoal); color: #e9e4d9; }

.section__head { max-width: 760px; margin-bottom: clamp(50px, 6vw, 80px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { padding-left: 0; }
.section__head--center .eyebrow::before { display: none; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.section__title--light { color: #f6f2ec; }

.section__lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__lead--light { color: #bcb6a8; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--charcoal);
  color: #fff;
}
.btn--primary:hover { background: var(--bronze); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn--full { width: 100%; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.nav--solid {
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.nav__logo {
  width: 40px; height: 40px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 50%;
}
.nav__brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:hover { color: var(--bronze); }
.nav__cta {
  background: var(--bronze);
  padding: 12px 24px !important;
  border-radius: var(--radius);
  transition: all 0.25s;
}
.nav__cta:hover { background: #fff !important; color: var(--charcoal) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  width: 28px; height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--charcoal);
  padding: 20px 32px 32px;
  gap: 16px;
  border-top: 1px solid var(--line-dark);
}
.nav__mobile a {
  color: #fff;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile.is-open { display: flex; }
.nav__cta--mobile { background: var(--bronze); text-align: center; border-bottom: 0 !important; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.4) 0%, rgba(20,20,20,0.6) 60%, rgba(20,20,20,0.85) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 120px clamp(20px, 5vw, 40px) 80px;
}
.hero__kicker {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 48px;
  font-weight: 300;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px; height: 64px;
  overflow: hidden;
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 100%;
  background: rgba(255,255,255,0.4);
  animation: scrollLine 2.5s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ========== SERVICES ========== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 40px);
  transition: background 0.35s var(--ease);
  cursor: default;
  position: relative;
}
.service:hover { background: var(--cream); }
.service__num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--bronze);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}
.service__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--charcoal);
}
.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== PROJECTS / RÉALISATIONS ========== */
.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 110px);
}
.project__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  color: #f6f2ec;
  letter-spacing: -0.01em;
}
.project__meta {
  color: var(--bronze);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.project__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
}
.project__img {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
  grid-column: span 4;
  grid-row: span 1;
}
.project__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.35s;
  filter: brightness(0.95);
}
.project__img:hover img { transform: scale(1.04); filter: brightness(1.05); }
.project__img--tall { grid-row: span 2; }

/* Gallery staggered variant: on wider screens alternate size */
.project__img:nth-child(5n+1) { grid-column: span 5; }
.project__img:nth-child(5n+2) { grid-column: span 3; }
.project__img:nth-child(5n+3) { grid-column: span 4; }
.project__img:nth-child(5n+4) { grid-column: span 6; }
.project__img:nth-child(5n+5) { grid-column: span 6; }

/* ========== ABOUT ========== */
.about__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: visible;
}
.about__photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__photo img[src*="logo"] {
  width: 55%; height: auto;
  object-fit: contain;
  opacity: 0.25;
}
.about__photo-frame {
  position: absolute;
  inset: -20px -20px 20px 20px;
  border: 1px solid var(--bronze);
  z-index: -1;
}
.about__badge {
  position: absolute;
  bottom: -30px; right: -30px;
  background: var(--charcoal);
  color: #fff;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.about__badge-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--bronze);
}
.about__badge-num sup { font-size: 22px; }
.about__badge-text {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}
.about__content .eyebrow { padding-left: 48px; }
.about__lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--charcoal);
}
.about__content p { color: var(--muted); margin-bottom: 28px; }
.about__list { margin-bottom: 36px; }
.about__list li {
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--muted);
}
.about__list li:last-child { border-bottom: 1px solid var(--line); }
.about__list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 14px;
  color: var(--bronze);
  font-weight: 600;
}
.about__list strong { color: var(--charcoal); }

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  position: relative;
}
.step {
  position: relative;
  padding: 40px 28px 40px 0;
}
.step__num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--bronze);
  margin-bottom: 16px;
  font-weight: 500;
}
.step__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.step p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ========== CONTACT ========== */
.contact__content .eyebrow { padding-left: 48px; }
.contact__infos { margin-top: 32px; }
.contact__infos li {
  display: flex;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  gap: 20px;
  align-items: baseline;
}
.contact__infos li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact__infos span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  min-width: 100px;
  font-weight: 500;
}
.contact__infos a { color: #f6f2ec; transition: color 0.2s; }
.contact__infos a:hover { color: var(--bronze); }

.form {
  background: #1a1a1a;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line-dark);
}
.form__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: #f6f2ec;
  margin-bottom: 28px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__field--full { grid-column: 1 / -1; }
.form__field span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bcb6a8;
  font-weight: 500;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0f0f0f;
  border: 1px solid var(--line-dark);
  color: #f6f2ec;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
  border-radius: var(--radius);
  resize: vertical;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: #141414;
}
.form__field select { cursor: pointer; }
.form__field select option { background: #0f0f0f; color: #f6f2ec; }
.form__status {
  margin-top: 18px;
  font-size: 14px;
  min-height: 20px;
  color: var(--bronze);
}
.form__legal {
  margin-top: 20px;
  font-size: 12px;
  color: #7a7568;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
  background: #0c0c0c;
  color: #a8a294;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__brand img {
  width: 48px; height: 48px;
  background: #fff;
  padding: 4px;
  border-radius: 50%;
  object-fit: contain;
}
.footer__brand strong {
  display: block;
  color: #f6f2ec;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
}
.footer__brand p {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__nav a { font-size: 14px; transition: color 0.2s; }
.footer__nav a:hover { color: var(--bronze); }
.footer__legal {
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 50%;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--bronze);
}
.lightbox__counter {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .container--split { grid-template-columns: 1fr; }
  .container--split-reverse > *:first-child { order: 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .project__img, .project__img:nth-child(n) {
    grid-column: span 6;
  }
  .project__img--tall { grid-row: span 2; }
  .about__media { max-width: 440px; margin: 0 auto; }
  .about__badge { right: 0; bottom: -20px; padding: 20px 24px; }
  .about__badge-num { font-size: 42px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 640px) {
  .hero__content { padding-top: 100px; padding-bottom: 100px; }
  .hero__title { font-size: clamp(36px, 9vw, 52px); }
  .form__grid { grid-template-columns: 1fr; }
  .project__img, .project__img:nth-child(n) {
    grid-column: span 12;
    grid-row: span 1 !important;
  }
  .project__grid { grid-auto-rows: 220px; }
  .project__header { flex-direction: column; align-items: flex-start; }
  .btn { padding: 14px 24px; font-size: 13px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .about__badge { position: static; margin: -40px auto 0; width: fit-content; }
}

/* ========== A11Y / FOCUS ========== */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
