/* =========================================================
   TchadEducationPlus — Design System Moderne 2026
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --green:        #2e481a;
  --green-dark:   #1a2e0d;
  --green-light:  #4a7c26;
  --green-pale:   #f0f7e6;
  --accent:       #6bbf38;
  --white:        #ffffff;
  --text:         #2c2c2c;
  --text-muted:   #6b7280;
  --bg:           #f9fafb;
  --whatsapp:     #25D366;
  --facebook:     #1877F2;
  --telegram:     #229ED9;
  --radius:       16px;
  --radius-sm:    8px;
  --radius-lg:    28px;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  --transition:   all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.site-navbar {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
}

.navbar-brand-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-brand-title:hover { color: var(--green-light); }

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green) !important;
  padding: 6px 14px !important;
  line-height: 1.3;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--green-pale);
  color: var(--green-dark) !important;
}

.btn-contact {
  background: var(--green);
  color: #fff !important;
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-contact:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,72,26,0.35);
}

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--green-dark);
  color: rgba(255,255,255,0.92);
  padding: 11px 0;
  overflow: hidden;
  border-top: 2px solid var(--accent);
}

.ticker-text {
  white-space: nowrap;
  display: inline-block;
  animation: ticker 40s linear infinite;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ─── HERO (full background) ─────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url('https://www.tchadeducation.plus/assets/images/dsc-8581.webp');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,30,5,0.93) 0%,
    rgba(30,58,15,0.84) 40%,
    rgba(10,25,5,0.90) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.btn-hero-primary:hover {
  background: #fff;
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,191,56,0.5);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero-mini-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  background: var(--green);
  padding: 36px 0;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 4px;
  line-height: 1.3;
}

/* ─── SECTION GENERIC ────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ─── FEATURE CARDS ──────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(46,72,26,0.08);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.feature-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--green);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── SEGMENT CARDS ──────────────────────────────────────── */
.segment-card {
  background: var(--white);
  border: 2px solid rgba(46,72,26,0.15);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.segment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.segment-card:hover::before { transform: scaleX(1); }

.segment-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.segment-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.segment-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}

.segment-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,72,26,0.4);
}

.btn-green-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: var(--transition);
}

.btn-green-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-dark:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* ─── ABOUT SECTION ──────────────────────────────────────── */
.about-section { padding: 80px 0; }

.about-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.about-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.about-divider {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ─── PROFILE SECTION ────────────────────────────────────── */
.profile-section {
  background: var(--green);
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.profile-img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 300px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.profile-name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.profile-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
}

/* ─── PAGE NAV CARDS ─────────────────────────────────────── */
.nav-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.nav-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.nav-card-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}

.nav-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── SOCIAL SECTION ─────────────────────────────────────── */
.social-section {
  background: var(--green-dark);
  padding: 70px 0;
}

.social-card {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.social-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-5px);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.social-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 2rem;
  color: #fff;
  transition: var(--transition);
}

.social-icon-circle.whatsapp  { background: var(--whatsapp); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.social-icon-circle.facebook  { background: var(--facebook); box-shadow: 0 6px 20px rgba(24,119,242,0.4); }
.social-icon-circle.telegram  { background: var(--telegram); box-shadow: 0 6px 20px rgba(34,158,217,0.4); }

.social-card:hover .social-icon-circle {
  transform: scale(1.12);
}

.social-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.social-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #111;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ─── PAGE HEADER (sous-pages) ───────────────────────────── */
.page-hero {
  position: relative;
  background: var(--green-pale);
  padding: 60px 0 50px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(46,72,26,0.07);
  border-radius: 50%;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.page-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* ─── CONTENT CARDS (sous-pages) ─────────────────────────── */
.content-card {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 40px;
  margin-bottom: 32px;
}

.content-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.article-text {
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--text-muted);
}

.article-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin: 28px 0 10px;
}

.highlight-box {
  background: var(--green-pale);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 28px 0;
}

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.form-control {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.93rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,72,26,0.12);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}

.address-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
}

.address-icon {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 10px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-content { padding: 60px 0 40px; }
  .hero-mini-stats { gap: 20px; }
  .profile-section .col-lg-4 { margin-bottom: 32px; }
}

@media (max-width: 576px) {
  .hero-title { letter-spacing: -1px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-mini-stats { gap: 16px; }
}
