/* .section-background {
  background-image: url('images/fond-emotion.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: white;
  padding: 50px 0;
} */


/* Reset / base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  color: #333;
    background: url('images/fond-emotion.jpg') center/cover no-repeat fixed;
    background-color: #f4f4f4; /* Couleur de secours */
}

/* Container utility class */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background: #f7f7f7;
}
header .logo a {
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
}
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #0077c2;
}

/* HERO */
 .hero-section {
  background: url('images/groupe personnes.png') center/cover no-repeat;
  height: 80vh;         
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;            
  position: relative;
    opacity: 0;  /* Commence invisible */
  transform: scale(1);  /* État initial */
  transition: opacity 1.5s ease-in-out, transform 2s ease-out;
}
.hero-section.visible {
  opacity: 1; /* Devient visible avec un effet progressif */
  transform: scale(1.05); /* Zoom léger */
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* overlay */
}
.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 1em;
}
.btn-primary {
  display: inline-block;
  background: #0077c2;
  color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary:hover {
  background: #005da0;
}

/* ABOUT SECTION */
.about-section {
  padding: 3em 0;
  background-color: #FFE1E8;
}
.about-section h2 {
  text-align: center;
  margin-bottom: 2em;
  font-size: 2em;
  color: #0077c2;
}
.about-section p {
  max-width: 800px;
  margin: 0.5em auto;
  font-size: 1.1em;
  line-height: 1.6;
}

.community-rules-section {
  padding: 3em 0;
  color: #fff; 
  background: url('images/ambiance.png') center/cover no-repeat;
  opacity: 0;  /* Commence invisible */
  transform: scale(1);  /* État initial */
  transition: opacity 1.5s ease-in-out, transform 2s ease-out;
}

.community-rules-section.visible {
  opacity: 1; /* Devient visible avec un effet progressif */
   transform: scale(1.05); /* Zoom léger */
}

.rules-title {
  font-size: 2em;
  margin-bottom: 2em;
  text-align: center; /* Titre centré */
  color: #fff; /* Écriture en blanc */
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  max-width: 900px;
  margin: 0 auto; /* centrer la grille */
}

.rule-item {
  background-color: #3A3A3A; 
  border-radius: 8px;
  padding: 1.5em;
  text-align: left;
  position: relative;
  max-width: 250px;
  height: 250px;    /* impose une hauteur fixe */
  overflow: auto;   /* ou scroll, au cas où le texte serait plus long */
}

.rule-number {
  display: inline-block;
  background-color: #555;  /* Couleur du carré ou rectangle derrière le numéro */
  color: #fff;
  font-weight: 700;
  padding: 0.5em 0.8em;
  margin-bottom: 1em;
  border-radius: 4px;
}

.rule-item h3 {
  margin-bottom: 0.5em;
}

.rule-item p {
  margin: 0;
  line-height: 1.4;
}

/* SERVICES SECTION */
.services-section {
  padding: 3em 0;
  background-color: #FFE1E8;
}
.services-section h2 {
  text-align: center;
  margin-bottom: 2em;
  font-size: 2em;
  color: #0077c2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}
.service-item {
  background: #fff;
  border-radius: 5px;
  padding: 2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.service-item h3 {
  margin-bottom: 1em;
  color: #0077c2;
}

/*********************************************
  SECTION PARTAGER SON HISTOIRE
*********************************************/
.share-story-section {
  background: url('images/fond clair.png') center/cover no-repeat;
  padding: 3em 0;
  text-align: center;         /* centrer le texte et les boutons */
    opacity: 0;  /* Commence invisible */
  transform: scale(1);  /* État initial */
  transition: opacity 1.5s ease-in-out, transform 2s ease-out;
}
.share-story-section.visible {
    opacity: 1; /* Devient visible avec un effet progressif */
   transform: scale(1.05); /* Zoom léger */
}

.share-story-section h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.share-story-section p {
  max-width: 600px;
  margin: 0 auto 2em auto;   /* centre le paragraphe et ajoute un écart en bas */
  font-size: 1.1em;
  line-height: 1.4;
}

/* Conteneur pour les deux boutons */
.share-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;    /* centre les boutons */
}

/* Exemple de styles de boutons (btn-primary & btn-secondary) */
.btn-primary {
  display: inline-block;
  background: #0077c2;
  color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #005da0;
}

.btn-secondary {
  display: inline-block;
  background: #0077c2;
  color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #005da0;
}

/* TESTIMONIALS SECTION */
 .testimonials-section {
  background: url('images/canape.png') center/cover no-repeat;
  padding: 3em 0;
  opacity: 0;  /* Commence invisible */
  transform: scale(1);  /* État initial */
  transition: opacity 1.5s ease-in-out, transform 2s ease-out;
}
.testimonials-section.visible {
  opacity: 1; /* Devient visible avec un effet progressif */
    transform: scale(1.05); /* Zoom léger */
}
.testimonials-section h2 {
  text-align: center;
  margin-bottom: 2em;
  font-size: 2em;
  color: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
}
.testimonial-item {
  background: #f7f7f7;
  padding: 2em;
  border-radius: 5px;
  position: relative;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1em;
}
.testimonial-author {
  font-weight: 600;
  text-align: right;
  display: block;
}

/* CONTACT SECTION */
.contact-section {
  background-color: #FFE1E8;
  padding: 3em 0;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 2em;
  color: #0077c2;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* FOOTER */
footer {
  background: #0077c2;
  color: #fff;
  padding: 2em 0;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1em;
}
.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.footer-links li a:hover {
  text-decoration: underline;
}


.emoji-btn {
    display: inline-block;
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s;
}

.emoji-btn:hover {
    background: #e0e0e0;
}

/* Responsivité basique */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

 .fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
} 
  .fade-in:nth-child(1) { transition-delay: 0.2s; }
.fade-in:nth-child(2) { transition-delay: 0.4s; }
.fade-in:nth-child(3) { transition-delay: 0.6s; }

}



.histoires-page {
    background: none !important; /* Supprime toute image de fond */
    background-color: #FFF0F5 !important; /* Applique un fond rose pastel */
    min-height: 100vh; /* Assure que tout l'écran ait le fond rose */
    padding: 20px; /* Ajoute un peu d’espace pour respirer */
}

@media (max-width: 768px) {
  .container {
    width: 95%; /* Plus d'espace sur les petits écrans */
  }
  .hero-content h1 {
    font-size: 2em; /* Réduire la taille des titres */
  }
  .btn-primary, .btn-secondary {
    width: 100%; /* Boutons plus larges sur mobile */
    text-align: center;
  }
}

.history-page {
    background-color: #FAF3F3; /* Fond doux */
    color: #333;
    min-height: 100vh;
}


.history-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.history-section h1 {
    text-align: center;
    color: #0077c2;
    margin-bottom: 1em;
}

.history-section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1em;
}