

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;1,400&family=Mulish:wght@400;500;700&display=swap');

:root {
  color-scheme: light;

  --vert-foret:       #2F6B57; /* Header, Footer, Titres majeurs */
  --vert-sauge-medium:#9FDDBA; /* Accents, badges, bordures actives */
  --vert-eau-doux:    #C8F0D6; /* Fond de cartes, éléments mis en avant */
  --violet-pastel:    #E7F0FF; /* Section accentuée très douce */
  --blanc-casse:      #F2FFF8; /* Fond principal du site */
  
  --blanc:            #FFFFFF;
  --texte-sombre:     #1C3D32; /* Contrasté pour la lisibilité */
  --texte-doux:       #3A5E52;
  
  --rayon: 14px;
  --ombre: 0 8px 24px rgba(47, 107, 87, 0.06);
}

html {
  scroll-behavior: smooth;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
}

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

body {
  font-family: 'Mulish', sans-serif;
  background-color: var(--blanc-casse);
  color: var(--texte-sombre);
  line-height: 1.7;
  font-size: 1.05rem;
  padding: 2.5rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.2px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ===== HEADER AVEC BANNIÈRE EN FOND ===== */
header {
  position: relative;             /* Indispensable pour la superposition */
  overflow: hidden;               /* Empêche la bannière de dépasser des bords arrondis */
  background: var(--vert-foret);  /* Couleur de fond si l'image ne charge pas */
  color: var(--blanc);
  text-align: center;
  padding: 3.2rem 2rem 2.2rem;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  margin-bottom: 2.5rem;
  border-bottom: 4px solid var(--vert-sauge-medium);
}

/* Image de fond en transparence légère */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Remplace par le bon chemin vers ton image de bannière */
  background-image: url('image/fond.png'); 
  background-size: cover;
  background-position: center;
  
  /* Régler le niveau de transparence (0.15 = très léger, 0.3 = plus visible) */
  opacity: 0.18; 
  
  z-index: 1;                     /* Placé tout au fond */
}

/* Force tous les éléments du header à rester AU-DESSUS du fond transparent */
header > * {
  position: relative;
  z-index: 2;
}
#accueil img {
    max-width:100px;
    max-height:80px;
    margin-right:0;
    margin-left:90%;
    margin-bottom:-40px;
}
@media (max-width: 768px) {

  /* Ajustement de la petite image en bas à droite sur smartphone */
  #accueil .image img {
    max-width: 45px;   /* Plus petit pour ne pas masquer le texte */
    max-height: 35px;
    bottom: 8px;       /* Ajustement précis dans le coin */
    right: 10px;
  }

}
#seances .image img{
    max-width:130px;
    max-height:110px;
    margin-left:90%;
    margin-top: -65px;
    margin-right: -1000px;
    margin-left: 915px;
}
/* 1. Le cadre extérieur qui fait le cercle */
header .logo-cercle {
  width: 170px;
  height: 170px;
  border-radius: 50%;                 /* Seul le cadre est rond */
  background-color: #ffffff;          /* Fond blanc dans le cercle */
  border: 3px solid var(--vert-eau-doux);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 2. L'image carrée intacte au centre */
header .logo-cercle img {
  width: 120px;                       /* Ajuste la taille du carré selon tes envies */
  height: 120px;
  object-fit: contain;                /* Aucun rognage, l'image reste carrée */
  border-radius: 0 !important;        /* Empêche l'image de s'arrondir */
  border: none !important;
  margin: 0;
  padding: 0;
}
header h1 {
  font-size: 2.7rem !important;
  color: var(--blanc);
}

header h1 span {
  color: var(--vert-eau-doux);
  font-style: italic;
}

header .slogan {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--vert-eau-doux);
  font-size: 1.1rem;
  margin-top: 0.3rem;
  opacity: 0.95;
}

nav {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

nav ul li a {
  display: inline-block;
  color: var(--vert-eau-doux);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: var(--blanc);
  border-bottom-color: var(--violet-pastel);
}

nav ul li a.actif {
  color: var(--blanc);
  border-bottom-color: var(--vert-sauge-medium);
}

#accueil,
#mediation,
#public,
#objectifs,
#seances,
#qui-suis-je,
#animaux,
#contact {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 3rem 3.5rem;
  margin: 0 auto 2.5rem auto;
  max-width: 1100px;
}

