@import url('https://fonts.googleapis.com/css2?family=Cambria:wght@400&family=Segoe+UI:wght@700&display=swap');


/*Importation des polices FranklinGothic et NewsGothicBT-Light*/
@font-face {
    font-family: 'FranklinGothic';
    src: url('fonts/franklingothic.ttf') format('truetype'),
    font-weight: normal; 
    font-style: normal; 
}

@font-face {
    font-family: 'NewsGothicBT-Light';
    src: url('fonts/newsgothicbt-light.otf') format('truetype'),
    font-weight: normal; 
    font-style: normal; 
}





/*Styles généraux des pages*/
body {
    font-family: 'NewsGothicBT-Light', sans-serif;
    background-color: #f9f9f9;
    background: url('images/paroles.png') no-repeat center center fixed; /*Image de fond centrée et fixe*/
    background-size: cover; /*taille de l'image couvre toute la page*/
    margin: 0;
    padding: 0;
    position: relative;
    font-size: 16px;
}


/*Mise en page : image de fond + boîte principal*/
.overlay {
    position: fixed; /*fixe l'élément par rapport à la fenêtre du navigateur*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); 
    z-index: 1; /*niveau de superposition z-index*/
}

.container {
    max-width: 1000px;
    margin: 50px auto; /*centrée horizontalement avec une marge verticale*/
    padding: 50px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /*ombre légère*/
    position: relative; /*position relative pour superposition*/
    z-index: 2; /*niveau de superposition z-index*/
}


/*Titrages*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 32px;
    color: #000;
    font-family: 'FranklinGothic', sans-serif;
}

header h3 {
    margin: 0;
    font-size: 16px;
    color: #000;
    text-align:center;
    font-family:'Cambria', serif;
}





/*Styles pour les liens de navigation*/
header nav a {
    color: #000; 
    text-decoration: none; /*Pas de soulignement*/
    font-weight: bold;
    transition: color 0.3s ease; /*Transition pour le changement de couleur*/
    font-size: 18px; /*Taille du texte*/
    margin-right: 20px; /*Espacement entre les liens*/
    font-family:'Cambria', serif;
}

header nav a:hover {
    color: #ff0055; /*Couleur du texte en rouge lorsqu'on passe la souris*/
}




/*Pour le contenu principal*/
main {
    text-align: left;
    padding: 40px 0;
}

main h2 {
    font-size:30px;
    color:#ff0055;
    margin-bottom:20px;
    font-family:'FranklinGothic', sans-serif;
    letter-spacing: 0.8px; /*espacement entre les lettres*/
}

main p {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    font-size: 18px;
    text-align:justify;
}





/*Styles pour bouton dans index.php*/
.dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dropdown select {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #000; /*bordure noire*/
    border-radius: 4px; /*coins arrondis*/
    cursor: pointer; /*curseur en forme de main*/
}

.dropdown input[type="submit"] {
	font-family:'NewsGothicBT-Light', sans-serif;
    padding: 10px 20px;
    font-size:18px;
    background-color: #ff0055;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /*Transition pour le changement de couleur de fond*/
}

.dropdown input[type="submit"]:hover {
    background-color: #000000; /*Couleur de fond au survol souris*/
}





/*Styles pour les métadonnées présentées dans view.php*/
.metadata-container {
    display: flex;
    flex-wrap: wrap; /*permet de passer à la ligne*/
    gap: 10px 20px; 
    margin-bottom: 20px; 
}

.metadata {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    white-space: nowrap; /*texte sur une seule ligne*/
    margin-bottom: 5px; /*espace vertical*/
}

.metadata a {
    color: #ff0055; /*couleur des liens*/
    text-decoration: none; /*pas de soulignement*/
}

.metadata a:hover {
    text-decoration: underline; /*soulignement au survol*/
}




/*Styles pour la box Filtres dans view.php*/
aside {
    position: absolute;
    top: 0;
    left: -200px; 
    width: 180px; /*Largeur du volet*/
    height: 46%; /*Prend la hauteur à x%*/
    background-color: #f0f0f0; /*Couleur de fond du volet*/
    border-right: 1px solid #ccc; /*Bordure à droite*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /*ombre*/
    overflow-y: auto; /*Activation du défilement vertical si besoin*/
    padding: 10px; /*Espacement intérieur*/
    z-index: 50; 
    font-family: Cambria, "Times New Roman", serif; 
}

.filters {
    margin-top: 15px; /*Espacement du haut du volet*/
}

.filters h3 {
    margin-bottom: 15px; /*espacement inférieur du titre*/
}

.filters label,
.filters select,
.filters input[type="checkbox"] {
    display: block;
    margin-bottom: 8px; /*espacement entre les filtres*/
    
}

.filters input[type="checkbox"],
.filters label {
    display: inline-block;
    vertical-align: middle;
    font-family:'NewsGothicBT-Light', sans-serif;
    margin: 0 auto; 
    margin-right: 10px; /*Espacement entre la cgheckbox et le libellé*/
    margin-top:5px;
}




/*Styles supplémentaires pour le bouton "Appliquer"*/
.filters input[type="submit"] {
    display: block;
    margin: 0 auto; 
    margin-top:30px;
    padding: 10px 20px;
    font-size: 18px;
    font-family:'NewsGothicBT-Light', sans-serif;
    background-color: #ff0055;
    color: #fff;
    border: none;
    border-radius: 4px; /*coins arrondis*/
    cursor: pointer; /*curseur en forme de main*/
    transition: background-color 0.3s ease; /*transition fluide pour le changement de couleur*/
}
}

.filters input[type="submit"]:hover {
    background-color: #000000; /*Couleur de fond au survol, marche pas, à revoir*/
}




/*Infobulle au survol des PPIs, NE MARCHE PAS, A REVOIR*/
/*ça fonctionne en version "simplifiée", mais pb d'affichage avec tout le reste (?)*/
PPI::after {
    content: attr(title);
    position: absolute;
    left: 0;
    bottom: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: pre-wrap;
    z-index: 1000;
    display: none; /*Masque l'infobulle par défaut */
}


PPI:hover::after {
    display: block;
    content: attr(title);
    position: absolute;
    z-index: 999; /*pour afficher au-dessus de tout z élevé*/
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 5px;
    padding: 5px 15px;
    width: 220px;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px); /*au-dessus du PPI*/
}

PPI:hover::before {
    content: '';
    position: absolute;
    border: solid transparent;
    border-width: 6px;
    border-top-color: rgba(0, 0, 0, 0.8);
    left: 50%;
    bottom: calc(100% - 6px); 
    transform: translateX(-50%);
}
