:root {
    /* =========================================
       VARIABLES DE STYLE PERSONNALISABLES
       ========================================= */

    /* --- Couleurs --- */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --status-dot-color: #3498db; /* Bleu pour "En ligne" (plus sobre) */
    
    /* Dégradé sur la carte (pour lisibilité du texte) */
    --card-overlay-start: rgba(44, 62, 80, 0); /* Base bleu nuit */
    --card-overlay-middle: rgba(44, 62, 80, 0.6);
    --card-overlay-end: rgba(44, 62, 80, 0.9);

    /* --- Polices --- */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* --- Images de Fond --- */
    --outer-bg-image: url('https://images.unsplash.com/photo-1493421419110-74f4e30dd694?auto=format&fit=crop&w=1920&q=80'); /* Fond global (Desktop) */
    --card-bg-blur: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1000&q=80'); /* Image floutée derrière le profil */

    /* --- Espacements et Dimensions --- */
    --container-max-width: 650px;
    --card-border-radius: 20px;
    --profile-photo-size: 150px;
    
    /* --- Paramètres de Flou --- */
    --blur-intensity: 40px;
}

/* 
   MAIN STYLESHEET 
*/

* {
    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;
    /* Center content */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background-color: #000; /* Fallback */
}

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

/* 2. FROSTED GLASS CARD EFFECT */
.profile-container {
   position: relative;
   border-radius: var(--card-border-radius);
   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: var(--container-max-width);
   width: 95%;
   margin: 0 auto;
   overflow: hidden;
   
   /* Transparent background to let blur show through */
   background: transparent; 
}

/* Layer 1: Blurred photo background */
.profile-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   
   background-image: var(--card-bg-blur); 
   background-size: cover;
   background-position: center;
   
   filter: blur(var(--blur-intensity));
   -webkit-filter: blur(var(--blur-intensity));
   transform: scale(1.15); /* Prevent blur edge artifacts */
   z-index: 0;
}

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

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

/* PROFILE HEADER */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.status-location-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* PROFILE PHOTO */
.profile-photo {
    width: var(--profile-photo-size);
    height: var(--profile-photo-size);
    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;
    
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0);
}

/* NAME & VERIFICATION */
.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    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;
}

/* STATUS BADGE */
.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: var(--status-dot-color);
    border-radius: 50%;
    display: inline-block;
}

/* LOCATION TEXT */
.location {
    font-size: 14px;
    color: var(--text-secondary);
    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;
}

/* CTA TEXT */
.cta-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    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 */
.content-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.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;
    object-position: center 70%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        180deg,
        var(--card-overlay-start) 0%,
        var(--card-overlay-middle) 40%,
        var(--card-overlay-end) 100%
    );
    z-index: 1;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    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: var(--text-secondary);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: none !important;
    opacity: 1 !important;
    text-align: center;
}

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

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

/* RESPONSIVENESS */
@media (max-width: 768px) { 
   body { 
     overflow-x: hidden;
   } 
   
   .outer-background { 
     display: none; 
   } 
   
   .card-bg {
     height: 220px;
     object-position: center 60%;
   }

   .profile-container { 
     background: transparent; 
     border-radius: 0; 
     border: none; 
     box-shadow: none;
     width: 100%; 
     max-width: 100%; 
     min-height: 100vh; 
     margin: 0; 
     padding: 40px 20px;
     display: flex;
     flex-direction: column;
     justify-content: center;
   } 
   
   .profile-container::before { 
     position: fixed; 
     top: 0; 
     left: 0; 
     width: 100vw; 
     height: 100vh; 
     filter: blur(3px); /* Sharp on mobile */
     -webkit-filter: blur(3px);
     transform: scale(1.05); 
     z-index: 0;
   }
   
   .profile-container::after { 
     position: fixed; 
     width: 100vw; 
     height: 100vh; 
     background: rgba(0, 0, 0, 0.3);
     z-index: 1;
   }
   
   .card-title {
     font-size: 20px;
   }
   
   .platform-badge {
     width: 60px;
     height: 60px;
   }
}

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

@media (min-width: 1024px) {
   .profile-container {
     margin-top: 50px;
   }
}
