/* ==========================================================
   DKZ Assurance Temporaire — assets/public.css (FINAL)
   ========================================================== */

/* --------------------------
   Variables de thème
--------------------------- */
:root{
  --dkz-blue:#0473ce;
  --dkz-blue-dark:#045cb3;
  --dkz-dark:#1d283a;
  --dkz-dark-2:#344257;
  --dkz-bg:#f2f4f7;
  --dkz-card:#ffffff;
  --dkz-border:#e5e7eb;
  --dkz-success:#5f8f6d;
  --dkz-success-dark:#4e7a5b;
  --dkz-danger:#c1121f;
}

/* --------------------------
   Layout global
--------------------------- */
.dkz-wrap{
  background:var(--dkz-bg);
  padding:18px;
  border-radius:14px;
  border:1px solid var(--dkz-border);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.dkz-title{
  text-align:center;
  margin:6px 0 18px;
  font-size:22px;
  font-weight:800;
  color:var(--dkz-dark);
}

/* Récapitulatif du formulaire */

/* ==========================================================
   DKZ — TARIF : rendu "carte blanche" net comme image 2
   (corrige les styles du thème qui ajoutent des fonds/gris)
   ========================================================== */

/* Toujours une vraie grille */
.dkz-wrap .dkz-grid{
  display: grid !important;
  grid-template-columns: 1fr !important; /* image 1 */
  gap: 16px !important;
}

/* Desktop : 2 colonnes uniquement quand le récap est affiché */
@media (min-width:981px){
  .dkz-wrap .dkz-grid.dkz-has-recap{
    grid-template-columns: 1.2fr .85fr !important; /* image 2 */
    align-items: start;
    gap: 18px !important;
  }
}

/* ✅ Les 2 cartes blanches nettes */
.dkz-form-card,
.dkz-recap-card{
  background: #fff !important;
  border: 1px solid var(--dkz-border) !important;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
}

/* ✅ Important : enlever toute “bande grise” héritée du thème sur les champs */
.dkz-form-card .form-group{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 14px;
}

/* Au cas où le thème stylise label / input en mode "stripe" */
.dkz-form-card label{
  background: transparent !important;
}

/* Optionnel : inputs bien propres (si le thème surcharge) */
.dkz-form-card select,
.dkz-form-card input[type="date"],
.dkz-form-card input[type="time"],
.dkz-form-card .dkz-input{
  background: #fff !important;
}

@media (min-width:981px){
  .dkz-form-card{ padding: 22px; }
  .dkz-recap-card{ padding: 22px; }
}

/*mobile */
@media (max-width: 600px) {
   .dkz-wrap {padding: 6px;}
}

/* --------------------------
   Champs
--------------------------- */
.form-group{
  position:relative;
  margin-bottom:14px;
}

.form-group label{
  display:block;
  font-weight:700;
  color:var(--dkz-dark);
  margin-bottom:6px;
}

.form-group select,
.form-group input[type="date"],
.form-group input[type="time"],
.dkz-input{
  width:100%;
  min-height:46px;
  padding:12px 58px 12px 12px;
  border-radius:8px;
  border:1px solid var(--dkz-border);
  background:#fff;
  font-size:15px;
  line-height:1.2;
  outline:none;
  box-sizing:border-box;
}

.form-group select{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.form-group select:focus,
.form-group input:focus,
.dkz-input:focus{
  border-color:var(--dkz-blue);
  box-shadow:0 0 0 3px rgba(4,115,206,.15);
}

/* Alertes */
.dkz-alert{
  display:none;
  padding:10px 12px;
  border-radius:8px;
  background:var(--dkz-danger);
  color:#fff;
  font-weight:700;
  margin:8px 0 12px;
}
.dkz-alert.is-visible{
  display:block !important;
}

.dkz-debug{
  margin-top:8px;
  font-size:12px;
  color:#b32d2e;
}

/* --------------------------
   Récap
--------------------------- */
.dkz-recap-title{
  text-align:center;
  font-weight:800;
  color:#2563eb;
  line-height:1.2;
}
.dkz-recap-title span{ font-weight:900; }

.dkz-hr{
  border:0;
  height:1px;
  background:var(--dkz-border);
  margin:12px 0;
}

.dkz-list{
  margin:0 0 14px 18px;
  color:var(--dkz-dark-2);
  font-size:13px;
}

.dkz-amount{ 
  text-align:center; 
  margin-top:8px; 
}
.dkz-amount-label{ 
    font-weight:800; 
    color:var(--dkz-dark); 
}
.dkz-amount-value{ 
    margin-top:6px; 
    font-size:22px; 
    font-weight:900; 
    color:var(--dkz-dark); 
}

.dkz-note{
  margin:12px 0 12px;
  padding:10px 12px;
  border-radius:8px;
  background:#efefef;
  color:#555;
  font-size:12px;
  text-align:center;
}

.dkz-mini-label{
  display:block;
  margin:8px 0 6px;
  font-size:12px;
  color:var(--dkz-dark-2);
  font-weight:700;
}

.dkz-btn{
  width:auto;
  margin-top:12px;
  padding:12px 14px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  background:#D73310B3;
  color:#fff;
  font-weight:900;
}
.dkz-btn:hover{ background:#000000; }

/* Centrer le bouton "Continuer la Souscription" dans la carte récap (page Tarif) */
#dkz-recap-card #dkz_continue_btn{
  display: block;
  margin: 12px auto 0;
  width: fit-content;
  min-width: 260px;
  text-align: center;
}

/* --------------------------
   Animation step
--------------------------- */
.form-group, .dkz-alert{
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}
.dkz-step-enter{ opacity:0; transform:translateY(10px); }
.dkz-step-enter.dkz-step-enter-active{ opacity:1; transform:translateY(0); }

/* =========================================================
   DKZ — Antécédents (scope strict)
   Cible : templates/antecedents-form.php
   ========================================================= */
   
#dkz-antecedents-wrap.dkz-antecedents {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 12px;
  font-family: inherit;
}

#dkz-antecedents-wrap .dkz-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
}

/* Titre en bandeau vert comme l’image 1 */
#dkz-antecedents-wrap .dkz-title {
  margin: 0;
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  background: #D73310B3;
}

#dkz-antecedents-wrap .dkz-sep {
  height: 1px;
  background: #e7ebf0;
  margin: 0;
}

/* Groupes/questions */
#dkz-antecedents-wrap .ant-group {
  padding: 16px 20px;
}

/* Ligne : question gauche / actions droite */
#dkz-antecedents-wrap .ant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Variantes en colonne (Q5.1, Q6, Q7.1, Q9 avec pays) */
#dkz-antecedents-wrap .ant-row--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

