/* Astroy Global Style : charte Astroy Logistics (en-tete, pied de page, pages hors Elementor, espace client). */

:root {
  --ag-bg: #0a0a0a;
  --ag-surface: #161616;
  --ag-text: #e9e9ed;
  --ag-muted: #a8a8b2;
  --ag-accent: #f8a810;
  --ag-accent-hover: #ffbe3d;
  --ag-divider: rgba(233,233,237,.16);
  --ag-radius: 8px;
  --ag-font: "Inter", system-ui, sans-serif;
}

body { background: var(--ag-bg); }

/* ---------- en-tete (desktop + mobile) ---------- */
#masthead,
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead #ast-mobile-header,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
  background: var(--ag-bg) !important;
  border-bottom: 1px solid var(--ag-divider);
  font-family: var(--ag-font);
}
#masthead .site-title a,
#masthead .site-title a:hover {
  color: var(--ag-text) !important;
  font-family: var(--ag-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/* logo officiel (charte AstRoy : version fond sombre, 140px minimum a l'ecran) */
#masthead .ast-site-title-wrap { display: none; }
#masthead .custom-logo-link { display: block; line-height: 0; }
#masthead .custom-logo-link img,
#masthead .custom-logo { width: 176px !important; max-width: 176px !important; height: auto !important; }
@media (max-width: 1239px) { #masthead .custom-logo-link img, #masthead .custom-logo { width: 150px !important; max-width: 150px !important; } }
@media (max-width: 921px) { #masthead .custom-logo-link img, #masthead .custom-logo { width: 144px !important; max-width: 144px !important; } }

#masthead .main-header-menu .menu-link {
  color: rgba(233,233,237,.78) !important;
  font-family: var(--ag-font);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .menu-link:focus-visible {
  color: var(--ag-text) !important;
}
#masthead .main-header-menu .current-menu-item > .menu-link {
  color: var(--ag-accent) !important;
}

/* Espace client : bouton contour, separe du reste du menu */
@media (min-width: 922px) {
  #masthead .main-header-menu .astroy-menu-client { margin-left: 8px; display: flex; align-items: center; }
  #masthead .main-header-menu .menu-link { white-space: nowrap; }
  #masthead .main-header-menu .astroy-menu-client > .menu-link {
    height: auto !important;
    line-height: 1 !important;
    padding: 10px 16px !important;
    border: 1px solid var(--ag-accent);
    border-radius: var(--ag-radius);
    color: var(--ag-accent) !important;
  }
  #masthead .main-header-menu .astroy-menu-client > .menu-link:hover,
  #masthead .main-header-menu .astroy-menu-client.current-menu-item > .menu-link {
    background: var(--ag-accent);
    color: #0a0a0a !important;
  }
}

/* 8 entrees : on resserre le menu sur les ecrans moyens pour garder une seule ligne */
@media (min-width: 922px) and (max-width: 1239px) {
  #masthead .main-header-menu > .menu-item > .menu-link { padding-left: .55em !important; padding-right: .55em !important; font-size: 13px; }
  #masthead .main-header-menu .astroy-menu-client { margin-left: 4px; }
  #masthead .main-header-menu .astroy-menu-client > .menu-link { padding: 9px 12px !important; }
  #masthead .site-title a { font-size: 22px; }
}
@media (min-width: 922px) and (max-width: 1023px) {
  /* le logo mene deja a l'accueil */
  #masthead .main-header-menu > .menu-item:first-child { display: none; }
  #masthead .main-header-menu > .menu-item > .menu-link { padding-left: .45em !important; padding-right: .45em !important; }
  #masthead .site-title a { font-size: 20px; }
}

/* menu mobile */
#masthead .menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal { color: var(--ag-text) !important; background: transparent !important; }
#masthead .menu-toggle .ast-mobile-svg { fill: var(--ag-text) !important; }
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-header-content .main-header-menu,
#masthead .ast-builder-menu-mobile .main-navigation .main-header-menu,
#masthead .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background: var(--ag-surface) !important;
}
#masthead .ast-mobile-header-content .menu-item .menu-link,
#masthead .ast-builder-menu-mobile .menu-item .menu-link {
  border-color: var(--ag-divider) !important;
}

