/*
Theme Name: ISM Incubateur
Theme URI: https://incubateurism.vercel.app
Description: Reproduction WordPress du site ISM Incubateur - Incubateur de projets innovants du Groupe ISM au Sénégal
Version: 1.0
Author: Admin
Text Domain: incubateurism
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:       #f97316;
  --orange-dark:  #ea6c0a;
  --orange-light: #fff3e8;
  --brown-dark:   #3d1a06;
  --brown-medium: #5c2e0e;
  --beige:        #fdf5ed;
  --beige-dark:   #f0e5d5;
  --text-dark:    #1a0e05;
  --text-medium:  #5c4033;
  --text-light:   #9e7e6a;
  --white:        #ffffff;
  --footer-bg:    #1a0e05;
  --card-shadow:  0 4px 20px rgba(0,0,0,0.08);
  --radius:       12px;
  --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 80px 0; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline-dark:hover { background: var(--text-dark); color: #fff; }

/* ===================== HEADER / NAV ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--brown-dark);
  background: #fff;
  border: 2px solid #e8ddd5;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brown-medium);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  width: 20px;
  height: 20px;
}
.logo-grid span {
  background: #fff;
  border-radius: 1px;
  opacity: 0.85;
}

/* Main nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.main-nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn-login {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: color 0.2s;
}
.btn-login:hover { color: var(--orange); }

.btn-register {
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-register:hover { background: var(--orange-dark); }

/* ===================== HERO ===================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--brown-medium);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1400&q=80');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.4) sepia(0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 1.5rem;
}

.hero-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.hero-breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 0.4rem; }

.hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.hero-content .hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
}
.hero-content .hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.2s;
  animation: bounce 2s infinite;
}
.hero-scroll:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===================== STATS SECTION ===================== */
#stats {
  background: #fff;
  text-align: center;
}

.stats-header { margin-bottom: 3rem; }
.stats-header h2 { color: var(--text-dark); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: var(--beige);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
}

/* ===================== PROCESS ===================== */
#process {
  background: var(--beige);
}

.process-header { text-align: center; margin-bottom: 3rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.2s;
}
.process-card:hover { transform: translateY(-4px); }

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
  display: block;
}

.process-card h3 { color: var(--text-dark); margin-bottom: 0.75rem; font-size: 1.05rem; }
.process-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ===================== JEU SECTION ===================== */
#game {
  background: var(--brown-medium);
  color: #fff;
  padding: 80px 0;
}

.game-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-text h2 { color: #fff; margin-bottom: 1rem; }
.game-text h2 span { color: var(--orange); }
.game-text .game-desc { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.game-list { list-style: none; margin-bottom: 2rem; }
.game-list li {
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.game-list li::before {
  content: '•';
  color: var(--orange);
  font-size: 1.2rem;
}

.game-widget {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.game-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.game-widget-title { font-weight: 600; color: rgba(255,255,255,0.9); }
.game-score {
  background: var(--orange);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}
.game-screen {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-style: italic;
}
.game-question { color: rgba(255,255,255,0.9); font-weight: 600; margin-bottom: 0.75rem; font-size: 0.9rem; }
.game-option {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.game-option:hover { background: rgba(255,255,255,0.14); }
.game-option .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.game-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.btn-valider {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-valider:hover { background: var(--orange-dark); }

/* ===================== PROJECTS ===================== */
#projects { background: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--text-dark); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #f0e8e0;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.project-image {
  height: 180px;
  background: #e8ddd5;
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-card:hover .project-image img { transform: scale(1.05); }

.project-body { padding: 1.25rem; }

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tag-edtech  { background: #fef3c7; color: #92400e; }
.tag-agritech{ background: #d1fae5; color: #065f46; }
.tag-fintech { background: #dbeafe; color: #1e40af; }
.tag-healthtech { background: #fce7f3; color: #9d174d; }

.project-body h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.project-body p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.5; }

.project-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.pstat {
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  text-align: center;
  flex: 1;
  min-width: 70px;
}
.pstat-val { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.pstat-key { font-size: 0.7rem; color: var(--text-light); }

.project-quote {
  font-style: italic;
  color: var(--text-medium);
  font-size: 0.8rem;
  border-left: 2px solid var(--orange);
  padding-left: 0.6rem;
  margin-top: 0.75rem;
}

.btn-center { text-align: center; }

/* ===================== PROGRAMS ===================== */
#programs { background: var(--beige); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}
.program-card:hover { transform: translateY(-4px); }

.program-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.program-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.program-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.program-badge.soon { background: #64748b; }

.program-body { padding: 1.25rem; }
.program-date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.program-body h3 { color: var(--text-dark); margin-bottom: 0.4rem; }
.program-body p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; }
.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.program-price { font-size: 0.875rem; color: var(--text-medium); }
.program-price strong { color: var(--text-dark); }
.btn-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.btn-link:hover { gap: 0.6rem; }

/* ===================== PARTNERS ===================== */
#partners { background: #fff; }

.partners-intro { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-medium); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  border: 1px solid #f0e8e0;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-card:hover { border-color: var(--orange); box-shadow: var(--card-shadow); }

.partner-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.6rem;
}

.partner-card h4 { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.partner-card p  { font-size: 0.78rem; color: var(--text-light); }

/* ===================== STATS BANNER ===================== */
#stats-banner {
  background: #fff;
  padding: 40px 0;
}

.stats-banner-inner {
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.banner-stat {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid #f0e0d0;
}
.banner-stat:last-child { border-right: none; }
.banner-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.banner-label { font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; font-size: 0.9rem; }
.banner-desc { font-size: 0.78rem; color: var(--text-light); }

/* ===================== ABOUT / CTA ===================== */
#about { background: var(--beige); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 { color: var(--text-dark); margin-bottom: 1rem; }
.about-text p { color: var(--text-medium); line-height: 1.8; }
.about-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===================== CTA SECTION ===================== */
#cta {
  background: var(--brown-medium);
  text-align: center;
  padding: 80px 0;
}
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--brown-medium);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-white:hover { background: var(--orange); color: #fff; }

/* ===================== FOOTER ===================== */
#site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-brand p a { color: var(--orange); }

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--orange); color: var(--orange); }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.footer-contact span { flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ===================== HAMBURGER (MOBILE) ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .game-inner { gap: 2.5rem; }
  .about-inner { gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .main-nav, .nav-actions .btn-login { display: none; }
  .hamburger { display: flex; }

  .game-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .stats-banner-inner { grid-template-columns: 1fr; }
  .banner-stat { border-right: none; border-bottom: 1px solid #f0e0d0; }
  .banner-stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
