/* =========================================================
   DAMAG Immo — vCard
   sobre · professionnel · mobile first
   ========================================================= */

/* ---------- Variables ---------- */

:root {
    --bg:#eef2f6;
    --card:#ffffff;

    --text-main:#0f172a;
    --text-secondary:#475569;
    --text-muted:#64748b;

    --accent:#1e293b;
    --accent-hover:#0b1220;

    --accent-immo:#7A4E34;
    --accent-immo-soft:#e6d2c6;

    --line:#e2e8f0;

    --shadow-lg:0 18px 45px rgba(15,23,42,0.10);
    --shadow-sm:0 6px 20px rgba(15,23,42,0.08);

    --radius-xl:22px;
    --radius-lg:16px;
}

/* ---------- Reset ---------- */

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

html{
    -webkit-text-size-adjust:100%;
}

body{
    margin:0;
    min-height:100vh;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:
        radial-gradient(circle at top left,#f8fafc 0%,#eef2f6 38%,#e8edf3 100%);
    color:var(--text-main);
    display:flex;
    justify-content:center;
    padding:28px;
}

/* ---------- Container ---------- */

.box{
    width:100%;
    max-width:760px;
    background:var(--card);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-lg);
    padding:32px;
}

/* ---------- Hero ---------- */

.hero{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:28px;
    align-items:start;
    margin-bottom:28px;
}

/* ---------- Avatar ---------- */

.avatar{
    width:120px;
    height:120px;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.avatar img{
    width:100%;
    height:100%;
    object-position:center 20%;
    object-fit:cover;
    display:block;
}

/* ---------- Identity ---------- */

.identity{
    min-width:0;
    padding-top:16px;
}

.identity-top{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 140px;
    gap:20px;
    align-items:start;
    margin-bottom:12px;
}

.identity-text{
    flex:1;
    min-width:0;
}

.identity h1{
    margin:0;
    font-size:3rem;
    line-height:0.96;
    font-weight:750;
    letter-spacing:-0.045em;
}

.identity h1 a{
    color:inherit;
    text-decoration:none;
}

.identity h1 a:hover{
    color:var(--accent-hover);
}

.role{
    margin:0 0 10px;
    font-size:1.05rem;
    font-weight:700;
    color:var(--accent-immo);
}

.tagline{
    margin:0;
    max-width:520px;
    color:var(--text-secondary);
    line-height:1.65;
    font-size:1.02rem;
}

/* ---------- Brand logo ---------- */

.header-logo{
    width:150px;
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
}

.header-logo img{
    width:130px;
    height:auto;
    display:block;
}

/* ---------- Actions ---------- */

.actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:28px 0;
}

.cta{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    background:var(--accent);
    color:#fff;
    border-radius:12px;
    font-weight:700;
    text-decoration:none;
    transition:0.2s ease;
}

.cta:hover{
    background:var(--accent-hover);
    transform:translateY(-1px);
}

.cta-secondary{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    border-radius:12px;
    border:1px solid var(--accent-immo-soft);
    background:#fdf9f7;
    color:var(--accent);
    font-weight:700;
    text-decoration:none;
    transition:0.2s ease;
}

.cta-secondary:hover{
    background:#faf2ee;
    border-color:var(--accent-immo);
    color:var(--accent-immo);
}

/* ---------- Contact strip ---------- */

.contact-strip{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:10px;
}

.contact-item{
    border:1px solid var(--line);
    border-radius:14px;
    padding:16px;
    background:#fafbfd;
    text-align:center;
}

.contact-label{
    display:block;
    font-size:0.7rem;
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--accent-immo);
    margin-bottom:6px;
}

.contact-value{
    font-weight:700;
    font-size:1.02rem;
}

.contact-value a{
    text-decoration:none;
    color:inherit;
}

.contact-value a:hover{
    color:var(--accent-immo);
}

/* ---------- Sections ---------- */

.section{
    margin-top:28px;
    padding-top:24px;
    border-top:1px solid var(--line);
}

.contact-label{
    display:block;
    font-size:0.7rem;
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--accent-immo);
    margin-bottom:6px;
}

p{
    line-height:1.65;
    color:var(--text-secondary);
    margin:0;
}

/* ---------- Footer ---------- */

footer{
    margin-top:34px;
    padding-top:20px;
    border-top:1px solid var(--line);
    text-align:center;
    font-size:0.85rem;
    color:var(--text-muted);
}

footer a{
    color:inherit;
}

footer a:hover{
    color:var(--accent-immo);
}

/* ---------- Responsive ---------- */

@media (max-width:760px){

    body{
        padding:16px;
    }

    .box{
        padding:22px;
    }

    .hero{
        grid-template-columns:1fr;
        gap:18px;
    }

    .avatar{
        width:92px;
        height:92px;
        border-radius:14px;
    }

    .identity-top{
        grid-template-columns:1fr;
        gap:12px;
        margin-bottom:10px;
    }

    .header-logo{
        order:-1;
    }

    .header-logo img{
        height:46px;
        width:auto;
    }

    .identity h1{
        font-size:2.2rem;
    }

    .tagline{
        max-width:none;
    }

    .actions,
    .contact-strip{
        grid-template-columns:1fr;
    }
}

/* ---------- Header centré ---------- */

.top-header.centered{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:32px;
}

.top-header.centered img{
    height:150px;
    width:auto;
    display:block;
}

.list li span{
    display:block;
    margin-top:6px;
}