/* Aligné sur dhl.com/fr-fr — bannière et icônes locales dans /assets */
:root {
  --dhl-yellow: #ffcc00;
  --dhl-red: #d40511;
  --dhl-red-dark: #ba0c12;
  --dhl-black: #0a0a0a;
  --dhl-gray-50: #f7f7f7;
  --dhl-gray-200: #e0e0e0;
  --dhl-gray-600: #5c5c5c;
  --dhl-white: #ffffff;
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--dhl-black);
  background: var(--dhl-white);
  line-height: 1.5;
}

a {
  color: var(--dhl-red);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--dhl-black);
  color: var(--dhl-white);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— En-tête (jaune + barre blanche) ——— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.top-bar {
  background: var(--dhl-yellow);
}

.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  display: block;
  height: 22px;
  width: auto;
}

.top-bar-utilities {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dhl-black);
  font-size: 0.875rem;
  font-weight: 600;
}

.util-link:hover,
.util-link:focus-visible {
  color: var(--dhl-red);
  text-decoration: none;
}

.util-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--dhl-black);
}

.lang-switch a:hover {
  color: var(--dhl-red);
}

.lang-sep {
  color: var(--dhl-gray-600);
  font-weight: 400;
}

.lang-active {
  color: var(--dhl-black);
}

/* Navigation blanche */
.sub-nav {
  background: var(--dhl-white);
  border-bottom: 1px solid var(--dhl-gray-200);
}

.sub-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}

.sub-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
}

.sub-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dhl-black);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
}

.sub-nav-list a:hover,
.sub-nav-list a:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
  opacity: 0.85;
}

.mobile-menu-btn {
  display: none;
  background: var(--dhl-black);
  color: var(--dhl-white);
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .top-bar-utilities {
    display: none;
  }

  .sub-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-top: 1px solid var(--dhl-gray-200);
    box-shadow: var(--shadow-soft);
  }

  .sub-nav.is-open {
    display: block;
  }

  .sub-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
  }

  .sub-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .sub-nav-list a {
    padding: 0.65rem 0.5rem;
  }

  .sub-nav-list--right {
    border-top: 1px solid var(--dhl-gray-200);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}

/* ——— Hero + bannière ——— */
.hero-stage {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  overflow: hidden;
}

.hero-bg-picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(5rem, 12vw, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Alerte douane (première page) */
.customs-alert {
  width: 100%;
  max-width: 640px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: var(--dhl-white);
  border-radius: 8px;
  border-left: 4px solid var(--dhl-red);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.customs-alert-icon {
  flex-shrink: 0;
  color: var(--dhl-red);
  line-height: 0;
}

.customs-alert-body {
  min-width: 0;
  flex: 1;
}

.customs-alert-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dhl-black);
  letter-spacing: -0.02em;
}

.customs-alert-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dhl-gray-600);
  line-height: 1.5;
}

.customs-alert-text strong {
  color: var(--dhl-black);
}

.customs-alert-actions {
  margin-top: 1rem;
}

.btn-customs-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border: none;
  border-radius: 8px;
  background: var(--dhl-red);
  color: var(--dhl-white);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn-customs-pay:hover,
.btn-customs-pay:focus-visible {
  background: var(--dhl-red-dark);
  color: var(--dhl-white);
  text-decoration: none;
}

.btn-customs-pay:focus-visible {
  outline: 2px solid var(--dhl-yellow);
  outline-offset: 2px;
}

.hero-tracking {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tracking-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--dhl-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

.tracking-inline {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  background: var(--dhl-white);
}

.tracking-inline input[type='text'] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dhl-black);
  text-align: left;
}

.tracking-inline input::placeholder {
  color: #767676;
}

.tracking-inline input:focus {
  outline: none;
}

.tracking-inline:focus-within {
  outline: 2px solid var(--dhl-yellow);
  outline-offset: 2px;
}

.btn-track {
  flex-shrink: 0;
  min-width: 120px;
  padding: 0 1.75rem;
  border: none;
  background: var(--dhl-red);
  color: var(--dhl-white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}

.btn-track:hover,
.btn-track:focus-visible {
  background: var(--dhl-red-dark);
}

/* Cartes qui chevauchent le hero */
.hero-cards-outer {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: -4.5rem auto 0;
  padding: 0 1.25rem 2rem;
}

.hero-cards-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.cta-card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  background: var(--dhl-white);
  border: 1px solid var(--dhl-gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  min-height: 120px;
}

.cta-card--accent {
  position: relative;
  overflow: hidden;
}

.cta-card--accent::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 48px 48px 0;
  border-color: transparent var(--dhl-yellow) transparent transparent;
  pointer-events: none;
}

