/* =====================================================================
   Blitz Leihen — "Tresor" : design propre à la page sécurisée (suivi.html)
   Tout est limité à body.vault : aucune autre page n'est touchée.
   ===================================================================== */
body.vault {
  --v-ink: #061A36;
  --v-navy: #0B2D59;
  --v-navy-2: #123F78;
  --v-gold: #C8A84B;
  --v-gold-2: #E8C96A;
  --v-blue: #1E6FD9;
  --v-green: #22C27A;
  --v-line: rgba(200, 168, 75, .35);
  background: #EEF3FA;
}

.vault .v-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vault .v-mono { font-family: var(--font-mono); letter-spacing: .06em; }

/* ------------------------------------------------------------------ HÉROS */
.vault-hero.hero-mini { min-height: 440px; background: var(--v-ink); align-items: flex-end; isolation: isolate; }
.vault-hero.hero-mini--photo::before { filter: saturate(.9) contrast(1.05); }
.vault-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(30, 111, 217, .35), transparent 60%),
    linear-gradient(100deg, rgba(6, 26, 54, .94) 0%, rgba(6, 26, 54, .80) 48%, rgba(6, 26, 54, .45) 100%),
    linear-gradient(0deg, rgba(6, 26, 54, .95) 0%, transparent 45%);
}
.vault-hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}
.vault-hero .hero-mini__content { padding-block: var(--space-12) 96px; }
.vault-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; }
.vault-hero .hero-mini__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; margin-bottom: var(--space-4); letter-spacing: -.01em; }
.vault-hero .hero-mini__title em { font-style: normal; color: var(--v-gold-2); }
.vault-hero .hero-mini__subtitle { max-width: 600px; color: rgba(255, 255, 255, .82); }

.v-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-4);
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(34, 194, 122, .12); border: 1px solid rgba(34, 194, 122, .45);
  color: #B8F5D8; font-size: .72rem; text-transform: uppercase;
}
.v-kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--v-green); box-shadow: 0 0 0 0 rgba(34, 194, 122, .7); animation: vPulse 2.2s infinite; }
@keyframes vPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 194, 122, 0); } }

.v-seal { position: relative; width: 168px; height: 168px; display: grid; place-items: center; color: var(--v-gold-2); }
.v-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: vSpin 40s linear infinite; }
.v-seal__ring text { font-family: var(--font-mono); font-size: 9.6px; letter-spacing: .26em; fill: rgba(232, 201, 106, .85); text-transform: uppercase; }
.v-seal__core {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #1c4f93, var(--v-navy) 70%);
  border: 1.5px solid var(--v-line); box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(255, 255, 255, .04);
  font-size: 2.3rem;
}
@keyframes vSpin { to { transform: rotate(360deg); } }

/* Bandeau des garanties (chevauche le bas du héros) */
.v-strip { position: relative; z-index: 5; margin-top: -56px; }
.v-strip__list {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-xl); box-shadow: 0 24px 60px rgba(6, 26, 54, .22);
  border: 1px solid rgba(11, 45, 89, .08); overflow: hidden;
}
.v-strip__item { display: flex; gap: 14px; align-items: center; padding: 20px 22px; position: relative; }
.v-strip__item + .v-strip__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--color-border); }
.v-strip__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: linear-gradient(145deg, var(--v-navy), var(--v-navy-2)); color: var(--v-gold-2); flex: none; }
.v-strip__t { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--v-navy); font-size: .95rem; line-height: 1.2; }
.v-strip__s { display: block; font-size: .78rem; color: var(--color-text-light); line-height: 1.35; margin-top: 2px; }

/* ------------------------------------------------------------ MISE EN PAGE */
.vault-main { padding: var(--space-12) 0 var(--space-10); }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); align-items: start; }
.vault-col { min-width: 0; }
.vault-aside { position: sticky; top: calc(var(--nav-height, 80px) + 16px); display: grid; gap: var(--space-5); }