@media (max-width: 921px) {
  #masthead #ast-mobile-header .main-header-menu,
  #masthead #ast-mobile-header .main-header-menu .menu-link {
    background: var(--ag-surface) !important;
    color: var(--ag-text) !important;
    border-color: var(--ag-divider) !important;
  }
  #masthead #ast-mobile-header .main-header-menu .current-menu-item > .menu-link {
    background: var(--ag-bg) !important;
    color: var(--ag-accent) !important;
  }
  #masthead #ast-mobile-header .main-header-menu .astroy-menu-client > .menu-link { color: var(--ag-accent) !important; font-weight: 600; }
}

/* ---------- pied de page ---------- */
.site-footer,
.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap {
  background: var(--ag-bg) !important;
  border-top: 1px solid var(--ag-divider);
}
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
  color: var(--ag-muted) !important;
  font-family: var(--ag-font);
  font-size: 13px;
}
.site-footer a { color: var(--ag-accent) !important; }

/* ---------- pages hors Elementor (espace client, pages futures) ---------- */
body:not(.elementor-page) #content,
body:not(.elementor-page) .site-content,
body:not(.elementor-page) #content .ast-container,
body:not(.elementor-page) #primary,
body:not(.elementor-page) .ast-article-single,
body:not(.elementor-page) .entry-content {
  background: var(--ag-bg) !important;
}
body:not(.elementor-page) .site-content,
body:not(.elementor-page) .entry-content,
body:not(.elementor-page) .entry-content p,
body:not(.elementor-page) .entry-content li,
body:not(.elementor-page) .entry-content label {
  color: var(--ag-text);
  font-family: var(--ag-font);
}
body:not(.elementor-page) h1.entry-title,
body:not(.elementor-page) .entry-content h1,
body:not(.elementor-page) .entry-content h2,
body:not(.elementor-page) .entry-content h3,
body:not(.elementor-page) .entry-content h4 {
  color: var(--ag-text);
  font-family: var(--ag-font);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
body:not(.elementor-page) .entry-content a { color: var(--ag-accent); }

/* ---------- espace client WPCargo ---------- */
.wpcargo-login {
  width: 100% !important;
  max-width: 440px;
  margin: 8px auto 0 !important;
  padding: 28px;
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
  box-sizing: border-box;
}
.wpcargo-login #loginform { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.wpcargo-login label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ag-text); }
.wpcargo-login .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ag-muted); }
.wpcargo-login input[type="text"],
.wpcargo-login input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--ag-font);
  font-size: 16px;
  color: var(--ag-text);
  background: var(--ag-bg);
  border: 1px solid rgba(233,233,237,.4);
  border-radius: var(--ag-radius);
  box-shadow: none;
}
.wpcargo-login input[type="text"]:focus,
.wpcargo-login input[type="password"]:focus {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
  border-color: var(--ag-accent);
}
.wpcargo-login input[type="checkbox"] { accent-color: var(--ag-accent); }
.wpcargo-login #wp-submit {
  width: 100%;
  min-height: 46px;
  font-family: var(--ag-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #0a0a0a;
  background: var(--ag-accent);
  border: 1px solid var(--ag-accent);
  border-radius: var(--ag-radius);
  cursor: pointer;
  transition: background .15s ease;
}
.wpcargo-login #wp-submit:hover { background: var(--ag-accent-hover); border-color: var(--ag-accent-hover); }

#wpcargo-account,
#wpcargo-account * { font-family: var(--ag-font) !important; }
#wpcargo-account h4 { margin: 24px 0 12px; font-size: 18px; color: var(--ag-text); }
#wpcargo-account .wpcargo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
  overflow: hidden;
}
#wpcargo-account .wpcargo-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  color: #0a0a0a;
  background: var(--ag-accent);
  border: 0;
}
#wpcargo-account .wpcargo-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ag-text);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ag-divider);
}
#wpcargo-account .view-shipment { color: var(--ag-accent); font-weight: 600; text-decoration: none; }
#wpcargo-account .view-shipment:hover { text-decoration: underline; }

/* ---------- galerie photos d'un envoi ---------- */
.astroy-shipment-gallery { margin: 24px 0; font-family: var(--ag-font); }
.astroy-shipment-gallery .header-title strong { color: var(--ag-text); }
.astroy-shipment-gallery__grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.astroy-shipment-gallery__grid li { margin: 0; }
.astroy-shipment-gallery__grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
  background: var(--ag-surface);
}
.astroy-shipment-gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.astroy-shipment-gallery__grid a:hover img { transform: scale(1.03); }

