@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  /* Compensation pour le header fixe */
}

.brand-accent {
  color: #22c55e;
}

.bg-brand-accent {
  background-color: #22c55e;
}

.border-brand-accent {
  border-color: #22c55e;
}

.bg-gradient-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
}

.brand-accent-yellow {
  color: #efbf04;
}

.bg-brand-accent-yellow {
  background-color: #efbf04;
}

.border-brand-accent-yellow {
  border-color: #efbf04;
}

.bg-gradient-mixed {
  background: linear-gradient(180deg, #22c55e 0%, #efbf04 50%, #22c55e 100%);
}

.bg-gradient-yellow {
  background: linear-gradient(135deg, #efbf04 0%, #f59e0b 50%, #d97706 100%);
}

/* Header fixe */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.seal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.seal-icon i {
  color: #22c55e;
  font-size: 36px;
}

.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #22c55e;
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.challenge-card {
  transition: all 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animation de scroll fluide personnalisée */
@keyframes smoothScroll {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-target {
  scroll-margin-top: 100px;
  /* Offset pour le header fixe */
}

/* Hero section avec layout côte à côte */
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  min-height: 80vh;
}

.hero-image {
  background-image: url("https://cemacfintechforum.com/wp-content/uploads/2024/02/DSC0011.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

@media (max-width: 1024px) {
  /* Force la largeur du conteneur parent */
  .lg\:w-1\/2 {
    width: 100% !important;
  }
}

/* Media queries pour mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-image {
    min-height: 250px;
    height: 250px !important;
    width: 100% !important;
    margin-top: 2rem;
    background-attachment: scroll;
    display: block;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Force la largeur du conteneur parent */
  .lg\:w-1\/2 {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero-image {
    min-height: 200px;
    height: 200px !important;
    width: 100% !important;
    border-radius: 15px;
    display: block;
  }
}

/* Limitation de la largeur du container sur très grands écrans */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px !important;
  }
}

/* PAGE D'ARTICLES*/
.group:hover .group-hover\:block {
  display: block !important;
}

/* Styles pour le contenu de l'article */
.article-content {
  line-height: 1.8;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1f2937;
}
.article-content h1 {
  font-size: 2rem;
}
.article-content h2 {
  font-size: 1.75rem;
}
.article-content h3 {
  font-size: 1.5rem;
}
.article-content h4 {
  font-size: 1.25rem;
}
.article-content p {
  margin-bottom: 1.5rem;
  color: #374151;
}
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}
.article-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}
.article-content a {
  color: #3b82f6;
  text-decoration: underline;
}
.article-content a:hover {
  color: #1d4ed8;
}
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.article-content code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
}
.article-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}
