/* =============================================
   E-SERVICES — Style grille cartes
   ============================================= */

#service_id {
  width: 90%;
  margin: auto;
}

/* Grille responsive */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

/* Carte */
.option {
  position: relative;
  height: 380px;
  border-radius: 15px;
  overflow: hidden;
  background-image: var(--optionBackground);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.option:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

/* Overlay dégradé sombre en bas */
.shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.option:hover .shadow {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 65%,
    transparent 100%
  );
}

/* Contenu texte + boutons */
.label {
  position: relative;
  z-index: 2;
  padding: 25px;
  color: white;
}

/* Icône cercle blanc */
.label .icon {
  width: 45px;
  height: 45px;
  background: white;
  color: #4B52A2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* Titre */
.label .info .main {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Description */
.label .info .sub {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 18px;
  opacity: 0.88;
  min-height: 38px;
}

/* Boutons */
.btn-services {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: static;
  width: auto;
  padding: 0;
  top: unset;
  right: unset;
}

.btn-services a {
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: #4B52A2;
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
  text-transform: capitalize;
  white-space: nowrap;
}

.btn-services a:hover {
  background-color: #363d7a;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .options {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
@media (max-width: 768px) {
  .options {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .option {
    height: 300px;
  }
}
@media (max-width: 480px) {
  .options {
    grid-template-columns: 1fr;
  }
  .option {
    height: 280px;
  }
}

/* =============================================
   Styles généraux conservés
   ============================================= */
#section1 {
  background: url("/themes/auer/images/bg_0.jpg") center no-repeat;
  background-size: cover;
}

div.gold_square {
  width: 90%;
  border: 1px solid #C9A34E;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  background-color: #C9A34E;
  height: 227px;
  padding-top: 52px;
  padding-left: 40px;
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 100;
}

.block.block-md-block-contact .col-md-4 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

div.gold_purple {
  width: 90%;
  border: 1px solid #4B52A2;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  background-color: #4B52A2;
  height: 227px;
  padding-top: 31px;
  padding-left: 40px;
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 100;
}

div.gold_square span {
  float: right;
  margin-right: 33px;
  font-size: 80px;
  margin-top: -49px;
}

div.gold_purple span.icon {
  float: right;
  margin-right: 33px;
  font-size: 80px;
  margin-top: -61px;
}

div.gold_purple span {
  float: right;
  margin-top: -30px;
  margin-right: 14px;
}

.fp-tableCell {
  display: table-cell !important;
  vertical-align: middle !important;
  width: 100% !important;
}

div.col-md-12.col-xs-12.section-title-auejsb {
  padding: 3px 66px 12px;
}

div.col-md-12.col-xs-12.section-title-auejsb h1 {
  color: white;
  font-size: 57px;
}

div.section-content-auejsb button.btn-md {
  background-color: #FFFFFF;
  color: #26308E;
  font-size: 18px;
}

div.col-md-8 div#maps_id {
  margin-left: 50px;
  margin-right: -71px;
}

div div.section-content-auejsb {
  color: white;
  text-align: justify;
}

div div.section-content-auejsb h3 {
  color: white;
  text-align: justify;
}
