body { margin: 0; display: grid; grid-template-areas: "header header" "menu main" "footer footer"; } header { display: flex; justify-content: space-between; margin-top: 2em; margin-left: 3em; margin-right: 3em; grid-area: header; } header a { color: black; } #header-glider { display: flex; } #header-glider img { margin-top: 20px; margin-left: 10px; } header h2 { margin-top: 0; } #lang { margin-top: 20px; display: grid; grid-auto-flow: column; grid-column-gap: 1em; grid-template-rows: fit-content(100%); } #lang a { font-weight: bold; font-size: 150%; } #lang #choose { color: #4970E1; } #lang a:hover { color: #FA4DBA; } #header-links { margin: 2em 0 2em 3em; display: flex; flex-direction: column; grid-area: menu; } #header-links a { color: black; padding: 1em; } #header-links a:hover { color: white; background-color: black; } #main { margin: 2em 3em 5em 1em; grid-area: main; } footer { background-color: #304B99; padding: 1em; padding-bottom: 0; grid-area: footer; } #buttons { margin-top: 1em; } #fsf { text-align: right; } /* boutons avant la liste des 88x31. bien alignés au centre de la div */ .pred-buttons { margin-top: auto; margin-bottom: auto; } #footer-main { display: grid; grid-template-columns: 25% 50% 10% 15%; } #footer-text p { justify-self: center; margin: 0; color: white; text-align: center; } #footer-text a, #footer-text span { color: white; } #footer-contact { padding-top: 1em; font-size: 12px; } #footer-link-email { color: black; text-decoration: underline dotted; } #buttons { text-align: center; } #buttons div { margin-bottom: 1em; } @media only screen and (max-width: 641px) { body { grid-template-areas: "header header" "main main" "menu menu" "footer footer"; } #header-links { position: sticky; bottom: 0; margin-left: 0; margin-top: 0; flex-direction: row; background-color: white; border-top: solid black; flex-wrap: wrap; } header { display: flex; flex-direction: column; } #lang { justify-items: center; } #main { margin: 2em 1em 2em 1em; } #footer-main { display: flex; flex-direction: column; } .pred-buttons { align-self: center; } }