/* Reset et variables modernes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --primary: #103467;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.03);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.08);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-links {
  padding-right: 0;
}

[dir="rtl"] .icon-arrow {
  transform: rotate(180deg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

/* Navbar - Correction complète pour RTL */
/* Navbar - Correction complète pour RTL */
.navbar {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
  width: 100%;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  /* Important : la direction dépend du HTML dir */
}

/* En RTL, le flexbox s'inverse automatiquement */
[dir="rtl"] .navbar .container {
  /* flex-direction reste row, mais start et end sont inversés automatiquement */
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-actions {
    order: 2;
  }
  
  .logo {
    order: 1;
  }
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  /* Important : la direction dépend du HTML dir */
}

/* En RTL, le flexbox s'inverse automatiquement */
[dir="rtl"] .navbar .container {
  /* flex-direction reste row, mais start et end sont inversés automatiquement */
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-actions {
    order: 2;
  }
  
  .logo {
    order: 1;
  }
}

/* Correction du logo pour RTL */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: opacity var(--transition);
  /* Supprimer toute marge ou padding directionnel */
  margin: 0;
  padding: 0;
}

/* En mode RTL, l'ordre des éléments flex reste le même (logo puis texte) */
/* Le conteneur parent gère la direction avec justify-content: space-between */

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform var(--transition);
  order: 0; /* Toujours en premier */
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 1; /* Toujours après l'image */
}

.logo-text .highlight {
  color: var(--primary);
}

/* Version responsive du logo */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-links a.active {
  background: #f7f7f7;
  color: #103467;
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Supprimer les anciens styles .dir-switch et ajouter : */

/* Language Switcher */
/* Language Switcher - Correction RTL */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  user-select: none;
  min-width: 100px;
  justify-content: space-between;
  white-space: nowrap;
}

.lang-current:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.lang-current .flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-current .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.lang-switcher.active .lang-current .arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; /* Aligné à droite par défaut (LTR) */
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 1000;
  overflow: hidden;
}

/* En RTL, le dropdown s'aligne à gauche */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-switcher.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--surface-hover);
}

.lang-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.lang-option .flag {
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-option .lang-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.lang-option .check-icon {
  color: var(--primary);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}

.lang-option.active .check-icon {
  opacity: 1;
}

/* RTL/LTR direction indicator */
.dir-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--surface);
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lang-current {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 100px;
  }
  
  .lang-dropdown {
    min-width: 180px;
    right: -20px;
  }
  
  [dir="rtl"] .lang-dropdown {
    left: -20px;
  }
}
/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #103467;
  color: white;
  border-color: #103467;
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: #ca003a;
  border-color: #ca003a;
  box-shadow: 0 6px 16px rgba(59,130,246,0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
}

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

.btn-ghost {
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

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

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.03) 0%, transparent 70%);
  animation: float 20s infinite linear;
}

@keyframes float {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 60px 0;
  }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.blog-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Post */
.post-container {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 40px;
}

.post-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.post-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
}

.post-content p {
  margin-bottom: 24px;
}

/* Footer */
.footer {
  border-top: 2px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Responsive Nav */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* Images Responsives */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.img-responsive:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  background: var(--surface);
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}

.img-caption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  font-style: italic;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.img-grid .img-container {
  margin: 0;
}

/* Lecteur Vidéo YouTube */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 24px 0;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-wrapper {
  margin: 32px 0;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.video-description {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery lightbox effect */
.img-lightbox {
  cursor: pointer;
  position: relative;
}

.img-lightbox::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  opacity: 0;
  transition: all var(--transition);
  background: rgba(0,0,0,0.5);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.img-lightbox:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

/* Responsive images in cards */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -32px -32px 20px -32px;
  width: calc(100% + 64px);
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  margin-right: -12px;
}

[dir="rtl"] .avatar-group .avatar {
  margin-right: 0;
  margin-left: -12px;
}

/* Image with overlay text */
.img-overlay {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-overlay img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.img-overlay .overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.overlay-content h3 {
  color: white;
  margin-bottom: 8px;
}

.overlay-content p {
  color: rgba(255,255,255,0.9);
}

/* Figure element */
figure {
  margin: 24px 0;
}

figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* Play button overlay for videos */
.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.video-thumbnail:hover .play-button {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Aspect ratios */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* Styles du logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-text .highlight {
  color: var(--primary);
}

/* Version responsive du logo */
@media (max-width: 768px) {
  .logo-img {
    height: 46px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
}

/* Logo dans le footer */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo .logo-img {
  height: 32px;
}

/* Favicon styles (pour s'assurer qu'il s'affiche bien) */
link[rel="icon"] {
  display: none;
}