/* Styles principaux de l'Observatoire Tchadien des Finances Publiques */

:root {
  --primary-color: #2a3990;
  --secondary-color: #4e5bc4;
  --accent-color: #6c30a8;
  --light-color: #ffffff;
  --dark-color: #222222;
  --gray-color: #f3f3f3;
  --border-color: #e1e1e1;
  --font-family: 'Inter', sans-serif;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  background-color: #f8f9fa;
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

/* Header styles */
.header {
  color: var(--light-color);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  height: 60px;
}

.header-top-right {
  display: flex;
  align-items: center;
}

.language-selector {
  margin-right: 15px;
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-menu a {
  color: var(--light-color);
  font-size: 14px;
}

/* Navigation */
.main-nav {
  padding: 10px 0;
  margin-top: 10px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: 20px;
}

.nav-item a {
  color: var(--light-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

/* Search bar */
.search-container {
  background-color: rgba(255, 255, 255, 0.2);
  padding-top: 35px;
  margin-top: 15px;
  border-radius: 10px;
}

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
}

.search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
}

/* Section headings */
.section-heading {
  text-align: center;
  margin: 40px 0 30px;
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

/* Collections section */
.collections {
  padding: 30px 0;
  background-color: var(--light-color);
}

.collection-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.collection-item {
  text-align: center;
  width: 120px;
  margin-bottom: 20px;
}

.collection-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--light-color);
}

.collection-item p {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
}

/* Videos section */
.videos-section {
  padding: 30px 0;
  background-color: var(--gray-color);
}

.video-slider {
  position: relative;
  margin: 20px auto;
  max-width: 800px;
}

.video-slide {
  background-color: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.video-slide img,
.video-slide video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--light-color);
  padding: 15px;
}

.video-caption h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.video-caption p {
  font-size: 14px;
}

.video-controls {
  text-align: center;
  margin-top: 15px;
}

.video-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.video-dot.active {
  background-color: var(--primary-color);
}

/* App promotion */
.app-promotion {
  padding: 40px 0;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-info {
  flex: 1;
  padding-right: 30px;
}

.app-badge {
  display: inline-block;
  margin-bottom: 15px;
}

.app-badge img {
  height: 60px;
  width: auto;
}

.app-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.app-info p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #555;
}

.download-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-button:hover {
  background-color: var(--accent-color);
}

.app-screenshots {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-screenshots img {
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-info {
  flex: 1;
  padding-right: 30px;
}

.app-info h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.app-info p {
  margin-bottom: 20px;
}

.app-screenshots {
  flex: 1;
  text-align: center;
}

.download-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.download-button:hover {
  background-color: var(--accent-color);
}

/* Statistics section */
.statistics {
  padding: 40px 0;
  background-color: var(--gray-color);
}

.chart-container {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.donut-chart {
  width: 100%;
  height: auto;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 5px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 5px;
}

.chart-button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  padding: 5px 15px;
  font-size: 12px;
}

/* News section */
.news-section {
  padding: 40px 0;
  background-color: var(--light-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.news-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 100%;
  height: 180px;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 15px;
}

.news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.news-date {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
}

/* Publications section */
.publications {
  padding: 40px 0;
  background-color: var(--gray-color);
}

.publication-card {
  display: flex;
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.publication-image {
  flex: 1;
  max-width: 180px;
  height: 100%;
  overflow: hidden;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .publication-image img {
  transform: scale(1.05);
}

.publication-content {
  flex: 3;
  padding: 15px;
}

.publication-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.publication-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.publication-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.download-link {
  color: var(--light-color);
  font-weight: 600;
  font-size: 14px;
  background-color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.download-link:hover {
  background-color: var(--accent-color);
}

.download-link::before {
  content: '\f019';
  font-family: 'FontAwesome';
  margin-right: 8px;
}

.social-share {
  display: flex;
}

.share-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 14px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.share-icon:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
}

/* App banner */
.app-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--light-color);
  padding: 40px 0;
  text-align: center;
  background-image: url('../images/app-banner-bg.svg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section {
  background-image: url('../images/search-bg.png');
}

.app-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 57, 144, 0.85), rgba(108, 48, 168, 0.85));
}

.app-banner .container {
  position: relative;
  z-index: 1;
}

.app-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.app-banner p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

.app-banner .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.app-banner .btn-primary {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 2px solid var(--light-color);
  transition: all 0.3s ease;
}

.app-banner .btn-primary:hover {
  background-color: transparent;
  color: var(--light-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 40px 0 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 20px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.footer-column a:hover {
  color: var(--light-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #ccc;
}

.social-icons {
  display: flex;
  margin-top: 15px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: var(--light-color);
}

/* Newsletter */
.newsletter {
  background-color: #282828;
  padding: 30px 0;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  border-radius: 4px 0 0 4px;
}

.newsletter-button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 10px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

.btn-secondary {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--light-color);
}

.btn-accent:hover {
  opacity: 0.9;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.badge-warning {
  background-color: #FFC107;
  color: #000;
}

.badge-success {
  background-color: #28a745;
  color: #fff;
}

.badge-danger {
  background-color: #dc3545;
  color: #fff;
}

.badge-info {
  background-color: var(--primary-color);
  color: #fff;
}

/* Responsive styles */
@media (max-width: 991px) {
  .footer-column {
    width: 50%;
  }
  
  .app-promotion {
    flex-direction: column;
  }
  
  .app-info {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .nav-list {
    flex-wrap: wrap;
  }
  
  .nav-item {
    margin-bottom: 5px;
  }
  
  .collection-item {
    width: 100px;
  }
  
  .footer-column {
    width: 100%;
  }
  
  .publication-card {
    flex-direction: column;
  }
  
  .publication-image {
    max-width: 100%;
    height: 150px;
  }
}

@media (max-width: 575px) {
  .header-top {
    flex-direction: column;
  }
  
  .header-top-right {
    margin-top: 15px;
  }
  
  .collection-icons {
    justify-content: center;
  }
  
  .collection-item {
    width: 80px;
    margin: 0 10px 20px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}
