header { text-align: center; background-size: cover; /* largeur du bloc_page */ background-position: center; } .background_button { max-height: 24px; } .header_above { display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center; } .header_above > div > * { margin: 10px 0; } .header_content { /*margin-top: 10px;*/ padding-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; } /*.header_left_col {}*/ .header_center_col { background-color: #ffffff7f; border-radius: 10px; padding: 1px; /* pour que les marges de h1 et h2 ne mordent pas le bloc parent */ } header h1 { font-size: x-large; margin: 10px; } header h2 { font-size: medium; /* défaut = x-large */ margin: 10px; } @media screen and (max-width: 1024px){ header h1, header h2 { margin: 8px; } } header img { vertical-align: bottom; /* supprime espace sous l'image */ max-width: 180px; max-height: 100px; } header a { color: unset; /* ne plus hériter */ text-decoration: none; } /*.header_right_col {}*/ #header_social { display: flex; justify-content: center; } #header_social_content { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px; } #header_social_content > div{ margin: auto; background-color: #ffffff7f; } #header_social_content a:hover { background-color: yellow; } #header_social_content > div, #header_social_content a:hover { border-radius: 10px; } #header_social_content a { padding: 2px; display: inline-flex; /* flex pour que la taille de élément dépende de ses enfants, inline pour que este inline */ vertical-align: bottom; } #header_social_content a svg { width: 24px; height: 24px; } .svg_fill_red { fill: #dd3333; } #header_social_content .action_icon { width: 24px; } #header_social_content img:hover { background-color: yellow; } #header_social_input { background-color: #ffffff7f; border-radius: 10px; padding: 5px; } .header_content { padding: 20px 0; } @media screen and (max-width: 1024px){ .header_content { padding: 15px 0; } header img { max-width: 160px; } } @media screen and (max-width: 768px){ .header_content { /*grid-template-columns: 2fr 1fr;*/ /* on vire la colonne de gauche et on permet au deux autres de "se pousser" si besoin */ /*padding: 10px;*/ display: block; max-width: 65%; margin: auto; } .header_left_col { display: none; } } @media screen and (max-width: 480px){ .header_content { /*display: block;*/ max-width: 100%; padding: 10px; } }