/* ----- RESET & VARIABLES ----- */
:root {
  --primaire: #263d7a;
  --secondaire: #f9504f;
  --claire: #eaf7e6;
  --jaune: #f4a823;
  --rouge: #e05a2a;
  --gris-clair: #f8f9fa;
  --gris: #6c757d;
  --dark: #1e2a3a;
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: #333;

  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.nav-logo,
.btn-main {
  font-family: "Montserrat", sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 70px 0;
}

.section-light {
  background: var(--gris-clair);
}

.sec-head {
  text-align: center;
  margin-bottom: 55px;
}

.sec-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.sec-underline {
  width: 70px;
  height: 3px;
  background: var(--secondaire);
  margin: 0 auto 20px;
}

.sec-head p {
  color: var(--gris);
  max-width: 650px;
  margin: 0 auto;
}

/* ----- NAVBAR ----- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primaire);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primaire);
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondaire);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 70%;
    height: calc(100vh - 70px);
    padding: 30px;
    transition: 0.3s;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }
}

/* ----- HERO SPLIT ----- */
.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  margin-top: -70px;
}

.hero-left {
  flex: 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-text {
  max-width: 550px;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primaire);
}

.typed-line {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primaire);
  margin: 20px 0;
  min-height: 60px;
  border-left: 3px solid var(--secondaire);
  padding-left: 15px;
}

.hero-text p {
  color: #555;
  margin: 25px 0 30px;
}

.btn-outline-w,
.btn-dark-w {
  display: inline-block;
  padding: 12px 28px;
  margin-right: 12px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 40px;
  transition: 0.2s;
}

.btn-outline-w {
  border: 2px solid var(--primaire);
  color: var(--primaire);
  background: transparent;
}

.btn-outline-w:hover {
  background: var(--primaire);
  color: white;
}

.btn-dark-w {
  background: var(--secondaire);
  color: white;
}

.btn-dark-w:hover {
  background: var(--primaire);
}

.hero-right {
  flex: 1;
  position: relative;
  background: #eef2f5;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-right-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

/* ----- FEAT CARD (types) ----- */
.feat-card {
  background: white;
  padding: 28px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  transition: 0.2s;
  border: 1px solid #eaeef2;
  height: 100%;
}

.feat-card h3 a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.feat-card p {
  margin: 15px 0;
  color: #5a6a7a;
  font-size: 0.9rem;
}

.feat-count {
  font-weight: 600;
  color: var(--primaire);
  border-top: 1px solid #edf2f7;
  padding-top: 15px;
  margin-top: 12px;
}

/* ----- ABOUT ----- */
.about-img-block {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img-block img {
  width: 100%;
  border-radius: 20px;
}

.about-social-bar {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
}

.about-social-bar a {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 50%;
  margin: 0 5px;
  transition: 0.2s;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
}

.about-text h2 span {
  color: var(--primaire);
}

.about-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondaire);
  margin: 15px 0;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 6px;
}

.skill-track {
  background: #e2e8f0;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  width: 0%;
  height: 100%;
  background: var(--primaire);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ----- COUNTER SECTION ----- */
.counter-section {
  /* background: linear-gradient(100deg, #1e5a2b, #2b7a3e); */
  background-color: var(--secondaire);
  color: white;
  padding: 70px 0;
}

.fun-fact h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* ----- ETAB CARD ----- */
.etab-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f7;
  transition: 0.2s;
  height: 100%;
}

.etab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.etab-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.etab-img-ph {
  height: 200px;
  background: #eef2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.etab-body {
  padding: 20px;
}

.badge-type {
  display: inline-block;
  background: #e8f0fe;
  color: #1e5a2b;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.etab-body h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.meta {
  font-size: 0.8rem;
  color: #6c86a3;
  margin-bottom: 4px;
}

.etab-footer {
  padding: 12px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f7;
}

.nb {
  font-weight: 600;
  color: var(--primaire);
}

.btn-voir,
.btn-main,
.btn-cta {
  background: var(--primaire);
  color: white;
  padding: 8px 22px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-main {
  background: var(--primaire);
  padding: 12px 32px;
}

/* ----- NEWS CARD ----- */
.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #eef2f5;
}

