main {
    display: flex;
    justify-content: center;
    height: auto;
}
  
section {
    width: 800px; /* Changed from max-width to fixed width */
    margin-left: 1%;
    margin-right: 1%;
    box-sizing: content-box;
    padding-top: 10px;
    padding-bottom: 100px;
    line-height: 1.6;
}
  
h1 {
    color: dodgerblue;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid dodgerblue;
    padding-bottom: 10px;
    width: 100%; /* Ensure h1 takes full width of section */
}
  
.contact {
    max-width: 800px;
    margin-left: 0; /* Ensure left alignment */
}
  
input[type="text"],
textarea,
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #949393;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    background-color: #ffffff;
    color: #000000;
}
  
input[type="submit"] {
    background-color: dodgerblue;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: end;
    float: right;
}
  
input[type="submit"]:hover {
    background-color: dodgerblue;
}
  
form {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: transparent;
}
  
.scrolled {
    overflow: scroll;
    /* Utilisation de dvh (Dynamic Viewport Height) qui s'ajuste dynamiquement */
    height: calc(100dvh - 114px);
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Fallback pour les navigateurs qui ne supportent pas dvh */
@supports not (height: 100dvh) {
    .scrolled {
        height: calc(100vh - 114px);
    }
}
  
.scrolled::-webkit-scrollbar {
    display: none;
}

.sent{
    margin-top: 50%;
}

.senth1 {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.pb {
    display: flex;
    justify-content: center;
    width: 100%;
}

.slogan {
    position: absolute;
    bottom: 3px;
    margin-left: auto;
    margin-right: auto;
max-width: 90%;

}
  
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    /* Pour les petits écrans, utilisation de svh */
    .scrolled {
        height: calc(100svh - 114px);
    }
}

@media screen and (min-width: 1021px) {
    /* Pour les grands écrans, utilisation de lvh */
    .scrolled {
        height: calc(100lvh - 114px);
    }
}

@media screen and (max-width: 376px) {
    .slogan {
        margin-top: 125px !important;
    }
}

@media (max-height:700px) {
    .slogan {
        margin-top: 20px !important;
        position: relative;
        bottom: 0;
    }
}