#dkz-antecedents-wrap .ant-question {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
}

/* Zone boutons Oui/Non alignée à droite */
#dkz-antecedents-wrap .ant-actions {
  display: flex;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

/* Boutons Oui/Non : texte centré + style actif/inactif */
#dkz-antecedents-wrap .ant-yn {
  min-width: 96px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e3e7ee;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
  font-size: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

#dkz-antecedents-wrap .ant-yn:hover {
  filter: brightness(0.98);
}

/* ✅ Actif : fond #D73310B3 + texte blanc */
#dkz-antecedents-wrap .ant-yn.is-active {
  background: #D73310B3;
  border-color: #D73310B3;
  color: #ffffff;
}

/* =========================================================
   Champs (select) — taille + alignement
   ========================================================= */

/* Wrapper champ */
#dkz-antecedents-wrap .ant-field {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Select : largeur “image 1” (à ajuster si besoin) */
#dkz-antecedents-wrap .dkz-input {
  width: 320px;
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #dfe5ee;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  outline: none;
}

/* Focus propre */
#dkz-antecedents-wrap .dkz-input:focus {
  border-color: rgba(215, 51, 16, 0.35);
  box-shadow: 0 0 0 3px rgba(215, 51, 16, 0.12);
}

/* Grille des sinistres : label gauche / select droite */
#dkz-antecedents-wrap .ant-grid {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

#dkz-antecedents-wrap .ant-grid .ant-field {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 14px;
  justify-content: stretch;
}

#dkz-antecedents-wrap .ant-grid label {
  font-weight: 600;
  color: #111827;
}

/* Note (Q8 non) */
#dkz-antecedents-wrap .ant-note {
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  padding: 12px 14px;
  color: #374151;
  font-size: 15px;
}

/* Bloc pays (Q9) */
#dkz-antecedents-wrap .ant-country-box {
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  padding: 14px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

/* =========================================================
   Message bloquant : affiché sous la question concernée (géré par JS)
   Ici uniquement le style
   ========================================================= */
#dkz-antecedents-wrap .dkz-alert {
  display: none;
  margin: 29px auto 15px 0px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #c1121f;
  color: #fff;
  font-weight: 700;
}

#dkz-antecedents-wrap .dkz-alert.is-visible {
  display: block;
}

/* =========================================================
   Footer : boutons RETOUR / POURSUIVRE comme image 1
   ========================================================= */
#dkz-antecedents-wrap .ant-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid #e7ebf0;
  background: #fff;
}

/* On garde tes classes dkz-btn, mais on sécurise l’apparence */
#dkz-antecedents-wrap .dkz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
}

/* RETOUR (noir) */
#dkz-antecedents-wrap .dkz-btn-back {
  background: #111;
  color: #fff;
}

/* POURSUIVRE (vert) */
#dkz-antecedents-wrap .dkz-btn-primary {
  background: #D73310B3;
  color: #fff;
  min-width: 180px;
}

#dkz-antecedents-wrap .dkz-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Message Q8 (cadre rouge, texte blanc) */
#dkz-antecedents-wrap #ant_private_warn{
  display:none;
  padding:12px 14px;
  border-radius:10px;
  background:#c1121f;
  color:#fff;
  font-weight:700;
  line-height:1.35;
  margin-top:10px;
}

/* =========================================================
   Responsive (mobile)
   ========================================================= */
@media (max-width: 600px) {
  #dkz-antecedents-wrap .ant-row {
    flex-direction: column;
    align-items: stretch;
  }

  #dkz-antecedents-wrap .ant-actions {
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  #dkz-antecedents-wrap .ant-field {
    justify-content: flex-start;
  }

  #dkz-antecedents-wrap .ant-grid .ant-field {
    grid-template-columns: 1fr;
  }

  #dkz-antecedents-wrap .dkz-input {
    width: 100%;
  }

  #dkz-antecedents-wrap .ant-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #dkz-antecedents-wrap .dkz-btn-primary {
    width: 100%;
  }
}

/* ======================================================================
   DKZ ANTÉCÉDENTS — ULTRA PREMIUM V2 (aligné DOCS)
   Scope strict : #dkz-antecedents-wrap uniquement
   ====================================================================== */

#dkz-antecedents-wrap{
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 12px;
}

/* Carte globale */
#dkz-antecedents-wrap .dkz-card,
#dkz-antecedents-wrap .dkz-antecedents-card{
  background:
    radial-gradient(1200px 420px at 10% -12%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(900px 320px at 110% 0%, rgba(29,78,216,.06), transparent 55%),
    #fff;
  border: 1px solid rgba(191,219,254,.92);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15,23,42,.10);
  overflow: hidden;
}

/* Bandeau titre */
#dkz-antecedents-wrap .dkz-title{
  margin: 0 !important;
  padding: 18px 16px !important;
  text-align: center;
  font-weight: 900 !important;
  font-size: 24px !important;
  color: #fff !important;
  letter-spacing: -.02em;

  background:
    radial-gradient(900px 260px at 12% -20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(90deg, #2563eb, #1d4ed8) !important;

  border-bottom: 1px solid rgba(191,219,254,.55);
}

/* Hint + compteur + progress (si présents) */
#dkz-antecedents-wrap .ant-hint{
  margin: 12px 16px 0;
  color: #eaf2ff;
  opacity: .95;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

#dkz-antecedents-wrap .ant-top{
  display:flex;
  justify-content:center;
  margin: 12px 0 0;
}

#dkz-antecedents-wrap .ant-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
  color:#fff;
  font-size: 12px;
  letter-spacing: .06em;
}

#dkz-antecedents-wrap .ant-progress{
  margin: 14px 16px 0;
  height: 10px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
}
#dkz-antecedents-wrap .ant-progress-bar{
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
  transition: width .25s ease;
}

/* Sections */
#dkz-antecedents-wrap .ant-group{
  padding: 14px 16px;
}

/* Lignes questions */
#dkz-antecedents-wrap .ant-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(191,219,254,.92);
  background: rgba(248,251,255,.85);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  margin-bottom: 12px;

  transition: box-shadow .18s ease, transform .08s ease, border-color .18s ease;
}
#dkz-antecedents-wrap .ant-row:hover{
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  border-color: rgba(37,99,235,.25);
}
#dkz-antecedents-wrap .ant-row:active{
  transform: translateY(1px);
}

#dkz-antecedents-wrap .ant-question{
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
}

/* Actions Oui/Non */
#dkz-antecedents-wrap .ant-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

