Files
projet-i293/public/css/contact.css
T
2026-05-04 14:13:28 +02:00

155 lines
2.6 KiB
CSS

body {
margin: 0;
background-image: url("/public/images/background/background-contact.jpg");
background-attachment: fixed;
background-size: cover;
background-position: center;
}
body #div-content {
height: 48rem;
position: relative;
background-color: #1B4056;
z-index: 2;
padding-bottom: 7rem;
}
.grid {
position: absolute;
display: grid;
gap: 5rem;
grid-template-columns: repeat(1, 65rem);
grid-template-rows: repeat(1, 8rem);
justify-self: center;
justify-content: center;
margin-top: 25rem;
}
.grid-item {
height: 45rem;
align-self: center;
}
.grid-item img {
border-radius: 2rem;
max-width: 100%;
height: auto;
}
.grid .one {
background-color: #235573;
padding: 1rem;
border-radius: .40rem;
}
.right-text {
margin-left: 31rem;
}
.one img:hover {
transform: scale(1.01);
}
.one img {
float: left;
box-shadow: 1rem 1rem 0rem #000000;
}
.contact {
background-color:#307097;
box-shadow: 1rem 1rem 0rem #000000;
border-radius: 2rem;
width: 30rem;
label, input, textarea{
display: block;
margin: 2rem;
padding-top: 0.1rem;
}
input, textarea{
background-color: #1B4056;
}
textarea{
height: 10rem;
width: 25rem;
}
}
.contact:hover{
transform: scale(1.01);
}
@media screen and (max-width: 1280px) {
.grid {
grid-template-columns: 90%;
}
.right-text {
margin-left: 45%;
}
}
@media screen and (max-width: 1024px) {
.grid {
position: relative;
grid-template-columns: 90%;
grid-template-rows: auto;
gap: 2rem;
margin-top: 4rem;
}
.grid-item {
height: auto;
}
.grid-item img {
float: none;
display: block;
margin: 0 auto 1rem;
width: 100%;
max-width: 30rem;
}
.one img {
float: none;
}
.right-text {
margin-left: 0;
}
.contact {
width: 100%;
max-width: 30rem;
margin: 0 auto;
label, input, textarea {
margin: 1rem;
}
textarea {
width: calc(100% - 2rem);
box-sizing: border-box;
}
input {
width: calc(100% - 2rem);
box-sizing: border-box;
}
}
body #div-content {
height: auto;
min-height: 30rem;
padding-bottom: 5rem;
}
}
@media screen and (max-width: 480px) {
.grid {
gap: 1.5rem;
}
.grid .one {
padding: 0.6rem;
}
.contact {
box-shadow: 0.5rem 0.5rem 0rem #000000;
}
}