/*
 * Pages de contenu bâties au Divi Builder : accueil (Fabrication de panneaux), Installation
 * et entretien, Centre de service VER-MAC, Contact, Politique de confidentialité.
 *
 * Divi imprime ses propres styles de module après ce fichier, dans le <body> : la classe
 * de type (`.et_pb_text`…) jointe à la classe du module redonne l'avantage de spécificité
 * qu'avait le CSS libre.
 */

/* Accueil */
.et_pb_text.accueil-titre h1 {
  margin-block-end: 0;
}

.et_pb_group.rond-deco {
  block-size: auto;
  inline-size: 20ch;
  aspect-ratio: 1;
  font-size: 1.75em;
  line-height: 1;
}

.et_pb_text.accueil-liste-services {
  ul {
    padding: 0;
    list-style-type: none;
  }

  li {
    border-block-end: 1px solid currentColor;

    + li {
      margin-block-start: 1lh;
    }
  }
}

.et_pb_text.accueil-losange {
  ul {
    margin-block-start: 1lh;
    padding: 0;
  }

  img {
    max-inline-size: 200px;
  }
}

/* Pages de services */
.et_pb_text.service-texte h3 {
  margin-block-start: 1.25lh;
}

.et_pb_text.installation-entretien img {
  display: block;
  inline-size: clamp(120px, 50%, 300px);
  margin-block-start: 1lh;
}

.et_pb_group.installation-galerie {
  --min-card-size: 16ch;
  --column-count: 3;
}

.et_pb_image.installation-photo img {
  object-position: 0 30%;
}

/* Contact */
.et_pb_map_container.contact-carte .et_pb_map {
  block-size: auto;
  inline-size: 100%;
  aspect-ratio: 16 / 9;

  @media (width <= 980px) {
    aspect-ratio: 1;
  }

  @media (width <= 767px) {
    aspect-ratio: 16 / 9;
  }
}

/* Politique de confidentialité */
.et_pb_text.politique-texte {
  header + p {
    margin-block-start: 1.5lh;
  }

  section {
    > * + * {
      margin-block-start: 0.75lh;
    }

    > p + :is(ul, ol, dl) {
      margin-block-start: 0.25lh;
    }
  }
}