.cta-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cta-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.cta-card-title a {
  color: var(--dhl-black);
}

.cta-card-title a:hover {
  color: var(--dhl-red);
}

.cta-card-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dhl-gray-600);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-cards-inner {
    grid-template-columns: 1fr;
  }

  .hero-cards-outer {
    margin-top: -2rem;
  }
}

/* ——— Sections ——— */
.section {
  padding: 3rem 1.25rem;
}

.section--after-hero {
  padding-top: 1rem;
}

.section--alt {
  background: var(--dhl-gray-50);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.section-sub {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.section-intro {
  max-width: 720px;
  margin: 0 0 1.5rem;
  color: var(--dhl-gray-600);
}

.section-cta {
  margin: 1.5rem 0 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--dhl-red);
  border-radius: 50%;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.two-col--align-center {
  align-items: center;
}

.two-col-visual {
  display: flex;
  justify-content: center;
}

.info-card {
  background: var(--dhl-white);
  border: 1px solid var(--dhl-gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--dhl-gray-600);
}

.info-card--row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-card--row p {
  margin: 0;
  color: var(--dhl-black);
  font-weight: 600;
}

.link-arrow {
  display: inline-block;
  font-weight: 700;
}

.banner-tarifs {
  background: #fff8e6;
  border-left: 4px solid var(--dhl-yellow);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.banner-tarifs h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.banner-tarifs p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.update-tile {
  background: var(--dhl-white);
  border: 1px solid var(--dhl-gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 120px;
}

.section--alt .update-tile {
  background: var(--dhl-white);
}

.update-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.update-tile p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dhl-gray-600);
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--dhl-white);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: var(--dhl-yellow);
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.social-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
}

.social-row a:hover {
  background: var(--dhl-red);
}

.social-row img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-legal a {
  color: #aaa;
  font-size: 0.8rem;
}

.copyright {
  margin: 0;
  color: #888;
  font-size: 0.8rem;
}

/* ——— Page formulaire (frais dédouanement) ——— */
.page-form-shell {
  background: var(--dhl-white);
}

.page-form-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--dhl-yellow) 0%, var(--dhl-yellow) 35%, var(--dhl-red) 35%, var(--dhl-red) 100%);
}

.page-form-breadcrumb-wrap {
  background: var(--dhl-white);
  border-bottom: 1px solid var(--dhl-gray-200);
}

.page-form-breadcrumb-inner {
  padding: 0.75rem 1.25rem;
}

.page-form-breadcrumb {
  font-size: 0.8125rem;
  color: var(--dhl-gray-600);
}

.page-form-breadcrumb a {
  color: var(--dhl-black);
  font-weight: 600;
}

.page-form-breadcrumb a:hover,
.page-form-breadcrumb a:focus-visible {
  color: var(--dhl-red);
}

.page-form-breadcrumb-sep {
  margin: 0 0.5rem;
  color: var(--dhl-gray-200);
  font-weight: 400;
}

.page-form-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.page-form-inner {
  max-width: 560px;
}

.page-form-header {
  margin-bottom: 2rem;
}

.page-form-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dhl-red);
}

.page-form-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dhl-black);
  padding-left: 0.85rem;
  border-left: 4px solid var(--dhl-yellow);
}

.page-form-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dhl-gray-600);
  line-height: 1.55;
}

.form-dhl {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--dhl-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--dhl-gray-200);
}

.form-dhl-grid {
  display: grid;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.form-dhl-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .form-dhl-grid--2 {
    grid-template-columns: 1fr;
  }
}

.form-dhl-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-dhl-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dhl-black);
}

.form-dhl-field input[type='text'],
.form-dhl-field input[type='tel'],
.form-dhl-field input[type='date'],
.form-dhl-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dhl-black);
  border: 1px solid var(--dhl-gray-200);
  border-radius: var(--radius);
  background: var(--dhl-white);
}

.form-dhl-field textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.45;
}

.form-dhl-field input::placeholder,
.form-dhl-field textarea::placeholder {
  color: #767676;
}

