/* css styles */
/* Styles personnalisés pour le portfolio Data Science */

/* Variables CSS */
:root {
  --primary-color: #2E86AB;
  --secondary-color: #A23B72;
  --accent-color: #F18F01;
  --dark-color: #1B2951;
  --light-color: #F5F9FC;
  --text-color: #2C3E50;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 2rem;
  margin: 0rem -2rem 3rem -2rem;
  text-align: center;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-banner h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Boutons personnalisés */
.btn {
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin: 0 8px;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: darken(var(--accent-color), 10%);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-secondary {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Grille et cartes */
.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.g-col-md-4 {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.g-col-md-4:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.g-col-md-4 h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Section Contact */
.contact-section {
  background: var(--dark-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin: 3rem -2rem -2rem -2rem;
}

.contact-section h2 {
  margin-bottom: 1rem;
  color: white;
}

/* Navigation multilingue */
.navbar .nav-link {
  transition: var(--transition);
}

.navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Graphiques et visualisations */
.plotly {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* Tables DataTables */
.dataTables_wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Code blocks */
.sourceCode {
  border-radius: var(--border-radius);
  border: 1px solid #e1e8ed;
}

/* Portfolio items */
.portfolio-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.portfolio-item h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Blog posts */
.blog-post {
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1rem;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .hero-banner h2 {
    font-size: 1.2rem;
  }
  
  .btn {
    display: block;
    margin: 8px 0;
    width: 100%;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .contact-section {
    margin: 2rem -1rem -1rem -1rem;
    padding: 2rem 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Support pour les langues avec caractères spéciaux */
html[lang="ja"] {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

html[lang="ja"] h1, 
html[lang="ja"] h2, 
html[lang="ja"] h3 {
  font-weight: 500;
}

/* Indicateurs de langue */
.lang-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  z-index: 1000;
}