/* Boutons Oui/Non : premium + état actif */
#dkz-antecedents-wrap .ant-yn{
  min-width: 112px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(191,219,254,.92);
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  font-size: 16px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  user-select:none;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
#dkz-antecedents-wrap .ant-yn:hover{
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
  transform: translateY(-1px);
}
#dkz-antecedents-wrap .ant-yn:active{
  transform: translateY(1px);
}

/* Actif : style “primary” */
#dkz-antecedents-wrap .ant-yn.is-active{
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border-color: rgba(191,219,254,.92);
  color: #fff;
}

/* Champs select : plus premium */
#dkz-antecedents-wrap .dkz-input{
  width: 340px;
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(191,219,254,.92);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
#dkz-antecedents-wrap .dkz-input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14), 0 10px 20px rgba(15,23,42,.06);
}

/* Sous-cartes (sinistres, pays, etc.) */
#dkz-antecedents-wrap .ant-subcard,
#dkz-antecedents-wrap .ant-sin,
#dkz-antecedents-wrap .ant-country-box,
#dkz-antecedents-wrap .ant-note{
  margin: 10px 0 0;
  padding: 14px;
  border: 1px solid rgba(191,219,254,.92);
  border-radius: 16px;
  background: rgba(248,251,255,.85);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  color:#334155;
  font-weight: 700;
}

/* Footer */
#dkz-antecedents-wrap .ant-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(191,219,254,.92);
  background: #fff;
}

/* Boutons footer alignés DOCS/RECAP */
#dkz-antecedents-wrap .dkz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 180px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .3px;
  cursor:pointer;
  transition: all .18s ease;
  border: 0;
  text-decoration:none;
}

/* Retour : outline */
#dkz-antecedents-wrap .dkz-btn-back{
  background:#fff !important;
  color:#0f172a !important;
  border:2px solid #0f172a !important;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
#dkz-antecedents-wrap .dkz-btn-back:hover{
  background:#f8fafc !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
}
#dkz-antecedents-wrap .dkz-btn-back:active{ transform: translateY(1px); }

/* Continuer : primary gradient */
#dkz-antecedents-wrap .dkz-btn-primary{
  background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
}
#dkz-antecedents-wrap .dkz-btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,.35);
}
#dkz-antecedents-wrap .dkz-btn-primary:active{ transform: translateY(1px); }
#dkz-antecedents-wrap .dkz-btn-primary:disabled{
  background:#e5e7eb !important;
  color:#9ca3af !important;
  -webkit-text-fill-color:#9ca3af !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
}

/* Alerts (bloquants) */
#dkz-antecedents-wrap .dkz-alert{
  border-radius: 14px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 720px){
  #dkz-antecedents-wrap .ant-row{
    flex-direction: column;
    align-items: stretch;
  }

  #dkz-antecedents-wrap .ant-actions{
    justify-content: center;
    width: 100%;
  }

  #dkz-antecedents-wrap .ant-yn{
    width: 48%;
    min-width: 0;
  }

  #dkz-antecedents-wrap .dkz-input{
    width: 100%;
  }

  #dkz-antecedents-wrap .ant-footer{
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #dkz-antecedents-wrap .dkz-btn-back,
  #dkz-antecedents-wrap .dkz-btn-primary{
    width: 100%;
    min-width: 0;
  }
}
/* Pulse premium (boutons quand action possible) */
.dkz-pulse{
  animation: dkzPulse 1.2s ease-in-out infinite;
}
@keyframes dkzPulse{
  0%   { transform: translateY(0); box-shadow: 0 10px 24px rgba(37,99,235,.20); }
  50%  { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(37,99,235,.30); }
  100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(37,99,235,.20); }
}
/* Antécédents — petit polish premium */
#dkz-antecedents-wrap .ant-progress{
  margin-bottom: 10px;
}
#dkz-antecedents-wrap .ant-counter{
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
/* ==========================================================
   Récap commande — look image 2, couleurs DKZ (compatible HTML actuel)
   ========================================================== */

#dkz-recap-wrap{
  max-width: 1100px;
  margin: 30px auto;
}

#dkz-recap-wrap .dkz-recap-header{
  background:#D73310B3;
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  color:#fff;
  margin-bottom: 18px;
}

#dkz-recap-wrap .dkz-recap-header .dkz-title{
  margin: 0;
  color:#fff;
  font-size: 22px;
}

#dkz-recap-wrap .dkz-recap-sub{
  text-align:center;
  font-size: 18px;
  margin: 12px 0 22px;
  color: #fff;
  font-weight: 600;
}

#dkz-recap-wrap .dkz-recap-box{
  max-width: 820px;
  margin: 0 auto 30px;
  border: 3px solid rgba(0,0,0,.6);
  border-radius: 26px;
  padding: 26px 28px;
  background:#fff;
}

#dkz-recap-wrap .dkz-recap-price{
  text-align:center;
  font-size: 20px;
  margin-bottom: 18px;
  color:#111827;
  font-weight: 700;
}

#dkz-recap-wrap .dkz-recap-g-title{
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

#dkz-recap-wrap .dkz-list{
  margin-left: 18px;
  font-size: 15px;
  color: #374151;
}

#dkz-recap-wrap .dkz-recap-actions{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px;
}

#dkz-recap-wrap .dkz-btn{
  min-width: 180px;
  height: 46px;
  border-radius: 10px;
  font-weight: 900;
}

#dkz-recap-wrap .dkz-btn-outline{
  background:#fff;
  color:#111827;
  border:1px solid var(--dkz-border,#e5e7eb);
}

#dkz-recap-wrap #dkz_recap_continue:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* ==========================================================
   DKZ — Antécédents : améliorations UI/UX (sans casser le JS)
   ========================================================== */
#dkz-antecedents-wrap .dkz-antecedents-card{
  max-width: 980px;
  margin: 0 auto;
}

#dkz-antecedents-wrap .ant-hint{
  margin: 10px 20px 0;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

#dkz-antecedents-wrap .ant-progress{
  margin: 14px 20px 0;
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e7ebf0;
}
#dkz-antecedents-wrap .ant-progress-bar{
  height: 100%;
  width: 0%;
  background: #D73310B3;
  border-radius: 999px;
  transition: width .25s ease;
}

/* Questions : meilleure lisibilité */
#dkz-antecedents-wrap .ant-row{
  padding: 14px 20px;
  border-bottom: 1px solid #eef2f7;
}
#dkz-antecedents-wrap .ant-row:last-of-type{
  border-bottom: 0;
}

/* “Sous-cartes” pour les sous-questions (doublon supprimé : on garde cette version finale) */
#dkz-antecedents-wrap .ant-subcard,
#dkz-antecedents-wrap .ant-sin{
  margin: 10px 0px 0;
  padding: 14px;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  background: #f8fafc;
}