.astroy-shipment-gallery__grid video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
}
.astroy-shipment-gallery__grid a:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; }
.astroy-shipment-gallery__caption { display: block; margin-top: 6px; font-size: 13px; color: var(--ag-muted); }
@media (prefers-reduced-motion: reduce) { .astroy-shipment-gallery__grid img { transition: none; } }

/* ---------- formulaire de demande client ---------- */
.astroy-demande {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
  font-family: var(--ag-font);
  color: var(--ag-text);
  box-sizing: border-box;
}
.astroy-demande form { display: flex; flex-direction: column; margin: 0; }
.astroy-demande label { margin: 16px 0 6px; font-size: 14px; font-weight: 500; color: var(--ag-text); }
.astroy-demande label:first-of-type { margin-top: 0; }
.astroy-demande__opt { font-weight: 400; color: var(--ag-muted); }
.astroy-demande input[type="text"],
.astroy-demande input[type="tel"],
.astroy-demande input[type="url"],
.astroy-demande textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--ag-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ag-text);
  background: var(--ag-bg);
  border: 1px solid rgba(233,233,237,.4);
  border-radius: var(--ag-radius);
  box-shadow: none;
  box-sizing: border-box;
}
.astroy-demande textarea { resize: vertical; }
.astroy-demande ::placeholder { color: #8f8f99; opacity: 1; }
.astroy-demande input[type="file"] {
  width: 100%;
  padding: 10px;
  font-family: var(--ag-font);
  font-size: 14px;
  color: var(--ag-muted);
  background: var(--ag-bg);
  border: 1px dashed rgba(233,233,237,.4);
  border-radius: var(--ag-radius);
  box-sizing: border-box;
}
.astroy-demande input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font-family: var(--ag-font);
  font-weight: 600;
  color: var(--ag-text);
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
  cursor: pointer;
}
.astroy-demande input:focus,
.astroy-demande textarea:focus {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
  border-color: var(--ag-accent);
}
.astroy-demande__hint { margin-top: 6px; font-size: 13px; color: var(--ag-muted); }

.astroy-demande__hint a { color: var(--ag-accent); text-decoration: underline; }
.astroy-demande button[type="submit"] {
  margin-top: 24px;
  min-height: 48px;
  font-family: var(--ag-font);
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--ag-accent);
  border: 1px solid var(--ag-accent);
  border-radius: var(--ag-radius);
  cursor: pointer;
  transition: background .15s ease;
}
.astroy-demande button[type="submit"]:hover { background: var(--ag-accent-hover); border-color: var(--ag-accent-hover); }
/* ---------- page "Envoyer une demande" (mise en page Astroy hors Elementor) ---------- */
body:has(.astroy-page) .entry-header { display: none; }
body:has(.astroy-page) #primary { margin: 0; padding: 0; }
body:has(.astroy-page) .ast-container { max-width: 1160px; padding-left: 16px; padding-right: 16px; }
.astroy-page { padding: 48px 0 72px; font-family: var(--ag-font); color: var(--ag-text); }
.astroy-page p { margin: 0; }
.astroy-page__hero { max-width: 720px; margin-bottom: 40px; }
.astroy-page__eyebrow {
  margin: 0 0 12px !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ag-accent) !important;
}
.entry-content .astroy-page__h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ag-text);
}
.astroy-page__lead { max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--ag-text); }
.astroy-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.astroy-page__grid .astroy-demande { max-width: none; margin: 0; }
.astroy-page__side { display: flex; flex-direction: column; gap: 20px; }
.astroy-page__figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ag-radius); border: 1px solid var(--ag-divider); }
.astroy-page__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry-content .astroy-page__h3 { margin: 4px 0 0; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--ag-text); }
.astroy-page__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.astroy-page__steps li { display: flex; gap: 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--ag-divider); }
.astroy-page__steps li:last-child { border-bottom: 1px solid var(--ag-divider); }
.astroy-page__num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--ag-accent);
  border-radius: 50%;
}
.astroy-page__steps strong { display: block; font-size: 15px; font-weight: 600; color: var(--ag-text); }
.astroy-page__steps span:not(.astroy-page__num) { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ag-muted); }
.astroy-page__alt { font-size: 14px; color: var(--ag-muted); }
.astroy-page__alt a { color: var(--ag-accent); font-weight: 600; text-decoration: none; }
.astroy-page__alt a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .astroy-page { padding: 32px 0 56px; }
  .astroy-page__grid { grid-template-columns: 1fr; }
  .astroy-demande { padding: 20px; }
}

