<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>titre de votre choix</title>
<link rel="stylesheet" href="style-cmocp2025.css">
</head>
<body>
<div class="container">
<h1>Bienvenue au cours/h1>
<p>Plongez dans un monde de balises et de code css</p>
<a href="#" class="btn">Entrer</a>
</div>
</body>
</html>
Feuille de style :
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #ffdde1, #ee9ca7);
font-family: 'Arial', sans-serif;
color: #4a2c2a;
}
.container {
text-align: center;
background: rgba(255, 255, 255, 0.8);
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
h1 {
font-size: 2.5em;
font-weight: bold;
}
p {
font-size: 1.2em;
}
.btn {
display: inline-block;
margin-top: 20px;
padding: 12px 24px;
background: #c471ed;
color: white;
text-decoration: none;
font-size: 1.2em;
border-radius: 8px;
transition: background 0.3s ease;
}
.btn:hover {
background: #8a2be2;
}