@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* Cercina AI Brand Colors */
  --cercina-navy: #0B0B2B;
  --cercina-purple: #8246FF;
  --cercina-orange: #FFB84A;
  --cercina-blue-light: #6366F1;
  --cercina-pink-light: #EC4899;
  --cercina-gray-light: #F8FAFC;
  --cercina-gray-medium: #64748B;
  --cercina-gray-dark: #1E293B;
}

.dark {
  --background: var(--cercina-navy);
  --foreground: #FFFFFF;
  --card: rgba(255, 255, 255, 0.05);
  --card-foreground: #FFFFFF;
  --popover: var(--cercina-navy);
  --popover-foreground: #FFFFFF;
  --primary: var(--cercina-purple);
  --primary-foreground: #FFFFFF;
  --secondary: rgba(255, 255, 255, 0.1);
  --secondary-foreground: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.1);
  --muted-foreground: rgba(255, 255, 255, 0.7);
  --accent: rgba(130, 70, 255, 0.1);
  --accent-foreground: #FFFFFF;
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.1);
  --ring: var(--cercina-purple);
  --font-weight-medium: 500;
  --font-weight-normal: 300;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: rgba(255, 255, 255, 0.05);
  --sidebar-foreground: #FFFFFF;
  --sidebar-primary: var(--cercina-purple);
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: rgba(255, 255, 255, 0.1);
  --sidebar-accent-foreground: #FFFFFF;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-ring: var(--cercina-purple);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Custom animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(130, 70, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(130, 70, 255, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  animation: gradient-shift 6s ease infinite;
  background-size: 200% 200%;
}

/* Gradient utilities */
.bg-cercina-gradient {
  background: linear-gradient(135deg, #0B0B2B 0%, #1a1a3a 50%, #2a2a4a 100%);
}

.bg-hero-gradient {
  background: linear-gradient(135deg, #0B0B2B 0%, #1E1E3F 30%, #2D1B69 60%, #8246FF 100%);
}

.bg-card-gradient {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #8246FF 0%, #FFB84A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 43, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--cercina-purple), var(--cercina-orange));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 20px rgba(130, 70, 255, 0.4);
}

.brand-brain-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
  transition: all 0.3s ease;
}

.brand-logo:hover .brand-brain-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-name:hover {
  background: linear-gradient(135deg, var(--cercina-purple), var(--cercina-orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}

/* Hero Section */
/* Hero Section - Taille maximale */
.hero {
  position: relative;
  min-height: 85vh; /* Augmenté de 70vh à 85vh */
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 95vh; /* Augmenté de 85vh à 95vh */
  }
}

@media (min-width: 1440px) {
  .hero {
    min-height: 100vh; /* Plein écran sur très large écran */
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 60vh;
  }
}

/* Background gradient - Couleurs conservées */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--cercina-navy), #1a1a4a, #2d2d6d);
}

/* Subtle background pattern - Couleurs conservées */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-radial-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(130, 70, 255, 0.1), transparent 50%);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 120rem; /* Augmenté de 100rem à 120rem */
  margin: 0 auto;
  padding: 4rem 3rem; /* Augmenté le padding vertical */
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 6rem 4rem; /* Augmenté le padding */
  }
}

@media (min-width: 1440px) {
  .hero-container {
    padding: 8rem 5rem; /* Maximum padding sur très large écran */
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem; /* Augmenté de 5rem à 6rem */
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr; /* Bloc d'écriture plus large à gauche */
    gap: 12rem; /* Augmenté de 8rem à 12rem */
    align-items: flex-start;
  }
}

@media (min-width: 1440px) {
  .hero-grid {
    gap: 15rem; /* Augmenté de 10rem à 15rem */
  }
}

/* Left: Text Content - Repositionné à gauche */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideInLeft 0.8s ease-out;
  order: 1; /* Force à gauche */
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    order: 1; /* Reste à gauche sur desktop */
    max-width: none; /* Utilise tout l'espace disponible */
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Titre et sous-titre empilés verticalement */
.hero-title-section {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  gap: 1.5rem; 
  width: 100%;
  margin-bottom: 1.5rem; 
}

.hero-main-title {
  font-size: 3rem; /* Réduit de 4rem à 3rem */
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #8246FF 0%, #FFB84A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-main-title {
    font-size: 4rem; /* Réduit de 5.5rem à 4rem */
  }
}

@media (min-width: 1440px) {
  .hero-main-title {
    font-size: 5rem; /* Réduit de 7rem à 5rem */
  }
}

.hero-subtitle {
  font-size: 1.75rem; /* Réduit de 2rem à 1.75rem */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 2.25rem; /* Réduit de 2.75rem à 2.25rem */
  }
}

@media (min-width: 1440px) {
  .hero-subtitle {
    font-size: 2.75rem; /* Réduit de 3.5rem à 2.75rem */
  }
}

/* Description et éléments sur une ligne horizontale */
.hero-content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap; /* Pas de retour à la ligne */
  width: 100%;
  overflow-x: auto; /* Scroll horizontal si nécessaire */
}

@media (max-width: 768px) {
  .hero-content-row {
    flex-direction: column; /* Vertical sur mobile */
    align-items: flex-start;
    gap: 1rem;
  }
}

.hero-description {
  font-size: 1.25rem; /* Réduit de 1.5rem à 1.25rem */
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  flex: 1; /* Prend l'espace disponible */
  min-width: 0; /* Permet la compression */
  animation: slideInUp 0.8s ease-out 0.3s both;
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.5rem; /* Réduit de 1.875rem à 1.5rem */
  }
}