/* ---------- bandeau "Installer l'application" (mobile) ---------- */
.astroy-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-family: var(--ag-font);
  color: var(--ag-text);
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.astroy-install[hidden] { display: none; }
.astroy-install img { flex: none; width: 40px; height: 40px; border-radius: 8px; }
.astroy-install__text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.astroy-install__text strong { display: block; font-size: 14px; font-weight: 600; }
.astroy-install__text span { color: var(--ag-muted); }
.astroy-install__text b { color: var(--ag-text); font-weight: 600; }
.astroy-install__go {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  font-family: var(--ag-font);
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--ag-accent);
  border: 0;
  border-radius: var(--ag-radius);
  cursor: pointer;
}
.astroy-install__go[hidden] { display: none; }
.astroy-install__close {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ag-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.astroy-demande__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.astroy-demande__notice { margin: 0 0 20px; padding: 12px 14px; font-size: 14px; border-radius: var(--ag-radius); }
.astroy-demande__notice--ok { color: var(--ag-text); background: rgba(248,168,16,.12); border: 1px solid var(--ag-accent); }
.astroy-demande__notice--err { color: #ffd9d4; background: rgba(229,72,51,.12); border: 1px solid #e54833; }

/* ---------- page FAQ ---------- */
.astroy-faq__group { max-width: 820px; margin: 0 0 40px; }
.astroy-faq__group .astroy-page__h3 { margin: 0 0 14px; }
.astroy-faq__item {
  margin: 0 0 10px;
  background: var(--ag-surface);
  border: 1px solid var(--ag-divider);
  border-radius: var(--ag-radius);
}
.astroy-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--ag-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-text);
  cursor: pointer;
  list-style: none;
}
.astroy-faq__item summary::-webkit-details-marker { display: none; }
.astroy-faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--ag-accent);
  transition: transform .2s ease;
}
.astroy-faq__item[open] summary::after { transform: rotate(45deg); }
.astroy-faq__item summary:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; border-radius: var(--ag-radius); }
.astroy-faq__answer { padding: 0 20px 18px; font-family: var(--ag-font); font-size: 15px; line-height: 1.65; color: var(--ag-muted); }
.astroy-faq__answer p { margin: 0; }
.astroy-faq__answer strong { color: var(--ag-text); }
.astroy-faq a:not(.astroy-faq__btn) { color: var(--ag-accent); text-decoration: underline; }
.astroy-faq__cta { max-width: 820px; margin: 0; padding: 28px; text-align: left; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); }
.astroy-faq__cta p { margin: 0 0 14px; font-family: var(--ag-font); font-size: 18px; font-weight: 600; color: var(--ag-text); }
.astroy-faq__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-family: var(--ag-font); font-weight: 600; color: #0a0a0a; background: var(--ag-accent); border-radius: var(--ag-radius); text-decoration: none; }
.astroy-faq__btn:hover { background: var(--ag-accent-hover); color: #0a0a0a; }
@media (prefers-reduced-motion: reduce) { .astroy-faq__item summary::after { transition: none; } }

/* ---------- page visite (proposition d'accueil inspiree DHL) ---------- */
body:has(.astroy-v) { overflow-x: clip; }
.astroy-v { padding-top: 0; }
.entry-content .astroy-v h2, .entry-content .astroy-v h3 { font-family: var(--ag-font); color: var(--ag-text); }
.astroy-v__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.astroy-v__wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.astroy-v svg { width: 1em; height: 1em; flex: none; }

.astroy-v__hero {
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 88px 0 132px;
  background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.25) 100%), var(--astroy-v-hero) center / cover no-repeat;
}
.entry-content .astroy-v .astroy-v__h1 { margin: 0 0 24px; font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--ag-text); }
.astroy-v__track { display: flex; max-width: 620px; margin: 0; background: var(--ag-text); border-radius: var(--ag-radius); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.astroy-v__track input[type="text"] { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; font-family: var(--ag-font); font-size: 16px; color: #0a0a0a; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.astroy-v__track input::placeholder { color: #6b6b74; opacity: 1; }
.astroy-v__track input:focus { outline: none; }
.astroy-v__track:focus-within { outline: 2px solid var(--ag-accent); outline-offset: 3px; }
.astroy-v__track button { flex: none; min-height: 56px; padding: 0 28px; font-family: var(--ag-font); font-size: 16px; font-weight: 600; color: #0a0a0a; background: var(--ag-accent); border: 0; border-radius: 0; cursor: pointer; }
.astroy-v__track button:hover { background: var(--ag-accent-hover); }
.entry-content .astroy-v .astroy-v__hint { margin-top: 14px; font-size: 14px; color: var(--ag-muted); }
.entry-content .astroy-v .astroy-v__hint a { color: var(--ag-text); text-decoration: underline; }

.astroy-v__actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: -72px 0 0; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden; }
.entry-content .astroy-v .astroy-v__action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; color: var(--ag-text); text-decoration: none; border-right: 1px solid var(--ag-divider); transition: background .15s ease; }
.astroy-v__action:last-child { border-right: 0; }
.astroy-v__action:hover { background: #1d1d1f; }
.astroy-v__action:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: -2px; }
.astroy-v__action svg { font-size: 30px; margin-bottom: 8px; color: var(--ag-accent); }
.astroy-v__action strong { font-size: 17px; font-weight: 600; }
.astroy-v__action span { font-size: 14px; line-height: 1.45; color: var(--ag-muted); }

.astroy-v__band { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 72px 0 0; background: var(--ag-accent); border-radius: var(--ag-radius); overflow: hidden; }
.astroy-v__band-media { position: relative; min-height: 240px; }
.astroy-v__band-media .astroy-v__cover { position: absolute; inset: 0; }
.astroy-v__band-body { padding: 36px 40px; color: #0a0a0a; }
.entry-content .astroy-v .astroy-v__band h2 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.2; color: #0a0a0a; }
.entry-content .astroy-v .astroy-v__band p { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #1a1a1a; }
.entry-content .astroy-v .astroy-v__band a { font-weight: 600; color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; }

.astroy-v__cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.astroy-v__section { margin-top: 80px; }
.entry-content .astroy-v .astroy-v__h2 { margin: 0 0 28px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.entry-content .astroy-v .astroy-v__sub { margin: -16px 0 24px; color: var(--ag-muted); }
.entry-content .astroy-v .astroy-v__tag { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ag-accent); }

.astroy-v__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 48px; }
.astroy-v__row.is-reverse .astroy-v__row-media { order: 2; }
.astroy-v__row-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ag-radius); border: 1px solid var(--ag-divider); }
.entry-content .astroy-v .astroy-v__row h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
.entry-content .astroy-v .astroy-v__row-body > p:not(.astroy-v__tag) { margin-bottom: 18px; line-height: 1.6; color: var(--ag-muted); }
.entry-content .astroy-v .astroy-v__list { list-style: none; margin: 0 0 24px; padding: 0; }
.astroy-v__list li { position: relative; margin: 0 0 10px; padding-left: 28px; line-height: 1.5; color: var(--ag-text); }
.astroy-v__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ag-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.entry-content .astroy-v .astroy-v__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; font-family: var(--ag-font); font-size: 15px; font-weight: 600; color: #0a0a0a; background: var(--ag-accent); border-radius: var(--ag-radius); text-decoration: none; transition: background .15s ease; }
.entry-content .astroy-v .astroy-v__btn:hover { background: var(--ag-accent-hover); color: #0a0a0a; }
.astroy-v__btn svg { font-size: 20px; }

.astroy-v__pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.astroy-v__pay > div { padding: 24px; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); }
.entry-content .astroy-v .astroy-v__pay h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.entry-content .astroy-v .astroy-v__pay p:not(.astroy-v__tag) { font-size: 15px; line-height: 1.5; color: var(--ag-muted); }

