body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
  margin: 0;
  padding: 0;
}

#capendurance-home {
  width: 100%;
  margin: 0;
}


/* === HERO === */
.ce-hero2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.ce-hero2-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ce-hero2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.76);
  z-index: 1;
}

.ce-hero2-content {
  position: relative;
  z-index: 2;
  padding: 6vh 5vw;
  max-width: 700px;
}


.ce-hero2-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.6rem;
  font-weight: bold;
  letter-spacing: 1.7px;
  line-height: 1.08;
}

.ce-hero2-content p {
  font-size: 1.4rem;
  margin-bottom: 2.4rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  color: #c7d0dd;
  line-height: 1.5;
}

.ce-cta-btns2 {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ce-btn2 {
  padding: 17px 44px;
  border-radius: 27px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  border: none;
  transition: background .18s, color .18s;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(17,34,58,0.07);
}

.ce-btn2-main {
  background: #fff;
  color: #0c2340;
}

.ce-btn2-main:hover {
  background: #f5761a;
  color: #fff;
}

.ce-btn2-alt {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.ce-btn2-alt:hover {
  background: #f5761a;
  color: #fff;
  border-color: #f5761a;
}

/* === À PROPOS === */
.ce-apropos-card {
  background: #fff;
  display: flex;
  gap: 48px;
  align-items: center;
  border-radius: 18px;
  max-width: 1100px;
  margin: -65px auto 60px auto;
  box-shadow: 0 4px 26px rgba(12,35,64,0.09);
  padding: 60px 50px 45px 50px;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
}

.ce-apropos-img {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.ce-apropos-img img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(245, 118, 26, 0.2);
  border: 5px solid #fff;
  transition: transform 0.3s ease;
}


.ce-apropos-text h2 {
  color: #0c2340;
  font-size: 2.8rem;
  margin-bottom: 28px;
  font-weight: bold;
}

.ce-apropos-text p {
  font-size: 1.25rem;
  margin-bottom: 34px;
  line-height: 1.7;
}

.ce-btn2-orange {
  background: #f5761a;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 25px;
  font-size: 1.1rem;
  border: none;
  transition: background 0.2s ease;
}

.ce-btn2-orange:hover {
  background: #0c2340;
  color: #fff;
}

/* === ARTICLES === */
.ce-articles2-bg {
  background: #0c2340;
  padding: 70px 0;
}

.ce-section-title2 {
  color: #fff;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 44px;
  font-weight: bold;
  letter-spacing: 0.5px;
}


.ce-articles2-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px;
  align-items: stretch; /* 🔁 pour uniformiser les hauteurs */
}

.ce-article2-card {
  background: #fff;
  border-radius: 19px;
  width: 345px;
  min-height: 520px; /* 💡 ajustable selon contenu */
  box-shadow: 0 4px 26px rgba(12, 35, 64, 0.09);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ pour coller le lien en bas */
  transition: box-shadow 0.16s, transform 0.14s;
}

.ce-article2-card:hover {
  box-shadow: 0 16px 40px rgba(245, 118, 26, 0.17);
  transform: translateY(-7px) scale(1.017);
}

.ce-article2-img {
  width: 100%;
  height: 172px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 15px;
}

.ce-article2-meta {
  color: #0c2340; /* ou #273350 */
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 8px;
  min-height: 4em; /* 🔒 force 2 à 3 lignes de hauteur uniforme */
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* ✅ coupe à 3 lignes max */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ce-article2-title {
  font-size: 1.28rem;
  color: #0c2340;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
  min-height: 3.8em; /* 🔒 force 2 à 3 lignes de hauteur uniforme */
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* ✅ coupe à 3 lignes max */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ce-article2-excerpt {
  font-size: 1.16rem;
  color: #222;
  margin-bottom: 20px;
  flex-grow: 1; /* 🧱 pour forcer l’uniformisation */
}

.ce-link-orange {
  color: #c75b0c;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.15rem;
  transition: color 0.18s;
  margin-top: auto;
}

.ce-link-orange:hover {
  color: #0c2340;
}

/* === DISCIPLINES === */
.ce-categories2-bg {
  background: #fff;
  padding: 70px 0;
}
.ce-categories2-title {
 color: #222;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 44px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.ce-categories2-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
  align-items: stretch; /* 🔁 Aligne les hauteurs */
}

.ce-cat2-card {
  background: #fff;
  color: #222;
  border-radius: 21px;
  width: 255px;
  min-height: 360px; /* ✅ Fixe une hauteur minimale cohérente */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ Pour que le bouton reste en bas */
  align-items: center;
  padding: 42px 18px 32px;
  box-shadow: 0 10px 34px rgba(245, 118, 26, 0.14);
  border: 2.5px solid #f5761a1f;
  text-align: center;
}

.ce-cat2-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.ce-cat2-title {
  font-size: 1.29rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.ce-cat2-desc {
  font-size: 1.12rem;
  margin-bottom: 30px;
  color: #333;
  font-weight: 400;
  flex-grow: 1;
}




/* === RESPONSIVE === */
@media (max-width: 1300px) {
  .ce-apropos-card { max-width: 98vw; }
}
@media (max-width: 1100px) {
  .ce-apropos-card {
    flex-direction: column;
    gap: 36px;
    padding: 30px 6vw;
  }
  .ce-apropos-img img {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 768px) {
  .ce-apropos-card {
    flex-direction: column;
    text-align: center;
  }
  .ce-hero2-content h1 { font-size: 2rem; }
  .ce-section-title2 { font-size: 1.22rem; }
}
@media (max-width: 600px) {
  .ce-apropos-img img { width: 140px; height: 140px; }
  .ce-apropos-card { margin-top: 0; padding: 14px 4vw; }
  .ce-newsletter-container { padding: 24px 8px; }
}
