@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary-color: #e096a3;     /* Rose from new logo */
  --secondary-color: #f7d7cf;   /* Light peach from new logo */
  --secondary-hover: #e5b9b1;
  --accent-color: #f0aeb8;      /* Slightly lighter rose for accents */
  --bg-alt: #fcf1ef;            /* Very light pink/peach for alt background */
  --text-dark: #3a2b2d;
  --text-light: #7a6366;
  --bg-light: #ffffff;
  --bg-white: #ffffff;
  --nav-height: 90px;
  --radius-blob: 60% 40% 50% 50% / 50% 50% 50% 50%;
  --radius-blob-alt: 40% 60% 70% 30% / 40% 50% 60% 50%;
  --radius: 20px;
  --shadow: 0 15px 35px rgba(224, 150, 163, 0.15); /* Updated shadow to match theme */
  --transition: all 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Sections */
section {
  padding: 100px 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.btn-contact {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800 !important;
}

.btn-contact:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px) scale(1.02);
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    flex-direction: column;
    background: var(--bg-light);
    width: 100%;
    height: calc(100vh - var(--nav-height));
    gap: 0;
    align-items: center;
    padding-top: 40px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

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

  .nav-links a {
    display: block;
    padding: 20px 30px;
    font-size: 1.3rem;
  }

  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Organic blobs in background of hero */
.hero-blob-1 {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent-color);
  opacity: 0.15;
  border-radius: var(--radius-blob);
  z-index: 1;
  animation: blobFlow 20s infinite alternate;
}

.hero-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  opacity: 0.15;
  border-radius: var(--radius-blob-alt);
  z-index: 1;
  animation: blobFlow 15s infinite alternate-reverse;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
  z-index: 2;
  position: relative;
}

.hero-text {
  flex: 1;
  animation: slideUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  line-height: 1.1;
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--secondary-color);
  opacity: 0.3;
  border-radius: 10px;
  z-index: -1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 35px;
  font-weight: 600;
}

.hero-img-wrap {
  flex: 1;
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow);
  border: 15px solid white;
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
}

.btn-primary {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 25px rgba(247, 171, 13, 0.4);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--bg-white);
  border: 2px solid var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(247, 171, 13, 0.5);
}

/* Sections Global */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  position: relative;
}

.svg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(99%);
  z-index: 2;
}

.svg-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* Services */
.services-section {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--bg-light);
  padding: 50px 30px;
  border-radius: 40px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-15px);
  background: var(--accent-color);
  color: white;
  box-shadow: 0 20px 40px rgba(136, 183, 174, 0.3);
}

.service-card:hover h3, .service-card:hover p, .service-card:hover .service-icon {
  color: white;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

/* Equipe */
.equipe-section {
  background: var(--accent-color);
  color: white;
}

.equipe-section .section-title {
  color: white;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.membre-card {
  background: white;
  border-radius: 40px;
  padding: 15px;
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.membre-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center 5%;
  border-radius: 30px;
  background: #e2e8f0;
}

.membre-info {
  padding: 30px 20px 20px;
  text-align: center;
}

.membre-role {
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 1rem;
}

.membre-info ul {
  text-align: left;
  color: var(--text-light);
  font-weight: 600;
}

.membre-info ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}

.membre-info ul li::before {
  content: '✿';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Galerie - Carrousels */
.galerie-section {
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 15px 0;
  width: 100%;
  scrollbar-width: none; /* Cache la barre de défilement (Firefox) */
}

.slider-track::-webkit-scrollbar {
  display: none; /* Cache la barre de défilement (Chrome/Safari) */
}

.slider-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 images par ligne sur grand écran */
  scroll-snap-align: start;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  background: #f1f5f9;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, border-radius 0.4s ease;
}

.slider-slide img:hover {
  transform: scale(1.06);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: white;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev-btn {
  left: -25px;
}

.slider-btn.next-btn {
  right: -25px;
}

@media (max-width: 992px) {
  .slider-slide {
    flex: 0 0 calc(50% - 10px); /* 2 images par ligne sur tablette */
  }
}

@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  .slider-btn.prev-btn {
    left: -10px;
  }
  .slider-btn.next-btn {
    right: -10px;
  }
}

@media (max-width: 576px) {
  .slider-slide {
    flex: 0 0 100%; /* 1 image par ligne sur mobile */
  }
}

/* FAQ */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 25px 35px;
  background: var(--bg-white);
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.faq-question:hover {
  border-color: var(--secondary-color);
  transform: translateX(10px);
}

.faq-question.active {
  background: var(--primary-color);
  color: white;
  border-radius: 30px 30px 0 0;
}

.faq-question i {
  transition: var(--transition);
  color: var(--secondary-color);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: var(--bg-white);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.03);
}

.faq-answer p {
  padding: 30px 35px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonials-section {
  background: var(--primary-color);
  color: var(--bg-white);
}

.testimonials-section .section-title {
  color: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 30px;
  border-bottom-right-radius: 5px;
  position: relative;
  color: var(--text-dark);
}

.testimonial-card p {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Contact */
.contact-section {
  background: var(--primary-color);
  color: white;
}

.contact-section .section-title, .contact-section h4 {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  padding: 50px;
  background: rgba(255,255,255,0.05);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}

.contact-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-right: 25px;
  background: rgba(255,255,255,0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-item h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item p, .contact-item a {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

.horaires {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px dashed rgba(255,255,255,0.2);
}

.horaires ul li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 1.1rem;
}

.map-container {
  height: 500px;
  border-radius: var(--radius-blob);
  overflow: hidden;
  border: 10px solid white;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

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

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blobFlow {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%; }
  50% { transform: scale(1.05) translate(20px, 20px) rotate(10deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { transform: scale(0.95) translate(-20px, -20px) rotate(-10deg); border-radius: 50% 50% 30% 70% / 60% 40% 40% 60%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Horaires Tweaks */
@media (max-width: 768px) {
  .horaires ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 15px;
  }
  .horaires ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .horaires ul li span:last-child {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--secondary-color);
  }
}
