*,
*::before,
*::after {
  box-sizing: border-box;
}
.fiche-contact {
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: flex-start;
     flex-wrap: wrap;
}
.appel {
    display: none;
  }
.form-button {
    display: flex;
    justify-content: center;
    align-items: center;

}
form {
    width: 500px;
    margin: 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
input {
    width: 100%;
    padding: 10px;
    background-color: #0303b90c;
    border: 1px solid #CCC;
    border-radius: 4px;
    transition: border-color 0.3s ease;

    font-size: 16px;
    font-weight: 500;
    color: #333;
}
input:focus {
    outline: none;
    border-width: 2px;
    border-style: solid;
    padding: 9px;
    border-color: #CC9919;
}
textarea {
    min-width: 460px;
    max-width: 460px;
    padding: 10px;
    min-height: 250px;
    max-height: 250px;
    background-color: #0303b90c;
    border: 1px solid #CCC;
    border-radius: 4px;

    font-size: 16px;
    font-weight: 500;
}
textarea:focus {
    outline: none;
    border-width: 2px;
    border-style: solid;
    padding: 9px;
    border-color: #CC9919;
}
button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #CC9919;
    color: #0A1E50;
    font-size: 1.1rem;
    padding: 10px 20px;
    border:none;
    border-radius:4px;
    cursor:pointer;
}

.horaires {
    flex: 1;
 /*   padding-left: 30px;*/
    margin: 30px auto;
    margin-bottom: 30px;
    max-width: 450px;
    width: 100%;
}
.horaires-table {
  width: 100%;
  border-collapse: collapse;
  color: #333;
}
.horaires-table th,
.horaires-table td {
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #ddd;
}
.horaires-table th {
  font-weight: 600;
  background-color: #f9f9f9;
}
.contact-comment {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    width: 1000px;
}
@media screen and (min-width: 900px) and (max-width: 1250px) {
  .fiche-contact {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
      width: 100%;
      padding: 0px;      /* pour éviter que ça touche les bords */
  }
  .appel {
    display: none;
  }
  .horaires-table {
    width: 500px;
    border-collapse: collapse;
    color: #333;
  }
  .contact-comment {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 800px;
}
}
@media screen and (min-width: 769px) and (max-width: 899px) {
  .fiche-contact {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;  /* centre les enfants horizontalement */
      width: 100%;
      padding: 0px;      /* pour éviter que ça touche les bords */
  }
  .appel {
    display: none;
  }
  .horaires-table {
    width: 500px;
    border-collapse: collapse;
    color: #333;
  }
  .contact-comment {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 650px;
}
}
@media screen and (min-width: 577px) and (max-width: 768px) {

  .fiche-contact {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;  /* centre les enfants horizontalement */
      width: 100%;
      padding: 0px;      /* pour éviter que ça touche les bords */
      box-sizing: border-box;
  }
  .appel {
    display: none;
  }
 .horaires {
    width: 100%;
    padding: 0 15px;
    max-width: 400px;
    margin: 20px auto 50px auto;
  }

  .horaires-table {
      width: 100%;
      max-width: 400px; /* ou la valeur que tu veux */
      margin: 0 auto;
    border-collapse: collapse;
  }
  .contact-comment {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
}
}
@media screen and (max-width: 576px) {
  .fiche-contact {
    display: flex;
    flex-direction: column;
    align-items: center;           /* centre les enfants */
    padding: 0px;               /* marges latérales */
    box-sizing: border-box;
    width: 100%;
  }
  .appel {
    display: flex;
    color: #0A1E50;
    margin-bottom: 30px;
  }
  .form-button {
    width: 100%;
    max-width: 100%;
  }

  form {
    width: 100%;
    max-width: 500px;              /* limite la largeur sur grands écrans */
    background: #fff;
    padding: 0px; /* ajout de padding pour le confort */
    border-radius: 8px;
    margin: 0 auto;                /* centrage horizontal */
    box-sizing: border-box;
  }

  form > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  input,
  textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  textarea {
    min-width: unset;
    max-width: 100%;
    min-height: 150px;
    max-height: 300px;
  }

  .horaires {
    width: 100%;
    padding: 0 15px;
    max-width: 400px;
    margin: 20px auto 50px auto;
  }

  .horaires-table {
      width: 100%;
      max-width: 400px; /* ou la valeur que tu veux */
      margin: 0 auto;
    border-collapse: collapse;
  }
  button {
      display: block;
      background-color: #CC9919;
      color: #0A1E50;
      font-size: 1.1rem;
      padding: 10px 20px;
      margin-left: auto;
      margin-right: auto;
      border:none;
      border-radius:4px;
      cursor:pointer;
  }
  .contact-comment {
    text-align: center;
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 0 15px;
    box-sizing: border-box;
  }

}