.news-date-bar {
  background: var(--primaire);
  color: white;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-body {
  padding: 22px;
}

.news-body h5 {
  font-weight: 700;
}

.btn-lire {
  color: var(--primaire);
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: var(--primaire);
  padding: 60px 0;
  color: white;
}

.btn-cta {
  background: var(--secondaire);
  color: white;
}

/* ----- FOOTER (si pas déjà dans footer.php) ----- */
footer {
  background: white;
  color: #2c3e44;
  text-align: center;
  padding: 30px 0;
  font-size: 0.8rem;
}

.hero-right {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background: #eef2f5;
}
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.carousel-img.active {
  opacity: 1;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 14px;
  z-index: 10;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
.carousel-prev {
  left: 15px;
}
.carousel-next {
  right: 15px;
}
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active {
  background: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  color: #2c3e44;
  background: #fff;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- NAVBAR (identique) ----- */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeef2;
  z-index: 1000;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primaire);
  text-decoration: none;
}
.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primaire);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--secondaire);
}
.nav-actions {
  display: flex;
  gap: 12px;
}
.btn-nav,
.btn-nav-outline {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
}
.btn-nav {
  background: var(--primaire);
  color: white;
}
.btn-nav-outline {
  border: 1px solid #cbd5e1;
  color: #2c3e44;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links-wrapper {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 70%;
    height: 100vh;
    padding: 30px;
    transition: 0.3s;
  }
  .nav-links-wrapper.open {
    left: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- EN-TÊTE SIMPLE (sans dégradé lourd) ----- */
.page-header {
  margin-top: 80px;
  padding: 40px 0 30px;
  background: #fafbfc;
  border-bottom: 1px solid #eef2f5;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 8px;
}
.page-header .meta {
  color: var(--gris);
  margin-top: 8px;
}
.type-badge {
  display: inline-block;
  background: #eef2f5;
  color: var(--primaire);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ----- CARTE PRINCIPALE ----- */
.detail-card {
  background: white;
  border: 1px solid #eef2f5;
  border-radius: 20px;
  padding: 28px;
  margin: 30px 0;
}
.school-image {
  width: 45%;
  max-height: 400px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: #f5f7fa;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid #eef2f5;
  border-bottom: 1px solid #eef2f5;
}
.info-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondaire);
  margin-bottom: 4px;
}
.info-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}
.section-title-sm {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 25px 0 15px;
  color: var(--dark);
}
.btn-outline,
.btn-primary {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
}
.btn-primary {
  background: var(--primaire);
  color: white;
  border: none;
}
.btn-outline {
  border: 1px solid var(--primaire);
  color: var(--primaire);
  background: transparent;
}
.btn-outline:hover,
.btn-primary:hover {
  opacity: 0.85;
}

/* ----- SIDEBAR (infos contact) ----- */
.sidebar-card {
  background: #fafbfc;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--dark);
}
.contact-line {
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.contact-line strong {
  font-weight: 600;
  color: var(--primaire);
}

/* ----- CARTES SIMILAIRES ----- */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.sim-card {
  border: 1px solid #eef2f5;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s;
}
.sim-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.sim-body {
  padding: 16px;
}
.sim-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.sim-ville {
  font-size: 0.8rem;
  color: var(--gris);
  margin-bottom: 10px;
}
.btn-sim {
  font-size: 0.75rem;
  padding: 5px 14px;
}

/* ===== NAVBAR MINIMALISTE ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeef2;
  z-index: 1000;
  font-family: "Montserrat", "Open Sans", sans-serif;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primaire);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primaire);
  transition: color 0.2s;
  font-weight: bold;
  font-size: 18px;
  transition:
    color 0.3s,
    font-weight 0.3s;
}

.nav-links a:hover {
  color: var(--secondaire);
  font-weight: bold;
  transition:
    color 0.3s,
    font-weight 0.3s;
}

.nav-links a.active {
  color: var(--secondaire);
  font-weight: bold;
  transition:
    color 0.3s,
    font-weight 0.3s;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-nav,
.btn-nav-outline {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  transition: 0.2s;
  display: inline-block;
}

.btn-nav {
  background: var(--primaire);
  color: white;
  border: none;
}

.btn-nav:hover {
  background: var(--secondaire);
}

.btn-nav-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #2c3e44;
}

.btn-nav-outline:hover {
  border-color: var(--secondaire);
  color: var(--primaire);
}

.user-greeting {
  font-size: 0.85rem;
  color: var(--primaire);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1e2a3a;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links-wrapper {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    width: 80%;
    height: calc(100vh - 70px);
    padding: 30px 24px;
    transition: 0.3s;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    gap: 32px;
    z-index: 999;
  }

  .nav-links-wrapper.open {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .btn-nav,
  .btn-nav-outline {
    width: 100%;
    text-align: center;
  }
}
.logo-img {
  height: 70px !important ;
  font-weight: bold;
}

.btn-primaire-outline {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
}
.btn-primaire {
  background: var(--primaire);
  color: white;
}
.btn-primaire-outline {
  border: 1px solid #cbd5e1;
  color: #2c3e44;
}
.btn-secondaire-outline {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
}
.btn-secondaire {
  background: var(--secondaire);
  color: white;
}
.btn-secondaire-outline {
  border: 1px solid #cbd5e1;
  color: #2c3e44;
}

label {
  font-weight: bold;
  color: var(--primaire);
}