Files
Camilou.fr/HTML/ERASMUS/styles.css
T
Camilla Schoeser ec81bcd634 ajout tout
2026-05-29 21:10:04 +02:00

175 lines
3.8 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
* {
box-sizing: border-box; /* Important : garantit que padding et bordure sont inclus dans la largeur/hauteur totale */
}
li, p {
text-align: left;
}
li {
margin-bottom: 20px;
}
h2 {
font-weight: 600; border-radius: 10px;
padding:20px;
}
/* Conteneur des images de fond */
.bg-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: -1;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none; /* Permet de cliquer à travers */
}
/* Images de fond */
.bg-image {
position: absolute;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
opacity: 0;
transform: scale(1.1);
transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}
/* Limage active devient visible */
.bg-image.active {
opacity: 1;
transform: scale(1);
}
/* Ajoute du padding au body pour éviter que le contenu ne soit caché */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #111;
color: white;
text-align: center;
overflow-x: hidden; /* Évite le décalage horizontal */
}
/* Garde la mise en forme des sections */
.slide {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
z-index: 1; /* Met le texte au-dessus du fond */
}
/* Remet en place les images et le texte */
img {
width: 50%;
max-width: 400px;
margin-top: 20px;
}
/* Conteneur du slider */
.slider-container {
position: relative;
width: 80%;
max-width: 100%;
margin: 50px auto; /* Ajoute de la marge pour ne pas chevaucher le contenu */
z-index: 2; /* Place le slider au-dessus de larrière-plan */
}
/* Images du slider */
.swiper-slide img {
width: 100%;
border-radius: 10px;
}
/* Flèches de navigation */
.swiper-button-next,
.swiper-button-prev {
color: white; /* Change la couleur des flèches */
z-index: 3; /* Assure qu'elles sont bien visibles */
}
section .slide p {
margin-top: 0; /* Enlève ou réduit l'espace au-dessus du titre */
margin-bottom: 10px; /* Réduit l'espace en dessous du titre */
}
.columns-container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0px;
width: 100%; /* Utilisation de 100% au lieu de 100vw */
padding: 0 20px;
margin: 0 auto;
box-sizing: border-box;
}
.column {
width: 45%; /* Réduit la largeur des colonnes à 45% pour qu'elles tiennent côte à côte */
flex: 0 0 45%; /* Utilise le flex pour mieux gérer la mise en page */
padding: 20px;
border-radius: 10px;
text-align: center;
color: white;
box-sizing: border-box; /* Permet de ne pas prendre en compte le padding dans la largeur */
}
.column.right {
width: 30%; /* On s'assure que la colonne fait bien 50% */
padding: 20px;
border-radius: 10px;
text-align: center;
color: white;
box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
}
.animated-images {
position: relative;
width: 100%;
height: 100vh; /* Pleine hauteur pour couvrir l'écran */
}
.animated-image {
position: absolute;
width: 150px;
opacity: 1 !important; /* Force l'affichage */
visibility: visible !important; /* Force l'affichage */
}
/* Positionnement aléatoire des images */
.animated-image:nth-child(1) { top: 0%; left: 10%; } /*flag */
.animated-image:nth-child(2) { top: 5%; left: 80%; width:200px} /* Gouda */
.animated-image:nth-child(3) { top: 20%; left: 40%; }
.animated-image:nth-child(4) { top: 50%; left: 20%; }
.animated-image:nth-child(5) { top: 30%; left: 60%; }
.animated-image:nth-child(6) { top: 55%; left: 85%; }