/* ==========================================================================
   visabank — customisations sur le miroir de visalegalservice.com
   ========================================================================== */

/* --- Masquer les sections non conservées (slider, intro, FAQ, dividers, CTA) --- */
.elementor-element-9af9c88,   /* slider hero */
.elementor-element-b1fe67a,   /* "French Immigration services" intro */
.elementor-element-5a49c3f,   /* divider */
.elementor-element-94551f6,   /* divider */
.elementor-element-331e484,   /* Claim Free Consultation */
.elementor-element-5bd462c,   /* divider */
.elementor-element-38a485f,   /* divider */
.elementor-element-7bbd121,   /* FAQ */
.elementor-element-9b883a0 {  /* anciennes 3 cartes Long/Short/Beyond */
  display: none !important;
}

/* bandeau cookies du miroir (CookieYes / cookie-law-info) */
#cookie-law-info-bar,
.cli-modal,
#cookie-law-info-again,
.cky-consent-container,
.cky-consent-bar,
.cky-overlay,
.cky-btn-revisit-wrapper,
.cky-modal { display: none !important; }

/* --- Bloc "Offre spéciale" mis en avant (couleur du titre) --- */
.vb-offre {
  display: block;
  background: #f8e9ef;
  border-left: 4px solid #ba2f58;
  color: #9a2346;
  padding: 18px 22px;
  margin: 26px auto;
  max-width: 900px;
  border-radius: 6px;
  line-height: 1.6;
  text-align: left;
}
.vb-offre strong { color: #ba2f58; }

/* --- Bouton "Commencer ma demande" --- */
.vb-cta-wrap { margin: 28px 0 6px; }
.vb-btn,
button.vb-btn,
a.vb-btn {
  display: inline-block;
  cursor: pointer;
  background: #ba2f58 !important;
  background-color: #ba2f58 !important;
  color: #fff !important;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 8px !important;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit;
  line-height: 1.25;
  transition: background-color .18s ease, transform .05s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.vb-btn:hover,
button.vb-btn:hover,
a.vb-btn:hover {
  background: #9a2346 !important;
  background-color: #9a2346 !important;
}
.vb-btn:active { transform: scale(.985); }
.vb-btn:focus-visible { outline: 3px solid rgba(186,47,88,.35); outline-offset: 2px; }

/* --- Section de choix du visa --- */
.vb-visas { padding: 72px 0; background: #faf7f8; }
.vb-visas .vb-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.vb-visas .vb-overline {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #ba2f58;
  font-weight: 700;
  font-size: .82rem;
  margin: 0 0 8px;
}
.vb-visas h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: #1c1c28; margin: 0 0 14px; line-height: 1.15; }
.vb-visas h2 span { color: #ba2f58; }
.vb-visas .vb-intro { max-width: 840px; color: #45454f; font-size: 1.12rem; line-height: 1.6; margin: 0 0 42px; }

.vb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vb-card {
  background: #fff;
  border: 1px solid #e9e4e6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .vb-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.09); transform: translateY(-3px); }
}
.vb-banner { height: 140px; display: grid; place-items: center; }
.vb-banner span { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.vb-banner.schengen { background: linear-gradient(135deg, #1f3a93, #3457b1); }
.vb-banner.travail  { background: linear-gradient(135deg, #0f6f4a, #18936a); }
.vb-banner.usa      { background: linear-gradient(135deg, #8a1538, #c0294f); }
.vb-banner.autres   { background: linear-gradient(135deg, #5a3b8c, #7a55b8); }
.vb-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.vb-card-body h3 { font-size: 1.5rem; color: #1c1c28; margin: 0 0 10px; }
.vb-card-body p { color: #45454f; margin: 0 0 22px; flex: 1; line-height: 1.6; }

/* --- Modale multi-étapes --- */
.vb-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,12,16,.55);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 99999; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.vb-modal-overlay.open { display: flex; }
.vb-modal {
  background: #fff; border-radius: 10px;
  width: 100%; max-width: 560px;
  padding: 0 36px 32px; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  font-family: inherit;
}
.vb-modal-head {
  position: sticky; top: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 0 14px;
  margin: 0 0 16px;
  border-bottom: 1px solid #f1eaed;
  z-index: 5;
}
button.vb-close {
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  color: #999 !important;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  -webkit-tap-highlight-color: rgba(186,47,88,.12);
  transition: color .15s ease, background-color .15s ease;
  margin: -8px -10px -8px 0;
  flex: 0 0 auto;
}
button.vb-close:hover {
  color: #ba2f58 !important;
  background-color: #f8e9ef !important;
}
button.vb-close:focus-visible {
  outline: 2px solid #ba2f58;
  outline-offset: 2px;
}
.vb-progress { display: flex; gap: 8px; }
.vb-progress i { width: 36px; height: 5px; border-radius: 3px; background: #e9e4e6; }
.vb-progress i.on { background: #ba2f58; }
.vb-modal h3 { font-size: 1.7rem; color: #1c1c28; margin: 0 0 6px; }
.vb-modal .vb-sub { color: #7a7a85; margin: 0 0 22px; line-height: 1.55; }
.vb-field { margin-bottom: 20px; }
.vb-field > label { display: block; font-weight: 600; color: #1c1c28; margin-bottom: 10px; }
.vb-choices { display: flex; flex-wrap: wrap; gap: 10px; }
button.vb-choice {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 500;
  padding: 10px 18px;
  min-height: 42px;
  border: 1px solid #e9e4e6 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #45454f !important;
  border-radius: 999px !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1.2;
}
button.vb-choice:hover {
  border-color: #ba2f58 !important;
  color: #ba2f58 !important;
}
button.vb-choice:active { transform: scale(.97); }
button.vb-choice.sel {
  background: #ba2f58 !important;
  background-color: #ba2f58 !important;
  border-color: #ba2f58 !important;
  color: #fff !important;
}
.vb-note { font-size: .92rem; color: #7a7a85; background: #faf7f8; border-radius: 6px; padding: 12px 14px; margin: 0 0 20px; }

/* Inputs (nom, téléphone, …) — 16px font évite le zoom auto sur iOS */
.vb-input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  color: #1c1c28;
  background: #fff;
  border: 1px solid #e9e4e6;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.vb-input::placeholder { color: #b5b0b3; }
.vb-input:hover { border-color: #cdb6bf; }
.vb-input:focus {
  outline: none;
  border-color: #ba2f58;
  box-shadow: 0 0 0 3px rgba(186,47,88,.14);
}

/* Encadré rouge "Vous ne réglez nos services qu'après l'obtention de votre visa." */
.vb-highlight {
  background: #f8e9ef;
  border-left: 4px solid #ba2f58;
  color: #ba2f58;
  font-weight: 700;
  padding: 14px 18px;
  margin: 24px 0 14px;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 1rem;
}

/* Paragraphe explicatif sous l'encadré rouge */
.vb-paragraph {
  color: #45454f;
  line-height: 1.6;
  margin: 0 0 22px;
  font-size: .98rem;
}
.vb-actions { display: flex; justify-content: space-between; gap: 12px; }
.vb-btn-block { width: 100%; text-align: center; }
.vb-ghost,
button.vb-ghost {
  background: transparent !important;
  background-color: transparent !important;
  color: #ba2f58 !important;
  border: 1px solid #ba2f58 !important;
}
.vb-ghost:hover,
button.vb-ghost:hover {
  background: #f8e9ef !important;
  background-color: #f8e9ef !important;
}
.vb-banks .vb-choices {
  flex-direction: column;
  gap: 10px;
}
.vb-banks button.vb-choice,
.vb-banks button.vb-bank-choice {
  border-radius: 10px !important;
  text-align: left;
  padding: 10px 14px !important;
  min-height: 0 !important;
  font-weight: 500;
  width: 100%;
  justify-content: flex-start;
}
.vb-bank-choice {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vb-bank-choice--wide {
  padding: 12px 16px !important;
}
.vb-bank-choice--wide .vb-bank-media {
  flex: 1;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vb-bank-choice--wide .vb-bank-media img {
  display: block;
  max-height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.vb-bank-choice--compact .vb-bank-media--icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vb-bank-choice--compact .vb-bank-media--icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.vb-bank-choice[data-value="cih"] .vb-bank-media img {
  max-height: 36px;
  max-width: min(200px, 90%);
}
.vb-bank-label {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1c28;
  line-height: 1.3;
}
.vb-bank-choice.sel .vb-bank-label {
  color: #fff;
}
.vb-done { text-align: center; }
.vb-done .vb-check { width: 66px; height: 66px; border-radius: 50%; background: #f8e9ef; color: #ba2f58; display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }

/* ---------- Desktop (lisibilité + banques) ---------- */
@media (min-width: 1024px) {
  .vb-visas { padding: 88px 0; }
  .vb-visas h2 { font-size: 2.85rem; }
  .vb-visas .vb-intro { font-size: 1.22rem; line-height: 1.65; }
  .vb-visas .vb-overline { font-size: 0.9rem; }
  .vb-card-body h3 { font-size: 1.65rem; }
  .vb-card-body p { font-size: 1.1rem; line-height: 1.65; }
  .vb-offre { font-size: 1.1rem; line-height: 1.65; padding: 20px 26px; }
  .vb-btn { font-size: 1.12rem; padding: 16px 36px; }

  .vb-modal-overlay { padding: 48px 24px; }
  .vb-modal {
    max-width: 640px;
    padding: 0 44px 40px;
  }
  .vb-modal-head { padding: 26px 0 18px; margin-bottom: 20px; }
  .vb-modal h3 { font-size: 2rem; margin-bottom: 10px; }
  .vb-modal .vb-sub { font-size: 1.14rem; line-height: 1.6; margin-bottom: 26px; }
  .vb-field > label { font-size: 1.1rem; margin-bottom: 12px; }
  .vb-field { margin-bottom: 24px; }
  button.vb-choice { font-size: 1.08rem; padding: 12px 22px; min-height: 46px; }
  .vb-highlight { font-size: 1.1rem; padding: 16px 20px; }
  .vb-paragraph { font-size: 1.08rem; line-height: 1.65; }
  .vb-note { font-size: 1rem; }
  .vb-input { font-size: 17px; padding: 14px 16px; min-height: 50px; }
  .vb-modal:has(.vb-banks:not([hidden])) {
    max-width: 540px;
  }
  .vb-banks button.vb-bank-choice--wide {
    padding: 14px 18px !important;
  }
  .vb-bank-choice--wide .vb-bank-media {
    min-height: 46px;
  }
  .vb-bank-choice--wide .vb-bank-media img {
    max-height: 40px;
  }
  .vb-bank-choice--compact .vb-bank-label {
    font-size: 1.12rem;
  }
  .vb-bank-choice--compact .vb-bank-media--icon img {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 821px) and (max-width: 1023px) {
  .vb-modal { max-width: 600px; }
  .vb-modal h3 { font-size: 1.85rem; }
  .vb-modal .vb-sub { font-size: 1.06rem; }
  .vb-banks button.vb-bank-choice { font-size: 1.05rem; min-height: 58px; }
}

/* ---------- Tablette / petit écran ---------- */
@media (max-width: 820px) {
  .vb-grid { grid-template-columns: 1fr; }
  .vb-visas { padding: 52px 0; }
  .vb-visas .vb-wrap { padding: 0 18px; }
  .vb-visas h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .vb-visas .vb-intro { font-size: 1.02rem; margin-bottom: 32px; }
  .vb-banner { height: 120px; }
  .vb-card-body { padding: 22px 20px 26px; }
  .vb-cta-wrap .vb-btn { display: block; width: 100%; text-align: center; }
}

/* ---------- Mobile (modale plein écran) ---------- */
@media (max-width: 640px) {
  .vb-modal-overlay {
    padding: 0;
    align-items: stretch;
    background: rgba(20,12,16,.45);
    overflow: hidden;
  }
  .vb-modal {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0 18px 24px;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* support des encoches iPhone */
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .vb-modal-head {
    padding: 14px 0 12px;
    margin-bottom: 14px;
    /* compense le padding latéral pour border-bottom pleine largeur */
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .vb-modal h3 { font-size: 1.35rem; line-height: 1.25; }
  .vb-modal .vb-sub { font-size: .96rem; margin-bottom: 18px; }
  .vb-field { margin-bottom: 18px; }
  .vb-field > label { font-size: .96rem; margin-bottom: 8px; }
  .vb-choice { padding: 11px 16px; font-size: .96rem; min-height: 44px; }
  .vb-choices { gap: 8px; }
  .vb-progress i { width: 28px; height: 4px; }
  .vb-highlight {
    padding: 12px 14px; font-size: .98rem;
    margin: 18px 0 14px;
    line-height: 1.45;
  }
  .vb-paragraph { font-size: .95rem; line-height: 1.55; margin-bottom: 18px; }
  .vb-offre { padding: 16px 16px; margin: 20px 0; font-size: .98rem; }
  .vb-actions { gap: 10px; }
  .vb-actions .vb-btn { flex: 1; padding: 13px 12px; text-align: center; min-height: 48px; }
  .vb-btn-block { padding: 15px 20px; font-size: 1rem; min-height: 50px; }
  .vb-bank-choice--wide .vb-bank-media img { max-height: 30px; }
  .vb-bank-choice--compact .vb-bank-label { font-size: 1rem; }
  .vb-done .vb-check { width: 58px; height: 58px; font-size: 1.7rem; }
}

/* ---------- Très petits téléphones (≤360px) ---------- */
@media (max-width: 360px) {
  .vb-modal { padding-left: 14px; padding-right: 14px; }
  .vb-modal-head { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .vb-modal h3 { font-size: 1.25rem; }
  .vb-choice { padding: 10px 14px; font-size: .92rem; }
}

/* ---------- Cards visa : empêcher le hover qui « colle » sur mobile ---------- */
@media (hover: none) {
  .vb-card:hover { transform: none; box-shadow: none; }
}

/* ---------- Titres Elementor : éviter la coupure mid-mot sur mobile ---------- */
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (max-width: 480px) {
  /* Hero "Accompagnement visa pour les demandeurs depuis le Maroc" */
  .elementor-element-66746a4 p {
    font-size: clamp(1.6rem, 8vw, 2rem) !important;
    line-height: 1.18 !important;
  }
  /* Titre "Comment nous travaillons" + autres p en gros */
  .elementor-widget-heading .elementor-heading-title {
    font-size: clamp(1.5rem, 7vw, 1.9rem) !important;
    line-height: 1.2 !important;
  }
}

/* Le bloc "offre" et les paragraphes injectés héritent de l'alignement Elementor (centré
   sur mobile) : on garde un rendu propre quelle que soit la largeur. */
.vb-offre, .vb-cta-wrap { text-align: left; }
@media (max-width: 820px) { .vb-cta-wrap { text-align: center; } }
