/* ============================================
   Page Carbet - Hero cinéma + galerie masonry
   ============================================ */

/* --- Hero cinémato --- */
.carbet-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--blanc);
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.carbet-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carbet-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carbet-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 22, 24, 0.85) 0%,
    rgba(26, 22, 20, 0.6) 60%,
    rgba(26, 22, 20, 0.3) 100%
  );
}

.carbet-hero .container {
  position: relative;
  z-index: 2;
}

.carbet-hero-content {
  max-width: 640px;
}

.carbet-hero-content h1 {
  color: var(--blanc);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 1rem 0 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.carbet-hero-content h1 em {
  color: var(--jaune);
  font-style: normal;
}

.carbet-hero-content .hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.carbet-hero-content .kicker {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .carbet-hero {
    min-height: 500px;
  }
  .carbet-hero-content .hero-actions {
    flex-direction: column;
  }
  .carbet-hero-content .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Équipements --- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.equip-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s ease;
}

.equip-card:hover {
  transform: translateY(-3px);
  border-color: var(--rouge);
  box-shadow: 0 10px 24px rgba(200, 35, 43, 0.08);
}

.equip-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.equip-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.equip-card p {
  font-size: 0.9rem;
  color: var(--terre);
  margin: 0;
  line-height: 1.5;
}

/* --- Galerie masonry --- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 220px;
  gap: 10px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--creme-fonce);
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(26, 22, 20, 0.25);
}

.gallery-item::before {
  content: '\ea1e';
  font-family: 'tabler-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 48px;
  height: 48px;
  background: var(--rouge);
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

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

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

@media (max-width: 640px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.span-2 {
    grid-column: span 2;
  }
  .gallery-item.tall {
    grid-row: span 2;
  }
}

/* --- CTA final --- */
.carbet-cta {
  background: var(--dark);
  color: var(--blanc);
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.carbet-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--jaune) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.carbet-cta > * {
  position: relative;
  z-index: 1;
}


