/* ================= VARIABLES ================= */
:root {
    --gold-main: #C9A961;
    --gold-light: #E5C45A;
    --bg-dark: #1E1A15;
    --bg-card: #2A241D;
    --text-white: #F5F5F5;
    --text-gray: #B0B0B0;
}

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

body {
    background: #111;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* ================= CONTAINER ================= */
.vcard-container {
    width: 100%;
    max-width: 480px;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ================= HEADER ================= */
.vcard-header {
    position: relative;
    height: 220px;
    width: 100%;
}

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

/* Overlay sombre pour lisibilité du logo */
.vcard-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

/* LOGO EN HAUT À DROITE */
.logo-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 90px; /* Augmentation de la taille */
}

.logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ================= SÉPARATEUR + PROFIL ================= */
.separator-section {
    position: relative;
    height: 70px; /* Hauteur de la zone de chevauchement */
    margin-bottom: 60px; /* Espace pour que le texte ne touche pas la photo */
}

/* La ligne dorée */
.gold-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light), var(--gold-main));
    transform: translateY(-50%);
    z-index: 1;
}

/* La photo centrée sur la ligne */
.profile-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid var(--gold-main);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    background: #fff;
}

/* ================= CORPS VCARD ================= */
.vcard-body {
    padding: 0 25px 20px;
    text-align: center;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold-main);
    margin-bottom: 5px;
}

.job-title {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
}

.job-subtitle {
    color: var(--text-gray);
    font-size: 12px;
    font-style: italic;
    margin-bottom: 25px;
}

/* ICONES */
.contact-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.icon:hover {
    background: var(--gold-main);
    color: #fff;
    transform: translateY(-3px);
}

/* À PROPOS */
.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold-main);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-main));
}

.section-title::before { right: 110%; }
.section-title::after { left: 110%; transform: rotate(180deg); }

.text-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--gold-main);
    text-align: left;
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
}

/* ================= FOOTER ================= */
.vcard-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

.btn-action {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: rgba(201, 169, 97, 0.1);
    color: var(--gold-main);
    border: 1px solid var(--gold-main);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-action.primary {
    background: var(--gold-main);
    color: #1E1A15;
}

.btn-action:hover { opacity: 0.8; }

/* ================= RESPONSIVE ================= */
@media (max-width: 400px) {
    .profile-img { width: 110px; height: 110px; }
    .name { font-size: 24px; }
    .logo-wrapper { width: 70px; top: 15px; right: 15px; }
}