/* ============================================================
   DS Digital Card — Styles page publique
   ============================================================ */

:root {
    --primary:      #1a73e8;
    --primary-dark: #1558b0;
    --accent:       #00c896;
    --bg:           #f0f4ff;
    --card-bg:      #ffffff;
    --text:         #1e2a3a;
    --text-muted:   #6b7a99;
    --border:       #e2e8f0;
    --shadow:       0 20px 60px rgba(26, 115, 232, 0.12);
    --radius:       20px;
    --btn-radius:   50px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e6fff9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text);
}

/* ---- Carte principale ---- */
.card-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.digital-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

/* ---- Header coloré ---- */
.card-header-bg {
    background: linear-gradient(135deg, var(--primary) 0%, #6c3fff 100%);
    height: 110px;
    position: relative;
}

.card-header-bg::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50% 50% 0 0 / 40px 40px 0 0;
}

/* ---- Logo ---- */
.logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.company-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.logo-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #6c3fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* ---- Photo responsable ---- */
.manager-photo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.manager-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 16px rgba(26,115,232,.2);
}

/* ---- Textes identité ---- */
.card-identity {
    text-align: center;
    padding: 1rem 1.5rem .5rem;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.manager-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: .25rem;
}

.manager-position {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

/* ---- Divider ---- */
.card-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 1.5rem;
}

/* ---- Boutons de contact ---- */
.contact-buttons {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-contact:active {
    transform: translateY(0);
}

.btn-contact .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-contact .label {
    flex: 1;
}

.btn-contact .arrow {
    font-size: .75rem;
    opacity: .7;
}

/* Couleurs par réseau */
.btn-phone    { background: linear-gradient(135deg, #1a73e8, #1558b0); color: #fff; }
.btn-email    { background: linear-gradient(135deg, #ea4335, #c62828); color: #fff; }
.btn-website  { background: linear-gradient(135deg, #34a853, #2e7d32); color: #fff; }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.btn-facebook { background: linear-gradient(135deg, #1877F2, #145dbf); color: #fff; }
.btn-instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}
.btn-tiktok   { background: linear-gradient(135deg, #010101, #333); color: #fff; }
.btn-youtube  { background: linear-gradient(135deg, #FF0000, #cc0000); color: #fff; }

/* ---- Séparateur réseaux ---- */
.section-label {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}

/* ---- Footer carte ---- */
.card-footer-area {
    padding: .75rem 1.25rem 1.25rem;
    display: flex;
    gap: .75rem;
}

.btn-save-contact {
    flex: 1;
    padding: .75rem;
    background: linear-gradient(135deg, var(--primary), #6c3fff);
    color: #fff;
    border: none;
    border-radius: var(--btn-radius);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .15s, box-shadow .15s;
}

.btn-save-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,115,232,.35);
    color: #fff;
}

/* ---- Toast Android hint ---- */
.android-hint {
    display: none;
    margin: 0 1.25rem .75rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: .65rem 1rem;
    font-size: .78rem;
    color: #166534;
    text-align: center;
    animation: fadeUp .4s ease;
}

/* ---- Branding ---- */
.card-branding {
    text-align: center;
    padding: .5rem 0 1.25rem;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-branding strong {
    color: var(--primary);
}

.card-branding a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.card-branding a:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    body { padding: 1rem; }
    .digital-card { border-radius: 16px; }
}
