/* ═══════════════════════════════════════════════════════════════
   HESTIA — habillage des pages compte WooCommerce
   Fichier : wp-content/themes/hestia-child/hestia-account.css

   Reprend exactement les couleurs, polices et formes de la maquette.
   Les classes WooCommerce d'origine sont conservées : rien ne casse
   si vous désactivez ce fichier.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --hestia-bg: #FFFFFF;
  --hestia-card: #FFFFFF;
  --hestia-surface: #F5F7FB;
  --hestia-ink: #101828;
  --hestia-muted: #667085;
  --hestia-line: #E4E9F2;
  --hestia-primary: #3457FF;
  --hestia-primary-d: #2440D8;
  --hestia-primary-soft: #EAEEFF;
  --hestia-ok: #07734F;
  --hestia-promo: #F5453B;
  --hestia-promo-soft: #FFECEA;
  --hestia-radius: 16px;
  --hestia-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}

.woocommerce-account,
.hestia-auth,
.hestia-account-nav {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hestia-ink);
}

.hestia-auth h2,
.hestia-dash-hero h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -.025em;
  font-weight: 800;
}

/* ─────────── Connexion / inscription ─────────── */
.hestia-auth {
  max-width: 470px;
  margin: 40px auto 70px;
  padding: 0 20px;
}

.hestia-auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--hestia-surface);
  border-radius: 13px;
  padding: 4px;
  margin-bottom: 14px;
}

.hestia-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 11px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--hestia-muted);
  cursor: pointer;
  transition: .18s;
}
.hestia-tab:hover { color: var(--hestia-ink); }
.hestia-tab.is-active {
  background: var(--hestia-card);
  color: var(--hestia-ink);
  box-shadow: 0 1px 3px rgba(16,24,40,.09);
}

.hestia-auth-note {
  font-size: 12.5px;
  color: var(--hestia-muted);
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 58ch;
}

.hestia-pane { display: none; }
.hestia-pane.is-active { display: block; animation: hestiaFade .28s ease; }
@keyframes hestiaFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hestia-pane h2 { font-size: 25px; margin: 0 0 6px; }
.hestia-sub {
  color: var(--hestia-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ─────────── Champs ─────────── */
.hestia-field { margin: 0 0 16px; }
.hestia-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--hestia-ink);
}
.hestia-field .required { color: var(--hestia-promo); border: none; }

.hestia-auth input[type="text"],
.hestia-auth input[type="email"],
.hestia-auth input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--hestia-line);
  border-radius: 12px;
  padding: 0 15px;
  font: inherit;
  font-size: 15px;
  background: var(--hestia-surface);
  color: var(--hestia-ink);
  transition: .16s;
  box-sizing: border-box;
}
.hestia-auth input:focus {
  outline: none;
  border-color: var(--hestia-primary);
  background: var(--hestia-card);
  box-shadow: 0 0 0 3px var(--hestia-primary-soft);
}
.hestia-auth input.woocommerce-invalid-required-field {
  border-color: var(--hestia-promo);
  background: var(--hestia-promo-soft);
}

.hestia-pw-hint {
  display: block;
  font-size: 12px;
  color: var(--hestia-muted);
  margin-top: 6px;
}

.hestia-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .hestia-grid-2 { grid-template-columns: 1fr; } }

/* ─────────── Cases à cocher et liens ─────────── */
.hestia-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--hestia-muted);
  cursor: pointer;
  line-height: 1.55;
}
.hestia-check input { accent-color: var(--hestia-primary); margin-top: 2px; flex: none; }
.hestia-cgv { margin: 4px 0 20px; }

.hestia-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 22px;
}

.hestia-link {
  color: var(--hestia-primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.hestia-link:hover { text-decoration: underline; }

/* ─────────── Boutons ─────────── */
.hestia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
}
.hestia-btn-primary { background: var(--hestia-primary); color: #fff; }
.hestia-btn-primary:hover {
  background: var(--hestia-primary-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(52,87,255,.28);
}

.hestia-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--hestia-muted);
  font-size: 12.5px;
}
.hestia-sep::before,
.hestia-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hestia-line);
}

.hestia-guest {
  display: block;
  text-align: center;
  padding: 13px;
  border: 1px solid var(--hestia-line);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hestia-ink);
  text-decoration: none;
  transition: .18s;
}
.hestia-guest:hover { border-color: var(--hestia-primary); color: var(--hestia-primary); }

/* ─────────── En-tête du compte ─────────── */
.hestia-dash-hero {
  grid-column: 1 / -1;          /* occupe les deux colonnes, sinon la grille se décale */
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--hestia-card);
  border: 1px solid var(--hestia-line);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--hestia-shadow);
}
.hestia-dash-av {
  width: 64px; height: 64px;
  border-radius: 20px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--hestia-primary), #6E56FF);
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 25px;
}
.hestia-dash-hero h2 { font-size: 23px; margin: 0; }
.hestia-dash-hero .em { color: var(--hestia-muted); font-size: 13.5px; margin-top: 3px; }

.hestia-dash-kpis { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hestia-kpi {
  border: 1px solid var(--hestia-line);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  min-width: 96px;
  background: var(--hestia-surface);
}
.hestia-kpi b {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}
.hestia-kpi span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hestia-muted);
  font-weight: 700;
}
@media (max-width: 560px) { .hestia-dash-kpis { margin-left: 0; width: 100%; } }

