/* ----------------------------- */
/* STYLE GLOBAL DU SITE JDR */
/* ----------------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", sans-serif;
  background: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80")
    no-repeat center center fixed;
  background-size: cover;
  color: #e0e0e0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: brightness(0.8) blur(2px);
}

/* ----------------------------- */
/* BARRE DE NAVIGATION */
/* ----------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(139, 139, 139);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

/* Boutons du menu */
nav a,
nav a:visited {
  text-decoration: none;
  color: rgb(255, 215, 00);
  background-color: rgba(59, 59, 152, 0.85);
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(87, 95, 207, 0.9);
  transform: scale(1.1);
  box-shadow: 0 0 20px #575fcf;
}

/* ----------------------------- */
/* TITRES ET CONTENU */
/* ----------------------------- */

h1 {
  margin-top: 130px; /* espace sous la barre de navigation */
  font-size: 2.5rem;
  color: rgb(255, 215, 0);
  text-shadow: 0 0 15px #ffbf00, 0 0 30px #b8860b;
}

h2 {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-style: italic;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  max-width: 600px;
}

/* ----------------------------- */
/* SECTION ACTUALITÉS */
/* ----------------------------- */

.actualites {
  background-color: rgba(20, 20, 60, 0.7);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.actualites.personnage {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: min(90%, 800px);
  margin: 40px auto;
  padding: 1.2rem 1.4rem;
  text-align: left;
  background: rgba(10, 10, 40, 0.6);
  border-radius: 8px;
}

/* portrait et contenu adjacent */
.portrait {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.portrait img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffd700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.08);
  display: block;
}

.portrait figcaption {
  margin-top: 0.5rem;
  color: #ffd700;
  font-weight: 700;
  font-size: 0.95rem;
}

.personnage-contenu {
  flex: 1 1 320px;
  min-width: 180px;
}

/* responsive : empiler et centrer le portrait sur petits écrans */
@media (max-width: 600px) {
  .actualites.personnage {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .portrait img {
    width: 140px;
    height: 140px;
  }

  .personnage-contenu {
    width: 100%;
  }
}

.actualites h3 {
  text-align: center;
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #ffbf00;
}

.actualites article {
  margin-bottom: 25px;
}

.actualites h4 {
  color: #d9dc0c;
  margin-bottom: 8px;
  text-shadow: 0 0 5px #000;
}

.actualites p {
  color: #dcdcdc;
  line-height: 1.5;
  margin: 0;
}

.actualites p a,
.actualites p a:visited {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  -webkit-text-decoration-color: #ffd700;
  text-decoration-color: #ffd700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  background-color: transparent !important;
  transition: transform 150ms ease, text-shadow 150ms ease, font-weight 150ms ease;
}

.actualites p a:hover,
.actualites p a:focus {
  font-weight: 900 !important; /* tentera d'utiliser une graisse plus forte */
  transform: scale(1.03);
  text-shadow: 0 0 2px rgba(255, 215, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.55);
  background-color: transparent !important;
  outline: none;
}

.actualites a,
.actualites a:visited {
  color: #ffd700;                 /* jaune */
  font-weight: 700;               /* gras */
  text-decoration: underline;     /* souligné */
  text-decoration-color: #ffd700; /* couleur du soulignement */
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  text-decoration-style: solid;
  background-color: transparent;  /* pas de surlignage */
}

.actualites a:hover {
  background-color: rgba(255, 215, 0, 0.32);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
}

p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

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

footer {
  position: absolute;
  bottom: 10px;
  font-size: 0.8rem;
  color: #ccc;
  text-shadow: 0 0 5px black;
}

/* ----------------------------- */
/* RÉGLAGES LIENS GLOBAUX */
/* ----------------------------- */

a:link,
a:visited {
  color: white;
  text-decoration: none;
}

/* ----------------------------- */
/* ADAPTATION MOBILE */
/* ----------------------------- */

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
  }

  nav a {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
    margin-top: 100px;
  }

  .actualites {
    padding: 20px;
    margin: 20px;
  }
}

/* ----------------------------- */
/* LISTE DES PERSONNAGES */
/* ----------------------------- */

ul.personnages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

ul.personnages li {
  background: rgba(30, 30, 60, 0.8);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

ul.personnages li:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #ffd700;
}

ul.personnages li a {
  text-decoration: none;
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.1rem;
}

main, p {
  margin-top: 150px;
}

main {
  width: 100%;
}

/* ----------------------------- */
/* SECTION RÉSUMÉS */
/* ----------------------------- */

.resume-list {
  width: min(90%, 900px);
  margin: 40px auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* chaque résumé est une "carte" comme l'encadré personnage mais sans portrait */
.resume-card {
  background: rgba(10,10,40,0.6);
  border: 2px solid rgba(255,215,0,0.12);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  text-align: left;
}

.resume-card h4 {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  -webkit-text-decoration-color: #ffd700;
  text-decoration-color: #ffd700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  transition: transform 150ms ease, text-shadow 150ms ease, font-weight 150ms ease;
}

.resume-card h4:hover,
.resume-card h4:focus {
  font-weight: 800;
  transform: translateY(-1px) scale(1.01);
  text-shadow: 0 0 8px rgba(255,215,0,0.45), 0 1px 0 rgba(0,0,0,0.55);
  outline: none;
}

/* adaptivité */
@media (max-width: 600px) {
  .resume-list { padding: .8rem; }
  .resume-card { padding: .9rem; }
}
