html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Joyeux Printemps !</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #e6ffe6; /* Vert très clair */
color: #333;
line-height: 1.6;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
}
.container {
background-color: #ffffff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
}
h1 {
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Importer des polices Google pour un look plus sympa */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400&display=swap');
body {
/* Police pour le texte courant */
font-family: 'Poppins', sans-serif;
font-weight: 300; /* Police un peu plus légère */
/* Arrière-plan en dégradé printanier */
background: linear-gradient(135deg, #e0ffff 0%, #ccffcc 50%, #b3ffb3 100%); /* Cyan léger vers Vert léger */
color: #2f4f4f; /* Gris ardoise foncé */
line-height: 1.7; /* Espacement des lignes amélioré */
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
margin: 0; /* Supprime la marge par défaut */
}
.container {
background-color: rgba(255, 255, 255, 0.92); /* Fond blanc légèrement transparent */
padding: 35px 45px; /* Plus d'espace intérieur */
border-radius: 25px; /* Coins plus arrondis */
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée */
max-width: 700px; /* Un peu plus large */
border: 1px solid #90ee90; /* Bordure vert clair */
js
js
1
BROWSER
Console
Run