/* ----- vkard.css : Design personnalisé ----- */

/* Fonts */
body, button, input, select, textarea {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
}

body {
    background: linear-gradient(135deg, #f5f8fa 0%, #c3dafe 100%);
    color: #222;
    min-height: 100vh;
}

/* Navbar & Footer */
.navbar, .footer {
    background: #1b213a !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: #fff !important;
}

.footer {
    color: #ccc;
    padding: 1.2rem 0;
    font-size: 1rem;
}

/* Cards */
.card {
    border-radius: 2rem !important;
    box-shadow: 0 4px 16px rgba(24, 50, 97, 0.10);
    border: none;
    background: #fff;
    color: #222;
}
.card-header {
    border-radius: 2rem 2rem 0 0 !important;
    background: #f5f8fa;
    border-bottom: 1px solid #e6e9f0;
}

.card.bg-dark,
.table-dark {
    background: #fff !important;
    color: #222 !important;
}

/* Buttons */
.btn, .form-control {
    border-radius: 2rem !important;
}

.btn-primary, .btn-outline-primary {
    background: linear-gradient(90deg, #2f5fff 0%, #8769ff 100%) !important;
    border: none !important;
    color: #fff !important;
}
.btn-outline-primary {
    background: #fff !important;
    color: #2f5fff !important;
    border: 2px solid #2f5fff !important;
}
.btn-outline-primary:hover, .btn-primary:hover {
    background: linear-gradient(90deg, #8769ff 0%, #2f5fff 100%) !important;
    color: #fff !important;
}
.btn-danger {
    background: #fa5252 !important;
    border: none !important;
}

.btn-action.btn-danger {
    background: #e05d5d !important;       /* Rouge visible immédiatement */
    color: #fff !important;               /* Icône blanche */
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-action.btn-danger:hover {
    background: #c43c3c !important;       /* Légèrement plus foncé au hover */
    transform: scale(1.05);
}

.btn-action.btn-danger i {
    color: #fff !important;               /* Toujours blanc */
}


/* Inputs */
.form-control, .input-group-text {
    border-radius: 2rem !important;
    background: #f5f8fa !important;
    border: 1px solid #e1e4ed !important;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #1b213a;
}

/* Social icons (in list or fiche) */
.social-icon {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    margin-right: 0.3rem;
    font-size: 1.4rem;
}

.table th, .table td {
    vertical-align: middle !important;
}

/* Custom shadows for cards and elements */
.shadow {
    box-shadow: 0 4px 24px rgba(44,62,80,0.08) !important;
}

.alert {
    border-radius: 1.5rem !important;
    margin-top: 1.2rem;
}

input[type="file"].form-control {
    background: #f8fafc !important;
    color: #444;
}

/* Section intl-tel-input  */
.intl-tel-input {
    width: auto !important;
    min-width: 280px;
    max-width: 320px;
}

.intl-tel-input input {
    border-radius: 2rem !important;
    background: #f5f8fa !important;
    border: 1px solid #e1e4ed !important;
    padding-left: 56px !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-right: 1rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    width: 100% !important;
    outline: none !important;
    color: #212529 !important;
}

.intl-tel-input .selected-flag {
    height: 100% !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.intl-container {
    width: auto;
    min-width: 280px;
    max-width: 320px;
}

/* Solution 1: Couleurs très contrastées pour tous les navigateurs */
/* Correction couleur pour la liste des pays du champ téléphone */
.iti__country-list,
.iti__country,
.iti__dial-code,
.iti__country-name {
    color: #222 !important;       /* Couleur texte foncée */
    background: #fff !important;  /* Fond blanc */
}

.iti__country.iti__highlight,
.iti__country.iti__highlight .iti__country-name {
    background: #e3e7fa !important;
    color: #2f5fff !important;    /* Texte bleu vif quand sélectionné */
}

/* LISTE DES CONTACTS STYLÉE */
.table.vkard-table {
    background: #fff !important;
    color: #222 !important;
    border-radius: 2rem !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
    margin-bottom: 0;
}
.table.vkard-table thead th {
    background: #eaf3ff !important;
    color: #222;
    font-weight: 700;
    border: none;
    font-size: 1.1rem;
    padding: 1.1rem 0.6rem;
}
.table.vkard-table tbody tr {
    border-bottom: 1px solid #f3f6fa !important;
    transition: background 0.14s;
}
.table.vkard-table tbody tr:hover {
    background: #f7fafe;
}
.table.vkard-table td, .table.vkard-table th {
    padding: 0.75rem 0.7rem;
    vertical-align: middle !important;
    font-size: 1.07rem;
}
.table.vkard-table td strong {
    font-weight: 600;
}
.table.vkard-table .action-btns .btn {
    margin-right: 0.2rem;
}
.table.vkard-table .btn {
    border-radius: 1.5rem !important;
    font-size: 1.07rem;
}
.table.vkard-table .btn-info {
    background: #20c6f9 !important;
    border: none !important;
    color: #fff !important;
}
.table.vkard-table .btn-warning {
    background: #ffe066 !important;
    color: #997a00 !important;
    border: none !important;
}
.table.vkard-table .btn-danger {
    background: #fa5252 !important;
    border: none !important;
}

.vkard-contact-card {
    border-radius: 1.5rem;
    background: #fff;
    border: 1.5px solid #e6e9f0;
    transition: box-shadow 0.12s;
    min-height: 230px;
    padding: .5rem;
}
.vkard-contact-card:hover {
    box-shadow: 0 2px 16px rgba(60,90,180,0.09);
    border-color: #90a6ff;
}
.vkard-contact-card img.rounded-circle {
    border: 2px solid #e6e9f0;
    background: #f5f8fa;
}
.vkard-contact-card .btn {
    min-width: 38px;
}



::-webkit-input-placeholder { color: #a2acc0; }
::-moz-placeholder { color: #a2acc0; }
:-ms-input-placeholder { color: #a2acc0; }
::placeholder { color: #a2acc0; }