/* Q6: grille sinistres plus stable */
#dkz-antecedents-wrap .ant-sin-grid{
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px 14px;
  align-items: center;
  margin-top: 10px;
}
@media (max-width: 600px){
  #dkz-antecedents-wrap .ant-sin-grid{
    grid-template-columns: 1fr;
  }
}

/* Boutons Oui/Non : un peu plus “premium” */
#dkz-antecedents-wrap .ant-yn{
  min-width: 110px;
  height: 46px;
  border-radius: 12px;
  font-size: 17px;
}

/* Mobile : texte en haut, boutons en bas + espacement */
@media (max-width: 600px){
  #dkz-antecedents-wrap .ant-row{
    padding: 14px 16px;
  }
  #dkz-antecedents-wrap .ant-actions{
    margin-top: 14px;
    justify-content: center;
  }
  #dkz-antecedents-wrap .ant-yn{
    width: 48%;
    min-width: 0;
  }
}

/* ===== Antécédents : compteur + animation + carte Q7.1 ===== */

#dkz-antecedents-wrap .ant-top{
  display:flex;
  justify-content:center;
  margin: 10px 0 0;
}

#dkz-antecedents-wrap .ant-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  background:#f3f4f6;
  border:1px solid #e7ebf0;
  font-weight:800;
  color:#111827;
  font-size:13px;
}

/* Animation apparition (réutilise ton idée dkz-step-enter) */
#dkz-antecedents-wrap .ant-anim{
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}
#dkz-antecedents-wrap .ant-anim.dkz-step-enter{
  opacity:0;
  transform:translateY(10px);
}
#dkz-antecedents-wrap .ant-anim.dkz-step-enter.dkz-step-enter-active{
  opacity:1;
  transform:translateY(0);
}

/* Carte “sub” comme Q6 */
#dkz-antecedents-wrap .ant-subcard{
  margin: 10px 0px 0;
  padding: 14px;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  background: #f8fafc;
}

/* Grille Q7.1 (réutilise ant-sin-grid de Q6) */
#dkz-antecedents-wrap .ant-subgrid{
  margin-top: 10px;
}

/* Tunnel : une seule étape visible */
.dkz-step { display: none; }
.dkz-step.is-active { display: block; }

/* ======================================================================
   DKZ DOCS — ULTRA PREMIUM FINAL (SANS CONFLITS)
   - Accordéon fermé au chargement
   - 1 seul ouvert à la fois (géré par JS)
   - Recto/Verso en cartes
   - Progress fluide
   - Badge PDF/PNG/JPG coloré
   - Preview image
   - Pastilles OK (doc + côté)
   - Mobile : clamp 2 lignes + "(Obligatoire)" en dessous
   ====================================================================== */

/* -----------------------------
   Variables (scope docs)
------------------------------ */
:root{
  --dkz-doc-card:#ffffff;
  --dkz-doc-text:#0f172a;
  --dkz-doc-muted:#64748b;

  --dkz-doc-line: rgba(191, 219, 254, .92);
  --dkz-doc-shadow: 0 18px 60px rgba(15,23,42,.10);

  --dkz-doc-blue:#2563eb;
  --dkz-doc-blue2:#1d4ed8;
  --dkz-doc-blue-soft:#eff6ff;

  --dkz-doc-red:#ef4444;
  --dkz-doc-red-soft:#fef2f2;

  --dkz-doc-warn-bg:#fff7db;
  --dkz-doc-warn-line:#f6d36a;
  --dkz-doc-warn-text:#8a5a00;

  --dkz-doc-pdf:#9f1239;
  --dkz-doc-pdf-bg:#fff1f2;
  --dkz-doc-pdf-line:#fecdd3;

  --dkz-doc-png:#1d4ed8;
  --dkz-doc-png-bg:#eff6ff;
  --dkz-doc-png-line:#bfdbfe;

  --dkz-doc-jpg:#065f46;
  --dkz-doc-jpg-bg:#ecfdf5;
  --dkz-doc-jpg-line:#a7f3d0;

  --dkz-ok:#16a34a;
  --dkz-ok-bg:#ecfdf5;
  --dkz-ok-line:#a7f3d0;

  --dkz-head-open-bg: rgba(37,99,235,.06);
}

/* wrapper */
#dkz-docs-wrap.dkz-docs-page{ padding:18px 12px; }

/* main card */
#dkz-docs-wrap .dkz-docs-card{
  max-width: 1040px;
  margin: 0 auto;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 300px at 110% 0%, rgba(29,78,216,.08), transparent 55%),
    var(--dkz-doc-card);
  border: 1px solid var(--dkz-doc-line);
  border-radius: 18px;
  box-shadow: var(--dkz-doc-shadow);
  padding: 18px;
}

#dkz-docs-wrap .dkz-docs-title{
  margin:0 0 6px;
  font-size:28px;
  font-weight:900;
  color:var(--dkz-doc-text);
  letter-spacing:-.02em;
  text-align: center;
}

#dkz-docs-wrap .dkz-docs-subtitle{
  margin:0 0 12px;
  color:var(--dkz-doc-muted);
  font-size:14px;
  line-height:1.6;
  text-align: center;
}

#dkz-docs-wrap .dkz-docs-section-title{
  margin:18px 0 10px;
  font-size:13px;
  font-weight:900;
  letter-spacing:.06em;
  color:var(--dkz-doc-text);
  text-align: center;
}

/* warn */
#dkz-docs-wrap .dkz-docs-warn{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:var(--dkz-doc-warn-bg);
  border:1px solid var(--dkz-doc-warn-line);
  color:var(--dkz-doc-warn-text);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  margin:0 0 10px;
}
#dkz-docs-wrap .dkz-docs-warn-ic{ font-size:16px; line-height:1; margin-top:1px; }

/* ----------------------------------------------------------
   Accordéon row
---------------------------------------------------------- */
#dkz-docs-wrap .dkz-doc-row{
  background:rgba(248,251,255,.85);
  border:1px solid var(--dkz-doc-line);
  border-radius:14px;
  overflow:hidden;
  margin:10px 0;

  transition: box-shadow .18s ease, transform .08s ease, border-color .18s ease;
}

#dkz-docs-wrap .dkz-doc-row:hover{
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  border-color: rgba(37,99,235,.25);
}

#dkz-docs-wrap .dkz-doc-row:active{
  transform: translateY(1px);
}

/* IMPORTANT : le header doit être flex pour la pastille OK */
#dkz-docs-wrap .dkz-doc-head{
  width:100%;
  border:0;
  background:transparent;
  padding:12px 14px;
  cursor:pointer;
  text-align:left;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;

  transition: background .18s ease;
}

