:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
html {
  background-color: rgb(223, 223, 223);
}
body {
  margin: 0;
  background: rgb(223, 223, 223) !important;
  color: rgb(243, 242, 242);
  background-color: rgb(243, 242, 242);
}
article {
  background-color: rgb(223, 223, 223);
}
.card {
  max-width: 720px;
  margin: 40px auto;
  background-color: #ff0000;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
#employee,
#offers {
  margin: 15px;
}
#address,
#note {
  color: #000;
}
header {
  padding: 24px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
}
header h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
header p {
  margin: 0;
  opacity: 0.95;
}
.content {
  padding: 22px 24px 10px;
}
.row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.row:last-child {
  border-bottom: 0;
}
.label {
  color: #666;
}
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.actions {
  padding: 20px 24px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
button,
.ghost {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
}
button.primary {
  background: #111827;
  color: #fff;
}
button.primary:hover {
  filter: brightness(1.05);
}
a.ghost {
  background: #eef2ff;
  color: #0d00be;
  display: inline-block;
}
small.hint {
  display: block;
  color: #6b7280;
  margin-top: 8px;
}
.card-body {
  background-color: white;
}
.card-body .row {
  text-align: left;
}
.bg-img-top {
  background-color: white;
}
.card-img-top {
  max-height: 375px; /* Hauteur fixe */
  object-fit: cover; /* Pour recadrer l'image */
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  position: relative;
  z-index: 1;
}
.pro-img {
  display: block;
  margin: -100px auto 10px auto; /* centré et superposé, ajuste -80px selon le rendu mobile/desktop */
  border: 4px solid #017cba;
  border-radius: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 150px;
  max-width: 50vw;
  height: auto;
  position: relative;
  z-index: 2; /* Ajouté pour passer au-dessus */
}
.agence-img {
  max-width: 100px;
  width: 20%;
  margin-bottom: 10px;
  position: absolute;
  margin: 10px;
  border-radius: 10%;
  z-index: 3;
}
.bgIcon {
  background-color: #017cba;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;

  /* Forme de goutte simple et compatible */
  clip-path: ellipse(60% 50% at 50% 60%);
}

.icon-wrapper {
  width: 45px;
  height: 45px;
  background: #017cba;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  /* Pointe plus arrondie et plus proche du bord droit */
  border-radius: 100% 50% 100% 100% / 100% 50% 100% 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Icône FontAwesome */
.icon-wrapper i {
  color: white;
}

.padding {
  background-color: rgb(223, 223, 223);
}
#name {
  font-size: 2.25em;
  font-weight: 700;
  font-family: "Yrsa", serif;
}
#title {
  font-size: 1.2em;
  color: #017cba;
}
body,
html,
article,
.card,
.card-body,
.row,
.label,
p,
a,
button,
input,
.content {
  font-family: "Alegreya Sans", sans-serif;
}
#add-contact {
  background-color: #017cba;
}
input,
.aInput {
  font-size: 25px !important;
  border: none !important;
}
.row.align-items-center {
  border-bottom: none !important;
  padding: 0;
  display: flex;
}
.bgCard-map {
  background-color: rgb(223, 223, 223) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.map-container {
  max-width: 720px;
  margin: 0 auto;
  background: rgb(223, 223, 223) !important;
  box-sizing: border-box;
  padding: 12px; /* Ajoute un espace intérieur sans changer la largeur de la card */
}
.map-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.swiper {
  width: 100%;
  height: 100%;
  position: static !important;
  padding-left: -10px;
}

.swiper-pagination {
  position: absolute !important;
  bottom: -500px;             /* descend hors du swiper */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mySwiper {
  box-shadow: none !important;
  position: relative;
}

.mySwiper img {
  width: 100%;
  object-fit: cover;
}

.cardSwiper {
  position: relative;
  background-color: rgb(223, 223, 223) !important;
  border: 0px !important;
  box-shadow: none !important;
}
.rowAvecBorder {
  border-bottom: 0 !important;
}

@media (max-width: 730px) {
  .map-container {
    padding: 30px !important;
  }
  .map-img {
    border-radius: 10px !important;
    padding: 0 !important;
  }
  .bg-champs {
    padding-left: 15px;
  }
}
