/* ── Send ID page ───────────────────────────────────────────────── */

/* Neutralise les paddings globaux de <main> */
main:has(#content-sendid) {
    padding: 0;
    min-height: unset;
}

/* Desktop : pas de scroll html/body */
@media (min-width: 901px) {
    html, body { height: 100%; overflow: hidden; }
}

#content-sendid {
    height: 100dvh;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
#content-sendid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 100%);
}

/* Carte */
.sendid-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: rgba(255,255,255,.97);
    border-radius: 16px;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.14);
    backdrop-filter: blur(4px);
}

/* Logo */
.sendid-logo-wrap { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.sendid-logo-wrap img {
    display: block; max-width: 340px; max-height: 136px;
    width: auto; height: auto; object-fit: contain;
}

/* Icône */
.sendid-icon-wrap { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.sendid-icon-wrap .icon-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(239,68,68,.1); border: 2px solid rgba(239,68,68,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #ef4444;
}

/* Header */
.sendid-header { text-align: center; margin-bottom: 1.8rem; }
.sendid-header h1 {
    font-size: 1.45rem; font-weight: 700; margin: 0 0 .45rem;
    color: var(--text-color-dark); letter-spacing: -.3px;
}
.sendid-header p { font-size: .83rem; color: #7a7a8a; margin: 0; line-height: 1.6; }

/* Bloc d'actions de contact */
.sendid-actions { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.6rem; }

.sendid-action-btn {
    display: flex; align-items: center; gap: .9rem;
    padding: .9rem 1.1rem; border-radius: 10px;
    border: 1.5px solid #e5e7eb; background: #f9fafb;
    text-decoration: none;
    transition: border-color .2s, background .2s, box-shadow .15s;
    cursor: pointer;
}
.sendid-action-btn:hover {
    border-color: var(--accent-color);
    background: rgba(240,206,84,.06);
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.sendid-action-btn .action-icon {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .95rem;
}
.sendid-action-btn.btn-email .action-icon { background: rgba(99,102,241,.1); color: #6366f1; }
.sendid-action-btn.btn-tel   .action-icon { background: rgba(34,197,94,.1);  color: #22c55e; }
.sendid-action-btn .action-text { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.sendid-action-btn .action-label {
    font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .45px; color: #9ca3af;
}
.sendid-action-btn .action-value {
    font-size: .9rem; font-weight: 600; color: var(--text-color-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sendid-action-btn .action-arrow {
    margin-left: auto; color: #d1d5db;
    font-size: .8rem; transition: transform .2s, color .2s; flex-shrink: 0;
}
.sendid-action-btn:hover .action-arrow { color: var(--accent-color); transform: translateX(3px); }

/* Aucun contact disponible */
.sendid-no-contact {
    text-align: center; padding: .8rem; border-radius: 9px;
    background: #fef9ec; border: 1px solid #fde68a;
    font-size: .82rem; color: #92400e; margin-bottom: 1.6rem;
}

/* Divider */
.sendid-divider {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1.2rem; color: #d1d5db;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .4px;
}
.sendid-divider::before,
.sendid-divider::after { content: ''; flex: 1; height: 1px; background: #e9ecef; }

/* Lien retour */
.sendid-back {
    display: flex; align-items: center; justify-content: center;
    gap: .4rem; font-size: .83rem; font-weight: 500;
    color: #6b7280; text-decoration: none; transition: color .15s;
}
.sendid-back i { font-size: .72rem; transition: transform .2s; }
.sendid-back:hover { color: var(--text-color-dark); }
.sendid-back:hover i { transform: translateX(-3px); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    html, body { height: auto; overflow: auto; }
    main:has(#content-sendid) { padding: 0; min-height: unset; }
    #content-sendid {
        height: auto; min-height: 100dvh; overflow: visible;
        padding: 2.5rem 1.5rem; background-attachment: scroll;
    }
    .sendid-card { max-height: none; max-width: 480px; padding: 2.2rem 2.4rem; }
    .sendid-logo-wrap img { max-width: 260px; max-height: 100px; }
}

@media (max-width: 480px) {
    #content-sendid { padding: 1.5rem 1rem; }
    .sendid-card { max-height: none; max-width: 100%; padding: 1.8rem 1.2rem; border-radius: 12px; }
    .sendid-logo-wrap img { max-width: 180px; max-height: 72px; }
}
