/* Reset CSS de base */
* {
  margin: 0;
  padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
/* Variables CSS */
:root {
  --accent-color: #7b61ff;
  --text-color: #ffffff;
  --header-bg: rgba(0, 0, 0, 0.9);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.2);
  --card-width: 900px; /* largeur max modifiable des cartes */
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #000;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Page projets avec fond et opacitÃƒÂ© */
.page-projets {
  position: relative;
  min-height: 100vh;
  color: #fff;
}

.page-projets::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/fond.jpg") center/cover no-repeat fixed;
  z-index: -2;
  opacity: 0.2;
}

.page-projets::after {
  display: none;
}

/* (Styles de toggle de langue supprimÃ©s; gÃ©rÃ©s par header.css) */

/* Contenu principal */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px 60px;
}

.page-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Réduire la taille du nom dans le header */
.page-projets .logo { font-size: 0.95rem; }

@media (max-width: 900px) {
  .page-projets .logo { font-size: 1.2rem; }
}

/* Grille des projets en colonne verticale */
.projects-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

/* Carte de projet */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--card-width); /* largeur max configurable */
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #9b7dff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.2);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.project-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .main-content {
    padding: 120px 15px 40px;
  }
  .page-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  .project-card { padding: 1.5rem; max-width: 100%; width: 100%; }
  /* Eviter les débordements: pile texte/vidéo verticalement */
  .project-with-video .card-content { flex-direction: column; gap: 1rem; align-items: stretch; }
  .project-with-video .video-content { max-width: 100%; }
}
@media (max-width: 480px) {
  .project-card { padding: 1rem; }
  /* Espace entre le bord de la carte et les puces */
  .project-card ul {
    padding-left: 1.25rem;
    margin-left: 0;
    list-style-position: outside;
  }
  .project-card li { margin-bottom: 0.4rem; }
}
/* Flex pour les cartes avec vidÃƒÂ©o */
.project-with-video .card-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.project-with-video .text-content {
  flex: 1;
}

.project-with-video .video-content {
  flex: 1;
  max-width: 400px; /* largeur vidÃƒÂ©o configurable */
}

.project-with-video .video-content video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.project-card .video-content {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem; /* ajoutÃƒÂ© */
  display: flex;
  justify-content: center;
}

.project-card .video-content video {
  width: 100%;
  max-width: 600px; /* largeur max configurable */
  height: auto;
  border-radius: 10px;
}