.form-dhl-field input:focus,
.form-dhl-field textarea:focus {
  outline: none;
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 2px rgba(212, 5, 17, 0.12);
}

.form-dhl-note {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--dhl-gray-600);
  line-height: 1.45;
}

.form-dhl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dhl-gray-200);
}

.form-dhl-back {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dhl-black);
}

.form-dhl-back:hover,
.form-dhl-back:focus-visible {
  color: var(--dhl-red);
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--dhl-red);
  color: var(--dhl-white);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-form-submit:hover,
.btn-form-submit:focus-visible {
  background: var(--dhl-red-dark);
}

.btn-form-submit:focus-visible {
  outline: 2px solid var(--dhl-yellow);
  outline-offset: 2px;
}

/* ——— Page paiement ——— */
.payment-summary {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--dhl-gray-50);
  border: 1px solid var(--dhl-gray-200);
  border-radius: 8px;
  border-left: 4px solid var(--dhl-red);
}

.payment-summary-title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dhl-gray-600);
}

.payment-summary-rows {
  margin: 0;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--dhl-gray-200);
}

.payment-summary-row:last-of-type {
  border-bottom: none;
}

.payment-summary-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--dhl-black);
}

.payment-summary-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--dhl-black);
}

.payment-summary-row--total {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--dhl-black);
  border-bottom: none;
  font-size: 1.0625rem;
}

.payment-summary-row--total dt {
  font-weight: 700;
}

.payment-summary-row--total dd {
  color: var(--dhl-red);
  font-size: 1.125rem;
}

.form-dhl--payment {
  margin-top: 0;
}

.form-dhl-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.form-dhl-legend {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dhl-black);
}

.form-dhl-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dhl-black);
  border: 1px solid var(--dhl-gray-200);
  border-radius: var(--radius);
  background: var(--dhl-white);
  cursor: pointer;
}

.form-dhl-field select:focus {
  outline: none;
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 2px rgba(212, 5, 17, 0.12);
}

.form-dhl-field input[type='password'] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dhl-black);
  border: 1px solid var(--dhl-gray-200);
  border-radius: var(--radius);
  background: var(--dhl-white);
}

.form-dhl-field input[type='password']:focus {
  outline: none;
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 2px rgba(212, 5, 17, 0.12);
}

.form-dhl-grid--expiry {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .form-dhl-grid--expiry {
    grid-template-columns: 1fr 1fr;
  }

  .form-dhl-grid--expiry .form-dhl-field:last-child {
    grid-column: 1 / -1;
  }
}

.payment-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--dhl-gray-600);
  line-height: 1.45;
}

.payment-secure-icon {
  flex-shrink: 0;
  color: var(--dhl-red);
  line-height: 0;
  margin-top: 0.1rem;
}

/* ——— Page confirmation ——— */
.confirmation-card {
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--dhl-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--dhl-gray-200);
}

.confirmation-icon {
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 56px;
  color: #1a7f37;
  line-height: 0;
}

.confirmation-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dhl-black);
}

.confirmation-lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dhl-red);
}

.confirmation-detail {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--dhl-gray-600);
  line-height: 1.55;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-ref {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--dhl-gray-50);
  border-radius: 8px;
  border: 1px dashed var(--dhl-gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.confirmation-ref-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dhl-gray-600);
}

.confirmation-ref-value {
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  color: var(--dhl-black);
  word-break: break-all;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
}

.confirmation-actions .btn-form-submit {
  text-decoration: none;
  color: var(--dhl-white);
}

.confirmation-actions .btn-form-submit:hover,
.confirmation-actions .btn-form-submit:focus-visible {
  text-decoration: none;
  color: var(--dhl-white);
}

/* ——— Écran de chargement DHL ——— */
body.dhl-loader-active {
  overflow: hidden;
}

.dhl-loader {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dhl-loader.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dhl-loader-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    var(--dhl-yellow) 0%,
    #f5e6a0 28%,
    #fff8e0 45%,
    #ffd4d4 72%,
    var(--dhl-red) 100%
  );
  opacity: 0.96;
}

.dhl-loader-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.dhl-loader-panel {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  padding: 2rem 1.75rem 1.85rem;
  background: var(--dhl-white);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: center;
  border-top: 4px solid var(--dhl-yellow);
}

