/* Easy & Speed — correctifs UX validés — V1.0.2 — 2026-08-26 */

:root {
  --es-aqua-accessible: #007e8f;
}

/* 1. Contraste conforme pour les actions à texte blanc. */
.es-site .button-primary,
.es-site .header-cta,
.es-site .consent-accept,
.es-site .service-tabs button.active,
.es-site .region-tabs button.active,
.es-site [data-tracking-submit],
.es-site .tracking-form button,
.es-site #suivi form button[type="submit"],
.es-site .es-feedback__trigger,
.es-site .es-feedback__submit {
  background-color: var(--es-aqua-accessible) !important;
  border-color: var(--es-aqua-accessible) !important;
}

.es-site .site-header nav a {
  min-width: 24px;
}

/* 2. Cibles tactiles confortables sans allonger excessivement la page. */
.es-site .text-link,
.es-site #tarifs-apercu article > a,
.es-site #tarifs-apercu article > button,
.es-site .agency-search input,
.es-site .network-more,
.es-site .agency-gps-link {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.es-site .site-footer a,
.es-site .site-footer button,
.es-site footer a,
.es-site footer button {
  align-items: center;
  display: inline-flex;
  min-height: 32px;
  min-width: 32px;
  padding-inline: 5px;
}

.es-site .consent-banner button {
  min-height: 44px;
}

/* 3. Hiérarchie : le titre du service reste clairement sous le H2. */
.es-site .service-panel-copy h3 {
  font-size: clamp(36px, 3vw, 42px) !important;
  line-height: 1.08 !important;
}

/* 4. Réseau : quatre agences au premier affichage, liste complète à la demande. */
.es-site #reseau.es-network-collapsed .agency-list > [data-agency]:nth-child(n + 5) {
  display: none !important;
}

.es-site #reseau .network-more {
  cursor: pointer;
  justify-content: center;
}

/* 5. Les cartes de conseil restent informatives, sans fausse affordance. */
.es-site .resources-section .resource-grid article {
  cursor: default !important;
}

.es-site .resources-section .resource-grid article:hover {
  box-shadow: 0 14px 34px rgba(5, 37, 103, 0.08) !important;
  transform: none !important;
}

/* 6. Réserver la géométrie des images publiques. */
.es-site .brand img,
.es-site .site-footer img,
.es-site footer img {
  aspect-ratio: 3 / 1;
  height: auto;
}

.es-site .phone-screen img,
.es-site .hero-phone img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 7. Consentement compact et sans concurrence avec le bouton d’avis. */
.es-site.es-consent-visible .feedback-trigger,
.es-site.es-consent-visible [data-feedback-trigger],
.es-site.es-consent-visible .es-feedback__trigger {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 520px) {
  .es-site .service-panel-copy h3 {
    font-size: clamp(30px, 9vw, 34px) !important;
  }

  .es-site .consent-banner {
    bottom: 10px !important;
    gap: 10px !important;
    left: 10px !important;
    padding: 12px !important;
    right: 10px !important;
    width: auto !important;
  }

  .es-site .consent-banner strong {
    font-size: 14px !important;
  }

  .es-site .consent-banner p {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 3px 0 0 !important;
  }

  .es-site .consent-banner > div:last-child {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .es-site .consent-banner button {
    min-height: 40px;
    padding: 8px 10px !important;
  }

  .es-site .consent-banner [data-open-privacy] {
    min-height: 24px;
    min-width: 24px;
    padding: 0 4px !important;
  }
}