.entry-content .astroy-v .astroy-v__news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ag-divider); }
.astroy-v__news li { margin: 0; border-bottom: 1px solid var(--ag-divider); }
.entry-content .astroy-v .astroy-v__news a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; font-size: 16px; line-height: 1.45; color: var(--ag-text); text-decoration: none; }
.astroy-v__news a span { flex: 1; }
.astroy-v__news a svg:first-child { font-size: 22px; color: var(--ag-accent); }
.astroy-v__news a svg:last-child { font-size: 18px; color: var(--ag-muted); transition: transform .15s ease, color .15s ease; }
.astroy-v__news a:hover svg:last-child { transform: translateX(4px); color: var(--ag-accent); }
.astroy-v__news a:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; }

.astroy-v__teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entry-content .astroy-v .astroy-v__teaser { display: flex; flex-direction: column; color: var(--ag-text); text-decoration: none; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); overflow: hidden; transition: border-color .15s ease; }
.astroy-v__teaser:hover { border-color: var(--ag-accent); }
.astroy-v__teaser .astroy-v__cover { aspect-ratio: 16 / 10; height: auto; }
.astroy-v__teaser > div { padding: 20px; }
.entry-content .astroy-v .astroy-v__teaser h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.entry-content .astroy-v .astroy-v__teaser p { font-size: 14px; line-height: 1.5; color: var(--ag-muted); }

