@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* ===== HERO SECTION ===== */
.sleep-hero {
  position: relative;
  background-color: #1F4227;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 100px;
}

.sleep-hero__bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.sleep-hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 60% 30%, rgba(198,161,68,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(60,111,49,0.25) 0%, transparent 60%);
  z-index: 1;
}

/* Decorative moon motif */
.sleep-hero__moon {
  position: absolute;
  top: 60px;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #C6A144 0%, #a07c30 60%, transparent 100%);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}

.sleep-hero__moon::after {
  content: '';
  position: absolute;
  top: 8px; left: 20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: #1F4227;
  opacity: 1;
}

.sleep-hero__leaf1, .sleep-hero__leaf2, .sleep-hero__leaf3 {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
}

.sleep-hero__leaf1 { top: 10%; left: 2%; width: 160px; }
.sleep-hero__leaf2 { bottom: 15%; right: 3%; width: 130px; }
.sleep-hero__leaf3 { top: 40%; left: -30px; width: 100px; }

.sleep-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.sleep-hero__breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #C6A144;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.sleep-hero__breadcrumb a {
  color: #C6A144;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sleep-hero__breadcrumb a:hover { opacity: 0.75; }

.sleep-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #E6D9B6;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.sleep-hero__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(230,217,182,0.82);
  font-weight: 500;
  margin-bottom: 22px;
  font-style: italic;
}

.sleep-hero__intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #E6D9B6;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 36px;
}

.sleep-hero__cta {
  display: inline-block;
  background: #C6A144;
  color: #1F4227;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(198,161,68,0.35);
  letter-spacing: 0.02em;
}

.sleep-hero__cta:hover {
  background: #d9b354;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(198,161,68,0.5);
}

/* Wave divider */
.sleep-hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.sleep-hero__wave svg {
  display: block;
  width: 100%;
}

/* ===== SECTION 2 — LONGEVITE ===== */
.sleep-longevite {
  background: #E6D9B6;
  padding: 90px 24px;
}

.sleep-longevite__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sleep-longevite__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sleep-stat-box {
  background: #1F4227;
  border-radius: 16px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sleep-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31,66,39,0.25);
}

.sleep-stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: #C6A144;
  border-radius: 16px 0 0 16px;
}

.sleep-stat-box__number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #C6A144;
  line-height: 1;
  margin-bottom: 10px;
}

.sleep-stat-box__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #E6D9B6;
  line-height: 1.65;
}

.sleep-longevite__content {}

.sleep-longevite__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #1F4227;
  margin-bottom: 28px;
  line-height: 1.25;
}

.sleep-longevite__heading span {
  color: #C6A144;
}

.sleep-longevite__text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #1F4227;
  line-height: 1.8;
  margin-bottom: 28px;
}

.sleep-longevite__img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 32px rgba(31,66,39,0.15);
  margin-top: 20px;
  height: 220px;
  object-fit: cover;
}

/* ===== SECTION 3 — PHASES ===== */
.sleep-phases {
  background: #3C6F31;
  padding: 90px 24px;
}

.sleep-phases__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sleep-phases__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #E6D9B6;
  text-align: center;
  margin-bottom: 50px;
}

.sleep-phases__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.sleep-phase-card {
  background: #1F4227;
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #C6A144;
}

.sleep-phase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.sleep-phase-card__number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(198,161,68,0.2);
  line-height: 1;
  margin-bottom: 8px;
}

.sleep-phase-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #C6A144;
  margin-bottom: 12px;
}

.sleep-phase-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #E6D9B6;
  line-height: 1.7;
}

.sleep-phases__infobox {
  background: #C6A144;
  border-radius: 16px;
  padding: 24px 36px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1F4227;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(198,161,68,0.3);
}

.sleep-phases__infobox span {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* ===== SECTION 4 — ENNEMIS ===== */
.sleep-enemies {
  background: #E6D9B6;
  padding: 90px 24px;
}

.sleep-enemies__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sleep-enemies__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #1F4227;
  text-align: center;
  margin-bottom: 50px;
}

.sleep-enemies__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.sleep-enemy-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(31,66,39,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 4px solid #C6A144;
}

.sleep-enemy-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(31,66,39,0.14);
}

.sleep-enemy-item__icon {
  font-size: 1.6rem;
  color: #C6A144;
  flex-shrink: 0;
  margin-top: 2px;
}

