/* 
 * Styles pour améliorer la séparation des sections
 * Utilise des classes préfixées ys- (Yin Shi) pour éviter les conflits
 * Ne réinitialise pas les styles d'Astra
 */

/* Variables de couleurs du site */
:root {
  --ys-green-100: #f0fdf4;
  --ys-green-200: #dcfce7;
  --ys-green-300: #bbf7d0;
  --ys-green-400: #86efac;
  --ys-green-500: #4ade80;
  --ys-green-600: #22c55e; /* Couleur principale du site */
  --ys-green-700: #16a34a;
  --ys-green-800: #15803d;
  --ys-green-900: #166534;
  
  --ys-section-spacing: 6rem; /* Espacement vertical entre les sections */
}

/* Styles de base pour les sections */
.ys-section {
  padding-top: var(--ys-section-spacing);
  padding-bottom: var(--ys-section-spacing);
  position: relative;
  overflow: hidden;
}

/* Section avec fond blanc */
.ys-section--white {
  background-color: #ffffff;
}

/* Section avec fond vert clair */
.ys-section--light-green {
  background-color: var(--ys-green-100);
  background-image: linear-gradient(135deg, var(--ys-green-100) 0%, var(--ys-green-200) 100%);
}

/* Section avec fond vert moyen */
.ys-section--medium-green {
  background-color: var(--ys-green-200);
  background-image: linear-gradient(135deg, var(--ys-green-200) 0%, var(--ys-green-300) 100%);
  color: var(--ys-green-900);
}

/* Section avec fond vert foncé */
.ys-section--dark-green {
  background-color: var(--ys-green-800);
  background-image: linear-gradient(135deg, var(--ys-green-800) 0%, var(--ys-green-900) 100%);
  color: white;
}

/* Séparateurs de section */
.ys-section-divider {
  height: 6rem;
  position: relative;
  z-index: 1;
}

/* Séparateur ondulé */
.ys-section-divider--wave {
  margin-top: -6rem;
  height: 6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}

/* Séparateur diagonal */
.ys-section-divider--diagonal {
  margin-top: -6rem;
  height: 6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}

/* Séparateur arrondi */
.ys-section-divider--rounded {
  margin-top: -6rem;
  height: 6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M600,112.77C268.63,112.77,0,65.52,0,7.23V120H1200V7.23C1200,65.52,931.37,112.77,600,112.77Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}

/* Effet de profondeur pour les sections */
.ys-section--depth {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* Décoration de fond subtile */
.ys-section--pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Amélioration des titres de section */
.ys-section__title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.ys-section__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--ys-green-600);
  border-radius: 2px;
}

/* Adaptation pour les sections foncées */
.ys-section--dark-green .ys-section__title::after {
  background: white;
}
