:root {
  --bg-page: #FFF7F2;
  --bg-section: #FFEDEA;
  --bg-surface: #FFFFFF;

  --primary: #E86B7B;
  --primary-dark: #C84A5D;
  --secondary: #2E8190;
  --accent: #8BC4A3;

  --text-main: #22252B;
  --text-soft: #4C515A;
  --text-muted: #8B9099;

  --border-soft: #E3DAD2;
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.1);
}

/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* STRUCTURE */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 218, 210, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe6ef, var(--primary));
  display: inline-block;
}

.logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: lowercase;
  color: var(--text-main);
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-soft);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.15s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  gap: 0.2rem;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-btn.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 107, 123, 0.08);
}

/* UI ELEMENTS DEFAULT STATE (Mobile only) */
.menu-toggle,
.nav-overlay {
  display: none;
}

/* HERO */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.1rem;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.hero-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  min-height: 230px;
}

.hero-blob {
  position: absolute;
  inset: 10% 0 0 10%;
  background: radial-gradient(circle at top, #ffe2e9, #ffd2c2);
  border-radius: 40% 60% 45% 55%;
  opacity: 0.95;
}

.hero-girl-card {
  position: relative;
  margin: 2.5rem auto 0;
  max-width: 270px;
  background: var(--bg-surface);
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  background: rgba(46, 129, 144, 0.08);
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

/* SECTIONS */
.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--bg-section);
}

.section-title {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.section-subtitle {
  margin: 0 0 2rem;
  color: var(--text-soft);
  max-width: 40rem;
}

.section-header {
  margin-bottom: 2rem;
}

/* GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* CARDS */
.card {
  background: var(--bg-surface);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-choice {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

/* AGE CARDS */
.age-card .age-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: rgba(232, 107, 123, 0.1);
  color: var(--primary);
  margin: 0 0 0.5rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(227, 218, 210, 0.7);
  padding: 1.5rem 0 2rem;
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  margin-top: 0.5rem;
  display: block;
}

.footer-link:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    /* Alignement centré avec le bouton menu */
  }

  /* Hamburger Menu Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 50;
    /* Au-dessus du menu */
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 99px;
    transition: all 0.3s ease;
  }

  /* État actif du bouton (croix) */
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Navigation Drawer */
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: #fff;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    align-items: flex-start;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-soft);
  }

  /* Overlay pour le menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  font-size: 1.2rem;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* SCROLL MARGIN for Fixed Header */
section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
}