/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    --primary-gold: #C9A961;
    --dark-brown: #2C2419;
    --light-gold: #D4AF37;
    --bg-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --text-gray: #B8B8B8;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */
.vcard-container {
    width: 100%;
    max-width: 480px;
    background: var(--dark-brown);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    position: relative;
}

/* ===================================
   HEADER
   =================================== */
.vcard-header {
    position: relative;
    background: linear-gradient(135deg, #3d3226 0%, #2C2419 100%);
    padding: 30px 20px;
    text-align: center;
}

/* Styles pour la Couverture */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Derrière le contenu */
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit tout sans se déformer */
    display: block;
}

/* Overlay sombre pour que le texte reste lisible sur la photo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 36, 25, 0.8), #2C2419);
}

.legal-symbols i {
    font-size: 80px;
    color: var(--primary-gold);
}

.profile-section {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.profile-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Styles pour le Logo */
.logo-img {
    max-width: 60px; /* Taille ajustée pour être proportionnée */
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
    filter: drop-shadow(0 0 5px rgba(201, 169, 97, 0.5)); /* Légère lueur dorée */
}

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

.logo-section {
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: inline-block;
    text-align: center;
    padding: 15px 30px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
}

.logo-emblem {
    font-size: 40px;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.logo-text-arabic {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    font-size: 18px;
    font-weight: 600;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.vcard-main {
    padding: 30px 25px;
}

/* Identity Section */
.identity-section {
    text-align: center;
    margin-bottom: 25px;
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.professional-title {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.qualification {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

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

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.2);
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-icon:hover {
    background: var(--primary-gold);
    color: var(--dark-brown);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

/* About Section */
.about-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

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

.section-title::before {
    right: calc(50% + 100px);
}

.section-title::after {
    left: calc(50% + 100px);
}

.about-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

/* Map Section */
.map-section {
    margin-bottom: 20px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--primary-gold);
    font-size: 14px;
}

/* ===================================
   FOOTER ACTIONS
   =================================== */
.vcard-footer {
    padding: 20px 25px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: rgba(201, 169, 97, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    color: var(--primary-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3);
}

.action-btn.primary {
    background: var(--primary-gold);
    color: var(--dark-brown);
}

.action-btn.primary:hover {
    background: var(--light-gold);
}

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--dark-brown);
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    text-align: center;
    animation: slideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-gold);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

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

.qr-code {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 480px) {
    .vcard-container {
        border-radius: 15px;
    }
    
    .full-name {
        font-size: 24px;
    }
    
    .professional-title {
        font-size: 14px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .action-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media (max-width: 360px) {
    .vcard-footer {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}