#dkz-docs-wrap .dkz-doc-row.is-open .dkz-doc-head{
  background: var(--dkz-head-open-bg);
}

#dkz-docs-wrap .dkz-doc-head-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0; /* crucial pour ellipsis/clamp */
}

#dkz-docs-wrap .dkz-doc-chevron{
  color:#94a3b8;
  font-size:14px;
  transform:rotate(-90deg);
  transition:transform .18s ease, color .18s ease;
}

#dkz-docs-wrap .dkz-doc-row.is-open .dkz-doc-chevron{
  transform:rotate(0deg);
  color: var(--dkz-doc-blue);
}

/* Label container */
#dkz-docs-wrap .dkz-doc-label{
  display:flex;
  flex-direction:column; /* permet de mettre (Obligatoire) dessous sur mobile */
  min-width:0;
  max-width:100%;
  color:#293e71;
}

/* Titre principal : clamp/ellipsis */
#dkz-docs-wrap .dkz-doc-title{
  color:var(--dkz-doc-text);
  font-weight:900;
  font-size:13px;

  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Tag obligatoire */
#dkz-docs-wrap .dkz-doc-req{
  margin-top:2px;
  color:var(--dkz-doc-muted);
  font-weight:800;
  font-size:12px;
  display:none; /* desktop: caché (on l’affiche via media si besoin) */
}

/* Desktop : sur desktop on préfère garder obligatoire inline visuellement */
@media (min-width: 521px){
  #dkz-docs-wrap .dkz-doc-label{
    flex-direction:row;
    align-items:baseline;
    gap:8px;
  }
  #dkz-docs-wrap .dkz-doc-title{
    white-space:nowrap;
  }
  #dkz-docs-wrap .dkz-doc-req{
    display:inline;
    margin-top:0;
  }
}

/* Mobile : 2 lignes max pour le TITRE, obligatoire dessous */
@media (max-width: 520px){
  #dkz-docs-wrap .dkz-doc-title{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:normal;
    line-height:1.25;
    font-size:13px;
  }
  #dkz-docs-wrap .dkz-doc-req{
    display:block;
  }
}

/* body accordéon */
#dkz-docs-wrap .dkz-doc-body{
  border-top:1px solid var(--dkz-doc-line);
  padding:12px;
  display:none;
}
#dkz-docs-wrap .dkz-doc-row.is-open .dkz-doc-body{ display:block; }

/* ----------------------------------------------------------
   Recto/Verso grid
---------------------------------------------------------- */
#dkz-docs-wrap .dkz-doc-sides{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* side card */
#dkz-docs-wrap .dkz-side-card{
  background:#fff;
  border:1px solid var(--dkz-doc-line);
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  overflow:hidden; /* anti débordement */
}

#dkz-docs-wrap .dkz-side-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

#dkz-docs-wrap .dkz-side-title{
  font-size:13px;
  font-weight:900;
  color:var(--dkz-doc-text);
  display:flex;
  align-items:center;
}

/* Pastille côté (JS l’affiche) */
#dkz-docs-wrap .dkz-side-ok{
  display:none;
  margin-left:8px;
  width:10px; height:10px;
  border-radius:999px;
  background: var(--dkz-ok);
  box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}

#dkz-docs-wrap .dkz-side-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  max-width:100%;
}

/* hide native inputs */
#dkz-docs-wrap input[type="file"]{ display:none !important; }

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */
#dkz-docs-wrap .dkz-doc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:34px;
  padding:0 12px;
  border-radius:10px;
  border:2px solid #111827;
  background:#fff;
  color:#111827;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space:nowrap;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
#dkz-docs-wrap .dkz-doc-btn:hover{
  background:#f8fafc;
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
}
#dkz-docs-wrap .dkz-doc-btn:active{ transform:translateY(1px); }

#dkz-docs-wrap .dkz-doc-btn::before{
  content:"";
  width:16px; height:16px; display:inline-block;
  background-repeat:no-repeat; background-size:16px 16px; background-position:center;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 16V4'/%3E%3Cpath stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m7 9 5-5 5 5'/%3E%3Cpath stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 20h16'/%3E%3C/svg%3E");
}

#dkz-docs-wrap .dkz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:34px;
  padding:0 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  background:#fff;
  border:1px solid transparent;
  transition:transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space:nowrap;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
#dkz-docs-wrap .dkz-btn:hover{ box-shadow: 0 14px 26px rgba(15,23,42,.10); }
#dkz-docs-wrap .dkz-btn:active{ transform:translateY(1px); }
#dkz-docs-wrap .dkz-btn:disabled{ opacity:.55; cursor:not-allowed; }

#dkz-docs-wrap .dkz-btn.dkz-view{
  border-color:rgba(191,219,254,1);
  color:var(--dkz-doc-blue);
}
#dkz-docs-wrap .dkz-btn.dkz-view:hover{ background:var(--dkz-doc-blue-soft); }

#dkz-docs-wrap .dkz-btn.dkz-del{
  border-color:rgba(254,202,202,1);
  color:var(--dkz-doc-red);
}
#dkz-docs-wrap .dkz-btn.dkz-del:hover{ background:var(--dkz-doc-red-soft); }

/* icons */
#dkz-docs-wrap .dkz-btn.dkz-view::before,
#dkz-docs-wrap .dkz-btn.dkz-del::before{
  content:"";
  width:16px; height:16px; display:inline-block;
  background-repeat:no-repeat; background-size:16px 16px; background-position:center;
}
#dkz-docs-wrap .dkz-btn.dkz-view::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 12s3.5-7 9.5-7 9.5 7 9.5 7-3.5 7-9.5 7-9.5-7-9.5-7Z'/%3E%3Cpath stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}
#dkz-docs-wrap .dkz-btn.dkz-del::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 7h16'/%3E%3Cpath stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 11v6'/%3E%3Cpath stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M14 11v6'/%3E%3Cpath stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 7l1 14h10l1-14'/%3E%3Cpath stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 7V4h6v3'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------
   File zone + badge + preview
---------------------------------------------------------- */
#dkz-docs-wrap .dkz-side-file{ display:grid; gap:10px; }

#dkz-docs-wrap .dkz-badge-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:24px;
  border-radius:10px;
  border:1px solid var(--dkz-doc-line);
  background:#f8fafc;
  color:var(--dkz-doc-muted);
  font-size:11px;
  font-weight:900;
}
#dkz-docs-wrap .dkz-badge-mini.is-pdf{
  color:var(--dkz-doc-pdf);
  background:var(--dkz-doc-pdf-bg);
  border-color:var(--dkz-doc-pdf-line);
}
#dkz-docs-wrap .dkz-badge-mini.is-png{
  color:var(--dkz-doc-png);
  background:var(--dkz-doc-png-bg);
  border-color:var(--dkz-doc-png-line);
}
#dkz-docs-wrap .dkz-badge-mini.is-jpg{
  color:var(--dkz-doc-jpg);
  background:var(--dkz-doc-jpg-bg);
  border-color:var(--dkz-doc-jpg-line);
}
#dkz-docs-wrap .dkz-badge-mini.is-heic{
  color:#7c3aed;
  background:#f5f3ff;
  border-color:#ddd6fe;
}

