 html {
    scroll-behavior: smooth;
}
    
.contact-tel p{
    text-align: center;
    margin: 2em 0 1em 0;
    font-size: 1.1em;
}

#contact {
  max-width: 800px;
  margin: auto;
  padding: 2em;
  font-family: Arial, sans-serif;
}
#contact iframe{
    width: 736px;
    height: 400px;
    border: 0;
}

#contact h2 {
  text-align: center;
  margin-bottom: 0.5em;
}
#contact h4 {
  text-align: center;
  margin-bottom: -1.5em;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.message-floating {
    /* position: fixed; */
    /* bottom: 200px; */
    /* right: 20px; */
    background-color: #f0f0f0;
    color: black;
    width: fit-content;
    padding: 0.2em 0.5em;
    margin: 1em auto;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: floaty 5s ease-in-out infinite;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: opacity 0.4s ease;
}

/* Petite flèche vers le bas */
.message-floating .arrow {
  font-size: 1.2em;
  transform: rotate(0deg);
}

/* Animation de flottement */
@keyframes floaty {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(2px, 0px); }
  50%  { transform: translate(-2px, 0px); }
  75%  { transform: translate(2px, 0px); }
  100% { transform: translate(0px, 0px); }
}

/* Disparition au scroll */
.hidden-on-scroll {
  opacity: 0;
  pointer-events: none;
}

form input, form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

/* ajustements spécifiques Realme 8 Pro 432px */
@media screen and (max-width: 432px) and (orientation: portrait) {
#contact iframe{
    width: 368px;
    height: 400px;
    border: 0;
}
}