/* === RESET & STYLES GÉNÉRAUX === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Fond d'écran et positionnement du body */
body {
  background: url('../bg.jpg') no-repeat center center/cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Overlay sombre pour homogénéiser le contraste */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(28,28,28,0.8);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.nav-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* S'affiche sur petits écrans */
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f39c12;
}

/* === SECTION BLOG === */
.blog-main {
  flex: 1;
  padding-top: 60px;   /* Pour laisser de l'espace sous la navbar */
  padding-bottom: 60px; /* Pour le footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
  color: #fff;
}

/* Titre de la page */
.page-title {
  font-family: 'Sawarabi Gothic', sans-serif;
  font-size: 2.5rem;
  margin: 20px 0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

/* Conteneur en grille pour les articles de blog */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  width: 80%;
  max-width: 1200px;
  margin-bottom: 20px;
}

/* Cartes d'article */
.blog-card {
  background: rgba(0, 0, 0, 0.66);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(28,28,28,0.8);
}

/* Images dans la carte */
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Informations de l'article */
.blog-info {
  padding: 15px;
  text-align: left;
}

.blog-info h2 {
  font-family: 'Sawarabi Gothic', sans-serif;
  font-size: 1.4rem;
  color: #f39c12;
  margin-bottom: 10px;
}

.blog-info p {
  font-size: 1rem;
  color: #fff;
}

/* === FOOTER === */
.footer {
  background: rgba(28,28,28,0.8);
  color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer p {
  margin-bottom: 5px;
  text-align: center;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* Filtres pour recolorer les icônes sociales */
.social-icons a.fb-icon img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(1797%) hue-rotate(200deg) brightness(92%) contrast(101%);
}

.social-icons a.mail-icon img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(98%) saturate(7486%) hue-rotate(354deg) brightness(96%) contrast(107%);
}

.social-icons a.wp-icon img {
  filter: brightness(0) saturate(100%) invert(66%) sepia(48%) saturate(442%) hue-rotate(78deg) brightness(91%) contrast(88%);
}

/* === MEDIA QUERIES (RESPONSIVE) === */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: rgba(28,28,28,0.8);
    flex-direction: column;
    align-items: center;
    display: none;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .nav-links.active {
    display: flex;
    animation: slideDown 0.5s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .blog-container {
    width: 90%;
  }
}
