:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  /* Paramètres du carrousel */
  --logo-width: 200px;
  --nb-logos: 6; /* Nombre de logos réels (avant duplication) */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* --- Navigation --- */
nav {
  padding: 1.5rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -1px;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  margin-left: 2rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  background: var(--dark);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s;
}

/* --- CARROUSEL CLIENTS (Le moteur du défilement) --- */
.clients-section {
  padding: 4rem 0;
  background: #fff;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.clients-title {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

/* Effet de fondu sur les bords */
.clients-section::before,
.clients-section::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
  pointer-events: none;
}
.clients-section::before {
  left: 0;
  top: 0;
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}
.clients-section::after {
  right: 0;
  top: 0;
  background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

/* --- LE CARROUSEL (Spécial 6 logos) --- */
.section-logos {
  padding: 50px 0;
  background: white;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.diaporama {
  display: flex;
  /* 18 items (6 logos x 3) x 200px = 3600px */
  width: 3600px;
  animation: defilement-infini 25s linear infinite;
}

@keyframes defilement-infini {
  0% {
    transform: translateX(0);
  }
  100% {
    /* On décale toujours de la largeur d'UN SEUL groupe de 6 */
    /* 6 x 200px = 1200px */
    transform: translateX(-1200px);
  }
}

.logo-item {
  width: 200px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  /* On remet le font-size à la normale au cas où il y aurait du texte */
  font-size: 1rem;
}

.logo-item img {
  max-width: 160px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  /* Supprime l'espace sous l'image */
  display: block;
}

/* Optionnel : Pause quand on passe la souris */
.section-logos:hover .diaporama {
  animation-play-state: paused;
}

/* --- Grille de Projets --- */
.work {
  padding: 5rem 10%;
}
.section-title {
  margin-bottom: 3rem;
  font-size: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

footer {
  padding: 3rem 10%;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
  :root {
    --logo-width: 180px;
  }
}
footer {
  padding: 40px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Espace entre le texte et l'icône */
}

.social-link {
  color: #64748b; /* Couleur grise comme ton texte */
  transition: all 0.3s ease;
  display: inline-block;
}

.social-link:hover {
  color: #0077b5; /* Le bleu officiel de LinkedIn au survol */
  transform: translateY(-3px);
}

.social-link svg {
  width: 28px;
  height: 28px;
}
/* --- SECTION DOSSIERS --- */
.dossiers-section {
  padding: 80px 10%;
  background-color: var(--light);
}

.section-subtitle {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.article-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-content {
  padding: 60px 30px 30px 30px; /* Plus de padding en haut pour le badge */
}

.article-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.article-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limite à 3 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.read-more:hover {
  text-decoration: underline;
}
/* --- STYLE DE LA MODALE --- */
.modal {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8); /* Fond sombre */
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 35px;
  cursor: pointer;
  color: var(--gray);
}

/* Grille du CV */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.cv-photo {
  width: 100%;
  border-radius: 12px;
  filter: grayscale(20%);
  margin-bottom: 20px;
}

.cv-tagline {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.skills-list {
  list-style: none;
  font-size: 0.9rem;
}

.skills-list li::before {
  content: "•";
  color: var(--primary);
  margin-right: 8px;
  font-weight: bold;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    margin: 10% auto;
    padding: 20px;
  }
}
