2025-08-12 13:46:49 +02:00
|
|
|
|
|
|
|
|
|
|
body{
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* affichage du contenu en colonne */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* style background et font */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
background-color: black;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
font-family: sans-serif;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
section{
|
|
|
|
|
|
width: 100%;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* affichage des images en lignes avec retour à la ligne (wrap)*/
|
2025-08-12 13:46:49 +02:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h1,h2,h3,h4,h5,h6{
|
|
|
|
|
|
text-decoration-line: underline;
|
|
|
|
|
|
text-decoration-color: fuchsia;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Styling des liens */
|
|
|
|
|
|
a{
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
text-decoration-color: fuchsia;
|
2025-08-12 13:46:49 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* lors du hover : fushia */
|
|
|
|
|
|
a:hover,
|
|
|
|
|
|
a:active,
|
|
|
|
|
|
a:focus,
|
|
|
|
|
|
a:focus-within {
|
|
|
|
|
|
color: fuchsia;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
img{
|
|
|
|
|
|
/* Normalize images */
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
/* taille des images */
|
|
|
|
|
|
width: 300px;
|
2025-08-12 13:46:49 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
div{
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* position relative pour la >p absolute */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
position: relative;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* background pour l’effet blend de l’image */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
background-color: rgb(255, 20, 255);
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Prends la taille des images */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
height: fit-content;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Centre les rectangles avec les carrés dans le row (ex: image interlopes)*/
|
|
|
|
|
|
align-self: center;
|
2025-08-12 13:46:49 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
div>p{
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* N’affiche pas la balise p par défaut */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
display:none;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Fixe la position du p à l’intérieur de la div / de l’image, au centre */
|
|
|
|
|
|
position: absolute;
|
2025-08-12 13:46:49 +02:00
|
|
|
|
bottom: calc((100% / 2) - 1em);
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* style du paragraphe */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* style de la font */
|
|
|
|
|
|
color: white;
|
2025-08-12 13:46:49 +02:00
|
|
|
|
font-size: larger;
|
|
|
|
|
|
font-weight: bolder;
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* centre le texte */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* HOVER */
|
2025-08-12 13:46:49 +02:00
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Simule un élément interactif pour le proto (le pointer change) */
|
|
|
|
|
|
div:hover{
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2025-08-12 13:46:49 +02:00
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* lors du hover de la div : blend le background de la div avec l’image */
|
|
|
|
|
|
div:hover>img{
|
|
|
|
|
|
mix-blend-mode:multiply;
|
|
|
|
|
|
}
|
2025-08-12 13:46:49 +02:00
|
|
|
|
|
2025-08-12 16:24:51 +02:00
|
|
|
|
/* Lors du hover de la div, afficher le paragraphe */
|
|
|
|
|
|
div:hover>p{
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
}
|