html {
  scroll-behavior: smooth;
}

:root {
  --color-sand: #FFF9F2;
  --color-terracotta: #D45B2E;
  --color-saffron: #EAA833;
  --color-cumin: #9C411F;
  --color-gold: #F4C430;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-sand);
  color: var(--color-cumin);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   BANDES FLOUES (HAUT & BAS)
   ========================================================================== */
body::before, body::after {
  content: "";
  position: fixed;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body::before {
  top: 0;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, transparent 40%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, transparent 40%, black 100%);
}

body::after {
  bottom: 0;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, transparent 40%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, transparent 40%, black 100%);
}

/* ==========================================================================
   MENU LATÉRAL GAUCHE & ANIMATIONS
   ========================================================================== */
.menu-checkbox {
  display: none;
}

.menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 22px;
  z-index: 30;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background-color: var(--color-cumin);
  z-index: 20;
  transition: all 0.3s ease-in-out;
  padding-top: 80px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar-title {
  color: var(--color-gold);
  font-size: 1.5rem;
  padding: 0 2rem 1rem 2rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px dashed var(--color-saffron);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.sidebar ul li a {
  display: block;
  padding: 0.8rem 2rem;
  color: var(--color-sand);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.sidebar ul li a:hover {
  background-color: var(--color-terracotta);
  color: white;
  padding-left: 2.5rem;
}

.page-content {
  transition: all 0.3s ease-in-out;
  width: 100%;
}

/* Actions à l'activation de la case (quand le menu est ouvert) */
.menu-checkbox:checked ~ .sidebar {
  left: 0;
}

.menu-checkbox:checked ~ .page-content {
  transform: translateX(260px);
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--color-sand);
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-sand);
}

/* ==========================================================================
   CONTENU STRUCTUREL
   ========================================================================== */
header {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-saffron));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-bottom: 5px solid var(--color-gold);
}

header h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .baseline {
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.95;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

section {
  background: white;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(156, 65, 31, 0.06);
  border-left: 3px solid var(--color-terracotta);
  animation: fadeInUp 0.8s ease-out both;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }

section h2 {
  color: var(--color-terracotta);
  border-bottom: 2px dashed var(--color-saffron);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.team {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.team li {
  background: var(--color-sand);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  border: 1px solid var(--color-saffron);
  color: var(--color-terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.team li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(234, 168, 51, 0.3);
  background-color: var(--color-saffron);
  color: white;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-cumin);
  color: var(--color-sand);
  font-size: 0.9rem;
  margin-top: 4rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
