/* ---------------------------
   STYLE MATERNELLE V2
   --------------------------- */

/* Arrière-plan global (dégradé discret) */
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #fdecea 0%, #fdf3e6 100%);
  color: #333;
  line-height: 1.6;
}
/* HERO SECTION - Styles par défaut (PC) */
.hero {
  background: url('../images/maternelle-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 6rem 1rem;
  color: #fff;
  text-align: left;
}

.hero {
  position: relative;
  min-height: 70vh;
  color: #fff;
  text-align: left;
  background: url('../images/maternelle-bg.jpg') center center / cover no-repeat;
  background-attachment: scroll; /* évite bug sur iOS */
  padding: 6rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 140, 160, 0.4); /* rose plus visible */
  backdrop-filter: blur(2px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 6rem 1rem;
  min-height: 70vh;
  color: #fff;
  text-align: left;

  /* Gradient + image par défaut pour PC */
  background-image: linear-gradient(135deg, rgba(0,102,204,0.7), rgba(156,39,176,0.6)),
                    url('../images/maternelle-bg.jpg');
  background-position: center center, center bottom;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed; /* PC uniquement */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,140,160,0.25); /* léger dégradé */
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* 📱 Version MOBILE / iOS/Android */
@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(135deg, rgba(0,102,204,0.7), rgba(185, 89, 202, 0.6)),
                      url('../images/maternelle-bg-mobile.jpg');
    background-position: center center, center bottom;
    background-size: auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, scroll !important; /* ⚡ force scroll sur iOS */
    padding: 4rem 1rem;
  }

  /* Supprimer le flou et dégradé superposé sur mobile */
  .hero::before {
    background: none;
    backdrop-filter: none;
  }
}

/* 🛠 Hack spécial iOS Safari */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll !important; /* désactive le fixed sur iOS */
    background-size: auto, cover !important;  /* force cover */
    background-position: center center, center bottom !important; /* force position */
  }
}



.hero .kicker {
  font-size: 1rem;
  text-transform: uppercase;
  color: #ffd700; /* jaune doux */
  font-weight: 600;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.2;
  color: #ffffff; /* blanc visible */
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: #f8f8f8; /* texte clair mais lisible */
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Points forts */
.hero-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-points li {
  background: linear-gradient(135deg, #ffa6c1, #ff6f91); /* rose visible */
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  transition: all .3s ease;
}

.hero-points li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Boutons */
.btn, .btn-outline {
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn {
  background: #ff4d80; /* rose vif mais lisible */
  color: #fff;
  border: none;
}

.btn:hover {
  background: #e63666;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: #e63666;
}

/* SECTIONS ALTERNÉES */
.section {
  padding: 4rem 1rem;
}

.section.alt {
  background: #fff8f2;
}

/* TITRES */
.section-head h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: #e63666; /* rose foncé */
}

.section-head p {
  color: #555; /* texte gris discret */
  max-width: 600px;
  margin: 0 auto;
}

/* GRID DE CARTES */
.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card.feat {
  background: #ffe3eb; /* rose très doux */
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.card.feat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, #ffb0c4, #ff6f91); /* léger dynamisme */
}

.card.feat .feat-emoji {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}

.card.feat h3 {
  color: #e63666; /* rose foncé */
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

/* CTA SECTION */
.section.center {
  text-align: center;
}

.section.center h2 {
  color: #e63666;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* FOOTER */
.site-footer {
  background: #e63666; /* rose foncé */
  color: #fff;
  padding: 2rem 1rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Ajout subtil de dynamisme sur le fond et cartes */
@keyframes subtleFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card.feat {
  animation: subtleFloat 8s ease-in-out infinite alternate;
}
