/* ===== IMPORTS GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  /* Couleurs LRM */
  --primary-color: #043e32;
  --secondary-color: #c59531;
  --white-color: #FFFFFF;
  --light-gray: #F4F4F4;
  --dark-gray: #333333;
  --text-color: #086666;
  
  /* Typographie */
  --title-font: 'Poppins', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Tailles */
  --header-height: 80px;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== RESET ET BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITAIRES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--title-font);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--title-font);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn-white {
  background: var(--white-color);
  color: var(--primary-color);
}

.btn-white:hover {
  background: var(--light-gray);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  height: var(--header-height);
}

.header.scrolled {
  background: var(--white-color);
  box-shadow: var(--box-shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav__logo {
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav__link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 122, 51, 0.7), rgba(0, 122, 51, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
}

.hero__content h1 {
  font-family: var(--title-font);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero__content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ===== CARDS ===== */
.card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__content {
  padding: 25px;
}

.card__title {
  font-family: var(--title-font);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card__text {
  color: #666;
  margin-bottom: 15px;
}

.card__price {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* ===== GRILLES ===== */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== SERVICES ===== */
.service {
  text-align: center;
  padding: 30px 20px;
}

.service__icon {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.service:hover .service__icon {
  background: var(--primary-color);
  color: var(--white-color);
  transform: scale(1.1);
}

.service__title {
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__section h3 {
  font-family: var(--title-font);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer__section p,
.footer__section a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  transition: var(--transition);
}

.footer__section a:hover {
  color: var(--secondary-color);
}

.footer__bottom {
  border-top: 1px solid #555;
  padding-top: 20px;
  text-align: center;
  color: #999;
}

/* ===== BOUTON WHATSAPP FLOTTANT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E;
}

/* ===== BOUTON RETOUR EN HAUT ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  text-align: center;
}

.loader__logo {
  font-family: var(--title-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.loader__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
  }

  .nav__menu.show {
    left: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .back-to-top {
    bottom: 85px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__content p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .grid {
    gap: 20px;
  }
}

/* ===== PACK SELECTION (Residence) ===== */
.pack-selection {
  padding: 70px 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.pack-selection h2 {
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.pack-group {
  margin-top: 24px;
}

.pack-group h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.pack-selection .packs-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pack-selection label.service-option {
  display: block;
  position: relative;
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid #e9e9e9;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pack-selection label.service-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.pack-selection label.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-selection label.service-option .service-content {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 14px;
  align-items: center;
  border-radius: calc(var(--border-radius) - 2px);
  padding: 10px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.pack-selection label.service-option input[type="radio"]:checked + .service-content {
  border-color: var(--secondary-color);
  background: linear-gradient(180deg, rgba(197,149,49,0.10), rgba(255,255,255,0));
  box-shadow: 0 10px 28px rgba(197,149,49,0.18);
}

.pack-selection .service-content h4 {
  font-family: var(--title-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.pack-selection .service-content .pack-desc {
  color: #666;
  font-size: 0.95rem;
  margin-top: 6px;
}

.pack-selection .pack-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.pack-selection .pack-note {
  color: #777;
  font-size: 0.95rem;
  margin-top: 10px;
}

@media screen and (max-width: 600px) {
  .pack-selection {
    padding: 50px 0;
  }
  .pack-selection h2 {
    font-size: 1.6rem;
  }
  .pack-group h3 {
    font-size: 1.05rem;
  }
}