.dhl-loader-logo {
  display: block;
  margin: 0 auto;
  height: 22px;
  width: auto;
}

.dhl-loader-bars {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-end;
  height: 44px;
  margin: 1.5rem 0 1rem;
}

.dhl-loader-bars span {
  width: 9px;
  border-radius: 2px;
  background: var(--dhl-red);
  transform-origin: center bottom;
  animation: dhl-loader-bar 0.85s ease-in-out infinite;
}

.dhl-loader-bars span:nth-child(1) {
  background: var(--dhl-yellow);
  animation-delay: 0s;
}

.dhl-loader-bars span:nth-child(2) {
  animation-delay: 0.12s;
}

.dhl-loader-bars span:nth-child(3) {
  background: var(--dhl-yellow);
  animation-delay: 0.24s;
}

@keyframes dhl-loader-bar {
  0%,
  100% {
    height: 12px;
    opacity: 0.65;
  }
  50% {
    height: 36px;
    opacity: 1;
  }
}

.dhl-loader-text {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dhl-black);
  letter-spacing: -0.02em;
}

.dhl-loader-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dhl-gray-600);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .dhl-loader-bars span {
    animation: none;
    height: 28px;
    opacity: 1;
  }
}

/* ——— Page CAPTCHA ——— */
.page-captcha-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.page-captcha-inner {
  max-width: 480px;
  margin: 0 auto;
}

.captcha-card {
  padding: 2rem 1.75rem 2.25rem;
  background: var(--dhl-white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--dhl-gray-200);
  border-top: 4px solid var(--dhl-yellow);
}

.captcha-card-brand {
  margin-bottom: 1.5rem;
}

.captcha-card-brand img {
  display: block;
  height: 24px;
  width: auto;
}

.captcha-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dhl-black);
  padding-left: 0.75rem;
  border-left: 4px solid var(--dhl-red);
}

.captcha-intro {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--dhl-gray-600);
  line-height: 1.55;
}

.captcha-error {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8a1c1c;
  background: #fdecec;
  border: 1px solid #f0b4b4;
  border-radius: var(--radius);
}

.captcha-error--lock {
  color: var(--dhl-black);
  background: var(--dhl-gray-50);
  border-color: var(--dhl-gray-200);
}

.captcha-form {
  margin: 0;
}

.dhl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.captcha-challenge {
  margin-bottom: 1.35rem;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, var(--dhl-gray-50) 0%, #fff 100%);
  border: 1px solid var(--dhl-gray-200);
  border-radius: 8px;
  text-align: center;
}

.captcha-challenge-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dhl-gray-600);
  margin-bottom: 0.75rem;
}

.captcha-challenge-math {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--dhl-black);
}

.captcha-num {
  min-width: 2ch;
  padding: 0.2rem 0.5rem;
  background: var(--dhl-white);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid var(--dhl-gray-200);
}

.captcha-op {
  color: var(--dhl-red);
  font-weight: 900;
}

.captcha-eq {
  color: var(--dhl-gray-600);
  font-weight: 700;
}

.captcha-q {
  color: var(--dhl-red);
  font-weight: 900;
}

.captcha-field {
  margin-bottom: 1.35rem;
}

.captcha-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dhl-black);
  margin-bottom: 0.4rem;
}

.captcha-field input {
  width: 100%;
  max-width: 200px;
  padding: 0.7rem 0.9rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  border: 2px solid var(--dhl-gray-200);
  border-radius: 8px;
  color: var(--dhl-black);
}

.captcha-field input:focus {
  outline: none;
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 3px rgba(212, 5, 17, 0.12);
}

.btn-captcha-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--dhl-red);
  color: var(--dhl-white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-captcha-submit:hover,
.btn-captcha-submit:focus-visible {
  background: var(--dhl-red-dark);
}

.btn-captcha-submit:focus-visible {
  outline: 2px solid var(--dhl-yellow);
  outline-offset: 2px;
}

.captcha-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--dhl-gray-600);
  line-height: 1.45;
  text-align: center;
}

.acces-refus-card .captcha-title {
  border-left-color: var(--dhl-gray-600);
}

.acces-refus-intro {
  text-align: left;
}

.acces-refus-detail {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--dhl-gray-600);
  line-height: 1.55;
  text-align: left;
}

.acces-refus-legal {
  text-align: left;
  max-width: 100%;
}
