|
@@ -17,6 +17,11 @@
|
|
|
body {
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
+ background-color: rgb(38, 26, 51);
|
|
|
+ background-image: url(../images/landscape.jpg);
|
|
|
+ background-size: cover;
|
|
|
+ background-attachment: fixed;
|
|
|
+ background-position-y: 0;
|
|
|
}
|
|
|
|
|
|
header * {
|
|
@@ -27,10 +32,8 @@ header * {
|
|
|
}
|
|
|
|
|
|
header {
|
|
|
- height: 40vh;
|
|
|
+ height: 200px;
|
|
|
width: 100vw;
|
|
|
- background-image: url(../images/landscape.jpg);
|
|
|
- background-size: cover;
|
|
|
transition: all 0.1s ease;
|
|
|
}
|
|
|
|
|
@@ -85,85 +88,16 @@ header {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
-@media screen and (max-width: 1400px) {
|
|
|
- header {
|
|
|
- height: 50vh;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@media screen and (max-width: 900px) {
|
|
|
- header.big {
|
|
|
- height: 100vh;
|
|
|
- }
|
|
|
-
|
|
|
- .navbar {
|
|
|
- padding: 0;
|
|
|
- position: absolute;
|
|
|
- }
|
|
|
-
|
|
|
- .nav-links {
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- position: absolute;
|
|
|
- background-color: rgba(0, 255, 221, 0.308);
|
|
|
- width: 100%;
|
|
|
- height: 100vh;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- backdrop-filter: blur(7px);
|
|
|
- margin-left: -100%;
|
|
|
- transition: all 0.1s ease;
|
|
|
- }
|
|
|
-
|
|
|
- .nav-links ul {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
-
|
|
|
- .navbar .menu-burger {
|
|
|
- display: block;
|
|
|
- }
|
|
|
- .nav-links.mobile-menu {
|
|
|
- margin-left: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .navbar .nav-links > ul > li {
|
|
|
- margin: 25px 0;
|
|
|
- font-size: 1.2em;
|
|
|
- }
|
|
|
-
|
|
|
- .navbar .nav-links ul li {
|
|
|
- flex-direction: column;
|
|
|
- }
|
|
|
-
|
|
|
- .navbar .logo {
|
|
|
- position: absolute;
|
|
|
- top: 40px;
|
|
|
- left: 30px;
|
|
|
- font-size: 2em;
|
|
|
- }
|
|
|
-
|
|
|
- header {
|
|
|
- height: 30vh;
|
|
|
- }
|
|
|
-
|
|
|
- /* Body */
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/* Body */
|
|
|
main {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- width: 100%; /* S'assure que le main ne dépasse pas la largeur de l'écran */
|
|
|
+ width: 100%;
|
|
|
box-sizing: border-box;
|
|
|
- flex-wrap: wrap;
|
|
|
- padding: 10px;
|
|
|
+ margin: 0 auto;
|
|
|
+ max-width: 900px;
|
|
|
+ background-color: white;
|
|
|
+ padding: 0 30px;
|
|
|
+ border-radius: 15px;
|
|
|
+ min-height: 70vh;
|
|
|
}
|
|
|
|
|
|
img, .contenu-flex {
|
|
@@ -177,7 +111,7 @@ img, .contenu-flex {
|
|
|
}
|
|
|
|
|
|
.article-preview {
|
|
|
- max-height: 400px; /* Hauteur maximale pour chaque article */
|
|
|
+ max-height: 600px; /* Hauteur maximale pour chaque article */
|
|
|
overflow: hidden; /* Masque le contenu qui dépasse */
|
|
|
position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */
|
|
|
margin-bottom: 30px;
|
|
@@ -226,4 +160,80 @@ main h2 a:hover {
|
|
|
|
|
|
.table-articles {
|
|
|
width: 100%;
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+@media screen and (max-width: 1400px) {
|
|
|
+ header {
|
|
|
+ height: 250px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media screen and (max-width: 900px) {
|
|
|
+ header.big {
|
|
|
+ height: 100vh;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar {
|
|
|
+ padding: 0;
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-links {
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ position: absolute;
|
|
|
+ background-color: rgba(0, 255, 221, 0.308);
|
|
|
+ width: 100%;
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ backdrop-filter: blur(7px);
|
|
|
+ margin-left: -100%;
|
|
|
+ transition: all 0.1s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-links ul {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar .menu-burger {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ .nav-links.mobile-menu {
|
|
|
+ margin-left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar .nav-links > ul > li {
|
|
|
+ margin: 25px 0;
|
|
|
+ font-size: 1.2em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar .nav-links ul li {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navbar .logo {
|
|
|
+ position: absolute;
|
|
|
+ top: 40px;
|
|
|
+ left: 30px;
|
|
|
+ font-size: 2em;
|
|
|
+ }
|
|
|
+
|
|
|
+ header {
|
|
|
+ height: 30vh;
|
|
|
+ }
|
|
|
+
|
|
|
+ main {
|
|
|
+ padding: 0 20px;
|
|
|
+
|
|
|
+ }
|
|
|
+}
|