Skip to content

Commit

Permalink
Add CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentCraftsman committed Dec 28, 2024
1 parent ce89b32 commit 584d195
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/* Réinitialisation des marges et padding par défaut */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Style global */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
line-height: 1.6;
}

header {
background-color: #3e4a61;
color: white;
padding: 20px 0;
text-align: center;
}

header h1 {
font-size: 2.5rem;
}

nav ul {
list-style-type: none;
}

nav ul li {
display: inline;
margin-right: 20px;
}

nav ul li a {
text-decoration: none;
color: white;
font-weight: bold;
}

section {
padding: 20px;
margin: 20px 0;
}

section h2 {
font-size: 2rem;
margin-bottom: 20px;
}

article h3 {
font-size: 1.5rem;
margin-top: 10px;
}

article p {
font-size: 1rem;
color: #555;
}

.gallery {
display: flex;
gap: 20px;
}

.gallery img {
width: 45%;
border-radius: 8px;
}

form {
display: flex;
flex-direction: column;
max-width: 500px;
margin: 0 auto;
}

form label {
margin: 10px 0 5px;
font-size: 1rem;
}

form input,
form textarea {
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}

form button {
background-color: #3e4a61;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}

form button:hover {
background-color: #2c3e50;
}

footer {
text-align: center;
padding: 20px 0;
background-color: #3e4a61;
color: white;
}

0 comments on commit 584d195

Please sign in to comment.