.astroy-v__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 80px; padding: 32px; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); }
.entry-content .astroy-v .astroy-v__cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
.entry-content .astroy-v .astroy-v__cta p { color: var(--ag-muted); }

@media (max-width: 860px) {
  .astroy-v__hero { padding: 56px 0 104px; }
  .astroy-v__actions { grid-template-columns: 1fr; margin-top: -56px; }
  .entry-content .astroy-v .astroy-v__action { border-right: 0; border-bottom: 1px solid var(--ag-divider); padding: 20px; }
  .astroy-v__action:last-child { border-bottom: 0; }
  .entry-content .astroy-v .astroy-v__action { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; }
  .astroy-v__action svg { grid-row: span 2; margin: 2px 0 0; font-size: 26px; }
  .astroy-v__band, .astroy-v__row { grid-template-columns: 1fr; }
  .astroy-v__band-media { min-height: 180px; max-height: 220px; }
  .astroy-v__band-body { padding: 28px 24px; }
  .astroy-v__row { gap: 20px; }
  .astroy-v__row.is-reverse .astroy-v__row-media { order: 0; }
  .astroy-v__pay, .astroy-v__teasers { grid-template-columns: 1fr; }
  .astroy-v__cta { flex-direction: column; align-items: flex-start; }
  .astroy-v__section { margin-top: 64px; }
}
@media (max-width: 480px) {
  .astroy-v__track button { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .astroy-v * { transition: none !important; } }

.entry-content .astroy-v .astroy-v__action strong { color: var(--ag-text); }
.entry-content .astroy-v .astroy-v__action span { color: var(--ag-muted); }

/* ---------- page suiv-cmd (suivi facon service client DHL) ---------- */
.astroy-sc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "intro aside" "result result" "faq faq"; column-gap: 48px; align-items: start; }
.astroy-sc__intro { grid-area: intro; padding: 36px; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); }
.astroy-sc__aside { grid-area: aside; display: flex; flex-direction: column; gap: 12px; }
.astroy-sc__result { grid-area: result; }
.astroy-sc__faq { grid-area: faq; margin-top: 64px; max-width: 820px; }
.entry-content .astroy-sc .astroy-sc__h1 { margin: 0 0 14px; font-family: var(--ag-font); font-size: clamp(32px, 4.4vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--ag-text); }
.entry-content .astroy-sc .astroy-sc__lead { margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: var(--ag-text); }
.astroy-sc .astroy-sc__track { max-width: none; box-shadow: none; }
.astroy-sc .astroy-sc__track input[type="text"] { text-transform: uppercase; }
.astroy-sc .astroy-sc__track input::placeholder { text-transform: none; }
.entry-content .astroy-sc .astroy-sc__hint { margin-top: 10px; font-size: 13px; color: var(--ag-muted); }
.astroy-sc svg { width: 1em; height: 1em; flex: none; }
.entry-content .astroy-sc .astroy-sc__card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; color: var(--ag-text); text-decoration: none; background: var(--ag-surface); border: 1px solid var(--ag-divider); border-radius: var(--ag-radius); transition: border-color .15s ease; }
.entry-content .astroy-sc a.astroy-sc__card:hover { border-color: var(--ag-accent); }
.astroy-sc a.astroy-sc__card:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; }
.astroy-sc__card > svg:first-child { font-size: 24px; color: var(--ag-accent); margin-top: 1px; }
.astroy-sc__card > svg:last-child { font-size: 18px; color: var(--ag-muted); margin-top: 3px; transition: transform .15s ease; }
.astroy-sc a.astroy-sc__card:hover > svg:last-child { transform: translateX(3px); color: var(--ag-accent); }
.astroy-sc__card > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.entry-content .astroy-sc .astroy-sc__card strong { font-size: 16px; font-weight: 600; color: var(--ag-text); }
.entry-content .astroy-sc .astroy-sc__card span span { font-size: 14px; line-height: 1.5; color: var(--ag-muted); }
.astroy-sc__card.is-alert { border-color: rgba(248,168,16,.45); background: rgba(248,168,16,.06); }
.entry-content .astroy-sc .astroy-sc__card.is-alert a { color: var(--ag-accent); text-decoration: underline; white-space: nowrap; }
.astroy-sc__result:not(:has(.wpcargo-result)) { display: none; }
.astroy-sc .wpcargo-track { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.entry-content .astroy-sc #wpcargo-result > h3 { margin: 0; padding: 20px 24px !important; font-family: var(--ag-font); font-size: 16px; font-weight: 600; text-align: left !important; color: #ffd9d4 !important; background: rgba(229,72,51,.12); border: 1px solid #e54833; border-radius: var(--ag-radius); }
.entry-content .astroy-sc #wpcargo-result > h3::after { content: " Vérifiez le numéro (majuscules, tirets, sans espace) ou écrivez-nous sur WhatsApp au +228 99 51 25 13."; display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--ag-text); }
/* formulaire WPCargo d'origine masque : on garde seulement le resultat */
.astroy-sc #wpcargo-track-table, .astroy-sc .wpcargo-track > form, .astroy-sc .wpcargo-track > .track_form_table { display: none !important; }
.astroy-sc .wpcargo-track { margin: 0; }
.astroy-sc:has(.wpcargo-result) .astroy-sc__result, .astroy-sc__result:has(.wpcargo-track > :not(form):not(table):not(style):not(script)) { margin-top: 40px; }
@media (max-width: 860px) {
  .astroy-sc { display: flex; flex-direction: column; gap: 16px; }
  .astroy-sc__intro { padding: 24px 20px; }
  .astroy-sc:has(.wpcargo-result) .astroy-sc__result { order: 1; margin-top: 8px; }
  .astroy-sc:has(.wpcargo-result) .astroy-sc__aside { order: 2; }
  .astroy-sc:has(.wpcargo-result) .astroy-sc__faq { order: 3; }
  .astroy-sc__faq { margin-top: 40px; }
}
/* ---------- bouton WhatsApp flottant (toutes les pages) ---------- */
.astroy-wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9990; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; font-family: var(--ag-font); font-size: 15px; font-weight: 600; color: #fff !important; text-decoration: none !important; background: #1f9d55; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .15s ease, background .15s ease; }
.astroy-wa-float:hover { background: #22b35f; transform: translateY(-2px); }
.astroy-wa-float:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 3px; }
.astroy-wa-float svg { width: 26px; height: 26px; flex: none; }
body:has(.astroy-install:not([hidden])) .astroy-wa-float { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
#ast-scroll-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 480px) {
  .astroy-wa-float { padding: 0; width: 56px; min-height: 56px; justify-content: center; }
  .astroy-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .astroy-wa-float svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .astroy-wa-float, .astroy-v__what-item { transition: none; } }

/* ---------- accueil : cartes cliquables (que voulez-vous faire venir) ---------- */
a.astroy-card { text-decoration: none !important; transition: border-color .15s ease, transform .15s ease; }
a.astroy-card:hover { border-color: var(--ag-accent) !important; transform: translateY(-2px); }
a.astroy-card:focus-visible { outline: 2px solid var(--ag-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.astroy-card { transition: none; } }

/* ---------- menu compact (9 entrees tiennent sur une ligne) ---------- */
@media (min-width: 922px) {
  .main-header-menu > .menu-item:not(.astroy-menu-client) > .menu-link { padding-left: 10px; padding-right: 10px; }
}