.sleep-enemy-item__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: #1F4227;
  line-height: 1.7;
  font-weight: 500;
}

/* ===== SECTION 5 — ROUTINE ===== */
.sleep-routine {
  background: #1F4227;
  padding: 90px 24px;
  position: relative;
  overflow: hidden;
}

.sleep-routine__deco {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,161,68,0.06) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
  z-index: 0;
}

.sleep-routine__inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sleep-routine__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #E6D9B6;
  text-align: center;
  margin-bottom: 56px;
}

.sleep-routine__timeline {
  position: relative;
  padding-left: 60px;
}

.sleep-routine__timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #C6A144, rgba(198,161,68,0.15));
  border-radius: 2px;
}

.sleep-routine-step {
  position: relative;
  margin-bottom: 36px;
  padding: 28px 28px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(198,161,68,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.sleep-routine-step:last-child { margin-bottom: 0; }

.sleep-routine-step:hover {
  background: rgba(198,161,68,0.08);
  transform: translateX(4px);
}

.sleep-routine-step__dot {
  position: absolute;
  left: -48px;
  top: 28px;
  width: 36px;
  height: 36px;
  background: #C6A144;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1F4227;
  z-index: 1;
  border: 3px solid #1F4227;
  box-shadow: 0 0 0 2px #C6A144;
}

.sleep-routine-step__time {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #C6A144;
  margin-bottom: 8px;
}

.sleep-routine-step__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  color: #E6D9B6;
  line-height: 1.7;
}

/* ===== SECTION 6 — ENVIRONNEMENT ===== */
.sleep-env {
  background: #3C6F31;
  padding: 90px 24px;
}

.sleep-env__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sleep-env__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #E6D9B6;
  text-align: center;
  margin-bottom: 50px;
}

.sleep-env__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sleep-env-tile {
  background: #E6D9B6;
  border-radius: 18px;
  padding: 36px 24px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sleep-env-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.2);
}

.sleep-env-tile__icon {
  font-size: 2.4rem;
  color: #C6A144;
  margin-bottom: 16px;
  display: block;
}

.sleep-env-tile__text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1F4227;
  line-height: 1.5;
}

/* ===== SECTION 7 — CTA INTER-PILIERS ===== */
.sleep-cta-piliers {
  background: #E6D9B6;
  padding: 90px 24px;
}

.sleep-cta-piliers__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.sleep-cta-piliers__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #1F4227;
  margin-bottom: 12px;
}

.sleep-cta-piliers__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #1F4227;
  opacity: 0.75;
  margin-bottom: 44px;
}

.sleep-pilier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sleep-pilier-card {
  background: #1F4227;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: left;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.sleep-pilier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: #C6A144;
}

.sleep-pilier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31,66,39,0.25);
}

.sleep-pilier-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.sleep-pilier-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #C6A144;
  margin-bottom: 10px;
}

.sleep-pilier-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #E6D9B6;
  line-height: 1.65;
}

.sleep-pilier-card__arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #C6A144;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s;
}

.sleep-pilier-card:hover .sleep-pilier-card__arrow {
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sleep-longevite__inner { grid-template-columns: 1fr; gap: 40px; }
  .sleep-phases__cards { grid-template-columns: repeat(2, 1fr); }
  .sleep-env__grid { grid-template-columns: repeat(2, 1fr); }
  .sleep-pilier-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sleep-enemies__list { grid-template-columns: 1fr; }
  .sleep-phases__cards { grid-template-columns: 1fr 1fr; }
  .sleep-pilier-cards { grid-template-columns: 1fr; }
  .sleep-env__grid { grid-template-columns: repeat(2, 1fr); }
  .sleep-routine__timeline { padding-left: 50px; }
  .sleep-routine-step__dot { left: -38px; width: 28px; height: 28px; font-size: 0.65rem; }
  .sleep-routine__timeline::before { left: 14px; }
}

@media (max-width: 520px) {
  .sleep-phases__cards { grid-template-columns: 1fr; }
  .sleep-env__grid { grid-template-columns: 1fr; }
  .sleep-longevite__inner { padding: 0; }
  .sleep-hero { padding: 100px 18px 80px; }
}

/* Scroll animation */
.sleep-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sleep-reveal.sleep-visible {
  opacity: 1;
  transform: translateY(0);
}