@media (min-width: 1440px) {
  .hero-description {
    font-size: 1.75rem; /* Réduit de 2.25rem à 1.75rem */
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ligne d'accent horizontale avec le contenu */
.hero-accent-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.hero-accent-line {
  width: 100px; /* Augmenté de 60px à 100px */
  height: 4px; /* Augmenté de 3px à 4px */
  background: linear-gradient(to right, var(--cercina-purple), var(--cercina-orange));
  border-radius: 2px;
  animation: expandLine 1s ease-out 0.6s both;
  flex-shrink: 0;
}

@keyframes expandLine {
  from { width: 0; }
  to { width: 100px; } /* Ajusté à la nouvelle largeur */
}

/* Méta-informations sur une ligne */
.hero-meta-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 1rem; /* Augmenté de 0.875rem à 1rem */
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
  .hero-meta-info {
    font-size: 1.125rem; /* Augmenté pour desktop */
  }
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hero-meta-icon {
  width: 1.25rem; /* Augmenté de 1rem à 1.25rem */
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (min-width: 1024px) {
  .hero-meta-icon {
    width: 1.5rem; /* Encore plus grand sur desktop */
    height: 1.5rem;
  }
}

/* Stats en ligne horizontale */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 4rem;
}

.hero-stat:hover {
  background: rgba(130, 70, 255, 0.1);
  border-color: rgba(130, 70, 255, 0.3);
  transform: translateY(-2px);
}

.hero-stat-number {
  font-size: 1.75rem; /* Augmenté de 1.25rem à 1.75rem */
  font-weight: 700;
  color: var(--cercina-orange);
  margin: 0;
  line-height: 1;
}

@media (min-width: 1024px) {
  .hero-stat-number {
    font-size: 2rem; /* Encore plus grand sur desktop */
  }
}

.hero-stat-label {
  font-size: 0.875rem; /* Augmenté de 0.75rem à 0.875rem */
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1;
}

@media (min-width: 1024px) {
  .hero-stat-label {
    font-size: 1rem; /* Plus grand sur desktop */
  }
}

/* Tags en ligne horizontale */
.hero-tags-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.hero-tag {
  padding: 0.5rem 1rem; /* Augmenté le padding */
  background: rgba(130, 70, 255, 0.1);
  border: 1px solid rgba(130, 70, 255, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem; /* Augmenté de 0.75rem à 0.875rem */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hero-tag {
    font-size: 1rem; /* Encore plus grand sur desktop */
    padding: 0.625rem 1.25rem;
  }
}

.hero-tag:hover {
  background: var(--cercina-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 70, 255, 0.3);
}

/* Right: AI & Development Visual - Repositionné à droite */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease-out 0.2s both;
  order: 2; /* Force à droite */
}

@media (min-width: 1024px) {
  .hero-visual {
    order: 2; /* Reste à droite sur desktop */
    justify-content: flex-end;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 45rem; /* Augmenté de 35rem à 45rem */
  aspect-ratio: 1;
}

@media (min-width: 1024px) {
  .hero-visual-container {
    max-width: 55rem; /* Augmenté de 40rem à 55rem */
  }
}

@media (min-width: 1440px) {
  .hero-visual-container {
    max-width: 65rem; /* Augmenté de 45rem à 65rem */
  }
}

/* Central AI Brain - Taille encore plus réduite */
.central-brain {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6rem; /* Réduit de 8rem à 6rem */
  height: 6rem; /* Réduit de 8rem à 6rem */
  background: linear-gradient(to bottom right, rgba(130, 70, 255, 0.3), rgba(255, 184, 74, 0.3));
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(130, 70, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: pulseRotate 4s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .central-brain {
    width: 8rem; /* Réduit de 11rem à 8rem */
    height: 8rem; /* Réduit de 11rem à 8rem */
  }
}

@media (min-width: 1440px) {
  .central-brain {
    width: 10rem; /* Réduit de 14rem à 10rem */
    height: 10rem; /* Réduit de 14rem à 10rem */
  }
}

@keyframes pulseRotate {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
  }
}

.brain-icon {
  width: 3rem; /* Réduit de 4rem à 3rem */
  height: 3rem; /* Réduit de 4rem à 3rem */
  fill: var(--cercina-purple);
}

@media (min-width: 1024px) {
  .brain-icon {
    width: 4rem; /* Réduit de 5.5rem à 4rem */
    height: 4rem; /* Réduit de 5.5rem à 4rem */
  }
}

@media (min-width: 1440px) {
  .brain-icon {
    width: 5rem; /* Réduit de 7rem à 5rem */
    height: 5rem; /* Réduit de 7rem à 5rem */
  }
}

/* Floating Icons - Effets hover améliorés */
.floating-icon {
  position: absolute;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem; /* Augmenté de 0.75rem à 1rem */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInScale 0.8s ease-out both;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Effet de brillance au hover */
.floating-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(130, 70, 255, 0.1), 
    rgba(255, 184, 74, 0.1), 
    transparent
  );
  transform: rotate(-45deg) translateX(-100%);
  transition: transform 0.6s ease;
  opacity: 0;
}

.floating-icon:hover::before {
  transform: rotate(-45deg) translateX(100%);
  opacity: 1;
}

.floating-icon:hover {
  border-color: rgba(130, 70, 255, 0.6);
  background: linear-gradient(145deg, 
    rgba(130, 70, 255, 0.15), 
    rgba(255, 184, 74, 0.08)
  );
  transform: translateY(-8px) scale(1.1);
  box-shadow: 
    0 15px 40px rgba(130, 70, 255, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .floating-icon {
    padding: 1.5rem; /* Augmenté de 1rem à 1.5rem */
  }
  
  .floating-icon:hover {
    transform: translateY(-12px) scale(1.15);
  }
}

@media (min-width: 1440px) {
  .floating-icon {
    padding: 2rem; /* Maximum padding */
  }
  
  .floating-icon:hover {
    transform: translateY(-15px) scale(1.2);
  }
}

.floating-icon:hover {
  border-color: rgba(130, 70, 255, 0.5);
  background: linear-gradient(145deg, rgba(130, 70, 255, 0.1), rgba(255, 184, 74, 0.05));
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(130, 70, 255, 0.3);
}

.icon-svg {
  width: 2.5rem; /* Augmenté de 2rem à 2.5rem */
  height: 2.5rem; /* Augmenté de 2rem à 2.5rem */
  stroke: var(--cercina-purple);
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .icon-svg {
    width: 3.5rem; /* Augmenté de 2.5rem à 3.5rem */
    height: 3.5rem; /* Augmenté de 2.5rem à 3.5rem */
  }
}

@media (min-width: 1440px) {
  .icon-svg {
    width: 4.5rem; /* Augmenté de 3rem à 4.5rem */
    height: 4.5rem; /* Augmenté de 3rem à 4.5rem */
  }
}

.floating-icon:hover .icon-svg {
  stroke: var(--cercina-orange);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 184, 74, 0.6));
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Icon positions - conservées */
.top-left {
  top: 1.5rem;
  left: 1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  animation-delay: 0.5s;
}

.top-left:hover {
  transform: translateY(-5px) scale(1.05) rotate(-5deg);
}

.top-right {
  top: 1.5rem;
  right: 1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  animation-delay: 0.7s;
}

.top-right:hover {
  transform: translateY(-5px) scale(1.05) rotate(5deg);
}

.bottom-left {
  bottom: 1.5rem;
  left: 1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  animation-delay: 0.9s;
}

.bottom-left:hover {
  transform: translateY(-5px) scale(1.05) rotate(-3deg);
}

.bottom-right {
  bottom: 1.5rem; 
  right: 1.5rem; 
  width: 4.5rem;
  height: 4.5rem;
  animation-delay: 1.1s;
}

.bottom-right:hover {
  transform: translateY(-5px) scale(1.05) rotate(3deg);
}

.middle-left {
  left: 0.25rem; 
  top: 50%;
  transform: translateY(-50%);
  width: 4rem; 
  height: 4rem; 
  animation: floatLeftRight 3.5s ease-in-out infinite;
}

.middle-left:hover {
  transform: translateY(-50%) translateY(-8px) scale(1.1);
  animation-play-state: paused;
}

@keyframes floatLeftRight {
  0%, 100% {
    transform: translateY(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-50%) translateY(-8px) rotate(3deg);
  }
}

.middle-right {
  right: 0.25rem; 
  top: 33%;
  width: 3.5rem; 
  height: 3.5rem; 
  animation: flowRight 3s ease-in-out infinite;
  gap: 0.25rem;
}

.middle-right:hover {
  transform: translateX(8px) scale(1.15);
  animation-play-state: paused;
}

@keyframes flowRight {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

.top-middle {
  top: 0.75rem; 
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem; 
  height: 3.5rem; 
  animation: spinPulse 8s linear infinite, scalePulse 2s ease-in-out infinite;
}

.top-middle:hover {
  transform: translateX(-50%) scale(1.2);
  animation-play-state: paused;
}

@keyframes spinPulse {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes scalePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.bottom-middle {
  bottom: 0.75rem; 
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3.5rem; 
  background: linear-gradient(to bottom right, rgba(130, 70, 255, 0.3), rgba(255, 184, 74, 0.3));
  border: 1px solid rgba(255, 184, 74, 0.4);
  border-radius: 50%;
  animation: rockFloat 4s ease-in-out infinite;
}

.bottom-middle:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 25px rgba(255, 184, 74, 0.6);
  animation-play-state: paused;
}

@keyframes rockFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateX(-50%) translateY(-5px) rotate(5deg);
  }
}

/* Background glow effects - Tailles maximales */
.glow-effects {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.glow-purple {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 15rem; /* Augmenté de 10rem à 15rem */
  height: 15rem; /* Augmenté de 10rem à 15rem */
  background: rgba(130, 70, 255, 0.2);
  border-radius: 50%;
  filter: blur(6rem); /* Augmenté de 4rem à 6rem */
  animation: glowPulse1 5s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .glow-purple {
    width: 20rem; /* Augmenté de 12rem à 20rem */
    height: 20rem; /* Augmenté de 12rem à 20rem */
    filter: blur(8rem); /* Augmenté de 5rem à 8rem */
  }
}

@media (min-width: 1440px) {
  .glow-purple {
    width: 25rem; /* Maximum sur très large écran */
    height: 25rem;
    filter: blur(10rem);
  }
}

.glow-orange {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 18rem; /* Augmenté de 12rem à 18rem */
  height: 18rem; /* Augmenté de 12rem à 18rem */
  background: rgba(255, 184, 74, 0.2);
  border-radius: 50%;
  filter: blur(6rem); /* Augmenté de 4rem à 6rem */
  animation: glowPulse2 6s ease-in-out infinite 2s;
}

@media (min-width: 1024px) {
  .glow-orange {
    width: 25rem; /* Augmenté de 15rem à 25rem */
    height: 25rem; /* Augmenté de 15rem à 25rem */
    filter: blur(8rem); /* Augmenté de 5rem à 8rem */
  }
}

@media (min-width: 1440px) {
  .glow-orange {
    width: 30rem; /* Maximum sur très large écran */
    height: 30rem;
    filter: blur(10rem);
  }
}

@keyframes glowPulse1 {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

@keyframes glowPulse2 {
  0%, 100% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* Responsive - Ajustements pour mobile avec tailles maximales */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh; /* Augmenté de 60vh à 75vh */
  }
  
  .hero-container {
    padding: 3rem 1.5rem; /* Augmenté le padding */
  }
  
  .hero-content {
    gap: 2rem; /* Augmenté de 1.5rem à 2rem */
  }
  
  .hero-main-title {
    font-size: 2.5rem; /* Réduit de 3.25rem à 2.5rem */
  }
  
  .hero-visual-container {
    max-width: 35rem; /* Augmenté de 28rem à 35rem */
  }
  
  .central-brain {
    width: 5rem; /* Réduit de 7.5rem à 5rem */
    height: 5rem; /* Réduit de 7.5rem à 5rem */
  }
  
  .brain-icon {
    width: 2.5rem; /* Réduit de 3.75rem à 2.5rem */
    height: 2.5rem; /* Réduit de 3.75rem à 2.5rem */
  }
  
  /* Sur mobile, revenir aux colonnes pour une meilleure lisibilité */
  .hero-content-row,
  .hero-stats-row,
  .hero-tags-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .hero-stats-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.brain-icon {
  width: 4rem;
  height: 4rem;
  fill: var(--cercina-purple);
}

/* Circuit SVG */
.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Neural network lines animations */
.neural-line-1 { animation: drawLine 4s ease-in-out infinite; }
.neural-line-2 { animation: drawLine 4s ease-in-out infinite 1s; }
.neural-line-3 { animation: drawLine 4s ease-in-out infinite 2s; }
.neural-line-4 { animation: drawLine 4s ease-in-out infinite 3s; }

@keyframes drawLine {
  0%, 100% { stroke-dasharray: 0, 200; }
  50% { stroke-dasharray: 200, 0; }
}

/* Circuit paths animations */
.circuit-path-1 { animation: drawPath 6s ease-in-out infinite; }
.circuit-path-2 { animation: drawPath 6s ease-in-out infinite 1.5s; }
.circuit-path-3 { animation: drawPath 6s ease-in-out infinite 3s; }
.circuit-path-4 { animation: drawPath 6s ease-in-out infinite 4.5s; }

@keyframes drawPath {
  0%, 100% { stroke-dasharray: 0, 300; }
  50% { stroke-dasharray: 300, 0; }
}

/* Circuit nodes animations */
.circuit-node-1 { animation: pulseNode 3s ease-in-out infinite; }
.circuit-node-2 { animation: pulseNode 3s ease-in-out infinite 0.75s; }
.circuit-node-3 { animation: pulseNode 3s ease-in-out infinite 1.5s; }
.circuit-node-4 { animation: pulseNode 3s ease-in-out infinite 2.25s; }

@keyframes pulseNode {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Floating Icons */
.floating-icon {
  position: absolute;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: fadeInScale 0.8s ease-out both;
  cursor: pointer;
}

.floating-icon:hover {
  border-color: rgba(130, 70, 255, 0.5);
  background: linear-gradient(145deg, rgba(130, 70, 255, 0.1), rgba(255, 184, 74, 0.05));
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(130, 70, 255, 0.3);
}

.icon-svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--cercina-purple);
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}


.floating-icon:hover .icon-svg {
  stroke: var(--cercina-orange);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 184, 74, 0.6));
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Icon positions */
.top-left {
  top: 2rem;
  left: 2rem;
  width: 6rem;
  height: 6rem;
  animation-delay: 0.5s;
}

.top-left:hover {
  transform: translateY(-5px) scale(1.05) rotate(-5deg);
}

.top-right {
  top: 2rem;
  right: 2rem;
  width: 6rem;
  height: 6rem;
  animation-delay: 0.7s;
}

.top-right:hover {
  transform: translateY(-5px) scale(1.05) rotate(5deg);
}

.bottom-left {
  bottom: 2rem;
  left: 2rem;
  width: 6rem;
  height: 6rem;
  animation-delay: 0.9s;
}

.bottom-left:hover {
  transform: translateY(-5px) scale(1.05) rotate(-3deg);
}

.bottom-right {
  bottom: 2rem;
  right: 2rem;
  width: 6rem;
  height: 6rem;
  animation-delay: 1.1s;
}

.bottom-right:hover {
  transform: translateY(-5px) scale(1.05) rotate(3deg);
}

.middle-left {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  animation: floatLeftRight 3.5s ease-in-out infinite;
}

.middle-left:hover {
  transform: translateY(-50%) translateY(-8px) scale(1.1);
  animation-play-state: paused;
}

@keyframes floatLeftRight {
  0%, 100% {
    transform: translateY(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-50%) translateY(-8px) rotate(3deg);
  }
}

.middle-right {
  right: 0.5rem;
  top: 33%;
  width: 4rem;
  height: 4rem;
  animation: flowRight 3s ease-in-out infinite;
  gap: 0.25rem;
}

.middle-right:hover {
  transform: translateX(8px) scale(1.15);
  animation-play-state: paused;
}

@keyframes flowRight {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

.top-middle {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  animation: spinPulse 8s linear infinite, scalePulse 2s ease-in-out infinite;
}

.top-middle:hover {
  transform: translateX(-50%) scale(1.2);
  animation-play-state: paused;
}

@keyframes spinPulse {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes scalePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.bottom-middle {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, rgba(130, 70, 255, 0.3), rgba(255, 184, 74, 0.3));
  border: 1px solid rgba(255, 184, 74, 0.4);
  border-radius: 50%;
  animation: rockFloat 4s ease-in-out infinite;
}

.bottom-middle:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 25px rgba(255, 184, 74, 0.6);
  animation-play-state: paused;
}

@keyframes rockFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateX(-50%) translateY(-5px) rotate(5deg);
  }
}