/* Cartes du flux principal */
.vault .vault-col .bl-card {
  position: relative; border: 1px solid rgba(11, 45, 89, .09); border-radius: var(--radius-xl);
  box-shadow: 0 10px 34px rgba(11, 45, 89, .08); padding: var(--space-8); overflow: hidden;
}
.vault .vault-col .bl-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--v-navy), var(--v-blue) 55%, var(--v-gold)); }
.vault .vault-col .bl-card h2 { font-family: var(--font-heading); color: var(--v-navy); }
.vault .vault-col .bl-card h3 { font-family: var(--font-heading); color: var(--v-navy); display: flex; align-items: center; gap: 10px; }
#sDocs > h3::before {
  content: ""; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, var(--v-navy), var(--v-navy-2)) center/18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8C96A' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"), linear-gradient(145deg, #0B2D59, #123F78);
  background-size: 18px, cover; background-repeat: no-repeat; background-position: center;
}
#sRef { font-family: var(--font-mono); letter-spacing: .06em; color: var(--v-navy); background: #EEF3FA; padding: 2px 8px; border-radius: 6px; }
.vault #sLoading { text-align: center; padding: var(--space-10); background: #fff; border-radius: var(--radius-xl); box-shadow: 0 10px 34px rgba(11, 45, 89, .08); }

/* Zone de dépôt : "porte de coffre" */
.vault .bl-upload {
  position: relative; border: 0; border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6);
  background:
    radial-gradient(600px 220px at 50% -20%, rgba(30, 111, 217, .35), transparent 70%),
    linear-gradient(160deg, var(--v-ink), var(--v-navy) 70%);
  color: #fff; transition: box-shadow .25s, transform .25s;
}
.vault .bl-upload::before {
  content: ""; position: absolute; inset: 10px; border-radius: 16px; pointer-events: none;
  border: 1.5px dashed rgba(232, 201, 106, .55); transition: border-color .2s, background .2s;
}
.vault .bl-upload.is-drag { box-shadow: 0 0 0 4px rgba(232, 201, 106, .35), 0 20px 50px rgba(6, 26, 54, .35); }
.vault .bl-upload.is-drag::before { border-color: var(--v-gold-2); background: rgba(232, 201, 106, .08); }
.v-drop__head { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: var(--space-5); position: relative; }
.v-drop__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--v-ink); background: linear-gradient(145deg, var(--v-gold-2), var(--v-gold)); box-shadow: 0 8px 22px rgba(200, 168, 75, .4); flex: none; }
.v-drop__t { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.v-drop__s { display: block; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.vault .bl-upload .form-label, .vault .bl-upload #docFileLabel { color: rgba(255, 255, 255, .9); }
.vault .bl-upload .form-control { background: rgba(255, 255, 255, .96); border-color: transparent; }
.vault .bl-upload .bl-hint { color: rgba(255, 255, 255, .72); }
.vault .bl-upload .bl-hint strong { color: var(--v-gold-2); }
.vault .bl-upload .bl-filebtn { background: transparent; border: 2px solid var(--v-gold-2); color: var(--v-gold-2); }
.vault .bl-upload .bl-filebtn:hover { background: var(--v-gold-2); color: var(--v-ink); }
.vault .bl-upload #docBtn { background: linear-gradient(145deg, var(--v-gold-2), var(--v-gold)); color: var(--v-ink); border: 0; font-weight: 700; margin-top: var(--space-2); }
.vault .bl-upload #docBtn:hover { filter: brightness(1.06); }
.vault .bl-upload .bl-msg { text-align: left; }
.v-drop__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-5); padding: 0; list-style: none; position: relative; }
.v-drop__tags li { font-size: .7rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85); }

