/* ================================
   Fiches détaillées par visa (visa-*.html) — complète style.css
   Pages écrites par deploy/pages_pays.py
================================ */
.vp { -webkit-font-smoothing: antialiased; }
.vp .nav { gap: 20px; }
.vp-lien-ar { font-family: 'Tajawal', 'Inter', sans-serif; font-weight: 700 !important; }
.vp-ic { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Haut de page --- */
.vp-hero {
    padding: 22px 0 56px;
    background:
        radial-gradient(circle at 10% 8%, rgba(59, 130, 246, .11), transparent 52%),
        radial-gradient(circle at 92% 88%, rgba(212, 175, 55, .13), transparent 52%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.vp-fil { font-size: .84rem; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vp-fil a { color: var(--text-secondary); }
.vp-fil a:hover { color: var(--primary); }
.vp-fil b { color: var(--text); font-weight: 600; }
.vp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; align-items: start; margin-top: 26px; }
.vp-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.vp-drapeau { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 10px rgba(15, 23, 42, .18); }
.vp-emoji { font-size: 2.6rem; line-height: 1; }
.vp-badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; background: var(--primary-light); color: #1d4ed8;
}
.vp-badge-rdv { background: #dcfce7; color: #15803d; }
.vp-badge-lettre-garantie { background: #fef3c7; color: #92400e; }
.vp-badge-paiement-frais { background: #ede9fe; color: #6d28d9; }
.vp-hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.14; font-weight: 800;
    letter-spacing: -.02em; margin-bottom: 16px; color: var(--text); text-wrap: balance;
}
.vp-intro { font-size: 1.08rem; color: var(--text-secondary); max-width: 660px; line-height: 1.7; }
.vp-faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.vp-fait { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.vp-fait small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.vp-fait b { display: block; font-size: 1rem; margin-top: 3px; color: var(--text); line-height: 1.3; }

/* --- Carte résumé (à droite) --- */
.vp-carte {
    position: sticky; top: 92px; background: #fff; border: 1px solid var(--border);
    border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 10px;
}
.vp-carte-tete { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.vp-carte-dr { width: 36px; height: 27px; border-radius: 5px; object-fit: cover; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.vp-carte-prix { padding: 8px 0 6px; }
.vp-prix { display: block; font-size: 2.15rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; letter-spacing: -.02em; }
.vp-prix-eur { display: block; color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.vp-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .92rem; color: var(--text-secondary); }
.vp-ligne b { color: var(--text); text-align: right; }
.vp-carte .btn { padding: 14px 18px; }
.vp-carte .btn-primary { margin-top: 6px; }
.btn-wa { background: #16a34a; color: #fff; box-shadow: 0 4px 12px rgba(22, 163, 74, .25); }
.btn-wa:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 163, 74, .32); }
.vp-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: 6px; line-height: 1.5; }
.vp-indispo { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }

/* --- Sections --- */
.vp-section { padding: 64px 0; }
.vp-alt { background: var(--bg-2); }
.vp-section h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; color: var(--text); }
.vp-sous { color: var(--text-secondary); margin-bottom: 26px; max-width: 720px; }
.vp-etroit > * { max-width: 860px; }
.vp-ar-eur { display: block; font-size: .82rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.vp-inclus { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vp-inclus li {
    display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 15px 16px; font-weight: 500;
}
.vp-inclus li::before {
    content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: #dcfce7; color: #15803d; font-weight: 800; font-size: .8rem; margin-top: 1px;
}

/* Documents */
.vp-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.vp-doc-col { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 8px; }
.vp-doc-col h3, .vp-ar h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.vp-doc-note { font-size: .86rem; color: var(--text-muted); margin-bottom: 4px; }
.vp-doc-col ul, .vp-ar-docs { list-style: none; }
.vp-doc { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.vp-doc:last-child { border-bottom: none; }
.vp-doc b { display: block; font-size: .96rem; }
.vp-doc span { display: block; color: var(--text-secondary); font-size: .88rem; line-height: 1.55; margin-top: 2px; }
.vp-doc-ico {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: .85rem;
}
.vp-doc-ico.opt { background: var(--bg-3); color: var(--text-secondary); }

/* Étapes */
.vp-etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vp-etapes li { counter-increment: etape; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px; }
.vp-etapes li::before {
    content: counter(etape); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.vp-etapes b { display: block; margin-bottom: 4px; }
.vp-etapes span { color: var(--text-secondary); font-size: .9rem; line-height: 1.55; }

/* Questions fréquentes */
.vp-faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; transition: border-color .15s; }
.vp-faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.vp-faq summary {
    cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.3rem; font-weight: 500; color: var(--primary); line-height: 1; }
.vp-faq details[open] summary::after { content: "−"; }
.vp-faq p { padding: 0 18px 16px; color: var(--text-secondary); line-height: 1.65; }

/* Tarif du paiement des frais */
.vp-tarif { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.vp-tables { display: grid; gap: 16px; }
.vp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.vp-table caption { text-align: left; font-weight: 700; font-size: .95rem; padding: 0 0 8px; }
.vp-table td { padding: 11px 16px; border-top: 1px solid var(--border); font-size: .94rem; }
.vp-table tr:first-child td { border-top: none; }
.vp-table td:last-child { text-align: right; font-weight: 700; color: var(--primary-dark); }
.vp-calc { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.vp-calc h3 { font-size: 1.05rem; }
.vp-calc label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.vp-calc input, .vp-calc select {
    font: inherit; font-size: 1rem; color: var(--text); padding: 11px 12px; border: 1.5px solid var(--border-strong);
    border-radius: 10px; background: #fff; width: 100%;
}
.vp-calc input:focus, .vp-calc select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.vp-calc-ligne { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.vp-calc-res { display: grid; gap: 0; margin-top: 4px; }
.vp-calc-res div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .93rem; }
.vp-calc-res dt { color: var(--text-secondary); }
.vp-calc-res dd { font-weight: 700; }
.vp-calc-res .tot { font-size: 1.08rem; }
.vp-calc-res .tot dd { color: var(--primary-dark); font-size: 1.2rem; }
.vp-calc-note { font-size: .8rem; color: var(--text-muted); }

/* Résumé en arabe */
.vp-ar { font-family: 'Tajawal', 'Inter', sans-serif; }
.vp-ar h2 { letter-spacing: 0; }
.vp-ar h3 { margin-top: 22px; }
.vp-ar p { line-height: 1.8; }
.vp-faits-ar { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin: 0 0 6px; }
.vp-ar .vp-fait small { letter-spacing: 0; font-size: .8rem; }
.vp-ar-docs { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; margin-top: 8px; }
.vp-ar-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vp-ar .vp-note { text-align: start; margin-top: 16px; }

/* Autres services */
.vp-autres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vp-autre {
    display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 13px 15px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vp-autre:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.vp-autre-dr { width: 36px; height: 27px; border-radius: 5px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.vp-autre b { display: block; font-size: .95rem; }
.vp-autre small { display: block; color: var(--text-muted); font-size: .8rem; }

/* Contact */
.vp-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.vp-contact .vp-ar-cta { margin-top: 0; }
.vp-contact .contact-address { margin-top: 0; }

/* Barre fixe en bas (téléphone) */
.vp-barre { display: none; }
.vp-barre[hidden] { display: none !important; }

.vp ~ .footer, .vp .footer { margin-top: 0; }

@media (max-width: 980px) {
    .vp-grid { grid-template-columns: 1fr; gap: 26px; }
    .vp-carte { position: static; max-width: 520px; }
    .vp-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vp-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vp-tarif { grid-template-columns: 1fr; }
    .vp-contact { grid-template-columns: 1fr; }
    .vp-barre {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
        border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
        transform: translateY(110%); transition: transform .25s;
    }
    .vp-barre.visible { transform: none; }
    .vp-barre small { display: block; font-size: .75rem; color: var(--text-muted); }
    .vp-barre b { display: block; font-size: 1.05rem; color: var(--primary-dark); }
    .vp-barre .btn { padding: 12px 18px; font-size: .95rem; white-space: nowrap; }
    .vp .footer { padding-bottom: 90px; }
}
@media (max-width: 640px) {
    .vp .header-inner { padding: 12px 16px; gap: 8px 14px; }
    .vp .logo { font-size: 1.2rem; }
    .vp .nav { gap: 6px 14px; font-size: .9rem; }
    .vp .container { padding: 0 16px; }
    .vp-hero { padding: 16px 0 38px; }
    .vp-grid { margin-top: 18px; }
    .vp-drapeau { width: 52px; height: 39px; }
    .vp-intro { font-size: 1rem; }
    .vp-section { padding: 44px 0; }
    .vp-inclus, .vp-docs, .vp-etapes { grid-template-columns: 1fr; }
    .vp-faits { gap: 8px; }
    .vp-fait { padding: 11px 12px; }
    .vp-fait b { font-size: .92rem; }
    .vp-doc-col { padding: 18px 16px 4px; }
    .vp-ar-cta .btn { flex: 1 1 100%; }
    .vp-calc-ligne { grid-template-columns: 1fr 100px; }
}