/* Special icon animations */
.bot-icon .icon-svg {
  animation: wiggle 4s ease-in-out infinite;
}

.bot-icon:hover .icon-svg {
  animation-play-state: paused;
  transform: scale(1.1) rotate(15deg);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.zap-icon .icon-svg {
  animation: scalePulseIcon 2.5s ease-in-out infinite;
}

.zap-icon:hover .icon-svg {
  animation-play-state: paused;
  transform: scale(1.3);
  filter: drop-shadow(0 0 15px rgba(255, 184, 74, 0.8));
}

@keyframes scalePulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Flow indicator special elements */
.flow-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cercina-purple);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.middle-right:hover .flow-dot {
  background: var(--cercina-orange);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 184, 74, 0.8);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* AI Face */
.ai-face-container {
  position: relative;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
}

.bottom-middle:hover .ai-face-container {
  transform: scale(1.1);
}

.ai-eye {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--cercina-orange);
  border-radius: 50%;
  top: 0.25rem;
  transition: all 0.3s ease;
}

.bottom-middle:hover .ai-eye {
  background: var(--cercina-purple);
  box-shadow: 0 0 8px rgba(130, 70, 255, 0.8);
}

.ai-eye.left { left: 0.25rem; }
.ai-eye.right { right: 0.25rem; }

