.lc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lc-lightbox-content {
  background: #fff;
  padding: 2rem;
  max-width: 650px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.lc-lightbox-close {
  display: block;
  background-color: var(--wp--preset--color--white);
  border-radius: 100%;
  border: solid 1px var(--wp--preset--color--dark-blue);
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto;
  font-size: 24px;
  cursor: pointer;
  transition: 0.1s ease-in;
}

.lc-lightbox-close:hover {
  background-color: var(--wp--preset--color--dark-blue);
  color: white;
}

/* ============================================================
   BOUTON .lc-btn-3d
   ============================================================
   Style unifie pour les boutons de telechargement (fiche PDF
   et fichier 3D). Utilise flexbox + min-height pour garantir
   un rendu strictement identique quel que soit l'element HTML
   utilise (<a>, <button>) et quelle que soit la largeur du
   conteneur (desktop comme mobile).

   Sans flex + min-height, un <button> et un <a> avec meme
   padding ne rendent pas exactement la meme hauteur, car le
   navigateur applique des styles par defaut aux boutons
   (font-family systeme, appearance, line-height intrinseque).
   ============================================================ */
.lc-btn-3d {
  /* Layout : flex garantit un centrage parfait et une hauteur
     identique entre <a> et <button> */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Dimensions : width 100 % du conteneur, hauteur minimale
     fixe qui s'adapte si le texte passe sur 2 lignes */
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  box-sizing: border-box;

  /* Apparence */
  border-radius: 2px;
  border: solid 1px var(--wp--preset--color--dark-blue);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--dark-blue);
  text-decoration: none;
  text-align: center;

  /* Typographie : font-family inherit force le <button> a
     utiliser la meme police que le reste du site (sinon il
     prend la police systeme par defaut) */
  font-family: inherit;
  font-size: var(--wp--preset--font-size--14);
  font-weight: 700;
  line-height: 1.3;

  /* Interactivite */
  cursor: pointer;
  transition: 0.2s ease-in;

  /* Reset des styles natifs du <button> pour qu'il se comporte
     comme un <a> (important sur Safari et iOS qui forcent des
     styles d'apparence sur les boutons) */
  appearance: none;
  -webkit-appearance: none;
}

.lc-btn-3d:hover {
  background: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
}

/* Bouton de téléchargement dans la lightbox */
.lc-btn-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  border: solid 1px var(--wp--preset--color--dark-blue);
  background: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease-in;
}

.lc-btn-download:hover {
  color: var(--wp--preset--color--dark-blue);
  background: var(--wp--preset--color--white);
}

/* Bloc descriptif du fichier 3D */
.lc-3d-description p {
  margin-top: 1.5rem;
  font-size: var(--wp--preset--font-size--12);
  color: var(--wp--preset--color--dark-blue);
  line-height: 1.5;
  text-align: left;
}

/* Bloc contenant les trois liens logiciels */
.lc-3d-tools {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.lc-3d-tool {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.lc-3d-tool img {
  display: block;
  margin: 0 auto 0.5rem;
  width: 30px;
  height: auto;
}

.lc-3d-tool a {
  color: var(--wp--preset--color--dark-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--wp--preset--font-size--12);
  display: block;
  line-height: 1.3;
}

.lc-3d-tool a:hover {
  text-decoration: underline;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .lc-lightbox-content {
    max-width: 90%;
    padding: 1.5rem;
  }

  .lc-3d-tools {
    flex-direction: column;
    align-items: center;
  }

  .lc-3d-tool {
    margin-bottom: 1rem;
  }
}