#dkz-docs-wrap .dkz-thumb{
  position:relative;
  overflow:hidden;
  border:1px solid var(--dkz-doc-line);
  background:#fff;
  border-radius:12px;
  padding:6px;
  cursor:pointer;
  width: 132px;
  transition: transform .08s ease, box-shadow .15s ease;
}
#dkz-docs-wrap .dkz-thumb:hover{ box-shadow:0 10px 24px rgba(15,23,42,.08); }
#dkz-docs-wrap .dkz-thumb:active{ transform: translateY(1px); }

#dkz-docs-wrap .dkz-thumb img{
  width:100%;
  height:84px;
  object-fit:cover;
  display:block;
  border-radius:10px;
}

#dkz-docs-wrap .dkz-thumb::after{
  content:"Voir";
  position:absolute;
  right:10px;
  bottom:10px;
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.65);
  color:#fff;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
#dkz-docs-wrap .dkz-thumb:hover::after{
  opacity:1;
  transform: translateY(0);
}

/* file line */
#dkz-docs-wrap .dkz-fileline{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--dkz-doc-muted);
  font-size:13px;
  font-weight:700;
  min-width:0;
}
#dkz-docs-wrap .dkz-file-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ----------------------------------------------------------
   Progress per side
---------------------------------------------------------- */
#dkz-docs-wrap .dkz-side-progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
#dkz-docs-wrap .dkz-progress-track{
  flex:1;
  height:6px;
  background:#e5efff;
  border-radius:999px;
  overflow:hidden;
}
#dkz-docs-wrap .dkz-progress-bar{
  width:0%;
  height:100%;
  background: linear-gradient(90deg, var(--dkz-doc-blue), var(--dkz-doc-blue2));
  border-radius:999px;
  transition: width .22s ease;
}
#dkz-docs-wrap .dkz-progress-text{
  width:38px;
  text-align:right;
  font-size:12px;
  font-weight:900;
  color:var(--dkz-doc-muted);
}

/* OR separator */
#dkz-docs-wrap .dkz-doc-or{ display:flex; justify-content:center; margin:10px 0; }
#dkz-docs-wrap .dkz-doc-or span{
  font-size:12px;
  font-weight:900;
  color:var(--dkz-doc-muted);
  background:#f1f5f9;
  border:1px solid var(--dkz-doc-line);
  border-radius:999px;
  padding:6px 14px;
}

/* Pastille OK doc (JS l’affiche) */
#dkz-docs-wrap .dkz-doc-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
#dkz-docs-wrap .dkz-pill-ok{
  display:none;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--dkz-ok-line);
  background: var(--dkz-ok-bg);
  color: var(--dkz-ok);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
#dkz-docs-wrap .dkz-pill-ok::before{
  content:"";
  width:8px; height:8px;
  background: var(--dkz-ok);
  border-radius:999px;
  display:inline-block;
}

/* footer */
#dkz-docs-wrap .dkz-docs-footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
#dkz-docs-wrap .dkz-docs-quit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid #111827;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:900;
}
#dkz-docs-wrap .dkz-docs-continue{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:160px;
  padding:12px 22px;
  border-radius:12px;
  border:0;
  background: linear-gradient(90deg, rgba(215, 51, 16, 0.7), rgba(215, 51, 16, 0.7));
  color:#fff;
  font-weight:900;
  
 
}
#dkz-docs-wrap .dkz-docs-continue:disabled{ opacity:.55; cursor:not-allowed; background:#2563eb; }

/* viewer */
#dkz-doc-viewer{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}
#dkz-doc-viewer.is-open{ display:block; }
#dkz-doc-viewer .dkz-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
}
#dkz-doc-viewer .dkz-viewer-card{
  position:relative;
  max-width:980px;
  margin:22px auto;
  background:#fff;
  border-radius:16px;
  box-shadow: var(--dkz-doc-shadow);
  border:1px solid var(--dkz-doc-line);
  padding:12px;
}
#dkz-doc-viewer .dkz-viewer-close{
  position: absolute;
    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid rgba(191,219,254,.92);

    background: linear-gradient(90deg,#2563eb,#1d4ed8);
    color: #fff;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 6px 14px rgba(37,99,235,.25);
    transition: all .15s ease;
}
/* Hover */
#dkz-doc-viewer .dkz-viewer-close:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37,99,235,.35);
}

/* Click */
#dkz-doc-viewer .dkz-viewer-close:active{
    transform: translateY(1px);
}
#dkz-doc-viewer .dkz-viewer-body{ padding-top:38px; }

/* responsive */
@media (max-width: 820px){
  #dkz-docs-wrap .dkz-doc-sides{ grid-template-columns:1fr; }
  #dkz-docs-wrap .dkz-docs-footer{ flex-direction:column; }
  #dkz-docs-wrap .dkz-docs-quit,
  #dkz-docs-wrap .dkz-docs-continue{ width:100%; min-width:0; }
  #dkz-docs-wrap .dkz-docs-title{ font-size:22px; }
  #dkz-docs-wrap .dkz-thumb{ width: 100%; }
  #dkz-docs-wrap .dkz-thumb img{ height: 120px; }
}

/* ==========================================================
   DKZ DOCS — FIX FORCÉ bouton Continuer (Elementor/theme override)
   Cible : #dkz_docs_continue uniquement
   ========================================================== */

#dkz-docs-wrap #dkz_docs_continue{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 180px !important;
  min-height: 46px !important;
  padding: 12px 22px !important;

  border: 0 !important;
  border-radius: 12px !important;

  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: .3px !important;

  /* ✅ IMPORTANT : forcer texte visible */
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  /* ✅ IMPORTANT : forcer couleur active */
  background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;

  box-shadow: 0 10px 24px rgba(37,99,235,.25) !important;
  cursor: pointer !important;

  opacity: 1 !important; /* évite le rendu “blanc” */
}

/* Hover actif */
#dkz-docs-wrap #dkz_docs_continue:not(:disabled):hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(37,99,235,.35) !important;
}

/* Active press */
#dkz-docs-wrap #dkz_docs_continue:not(:disabled):active{
  transform: translateY(1px) !important;
}