.ai-mouth {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.25rem;
  background: var(--cercina-orange);
  border-radius: 2px;
  animation: mouthScale 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.bottom-middle:hover .ai-mouth {
  background: var(--cercina-purple);
  width: 1rem;
  box-shadow: 0 0 8px rgba(130, 70, 255, 0.8);
}

@keyframes mouthScale {
  0%, 100% { transform: translateX(-50%) scaleX(1); }
  50% { transform: translateX(-50%) scaleX(1.2); }
}

/* Enhanced central brain hover */
.central-brain:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 40px rgba(130, 70, 255, 0.6);
  border-color: rgba(255, 184, 74, 0.6);
}

.central-brain:hover .brain-icon {
  transform: scale(1.1);
  fill: var(--cercina-orange);
  filter: drop-shadow(0 0 15px rgba(255, 184, 74, 0.8));
}

/* Background glow effects */
.glow-effects {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.glow-purple {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 8rem;
  height: 8rem;
  background: rgba(130, 70, 255, 0.2);
  border-radius: 50%;
  filter: blur(3rem);
  animation: glowPulse1 5s ease-in-out infinite;
}

.glow-orange {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 10rem;
  height: 10rem;
  background: rgba(255, 184, 74, 0.2);
  border-radius: 50%;
  filter: blur(3rem);
  animation: glowPulse2 6s ease-in-out infinite 2s;
}

@keyframes glowPulse1 {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

@keyframes glowPulse2 {
  0%, 100% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* Data packets */
.data-packets {
  position: absolute;
  inset: 0;
}

.data-packet {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: dataFlow 4s ease-in-out infinite;
}

.data-packet:nth-child(1) { animation-delay: 0s; }
.data-packet:nth-child(2) { animation-delay: 0.2s; }
.data-packet:nth-child(3) { animation-delay: 0.4s; }
.data-packet:nth-child(4) { animation-delay: 0.6s; }
.data-packet:nth-child(5) { animation-delay: 0.8s; }
.data-packet:nth-child(6) { animation-delay: 1s; }
.data-packet:nth-child(7) { animation-delay: 1.2s; }
.data-packet:nth-child(8) { animation-delay: 1.4s; }
.data-packet:nth-child(9) { animation-delay: 1.6s; }
.data-packet:nth-child(10) { animation-delay: 1.8s; }
.data-packet:nth-child(11) { animation-delay: 2s; }
.data-packet:nth-child(12) { animation-delay: 2.2s; }

@keyframes dataFlow {
  0%, 100% {
    transform: translateY(0) scale(0.5);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-60px) scale(1);
    opacity: 0.8;
  }
}

/* Main Content */
.main-content {
  padding-top: 2rem;
  background: var(--cercina-navy);
}

.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Search Section */

.search-section {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px; /* Réduit de 800px à 600px */
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  stroke: rgba(255, 255, 255, 0.5);
  fill: none;
  stroke-width: 2;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem; /* Réduction des paddings */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: var(--cercina-purple);
  box-shadow: 0 0 0 3px rgba(130, 70, 255, 0.2);
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center; 
}

.filter-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--cercina-purple);
  border-color: var(--cercina-purple);
  color: white;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .search-section {
    margin: 3rem 0;
  }
  
  .search-container {
    max-width: 100%;
    margin-bottom: 2rem;
    padding: 0.5rem;
  }
  
  .search-input {
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
  }
  
  .search-icon {
    left: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .filters {
    gap: 0.75rem;
    justify-content: center;
  }
  
  .filter-tag {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .search-container {
    max-width: 650px;
  }
  
  .filters {
    max-width: 800px;
  }
}

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* États de focus pour l'accessibilité */
.search-input:focus,
.filter-tag:focus {
  outline: 2px solid var(--cercina-purple);
  outline-offset: 2px;
}

/* Effet de pulsation pour le tag actif */
@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(130, 70, 255, 0.4),
      0 4px 12px rgba(255, 184, 74, 0.3);
  }
  50% {
    box-shadow: 
      0 12px 35px rgba(130, 70, 255, 0.5),
      0 6px 18px rgba(255, 184, 74, 0.4);
  }
}

