/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #2d8659;
  --primary-dark: #1f5d3f;
  --primary-light: #e8f5f0;
  --secondary-color: #4a9d7c;
  --accent-color: #f59e0b;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-alt: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease;
}

.section__subtitle {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__description {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background-color: var(--primary-light);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition);
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  display: block;
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--bg-white);
  padding: 4rem 2rem;
  transition: right 0.4s ease;
  box-shadow: var(--shadow-xl);
}

.nav__menu.show-menu {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav__link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.125rem;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

.hero__container {
  display: grid;
  gap: 3rem;
}

.hero__content {
  animation: fadeInLeft 0.8s ease;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image {
  position: relative;
  animation: fadeInRight 0.8s ease;
}

.hero__image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

/* ===== NUTRITION SECTION ===== */
.nutrition__grid {
  display: grid;
  gap: 2rem;
}

.nutrition-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.nutrition-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.nutrition-card__image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.nutrition-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nutrition-card:hover .nutrition-card__image img {
  transform: scale(1.1);
}

.nutrition-card__content {
  padding: 2rem;
}

.nutrition-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.nutrition-card__text {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== CONSEILS SECTION ===== */
.conseils__grid {
  display: grid;
  gap: 2rem;
}

.conseil-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.conseil-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.conseil-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.conseil-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.conseil-card__text {
  color: var(--text-gray);
  line-height: 1.8;
}

/* ===== RESSOURCES SECTION ===== */
.ressources__grid {
  display: grid;
  gap: 2rem;
}

.ressource-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: block;
  animation: fadeInUp 0.6s ease;
}

.ressource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.ressource-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ressource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ressource-card:hover .ressource-card__image img {
  transform: scale(1.1);
}

.ressource-card__content {
  padding: 2rem;
}

.ressource-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.ressource-card__text {
  color: var(--text-gray);
  line-height: 1.8;
}

/* ===== BIEN-ÊTRE SECTION ===== */
.bien-etre__grid {
  display: grid;
  gap: 2rem;
}

.bien-etre-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.bien-etre-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.bien-etre-card__image {
  height: 200px;
  overflow: hidden;
}

.bien-etre-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bien-etre-card:hover .bien-etre-card__image img {
  transform: scale(1.1);
}

.bien-etre-card__content {
  padding: 2rem;
}

.bien-etre-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.bien-etre-card__text {
  color: var(--text-gray);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 3rem 0 1.5rem;
}

.footer__content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__text {
  color: var(--text-light);
  line-height: 1.8;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE TABLET ===== */
@media screen and (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .nutrition__grid,
  .conseils__grid,
  .ressources__grid,
  .bien-etre__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RESPONSIVE DESKTOP ===== */
@media screen and (min-width: 1024px) {
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 2.5rem;
  }

  .nav__link {
    font-size: 1rem;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .hero__title {
    font-size: 4rem;
  }

  .section {
    padding: 8rem 0;
  }

  .section__title {
    font-size: 3rem;
  }

  .nutrition__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conseils__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ressources__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bien-etre__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
