/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #121217; /* un noir très foncé, plus doux que le noir pur */
  color: #e0e0e0; /* gris clair, doux pour les yeux */
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: #1f2937; /* gris foncé bleuté */
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  color: #f97316; /* orange vif, vibe chaleureuse et moderne */
  text-align: center;
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 5px rgba(249,115,22,0.6);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 0.75rem;
  gap: 2rem;
}

nav ul li a {
  color: #f3f4f6; /* gris clair */
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f97316;
  transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #f97316;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  text-align: center;
  padding: 120px 20px 100px;
  color: #f3f4f6;
  box-shadow: inset 0 0 150px 30px rgba(249, 115, 22, 0.1);
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(249, 115, 22, 0.6);
}

.hero p {
  font-size: 1.35rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Bouton principal */
.btn-main {
  display: inline-block;
  background: #f97316;
  color: #fff;
  padding: 16px 36px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.6);
  transition: background-color 0.35s ease, transform 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.btn-main:hover,
.btn-main:focus {
  background: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.8);
}

/* Section Projets */
.projects {
  background: #181a22;
  padding: 80px 0;
  text-align: center;
}

.projects h2 {
  font-size: 2.8rem;
  color: #f97316;
  font-weight: 900;
  margin-bottom: 60px;
  text-shadow: 0 3px 12px rgba(249, 115, 22, 0.7);
}

/* Cartes projets */
.project-card {
  background: #242936;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  padding: 30px 25px 40px;
  width: 320px;
  margin: 15px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  color: #e0e0e0;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.8);
}

.project-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 55px;
  margin-bottom: 15px;
  color: #f97316;
  text-shadow: 0 3px 12px rgba(249, 115, 22, 0.8);
}

/* Description */
.project-card p {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Bouton dans les cartes */
.project-card .btn {
  background: #f97316;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.7);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card .btn:hover {
  background: #ea580c;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.9);
}

/* Tags */
.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.7);
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

/* Blog Section */
.blog {
  background: #1a1c26;
  padding: 80px 0;
}

.blog h2 {
  color: #f97316;
  font-weight: 900;
  font-size: 2.8rem;
  margin-bottom: 55px;
  text-align: center;
  text-shadow: 0 3px 12px rgba(249, 115, 22, 0.7);
}

/* Article Card */
.article-card {
  background: #242936;
  padding: 25px 30px;
  border-radius: 20px;
  margin: 0 auto 40px auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
  max-width: 720px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ddd;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.85);
}

.article-card h3 {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 18px;
  color: #f97316;
  text-shadow: 0 3px 10px rgba(249, 115, 22, 0.75);
}

/* Article Description */
.article-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 25px;
}

/* Article Links */
.article-card a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f97316;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.article-card a:hover {
  border-color: #f97316;
}

/* Article Tag */
.article-card .tag {
  top: 18px;
  right: 18px;
  background: #ffae42;
  color: #1a1c26;
  box-shadow: 0 3px 12px rgba(255, 174, 66, 0.9);
}

/* Article Single Page */
.article {
  background: #181a22;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto 120px auto;
  color: #e0e0e0;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.article h2 {
  font-weight: 900;
  font-size: 3rem;
  color: #f97316;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 4px 14px rgba(249, 115, 22, 0.75);
}

.article .meta {
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  color: #9ca3af;
  margin-bottom: 40px;
  letter-spacing: 1.1px;
}

.article p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: #d1d5db;
  margin-bottom: 28px;
}

/* Footer */
footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 25px 0;
  text-align: center;
  font-weight: 500;
  box-shadow: inset 0 5px 20px rgba(249, 115, 22, 0.12);
}

footer p {
  font-size: 1rem;
  letter-spacing: 0.8px;
}

/* Responsive */
@media (max-width: 900px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .project-card,
  .article-card {
    width: 90%;
    margin: 20px auto;
  }

  .hero h2 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .projects h2,
  .blog h2 {
    font-size: 2.5rem;
  }

  .article h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-main {
    padding: 14px 28px;
    font-size: 1rem;
  }

  nav ul li a {
    font-size: 1rem;
  }
}

/* Article page */

.article {
  padding: 80px 0;
  background: #121217; /* même fond que body pour continuité */
}

.article .tag {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.article h1.title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f97316;
  margin-bottom: 30px;
  text-shadow: 0 2px 6px rgba(249,115,22,0.5);
}

.article h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 15px;
  color: #f97316;
  text-shadow: 0 2px 6px rgba(249,115,22,0.5);
}

.article p {
  font-size: 1.125rem;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.article .publication-date {
  font-size: 0.95rem;
  color: #9ca3af; /* gris clair */
  margin-bottom: 30px;
}

.article .image-container {
  text-align: center;
  margin: 40px 0;
}

.article .article-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