/* Disabled : gris propre (et texte visible) */
#dkz-docs-wrap #dkz_docs_continue:disabled{
  background: #e5e7eb !important;
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* ======================================================================
   DKZ RECAP — ULTRA PREMIUM V2 (aligné DOCS)
   ====================================================================== */

#dkz-recap-wrap{
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 12px;
}

/* Header premium */
#dkz-recap-wrap .dkz-recap-header{
  background:
    radial-gradient(1200px 380px at 12% -20%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(900px 300px at 110% 0%, rgba(29,78,216,.18), transparent 55%),
    linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 18px;
  padding: 18px 16px;
  color:#fff;
  box-shadow: 0 18px 60px rgba(15,23,42,.14);
  border: 1px solid rgba(191,219,254,.65);
  margin-bottom: 16px;
  animation: dkzFadeUp .28s ease both;
}

#dkz-recap-wrap .dkz-recap-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
}

#dkz-recap-wrap .dkz-recap-title{
  margin: 10px 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#dkz-recap-wrap .dkz-recap-sub{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  opacity: .95;
}

#dkz-recap-wrap .dkz-recap-period{
  display:inline-block;
  margin-left: 6px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Card */
#dkz-recap-wrap .dkz-recap-card{
  background:
    radial-gradient(1200px 360px at 10% -10%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(900px 300px at 110% 0%, rgba(29,78,216,.06), transparent 55%),
    #fff;
  border: 1px solid rgba(191,219,254,.92);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(15,23,42,.10);
  animation: dkzFadeUp .28s ease both;
}

/* Total */
#dkz-recap-wrap .dkz-recap-total{
  text-align:center;
  padding: 8px 8px 14px;
}

#dkz-recap-wrap .dkz-recap-total-label{
  font-weight: 900;
  color:#0f172a;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#dkz-recap-wrap .dkz-recap-total-value{
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  color:#0f172a;
  letter-spacing: -.02em;
}

#dkz-recap-wrap #dkz_recap_amount{
  color:#2563eb;
}

#dkz-recap-wrap .dkz-recap-total-currency{
  font-size: 16px;
  font-weight: 900;
  color:#334155;
}

#dkz-recap-wrap .dkz-recap-total-note{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color:#475569;
}

/* Divider */
#dkz-recap-wrap .dkz-recap-divider{
  height: 1px;
  background: rgba(191,219,254,.92);
  margin: 14px 0;
}

/* Section */
#dkz-recap-wrap .dkz-recap-section-title{
  font-weight: 900;
  color:#0f172a;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: .02em;
}

#dkz-recap-wrap .dkz-recap-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

#dkz-recap-wrap .dkz-recap-item{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(191,219,254,.92);
  background: rgba(248,251,255,.85);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

#dkz-recap-wrap .dkz-recap-bullet{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(37,99,235,.12);
  color:#2563eb;
}

#dkz-recap-wrap .dkz-recap-text{
  color:#334155;
  font-weight: 800;
  line-height: 1.35;
}

/* Actions */
#dkz-recap-wrap .dkz-recap-actions{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

/* Boutons premium (comme DOCS) */
#dkz-recap-wrap .dkz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 180px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  border: 0;
  opacity: 1;
}

/* Outline (Retour) */
#dkz-recap-wrap .dkz-btn-outline{
  background:#fff !important;
  color:#0f172a !important;
  border:2px solid #0f172a !important;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
#dkz-recap-wrap .dkz-btn-outline:hover{
  background:#f8fafc !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
}
#dkz-recap-wrap .dkz-btn-outline:active{ transform: translateY(1px); }

/* Primary (Continuer) */
#dkz-recap-wrap .dkz-btn-primary,
#dkz-recap-wrap #dkz_recap_continue{
  background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
}
#dkz-recap-wrap .dkz-btn-primary:hover,
#dkz-recap-wrap #dkz_recap_continue:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,.35);
}
#dkz-recap-wrap .dkz-btn-primary:active,
#dkz-recap-wrap #dkz_recap_continue:active{ transform: translateY(1px); }

/* Responsive */
@media (max-width: 720px){
  #dkz-recap-wrap .dkz-recap-total-value{ font-size: 26px; }
  #dkz-recap-wrap .dkz-recap-actions{
    flex-direction: column-reverse;
  }
  #dkz-recap-wrap .dkz-btn{
    width: 100%;
    min-width: 0;
  }
}

/* Animation */
@keyframes dkzFadeUp{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Pulse premium sur bouton continuer (facultatif) */
#dkz-recap-wrap .dkz-pulse{
  animation: dkzPulse .9s ease 1;
}
@keyframes dkzPulse{
  0%{ box-shadow: 0 10px 24px rgba(37,99,235,.25); }
  50%{ box-shadow: 0 18px 44px rgba(37,99,235,.40); }
  100%{ box-shadow: 0 10px 24px rgba(37,99,235,.25); }
}

/* ==========================================================
   TARIF — PREMIUM (même vibe que Antécédents)
   Scope : #dkz-tarif-wrap
   ========================================================== */

#dkz-tarif-wrap .tarif-header{
  margin-bottom: 16px;
}

#dkz-tarif-wrap .tarif-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  letter-spacing:.2px;
  opacity:.9;
  margin-bottom:6px;
}

#dkz-tarif-wrap .tarif-counter{
  margin-top:10px;
  font-weight:700;
  opacity:.9;
}

/* Progress bar */
#dkz-tarif-wrap .tarif-progress-wrap{
  margin-top:10px;
}

#dkz-tarif-wrap .tarif-progress-track{
  width:100%;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background: rgba(0,0,0,.08);
}

#dkz-tarif-wrap .tarif-progress-bar{
  height:100%;
  width:0%;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  transition: width .28s ease;
}

/* Animation entrée (utilisée aussi par antécedents / recap) */
.dkz-step-enter{
  opacity: 0;
  transform: translateY(8px);
}
.dkz-step-enter.dkz-step-enter-active{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

/* Pulse premium (boutons) */
.dkz-pulse{
  animation: dkzPulse 1.05s ease-in-out infinite;
}
@keyframes dkzPulse{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Petit polish sur le bouton continuer du tarif */
#dkz-tarif-wrap #dkz_continue_btn{
  width:100%;
  margin-top: 10px;
}

/* ==========================================================
   DKZ — THEME (aligné Antécédents)
   ========================================================== */
:root{
  --dkz-blue-1:#0b3dbd;
  --dkz-blue-2:#1f5eff;
  --dkz-blue-3:#2f6dff;
  --dkz-ink:#0f172a;
  --dkz-muted:#64748b;
  --dkz-border:#dbe7ff;
  --dkz-soft:#f3f7ff;
  --dkz-shadow:0 18px 45px rgba(2, 8, 23, .12);
}

/* ==========================================================
   A) TARIF — Header + progress + couleurs (match Antécédents)
   ========================================================== */
.dkz-step-tarif .tarif-hero{
  background: linear-gradient(180deg, var(--dkz-blue-2) 0%, var(--dkz-blue-1) 100%);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--dkz-shadow);
  margin: 0 0 14px;
  color:#fff;
}

