/**
 * Sections & Layout Styles
 * @package Karden_Avenir
 * @version 1.0.0
 */

/*  SECTIONS GÉNÉRALES  */
.section {
  position: relative;
  overflow: hidden;
}

.section.light {
  background: var(--white);
}

.section.gray {
  background: var(--gray);
}

.section.dark {
  background: #061226;
  color: #fff;
}

.section.dark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(41, 199, 218, 0.06), transparent 60%);
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: var(--section-padding) var(--container-padding);
  width: 100%;
}

/*  SPLIT LAYOUT  */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(35px, 5vw, 70px);
  align-items: center;
}

.split-text {
  max-width: 500px;
}

.split-text p {
  margin-bottom: 14px;
}

/*  SPLIT VISUAL - IMAGES  */
.split-visual {
  position: relative;
  width: 100%;
}

.split-visual .main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.6s ease;
}

.split-visual:hover .main-img {
  transform: scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}

.split-visual .floating-img {
  position: absolute;
  width: 48%;
  bottom: -30px;
  left: -30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  transition: all 0.6s ease;
  z-index: 2;
}

.split-layout:hover .floating-img {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

/*  SPLIT VISUAL LAYERED  */
.split-visual.layered {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.split-visual.layered img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: all 0.6s ease;
}

.split-visual.layered:hover img {
  transform: scale(1.02);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.32);
}

.split-visual.layered .glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at top left, rgba(41, 199, 218, 0.2), transparent 60%);
  filter: blur(30px);
  z-index: 1;
}