/* PATCH: ton titre devient H1 mais garde EXACTEMENT le style prévu pour h2 */
.box-text-main h1{
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  text-align: center;
  margin: 0;
  color: #f4decb;
}

/* Cadre main contact */
/*                    */
/* Cadre main contact */
.box-text-main{
  position: relative;
  display: flex;
  justify-content: center;
}

.cadre-text{
  width: 910px;
    background-color:#4c4c30;
    margin: 50px 50px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    border-radius: 10px;
}


.box-text-main h2{
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  text-align: center;
}

.box-text-main ul{
  position: absolute;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  top: 30%;
  left: 45%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
  list-style: none;
}
.box-text-main li a{
  color:#f4decb;
  }
.box-text-main .flechedecontact {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    cursor: pointer;
    animation: arrow-bounce 1.6s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.box-text-main .flechedecontact:hover {
    transform: translate(-50%, -50%) scale(1.08);
}
@keyframes arrow-bounce {
    0% { top: 80%; }
    50% { top: 83%; }
    100% { top: 80%; }
}
.box-text-main span {
    color:#ca5900;
    font-size: 20px;
}
.box-text-main li{
    padding: 10px;
    font-size: 18px;
    color: #f4decb;
}

/* formulaire de contact */
.contact-form-section {
  display: flex;
  justify-content: center;
  margin: 40px 0 80px;
}

.contact-form {
  width: 910px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-row .field-shell {
  background-color: #4c4c30;
  border-radius: 10px;
  padding: 12px 26px;
  box-shadow: rgba(50, 50, 93, 0.25) 0 40px 70px -20px,
              rgba(0, 0, 0, 0.3) 0 25px 50px -30px,
              rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.contact-form input:not(.input-objet),
.contact-form textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #f4decb;
  font-size: 16px;
  font-family: "Montserrat Alternates", sans-serif;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #f4decb;
  opacity: 0.9;
}

.input-objet::placeholder { color: #4c4c30 !important; }
.input-objet::-webkit-input-placeholder { color: #4c4c30 !important; }
.input-objet::-moz-placeholder { color: #4c4c30 !important; }
.input-objet:-ms-input-placeholder { color: #4c4c30 !important; }
.input-objet::-ms-input-placeholder { color: #4c4c30 !important; }

.contact-form-row--message .field-shell--message {
  padding: 18px 22px 22px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.input-objet {
  width: calc(100% - 20px);
  margin: 0px -10px 18px;
  padding: 10px 20px;
  border: none;
  outline: none;
  border-radius: 10px;
  background: #e7d4c7;
  color: #4c4c30;
  font-size: 16px;
  font-family: "Montserrat Alternates", sans-serif;
}
.textarea-message {
  flex: 1;
  resize: vertical;
  padding-top: 6px;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.contact-submit {
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: #ca5900;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-family: "Montserrat Alternates", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-submit:hover {
  background: #e06c09;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-success {
  max-width: 910px;
  margin: 20px auto 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: #d4edda;
  color: #155724;
  font-size: 16px;
  text-align: center;
}

.map-section{
  display: flex;
  justify-content: center;
  margin: 10px 0 70px;
  padding: 0 16px;
}

.map-card{
  width: 910px;
  max-width: 100%;
  background-color:#4c4c30;
  border-radius: 10px;
  padding: 22px 22px 18px;
  box-shadow: rgba(50, 50, 93, 0.25) 0 40px 70px -20px,
              rgba(0, 0, 0, 0.3) 0 25px 50px -30px,
              rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.map-card h2{
  margin: 0 0 6px;
  text-align: center;
  font-size: 22px;
  color: #f4decb;
}

.map-address{
  margin: 0 0 14px;
  text-align: center;
  color: #f4decb;
  opacity: 0.95;
}

.map-embed{
  border-radius: 10px;
  overflow: hidden;
}

.map-embed iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-link{
  display: inline-block;
  margin-top: 12px;
  color: #f4decb;
  text-decoration: underline;
}

@media (max-width: 700px){
  .map-embed iframe{ height: 260px; }
  .map-card{ padding: 18px 16px 16px; }
}

@media (max-width: 1400px) and (min-width: 931px){
  .page-contact .contact-extra{
    width: clamp(340px, 42vw, 620px) !important;
    top: 62% !important;
  }
  .box-text-main ul{
    top: 32% !important;
  }
}

@media (max-width: 1024px) {
  .box-text-main { padding: 0 16px; }
  .cadre-text {
    width: 100%;
    max-width: 910px;
    margin: 40px auto;
  }

  /* PATCH: H1 suit exactement les règles du H2 */
  .box-text-main h1 {
    top: 18%;
    font-size: 22px;
  }
  .box-text-main h2 {
    top: 18%;
    font-size: 22px;
  }

  .box-text-main ul {
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    align-items: flex-start;
  }

  .box-text-main li { font-size: 16px; padding: 6px 0; }
  .box-text-main span { font-size: 18px; }

  .box-text-main .flechedecontact {
    top: 86%;
    width: 42px;
  }
}

@media (max-width: 930px){
  .page-contact .cadre-text{ display: none !important; }

  .page-contact .box-text-main{
    position: relative !important;
    width: min(910px, calc(100% - 32px)) !important;
    margin: 30px auto !important;
    padding: 22px 18px 16px !important;

    background-color: #4c4c30 !important;
    border-radius: 10px !important;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
                rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
                rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .page-contact .box-text-main h1,
  .page-contact .box-text-main h2,
  .page-contact .box-text-main ul,
  .page-contact .contact-extra,
  .page-contact .box-text-main .flechedecontact{
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .page-contact .box-text-main h1{ order: 1; }
  .page-contact .box-text-main h2{ order: 1; }
  .page-contact .box-text-main ul{ order: 2; }
  .page-contact .contact-extra{ order: 3; }
  .page-contact .box-text-main .flechedecontact{ order: 4; }

  .page-contact .box-text-main h1{
    margin: 0 0 6px !important;
    font-size: 20px !important;
    text-align: center !important;
    color: #f4decb !important;
  }

  .page-contact .box-text-main h2{
    margin: 0 0 6px !important;
    font-size: 20px !important;
    text-align: center !important;
    color: #f4decb !important;
  }

  .page-contact .box-text-main ul{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 520px !important;
    text-align: left !important;
    display: block !important;
  }

  .page-contact .box-text-main li{
    padding: 6px 0 !important;
    font-size: 15px !important;
    color: #f4decb !important;
  }

  .page-contact .box-text-main li span{
    color: #ca5900 !important;
    font-size: 15px !important;
  }

  .page-contact .contact-extra{
    width: 100% !important;
    max-width: 620px !important;
    margin: 6px 0 0 !important;
    text-align: center !important;
    color: #f4decb !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .page-contact .contact-extra p{ margin: 0 !important; }

  .page-contact .contact-extra span{
    font-size: inherit !important;
    font-weight: 700 !important;
    color: #e06c09 !important;
  }

  .page-contact .contact-extra small{
    display: block !important;
    margin-top: 6px !important;
    font-size: 13px !important;
    opacity: .9 !important;
  }

  .page-contact .box-text-main .flechedecontact{
    width: 36px !important;
    margin-top: 8px !important;
    animation: none !important;
  }
}

.page-contact .contact-extra{
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 30%;
  text-align: center;
  color: #f4decb;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.page-contact .contact-extra span{
  font-size: inherit;
  font-weight: 700;
  color: #e06c09;
}

.page-contact .contact-extra small{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: .9;
}
