2024-05-27 19:34:44 +02:00
|
|
|
/* Import Google Fonts */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');
|
|
|
|
|
|
|
|
/* Variables de couleurs */
|
|
|
|
:root {
|
|
|
|
--primary-color: #2a9d8f;
|
|
|
|
--secondary-color: #e9c46a;
|
|
|
|
--background-color: #f4f4f4;
|
|
|
|
--text-color: #333;
|
|
|
|
--link-color: #2a9d8f;
|
|
|
|
--link-hover-color: #e76f51;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Style global */
|
2023-08-08 19:46:11 +02:00
|
|
|
body {
|
2024-05-27 19:34:44 +02:00
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 1.6;
|
|
|
|
background-color: var(--background-color);
|
|
|
|
color: var(--text-color);
|
2023-08-08 19:46:11 +02:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
/* Liens */
|
|
|
|
a {
|
|
|
|
color: var(--link-color);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
color: var(--link-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Conteneur principal */
|
|
|
|
.container {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 20px;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Header */
|
|
|
|
header.section {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2023-08-08 19:46:11 +02:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
#theme-toggle {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s ease;
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
#theme-toggle:hover {
|
|
|
|
background-color: var(--secondary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sections */
|
|
|
|
.section {
|
|
|
|
flex: 1 1 300px;
|
2023-08-08 19:46:11 +02:00
|
|
|
padding: 20px;
|
2024-05-27 19:34:44 +02:00
|
|
|
background-color: white;
|
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* En-têtes */
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-family: 'Montserrat', sans-serif;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2.5em;
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2024-05-27 19:34:44 +02:00
|
|
|
font-size: 2em;
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
h3 {
|
|
|
|
font-size: 1.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Boutons */
|
|
|
|
button, .btn {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
button:hover, .btn:hover {
|
|
|
|
background-color: var(--secondary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Images */
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Footer */
|
|
|
|
footer {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
width: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Responsive */
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.container {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Thème sombre */
|
|
|
|
body.dark-mode {
|
|
|
|
--primary-color: #1b263b;
|
|
|
|
--secondary-color: #415a77;
|
|
|
|
--background-color: #0d1b2a;
|
|
|
|
--text-color: #e0e1dd;
|
|
|
|
--link-color: #778da9;
|
|
|
|
--link-hover-color: #e0e1dd;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
body.dark-mode h1,
|
|
|
|
body.dark-mode h2,
|
|
|
|
body.dark-mode h3,
|
|
|
|
body.dark-mode h4,
|
|
|
|
body.dark-mode h5,
|
|
|
|
body.dark-mode h6 {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.dark-mode {
|
|
|
|
background-color: var(--background-color);
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.dark-mode a {
|
|
|
|
color: var(--link-color);
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
body.dark-mode a:hover {
|
|
|
|
color: var(--link-hover-color);
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|
|
|
|
|
2024-05-27 19:34:44 +02:00
|
|
|
body.dark-mode .section {
|
|
|
|
background-color: #1b263b;
|
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
2023-08-08 19:46:11 +02:00
|
|
|
}
|