.page_ {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.mainContent {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
}

.search-container {
  margin: 1rem auto;
  width: 80%;
  text-align: center;
}

#searchInput {
  width: 80%;
  max-width: 500px;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.3125rem;
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.column1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #fff;
  padding: 0.625rem;
}

@media (max-width: 768px) {
  .column1 {
    grid-template-columns: 1fr;
  }
}

.topSection {
  display: flex;
  gap: 10rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.leftInfo {
  width: 40%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.leftInfo h3 {
  color: rgb(255, 160, 0);
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 900;
}

.leftInfo p {
  font-size: 1.2rem;
  line-height: 1.4;
  color: rgb(255, 160, 0);
  font-weight: 900;
}

.rightForm {
  width: 70%;
  padding: 20px;
  background: #335775;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contactForm label {
  color: #fff;
  font-weight: 700;
  margin-bottom: 5px;
}

.formRowTop {
  display: flex;
  gap: 15px;
}

.formRowTop .formGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.formRowTop input,
.formRowFull textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.formRowTop input {
  height: 45px;
}

.formRowFull {
  display: flex;
  flex-direction: column;
}

.formRowFull textarea {
  resize: vertical;
  min-height: 35px;
  max-height: 55px;
}

.buttonRow {
  display: flex;
  justify-content: center;
}

.contactSubmit {
  padding: 5px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  background: rgb(255, 153, 0);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.middleTitle {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  background: #335775;
  border-radius: 8px;
}

.middleTitle h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.urgencesGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.urgBox {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%23003366' stroke-width='6' stroke-dasharray='6%2c14'/%3e%3c/svg%3e");
  min-height: auto;
  height: auto;
}

.urgHeader {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.urgIcon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.urgHeader h3 {
  margin-left: 18%;
  font-size: 1.5rem;
  font-family: "MorningSunshine", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
}

.urgBox p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #000;
}

.color-darkblue {
  color: #0d6780 !important;
}
.color-darkgreen {
  color: #007c46 !important;
}
.color-lightgreen {
  color: #4fc299 !important;
}
.color-red {
  color: #ff3131 !important;
}

.horraires {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-align: center !important;
}

.centre {
  text-align: center !important;
}

.medecin {
  border-color: #0d6780;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%230D6780' stroke-width='8' stroke-dasharray='17,11'/%3e%3c/svg%3e");
}

.pharmacie {
  border-color: #007c46;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%23007C46' stroke-width='8' stroke-dasharray='17,11'/%3e%3c/svg%3e");
}

.soins {
  border-color: #4fc299;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%234FC299' stroke-width='8' stroke-dasharray='17,11'/%3e%3c/svg%3e");
}

.vitales {
  border-color: #ff3131;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='6' ry='6' stroke='%23FF3131' stroke-width='8' stroke-dasharray='17,11'/%3e%3c/svg%3e");
}

@media (max-width: 1200px) {
  .topSection {
    flex-direction: column;
    gap: 0.1rem;
    width: 95%;
  }
  .leftInfo,
  .rightForm {
    width: 100%;
  }

  .leftInfo h3 {
    font-size: 1.5rem;
  }
  .leftInfo p {
    font-size: 1rem;
  }

  .formRowTop {
    flex-direction: column;
    gap: 1rem;
  }
  .formGroup {
    margin: 0 !important;
  }

  .urgencesGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .urgHeader {
    flex-direction: column;
    text-align: center;
  }
  
  .urgHeader h3 {
    margin-left: 0;
    margin-top: 10px;
    font-size: 1.3rem;
  }
  
  .urgIcon {
    width: 60px;
    height: 60px;
  }
  
  .urgBox {
    padding: 15px 10px;
  }
  
  .urgBox p {
    font-size: 0.85rem;
  }
  
  .horraires {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 410px) {
  .mainContent {
    width: 95%;
    padding: 10px 0;
  }
  
  .urgencesGrid {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .urgBox {
    padding: 10px 8px;
  }
  
  .urgHeader h3 {
    font-size: 1.1rem;
  }
  
  .urgIcon {
    width: 50px;
    height: 50px;
  }
  
  .urgBox p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .horraires {
    font-size: 1rem !important;
  }
  
  .leftInfo h3 {
    font-size: 1.3rem;
  }
  
  .leftInfo p {
    font-size: 0.9rem;
  }
  
  .formRowTop input {
    height: 35px;
  }
  
  .formRowFull textarea {
    min-height: 30px;
  }
  
  .contactSubmit {
    padding: 4px 15px;
    font-size: 16px;
  }
}

._bold_title {
  font-size: 2rem !important;
  -webkit-text-stroke: 0.7px currentColor;
  text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor,
    0 0.5px 0 currentColor, 0 -0.5px 0 currentColor;
  letter-spacing: 0.04em;
}

.contact-alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.contact-alert--success {
  background-color: #e6ffed;
  color: #2a662a;
  border: 1px solid #2a662a;
}

.contact-alert--error {
  background-color: #ffe6e6;
  color: #662a2a;
  border: 1px solid #662a2a;
}
