/* =================================================================
   DESIGN PAGE AUTEUR (SÉCURISÉ & ISOLÉ)
   Ce code ne s'applique QU'À LA PAGE AUTEUR (body.author)
   ================================================================= */
   
/* cache la recherche */
body #c27-header-search-form,
body.search-trigger {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* --- 1. HEADER UNIFORME (Beige Rose Poudré) --- */
body.author .c27-main-header .header-skin {
    background: rgb(255, 248, 244) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}
body.author .c27-main-header.header-scroll .header-skin {
    background: rgb(255, 248, 244) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
}


/* --- 2. LE FOND & STRUCTURE --- */
body.author .user-profile-cover {
    background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%) !important;
    padding: 50px 0 0 0 !important;
    border: none !important;
    margin-bottom: 30px !important;
}

/* Transparence des blocs internes */
body.author .user-profile-cover .main-info-desktop,
body.author .user-profile-cover .profile-header,
body.author .user-profile-cover .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- 3. L'AVATAR (Style AllezGo Rouge) --- */
body.author .profile-avatar {
    border: 4px solid #ffffff !important;
    box-shadow: 0 0 0 3px #f04c58, 0 10px 25px rgba(240, 76, 88, 0.25) !important;
    transition: all 0.3s ease;
}
body.author .profile-avatar:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 0 0 3px #FFBC00, 0 15px 30px rgba(255, 188, 0, 0.3) !important;
}

/* --- 4. NOM & BOUTON MODIFIER --- */
body.author .profile-name h1 {
    color: #333 !important;
    font-weight: 900 !important;
    margin-top: 20px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.author .edit-listing {
    background-color: #fff !important;
    color: #f04c58 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease;
}

/* --- 5. STATS (Cartes Blanches avec bordure rose pâle) --- */
body.author .listing-main-buttons ul li.price-or-date {
    background: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 18px !important;
    border: 1px solid #ffe0e6 !important;
    box-shadow: 0 8px 20px rgba(240, 76, 88, 0.06) !important;
    display: inline-flex !important;
    flex-direction: column !important; 
    justify-content: center !important;
    min-height: 65px !important;
    transition: transform 0.3s ease;
}
body.author .listing-main-buttons ul li.price-or-date:hover {
    transform: translateY(-4px);
    border-color: #f04c58 !important;
}

/* --- 6. LE MENU ONGLETS & BARRE DÉGRADÉE --- */
body.author .profile-menu ul {
    display: flex !important;
    gap: 30px !important;
    scrollbar-width: none !important;
}
body.author .profile-menu ul::-webkit-scrollbar { display: none; }

body.author .profile-menu li a {
    background: transparent !important;
    color: #777 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 15px 0 !important;
    position: relative !important;
    transition: color 0.3s ease;
}

/* La Barre Dégradée sous l'actif */
body.author .profile-menu li.active a::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F24286 0%, #FFBC00 100%) !important;
}

body.author .profile-menu li a:hover { color: #f04c58 !important; }

/* --- 7. RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    body.author .main-info-desktop .col-md-6,
    body.author .profile-name h1,
    body.author .listing-main-buttons ul,
    body.author .profile-menu ul { justify-content: center !important; text-align: center !important; }
    body.author .listing-main-buttons ul li.price-or-date { width: 60% !important; margin: 0 !important; }
}


@media (max-width: 768px) {
    /* ... tes autres styles ... */

    /* On cible les deux cases spécifiquement sur la page auteur */
    body.author .listing-main-buttons ul li.price-or-date {
        margin: 1% !important; /* Petit espacement entre les deux */
    }

    /* Case 1 : La Date (62% pour être large) */
    body.author .listing-main-buttons ul li.price-or-date:first-child {
        width: 62% !important;
    }

    /* Case 2 : Les Annonces (34% suffisent largement) */
    body.author .listing-main-buttons ul li.price-or-date:last-child {
        width: 34% !important;
    }
    
    /* Optionnel : Réduire légèrement la taille de police si le nom du mois est très long */
    body.author .listing-main-buttons ul li.price-or-date .value {
        font-size: 13px !important;
    }
}


@media (max-width: 768px) {
    /* Centrer l'avatar et supprimer l'espace à droite */
    body.author .profile-avatar {
        float: none !important;
        margin: 0 auto 15px auto !important; /* Centre horizontalement */
    }

    /* Supprimer le padding excessif en haut du bloc profil */
    body.author .user-profile-cover {
        padding-top: 30px !important; 
    }

    /* S'assurer que le titre n'a pas de marge forcée qui crée du vide */
    body.author .profile-name h1 {
        margin-top: 10px !important;
        justify-content: center !important; /* Centrer le nom et le badge Membre Actif */
    }

    /* Optionnel : Si le nom et le badge se chevauchent sur très petit écran */
    body.author .profile-name h1 {
        flex-direction: column !important;
        gap: 10px !important;
    }
}


.tooltip-element .tooltip-container {
/* 1. On retire la largeur fixe et on laisse le texte respirer */
    width: max-content !important; /* Force le conteneur à prendre la largeur du texte */
    max-width: 150px !important;
    
    /* 2. On ajoute du padding sur les côtés pour que le texte ne touche pas le bord */
    padding: 6px 12px !important;
    
    /* 3. On centre parfaitement avec la méthode du transform */
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    
    /* 4. Sécurité pour le texte */
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    
    /* On garde tes propriétés de base */
    visibility: hidden;
    background-color: #1a1a1a; /* Un noir un peu plus profond */
    color: #fff;
    border-radius: 6px;
    position: absolute;
    z-index: 100; /* On s'assure qu'il passe au-dessus de tout */
    bottom: 135%;
    opacity: 0;
    transition: opacity 0.3s;
}

/* On ajuste la petite flèche (le triangle) pour qu'elle reste centrée */
.tooltip-element .tooltip-container::after {
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
}


/* 1. On donne de l'espace au conteneur pour que les cellules puissent monter sans être coupées */
body.author .listing-main-buttons {
    padding-top: 10px !important;
    overflow: visible !important; /* Crucial pour ne pas couper le hover */
}

body.author .listing-main-buttons ul {
    overflow: visible !important;
    display: flex !important;
    align-items: center;
}

/* 2. On s'assure que la transition est fluide */
body.author .listing-main-buttons ul li.price-or-date {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease !important;
    z-index: 1;
}

/* 3. Le hover ajusté */
body.author .listing-main-buttons ul li.price-or-date:hover {
    transform: translateY(-5px) !important;
    z-index: 10; /* Passe au dessus du reste */
    box-shadow: 0 12px 25px rgba(240, 76, 88, 0.12) !important; /* Ombre plus profonde pour l'effet de levée */
}