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

html, body {
  font-family: 'Outfit', sans-serif;

  color: #f1f1f1;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: #1b1b1b;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #2c2c2c;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
}

nav ul li a:hover {
  color: #ffb400;
}

/* FOND ANIMÉ */
#background {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
}

/* FLÈCHES SCROLL */
.scroll-hold {
  position: fixed;
  font-size: 2rem;
  background-color: #1a1a1a;
  color: #5f4811;
  border: none;
  border-radius: 50%;
  padding: 12px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.scroll-down-btn {
  bottom: 30px;
  left: 95%;
  transform: translateX(-50%);
}

.scroll-up-btn {
  top: 30px;
  left: 95%;
  transform: translateX(-50%);
}

/* LAYOUT */
.container {
  display: flex;
  padding: 40px;
  gap: 40px;
  flex-wrap: wrap;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  flex-shrink: 0;
}

.sidebar h2 {
  color: #5f4811;
  margin-bottom: 10px;
}

.sidebar p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

.sidebar a {
  color: #ccc;
  text-decoration: none;
}

.cv-download {
  color: red;
  display: inline-block;
  margin-top: 10px;
}

/* CONTENU */
.content {
  flex: 1;
}

.section {
  margin-bottom: 40px;
}

.section h3 {
  font-size: 1.3rem;
  color: #5f4811;
  margin-bottom: 10px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background-color: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background-color: #232323;
}

.card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #5f4811;
}

/* PROJETS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-media img,
.project-media video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h2 {
  color: #ffb400;
  margin-bottom: 10px;
}

.tools {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 10px;
}

a.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #ffb400;
  text-decoration: none;
}

/* TÉMOIGNAGE */
.testimonial {
  margin-top: 20px;
  padding: 15px;
  background-color: #2c2c2c;
  border-left: 5px solid #ffb400;
  margin-bottom: 15px;
}

/* TITRES */
h1, h2 {
  color: #ffb400;
  margin-bottom: 15px;
  text-align: center;
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 30px;
  }

  .scroll-up-btn,
  .scroll-down-btn {
    left: 90%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .cards,
  .project-grid {
    grid-template-columns: 1fr;
  }
 
.cardText {
  background: rgba(255, 255, 255, 0.85); /* transparence */
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(200, 200, 200, 0.3);
  backdrop-filter: blur(4px); /* pour un effet de flou si tu ajoutes un fond */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cardText:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.cardText h3 {
  margin-top: 0;
  color: #222;
}

.cardText p {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #555;
}

.cardText ul {
  padding-left: 1.2rem;
  margin: 0;
}

.cardText ul li {
  margin-bottom: 0.5rem;
  color: #444;
}


  .container {
    padding: 0 1rem;
  }

  .cardText {
    padding: 1rem;
  }
}
.button {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px 0;
  background-color: #55544f; /* bleu */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
}

.project-media iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