.filter-tag.active {
  animation: pulse 3s ease-in-out infinite;
}

/* Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Article Card Styles */
.article-card-group {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card-group:hover {
  transform: translateY(-8px) scale(1.02);
}

.article-card {
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card-group:hover .article-card {
  border-color: rgba(130, 70, 255, 0.3);
}

.article-image-container {
  position: relative;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-group:hover .article-image {
  transform: scale(1.1);
}

.article-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}

.article-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(130, 70, 255, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.article-featured-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--cercina-orange);
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite alternate;
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-meta-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-group:hover .article-title {
  color: var(--cercina-purple);
}

.article-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-cta-container {
    padding-top: 2rem; /* Augmenté de 1rem à 2rem */
}

.article-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cercina-purple);
    background: none;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: none !important;
}

.article-cta:hover {
    color: var(--cercina-orange);
    transform: translateX(5px);
    border: none !important;
    outline: none !important;
}

.article-cta:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.article-cta:active {
    border: none !important;
    outline: none !important;
}

.article-cta-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.article-cta:hover .article-cta-icon {
    transform: translateX(4px);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}

.sidebar-card-header {
  padding: 1.5rem 1.5rem 0;
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.sidebar-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sidebar-card-content {
  padding: 1.5rem;
}

.sidebar-card-header + .sidebar-card-content {
  padding-top: 0;
}

.sidebar-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.sidebar-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--cercina-purple);
  box-shadow: 0 0 0 2px rgba(130, 70, 255, 0.2);
}

