/*------------------------------
  Variables et réglages globaux
------------------------------*/
:root {
  --primary: #006A4E;
  --primary-dark: #004A37;
  --primary-light: #009B5C;
  --secondary: #f1f5f9;
  --dark: #1e293b;
  --light: #ffffff;
  --accent: #00b894;
  --gold: #E6B800;
  --gold-dark: #CC9900;
  --red: #DC143C;
  --border-radius: 1rem;
  --font-family: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: var(--font-family);
  background-color: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
}

/*------------------------------
  Header & Navigation
------------------------------*/
.header {
  background-color: var(--light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

.header .sitename {
  font-weight: 700;
  color: var(--primary);
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu ul li {
  display: inline-block;
  margin: 0 10px;
}

.navmenu ul li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
}

.navmenu ul li a.btn {
  margin-left: 10px;
}

/*------------------------------
  Hero Section
------------------------------*/
.hero {
  padding: 100px 0;
  background-color: var(--secondary);
  background-image: 'assets/img/hero-img.png';
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
}

.hero h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
}

.hero .btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

/*------------------------------
  Section Header
------------------------------*/
.section-header h2 {
  font-weight: 600;
  color: var(--primary);
}

.section-header p {
  font-size: 1rem;
  color: #555;
}

/*------------------------------
  Annuaire des startups
------------------------------*/
.startup-card {
  background-color: var(--light);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

.startup-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.startup-card .card-img {
  position: relative;
}

.startup-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.card-info {
  padding: 15px;
}

.card-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-info .secteur {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.card-info .description {
  font-size: 0.85rem;
  color: #555;
}

.card-info .location {
  font-size: 0.8rem;
  color: #666;
}

.btn-details {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/*------------------------------
  Opportunités
------------------------------*/
.opportunity-card {
  background: var(--light);
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 20px;
  transition: 0.3s;
}

.opportunity-card:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.opportunity-card .badge {
  font-size: 0.75rem;
}

.opportunity-card .date {
  float: right;
  font-size: 0.8rem;
  color: #999;
}

.opportunity-card h4 {
  font-size: 1.1rem;
  margin-top: 15px;
}

.opportunity-card .benefits {
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
}

.opportunity-card .benefits li {
  margin-bottom: 6px;
}

/*------------------------------
  News Cards
------------------------------*/
.news-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 20px;
}

.news-card.featured h3 {
  font-size: 1.2rem;
}

.news-card .category {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.news-card .date {
  font-size: 0.85rem;
  color: #999;
}

/*------------------------------
  Footer (optionnel à ajouter)
------------------------------*/
footer {
  background: #176139;
  color: #fff;
  padding: 40px 0;
}

footer a {
  color: var(--light);
  text-decoration: none;
}

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

/*------------------------------
  BOUTONS AMÉLIORÉS AVEC EFFETS
------------------------------*/

/* Bouton principal vert (Voir & Postuler) */
.btn-apply, .btn-hero-secondary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 106, 78, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-apply:before, .btn-hero-secondary:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-apply:hover, .btn-hero-secondary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-apply:hover:before, .btn-hero-secondary:hover:before {
  left: 100%;
}

/* Bouton doré (S'inscrire) */
.btn-register, .btn-hero-primary, .btn-subscribe {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-register:before, .btn-hero-primary:before, .btn-subscribe:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-register:hover, .btn-hero-primary:hover, .btn-subscribe:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 106, 78, 0.4);
}

.btn-register:hover:before, .btn-hero-primary:hover:before, .btn-subscribe:hover:before {
  left: 100%;
}

/* Bouton de lecture des articles */
.btn-read-more, .btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.btn-read-more:hover, .btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Effets de pulsation pour les boutons importants */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.btn-register:focus, .btn-subscribe:focus {
  animation: pulse 2s infinite;
}

/* Amélioration des boutons existants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 106, 78, 0.2);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.3);
}

/* Boutons outline améliorés */
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.3);
}

/* Effet de survol pour les icônes dans les boutons */
.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Animation de chargement pour les boutons */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
  .btn-apply, .btn-register, .btn-hero-primary, .btn-hero-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-apply, .btn-register {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/*------------------------------
  CARTES AMÉLIORÉES
------------------------------*/

/* Amélioration des cartes d'opportunités */
.opportunity-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 106, 78, 0.1);
  border: 1px solid rgba(0, 106, 78, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.opportunity-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
}

.opportunity-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 106, 78, 0.2);
  border-color: var(--primary);
}

.opportunity-item:hover::before {
  width: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
}

/* Animation au survol des cartes */
.opportunity-item .item-content h4 a {
  position: relative;
  transition: var(--transition);
}

.opportunity-item .item-content h4 a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.3s ease;
}

.opportunity-item:hover .item-content h4 a::after {
  width: 100%;
}

/* Amélioration des méta-informations */
.opportunity-item .meta span {
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  transition: var(--transition);
}

.opportunity-item:hover .meta span {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
}

/* Section héros améliorée */
.hero-content-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Amélioration des cartes "Pourquoi nous choisir" */
.why-us-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 106, 78, 0.1);
  position: relative;
  overflow: hidden;
}

.why-us-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.why-us-card:hover::before {
  transform: scale(1);
}

.why-us-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 106, 78, 0.15);
  border-color: var(--gold);
}

.why-us-card .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.why-us-card:hover .icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scale(1.1) rotate(5deg);
}

.why-us-card .icon i {
  font-size: 2rem;
  color: white;
  transition: var(--transition);
}

.why-us-card:hover .icon i {
  color: var(--dark);
  transform: scale(1.1);
}