#accueil {
  background: var(--blanc);
  text-align: center;
  padding: 3.8rem 3.5rem;
  border-top: 4px solid var(--vert-sauge-medium);
}

#accueil p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--texte-doux);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#accueil p:first-child::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  color: var(--vert-foret);
  font-weight: 700;
}

#accueil p:last-child {
  color: var(--texte-sombre);
  font-style: italic;
  background: var(--vert-eau-doux);
  padding: 0.5rem 2rem;
  border-radius: 30px;
  display: inline-block;
  font-weight: 600;
}

#mediation {
  background: var(--vert-eau-doux);
  color: var(--texte-sombre);
  display: flex;
  align-items: center;
  gap: 3rem;
  border-left: 5px solid var(--vert-foret);
}

#mediation .text {
  flex: 1 1 380px;
}

#mediation .image {
  flex: 1 1 380px;
}

#mediation .image img, #public .image img {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  
  width: auto;               /* L'image définit sa propre largeur */
  max-width: 100%;           /* Sécurité pour qu'elle ne dépasse pas de l'écran */
  height: auto;              /* Conserve les proportions réelles */
  max-height: 340px;         /* Limite la hauteur maximale */
  display: block;            /* Évite les petits espaces sous l'image */
  margin: 0 auto;            /* Centre l'image dans sa zone */

  border: 4px solid var(--blanc); /* La bordure colle maintenant parfaitement */
  transition: transform 0.3s ease;
}

#mediation .image img:hover {
  transform: scale(1.01);
}

#mediation h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--vert-foret);
}

#mediation h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--vert-foret);
  border-radius: 2px;
  margin-top: 0.5rem;
} 

#public {
  background: var(--violet-pastel);
  color: var(--texte-sombre);
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: row-reverse;
  border-left: 5px solid var(--vert-sauge-medium);
}

#public .text {
  flex: 1 1 380px;
}

#public .image {
  flex: 1 1 380px;
}

#public .image img:hover {
  transform: scale(1.01);
}

#public h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--vert-foret);
}

#public h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--vert-sauge-medium);
  border-radius: 2px;
  margin-top: 0.5rem;
}

#public ul {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

#public ul li {
  position: relative;
  padding-left: 1.5rem;
}

#public ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--vert-foret);
  font-size: 1.3rem;
}

#objectifs {
  background: var(--blanc);
  border-left: 5px solid var(--vert-sauge-medium);
}

#objectifs h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--vert-foret);
}

#objectifs h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--vert-sauge-medium);
  border-radius: 2px;
  margin-top: 0.5rem;
}

#objectifs > p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--texte-doux);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#objectifs ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem;
}

#objectifs ul li {
  position: relative;
  padding-left: 1.5rem;
}

#objectifs ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--vert-sauge-medium);
  font-size: 0.9rem;
}

#seances {
  background: var(--vert-sauge-medium);
  color: var(--texte-sombre);
}

#seances h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--vert-foret);
}

#seances h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--vert-foret);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

#seances > p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--texte-sombre);
}

#seances ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

#seances ul li {
  background-color: var(--blanc);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--ombre);
  font-weight: 600;
  text-align: center;
  transition: all 0.25s ease;
  border-bottom: 3px solid var(--vert-eau-doux);
  color: var(--texte-sombre);
}

#seances ul li:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--vert-foret);
}


#qui-suis-je {
  background: var(--blanc);
  border-left: 5px solid var(--vert-foret);
}

#qui-suis-je h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--vert-foret);
}

#qui-suis-je h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--vert-foret);
  border-radius: 2px;
  margin-top: 0.5rem;
}

#qui-suis-je p {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--vert-eau-doux);
  color: var(--texte-doux);
}

#animaux {
  background: var(--blanc);
  border-top: 3px solid var(--vert-sauge-medium);
  border-bottom: 3px solid var(--violet-pastel);
}