.sidebar-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--cercina-purple);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-button:hover {
  background: rgba(130, 70, 255, 0.8);
}

.trending-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-post {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin: 0;
}

.trending-title:hover {
  color: var(--cercina-purple);
}

.trending-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trending-category {
  padding: 0.125rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.trending-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.trending-icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.trending-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.tag:hover {
  background: rgba(130, 70, 255, 0.2);
  border-color: rgba(130, 70, 255, 0.3);
  color: white;
}

/* Footer */
.footer {
  background: rgba(11, 11, 43, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

 /* Clean Animated Background */
        .footer-background {
            position: absolute;
            inset: 0;
        }

        .footer-bg-gradient {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, #0B0B2B, #1a1a4a, #0B0B2B);
        }

        .footer-svg {
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0.2;
        }

        /* Simple flowing lines - clean design */
        .flowing-line-1 {
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: drawPathClean 12s ease-in-out infinite;
        }

        .flowing-line-2 {
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: drawPathClean 15s ease-in-out infinite 3s;
        }

        @keyframes drawPathClean {
            0%, 100% { 
                stroke-dashoffset: 1000;
                opacity: 0.3;
            }
            50% { 
                stroke-dashoffset: 0;
                opacity: 0.7;
            }
        }

        .pulsing-node-1 {
            animation: pulseNodeClean 3s ease-in-out infinite;
        }

        .pulsing-node-2 {
            animation: pulseNodeClean 3s ease-in-out infinite 1.5s;
        }

        @keyframes pulseNodeClean {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        /* Clean floating particles */
        .floating-particles {
            position: absolute;
            inset: 0;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            animation: floatParticle 8s infinite ease-in-out;
        }

        @keyframes floatParticleClean {
            0%, 100% { 
                transform: translateY(0) translateX(0);
                opacity: 0.2;
            }
            50% { 
                transform: translateY(-20px) translateX(10px);
                opacity: 0.5;
            }
        }

        /* Clean glowing orbs */
        .glow-orb-1 {
             position: absolute;
            top: 25%;
            left: 25%;
            width: 128px;
            height: 128px;
            background: rgba(130, 70, 255, 0.2);
            border-radius: 50%;
            filter: blur(48px);
            animation: glowOrb1 8s infinite ease-in-out;
        }

        .glow-orb-2 {
            position: absolute;
            bottom: 25%;
            right: 25%;
            width: 128px;
            height: 128px;
            background: rgba(255, 184, 74, 0.2);
            border-radius: 50%;
            filter: blur(48px);
            animation: glowOrb2 10s infinite ease-in-out;
            animation-delay: 4s;
        }

        @keyframes pulseOrbClean1 {
            0%, 100% { 
                transform: scale(1);
                opacity: 0.1;
            }
            50% { 
                transform: scale(1.2);
                opacity: 0.2;
            }
        }

        @keyframes pulseOrbClean2 {
            0%, 100% { 
                transform: scale(1.2);
                opacity: 0.1;
            }
            50% { 
                transform: scale(1);
                opacity: 0.2;
            }
        }

        /* Footer Content */
        .footer-content {
             position: relative;
            z-index: 10;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2.5rem 1.5rem 1.5rem;
        }

        /* Newsletter Section */
        .newsletter-section {
            text-align: center;
            margin-bottom: 2.5rem;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 0.2s forwards;
        }

        .newsletter-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 2rem;
            max-width: 512px;
            margin: 0 auto;
        }

        .newsletter-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
        }

        .newsletter-description {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 384px;
            margin: 0 auto;
        }

        @media (min-width: 640px) {
            .newsletter-form {
                flex-direction: row;
            }
        }

        .newsletter-input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 0.5rem;
            color: white;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .newsletter-input:focus {
            outline: none;
            border-color: #8246FF;
            box-shadow: 0 0 0 3px rgba(130, 70, 255, 0.2);
        }

        .newsletter-button {
            padding: 0.75rem 1.5rem;
            background: #8246FF;
            color: white;
            border: none;
            border-radius: 0.5rem;
            font-weight: 500;
            font-size: 0.875rem;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .newsletter-button:hover {
            background: rgba(130, 70, 255, 0.8);
        }

        /* Main Footer Grid */
        .footer-grid {
             display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .footer-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 2rem;
            }
        }

        /* Brand Section */
        .footer-brand {
            opacity: 0;
            animation: fadeInUp 0.6s ease-out 0.4s forwards;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        @media (min-width: 1024px) {
            .footer-brand {
                grid-column: span 2;
            }
        }

        .brand-header {
             display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .brand-logo {
            width: 2.5rem;
            height: 2.5rem;
            background: linear-gradient(to bottom right, #8246FF, #FFB84A);
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .brand-logo-text {
            color: white;
            font-weight: 700;
            font-size: 1rem;
        }

        .brand-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
        }


        /* Social Links */
        .social-links {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .social-link {
            width: 2.5rem;
            height: 2.5rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            animation: fadeInScale 0.3s ease-out forwards;
        }

        .social-link:nth-child(1) { animation-delay: 0.1s; }
        .social-link:nth-child(2) { animation-delay: 0.2s; }
        .social-link:nth-child(3) { animation-delay: 0.3s; }
        .social-link:nth-child(4) { animation-delay: 0.4s; }

        .social-link:hover {
            background: rgba(130, 70, 255, 0.2);
            color: #8246FF;
            transform: scale(1.1);
        }

        .social-icon {
            width: 1.25rem;
            height: 1.25rem;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        /* Footer Links Sections */
        .footer-links-section {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s ease forwards;
        }

        .footer-links-section:nth-of-type(2) { animation-delay: 0.2s; }
        .footer-links-section:nth-of-type(3) { animation-delay: 0.3s; }
        .footer-links-section:nth-of-type(4) { animation-delay: 0.4s; }

        .footer-section-title {
            font-weight: 600;
            color: white;
            margin-bottom: 1rem;
            text-transform: capitalize;
        }

        .footer-links-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-link-item {
            margin-bottom: 0.75rem;
            opacity: 0;
            transform: translateX(-10px);
            animation: slideInLeft 0.4s ease forwards;
        }

        .footer-link-item:nth-child(1) { animation-delay: 0.1s; }
        .footer-link-item:nth-child(2) { animation-delay: 0.15s; }
        .footer-link-item:nth-child(3) { animation-delay: 0.2s; }
        .footer-link-item:nth-child(4) { animation-delay: 0.25s; }

        @keyframes slideInLeft {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: all 0.2s ease;
            position: relative;
        }

        .footer-link:hover {
            color: white;
            transform: translateX(3px);
        }

        .external-icon {
            width: 0.75rem;
            height: 0.75rem;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .footer-link:hover .external-icon {
            opacity: 1;
        }

        /* Separator */
        .footer-separator {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 2rem 0;
        }

        /* Bottom section */
         
        .footer-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            opacity: 0;
            animation: fadeIn 0.8s ease forwards 0.8s;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
                gap: 0;
            }
        }


        .footer-copyright {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.875rem;
        }

        .footer-legal-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.875rem;
        }

        .footer-legal-link {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color 0.2s ease;
            opacity: 0;
            transform: translateY(10px);
            animation: fadeInUp 0.4s ease forwards;
        }

        .footer-legal-link:nth-child(1) { animation-delay: 0.6s; }
        .footer-legal-link:nth-child(2) { animation-delay: 0.7s; }
        .footer-legal-link:nth-child(3) { animation-delay: 0.8s; }

        .footer-legal-link:hover {
            color: #8246FF;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .footer-container {
                padding: 2rem 1rem;
            }
            
            .newsletter-section {
                margin-bottom: 2rem;
            }
            
            .newsletter-card {
                padding: 1.5rem;
            }
            
            .footer-grid {
                gap: 2rem;
            }
        }
/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-bottom {
    gap: 1rem;
  }
}
.footer-navigation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            margin: 3rem 0;
            padding: 2rem 0;
        }

        @media (max-width: 768px) {
            .footer-navigation {
                flex-direction: column;
                gap: 1.5rem;
            }
        }
        
        

/* Responsive Design */
@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    order: -1;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .content-container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .footer-container {
    padding: 2rem 1rem;
  }
  
  .floating-card {
    padding: 1rem;
  }
  
  .code-preview {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .filters {
    gap: 0.5rem;
  }
  
  .filter-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .search-container {
    margin-bottom: 1.5rem;
  }
  
  .sidebar-card-header,
  .sidebar-card-content {
    padding: 1rem;
  }
  
  .article-content {
    padding: 1rem;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.filter-tag:focus,
.article-cta:focus,
.sidebar-input:focus,
.sidebar-button:focus,
.tag:focus,
.footer-link:focus {
  outline: 2px solid var(--cercina-purple);
  outline-offset: 2px;
}
     
      /* Container pour les trois liens - Layout horizontal centré */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; 
    margin-top: 2rem;
    flex-wrap: nowrap; 
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem; 
        flex-wrap: wrap; 
    }
}


.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem; /* Légèrement réduit */
    font-weight: 500;
    padding: 0.7rem 1.3rem; /* Padding ajusté */
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px; /* Largeur minimum réduite */
    justify-content: center;
    white-space: nowrap; /* Empêcher le texte de passer à la ligne */
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(130, 70, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: white;
    background: rgba(130, 70, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(130, 70, 255, 0.2);
    border-color: rgba(130, 70, 255, 0.3);
}

.external-icon {
    width: 0.9rem;
    height: 0.9rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-3px);
}

.nav-link:hover .external-icon {
    opacity: 1;
    transform: translateX(0);
}
        .external-icon {
            width: 1rem;
            height: 1rem;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            opacity: 0;
            transition: all 0.3s ease;
            transform: translateX(-5px);
        }

        .nav-link:hover .external-icon {
            opacity: 1;
            transform: translateX(0);
        }
/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--cercina-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 70, 255, 0.8);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print styles */
@media print {
  .header,
  .sidebar,
  .footer {
    display: none;
  }
  
  .main-content {
    padding-top: 0;
  }
  
  .layout-grid {
    grid-template-columns: 1fr;
  }
}
/**modification**/
/* Popular Tags Section - Taille réduite */
.sidebar-card:last-child {
  min-height: 320px; /* Réduit de 400px à 320px */
}

.sidebar-card:last-child .sidebar-card-header {
  padding: 1.75rem 1.75rem 0.75rem; /* Padding réduit */
}

.sidebar-card:last-child .sidebar-card-content {
  padding: 1.75rem; /* Padding réduit */
  height: calc(100% - 70px); /* Ajusté */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-card:last-child .tags-container {
  gap: 0.875rem; /* Espace réduit entre les tags */
}

.sidebar-card:last-child .tag {
  padding: 0.5rem 0.875rem; /* Tags légèrement plus petits */
  font-size: 0.8rem; /* Texte légèrement réduit */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .sidebar-card:last-child {
    min-height: 280px; /* Réduit pour mobile */
  }
  
  .sidebar-card:last-child .sidebar-card-header,
  .sidebar-card:last-child .sidebar-card-content {
    padding: 1.25rem;
  }
}
/********style de load***************/
.load-more-block {
    position: relative;
    grid-column: 1 / -1; /* S'étend sur toute la largeur */
    margin: 3rem auto; /* Centrage avec marge automatique */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Limite la largeur maximale */
}

/* Load More Button Container */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #FFB84A 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px 0 rgba(255, 184, 74, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
    margin: 0 auto; /* Double centrage */
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(255, 184, 74, 0.4);
}

.load-more-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled::before {
    display: none;
}

.load-more-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon:not(.loading) {
    transform: translateY(2px);
}

.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Additional Articles Row - Les 3 articles côte à côte */
.additional-articles-row {
    grid-column: 1 / -1; /* S'étend sur toute la largeur (articles + sidebar) */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
}

/* Animation pour les nouveaux articles */
.additional-articles-row.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour mobile */
@media (max-width: 1024px) {
    .additional-articles-row {
        grid-template-columns: 1fr; /* Une colonne sur mobile */
        gap: 1.5rem;
    }
    
    .load-more-block {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .load-more-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    .load-more-icon {
        width: 14px;
        height: 14px;
    }
    
    .load-more-block {
        margin: 1.5rem auto;
    }
}
/* Additional Articles Row - Les 3 articles côte à côte */
.additional-articles-row {
    grid-column: 1 / -1; /* S'étend sur toute la largeur (articles + sidebar) */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
}

/* Animation pour les nouveaux articles */
.additional-articles-row.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour mobile */
@media (max-width: 1024px) {
    .additional-articles-row {
        grid-template-columns: 1fr; /* Une colonne sur mobile */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .load-more-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}
.article-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Ou directement sur votre composant motion.div */
.group.cursor-pointer:hover {
  cursor: pointer;
}
/**************style de lien de navigation  ********************/

a {
    text-decoration: none ;
}

a:focus {
    outline: none ;
}
/***************style ajouté********************/
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1700px;
    margin: 0 auto; 
}

.layout-grid.filtered-mode {
    grid-template-columns: 1fr 350px;
}

.layout-grid.filtered-mode .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Taille équilibrée avec image et texte plus grands */
.layout-grid.filtered-mode .article-card-group {
    max-height: 420px; /* Hauteur augmentée pour accommoder plus de contenu */
    overflow: hidden;
}

.layout-grid.filtered-mode .article-image {
    height: 12rem; /* Image plus grande - 160px */
}

.layout-grid.filtered-mode .article-content {
    padding: 2rem; /* Padding augmenté */
    gap: 0.75rem; /* Espacement augmenté */
}

.layout-grid.filtered-mode .article-title {
    font-size: 1.25rem; /* Titre plus grand */
    line-height: 1.3;
    font-weight: 600;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem; /* Plus d'espace après le titre */
}

.layout-grid.filtered-mode .article-excerpt {
    font-size: 0.875rem; /* Texte plus grand */
    line-height: 1.5;
    -webkit-line-clamp: 3; /* 3 lignes au lieu de 2 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem; /* Plus d'espace */
}

.layout-grid.filtered-mode .article-cta-container {
    padding-top: 0.75rem; /* Plus d'espacement */
}

.layout-grid.filtered-mode .article-cta {
    font-size: 0.9rem; /* CTA plus grand */
}

/* Afficher les métadonnées */
.layout-grid.filtered-mode .article-meta {
    display: flex; /* Réaffiche date et temps de lecture */
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .layout-grid.filtered-mode {
        grid-template-columns: 1fr;
    }
    
    .layout-grid.filtered-mode .articles-grid {
        grid-template-columns: 1fr;
    }
}
/******************style à ajouter***********************/
.load-more-block {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.load-more-container {
    position: relative;
}

.load-more-btn {
    background: linear-gradient(135deg, #8246FF, #9D5AFF); /* Violet par défaut */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 70, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 58, 228, 0.4);
}

/* État cliqué - Orange */
.load-more-btn:active,
.load-more-btn.clicked {
    background: linear-gradient(135deg, #FFB84A, #FF8C42);
    box-shadow: 0 4px 15px rgba(255, 184, 74, 0.4);
    transform: translateY(0);
}

.load-more-btn:active:hover,
.load-more-btn.clicked:hover {
    box-shadow: 0 6px 20px rgba(255, 184, 74, 0.5);
}

.load-more-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon {
    transform: translateY(2px);
}

#loadMoreText {
    transition: all 0.3s ease;
}
/*******************************************/

:root {
    --cercina-purple: #8246FF;
    --cercina-orange: #FFB84A;
}

/* Conteneur des boutons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Bouton principal (violet) */
.btn-primary {
    background: var(--cercina-purple);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 70, 255, 0.3);
    font-size: 1rem;
}

.btn-primary:hover {
    background: rgba(130, 70, 255, 0.8);
    transform: translateY(-2px) translateX(5px);
    box-shadow: 0 6px 20px rgba(130, 70, 255, 0.4);
}

/* Bouton secondaire (transparent) */
.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--cercina-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 184, 74, 0.2);
}

/* Icône dans le bouton principal */
.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Animation glow pour le bouton principal */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(130, 70, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(130, 70, 255, 0.5);
    }
}

.btn-primary {
    animation: glow 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
        text-align: center;
    }
}
.text-cercina-orange {
    color: var(--cercina-orange);
}
/************* foo&ter *****************/
.description-container {
    width: calc(100% + 4rem); /* Étend légèrement au-delà */
    margin-left: -2rem; /* Compense pour centrer */
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 2rem; /* Garde un peu d'espace */
}

.brand-description-simple {
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: justify;
    letter-spacing: 0.5px;
}

/* Version encore plus grande si besoin */
.brand-description-simple-large {
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    line-height: 1.9;
    margin: 0;
    padding: 0;
    font-size: 1.6rem; /* Encore plus grand */
    font-weight: 600; /* Plus gras */
    text-align: justify;
    letter-spacing: 0.8px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .brand-description-simple {
        font-size: 1.2rem; /* Légèrement réduit sur mobile */
        line-height: 1.7;
        letter-spacing: 0.3px;
    }
    
    .brand-description-simple-large {
        font-size: 1.4rem;
        line-height: 1.8;
        letter-spacing: 0.5px;
    }
}

/* Pour tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .brand-description-simple {
        font-size: 1.3rem;
    }
    
    .brand-description-simple-large {
        font-size: 1.5rem;
    }
}
/***************************************************************/
