/* ------------------------------
   🎨 STYLE PAGE IBM i / FRANCK LAMY — VERSION CLAIRE
   ------------------------------ */

:root {
  --bg-light: #f8f9fb;
  --bg-section: #f1f3f6;
  --accent: #007bff;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --card-bg: #ffffff;
  --border-light: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-lg: 20px;
  font-family: "Inter", sans-serif;
}

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

/* --- BODY --- */
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  transition: 0.3s;
}

/* ------------------------------
   🧭 HEADER
   ------------------------------ */

.header-ibmi {
  background: url('/images/IBMi_banner.jpg') center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 6rem 1rem;
  color: var(--text-dark);
}

.header-overlay {
  background: rgba(255, 255, 255, 0.8);
  padding: 3rem 1rem;
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.header-ibmi h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.header-ibmi p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ------------------------------
   💡 SECTION INTRO
   ------------------------------ */

.intro-section {
  background: var(--bg-section);
  padding: 4rem 2rem;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ibmi-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 123, 255, 0.4));
}

.intro-text {
  max-width: 600px;
}

.intro-text h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ------------------------------
   🎬 SECTION VIDEOS
   ------------------------------ */

#demo {
  padding: 4rem 2rem;
  background-color: var(--bg-light);
  text-align: center;
}

#demo h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 🧱 GRID DES CARTES */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🎴 CARD */
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.video-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

/* 📝 CONTENU DE LA CARD */
.video-content {
  text-align: left;
  margin-top: 0;
  padding-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.video-content h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.video-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.video-content .details {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1rem;
}

/* 🔹 Liste technique */
.tech-list {
  list-style: none;
  margin-bottom: 1rem;
}

.tech-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-dark);
}

.tech-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* 🔗 LIEN VIDEO */
.video-link {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

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

/* ------------------------------
   ⚫ FOOTER
   ------------------------------ */

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--bg-section);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

footer p {
  font-size: 0.9rem;
}

/* ------------------------------
   📱 RESPONSIVE DESIGN
   ------------------------------ */

@media (max-width: 768px) {
  .header-ibmi {
    padding: 4rem 1rem;
  }

  .header-ibmi h1 {
    font-size: 2rem;
  }

  .intro-container {
    flex-direction: column;
    text-align: center;
  }

  .ibmi-logo {
    width: 120px;
  }

  .video-thumb {
    height: 160px;
  }

  .video-content {
    padding: 1.2rem;
  }

  .video-link {
    width: 100%;
    text-align: center;
  }
}
