/* ============================================
   ACADEMIC ENHANCED CSS - Adrien Cloutier
   Design UI/UX pour site académique bilingue
   ============================================ */

/* ============================================
   1. TYPOGRAPHIE ACADÉMIQUE
   ============================================ */

/* Import de polices académiques (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Hiérarchie typographique claire */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 400;
}

/* Titres avec police serif académique */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: #111827 !important;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af !important;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151 !important;
  margin-bottom: 1.25rem;
}

/* ============================================
   2. HERO SECTION ACADÉMIQUE
   ============================================ */

#header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

#header header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#header h1 {
  font-size: 1.75rem !important;
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

#header h1 a {
  color: #ffffff !important;
  border-bottom: none !important;
}

#header p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6;
}

.image.avatar {
  margin-bottom: 1.5rem;
}

.image.avatar img {
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   3. NAVIGATION ACADÉMIQUE
   ============================================ */

#header nav ul {
  padding: 0;
}

#header nav ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#header nav ul li:first-child {
  border-top: none !important;
}

#header nav ul li a {
  padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: none;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

#header nav ul li a:hover,
#header nav ul li a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  padding-left: 2.25rem;
}

/* ============================================
   4. LANGUAGE TOGGLE AMÉLIORÉ
   ============================================ */

.language-toggle {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lang-button:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lang-button i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* ============================================
   5. SECTIONS PRINCIPALES
   ============================================ */

section {
  padding: 4rem 0;
}

section .container {
  max-width: 900px;
  margin: 0 auto;
}

section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827 !important;
  border-bottom: 3px solid #2563eb;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

/* Image principale (cover) */
.image.main {
  margin-bottom: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   6. CARDS ACADÉMIQUES PROFESSIONNELLES
   ============================================ */

.academic-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.academic-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.academic-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #1e40af !important;
}

.academic-card h4 a {
  color: #1e40af !important;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.academic-card h4 a:hover {
  border-bottom-color: #2563eb;
}

.academic-card .card-meta {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.academic-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563 !important;
}

/* Cards en colonnes (2 colonnes) */
.row.academic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 980px) {
  .row.academic-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   7. CENTRES DE RECHERCHE (CLESSN/CAPP)
   ============================================ */

.research-center-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.research-center-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
}

.research-center-card h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1e40af !important;
}

.research-center-card h4 a {
  color: #1e40af !important;
  text-decoration: none;
  border-bottom: none;
}

.research-center-card .center-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  display: block;
}

.research-center-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563 !important;
}

.research-center-card .button.small {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* ============================================
   8. PROJETS LIÉS (Datagotchi, Quorum)
   ============================================ */

.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.project-card .project-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.project-card .project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 0;
}

.project-card .project-content {
  padding: 2rem;
}

.project-card h4 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #1e40af !important;
}

.project-card h4 a {
  color: #1e40af !important;
  text-decoration: none;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563 !important;
}

/* Grid pour projets */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 980px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   9. SECTION CONFÉRENCES
   ============================================ */

.conference-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.conference-card:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
  border-color: #2563eb;
}

.conference-card .conference-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.conference-card .conference-content {
  padding: 2rem;
}

.conference-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #1e40af !important;
  line-height: 1.4;
}

.conference-card h4 a {
  color: #1e40af !important;
  text-decoration: none;
}

.conference-card .conference-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
  display: block;
}

.conference-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563 !important;
}

/* ============================================
   10. FEATURE ICONS AMÉLIORÉS
   ============================================ */

.feature-icons {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-icons li {
  position: relative;
  padding: 1.5rem 0 1.5rem 5rem;
  border-top: 1px solid #e5e7eb !important;
}

.feature-icons li:first-child {
  border-top: none !important;
}

.feature-icons li:before {
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.feature-icons li strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af !important;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-icons li a {
  font-weight: 600;
  color: #2563eb !important;
}

/* ============================================
   11. BOUTONS ACADÉMIQUES
   ============================================ */

.button,
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: none !important;
}

.button.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.button.primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.button.small {
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}

/* ============================================
   12. FOOTER ACADÉMIQUE COMPLET
   ============================================ */

#footer {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%) !important;
  padding: 3rem 0 2rem 0;
  border-top: 2px solid #e5e7eb;
}

.academic-footer {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
}

.academic-footer h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937 !important;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 980px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: #4b5563 !important;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-column ul li a:hover {
  color: #2563eb !important;
  border-bottom-color: #2563eb;
  padding-left: 0.25rem;
}

.footer-column ul li a i {
  margin-right: 0.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

#footer .copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280 !important;
  font-size: 0.85rem;
}

/* ============================================
   13. LIENS & ACCENTS
   ============================================ */

a[href]:not(.button) {
  color: #2563eb !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

a[href]:not(.button):hover {
  color: #1e40af !important;
  border-bottom-color: #1e40af;
}

strong {
  font-weight: 600;
  color: #1f2937 !important;
}

em {
  font-style: italic;
  color: #374151;
}

/* ============================================
   14. RESPONSIVE ACADÉMIQUE
   ============================================ */

@media screen and (max-width: 1280px) {
  #header {
    position: relative;
    width: 100%;
  }

  section {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }
}

@media screen and (max-width: 980px) {
  body {
    font-size: 15px;
  }

  section {
    padding: 2.5rem 1.25rem;
  }

  .academic-card,
  .research-center-card,
  .project-card,
  .conference-card {
    padding: 1.5rem;
  }
}

/* ============================================
   15. UTILITAIRES ACADÉMIQUES
   ============================================ */

.text-muted {
  color: #6b7280 !important;
}

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

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

/* Accent bleu académique */
.accent-line {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  margin: 1rem 0 2rem 0;
}

/* Badge académique */
.academic-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  padding: 0.4rem 1rem;
  border-radius: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Section intro */
.section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563 !important;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
