/* ============================================
   LE CAFARD — Editorial Asymmetric Layout
   ============================================ */

/* —— Layering Base —— */
.layer-base {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.scrollable .view__content {
  position: relative; 
  height: auto;
  min-height: 100vh;
  padding-bottom: 0; /* Handled by footer */
}

/* —— Editorial Sections —— */
.editorial-section {
  padding: 80px 5%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
@media (min-width: 768px) {
  .editorial-section { padding: 120px 10%; gap: 120px; }
}

/* Color Themes */
.theme-dark {
  background-color: var(--color-chocolate);
  color: var(--color-cream);
}
.theme-light {
  background-color: var(--color-cream);
  color: var(--color-chocolate);
}

/* Background giant typography */
.ed-bg-text {
  position: absolute;
  top: 65%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem); /* Really huge for LE MENU */
  line-height: 0.8;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -2px;
}

.theme-dark .ed-bg-text { color: var(--color-cream); opacity: 0.03; }
.theme-light .ed-bg-text { color: var(--color-chocolate); opacity: 0.05; }

/* —— The Hero Layout (Magazine Style) —— */
.ed-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 5%;
}

@media (min-width: 900px) {
  .ed-hero { padding: 0 10%; }
}

.ed-hero-bg-text {
  position: absolute;
  top: 50%; left: -2%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 15vw; /* Slightly larger since it's now split into two lines */
  line-height: 0.8;
  color: var(--color-chocolate);
  opacity: 0.06;
  z-index: 10;
  pointer-events: none;
  font-weight: 900;
  letter-spacing: -2px;
  text-align: left;
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 900px) {
  .ed-hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
  }
}

.ed-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ed-hero-logo {
  width: 120px;
  margin-bottom: var(--space-xl);
  filter: drop-shadow(0 10px 20px rgba(43,27,21,0.1));
}

.ed-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.1;
  color: var(--color-chocolate);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.ed-hero-subtitle {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.ed-hero-image-wrapper {
  position: relative;
}

.ed-hero-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-arch);
  box-shadow: 0 30px 60px rgba(43,27,21,0.2);
}

.ed-hero-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background-color: var(--color-terracotta);
  color: var(--color-cream);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.2;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* —— Asymmetrical Grid —— */
.ed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .ed-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
  }
  .ed-grid.reverse .ed-grid-text { order: 2; }
  .ed-grid.reverse .ed-grid-img  { order: 1; }
}

/* Image with Organic Shape */
.ed-organic-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  animation: blob-morph 8s ease-in-out infinite alternate;
}
.theme-dark .ed-organic-img {
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
@keyframes blob-morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
}

/* Text Block Typography */
.ed-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.theme-dark .ed-title { color: var(--color-terracotta); }
.theme-light .ed-title { color: var(--color-chocolate-mid); }

.ed-text {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Glassmorphism Overlapping Box (used when text overlaps an image) */
.ed-glass-box {
  background: rgba(247, 243, 235, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(43,27,21,0.08);
  margin-top: -80px; /* Overlap on mobile */
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .ed-glass-box { margin-top: 0; margin-left: -100px; }
  .ed-grid.reverse .ed-glass-box { margin-left: 0; margin-right: -100px; }
}
.theme-dark .ed-glass-box {
  background: rgba(43, 27, 21, 0.85);
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  color: var(--color-cream);
}

/* —— Sticky Scroll Section —— */
.ed-sticky-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .ed-sticky-section {
    flex-direction: row;
    align-items: flex-start;
  }
  .ed-sticky-sidebar {
    width: 40%;
    position: sticky;
    top: 150px;
  }
  .ed-sticky-content {
    width: 60%;
    padding-left: 60px;
  }
}

/* Menu items */
.ed-menu-block {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(43,27,21,0.1);
}
.theme-dark .ed-menu-block { border-color: rgba(255,255,255,0.1); }
.ed-menu-block:last-child { border-bottom: none; }

.ed-menu-block h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  margin-bottom: 10px;
  color: inherit;
}
.ed-menu-block p {
  font-family: var(--font-accent);
  font-size: var(--fs-xl);
  opacity: 0.8;
  margin-bottom: 20px;
}
.ed-menu-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ed-menu-list li {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  padding: 8px 0;
  display: flex;
  align-items: center;
}
.ed-menu-list li::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background-color: currentColor;
  margin-right: 15px;
  opacity: 0.5;
}

/* Standard Images */
.ed-std-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Infos Footer */
.ed-footer {
  text-align: center;
  padding-bottom: 180px; /* Space for the bottom nav */
  padding-top: 80px;
}
.ed-footer-logo {
  width: 80px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.btn-ed {
  display: inline-block;
  padding: 15px 40px;
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}
.theme-light .btn-ed {
  background: var(--color-chocolate);
  color: var(--color-cream);
}
.theme-dark .btn-ed {
  background: var(--color-cream);
  color: var(--color-chocolate);
}
.btn-ed:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