.vault .bl-checklist .bl-check { border-radius: 14px; border-color: rgba(11, 45, 89, .1); box-shadow: 0 2px 8px rgba(11, 45, 89, .04); }
.vault .bl-sendbox { border-radius: 16px; border: 1px solid var(--v-line); background: linear-gradient(180deg, #FFFBEF, #FFF5D6); }
.vault .bl-action { border-radius: 14px; }

/* ------------------------------------------------------- CENTRE DE SÉCURITÉ */
.v-panel { border-radius: var(--radius-xl); overflow: hidden; background: #fff; border: 1px solid rgba(11, 45, 89, .09); box-shadow: 0 10px 34px rgba(11, 45, 89, .08); }
.v-panel--dark { background: linear-gradient(165deg, var(--v-ink), var(--v-navy)); color: #fff; border: 0; position: relative; }
.v-panel--dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 14px 14px; }
.v-panel__head { padding: var(--space-5) var(--space-5) 0; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.v-panel__head h2 { font-size: 1rem; margin: 0; color: inherit; font-family: var(--font-heading); }
.v-panel__head .v-ico { font-size: 1.3rem; color: var(--v-gold-2); }
.v-panel__body { padding: var(--space-4) var(--space-5) var(--space-5); position: relative; z-index: 1; }
.v-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.v-status li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.v-status li:last-child { border-bottom: 0; }
.v-status span:first-child { color: rgba(255, 255, 255, .72); flex: 0 0 auto; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.v-ok { color: #7CF0B8; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; display: inline-flex; align-items: flex-start; gap: 6px; white-space: normal; min-width: 0; margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.v-ok::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: currentColor; }
.v-ok.is-warn { color: #FFD27A; }
.v-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v-checks li { display: flex; gap: 10px; font-size: .86rem; line-height: 1.45; color: var(--color-text); }
.v-checks .v-ico { margin-top: 2px; color: var(--v-green); font-size: 1.05rem; }
.v-help { text-align: center; }
.v-help p { font-size: .84rem; color: var(--color-text-light); margin: 0 0 var(--space-3); }
.v-help a.btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------ SECTION D'INFORMATION */
.vault-info { padding: var(--space-8) 0 var(--space-16); position: relative; }
.vault-info__head { max-width: 720px; margin: 0 auto var(--space-10); text-align: center; }
.v-eyebrow { display: inline-block; font-size: .72rem; text-transform: uppercase; color: var(--v-gold); font-weight: 700; margin-bottom: 10px; }
.vault-info__head h2 { font-family: var(--font-heading); color: var(--v-navy); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 var(--space-3); }
.vault-info__head p { color: var(--color-text-light); margin: 0; }

.v-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.v-card {
  position: relative; background: #fff; border-radius: var(--radius-xl); padding: var(--space-6);
  border: 1px solid rgba(11, 45, 89, .08); box-shadow: 0 6px 22px rgba(11, 45, 89, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.v-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 45, 89, .14); }
.v-card__n { position: absolute; right: 20px; top: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--color-text-muted); letter-spacing: .1em; }
.v-card__ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: var(--space-4); color: var(--v-gold-2); background: linear-gradient(145deg, var(--v-navy), var(--v-navy-2)); box-shadow: 0 8px 18px rgba(11, 45, 89, .25); }
.v-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--v-navy); margin: 0 0 var(--space-2); }
.v-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--color-text-light); }

/* Parcours d'un fichier */
.v-flow { margin-top: var(--space-12); border-radius: 28px; padding: var(--space-10) var(--space-8); color: #fff; position: relative; overflow: hidden; background: radial-gradient(700px 300px at 90% 0%, rgba(30, 111, 217, .4), transparent 60%), linear-gradient(160deg, var(--v-ink), var(--v-navy)); }
.v-flow h2 { font-family: var(--font-heading); color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.v-flow > p { margin: 0 0 var(--space-8); color: rgba(255, 255, 255, .75); max-width: 640px; }
.v-flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: vf; position: relative; }
.v-flow__steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--v-gold) 0 8px, transparent 8px 16px); opacity: .55; }
.v-flow__steps li { position: relative; counter-increment: vf; }
.v-flow__steps li::before { content: counter(vf); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: var(--v-ink); background: linear-gradient(145deg, var(--v-gold-2), var(--v-gold)); box-shadow: 0 0 0 6px rgba(200, 168, 75, .18); margin-bottom: var(--space-4); position: relative; z-index: 1; }
.v-flow__steps strong { display: block; font-family: var(--font-heading); margin-bottom: 4px; }
.v-flow__steps span { font-size: .86rem; color: rgba(255, 255, 255, .75); line-height: 1.5; display: block; }