/* Amélioration des articles/portraits */
.article-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

.article-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-card .article-img {
  position: relative;
  overflow: hidden;
}

.article-card .article-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 106, 78, 0.8), rgba(255, 215, 0, 0.8));
  opacity: 0;
  transition: var(--transition);
}

.article-card:hover .article-img::after {
  opacity: 1;
}

.article-card .portrait-image {
  transition: var(--transition);
}

.article-card:hover .portrait-image {
  transform: scale(1.1);
}

/* Animation de chargement pour les images */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}




/* Alignement mobile */
@media (max-width: 1200px) {
  .navmenu ul {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 1rem;
  }
  
  .navmenu .btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .mobile-nav-toggle {
    display: block !important;
  }
  
  .navmenu ul:not(.show) {
    display: none;
  }
}

/*------------------------------
  Responsive
------------------------------*/
@media (max-width: 768px) {
  
.hero {
  height: 100vh;
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('../img/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
}



  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .navmenu ul li {
    display: block;
    margin: 10px 0;
  }
}

/*==================================================
  BOUTONS SIMPLES - THÈME TOGOLAIS (OVERRIDE)
  Couleurs simples et épurées - Ajoutés directement dans main.css
==================================================*/

/* BOUTON VERT (Voir & Postuler) - Blanc sur vert → Vert sur blanc au survol */
.btn-apply, .btn-hero-secondary, .btn-apply-now, .btn-togo-green,
.btn[class*="apply"], .btn[class*="green"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: 2px solid var(--primary) !important;
  border-radius: 25px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: var(--primary) !important;
  color: white !important;
}

.btn-apply:hover, .btn-hero-secondary:hover, .btn-apply-now:hover, .btn-togo-green:hover,
.btn[class*="apply"]:hover, .btn[class*="green"]:hover {
  background: white !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3) !important;
}

/* BOUTON JAUNE (S'inscrire) - Blanc sur jaune → Jaune sur blanc au survol */
.btn-register, .btn-hero-primary, .btn-subscribe, .btn-togo-gold,
.btn[class*="register"], .btn[class*="gold"], .btn[class*="subscribe"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: 2px solid var(--gold) !important;
  border-radius: 25px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: var(--gold) !important;
  color: white !important;
}

.btn-register:hover, .btn-hero-primary:hover, .btn-subscribe:hover, .btn-togo-gold:hover,
.btn[class*="register"]:hover, .btn[class*="gold"]:hover, .btn[class*="subscribe"]:hover {
  background: white !important;
  color: var(--gold-dark) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

/* Effets actifs */
.btn-apply:active, .btn-register:active, 
.btn-hero-secondary:active, .btn-hero-primary:active,
.btn-apply-now:active, .btn-subscribe:active {
  transform: translateY(0) !important;
  transition: all 0.1s ease !important;
}

/* BOUTON "EN SAVOIR PLUS" DU BLOG - Style simple */
.btn-read-more, .btn-primary-custom, .btn-togo-read {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  border: 2px solid var(--primary) !important;
  border-radius: 20px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: var(--primary) !important;
  color: white !important;
}

.btn-read-more:hover, .btn-primary-custom:hover, .btn-togo-read:hover {
  background: white !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3) !important;
}

/* BOUTONS MODAL (Fermer et Partager) */
.btn-outline-secondary, .btn-outline-warning {
  border: 2px solid !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
}

.btn-outline-secondary {
  border-color: #6c757d !important;
  color: #6c757d !important;
  background: white !important;
}

.btn-outline-secondary:hover {
  background: #6c757d !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.btn-outline-warning {
  border-color: var(--gold) !important;
  color: var(--gold-dark) !important;
  background: white !important;
}

.btn-outline-warning:hover {
  background: var(--gold) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(230, 184, 0, 0.3) !important;
}

/* MASQUER LES BOUTONS MODAL EN BAS DE PAGE */
/* Si des boutons modal apparaissent incorrectement en bas de page */
.modal:not(.show) .modal-footer {
  display: none !important;
}

/* S'assurer que les modals fermées ne laissent pas de traces */
.modal-backdrop:not(.show) {
  display: none !important;
}

/* Forcer la fermeture des éléments modals flottants */
body > .modal-footer,
body > .btn-outline-secondary,
body > .btn-outline-warning {
  display: none !important;
}

/* MASQUER DEFINITIVEMENT LES BOUTONS PROBLEMATIQUES EN BAS DE PAGE */
/* Cibler tous les éléments avec "Fermer" ou "Partager" qui ne sont pas dans une modal active */
button:not(.modal.show button)[class*="outline"]:contains("Fermer"),
button:not(.modal.show button)[class*="outline"]:contains("Partager"),
.btn:contains("Fermer"):not(.modal.show .btn),
.btn:contains("Partager"):not(.modal.show .btn) {
  display: none !important;
}

/* Alternative plus large - masquer les boutons avec ces icônes en dehors des modals */
body > button[class*="outline"],
body > .btn[class*="outline"] {
  display: none !important;
}

/* S'assurer qu'aucun élément flottant n'apparaît */
.position-fixed.btn,
.position-absolute.btn {
  display: none !important;
}

/* TITRE DU MODAL TOUJOURS VISIBLE SUR FOND VERT/FONCÉ */
.modal-header.bg-gradient-success .modal-title,
.modal-header.bg-success .modal-title,
.modal-header.text-white .modal-title {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 0 #004A37;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

/* Si le fond est trop foncé, renforcer la visibilité */
.modal-header.bg-gradient-success,
.modal-header.bg-success {
  border-bottom: 2px solid #009B5C;
}
