/* De But en Bois — Accueil */

/* ============ SECTION HEAD ============ */
.section-head {
  margin-bottom: var(--sp-16);
}

.section-head h2 { color: var(--c-bleu); }

.section-lead {
  font-size: 1.0625rem;
  color: var(--c-texte-doux);
  margin-top: var(--sp-4);
  max-width: 52ch;
  line-height: 1.65;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.link-voir-tout {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-brun-fonce);
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s;
  padding-bottom: var(--sp-1);
}
.link-voir-tout:hover { gap: var(--sp-3); }
.link-voir-tout svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 650px;
  margin-top: 96px;
  display: flex;
  align-items: center;
  padding: var(--sp-16) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    oklch(0.13 0.045 215 / 0.95) 0%,
    oklch(0.18 0.05 216 / 0.82) 55%,
    oklch(0.22 0.05 220 / 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.15s forwards;
}

.hero-eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--c-brun);
  flex-shrink: 0;
}

.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-brun);
}

.hero-brand {
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--c-blanc);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.22s forwards;
}

.hero h1 {
  color: var(--c-blanc);
  max-width: 15ch;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeUp 0.65s ease-out 0.3s forwards;
}

.hero-desc {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: rgba(255 255 255 / 0.75);
  max-width: 50ch;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.65s ease-out 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  opacity: 0;
  animation: fadeUp 0.65s ease-out 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  animation: fadeUp 0.6s ease-out 1s forwards;
}

.hero-scroll span {
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.4);
}

.hero-scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255 255 255 / 0.5), transparent);
  animation: scrollPulse 2s ease-in-out 1.2s infinite;
}

/* ============ SERVICES ============ */
.section-services {
  padding: var(--sp-24) 0;
  background: var(--c-blanc);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-ligne);
  border-left: 1px solid var(--c-ligne);
}

.service-item {
  padding: var(--sp-8) var(--sp-6);
  border-right: 1px solid var(--c-ligne);
  border-bottom: 1px solid var(--c-ligne);
  transition: background 0.2s;
}

.service-item:hover { background: oklch(0.97 0.006 53); }

.service-icon {
  width: 36px;
  height: 36px;
  color: var(--c-brun);
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}

.service-item h3 {
  color: var(--c-bleu);
  margin-bottom: var(--sp-2);
  font-size: 1rem;
}

.service-item p {
  font-size: 0.875rem;
  color: var(--c-texte-doux);
  line-height: 1.55;
  max-width: 22ch;
}

/* ============ REALISATIONS APERCU ============ */
.section-realisations {
  padding: var(--sp-24) 0;
}

.realisations-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 260px 260px;
  gap: var(--sp-3);
}

.real-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-ligne);
}

.real-item:first-child { grid-row: span 2; }

.real-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.real-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(to top, rgba(0 36 48 / 0.75) 0%, transparent 100%);
  color: var(--c-blanc);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.real-item:hover .real-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============ A PROPOS ============ */
.section-apropos {
  padding: var(--sp-24) 0;
  background: var(--c-blanc);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.apropos-content h2 {
  color: var(--c-bleu);
  margin-bottom: var(--sp-6);
}

.apropos-content p {
  font-size: 1.0625rem;
  color: var(--c-texte-doux);
  line-height: 1.75;
  max-width: 52ch;
}

.apropos-content p + p { margin-top: var(--sp-4); }

.apropos-stats {
  display: flex;
  gap: var(--sp-10);
  margin-top: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--c-ligne);
}

.stat-nb {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-brun-fonce);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--c-texte-doux);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

.apropos-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.apropos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apropos-image-badge {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  background: var(--c-blanc);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0 36 48 / 0.15);
}

.apropos-image-badge strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--c-brun);
  line-height: 1;
}

.apropos-image-badge span {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-texte-doux);
  margin-top: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .apropos-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .apropos-image { aspect-ratio: 16/9; order: -1; }
  .apropos-content p { max-width: unset; }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 420px;
    margin-top: 70px;
    padding: var(--sp-12) 0;
    align-items: flex-start;
  }
  .hero-content { padding-top: var(--sp-6); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .realisations-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 200px 200px;
  }
  .real-item:first-child { grid-row: span 1; }
  .real-caption { opacity: 1; transform: none; }

  .section-head-row { flex-direction: column; align-items: flex-start; }
  .apropos-stats { gap: var(--sp-6); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-desc, .hero-actions, .hero-scroll {
    opacity: 1;
    animation: none;
  }
  .hero-scroll-bar { animation: none; }
  .real-item img { transition: none; }
}
