/* ============================
   MEDIATION PRO
============================ */

.med-section {
  padding: 100px 6%;
  background: linear-gradient(135deg, #0b2540, #0f3a5f);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.med-section h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.med-section p.intro {
  color: #cfe4f3;
  max-width: 800px;
  font-size: 1.05rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* GRILLE */
.med-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 35px;
}

/* CARTES */
.med-card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 35px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  transition: .5s ease;
  overflow: hidden;
  cursor: pointer;
}

.med-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #7ddcff;
}

.med-card p {
  color: #d9e9f5;
  font-size: 0.95rem;
}

/* TEXTE MASQUÉ */
.med-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: .5s;
  margin-top: 15px;
  font-size: 0.9rem;
}

.med-card:hover .med-hidden {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BLOC COÛT ===== */
.cost-box {
  margin-top: 80px;
  padding: 50px;
  border-radius: 35px;
  background: linear-gradient(135deg, #1bbf9b, #0e6da8);
  color: white;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
}

.cost-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.25), transparent 60%);
}

.cost-box h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cost-box ul {
  margin-top: 15px;
}

.cost-box li {
  margin: 8px 0;
}

.cost-box p {
  margin-top: 15px;
  color: #e9faff;
}

/* ============================
   MÉDIATION FAMILIALE
============================ */

.fam-section {
  padding: 110px 6%;
  background: linear-gradient(135deg, #0c243d, #0f3c5a);
  color: #fff;
  position: relative;
}

.fam-section h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.fam-intro {
  max-width: 900px;
  color: #d7ecfb;
  font-size: 1.05rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* GRID */
.fam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 60px;
}

/* Mobile : scroll horizontal fluide */
@media (max-width: 1100px) {
  .fam-grid {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .fam-grid::-webkit-scrollbar {
    height: 8px;
  }

  .fam-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #1bbf9b, #1b74b8);
    border-radius: 10px;
  }
}

/* CARTES */
.fam-card {
  background: rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: .5s ease;
  cursor: pointer;
}

.fam-card:hover {
  transform: translateY(-12px) scale(1.03);
}

.fam-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #7de6ff;
}

.fam-card p {
  font-size: 0.95rem;
  color: #e4f1fa;
}

/* TEXTE MASQUÉ */
.fam-hidden {
  opacity: 0;
  transform: translateY(25px);
  transition: .5s;
  margin-top: 15px;
  font-size: 0.9rem;
}

.fam-card:hover .fam-hidden {
  opacity: 1;
  transform: translateY(0);
}

/* BLOC IMPACT */
.fam-impact {
  margin-top: 90px;
  background: linear-gradient(135deg, #1bbf9b, #0e6da8);
  border-radius: 40px;
  padding: 60px;
  color: white;
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
}

.fam-impact h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.fam-impact ul li {
  margin: 8px 0;
}

@media(max-width:900px){
  .fam-impact { padding: 40px 25px; }
}

/* ============================
   CERTIFICATIONS
============================ */

.cert-section {
  padding: 110px 6%;
  background: linear-gradient(135deg,#f5f9fc,#ffffff);
}

.cert-section h2 {
  font-size: 2.6rem;
  color: #0b3a5e;
  margin-bottom: 10px;
  text-align: center;
}

.cert-intro {
  max-width: 850px;
  color: #465b70;
  margin-bottom: 60px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* CARTES */
.cert-card {
  background: #fff;
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 30px 60px rgba(0,0,0,.15);
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(0,0,0,.25);
}

.cert-logo {
  height: 55px;
  margin-bottom: 20px;
}

.cert-card h3 {
  font-size: 1.2rem;
  color: #0f4a75;
  margin-bottom: 10px;
}

.cert-card p {
  font-size: 0.95rem;
  color: #455b72;
  line-height: 1.6;
}

/* =========================
   CONTACT
========================= */

.contact-section {
  padding: 110px 6%;
  background: #f4f7fb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
}

.contact-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.contact-subtitle {
  color: #5c6f82;
  max-width: 500px;
}

.contact-box {
  background: #fff;
  padding: 35px;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

/* INFOS */
.contact-info p {
  margin: 12px 0;
  font-size: 1rem;
}

.contact-info i {
  color: #1bbf9b;
  margin-right: 8px;
}

/* MAP */
.contact-map {
  margin-top: 40px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
}

@media(max-width: 900px){
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ENGAGEMENTS
========================= */

.engagements {
  background: linear-gradient(135deg, #0b2540, #0f3a5f);
  color: white;
  padding: 110px 6%;
}

.engagements .section-title {
  font-size: 2.6rem;
  margin-bottom: 50px;
  color: #7ddcff;
  text-align: center;
}

/* GRID */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

@media (max-width: 1100px) {
  .engagement-grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .engagement-grid::-webkit-scrollbar {
    height: 8px;
  }

  .engagement-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #1bbf9b, #1b74b8);
    border-radius: 10px;
  }
}

/* CARTES */
.engagement-card {
  background: rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: .5s ease;
  cursor: pointer;
}

.engagement-card:hover {
  transform: translateY(-12px) scale(1.03);
}

.engagement-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #7de6ff;
}

.engagement-card p {
  font-size: 1rem;
  color: #e4f1fa;
}

.engagement-hidden {
  opacity: 0;
  transform: translateY(25px);
  transition: .5s;
  margin-top: 15px;
  font-size: 0.95rem;
  color: #dff3ff;
}

.engagement-card:hover .engagement-hidden {
  opacity: 1;
  transform: translateY(0);
}

/* ICÔNES ANIMÉES */
.icon-anim {
  font-size: 32px;
  margin-bottom: 10px;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* BLOCS CENTRÉS */
.center-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-box h3 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.center-text {
  max-width: 800px;
  margin: 12px auto;
  line-height: 1.7;
  color: #eaf7ff;
}

.center-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.center-list li {
  margin: 10px 0;
  font-size: 1rem;
  position: relative;
  padding-left: 22px;
}

.center-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

.animated-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0b2c4a;          /* bleu par défaut pour tout le titre */
}

.animated-title .word {
  display: inline-block;
  margin: 0 2px;           /* espace réduit entre les mots */
  opacity: 0;
  transform: translateY(20px);
  color: inherit;          /* prend la couleur du parent = bleu */
}

.animated-title .highlight {
  color: #2ecc71 !important;                /* apaisée en vert */
  text-shadow: 0 0 15px rgba(46,204,113,.5);
}



.back-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.back-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #1f4c7a, #2ecc71);
  border-radius: 40px;
  box-shadow: 0 15px 30px rgba(0,0,0,.25);
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
