@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


body {
    margin: 0;
    background-color: #252525;
    color: aliceblue;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

header {
    width: 90%;
    height: 80px;
    background-color: #FFE3B3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
}

nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

a {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color : whitesmoke;
    text-decoration: none;
    font-size: 1.3rem;
    background-color: #CA2851;
    border: solid 1px #252525;
    padding: 10px 25px;
    border-radius: 10px;
    
}

a:hover {
    color : #CA2851;
    background-color: whitesmoke;
    border: solid 1px #CA2851;
}

.header {
  position: relative;
  width: 100%;
  margin-top: -105px; 
  position: relative;
  z-index: -1;
}

.hero-img {
  width: 100%;
  display: block;
}

.wave {
  position: absolute;
  bottom: -1px; /* Pour éviter un liseré blanc */
  left: 0;
  width: 100%;
  height: 150px; /* Ajuste la hauteur de la courbe ici */
}

#title {
    font-family: "Metal Mania", system-ui;
    font-size: 3rem;
    text-align:center;
    font-style: normal;
    font-weight: 400;
    margin: 10px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 25px 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background-color: #CA2851;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    font-family: sans-serif;
    color: white;
    cursor: pointer;
    transition: 300ms ease-in-out;
}

.card img {
    width: 100%;
    display: block;
}

.card .nom {
    padding: 20px 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.card:hover {
    transform: rotate(-6deg);
}

.card:hover ~ .card {
    z-index: 1;
    
}

.grid:has(.card:hover) .card:not(:hover) {
    opacity: .8;
}


/* Le fond de la modale (caché par défaut) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; /* Cache la modale */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

/* La grande boîte rouge (comme ta maquette) */
.modal-contenu {
    background-color: #bd2b4b;
    color: white;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    font-family: sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto; /* Permet de scroller si le texte de l'histoire est long */
}

/* Bouton pour fermer */
.btn-fermer {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    background: none; border: none;
    color: white; cursor: pointer;
}

/* Structure interne */
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-infos { max-width: 60%; }
.modal-avatar { width: 150px; height: 150px; object-fit: cover; border-radius: 15px; }
.section-titre { text-align: center; font-size: 22px; font-weight: bold; margin-top: 25px; text-transform: uppercase; }
.section-texte { text-align: center; margin: 10px 0 20px 0; font-size: 15px; line-height: 1.5; opacity: 0.9; }