.dkz-step-tarif .tarif-hero-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dkz-step-tarif .tarif-hero-kicker{
  display:inline-flex;
  align-self:flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  font-weight:700;
  letter-spacing:.2px;
}

.dkz-step-tarif .tarif-hero-title{
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.dkz-step-tarif .tarif-progress{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.dkz-step-tarif .tarif-progress-track{
  flex:1;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.22);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.18);
}

.dkz-step-tarif .tarif-progress-bar{
  height:100%;
  width: 11%;
  border-radius:999px;
  background: rgba(255,255,255,.95);
  transition: width .25s ease;
}

.dkz-step-tarif .tarif-counter{
  font-weight:800;
  white-space:nowrap;
}

/* Inputs & labels plus premium */
.dkz-step-tarif .dkz-form-card{
  box-shadow: var(--dkz-shadow);
  border-radius: 18px;
}

.dkz-step-tarif .form-group label{
  color: var(--dkz-ink);
  font-weight: 750;
}

/* ✅ Remplace l’orange “validé” par bleu */
.dkz-step-tarif .form-group{
  position: relative;
}
.dkz-step-tarif .form-group .validated{
  position:absolute;
  right: 0px;
  top: 27px;
  width: 35px;
  height: 45px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--dkz-blue-3) 0%, var(--dkz-blue-1) 100%);
  color:#fff;
  display:none;            /* ton JS met display:flex */
  align-items:center;
  justify-content:center;
  font-weight:900;
  box-shadow: 0 10px 22px rgba(31,94,255,.22);
}

/* Bouton continuer tarif (match Antécédents) */
.dkz-step-tarif #dkz_continue_btn.dkz-btn,
.dkz-step-tarif #dkz_continue_btn{
  background: linear-gradient(180deg, var(--dkz-blue-3) 0%, var(--dkz-blue-1) 100%) !important;
  border: 0 !important;
  color:#fff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  box-shadow: 0 14px 30px rgba(31,94,255,.22);
}

.dkz-step-tarif #dkz_continue_btn:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* ==========================================================
   B) RÉCAP — FIX “image 3 -> image 4”
   (header ne doit PAS être délavé)
   ========================================================== */
.dkz-step-recap .dkz-recap-header{
  opacity: 1 !important;
  filter: none !important;
  background: linear-gradient(180deg, var(--dkz-blue-2) 0%, var(--dkz-blue-1) 100%) !important;
  color:#fff !important;
  border-radius: 18px !important;
}

.dkz-step-recap .dkz-recap-kicker{
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color:#fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.dkz-step-recap .dkz-recap-title,
.dkz-step-recap .dkz-recap-sub,
.dkz-step-recap .dkz-recap-period{
  color:#fff !important;
}

/* Bouton CONTINUER récap (garde ton style image 4) */
.dkz-step-recap #dkz_recap_continue{
  background: linear-gradient(180deg, var(--dkz-blue-3) 0%, var(--dkz-blue-1) 100%) !important;
  border: 0 !important;
  color:#fff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 30px rgba(31,94,255,.22);
}

/* Bouton RETOUR (outline comme image 4 / antécédents) */
.dkz-step-recap #dkz_recap_back{
  background:#fff !important;
  border: 2px solid #0f172a !important;
  color:#0f172a !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}
/* ==========================================================
   HOTFIX — TARIF (match Antécédents Premium V3) + RÉCAP (image3->image4)
   À coller tout en bas de public.css
   ========================================================== */

/* ---------- TARIF : wrapper réel ---------- */
#dkz-tarif-wrap.dkz-step-tarif{
  background: transparent;
}

/* Header premium */
#dkz-tarif-wrap .tarif-hero{
  background:
    radial-gradient(900px 260px at 12% -20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 18px;
  padding: 18px 16px 14px;
  color:#fff;
  border: 1px solid rgba(191,219,254,.65);
  box-shadow: 0 18px 60px rgba(15,23,42,.14);
  margin: 0 0 14px;
}

#dkz-tarif-wrap .tarif-hero-kicker{
  display:inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
}

#dkz-tarif-wrap .tarif-hero-title{
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#dkz-tarif-wrap .tarif-progress{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 12px;
}

#dkz-tarif-wrap #tarif_counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
  color:#fff;
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
}

#dkz-tarif-wrap .tarif-progress-track{
  flex:1;
  height: 10px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.22);
}

#dkz-tarif-wrap .tarif-progress-bar{
  height:100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
  transition: width .25s ease;
}

/* Cartes tarif : même esprit que Antécédents */
#dkz-tarif-wrap .dkz-form-card,
#dkz-tarif-wrap .dkz-recap-card{
  background:
    radial-gradient(1200px 360px at 10% -10%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(900px 300px at 110% 0%, rgba(29,78,216,.06), transparent 55%),
    #fff !important;
  border: 1px solid rgba(191,219,254,.92) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px rgba(15,23,42,.10) !important;
}

/* ✅ Validated : bleu (au lieu d'orange) */
#dkz-tarif-wrap .form-group .validated{
  background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.25) !important;
}

/* Bouton continuer tarif : bleu like Antécédents */
#dkz-tarif-wrap #dkz_continue_btn{
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
}
#dkz-tarif-wrap #dkz_continue_btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,.35);
}
#dkz-tarif-wrap #dkz_continue_btn:active{
  transform: translateY(1px);
}

/* ---------- RÉCAP : FIX "délavé" (image 3 -> image 4) ---------- */
/* Le problème vient quasi toujours d'un opacity/filter hérité : on force. */
#dkz-recap-wrap .dkz-recap-header,
#dkz-recap-wrap .dkz-recap-header *{
  opacity: 1 !important;
  filter: none !important;
}

#dkz-recap-wrap .dkz-recap-header{
  background:
    radial-gradient(1200px 380px at 12% -20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(90deg, #2563eb, #1d4ed8) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(191,219,254,.65) !important;
  box-shadow: 0 18px 60px rgba(15,23,42,.14) !important;
}

#dkz-recap-wrap .dkz-recap-kicker{
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color:#fff !important;
}

#dkz-recap-wrap .dkz-recap-title,
#dkz-recap-wrap .dkz-recap-sub,
#dkz-recap-wrap .dkz-recap-period{
  color:#fff !important;
}