#animaux h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--vert-foret);
}

#animaux h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--vert-foret);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

#animaux p {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

#animaux p:first-of-type {
  background: var(--vert-eau-doux);
  border-left: 4px solid var(--vert-foret);
}

#animaux p:last-of-type {
  background: var(--violet-pastel);
  border-left: 4px solid var(--vert-sauge-medium);
}

#contact {
  background: var(--blanc);
  text-align: center;
  border-top: 5px solid var(--vert-foret);
  max-width: 650px;
  padding: 3rem 2rem;
}

#contact h2 {
  color: var(--vert-foret);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

#contact h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--vert-foret);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

#contact p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--texte-doux);
}

#contact a {
  font-weight: 700;
  color: var(--vert-foret);
  border-bottom: 2px solid var(--vert-eau-doux);
  padding-bottom: 2px;
  transition: all 0.25s ease;
}

#contact a:hover {
  color: var(--vert-sauge-medium);
  border-color: var(--vert-sauge-medium);
}

.form-contact {
  max-width: 450px;
  margin: 2rem auto 1rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--texte-sombre);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--vert-sauge-medium);
  border-radius: 8px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  background-color: var(--blanc-casse);
  color: var(--texte-sombre);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vert-foret);
  background-color: var(--blanc);
}

.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--vert-foret);
  color: var(--blanc);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 1.2rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #235242;
  transform: translateY(-1px);
}

.coordonnees-directes {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--vert-sauge-medium);
  font-size: 0.95rem;
}

footer {
  background: var(--vert-foret);
  color: var(--vert-eau-doux);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--rayon);
  max-width: 1100px;
  margin: 0 auto;
}

footer p {
  font-size: 0.9rem;
}

footer .nav-footer {
  margin-top: 0.8rem;
}

footer .nav-footer a {
  color: var(--vert-eau-doux);
  transition: all 0.2s ease;
  padding: 0.2rem 0.6rem;
}

footer .nav-footer a:hover {
  color: var(--blanc);
}


@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  header {
    padding: 2.5rem 1.2rem 2rem;
  }

  header h1 {
    font-size: 2.1rem;
  }

  #accueil,
  #mediation,
  #public,
  #objectifs,
  #seances,
  #qui-suis-je,
  #animaux,
  #contact {
    padding: 2rem 1.5rem;
    margin: 0 auto 1.5rem auto;
  }

  #mediation,
  #public {
    flex-direction: column;
    text-align: center;
  }

  #mediation .image img,
  #public .image img {
    max-height: 250px;
  }

  #public ul,
  #objectifs ul {
    grid-template-columns: 1fr;
    text-align: left;
  }

  nav ul {
    gap: 0.3rem 1.2rem;
  }

  nav ul li a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #seances ul {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.7rem;
  }
}
.carousel-wrapper {
  position: relative;
  /* 4 cartes (200px) + 3 gaps (19px) = ~860px max */
  max-width: 860px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
}

.carousel-track.defilement-continu {
  animation: defilementInfiniment 25s linear infinite;
}

@keyframes defilementInfiniment {
  0% {
    transform: translateX(0);
  }
  100% {
=    transform: translateX(calc(-50% - 0.6rem)); 
  }
}

.carte-slide {
  width: 200px;
  flex-shrink: 0; 
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(47, 107, 87, 0.08);
  border: 1px solid var(--vert-eau-doux);
}

.btn-prev, .btn-next {
  background: var(--vert-foret);
  color: var(--blanc);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 5;
  flex-shrink: 0;
}

/* ---------- Adaptations Écrans ---------- */

