/* Structure de base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Wrapper principal */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenu principal */
.container {
  flex: 1;
  padding: 20px;
}

/* Header */
.site-header {
  background-color: #ffffff;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo img {
  height: 60px;
  border-radius: 12px;
}

.logo {
  height: 250px;
  margin-top: 50px;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 0;
  background-color: #970A0A;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: white;
  color: #970A0A;
  border-radius: 5px;
  padding: 6px 10px;
}

/* Réseaux sociaux */
.socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.2);
}

/* Contenu */
.content {
  flex: 3;
}

.content h2 {
  color: #57081B;
  margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
  flex: 1;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
}

.sidebar h3 {
  margin-top: 0;
  color: #970A0A;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  text-decoration: none;
  color: #970A0A;
  font-weight: bold;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  height: 60px;
  width: 100%;
  background-color: #000;
  color: #fff;
  text-align: center;
  line-height: 60px;
}

/* Version alternative si tu veux un footer toujours visible :
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000;
  color: #fff;
  text-align: center;
  line-height: 60px;
  z-index: 100;
}
*/

/* Popup */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.popup-image {
  width: 40%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.popup-content h2 {
  font-size: 1.2em;
  margin-bottom: 8px;
}

.popup-content p {
  font-size: 0.9em;
  line-height: 1.4;
  color: #333;
}

.popup-text {
  width: 60%;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 60px;
  }

  .logo {
    height: 150px;
    margin-top: 40px;
  }

  .hamburger {
    top: 15px;
    right: 15px;
  }

  .news-card {
    width: 100%;
  }

  .popup-content {
    flex-direction: column;
    max-height: 90vh;
  }

  .popup-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .popup-text {
    width: 100%;
  }
}