/* ─────────── Menu latéral ─────────── */
.woocommerce-account .woocommerce-MyAccount-navigation.hestia-account-nav {
  width: 236px;
  float: none;
  border: 1px solid var(--hestia-line);
  border-radius: 16px;
  padding: 8px;
  background: var(--hestia-card);
  position: sticky;
  top: 88px;
}
.hestia-account-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hestia-muted);
  text-decoration: none;
  transition: .16s;
}
.hestia-account-nav a svg { width: 18px; height: 18px; flex: none; }
.hestia-account-nav a:hover { background: var(--hestia-surface); color: var(--hestia-ink); }
.hestia-account-nav .is-active > a,
.hestia-account-nav a.is-active {
  background: var(--hestia-primary-soft);
  color: var(--hestia-primary);
}
.hestia-account-nav .hestia-nav-out { color: var(--hestia-promo); }
.hestia-nav-sep { height: 1px; background: var(--hestia-line); margin: 8px 12px; }

/* Mise en page à deux colonnes */
.woocommerce-account .woocommerce-MyAccount-content {
  width: calc(100% - 260px);
  float: none;
}
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}
.woocommerce-account .woocommerce-MyAccount-content { width: auto; }

@media (max-width: 900px) {
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-navigation.hestia-account-nav {
    width: auto;
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .hestia-account-nav a { white-space: nowrap; }
  .hestia-nav-sep { display: none; }
}

/* ─────────── Référence de virement ─────────── */
.hestia-bacs-ref {
  border: 1px solid var(--hestia-line);
  border-left: 3px solid var(--hestia-primary);
  background: var(--hestia-primary-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.6;
}
.hestia-bacs-ref small { color: var(--hestia-muted); font-size: 12.5px; }

/* ─────────── Messages WooCommerce ─────────── */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 13px !important;
  border: 1px solid var(--hestia-line) !important;
  border-top-width: 1px !important;
  font-size: 14px;
}
.woocommerce-error { background: var(--hestia-promo-soft) !important; border-color: #FBD5D2 !important; }
.woocommerce-message { background: #E7F8F1 !important; border-color: #BEE8D6 !important; }


/* ═══════════════════════════════════════════════════════════════
   Formulaire de contact  [hestia_contact]
   ═══════════════════════════════════════════════════════════════ */
.hestia-cform {
  border: 1px solid var(--hestia-line);
  border-radius: 18px;
  padding: 26px;
  background: var(--hestia-card);
  box-shadow: var(--hestia-shadow);
  max-width: 760px;
}
.hestia-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hestia-cform input,
.hestia-cform select,
.hestia-cform textarea {
  width: 100%;
  border: 1px solid var(--hestia-line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--hestia-surface);
  color: var(--hestia-ink);
  box-sizing: border-box;
}
.hestia-cform input, .hestia-cform select { height: 48px; }
.hestia-cform textarea { resize: vertical; min-height: 110px; }
.hestia-cform input:focus,
.hestia-cform select:focus,
.hestia-cform textarea:focus {
  outline: none;
  border-color: var(--hestia-primary);
  background: var(--hestia-card);
}
.hestia-cform .is-bad { border-color: var(--hestia-promo); background: var(--hestia-promo-soft); }

.hestia-cf-acts { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hestia-cf-acts .hestia-btn { width: auto; padding: 0 26px; }

.hestia-btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  height: 46px; padding: 0 15px;
  border-radius: 12px;
  border: 1px solid #d4e8dc;
  background: #F0FAF4;
  color: #0B7A47;
  font: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.hestia-btn-wa svg { width: 17px; height: 17px; fill: #25D366; flex: none; }
.hestia-btn-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.hestia-btn-wa:hover svg { fill: #fff; }

.hestia-cf-note { font-size: 13px; margin-top: 14px; line-height: 1.6; min-height: 20px; }
.hestia-cf-note.is-ok { color: var(--hestia-ok); font-weight: 600; }
.hestia-cf-note.is-bad { color: var(--hestia-promo); font-weight: 600; }

@media (max-width: 640px) {
  .hestia-cf-row { grid-template-columns: 1fr; }
  .hestia-cform { padding: 20px; }
  .hestia-cf-acts .hestia-btn, .hestia-btn-wa { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   Newsletter  [hestia_newsletter]
   ═══════════════════════════════════════════════════════════════ */
.hestia-nl {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--hestia-line);
  padding: 30px 0;
}
.hestia-nl-t b {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px; font-weight: 800; letter-spacing: -.02em;
}
.hestia-nl-t span { color: var(--hestia-muted); font-size: 13.5px; }
.hestia-nl-f { display: flex; gap: 9px; min-width: 280px; max-width: 440px; }
.hestia-nl-f input {
  flex: 1; height: 46px;
  border: 1px solid var(--hestia-line); border-radius: 12px;
  padding: 0 15px; font: inherit; font-size: 14.5px;
  background: var(--hestia-card); color: var(--hestia-ink);
}
.hestia-nl-f input:focus { outline: none; border-color: var(--hestia-primary); }
.hestia-nl-f input.is-bad { border-color: var(--hestia-promo); background: var(--hestia-promo-soft); }
.hestia-nl-f button {
  height: 46px; padding: 0 20px; border: none; border-radius: 12px;
  background: var(--hestia-ink); color: #fff;
  font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: .18s;
}
.hestia-nl-f button:hover { transform: translateY(-1px); }
.hestia-nl-note { font-size: 12px; color: var(--hestia-muted); margin-top: 10px; }
.hestia-nl-note.is-ok { color: var(--hestia-ok); font-weight: 600; }
.hestia-nl-note.is-bad { color: var(--hestia-promo); font-weight: 600; }

@media (max-width: 700px) {
  .hestia-nl { flex-direction: column; align-items: stretch; gap: 16px; }
  .hestia-nl-f { max-width: none; min-width: 0; }
}


/* Texte réservé aux lecteurs d'écran — invisible à l'œil */
.hestia-auth .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