@media (max-width: 992px) {
  .carousel-wrapper {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .carousel-wrapper {
    max-width: 420px;
  }
}
/* ---------- Adaptations Écrans ---------- */

@media (max-width: 992px) {
  .carousel-wrapper {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .carousel-wrapper {
    max-width: 250px; 
    gap: 0.4rem;     
  }

  .carte-slide {
    width: 170px;    
    height: 280px;    
  }
}
.carte-slide {
  height: 320px; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(47, 107, 87, 0.08);
  border: 1px solid var(--vert-eau-doux);
}

.img-wrapper {
  position: relative;
  width: 100%;
  flex: 1; 
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  display: block;
}

.infos-mini {
  padding: 0.8rem;
  background: var(--blanc);
  text-align: left;
  flex-shrink: 0; 
  border-top: 1px solid var(--vert-eau-doux);
}

.infos-mini h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  color: var(--vert-foret);
}

.infos-mini p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.2;
}
.bloc-peccram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--blanc);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(47, 107, 87, 0.08);
  border: 1px solid var(--vert-eau-doux);
  margin: 2rem auto;
  max-width: 900px;
}

.peccram-texte {
  flex: 1;
}

.peccram-texte h2 {
  color: var(--vert-foret);
  margin-top: 0;
  font-size: 1.4rem;
}

.peccram-texte p {
  line-height: 1.6;
  color: #444;
  margin-bottom: 0;
}

.peccram-img {
  flex-shrink: 0;
  width: 180px; 
  text-align: center;
}

.peccram-img img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* Aligne le téléphone et les réseaux sur une même ligne */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espace entre le téléphone et les icônes */
    margin-bottom: 10px;
}

/* Groupe les icônes entre elles */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre Insta et Facebook */
}

/* Redimensionne les icônes pour qu'elles restent discrètes */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    vertical-align: middle;
}

@media (max-width: 768px) {
  .bloc-peccram {
    flex-direction: column-reverse; 
    text-align: center;
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .peccram-img {
    width: 140px; 
  }
}
/* ===================================================
   OPTIMISATIONS CSS COMPLÈTES POUR MOBILE (< 768px)
   =================================================== */

@media (max-width: 768px) {

  /* 1. Marges globales pour éviter les espaces perdus */
  body {
    padding: 0.8rem 0.5rem; /* Moins d'espace mort sur les côtés */
  }

  /* 2. Header & Bannière compacts */
  header {
    padding: 1.8rem 1rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  header .logo-cercle {
    width: 120px; /* Logo réduit sur mobile */
    height: 120px;
    margin-bottom: 0.8rem;
  }

  header .logo-cercle img {
    width: 85px;
    height: 85px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header .slogan {
    font-size: 0.95rem;
  }

  /* 3. Navigation lisible et aérée */
  nav {
    margin-top: 1.2rem;
    padding-top: 1rem;
  }

  nav ul {
    flex-direction: column; /* Menu vertical plus facile à cliquer */
    gap: 0.8rem;
    align-items: center;
  }

  nav ul li a {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1); /* Petit fond lisible au clic */
    border-radius: 20px;
    width: 100%;
    max-width: 250px;
  }

  /* 4. Blocs de texte & Sections */
  #accueil, #mediation, #public, #objectifs, 
  #seances, #qui-suis-je, #animaux, #contact {
    padding: 1.8rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  /* 5. Images d'illustration (Chien, Chat) */
  #mediation .image img, 
  #public .image img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
  }

  /* 6. Formulaire de contact adapté */
  .form-contact {
    width: 100%;
  }

  .form-group input, 
  .form-group textarea {
    font-size: 1rem; /* Évite le zoom automatique de Safari/iOS */
  }

  /* 7. Footer */
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {

  /* 1. Réduction de l'espace interne de la carte sur mobile */
  #mediation,
  #public {
    padding: 1.2rem 1rem !important; /* Réduit l'espace avec les bords de la zone */
    gap: 1rem !important;            /* Réduit considérablement le vide entre le texte et l'image */
  }

  /* 2. Annulation des marges inutiles sur les conteneurs */
  #mediation .text, #mediation .image,
  #public .text, #public .image {
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Ajustement du titre pour coller un peu plus au contenu */
  #mediation h2, #public h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* 4. Optimisation de l'image (chien/chat) */
  #mediation .image img,
  #public .image img {
    width: 100%;
    max-height: 220px;     /* Hauteur adaptée pour smartphone */
    object-fit: cover;
    margin-top: 0.5rem;   /* Léger espace au-dessus de l'image */
  }

}