/* Conseils + FAQ */
.v-two { margin-top: var(--space-12); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.v-box { background: #fff; border-radius: var(--radius-xl); padding: var(--space-8); border: 1px solid rgba(11, 45, 89, .08); box-shadow: 0 6px 22px rgba(11, 45, 89, .06); }
.v-box h2 { font-family: var(--font-heading); color: var(--v-navy); font-size: 1.35rem; margin: 0 0 var(--space-4); }
.v-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.v-tips li { display: flex; gap: 12px; line-height: 1.55; font-size: .93rem; }
.v-tips li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--v-green); margin-top: 1px; }
.v-faq details { border-bottom: 1px solid var(--color-border); padding: 4px 0; }
.v-faq details:last-child { border-bottom: 0; }
.v-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; color: var(--v-navy); }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--v-gold); transition: transform .2s; flex: none; }
.v-faq details[open] summary::after { transform: rotate(45deg); }
.v-faq details p { margin: 0 0 12px; font-size: .92rem; line-height: 1.6; color: var(--color-text-light); }
.v-faq summary:focus-visible { outline: 3px solid var(--color-lightning); outline-offset: 2px; border-radius: 6px; }

.v-legal { margin-top: var(--space-8); text-align: center; font-size: .82rem; color: var(--color-text-light); }
.v-legal a { color: var(--v-navy); text-decoration: underline; text-underline-offset: 3px; }

/* Apparition douce (activée par js/vault.js ; sans JS tout reste visible) */
.vault.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.vault.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1020px) {
  .vault-grid { grid-template-columns: 1fr; }
  .vault-aside { position: static; grid-template-columns: 1fr 1fr; }
  .v-strip__list { grid-template-columns: 1fr 1fr; }
  .v-strip__item:nth-child(3)::before { display: none; }
  .v-strip__item:nth-child(n+3) { border-top: 1px solid var(--color-border); }
  .v-cards { grid-template-columns: 1fr 1fr; }
  .v-flow__steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-8); }
  .v-flow__steps::before { display: none; }
  .v-two { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .vault-hero.hero-mini { min-height: 0; }
  .vault-hero .hero-mini__content { padding-block: var(--space-8) 84px; }
  .vault-hero__inner { grid-template-columns: 1fr; }
  .v-seal { display: none; }
  .v-strip { margin-top: -48px; }
  .v-strip__list { grid-template-columns: 1fr; }
  .v-strip__item + .v-strip__item::before { display: none; }
  .v-strip__item:nth-child(n+2) { border-top: 1px solid var(--color-border); }
  .v-strip__item { padding: 14px 18px; }
  .vault-aside { grid-template-columns: 1fr; }
  .v-cards { grid-template-columns: 1fr; }
  .v-flow { padding: var(--space-8) var(--space-5); }
  .v-flow__steps { grid-template-columns: 1fr; }
  .v-box { padding: var(--space-6); }
  .vault .vault-col .bl-card { padding: var(--space-5); }
  .vault .bl-upload { padding: var(--space-6) var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .v-seal__ring, .v-kicker__dot, .vault-hero.hero-mini--photo::before { animation: none; }
  .vault.js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .v-card, .vault .bl-upload { transition: none; }
}

/* Bouton du bloc d'aide */
.v-help a.btn { display: inline-flex; align-items: center; border: 2px solid var(--v-navy); color: var(--v-navy); background: #fff; padding: 11px 18px; border-radius: var(--radius-md); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.v-help a.btn:hover, .v-help a.btn:focus-visible { background: var(--v-navy); color: #fff; }
