:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --text-primary: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    min-height: 100vh;
}

/* 2. OUTER BACKGROUND (DESKTOP ONLY) */
.outer-background {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url('assets/outer-background.jpg');
   background-size: cover;
   background-position: center;
   z-index: -2;
}

/* 1. FROSTED GLASS CARD EFFECT */
.profile-container {
   position: relative;
   border-radius: 20px;
   padding: 40px 30px;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
   border: 1px solid rgba(255, 255, 255, 0.18);
   max-width: 650px;
   width: 95%;
   margin: 0 auto;
   overflow: hidden;
   
   /* CRITICAL: Make background semi-transparent so blur shows through */ 
   /* No backdrop-filter here */
   background: transparent; 
}

/* Layer 1: Blurred photo background */
.profile-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   
   /* CUSTOMIZATION: Card background photo (will be blurred on desktop) */
   /* Fallback to direct URL if variable not set */
   background-image: var(--bg-image, url('assets/card-background.jpg')); 
   background-size: cover;
   background-position: center;
   
   filter: blur(40px); /* Adjust blur: 20-60px */
   -webkit-filter: blur(40px);
   transform: scale(1.15); /* Prevent blur edge artifacts */
   z-index: 0;
}

/* Layer 2: Dark overlay (optional) */ 
.profile-container::after { 
   content: ''; 
   position: absolute; 
   top: 0; 
   left: 0; 
   width: 100%; 
   height: 100%; 
   background: rgba(0, 0, 0, 0.25); /* Dark overlay, reduced opacity */ 
   z-index: 1; 
   pointer-events: none; 
} 

/* Layer 3: Content on top */
.profile-header, 
.cta-text, 
.content-cards,
.profile-container > * {
   position: relative;
   z-index: 10; /* High z-index to be above everything */
   filter: none !important;
   opacity: 1 !important;
}

/* PROFILE HEADER & HIERARCHY */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative; /* Ensure it stays above ::before */
    z-index: 10;
}
/* AJOUTE CE NOUVEAU CODE après .profile-header */
.status-location-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espace entre les deux */
    margin-bottom: 25px;
}

/* 1. PROFILE PHOTO SPECIFICATIONS */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 0px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover;
    
    /* Critical for clarity */
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0); /* Force GPU acceleration for sharpness */
    -webkit-transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 2. NAME & VERIFICATION BADGE */
.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 
                 0 4px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    filter: none !important;
    opacity: 1 !important;
}

.verified-badge {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 1px;
}

/* 3. STATUS BADGE ("En ligne") */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin: 0 auto 8px auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

/* 4. LOCATION TEXT */
.location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0px 0 10px 0;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    filter: none !important;
    opacity: 1 !important;
}

/* 5. CTA TEXT ("Viens me parler") */
.cta-text {
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 0px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    filter: none !important;
    opacity: 1 !important;
}

/* Content Cards Wrapper */
.content-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* 2. CONTENT CARD SPECIFICATIONS */
.card {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-bg {
    width: 100%;
    height: 200px; /* Increase from 250px for better proportions */
    object-position: center 35%; /* ← AJOUTE/MODIFIE CETTE LIGNE */
    object-fit: cover;
    display: block;
}

/* 3. CARD GRADIENT OVERLAY */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* 4. CARD TEXT STYLING */
.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: none !important;
    opacity: 1 !important;
    text-align: center;
}

.card-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: none !important;
    opacity: 1 !important;
    text-align: center;
}

/* 5. PLATFORM BADGE (TOP-RIGHT CORNER) */
.platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    border-radius: 10%;
    padding: 10px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.25);
    z-index: 2;
    object-fit: contain;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* 5. MOBILE RESPONSIVENESS */

/* Mobile Optimization (≤ 768px) */
@media (max-width: 768px) { 
   body { 
     background: #000; /* Fallback color */
     overflow-x: hidden;
   } 
   
   .outer-background { 
     display: none; /* Hide outer bg */ 
   } 
   
   /* AJOUTE CETTE SECTION SI ELLE N'EXISTE PAS */
   .card-bg {
     height: 20px; /* Hauteur réduite pour mobile */
     object-position: center 30%; /* Position de l'image */
   }
}
   .profile-container { 
     /* Remove card frame */
     background: transparent; 
     border-radius: 0; 
     border: none; 
     box-shadow: none;
     
     /* Full screen */ 
     width: 100%; 
     max-width: 100%; 
     min-height: 100vh; 
     margin: 0; 
     padding: 40px 20px;
     
     display: flex;
     flex-direction: column;
     justify-content: center; /* Center content vertically */
   } 
   
   /* Ensure content is clear on mobile */
   .profile-container > * { 
     position: relative; 
     z-index: 10; 
     filter: none; 
     opacity: 1; 
   }

   /* Mobile: Extend blur to full viewport (FIXED position) */
   .profile-container::before { 
     position: fixed; 
     top: 0; 
     left: 0; 
     width: 100vw; 
     height: 100vh; 
     
     /* MOBILE: SHARP IMAGE (NO BLUR) */
     filter: blur(3px); 
     -webkit-filter: blur(3px);
     transform: scale(1.05); 
     z-index: 0;
   }
   
   /* Mobile: Extend overlay to full screen (FIXED position) */
   .profile-container::after { 
     position: fixed; 
     width: 100vw; 
     height: 100vh; 
     background: rgba(0, 0, 0, 0.3); /* Adjust: 0.2-0.4 */
     z-index: 1;
   }
   
   /* Profile photo sharp and clear */
   .profile-photo {
     filter: none !important;
     opacity: 1 !important;
   }
   
   /* Text sharp and readable */
   .profile-name, 
   .cta-text { 
     color: #FFFFFF; 
     text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* Strong shadow for readability */ 
     filter: none; 
     opacity: 1; 
   }
   
   /* 7. RESPONSIVE CARD ADJUSTMENTS */
   .card-bg {
     height: 220px;
   }
   
   .card-title {
     font-size: 20px;
   }
   
   .platform-badge {
     width: 60px;
     height: 60px;
   }
}

/* Very Small phones */
@media (max-width: 375px) {
   .profile-container {
     padding: 30px 15px;
   }
   
   .card-bg {
     height: 200px;
   }
   
   .platform-badge {
     width: 40px;
     height: 40px;
   }
}

/* Larger screens adjustments */
@media (min-width: 1024px) {
   .profile-container {
     margin-top: 50px; /* Center vertically if desired */
   }
}

/* 8. OVERALL PAGE SETTINGS */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}
