/* -------------------- */
/* Style global         */
/* -------------------- */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #5a2d82; /* violet profond */
}

a {
  color: #d63384; /* rose fuchsia */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------- */
/* Header et menu       */
/* -------------------- */
header {
  background: #5a2d82;
  color: white;
  padding: 1rem;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Menu desktop */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: white;
  font-weight: bold;
}

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

/* -------------------- */
/* Menu burger mobile   */
/* -------------------- */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.burger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
}

/* Overlay (fond sombre quand menu ouvert) */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 5;
}

/* Menu mobile caché */
nav {
  transition: transform 0.3s ease;
}

nav ul {
  flex-direction: row;
}

/* -------------------- */
/* Responsive           */
/* -------------------- */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 200px;
    height: 100%;
    background: #5a2d82;
    padding-top: 3rem;
    transform: translateX(0);
    z-index: 10;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
  }

  .burger {
    display: flex;
  }

  .overlay.active {
    display: block;
  }
}

/* -------------------- */
/* Main content         */
/* -------------------- */
main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

ul {
  padding-left: 1.2rem;
}

button {
  background: #d63384;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #b6256c;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* format 16/9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a.active {
  font-weight: bold;
  border-bottom: 2px solid;
}

.container { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.cards { display: grid; gap: 1rem; }
.card { border: 1px solid #eee; border-radius: 8px; padding: 1rem; }
.btn { display: inline-block; padding: .5rem .9rem; border: 1px solid #ccc; border-radius: 6px; text-decoration: none; }

.post h1 { margin-bottom: .25rem; }
.meta { color: #666; font-size: .9rem; }

.news-list { list-style: none; padding: 0; }
.news-list li { padding: .5rem 0; border-bottom: 1px dashed #eee; }
.news-list time { font-family: monospace; margin-right: .5rem; }

.site-footer {
  background: #111;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}
