/* Variables de couleurs */
:root {
  --beige: #f8ddc8;
  --green: #93c9ad;
  --gray: #776e6b;
  --white: #ffffff;
  --dark-green: #7bb597;
  --light-beige: #fdf6f0;
  --light-gray: #f5f5f5;
}

/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibilité - Focus visible */
*:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: transparent;
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Amélioration des contrastes pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Animations globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: var(--green);
}

.navbar i {
  font-size: 0.9rem;
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--gray);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover .hamburger-line {
  background-color: var(--green);
}

/* Animation du hamburger */
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero amélioré */
.hero {
  background: linear-gradient(
      135deg,
      rgba(147, 201, 173, 0.3),
      rgba(248, 221, 200, 0.3)
    ),
    url("images/background.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* Espace pour la navbar */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(119, 110, 107, 0.6),
    rgba(147, 201, 173, 0.4)
  );
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease-out;
  max-width: 600px;
  margin: 0 20px;
}

.title {
  font-family: "Allura", cursive;
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.profile-pic-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0 auto;
  justify-content: center;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Boutons améliorés */
.btn {
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(147, 201, 173, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 201, 173, 0.4);
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  border-color: rgba(255, 255, 255, 0.5);
}

/* Sections améliorées */
.section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.section-title {
  font-family: "Allura", cursive;
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--green);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--beige));
  border-radius: 2px;
}

.section-intro {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
  font-weight: 300;
}

.beige {
  background: linear-gradient(135deg, var(--beige), var(--light-beige));
}

.white {
  background: var(--white);
}

/* Listes améliorées */
.list {
  list-style: none;
  font-size: 1.1rem;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.list li {
  margin: 15px 0;
  padding: 10px 0;
  position: relative;
  padding-left: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.list li i {
  color: var(--green);
  font-size: 1.2rem;
  min-width: 20px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step {
  background: rgba(255, 255, 255, 0.7);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--gray);
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-simple {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.price-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 201, 173, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.price-item:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.price-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.price-details {
  flex: 1;
}

.price-details h3 {
  color: var(--gray);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 10px;
}

.price-details p {
  color: var(--gray);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.note {
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 5px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Contact Info */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 2rem;
  color: var(--green);
  min-width: 40px;
}

.contact-item h3 {
  color: var(--gray);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray);
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Footer amélioré */
.footer {
  background: linear-gradient(135deg, var(--gray), #5a4f4c);
  color: var(--white);
  padding: 50px 20px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--green);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sections avec image - alternance gauche/droite */
.with-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 0;
}

.with-image .section-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: left;
  max-width: 1600px;
  margin: 0 auto;
  gap: 0;
  width: 100%;
}

/* Section content pour les sections sans image */
.section .section-content {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.with-image .image {
  flex: 1 1 50%;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.with-image .image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.with-image .image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: rgba(147, 201, 173, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.with-image .content {
  flex: 1 1 50%;
  padding: 60px;
  animation: fadeInUp 0.8s ease-out;
}

/* Alternance gauche/droite */
.with-image:nth-of-type(even) .section-content {
  flex-direction: row-reverse;
}

.with-image:nth-of-type(even) .content {
  animation: fadeInLeft 0.8s ease-out;
}

.with-image:nth-of-type(odd) .content {
  animation: fadeInRight 0.8s ease-out;
}

/* Responsive amélioré */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  /* Menu hamburger en mobile */
  .navbar nav {
    justify-content: flex-end;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(147, 201, 173, 0.2);
    font-size: 1.1rem;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: 80px; /* Espace normal pour la navbar compacte */
  }

  .hero-overlay {
    padding: 30px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .with-image {
    flex-direction: column !important;
    text-align: center;
  }

  .with-image .section-content {
    flex-direction: column !important;
    text-align: center;
  }

  /* Annuler l'alternance en mobile */
  .with-image:nth-of-type(even) .section-content {
    flex-direction: column !important;
  }

  .with-image .content {
    padding: 40px 20px;
  }

  .with-image .image img {
    height: 300px;
  }

  .list {
    text-align: center;
  }

  .list li {
    padding-left: 0;
    padding-top: 30px;
    flex-direction: column;
    gap: 10px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-simple {
    max-width: 100%;
  }

  .price-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .price-icon {
    align-self: center;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .hero {
    padding-top: 80px; /* Espace normal pour la navbar compacte */
  }

  .section {
    padding: 60px 15px;
  }

  .with-image .content {
    padding: 30px 15px;
  }

  .nav-menu {
    width: 100%;
    right: -100%;
  }

  .navbar a {
    font-size: 0.9rem;
    gap: 5px;
  }
}
