* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f7fb;
color: #222;
line-height: 1.6;
}
header {
background: linear-gradient(135deg, #2c7be5, #5aa9ff);
color: white;
text-align: center;
padding: 40px 20px;
}
header h1 {
font-size: 2.2em;
margin-bottom: 10px;
}
.sous-titre {
font-size: 1.1em;
opacity: 0.95;
}
nav {
background-color: #1f4f82;
text-align: center;
padding: 15px 10px;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
display: inline-block;
padding: 8px 12px;
border-radius: 6px;
transition: background-color 0.3s;
}
nav a:hover {
background-color: rgba(255, 255, 255, 0.2);
}
main {
max-width: 1000px;
margin: 30px auto;
padding: 0 20px;
}
.bloc {
background-color: white;
margin-bottom: 25px;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.bloc h2 {
color: #2c7be5;
margin-bottom: 15px;
}
.image-bloc img {
width: 100%;
max-width: 700px;
display: block;
margin: 15px auto 0 auto;
border-radius: 10px;
}
footer {
background-color: #1f4f82;
color: white;
text-align: center;
padding: 20px;
margin-top: 30px;
}
height: 300px;
background: url("image.jpg");
background-size: cover;
background-position: center;
font-family: "Courier New", monospace;
font-size: 4em;
background: radial-gradient(circle, #dddddd, #2c7be5, #eeff25);
.bloc img {
width: 100%;
max-width: 500px;
display: block;
margin: 20px auto;
}
MODÈLE TYPE
<main>
<section class="bloc">
<h2>Titre de la page</h2>
<img src="image1.jpg" alt="illustration">
<p>
Ici, l’élève écrit un texte de présentation sur son sujet.
Cette zone peut contenir des explications, des informations,
ou une introduction au thème choisi.
</p>
<body>
<h1>Ceci est un titre</h1>
<h2>Ceci est un sous titre</h2>
<p id="para_1">Ceci est un <strong>paragraphe</strong>. Avez-vous bien compris ?</p>
<h3 class="python">Ceci est un sous-sous titre</h3>
</body>
h1
{
text-align: center;
background-color: red;
}
h2
{
font-family: Verdana;
font-style: italic;
color: green;
}
#para_1
{
font-style: italic;
color: brown;
border: 4mm ridge rgba(211, 220, 50, .6);
padding: 1em;
}
body {
background: Cornsilk;
}
.python {
color: brown;
letter-spacing: 1em;
text-decoration: underline;
}