.container-form {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px 40px;
  background: lightgray;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: #fff;
}

input[type=text]:focus, select:focus, textarea:focus {
  border-color: #888;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  outline: none;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

input[type=submit] {
  background-color: #555;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  float: right;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type=submit]:hover {
  background-color: #333;
  transform: translateY(-1px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.col-25 {
  flex: 0 0 25%;
  max-width: 25%;
  margin-top: 6px;
}

.col-75 {
  flex: 0 0 75%;
  max-width: 75%;
  margin-top: 6px;
}

@media screen and (max-width: 768px) {
  .container-form {
    margin: 20px;
    padding: 20px;
  }

  .col-25, .col-75, input[type=submit] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0;
  }

  input[type=submit] {
    float: none;
    width: 100%;
  }
  
}
@media screen and (max-width: 768px) {
    main img {
        width: 90%;
        height: auto;
    }
}

img {
  width: 30%;
  height: auto;
  border-radius: 30px;
  border: 1px solid var(--champagne);
  box-shadow: 0 0 10px rgba(203, 185, 148, 0.25);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

main img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

main p {
    margin-top: 1rem;
}

main>div>p>a {
  font-size: 3rem;
}

.titres-index {
    position: relative;
    display: block;
    text-align: center;
    color: var(--rouge-profond);
    font-family: "Playfair Display", serif;
    margin: 2.5rem 0 1rem 0;
}

h1.titres-index::before {
    content: "";
    width: 180px;
    height: 2px;
    background-color: var(--champagne);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.5rem;
    border-radius: 2px;
}

h1.titres-index {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
}

h2.titres-index {
    font-size: 1.3rem;
    font-family: "Lora", serif;
    font-weight: 400;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.btn-formulaire {
  display: inline-block;
  margin: 1rem auto;
  padding: 1rem 2.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--rouge-profond);
  background-color: var(--ivoire);
  border: 2px solid var(--champagne);
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(77, 0, 19, 0.15);
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn-formulaire:hover {
  background-color: var(--rouge-profond);
  color: var(--ivoire);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(77, 0, 19, 0.25);
}

.btn-formulaire:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(77, 0, 19, 0.2);
}
