/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --gold-main: #C9A961;
    --gold-light: #E5C45A;
    --gold-dark: #8B7355;
    --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;
}

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

/* =========================================
   3. HEADER & COUVERTURE
   ========================================= */
.vcard-header {
    position: relative;
    height: 180px;
    width: 100%;
}

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

.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;
}

/* =========================================
   4. LOGO (HAUT À DROITE)
   ========================================= */
.logo-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    width: 110px;
}

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

/* =========================================
   5. LIGNE DORÉE & PROFIL
   ========================================= */
.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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    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;
}

/* =========================================
   6. CORPS DE LA VCARD
   ========================================= */
.vcard-body {
    padding: 70px 25px 20px;
    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;
}

/* =========================================
   7. ICÔNES DE CONTACT
   ========================================= */
.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);
}

/* =========================================
   8. SECTION À PROPOS
   ========================================= */
.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;
}

.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);
}

.about-text {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding: 0 10px;
}

/* =========================================
   9. 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);
}

/* =========================================
   10. FOOTER & BOUTONS
   ========================================= */
.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;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
}

.btn-action i {
    font-size: 14px;
}

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

.btn-action:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* =========================================
   11. MODAL QR CODE
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 35% auto;
    padding: 30px;
    width: 85%;
    max-width: 300px;
    border-radius: 20px;
    border: 2px solid var(--gold-main);
    text-align: center;
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
    animation: slideUp 0.3s ease;
}

.close {
    color: var(--gold-main);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover {
    color: var(--gold-light);
}

.modal-content h3 {
    color: var(--gold-main);
    font-family: 'Playfair Display', serif;
    margin: 15px 0;
    font-size: 20px;
}

.modal-content p {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 10px;
}

/* =========================================
   12. AFFICHAGE QR CODE (IMAGE)
   ========================================= */
.qr-code-display {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-img {
    width: 200px;
    height: 200px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(201, 169, 97, 0.3);
}

/* =========================================
   13. NOTIFICATION
   ========================================= */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-main);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

/* =========================================
   14. ANIMATIONS
   ========================================= */
@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
}

/* =========================================
   15. RESPONSIVE
   ========================================= */
@media (max-width: 480px) {
    .vcard-header {
        height: 160px;
    }
    
    .logo-wrapper {
        width: 90px;
        top: 15px;
        right: 15px;
    }
    
    .profile-wrapper {
        width: 90px;
        height: 90px;
        bottom: -45px;
        border-width: 4px;
    }
    
    .vcard-body {
        padding-top: 60px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .job-title {
        font-size: 14px;
    }
    
    .icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .btn-action {
        font-size: 11px;
        padding: 8px 3px;
    }
    
    .btn-action i {
        font-size: 12px;
    }
    
    .qr-img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 400px) {
    .logo-wrapper {
        width: 80px;
    }
    
    .profile-wrapper {
        width: 80px;
        height: 80px;
        bottom: -40px;
    }
    
    .modal-content {
        margin: 40% auto;
        padding: 20px;
    }
    
    .qr-img {
        width: 160px;
        height: 160px;
    }
}