/* --- VARIABLES ET COULEURS --- */
:root {
  --primary-green: #4E8B80;
  --primary-green-dark: #21867c;
  --text-color: #333;
  --bg-color: #fff;
  --bg-color-section: #fff;
  --light-bg: #fafafa;
  --shadow-color: rgba(0,0,0,0.1);
  --shadow-hover: rgba(0,0,0,0.15);
}

/* --- GLOBAL --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--primary-green);
}

a:focus {
  outline: 2px solid var(--primary-green-dark);
  outline-offset: 2px;
}

/* --- BOUTONS --- */
html {
  scroll-behavior: smooth;
}

.btn {
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 12px 25px;
}

.btn:hover, .btn:focus {
  background-color: var(--primary-green-dark);
  transform: scale(1.02);
}

/* --- HEADER --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--bg-color);
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 10px;
}

.header .logo img {
  height: 120px;
  width: auto;
  display: block;
}


/* Header sticky et ombre */
.header {
  position: sticky;  /* reste en haut */
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

/* Ombre dynamique au scroll */
.header.scrolled {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}


/* --- HERO --- */

.hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* centre le sujet important de l'image */
  filter: brightness(70%);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* TEXTE DU HERO - centré par position absolue */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

/* TITRE */
.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation-delay: 0.3s;
}

/* PARAGRAPHE */
.hero-text p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #f5f5f5;
  animation-delay: 0.6s;
}

/* BOUTON */
.hero-text .btn {
  display: inline-block;
  background-color: var(--primary-green);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;

  /* animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 1s forwards;
  animation-delay: 0.9s;

  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-text .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Animation clé */
@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#goto::before {
  content: "";
  display: block;
  height: 120px; /* hauteur de ton header ou offset */
  margin-top: -80px; /* décale la section vers le haut */
}

/* --- SECTION INTRODUCTIVE --- */
.welcome-section {
  background-color: var(--light-bg);
  padding: 60px 20px;
  
}

.welcome-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.welcome-section h2 {
  font-size: 2rem;
  color: var(--primary-green-dark);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 auto;
  text-align: justify;
}

