/* V32 — correctifs ciblés tablette et légende de la page Contact.
   Aucun changement aux conversations, aux animations ou aux styles mobiles validés. */

/* Sur tablette, le dernier bloc de la carte « À venir » ne doit jamais
   imposer 310 px dans une colonne prévue pour 190–240 px.
   C'était la cause du mock-up et du CTA déportés puis coupés à droite. */
@media (min-width:901px) and (max-width:1100px) {
  .upcoming-card.has-project-mockup {
    grid-template-columns:72px minmax(0,1fr) minmax(190px,220px);
  }
}
@media (min-width:651px) and (max-width:900px) {
  /* On conserve ici la grille à deux colonnes de la version tablette portrait. */
  .upcoming-card.has-project-mockup {
    grid-template-columns:minmax(0,1fr) minmax(180px,210px);
  }
}
@media (min-width:651px) {
  /* Détection iPadOS via la classe .site-tablet, y compris en paysage. */
  .site-tablet .upcoming-card.has-project-mockup .upcoming-right {
    min-width:0 !important;
    width:100%;
    max-width:100%;
    align-items:center !important;
    justify-self:center;
    gap:17px !important;
  }
  .site-tablet .upcoming-card.has-project-mockup .upcoming-project-mockup {
    width:min(100%,240px) !important;
    max-width:100% !important;
    height:auto;
    margin-inline:auto;
    object-fit:contain;
  }
  .site-tablet .upcoming-card.has-project-mockup .upcoming-right .button {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    justify-content:center;
    gap:10px;
    padding-inline:12px;
    white-space:nowrap;
  }
}
/* Même protection sur les largeurs intermédiaires, y compris hors iPad. */
@media (min-width:651px) and (max-width:1100px) {
  .upcoming-card.has-project-mockup .upcoming-right {
    min-width:0 !important;
    width:100%;
    max-width:100%;
    align-items:center !important;
    justify-self:center;
    gap:17px !important;
  }
  .upcoming-card.has-project-mockup .upcoming-project-mockup {
    width:min(100%,218px) !important;
    max-width:100% !important;
    height:auto;
    margin-inline:auto;
    object-fit:contain;
  }
  .upcoming-card.has-project-mockup .upcoming-right .button {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    justify-content:center;
    gap:10px;
    padding-inline:12px;
    white-space:nowrap;
  }
}

/* La signature suit la même proximité visuelle que sur mobile :
   on la remonte dans le cadre, plutôt que d'abaisser l'enveloppe. */
@media (min-width:901px) {
  .postal-composition .postal-sent {
    bottom:49px !important;
  }
}
