*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #322F2F;
  --blue: #0834D1;
  --pink: #FC61C2;
}

html, body {
  height: 100%;
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: white;
  overflow-x: hidden;
}

/* Background color overlay (changes on nav hover) */
#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  transition: background 0.3s ease-in-out;
}

/* Noise texture */
#noise {
  position: fixed;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  background-image: url('noise.png');
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Page layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .avatar {
    width: 5rem;
    height: 5rem;
  }
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ── Split buttons ── */
.btn-split {
  position: relative;
  display: inline-block;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.125em;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.btn-split::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: 10;
}

.btn-split-bonjour::before     { background: var(--blue); }
.btn-split-inspiration::before { background: var(--pink); }

.btn-split > span {
  display: block;
  clip-path: polygon(0 50%, 0 100%, 100% 100%, 100% 50%);
  transition: transform 0.3s ease;
}

.btn-split::after {
  content: attr(data-hover);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  clip-path: polygon(0 0, 0 50%, 100% 50%, 100% 0);
  transition: transform 0.3s ease;
}

.btn-split:hover::before,
.btn-split:focus::before {
  transform: scale(1);
}

.btn-split:hover > span,
.btn-split:focus > span {
  transform: translateX(3px) skewX(10deg);
}

.btn-split:hover::after,
.btn-split:focus::after {
  transform: translateX(-5px) skewX(10deg);
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .hero {
    padding: 0 1.5rem;
  }
}

.hero-inner {
  max-width: 56rem;
  width: 100%;
}

h1 {
  font-weight: 300;
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.5;
}

h1 strong {
  font-weight: 500;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
    line-height: 4.5rem;
  }
}

.hero-sub {
  color: white;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero-sub {
    font-size: 2rem;
    line-height: 3rem;
  }
}

/* ── Footer ── */
footer {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 20;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