/* --- FOOTER --- */
.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 2px solid var(--primary-green);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p,
.footer-col ul {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  margin-top: 10px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

/* Liens du footer */
.footer-col ul li a,
.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover,
.footer a:hover {
  color: #FFD700;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  font-size: 0.9rem;
  text-align: center;
}

/* --- MEDIA QUERIES POUR FOOTER --- */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 20px;
  }
}
/*----------------------------------------------------------------------------------------------*/
/*Format des Colonne*/	
/*----------------------------------------------------------------------------------------------*/
.services-row {
  display: flex;
  flex-wrap: wrap;         /* permet aux sections de passer à la ligne si trop large */
  gap: 20px;               /* espace entre les sections */
  justify-content: center; /* centre les sections si elles ne remplissent pas toute la ligne */
  max-width: 1000px;       /* limite la largeur totale de la ligne */
  margin: 0 auto;          /* centre horizontalement dans la page */
}
/*----------------------------------------------------------------------------------------------*/
/*Format des Colonne*/
/*----------------------------------------------------------------------------------------------*/
.special-section {
  flex: 1 1 300px;         /* largeur minimale 300px, peut grandir */
  max-width: calc((1000px - 2 * 20px) / 4); /* largeur max par section si tu veux exactement 3 sections par ligne */
  box-sizing: border-box;
/*----------------------------------------------------------------------------------------------*/
}.special-section {
	  background-color: var(--bg-color-section); /*Fond*/
	  padding: 3rem 1rem;
	  border-radius: 16px; /*bon arrondi*/
	  box-shadow: 0 4px 10px var(--shadow-color); /*Shaddow normal*/
	  transition: box-shadow 0.3s ease; /*transition*/
	  margin: 2rem auto;
	  max-width: 1000px;
	}

	.special-section:hover {
	  box-shadow: 0 6px 16px var(--shadow-hover); /*Shaddow survol*/
	}

	.special-section h2 {
	  color: var(--primary-green-dark);
	  text-align: center;
	  margin-bottom: 2rem;
	}
	/*----------------------------------------------------------------------------------------------*/
	/*Format des Container*/
	/*----------------------------------------------------------------------------------------------*/
	.special-section .container {
	  display: flex;
	  align-items: flex-start;
	  justify-content: flex-start;
	  gap: 2rem;
	  flex-wrap: wrap;

	}
	/*----------------------------------------------------------------------------------------------*/
	/*Format des photos*/
	/*----------------------------------------------------------------------------------------------*/

	/* Image */
	.special-section .container .photo  img {

	width: 260px;
	  height: auto;
	  border-radius: 16px;
	  object-fit: cover;
	  box-shadow: 0 4px 8px var(--shadow-color);
	  transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.services-section .container img {
	  width: 100%;
	  height: 200px;
	  object-fit: cover;
	}
	
	/* Image miniature */
		.special-section .container .photoMiniature  img {

  bottom: 20px;
  right: 10px;
  width: 120px; /* ajuste la taille selon ton design */
  border-radius: 10px;
  opacity: 0.9; /* optionnel */
}

	
/*----------------------------------------------------------------------------------------------*/
/*Format des texte*/
/*----------------------------------------------------------------------------------------------*/

	/* Texte */
	.special-section .comment {
		flex:1;
 max-width: 100vw;
  width: 100%;

	}
	
		.special-section .commentindex {
height: 250px;
 max-width: 100vw;
  width: 100%;

	}

	.special-section .comment h3 {
	  color: var(--primary-green-dark);
	  margin-top: 0;
	  margin-bottom: 0.5rem;
	  font-size: 1.0rem;
	}
	
		.special-section .commentindex h3 {
	  color: var(--primary-green-dark);
	  margin-top: 0;
	  margin-bottom: 0.5rem;
	  font-size: 1.0rem;
	}

	.special-section .comment p {
	  line-height: 1.5;
	  text-align: justify;
	}

	.special-section .comment a {
	  
	  text-decoration: none;
	}

	.special-section .comment a:hover {
	  text-decoration: underline;
	}
/*----------------------------------------------------------------------------------------------*/
/*Meditation - Calendrier*/
/*----------------------------------------------------------------------------------------------*/

.special-section .rendezvous-calendrier {
  flex: 1 1 50%;
  min-width: 350px;
  display: flex; /* permet au widget de prendre toute la hauteur */
}

.special-section .rendezvous-calendrier .calendly-inline-widget {
  flex: 1; /* prend toute la hauteur du parent */
  width: 100%;
  min-height: 600px; /* hauteur du calendrier sur desktop */
  border-radius: 12px;
  overflow: hidden;
}
/*----------------------------------------------------------------------------------------------*/
	/* --- Pour la gestion des mobiles --- */
/*----------------------------------------------------------------------------------------------*/

/* --- MEDIA QUERIES POUR MOBILE --- */
@media (max-width: 768px) {

  /* Special Section - container */
  .special-section .container {
    flex-direction: column; /* image au-dessus du texte */
    align-items: center;
    text-align: center;
  }

  /* Special Section - comment */
  .special-section .comment {
    width: 90%; /* prend presque toute la largeur */
    min-width: unset;
  }

  /* Special Section - images */
  .special-section .photo img {
    width: 80%; /* réduit légèrement pour mobile */
  }

  /* Section Introductive - offset pour header sticky */
  .welcome-section {
    scroll-margin-top: 170px; /* hauteur du header */
  }

  /* Hero Text */
  .hero-text {
    max-width: 100%; /* éviter que le texte soit trop cassé */
  }

  .hero-text h1 {
    font-size: 1.1rem;
  }

  .hero-text p {
    font-size: 0.8rem;
  }

  /* Header */
  .header {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .header .logo img {
    height: 80px; /* réduire la taille du logo sur mobile */
  }

  .header .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header .nav a {
    margin: 5px;
  }

  /* Footer */
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 20px;
  }
}
