/* ================= 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: #0f0f0f;
    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: 0; /* Coins carrés pour le fond, le container a des coins ronds */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ================= HEADER & COUVERTURE ================= */
.vcard-header {
    position: relative;
    /* HAUTEUR RÉDUITE (environ 20% moins) */
    height: 180px; 
    width: 100%;
}

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

/* Overlay sombre pour faire ressortir le 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.4));
    pointer-events: none;
}

/* LOGO AGRANDI (+20%) */
.logo-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    width: 110px; /* Augmentation de taille */
}

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

/* ================= LIGNE DORÉE & PROFIL ================= */

/* La ligne dorée exactement à la jonction */
.gold-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light), var(--gold-main));
    z-index: 10; /* Au-dessus de la couverture */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Photo de profil centrée sur la ligne */
.profile-wrapper {
    position: absolute;
    /* Positionne le centre de la photo sur le bas du header */
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; /* Au-dessus de la ligne dorée */
    
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--gold-main);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= CORPS DE LA VCARD ================= */
.vcard-body {
    padding: 70px 25px 20px; /* Padding-top important pour laisser passer la photo */
    text-align: center;
    background: var(--bg-dark);
}

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

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

.job-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    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 - TEXTE SANS CADRE */
.about {
    margin-bottom: 30px;
}

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

/* Lignes décoratives autour du titre */
.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-main));
}
.section-title::before { right: 120%; }
.section-title::after { left: 120%; transform: rotate(180deg); }

/* Texte simple, sans bordure ni fond */
.about-text {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    text-align: center; /* Ou justify selon préférence */
    padding: 0 10px;
}

/* GOOGLE MAPS */
.map-section {
    margin-bottom: 20px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

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

.btn-action {
    flex: 1;
    padding: 10px 5px;
    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) {
    .vcard-header { height: 160px; } /* Encore plus petit sur très petits écrans */
    .logo-wrapper { width: 80px; top: 15px; right: 15px; }
    .profile-wrapper { width: 90px; height: 90px; bottom: -45px; border-width: 4px; }
    .name { font-size: 24px; }
    .icon { width: 42px; height: 42px; font-size: 16px; }
    .vcard-body { padding-top: 60px; }
}